@flowselections/floriday-verkoop-module 1.0.9 → 1.0.11
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/verkoop/AnalyticsCards.d.ts +1 -1
- package/dist-lib/components/verkoop/AnalyticsCards.d.ts.map +1 -1
- package/dist-lib/components/verkoop/AnalyticsCards.js +1 -7
- package/dist-lib/components/verkoop/SalesOrderDetailView.d.ts.map +1 -1
- package/dist-lib/components/verkoop/SalesOrderDetailView.js +1 -1
- package/dist-lib/components/verkoop/SalesOrdersTable.d.ts.map +1 -1
- package/dist-lib/components/verkoop/SalesOrdersTable.js +19 -39
- package/dist-lib/integrations/supabase/auth-middleware.d.ts +781 -0
- package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/client.d.ts +781 -0
- package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/client.server.d.ts +781 -0
- package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/types.d.ts +791 -0
- package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
- package/dist-lib/lib/floriday-gateway.server.d.ts.map +1 -1
- package/dist-lib/lib/floriday-gateway.server.js +12 -17
- package/dist-lib/lib/floriday-public.functions.d.ts +5587 -120
- package/dist-lib/lib/floriday-public.functions.d.ts.map +1 -1
- package/dist-lib/lib/floriday-writes.functions.d.ts +3965 -60
- package/dist-lib/lib/floriday-writes.functions.d.ts.map +1 -1
- package/dist-lib/lib/salesorders-mapping.d.ts +4 -0
- package/dist-lib/lib/salesorders-mapping.d.ts.map +1 -1
- package/dist-lib/lib/salesorders-mapping.js +14 -3
- package/dist-lib/lib/salesorders.functions.d.ts +2381 -38
- package/dist-lib/lib/salesorders.functions.d.ts.map +1 -1
- package/dist-lib/lib/tradeitems.functions.d.ts +781 -0
- package/dist-lib/lib/tradeitems.functions.d.ts.map +1 -1
- package/dist-lib/lib/useSalesOrdersQuery.d.ts.map +1 -1
- package/dist-lib/lib/useSalesOrdersQuery.js +157 -24
- package/package.json +2 -2
|
@@ -13,6 +13,7 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
|
|
|
13
13
|
max_workdays_earlier_pick: number;
|
|
14
14
|
pick_days_before_transport: number;
|
|
15
15
|
pick_distribution_enabled: boolean;
|
|
16
|
+
pick_weekdays: number[];
|
|
16
17
|
signup_mail_enabled: boolean;
|
|
17
18
|
signup_mail_lead_minutes: number;
|
|
18
19
|
signup_mail_purpose: string;
|
|
@@ -26,6 +27,7 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
|
|
|
26
27
|
max_workdays_earlier_pick?: number;
|
|
27
28
|
pick_days_before_transport?: number;
|
|
28
29
|
pick_distribution_enabled?: boolean;
|
|
30
|
+
pick_weekdays?: number[];
|
|
29
31
|
signup_mail_enabled?: boolean;
|
|
30
32
|
signup_mail_lead_minutes?: number;
|
|
31
33
|
signup_mail_purpose?: string;
|
|
@@ -39,6 +41,7 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
|
|
|
39
41
|
max_workdays_earlier_pick?: number;
|
|
40
42
|
pick_days_before_transport?: number;
|
|
41
43
|
pick_distribution_enabled?: boolean;
|
|
44
|
+
pick_weekdays?: number[];
|
|
42
45
|
signup_mail_enabled?: boolean;
|
|
43
46
|
signup_mail_lead_minutes?: number;
|
|
44
47
|
signup_mail_purpose?: string;
|
|
@@ -450,6 +453,48 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
|
|
|
450
453
|
referencedColumns: ["id"];
|
|
451
454
|
}];
|
|
452
455
|
};
|
|
456
|
+
carrier_signup_dispatch_runs: {
|
|
457
|
+
Row: {
|
|
458
|
+
detail: import("../integrations/supabase/types").Json | null;
|
|
459
|
+
error: string | null;
|
|
460
|
+
finished_at: string | null;
|
|
461
|
+
groups: number;
|
|
462
|
+
id: string;
|
|
463
|
+
ok: boolean;
|
|
464
|
+
reason: string | null;
|
|
465
|
+
sent: number;
|
|
466
|
+
skipped: import("../integrations/supabase/types").Json;
|
|
467
|
+
started_at: string;
|
|
468
|
+
unassigned: import("../integrations/supabase/types").Json;
|
|
469
|
+
};
|
|
470
|
+
Insert: {
|
|
471
|
+
detail?: import("../integrations/supabase/types").Json | null;
|
|
472
|
+
error?: string | null;
|
|
473
|
+
finished_at?: string | null;
|
|
474
|
+
groups?: number;
|
|
475
|
+
id?: string;
|
|
476
|
+
ok?: boolean;
|
|
477
|
+
reason?: string | null;
|
|
478
|
+
sent?: number;
|
|
479
|
+
skipped?: import("../integrations/supabase/types").Json;
|
|
480
|
+
started_at?: string;
|
|
481
|
+
unassigned?: import("../integrations/supabase/types").Json;
|
|
482
|
+
};
|
|
483
|
+
Update: {
|
|
484
|
+
detail?: import("../integrations/supabase/types").Json | null;
|
|
485
|
+
error?: string | null;
|
|
486
|
+
finished_at?: string | null;
|
|
487
|
+
groups?: number;
|
|
488
|
+
id?: string;
|
|
489
|
+
ok?: boolean;
|
|
490
|
+
reason?: string | null;
|
|
491
|
+
sent?: number;
|
|
492
|
+
skipped?: import("../integrations/supabase/types").Json;
|
|
493
|
+
started_at?: string;
|
|
494
|
+
unassigned?: import("../integrations/supabase/types").Json;
|
|
495
|
+
};
|
|
496
|
+
Relationships: [];
|
|
497
|
+
};
|
|
453
498
|
carrier_signup_dispatches: {
|
|
454
499
|
Row: {
|
|
455
500
|
carrier_id: string;
|
|
@@ -501,6 +546,7 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
|
|
|
501
546
|
contact_person: string | null;
|
|
502
547
|
created_at: string;
|
|
503
548
|
delivery_days: number | null;
|
|
549
|
+
delivery_weekdays: number[];
|
|
504
550
|
email: string | null;
|
|
505
551
|
id: string;
|
|
506
552
|
is_default: boolean;
|
|
@@ -508,6 +554,7 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
|
|
|
508
554
|
notes: string | null;
|
|
509
555
|
phone: string | null;
|
|
510
556
|
pickup_moments: import("../integrations/supabase/types").Json;
|
|
557
|
+
pickup_weekdays: number[];
|
|
511
558
|
service_cities: string[];
|
|
512
559
|
service_countries: string[];
|
|
513
560
|
service_provinces: string[];
|
|
@@ -523,6 +570,7 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
|
|
|
523
570
|
contact_person?: string | null;
|
|
524
571
|
created_at?: string;
|
|
525
572
|
delivery_days?: number | null;
|
|
573
|
+
delivery_weekdays?: number[];
|
|
526
574
|
email?: string | null;
|
|
527
575
|
id?: string;
|
|
528
576
|
is_default?: boolean;
|
|
@@ -530,6 +578,7 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
|
|
|
530
578
|
notes?: string | null;
|
|
531
579
|
phone?: string | null;
|
|
532
580
|
pickup_moments?: import("../integrations/supabase/types").Json;
|
|
581
|
+
pickup_weekdays?: number[];
|
|
533
582
|
service_cities?: string[];
|
|
534
583
|
service_countries?: string[];
|
|
535
584
|
service_provinces?: string[];
|
|
@@ -545,6 +594,7 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
|
|
|
545
594
|
contact_person?: string | null;
|
|
546
595
|
created_at?: string;
|
|
547
596
|
delivery_days?: number | null;
|
|
597
|
+
delivery_weekdays?: number[];
|
|
548
598
|
email?: string | null;
|
|
549
599
|
id?: string;
|
|
550
600
|
is_default?: boolean;
|
|
@@ -552,6 +602,7 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
|
|
|
552
602
|
notes?: string | null;
|
|
553
603
|
phone?: string | null;
|
|
554
604
|
pickup_moments?: import("../integrations/supabase/types").Json;
|
|
605
|
+
pickup_weekdays?: number[];
|
|
555
606
|
service_cities?: string[];
|
|
556
607
|
service_countries?: string[];
|
|
557
608
|
service_provinces?: string[];
|
|
@@ -564,6 +615,177 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
|
|
|
564
615
|
};
|
|
565
616
|
Relationships: [];
|
|
566
617
|
};
|
|
618
|
+
cart_control_draft: {
|
|
619
|
+
Row: {
|
|
620
|
+
cart_states: import("../integrations/supabase/types").Json;
|
|
621
|
+
checked_keys: import("../integrations/supabase/types").Json;
|
|
622
|
+
draft_date: string;
|
|
623
|
+
form_state: import("../integrations/supabase/types").Json;
|
|
624
|
+
notes: string;
|
|
625
|
+
updated_at: string;
|
|
626
|
+
user_id: string;
|
|
627
|
+
};
|
|
628
|
+
Insert: {
|
|
629
|
+
cart_states?: import("../integrations/supabase/types").Json;
|
|
630
|
+
checked_keys?: import("../integrations/supabase/types").Json;
|
|
631
|
+
draft_date: string;
|
|
632
|
+
form_state?: import("../integrations/supabase/types").Json;
|
|
633
|
+
notes?: string;
|
|
634
|
+
updated_at?: string;
|
|
635
|
+
user_id: string;
|
|
636
|
+
};
|
|
637
|
+
Update: {
|
|
638
|
+
cart_states?: import("../integrations/supabase/types").Json;
|
|
639
|
+
checked_keys?: import("../integrations/supabase/types").Json;
|
|
640
|
+
draft_date?: string;
|
|
641
|
+
form_state?: import("../integrations/supabase/types").Json;
|
|
642
|
+
notes?: string;
|
|
643
|
+
updated_at?: string;
|
|
644
|
+
user_id?: string;
|
|
645
|
+
};
|
|
646
|
+
Relationships: [];
|
|
647
|
+
};
|
|
648
|
+
cart_control_items: {
|
|
649
|
+
Row: {
|
|
650
|
+
action: string;
|
|
651
|
+
block_reason: string | null;
|
|
652
|
+
carrier_name: string | null;
|
|
653
|
+
cart_index: number;
|
|
654
|
+
cart_number_id: string | null;
|
|
655
|
+
cart_number_label: string | null;
|
|
656
|
+
created_at: string;
|
|
657
|
+
customer_name: string | null;
|
|
658
|
+
delivery_date: string | null;
|
|
659
|
+
id: string;
|
|
660
|
+
new_pick_date: string | null;
|
|
661
|
+
order_id: string;
|
|
662
|
+
order_number: string | null;
|
|
663
|
+
order_source: string;
|
|
664
|
+
pickup_date: string | null;
|
|
665
|
+
session_id: string;
|
|
666
|
+
};
|
|
667
|
+
Insert: {
|
|
668
|
+
action: string;
|
|
669
|
+
block_reason?: string | null;
|
|
670
|
+
carrier_name?: string | null;
|
|
671
|
+
cart_index: number;
|
|
672
|
+
cart_number_id?: string | null;
|
|
673
|
+
cart_number_label?: string | null;
|
|
674
|
+
created_at?: string;
|
|
675
|
+
customer_name?: string | null;
|
|
676
|
+
delivery_date?: string | null;
|
|
677
|
+
id?: string;
|
|
678
|
+
new_pick_date?: string | null;
|
|
679
|
+
order_id: string;
|
|
680
|
+
order_number?: string | null;
|
|
681
|
+
order_source: string;
|
|
682
|
+
pickup_date?: string | null;
|
|
683
|
+
session_id: string;
|
|
684
|
+
};
|
|
685
|
+
Update: {
|
|
686
|
+
action?: string;
|
|
687
|
+
block_reason?: string | null;
|
|
688
|
+
carrier_name?: string | null;
|
|
689
|
+
cart_index?: number;
|
|
690
|
+
cart_number_id?: string | null;
|
|
691
|
+
cart_number_label?: string | null;
|
|
692
|
+
created_at?: string;
|
|
693
|
+
customer_name?: string | null;
|
|
694
|
+
delivery_date?: string | null;
|
|
695
|
+
id?: string;
|
|
696
|
+
new_pick_date?: string | null;
|
|
697
|
+
order_id?: string;
|
|
698
|
+
order_number?: string | null;
|
|
699
|
+
order_source?: string;
|
|
700
|
+
pickup_date?: string | null;
|
|
701
|
+
session_id?: string;
|
|
702
|
+
};
|
|
703
|
+
Relationships: [{
|
|
704
|
+
foreignKeyName: "cart_control_items_session_id_fkey";
|
|
705
|
+
columns: ["session_id"];
|
|
706
|
+
isOneToOne: false;
|
|
707
|
+
referencedRelation: "cart_control_sessions";
|
|
708
|
+
referencedColumns: ["id"];
|
|
709
|
+
}];
|
|
710
|
+
};
|
|
711
|
+
cart_control_sessions: {
|
|
712
|
+
Row: {
|
|
713
|
+
blocked_count: number;
|
|
714
|
+
checked_count: number;
|
|
715
|
+
control_date: string;
|
|
716
|
+
created_at: string;
|
|
717
|
+
id: string;
|
|
718
|
+
notes: string | null;
|
|
719
|
+
performed_at: string;
|
|
720
|
+
rescheduled_count: number;
|
|
721
|
+
total_carts: number;
|
|
722
|
+
updated_at: string;
|
|
723
|
+
user_id: string;
|
|
724
|
+
};
|
|
725
|
+
Insert: {
|
|
726
|
+
blocked_count?: number;
|
|
727
|
+
checked_count?: number;
|
|
728
|
+
control_date?: string;
|
|
729
|
+
created_at?: string;
|
|
730
|
+
id?: string;
|
|
731
|
+
notes?: string | null;
|
|
732
|
+
performed_at?: string;
|
|
733
|
+
rescheduled_count?: number;
|
|
734
|
+
total_carts?: number;
|
|
735
|
+
updated_at?: string;
|
|
736
|
+
user_id: string;
|
|
737
|
+
};
|
|
738
|
+
Update: {
|
|
739
|
+
blocked_count?: number;
|
|
740
|
+
checked_count?: number;
|
|
741
|
+
control_date?: string;
|
|
742
|
+
created_at?: string;
|
|
743
|
+
id?: string;
|
|
744
|
+
notes?: string | null;
|
|
745
|
+
performed_at?: string;
|
|
746
|
+
rescheduled_count?: number;
|
|
747
|
+
total_carts?: number;
|
|
748
|
+
updated_at?: string;
|
|
749
|
+
user_id?: string;
|
|
750
|
+
};
|
|
751
|
+
Relationships: [];
|
|
752
|
+
};
|
|
753
|
+
cart_numbers: {
|
|
754
|
+
Row: {
|
|
755
|
+
assigned_at: string;
|
|
756
|
+
cart_index: number;
|
|
757
|
+
cart_number: string;
|
|
758
|
+
day_seq: number;
|
|
759
|
+
id: string;
|
|
760
|
+
order_id: string;
|
|
761
|
+
order_source: string;
|
|
762
|
+
pick_date: string;
|
|
763
|
+
status: string;
|
|
764
|
+
};
|
|
765
|
+
Insert: {
|
|
766
|
+
assigned_at?: string;
|
|
767
|
+
cart_index: number;
|
|
768
|
+
cart_number: string;
|
|
769
|
+
day_seq: number;
|
|
770
|
+
id?: string;
|
|
771
|
+
order_id: string;
|
|
772
|
+
order_source: string;
|
|
773
|
+
pick_date: string;
|
|
774
|
+
status?: string;
|
|
775
|
+
};
|
|
776
|
+
Update: {
|
|
777
|
+
assigned_at?: string;
|
|
778
|
+
cart_index?: number;
|
|
779
|
+
cart_number?: string;
|
|
780
|
+
day_seq?: number;
|
|
781
|
+
id?: string;
|
|
782
|
+
order_id?: string;
|
|
783
|
+
order_source?: string;
|
|
784
|
+
pick_date?: string;
|
|
785
|
+
status?: string;
|
|
786
|
+
};
|
|
787
|
+
Relationships: [];
|
|
788
|
+
};
|
|
567
789
|
cart_pick_overrides: {
|
|
568
790
|
Row: {
|
|
569
791
|
cart_index: number;
|
|
@@ -1236,6 +1458,54 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
|
|
|
1236
1458
|
referencedColumns: ["id"];
|
|
1237
1459
|
}];
|
|
1238
1460
|
};
|
|
1461
|
+
dashboard_critical_alerts: {
|
|
1462
|
+
Row: {
|
|
1463
|
+
alert_key: string;
|
|
1464
|
+
alert_type: string;
|
|
1465
|
+
created_at: string;
|
|
1466
|
+
description: string | null;
|
|
1467
|
+
id: string;
|
|
1468
|
+
metadata: import("../integrations/supabase/types").Json | null;
|
|
1469
|
+
priority: string;
|
|
1470
|
+
raised_at: string;
|
|
1471
|
+
related_cart_ids: string[] | null;
|
|
1472
|
+
resolved_at: string | null;
|
|
1473
|
+
title: string;
|
|
1474
|
+
updated_at: string;
|
|
1475
|
+
user_id: string;
|
|
1476
|
+
};
|
|
1477
|
+
Insert: {
|
|
1478
|
+
alert_key: string;
|
|
1479
|
+
alert_type: string;
|
|
1480
|
+
created_at?: string;
|
|
1481
|
+
description?: string | null;
|
|
1482
|
+
id?: string;
|
|
1483
|
+
metadata?: import("../integrations/supabase/types").Json | null;
|
|
1484
|
+
priority?: string;
|
|
1485
|
+
raised_at?: string;
|
|
1486
|
+
related_cart_ids?: string[] | null;
|
|
1487
|
+
resolved_at?: string | null;
|
|
1488
|
+
title: string;
|
|
1489
|
+
updated_at?: string;
|
|
1490
|
+
user_id: string;
|
|
1491
|
+
};
|
|
1492
|
+
Update: {
|
|
1493
|
+
alert_key?: string;
|
|
1494
|
+
alert_type?: string;
|
|
1495
|
+
created_at?: string;
|
|
1496
|
+
description?: string | null;
|
|
1497
|
+
id?: string;
|
|
1498
|
+
metadata?: import("../integrations/supabase/types").Json | null;
|
|
1499
|
+
priority?: string;
|
|
1500
|
+
raised_at?: string;
|
|
1501
|
+
related_cart_ids?: string[] | null;
|
|
1502
|
+
resolved_at?: string | null;
|
|
1503
|
+
title?: string;
|
|
1504
|
+
updated_at?: string;
|
|
1505
|
+
user_id?: string;
|
|
1506
|
+
};
|
|
1507
|
+
Relationships: [];
|
|
1508
|
+
};
|
|
1239
1509
|
dashboard_daily_reports: {
|
|
1240
1510
|
Row: {
|
|
1241
1511
|
created_at: string;
|
|
@@ -2646,6 +2916,7 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
|
|
|
2646
2916
|
created_at: string;
|
|
2647
2917
|
exact_article_id: string | null;
|
|
2648
2918
|
id: string;
|
|
2919
|
+
image_url: string | null;
|
|
2649
2920
|
is_active: boolean;
|
|
2650
2921
|
name: string;
|
|
2651
2922
|
price: number;
|
|
@@ -2656,6 +2927,7 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
|
|
|
2656
2927
|
created_at?: string;
|
|
2657
2928
|
exact_article_id?: string | null;
|
|
2658
2929
|
id?: string;
|
|
2930
|
+
image_url?: string | null;
|
|
2659
2931
|
is_active?: boolean;
|
|
2660
2932
|
name: string;
|
|
2661
2933
|
price?: number;
|
|
@@ -2666,6 +2938,7 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
|
|
|
2666
2938
|
created_at?: string;
|
|
2667
2939
|
exact_article_id?: string | null;
|
|
2668
2940
|
id?: string;
|
|
2941
|
+
image_url?: string | null;
|
|
2669
2942
|
is_active?: boolean;
|
|
2670
2943
|
name?: string;
|
|
2671
2944
|
price?: number;
|
|
@@ -2735,6 +3008,7 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
|
|
|
2735
3008
|
};
|
|
2736
3009
|
floricode_sync_state: {
|
|
2737
3010
|
Row: {
|
|
3011
|
+
cursor_skip: number;
|
|
2738
3012
|
error_message: string | null;
|
|
2739
3013
|
last_change_date_time: string | null;
|
|
2740
3014
|
last_sequence_number: number;
|
|
@@ -2744,6 +3018,7 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
|
|
|
2744
3018
|
updated_at: string;
|
|
2745
3019
|
};
|
|
2746
3020
|
Insert: {
|
|
3021
|
+
cursor_skip?: number;
|
|
2747
3022
|
error_message?: string | null;
|
|
2748
3023
|
last_change_date_time?: string | null;
|
|
2749
3024
|
last_sequence_number?: number;
|
|
@@ -2753,6 +3028,7 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
|
|
|
2753
3028
|
updated_at?: string;
|
|
2754
3029
|
};
|
|
2755
3030
|
Update: {
|
|
3031
|
+
cursor_skip?: number;
|
|
2756
3032
|
error_message?: string | null;
|
|
2757
3033
|
last_change_date_time?: string | null;
|
|
2758
3034
|
last_sequence_number?: number;
|
|
@@ -3900,6 +4176,24 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
|
|
|
3900
4176
|
};
|
|
3901
4177
|
Relationships: [];
|
|
3902
4178
|
};
|
|
4179
|
+
floriday_order_number_map: {
|
|
4180
|
+
Row: {
|
|
4181
|
+
created_at: string;
|
|
4182
|
+
floriday_id: string;
|
|
4183
|
+
order_number: string;
|
|
4184
|
+
};
|
|
4185
|
+
Insert: {
|
|
4186
|
+
created_at?: string;
|
|
4187
|
+
floriday_id: string;
|
|
4188
|
+
order_number: string;
|
|
4189
|
+
};
|
|
4190
|
+
Update: {
|
|
4191
|
+
created_at?: string;
|
|
4192
|
+
floriday_id?: string;
|
|
4193
|
+
order_number?: string;
|
|
4194
|
+
};
|
|
4195
|
+
Relationships: [];
|
|
4196
|
+
};
|
|
3903
4197
|
floriday_packings_cache: {
|
|
3904
4198
|
Row: {
|
|
3905
4199
|
connection_id: string;
|
|
@@ -5082,6 +5376,93 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
|
|
|
5082
5376
|
};
|
|
5083
5377
|
Relationships: [];
|
|
5084
5378
|
};
|
|
5379
|
+
manufacture_product_components: {
|
|
5380
|
+
Row: {
|
|
5381
|
+
component_type: string;
|
|
5382
|
+
created_at: string;
|
|
5383
|
+
id: string;
|
|
5384
|
+
manufacture_product_id: string;
|
|
5385
|
+
product_group_id: string | null;
|
|
5386
|
+
quantity: number;
|
|
5387
|
+
trade_item_id: string | null;
|
|
5388
|
+
unit: string;
|
|
5389
|
+
};
|
|
5390
|
+
Insert: {
|
|
5391
|
+
component_type: string;
|
|
5392
|
+
created_at?: string;
|
|
5393
|
+
id?: string;
|
|
5394
|
+
manufacture_product_id: string;
|
|
5395
|
+
product_group_id?: string | null;
|
|
5396
|
+
quantity?: number;
|
|
5397
|
+
trade_item_id?: string | null;
|
|
5398
|
+
unit?: string;
|
|
5399
|
+
};
|
|
5400
|
+
Update: {
|
|
5401
|
+
component_type?: string;
|
|
5402
|
+
created_at?: string;
|
|
5403
|
+
id?: string;
|
|
5404
|
+
manufacture_product_id?: string;
|
|
5405
|
+
product_group_id?: string | null;
|
|
5406
|
+
quantity?: number;
|
|
5407
|
+
trade_item_id?: string | null;
|
|
5408
|
+
unit?: string;
|
|
5409
|
+
};
|
|
5410
|
+
Relationships: [{
|
|
5411
|
+
foreignKeyName: "manufacture_product_components_manufacture_product_id_fkey";
|
|
5412
|
+
columns: ["manufacture_product_id"];
|
|
5413
|
+
isOneToOne: false;
|
|
5414
|
+
referencedRelation: "manufacture_product_possible_stock_view";
|
|
5415
|
+
referencedColumns: ["manufacture_product_id"];
|
|
5416
|
+
}, {
|
|
5417
|
+
foreignKeyName: "manufacture_product_components_manufacture_product_id_fkey";
|
|
5418
|
+
columns: ["manufacture_product_id"];
|
|
5419
|
+
isOneToOne: false;
|
|
5420
|
+
referencedRelation: "manufacture_products";
|
|
5421
|
+
referencedColumns: ["id"];
|
|
5422
|
+
}, {
|
|
5423
|
+
foreignKeyName: "manufacture_product_components_product_group_id_fkey";
|
|
5424
|
+
columns: ["product_group_id"];
|
|
5425
|
+
isOneToOne: false;
|
|
5426
|
+
referencedRelation: "product_groups";
|
|
5427
|
+
referencedColumns: ["id"];
|
|
5428
|
+
}];
|
|
5429
|
+
};
|
|
5430
|
+
manufacture_products: {
|
|
5431
|
+
Row: {
|
|
5432
|
+
created_at: string;
|
|
5433
|
+
description: string | null;
|
|
5434
|
+
id: string;
|
|
5435
|
+
is_active: boolean;
|
|
5436
|
+
name: string;
|
|
5437
|
+
produced_stock: number;
|
|
5438
|
+
product_code: string;
|
|
5439
|
+
tenant_id: string;
|
|
5440
|
+
updated_at: string;
|
|
5441
|
+
};
|
|
5442
|
+
Insert: {
|
|
5443
|
+
created_at?: string;
|
|
5444
|
+
description?: string | null;
|
|
5445
|
+
id?: string;
|
|
5446
|
+
is_active?: boolean;
|
|
5447
|
+
name: string;
|
|
5448
|
+
produced_stock?: number;
|
|
5449
|
+
product_code: string;
|
|
5450
|
+
tenant_id: string;
|
|
5451
|
+
updated_at?: string;
|
|
5452
|
+
};
|
|
5453
|
+
Update: {
|
|
5454
|
+
created_at?: string;
|
|
5455
|
+
description?: string | null;
|
|
5456
|
+
id?: string;
|
|
5457
|
+
is_active?: boolean;
|
|
5458
|
+
name?: string;
|
|
5459
|
+
produced_stock?: number;
|
|
5460
|
+
product_code?: string;
|
|
5461
|
+
tenant_id?: string;
|
|
5462
|
+
updated_at?: string;
|
|
5463
|
+
};
|
|
5464
|
+
Relationships: [];
|
|
5465
|
+
};
|
|
5085
5466
|
monteurs: {
|
|
5086
5467
|
Row: {
|
|
5087
5468
|
avatar_url: string | null;
|
|
@@ -5745,6 +6126,24 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
|
|
|
5745
6126
|
referencedColumns: ["id"];
|
|
5746
6127
|
}];
|
|
5747
6128
|
};
|
|
6129
|
+
order_number_counters: {
|
|
6130
|
+
Row: {
|
|
6131
|
+
last_value: number;
|
|
6132
|
+
updated_at: string;
|
|
6133
|
+
year: number;
|
|
6134
|
+
};
|
|
6135
|
+
Insert: {
|
|
6136
|
+
last_value?: number;
|
|
6137
|
+
updated_at?: string;
|
|
6138
|
+
year: number;
|
|
6139
|
+
};
|
|
6140
|
+
Update: {
|
|
6141
|
+
last_value?: number;
|
|
6142
|
+
updated_at?: string;
|
|
6143
|
+
year?: number;
|
|
6144
|
+
};
|
|
6145
|
+
Relationships: [];
|
|
6146
|
+
};
|
|
5748
6147
|
orders: {
|
|
5749
6148
|
Row: {
|
|
5750
6149
|
created_at: string;
|
|
@@ -5757,6 +6156,7 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
|
|
|
5757
6156
|
notes: string | null;
|
|
5758
6157
|
order_date: string;
|
|
5759
6158
|
order_number: string;
|
|
6159
|
+
order_source: string;
|
|
5760
6160
|
status: string;
|
|
5761
6161
|
total: string;
|
|
5762
6162
|
updated_at: string;
|
|
@@ -5772,6 +6172,7 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
|
|
|
5772
6172
|
notes?: string | null;
|
|
5773
6173
|
order_date?: string;
|
|
5774
6174
|
order_number: string;
|
|
6175
|
+
order_source?: string;
|
|
5775
6176
|
status?: string;
|
|
5776
6177
|
total?: string;
|
|
5777
6178
|
updated_at?: string;
|
|
@@ -5787,6 +6188,7 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
|
|
|
5787
6188
|
notes?: string | null;
|
|
5788
6189
|
order_date?: string;
|
|
5789
6190
|
order_number?: string;
|
|
6191
|
+
order_source?: string;
|
|
5790
6192
|
status?: string;
|
|
5791
6193
|
total?: string;
|
|
5792
6194
|
updated_at?: string;
|
|
@@ -6021,18 +6423,78 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
|
|
|
6021
6423
|
};
|
|
6022
6424
|
Relationships: [];
|
|
6023
6425
|
};
|
|
6024
|
-
|
|
6426
|
+
product_group_items: {
|
|
6025
6427
|
Row: {
|
|
6026
|
-
barcode: string | null;
|
|
6027
|
-
batch: string;
|
|
6028
|
-
crates_per_layer: number;
|
|
6029
6428
|
created_at: string;
|
|
6030
|
-
custom_fields: import("../integrations/supabase/types").Json;
|
|
6031
6429
|
id: string;
|
|
6032
|
-
|
|
6033
|
-
|
|
6034
|
-
|
|
6035
|
-
|
|
6430
|
+
product_group_id: string;
|
|
6431
|
+
quantity: number;
|
|
6432
|
+
trade_item_id: string;
|
|
6433
|
+
};
|
|
6434
|
+
Insert: {
|
|
6435
|
+
created_at?: string;
|
|
6436
|
+
id?: string;
|
|
6437
|
+
product_group_id: string;
|
|
6438
|
+
quantity?: number;
|
|
6439
|
+
trade_item_id: string;
|
|
6440
|
+
};
|
|
6441
|
+
Update: {
|
|
6442
|
+
created_at?: string;
|
|
6443
|
+
id?: string;
|
|
6444
|
+
product_group_id?: string;
|
|
6445
|
+
quantity?: number;
|
|
6446
|
+
trade_item_id?: string;
|
|
6447
|
+
};
|
|
6448
|
+
Relationships: [{
|
|
6449
|
+
foreignKeyName: "product_group_items_product_group_id_fkey";
|
|
6450
|
+
columns: ["product_group_id"];
|
|
6451
|
+
isOneToOne: false;
|
|
6452
|
+
referencedRelation: "product_groups";
|
|
6453
|
+
referencedColumns: ["id"];
|
|
6454
|
+
}];
|
|
6455
|
+
};
|
|
6456
|
+
product_groups: {
|
|
6457
|
+
Row: {
|
|
6458
|
+
created_at: string;
|
|
6459
|
+
description: string | null;
|
|
6460
|
+
id: string;
|
|
6461
|
+
is_active: boolean;
|
|
6462
|
+
name: string;
|
|
6463
|
+
tenant_id: string;
|
|
6464
|
+
updated_at: string;
|
|
6465
|
+
};
|
|
6466
|
+
Insert: {
|
|
6467
|
+
created_at?: string;
|
|
6468
|
+
description?: string | null;
|
|
6469
|
+
id?: string;
|
|
6470
|
+
is_active?: boolean;
|
|
6471
|
+
name: string;
|
|
6472
|
+
tenant_id: string;
|
|
6473
|
+
updated_at?: string;
|
|
6474
|
+
};
|
|
6475
|
+
Update: {
|
|
6476
|
+
created_at?: string;
|
|
6477
|
+
description?: string | null;
|
|
6478
|
+
id?: string;
|
|
6479
|
+
is_active?: boolean;
|
|
6480
|
+
name?: string;
|
|
6481
|
+
tenant_id?: string;
|
|
6482
|
+
updated_at?: string;
|
|
6483
|
+
};
|
|
6484
|
+
Relationships: [];
|
|
6485
|
+
};
|
|
6486
|
+
products: {
|
|
6487
|
+
Row: {
|
|
6488
|
+
barcode: string | null;
|
|
6489
|
+
batch: string;
|
|
6490
|
+
crates_per_layer: number;
|
|
6491
|
+
created_at: string;
|
|
6492
|
+
custom_fields: import("../integrations/supabase/types").Json;
|
|
6493
|
+
id: string;
|
|
6494
|
+
image_url: string | null;
|
|
6495
|
+
incoming_quantity: number;
|
|
6496
|
+
layers_per_cart: number;
|
|
6497
|
+
location: string;
|
|
6036
6498
|
min_quantity: number;
|
|
6037
6499
|
plants_per_crate: number;
|
|
6038
6500
|
product: string;
|
|
@@ -7160,7 +7622,13 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
|
|
|
7160
7622
|
connection_id: string | null;
|
|
7161
7623
|
created_at: string;
|
|
7162
7624
|
data: import("../integrations/supabase/types").Json;
|
|
7625
|
+
floriday_id: string | null;
|
|
7626
|
+
floriday_link_error: string | null;
|
|
7627
|
+
floriday_link_status: string;
|
|
7163
7628
|
id: string;
|
|
7629
|
+
last_floriday_sync_at: string | null;
|
|
7630
|
+
missing_required_fields: string[];
|
|
7631
|
+
source: string;
|
|
7164
7632
|
updated_at: string;
|
|
7165
7633
|
user_id: string;
|
|
7166
7634
|
};
|
|
@@ -7168,7 +7636,13 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
|
|
|
7168
7636
|
connection_id?: string | null;
|
|
7169
7637
|
created_at?: string;
|
|
7170
7638
|
data?: import("../integrations/supabase/types").Json;
|
|
7639
|
+
floriday_id?: string | null;
|
|
7640
|
+
floriday_link_error?: string | null;
|
|
7641
|
+
floriday_link_status?: string;
|
|
7171
7642
|
id?: string;
|
|
7643
|
+
last_floriday_sync_at?: string | null;
|
|
7644
|
+
missing_required_fields?: string[];
|
|
7645
|
+
source?: string;
|
|
7172
7646
|
updated_at?: string;
|
|
7173
7647
|
user_id: string;
|
|
7174
7648
|
};
|
|
@@ -7176,7 +7650,55 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
|
|
|
7176
7650
|
connection_id?: string | null;
|
|
7177
7651
|
created_at?: string;
|
|
7178
7652
|
data?: import("../integrations/supabase/types").Json;
|
|
7653
|
+
floriday_id?: string | null;
|
|
7654
|
+
floriday_link_error?: string | null;
|
|
7655
|
+
floriday_link_status?: string;
|
|
7179
7656
|
id?: string;
|
|
7657
|
+
last_floriday_sync_at?: string | null;
|
|
7658
|
+
missing_required_fields?: string[];
|
|
7659
|
+
source?: string;
|
|
7660
|
+
updated_at?: string;
|
|
7661
|
+
user_id?: string;
|
|
7662
|
+
};
|
|
7663
|
+
Relationships: [];
|
|
7664
|
+
};
|
|
7665
|
+
trade_item_stock: {
|
|
7666
|
+
Row: {
|
|
7667
|
+
connection_id: string;
|
|
7668
|
+
created_at: string;
|
|
7669
|
+
id: string;
|
|
7670
|
+
incoming_stock: number;
|
|
7671
|
+
minimum_stock: number;
|
|
7672
|
+
notes: string | null;
|
|
7673
|
+
physical_stock: number;
|
|
7674
|
+
reserved_stock: number;
|
|
7675
|
+
trade_item_key: string;
|
|
7676
|
+
updated_at: string;
|
|
7677
|
+
user_id: string;
|
|
7678
|
+
};
|
|
7679
|
+
Insert: {
|
|
7680
|
+
connection_id: string;
|
|
7681
|
+
created_at?: string;
|
|
7682
|
+
id?: string;
|
|
7683
|
+
incoming_stock?: number;
|
|
7684
|
+
minimum_stock?: number;
|
|
7685
|
+
notes?: string | null;
|
|
7686
|
+
physical_stock?: number;
|
|
7687
|
+
reserved_stock?: number;
|
|
7688
|
+
trade_item_key: string;
|
|
7689
|
+
updated_at?: string;
|
|
7690
|
+
user_id: string;
|
|
7691
|
+
};
|
|
7692
|
+
Update: {
|
|
7693
|
+
connection_id?: string;
|
|
7694
|
+
created_at?: string;
|
|
7695
|
+
id?: string;
|
|
7696
|
+
incoming_stock?: number;
|
|
7697
|
+
minimum_stock?: number;
|
|
7698
|
+
notes?: string | null;
|
|
7699
|
+
physical_stock?: number;
|
|
7700
|
+
reserved_stock?: number;
|
|
7701
|
+
trade_item_key?: string;
|
|
7180
7702
|
updated_at?: string;
|
|
7181
7703
|
user_id?: string;
|
|
7182
7704
|
};
|
|
@@ -7526,6 +8048,7 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
|
|
|
7526
8048
|
};
|
|
7527
8049
|
twinfield_invoice_sync_logs: {
|
|
7528
8050
|
Row: {
|
|
8051
|
+
action_type: string | null;
|
|
7529
8052
|
created_at: string;
|
|
7530
8053
|
details: import("../integrations/supabase/types").Json | null;
|
|
7531
8054
|
duration_ms: number | null;
|
|
@@ -7538,6 +8061,7 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
|
|
|
7538
8061
|
user_id: string;
|
|
7539
8062
|
};
|
|
7540
8063
|
Insert: {
|
|
8064
|
+
action_type?: string | null;
|
|
7541
8065
|
created_at?: string;
|
|
7542
8066
|
details?: import("../integrations/supabase/types").Json | null;
|
|
7543
8067
|
duration_ms?: number | null;
|
|
@@ -7550,6 +8074,7 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
|
|
|
7550
8074
|
user_id: string;
|
|
7551
8075
|
};
|
|
7552
8076
|
Update: {
|
|
8077
|
+
action_type?: string | null;
|
|
7553
8078
|
created_at?: string;
|
|
7554
8079
|
details?: import("../integrations/supabase/types").Json | null;
|
|
7555
8080
|
duration_ms?: number | null;
|
|
@@ -7785,6 +8310,57 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
|
|
|
7785
8310
|
referencedColumns: ["id"];
|
|
7786
8311
|
}];
|
|
7787
8312
|
};
|
|
8313
|
+
twinfield_request_metrics: {
|
|
8314
|
+
Row: {
|
|
8315
|
+
bucket_hour: string;
|
|
8316
|
+
connection_id: string;
|
|
8317
|
+
error_count: number;
|
|
8318
|
+
rate_limited_count: number;
|
|
8319
|
+
request_count: number;
|
|
8320
|
+
updated_at: string;
|
|
8321
|
+
};
|
|
8322
|
+
Insert: {
|
|
8323
|
+
bucket_hour: string;
|
|
8324
|
+
connection_id: string;
|
|
8325
|
+
error_count?: number;
|
|
8326
|
+
rate_limited_count?: number;
|
|
8327
|
+
request_count?: number;
|
|
8328
|
+
updated_at?: string;
|
|
8329
|
+
};
|
|
8330
|
+
Update: {
|
|
8331
|
+
bucket_hour?: string;
|
|
8332
|
+
connection_id?: string;
|
|
8333
|
+
error_count?: number;
|
|
8334
|
+
rate_limited_count?: number;
|
|
8335
|
+
request_count?: number;
|
|
8336
|
+
updated_at?: string;
|
|
8337
|
+
};
|
|
8338
|
+
Relationships: [];
|
|
8339
|
+
};
|
|
8340
|
+
twinfield_session_cache: {
|
|
8341
|
+
Row: {
|
|
8342
|
+
cluster: string;
|
|
8343
|
+
created_at: string;
|
|
8344
|
+
expires_at: string;
|
|
8345
|
+
session_id: string;
|
|
8346
|
+
user_id: string;
|
|
8347
|
+
};
|
|
8348
|
+
Insert: {
|
|
8349
|
+
cluster: string;
|
|
8350
|
+
created_at?: string;
|
|
8351
|
+
expires_at: string;
|
|
8352
|
+
session_id: string;
|
|
8353
|
+
user_id: string;
|
|
8354
|
+
};
|
|
8355
|
+
Update: {
|
|
8356
|
+
cluster?: string;
|
|
8357
|
+
created_at?: string;
|
|
8358
|
+
expires_at?: string;
|
|
8359
|
+
session_id?: string;
|
|
8360
|
+
user_id?: string;
|
|
8361
|
+
};
|
|
8362
|
+
Relationships: [];
|
|
8363
|
+
};
|
|
7788
8364
|
twinfield_settings: {
|
|
7789
8365
|
Row: {
|
|
7790
8366
|
active_environment: string;
|
|
@@ -7896,6 +8472,72 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
|
|
|
7896
8472
|
referencedColumns: ["id"];
|
|
7897
8473
|
}];
|
|
7898
8474
|
};
|
|
8475
|
+
voorraad_media_upload_failures: {
|
|
8476
|
+
Row: {
|
|
8477
|
+
action: string;
|
|
8478
|
+
attempt_number: number;
|
|
8479
|
+
caller: string;
|
|
8480
|
+
client_user_id: string | null;
|
|
8481
|
+
content_type: string | null;
|
|
8482
|
+
created_at: string;
|
|
8483
|
+
environment: string;
|
|
8484
|
+
error_message: string | null;
|
|
8485
|
+
filename: string | null;
|
|
8486
|
+
id: string;
|
|
8487
|
+
idempotency_key: string | null;
|
|
8488
|
+
module: string;
|
|
8489
|
+
path: string;
|
|
8490
|
+
reference_id: string | null;
|
|
8491
|
+
request_body_hash: string | null;
|
|
8492
|
+
request_timestamp: number | null;
|
|
8493
|
+
response_content_type: string | null;
|
|
8494
|
+
response_status: number | null;
|
|
8495
|
+
size_bytes: number | null;
|
|
8496
|
+
};
|
|
8497
|
+
Insert: {
|
|
8498
|
+
action?: string;
|
|
8499
|
+
attempt_number?: number;
|
|
8500
|
+
caller?: string;
|
|
8501
|
+
client_user_id?: string | null;
|
|
8502
|
+
content_type?: string | null;
|
|
8503
|
+
created_at?: string;
|
|
8504
|
+
environment: string;
|
|
8505
|
+
error_message?: string | null;
|
|
8506
|
+
filename?: string | null;
|
|
8507
|
+
id?: string;
|
|
8508
|
+
idempotency_key?: string | null;
|
|
8509
|
+
module?: string;
|
|
8510
|
+
path: string;
|
|
8511
|
+
reference_id?: string | null;
|
|
8512
|
+
request_body_hash?: string | null;
|
|
8513
|
+
request_timestamp?: number | null;
|
|
8514
|
+
response_content_type?: string | null;
|
|
8515
|
+
response_status?: number | null;
|
|
8516
|
+
size_bytes?: number | null;
|
|
8517
|
+
};
|
|
8518
|
+
Update: {
|
|
8519
|
+
action?: string;
|
|
8520
|
+
attempt_number?: number;
|
|
8521
|
+
caller?: string;
|
|
8522
|
+
client_user_id?: string | null;
|
|
8523
|
+
content_type?: string | null;
|
|
8524
|
+
created_at?: string;
|
|
8525
|
+
environment?: string;
|
|
8526
|
+
error_message?: string | null;
|
|
8527
|
+
filename?: string | null;
|
|
8528
|
+
id?: string;
|
|
8529
|
+
idempotency_key?: string | null;
|
|
8530
|
+
module?: string;
|
|
8531
|
+
path?: string;
|
|
8532
|
+
reference_id?: string | null;
|
|
8533
|
+
request_body_hash?: string | null;
|
|
8534
|
+
request_timestamp?: number | null;
|
|
8535
|
+
response_content_type?: string | null;
|
|
8536
|
+
response_status?: number | null;
|
|
8537
|
+
size_bytes?: number | null;
|
|
8538
|
+
};
|
|
8539
|
+
Relationships: [];
|
|
8540
|
+
};
|
|
7899
8541
|
voorraad_publish_attempts: {
|
|
7900
8542
|
Row: {
|
|
7901
8543
|
action: string;
|
|
@@ -8300,6 +8942,35 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
|
|
|
8300
8942
|
};
|
|
8301
8943
|
Relationships: [];
|
|
8302
8944
|
};
|
|
8945
|
+
manufacture_product_possible_stock_view: {
|
|
8946
|
+
Row: {
|
|
8947
|
+
component_count: number | null;
|
|
8948
|
+
manufacture_product_id: string | null;
|
|
8949
|
+
possible_stock: number | null;
|
|
8950
|
+
};
|
|
8951
|
+
Relationships: [];
|
|
8952
|
+
};
|
|
8953
|
+
product_group_stock_view: {
|
|
8954
|
+
Row: {
|
|
8955
|
+
item_count: number | null;
|
|
8956
|
+
product_group_id: string | null;
|
|
8957
|
+
total_stock: number | null;
|
|
8958
|
+
};
|
|
8959
|
+
Relationships: [{
|
|
8960
|
+
foreignKeyName: "product_group_items_product_group_id_fkey";
|
|
8961
|
+
columns: ["product_group_id"];
|
|
8962
|
+
isOneToOne: false;
|
|
8963
|
+
referencedRelation: "product_groups";
|
|
8964
|
+
referencedColumns: ["id"];
|
|
8965
|
+
}];
|
|
8966
|
+
};
|
|
8967
|
+
trade_item_stock_view: {
|
|
8968
|
+
Row: {
|
|
8969
|
+
stock: number | null;
|
|
8970
|
+
trade_item_id: string | null;
|
|
8971
|
+
};
|
|
8972
|
+
Relationships: [];
|
|
8973
|
+
};
|
|
8303
8974
|
v_external_customers_exact: {
|
|
8304
8975
|
Row: {
|
|
8305
8976
|
account_number: string | null;
|
|
@@ -8555,6 +9226,29 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
|
|
|
8555
9226
|
};
|
|
8556
9227
|
Returns: number;
|
|
8557
9228
|
};
|
|
9229
|
+
assign_cart_numbers: {
|
|
9230
|
+
Args: {
|
|
9231
|
+
p_carts: import("../integrations/supabase/types").Json;
|
|
9232
|
+
};
|
|
9233
|
+
Returns: {
|
|
9234
|
+
cart_index: number;
|
|
9235
|
+
cart_number: string;
|
|
9236
|
+
day_seq: number;
|
|
9237
|
+
order_id: string;
|
|
9238
|
+
order_source: string;
|
|
9239
|
+
pick_date: string;
|
|
9240
|
+
status: string;
|
|
9241
|
+
}[];
|
|
9242
|
+
};
|
|
9243
|
+
assign_floriday_order_numbers: {
|
|
9244
|
+
Args: {
|
|
9245
|
+
p_ids: string[];
|
|
9246
|
+
};
|
|
9247
|
+
Returns: {
|
|
9248
|
+
floriday_id: string;
|
|
9249
|
+
order_number: string;
|
|
9250
|
+
}[];
|
|
9251
|
+
};
|
|
8558
9252
|
call_exact_route: {
|
|
8559
9253
|
Args: {
|
|
8560
9254
|
path: string;
|
|
@@ -8565,10 +9259,37 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
|
|
|
8565
9259
|
Args: never;
|
|
8566
9260
|
Returns: number;
|
|
8567
9261
|
};
|
|
9262
|
+
control_get_todays_carts: {
|
|
9263
|
+
Args: never;
|
|
9264
|
+
Returns: {
|
|
9265
|
+
cart_index: number;
|
|
9266
|
+
cart_number: string;
|
|
9267
|
+
cart_number_id: string;
|
|
9268
|
+
order_id: string;
|
|
9269
|
+
order_source: string;
|
|
9270
|
+
pick_date: string;
|
|
9271
|
+
status: string;
|
|
9272
|
+
}[];
|
|
9273
|
+
};
|
|
9274
|
+
count_distinct_regulatory_products: {
|
|
9275
|
+
Args: never;
|
|
9276
|
+
Returns: number;
|
|
9277
|
+
};
|
|
8568
9278
|
current_monteur_id: {
|
|
8569
9279
|
Args: never;
|
|
8570
9280
|
Returns: string;
|
|
8571
9281
|
};
|
|
9282
|
+
dashboard_alert_counts: {
|
|
9283
|
+
Args: never;
|
|
9284
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
9285
|
+
};
|
|
9286
|
+
dashboard_alert_rows: {
|
|
9287
|
+
Args: {
|
|
9288
|
+
check_id: string;
|
|
9289
|
+
row_limit?: number;
|
|
9290
|
+
};
|
|
9291
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
9292
|
+
};
|
|
8572
9293
|
dashboard_list_public_schema: {
|
|
8573
9294
|
Args: never;
|
|
8574
9295
|
Returns: {
|
|
@@ -8649,6 +9370,13 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
|
|
|
8649
9370
|
};
|
|
8650
9371
|
Returns: boolean;
|
|
8651
9372
|
};
|
|
9373
|
+
format_cart_number: {
|
|
9374
|
+
Args: {
|
|
9375
|
+
p_pick_date: string;
|
|
9376
|
+
p_seq: number;
|
|
9377
|
+
};
|
|
9378
|
+
Returns: string;
|
|
9379
|
+
};
|
|
8652
9380
|
get_active_floriday_connection_public: {
|
|
8653
9381
|
Args: never;
|
|
8654
9382
|
Returns: {
|
|
@@ -8764,6 +9492,12 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
|
|
|
8764
9492
|
};
|
|
8765
9493
|
Returns: import("../integrations/supabase/types").Json;
|
|
8766
9494
|
};
|
|
9495
|
+
get_or_assign_floriday_order_number: {
|
|
9496
|
+
Args: {
|
|
9497
|
+
p_floriday_id: string;
|
|
9498
|
+
};
|
|
9499
|
+
Returns: string;
|
|
9500
|
+
};
|
|
8767
9501
|
get_room_busy_windows: {
|
|
8768
9502
|
Args: {
|
|
8769
9503
|
p_from: string;
|
|
@@ -8810,6 +9544,12 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
|
|
|
8810
9544
|
Args: never;
|
|
8811
9545
|
Returns: boolean;
|
|
8812
9546
|
};
|
|
9547
|
+
next_order_number: {
|
|
9548
|
+
Args: {
|
|
9549
|
+
p_prefix: string;
|
|
9550
|
+
};
|
|
9551
|
+
Returns: string;
|
|
9552
|
+
};
|
|
8813
9553
|
next_work_order_number: {
|
|
8814
9554
|
Args: {
|
|
8815
9555
|
p_parent_work_order_id?: string;
|
|
@@ -8823,6 +9563,47 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
|
|
|
8823
9563
|
};
|
|
8824
9564
|
Returns: string;
|
|
8825
9565
|
};
|
|
9566
|
+
pickstation_get_orders_raw: {
|
|
9567
|
+
Args: never;
|
|
9568
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
9569
|
+
};
|
|
9570
|
+
pickstation_get_settings: {
|
|
9571
|
+
Args: never;
|
|
9572
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
9573
|
+
};
|
|
9574
|
+
pickstation_log_print: {
|
|
9575
|
+
Args: {
|
|
9576
|
+
p_customer_name: string;
|
|
9577
|
+
p_documents: string[];
|
|
9578
|
+
p_ip_address: string;
|
|
9579
|
+
p_order_id: string;
|
|
9580
|
+
p_order_number: string;
|
|
9581
|
+
};
|
|
9582
|
+
Returns: undefined;
|
|
9583
|
+
};
|
|
9584
|
+
pickstation_set_cart_status: {
|
|
9585
|
+
Args: {
|
|
9586
|
+
p_cart_index: number;
|
|
9587
|
+
p_order_id: string;
|
|
9588
|
+
p_order_source: string;
|
|
9589
|
+
p_status: string;
|
|
9590
|
+
};
|
|
9591
|
+
Returns: undefined;
|
|
9592
|
+
};
|
|
9593
|
+
refresh_floricode_derived_code_lists: {
|
|
9594
|
+
Args: never;
|
|
9595
|
+
Returns: {
|
|
9596
|
+
environment: string;
|
|
9597
|
+
list_name: string;
|
|
9598
|
+
row_count: number;
|
|
9599
|
+
}[];
|
|
9600
|
+
};
|
|
9601
|
+
refresh_floricode_derived_for_product: {
|
|
9602
|
+
Args: {
|
|
9603
|
+
p_product_code: string;
|
|
9604
|
+
};
|
|
9605
|
+
Returns: number;
|
|
9606
|
+
};
|
|
8826
9607
|
reset_floriday_sync_cursor: {
|
|
8827
9608
|
Args: {
|
|
8828
9609
|
p_connection_id: string;
|
|
@@ -9146,6 +9927,7 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
9146
9927
|
max_workdays_earlier_pick: number;
|
|
9147
9928
|
pick_days_before_transport: number;
|
|
9148
9929
|
pick_distribution_enabled: boolean;
|
|
9930
|
+
pick_weekdays: number[];
|
|
9149
9931
|
signup_mail_enabled: boolean;
|
|
9150
9932
|
signup_mail_lead_minutes: number;
|
|
9151
9933
|
signup_mail_purpose: string;
|
|
@@ -9159,6 +9941,7 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
9159
9941
|
max_workdays_earlier_pick?: number;
|
|
9160
9942
|
pick_days_before_transport?: number;
|
|
9161
9943
|
pick_distribution_enabled?: boolean;
|
|
9944
|
+
pick_weekdays?: number[];
|
|
9162
9945
|
signup_mail_enabled?: boolean;
|
|
9163
9946
|
signup_mail_lead_minutes?: number;
|
|
9164
9947
|
signup_mail_purpose?: string;
|
|
@@ -9172,6 +9955,7 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
9172
9955
|
max_workdays_earlier_pick?: number;
|
|
9173
9956
|
pick_days_before_transport?: number;
|
|
9174
9957
|
pick_distribution_enabled?: boolean;
|
|
9958
|
+
pick_weekdays?: number[];
|
|
9175
9959
|
signup_mail_enabled?: boolean;
|
|
9176
9960
|
signup_mail_lead_minutes?: number;
|
|
9177
9961
|
signup_mail_purpose?: string;
|
|
@@ -9583,6 +10367,48 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
9583
10367
|
referencedColumns: ["id"];
|
|
9584
10368
|
}];
|
|
9585
10369
|
};
|
|
10370
|
+
carrier_signup_dispatch_runs: {
|
|
10371
|
+
Row: {
|
|
10372
|
+
detail: import("../integrations/supabase/types").Json | null;
|
|
10373
|
+
error: string | null;
|
|
10374
|
+
finished_at: string | null;
|
|
10375
|
+
groups: number;
|
|
10376
|
+
id: string;
|
|
10377
|
+
ok: boolean;
|
|
10378
|
+
reason: string | null;
|
|
10379
|
+
sent: number;
|
|
10380
|
+
skipped: import("../integrations/supabase/types").Json;
|
|
10381
|
+
started_at: string;
|
|
10382
|
+
unassigned: import("../integrations/supabase/types").Json;
|
|
10383
|
+
};
|
|
10384
|
+
Insert: {
|
|
10385
|
+
detail?: import("../integrations/supabase/types").Json | null;
|
|
10386
|
+
error?: string | null;
|
|
10387
|
+
finished_at?: string | null;
|
|
10388
|
+
groups?: number;
|
|
10389
|
+
id?: string;
|
|
10390
|
+
ok?: boolean;
|
|
10391
|
+
reason?: string | null;
|
|
10392
|
+
sent?: number;
|
|
10393
|
+
skipped?: import("../integrations/supabase/types").Json;
|
|
10394
|
+
started_at?: string;
|
|
10395
|
+
unassigned?: import("../integrations/supabase/types").Json;
|
|
10396
|
+
};
|
|
10397
|
+
Update: {
|
|
10398
|
+
detail?: import("../integrations/supabase/types").Json | null;
|
|
10399
|
+
error?: string | null;
|
|
10400
|
+
finished_at?: string | null;
|
|
10401
|
+
groups?: number;
|
|
10402
|
+
id?: string;
|
|
10403
|
+
ok?: boolean;
|
|
10404
|
+
reason?: string | null;
|
|
10405
|
+
sent?: number;
|
|
10406
|
+
skipped?: import("../integrations/supabase/types").Json;
|
|
10407
|
+
started_at?: string;
|
|
10408
|
+
unassigned?: import("../integrations/supabase/types").Json;
|
|
10409
|
+
};
|
|
10410
|
+
Relationships: [];
|
|
10411
|
+
};
|
|
9586
10412
|
carrier_signup_dispatches: {
|
|
9587
10413
|
Row: {
|
|
9588
10414
|
carrier_id: string;
|
|
@@ -9634,6 +10460,7 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
9634
10460
|
contact_person: string | null;
|
|
9635
10461
|
created_at: string;
|
|
9636
10462
|
delivery_days: number | null;
|
|
10463
|
+
delivery_weekdays: number[];
|
|
9637
10464
|
email: string | null;
|
|
9638
10465
|
id: string;
|
|
9639
10466
|
is_default: boolean;
|
|
@@ -9641,6 +10468,7 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
9641
10468
|
notes: string | null;
|
|
9642
10469
|
phone: string | null;
|
|
9643
10470
|
pickup_moments: import("../integrations/supabase/types").Json;
|
|
10471
|
+
pickup_weekdays: number[];
|
|
9644
10472
|
service_cities: string[];
|
|
9645
10473
|
service_countries: string[];
|
|
9646
10474
|
service_provinces: string[];
|
|
@@ -9656,6 +10484,7 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
9656
10484
|
contact_person?: string | null;
|
|
9657
10485
|
created_at?: string;
|
|
9658
10486
|
delivery_days?: number | null;
|
|
10487
|
+
delivery_weekdays?: number[];
|
|
9659
10488
|
email?: string | null;
|
|
9660
10489
|
id?: string;
|
|
9661
10490
|
is_default?: boolean;
|
|
@@ -9663,6 +10492,7 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
9663
10492
|
notes?: string | null;
|
|
9664
10493
|
phone?: string | null;
|
|
9665
10494
|
pickup_moments?: import("../integrations/supabase/types").Json;
|
|
10495
|
+
pickup_weekdays?: number[];
|
|
9666
10496
|
service_cities?: string[];
|
|
9667
10497
|
service_countries?: string[];
|
|
9668
10498
|
service_provinces?: string[];
|
|
@@ -9678,6 +10508,7 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
9678
10508
|
contact_person?: string | null;
|
|
9679
10509
|
created_at?: string;
|
|
9680
10510
|
delivery_days?: number | null;
|
|
10511
|
+
delivery_weekdays?: number[];
|
|
9681
10512
|
email?: string | null;
|
|
9682
10513
|
id?: string;
|
|
9683
10514
|
is_default?: boolean;
|
|
@@ -9685,6 +10516,7 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
9685
10516
|
notes?: string | null;
|
|
9686
10517
|
phone?: string | null;
|
|
9687
10518
|
pickup_moments?: import("../integrations/supabase/types").Json;
|
|
10519
|
+
pickup_weekdays?: number[];
|
|
9688
10520
|
service_cities?: string[];
|
|
9689
10521
|
service_countries?: string[];
|
|
9690
10522
|
service_provinces?: string[];
|
|
@@ -9697,6 +10529,177 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
9697
10529
|
};
|
|
9698
10530
|
Relationships: [];
|
|
9699
10531
|
};
|
|
10532
|
+
cart_control_draft: {
|
|
10533
|
+
Row: {
|
|
10534
|
+
cart_states: import("../integrations/supabase/types").Json;
|
|
10535
|
+
checked_keys: import("../integrations/supabase/types").Json;
|
|
10536
|
+
draft_date: string;
|
|
10537
|
+
form_state: import("../integrations/supabase/types").Json;
|
|
10538
|
+
notes: string;
|
|
10539
|
+
updated_at: string;
|
|
10540
|
+
user_id: string;
|
|
10541
|
+
};
|
|
10542
|
+
Insert: {
|
|
10543
|
+
cart_states?: import("../integrations/supabase/types").Json;
|
|
10544
|
+
checked_keys?: import("../integrations/supabase/types").Json;
|
|
10545
|
+
draft_date: string;
|
|
10546
|
+
form_state?: import("../integrations/supabase/types").Json;
|
|
10547
|
+
notes?: string;
|
|
10548
|
+
updated_at?: string;
|
|
10549
|
+
user_id: string;
|
|
10550
|
+
};
|
|
10551
|
+
Update: {
|
|
10552
|
+
cart_states?: import("../integrations/supabase/types").Json;
|
|
10553
|
+
checked_keys?: import("../integrations/supabase/types").Json;
|
|
10554
|
+
draft_date?: string;
|
|
10555
|
+
form_state?: import("../integrations/supabase/types").Json;
|
|
10556
|
+
notes?: string;
|
|
10557
|
+
updated_at?: string;
|
|
10558
|
+
user_id?: string;
|
|
10559
|
+
};
|
|
10560
|
+
Relationships: [];
|
|
10561
|
+
};
|
|
10562
|
+
cart_control_items: {
|
|
10563
|
+
Row: {
|
|
10564
|
+
action: string;
|
|
10565
|
+
block_reason: string | null;
|
|
10566
|
+
carrier_name: string | null;
|
|
10567
|
+
cart_index: number;
|
|
10568
|
+
cart_number_id: string | null;
|
|
10569
|
+
cart_number_label: string | null;
|
|
10570
|
+
created_at: string;
|
|
10571
|
+
customer_name: string | null;
|
|
10572
|
+
delivery_date: string | null;
|
|
10573
|
+
id: string;
|
|
10574
|
+
new_pick_date: string | null;
|
|
10575
|
+
order_id: string;
|
|
10576
|
+
order_number: string | null;
|
|
10577
|
+
order_source: string;
|
|
10578
|
+
pickup_date: string | null;
|
|
10579
|
+
session_id: string;
|
|
10580
|
+
};
|
|
10581
|
+
Insert: {
|
|
10582
|
+
action: string;
|
|
10583
|
+
block_reason?: string | null;
|
|
10584
|
+
carrier_name?: string | null;
|
|
10585
|
+
cart_index: number;
|
|
10586
|
+
cart_number_id?: string | null;
|
|
10587
|
+
cart_number_label?: string | null;
|
|
10588
|
+
created_at?: string;
|
|
10589
|
+
customer_name?: string | null;
|
|
10590
|
+
delivery_date?: string | null;
|
|
10591
|
+
id?: string;
|
|
10592
|
+
new_pick_date?: string | null;
|
|
10593
|
+
order_id: string;
|
|
10594
|
+
order_number?: string | null;
|
|
10595
|
+
order_source: string;
|
|
10596
|
+
pickup_date?: string | null;
|
|
10597
|
+
session_id: string;
|
|
10598
|
+
};
|
|
10599
|
+
Update: {
|
|
10600
|
+
action?: string;
|
|
10601
|
+
block_reason?: string | null;
|
|
10602
|
+
carrier_name?: string | null;
|
|
10603
|
+
cart_index?: number;
|
|
10604
|
+
cart_number_id?: string | null;
|
|
10605
|
+
cart_number_label?: string | null;
|
|
10606
|
+
created_at?: string;
|
|
10607
|
+
customer_name?: string | null;
|
|
10608
|
+
delivery_date?: string | null;
|
|
10609
|
+
id?: string;
|
|
10610
|
+
new_pick_date?: string | null;
|
|
10611
|
+
order_id?: string;
|
|
10612
|
+
order_number?: string | null;
|
|
10613
|
+
order_source?: string;
|
|
10614
|
+
pickup_date?: string | null;
|
|
10615
|
+
session_id?: string;
|
|
10616
|
+
};
|
|
10617
|
+
Relationships: [{
|
|
10618
|
+
foreignKeyName: "cart_control_items_session_id_fkey";
|
|
10619
|
+
columns: ["session_id"];
|
|
10620
|
+
isOneToOne: false;
|
|
10621
|
+
referencedRelation: "cart_control_sessions";
|
|
10622
|
+
referencedColumns: ["id"];
|
|
10623
|
+
}];
|
|
10624
|
+
};
|
|
10625
|
+
cart_control_sessions: {
|
|
10626
|
+
Row: {
|
|
10627
|
+
blocked_count: number;
|
|
10628
|
+
checked_count: number;
|
|
10629
|
+
control_date: string;
|
|
10630
|
+
created_at: string;
|
|
10631
|
+
id: string;
|
|
10632
|
+
notes: string | null;
|
|
10633
|
+
performed_at: string;
|
|
10634
|
+
rescheduled_count: number;
|
|
10635
|
+
total_carts: number;
|
|
10636
|
+
updated_at: string;
|
|
10637
|
+
user_id: string;
|
|
10638
|
+
};
|
|
10639
|
+
Insert: {
|
|
10640
|
+
blocked_count?: number;
|
|
10641
|
+
checked_count?: number;
|
|
10642
|
+
control_date?: string;
|
|
10643
|
+
created_at?: string;
|
|
10644
|
+
id?: string;
|
|
10645
|
+
notes?: string | null;
|
|
10646
|
+
performed_at?: string;
|
|
10647
|
+
rescheduled_count?: number;
|
|
10648
|
+
total_carts?: number;
|
|
10649
|
+
updated_at?: string;
|
|
10650
|
+
user_id: string;
|
|
10651
|
+
};
|
|
10652
|
+
Update: {
|
|
10653
|
+
blocked_count?: number;
|
|
10654
|
+
checked_count?: number;
|
|
10655
|
+
control_date?: string;
|
|
10656
|
+
created_at?: string;
|
|
10657
|
+
id?: string;
|
|
10658
|
+
notes?: string | null;
|
|
10659
|
+
performed_at?: string;
|
|
10660
|
+
rescheduled_count?: number;
|
|
10661
|
+
total_carts?: number;
|
|
10662
|
+
updated_at?: string;
|
|
10663
|
+
user_id?: string;
|
|
10664
|
+
};
|
|
10665
|
+
Relationships: [];
|
|
10666
|
+
};
|
|
10667
|
+
cart_numbers: {
|
|
10668
|
+
Row: {
|
|
10669
|
+
assigned_at: string;
|
|
10670
|
+
cart_index: number;
|
|
10671
|
+
cart_number: string;
|
|
10672
|
+
day_seq: number;
|
|
10673
|
+
id: string;
|
|
10674
|
+
order_id: string;
|
|
10675
|
+
order_source: string;
|
|
10676
|
+
pick_date: string;
|
|
10677
|
+
status: string;
|
|
10678
|
+
};
|
|
10679
|
+
Insert: {
|
|
10680
|
+
assigned_at?: string;
|
|
10681
|
+
cart_index: number;
|
|
10682
|
+
cart_number: string;
|
|
10683
|
+
day_seq: number;
|
|
10684
|
+
id?: string;
|
|
10685
|
+
order_id: string;
|
|
10686
|
+
order_source: string;
|
|
10687
|
+
pick_date: string;
|
|
10688
|
+
status?: string;
|
|
10689
|
+
};
|
|
10690
|
+
Update: {
|
|
10691
|
+
assigned_at?: string;
|
|
10692
|
+
cart_index?: number;
|
|
10693
|
+
cart_number?: string;
|
|
10694
|
+
day_seq?: number;
|
|
10695
|
+
id?: string;
|
|
10696
|
+
order_id?: string;
|
|
10697
|
+
order_source?: string;
|
|
10698
|
+
pick_date?: string;
|
|
10699
|
+
status?: string;
|
|
10700
|
+
};
|
|
10701
|
+
Relationships: [];
|
|
10702
|
+
};
|
|
9700
10703
|
cart_pick_overrides: {
|
|
9701
10704
|
Row: {
|
|
9702
10705
|
cart_index: number;
|
|
@@ -10369,6 +11372,54 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
10369
11372
|
referencedColumns: ["id"];
|
|
10370
11373
|
}];
|
|
10371
11374
|
};
|
|
11375
|
+
dashboard_critical_alerts: {
|
|
11376
|
+
Row: {
|
|
11377
|
+
alert_key: string;
|
|
11378
|
+
alert_type: string;
|
|
11379
|
+
created_at: string;
|
|
11380
|
+
description: string | null;
|
|
11381
|
+
id: string;
|
|
11382
|
+
metadata: import("../integrations/supabase/types").Json | null;
|
|
11383
|
+
priority: string;
|
|
11384
|
+
raised_at: string;
|
|
11385
|
+
related_cart_ids: string[] | null;
|
|
11386
|
+
resolved_at: string | null;
|
|
11387
|
+
title: string;
|
|
11388
|
+
updated_at: string;
|
|
11389
|
+
user_id: string;
|
|
11390
|
+
};
|
|
11391
|
+
Insert: {
|
|
11392
|
+
alert_key: string;
|
|
11393
|
+
alert_type: string;
|
|
11394
|
+
created_at?: string;
|
|
11395
|
+
description?: string | null;
|
|
11396
|
+
id?: string;
|
|
11397
|
+
metadata?: import("../integrations/supabase/types").Json | null;
|
|
11398
|
+
priority?: string;
|
|
11399
|
+
raised_at?: string;
|
|
11400
|
+
related_cart_ids?: string[] | null;
|
|
11401
|
+
resolved_at?: string | null;
|
|
11402
|
+
title: string;
|
|
11403
|
+
updated_at?: string;
|
|
11404
|
+
user_id: string;
|
|
11405
|
+
};
|
|
11406
|
+
Update: {
|
|
11407
|
+
alert_key?: string;
|
|
11408
|
+
alert_type?: string;
|
|
11409
|
+
created_at?: string;
|
|
11410
|
+
description?: string | null;
|
|
11411
|
+
id?: string;
|
|
11412
|
+
metadata?: import("../integrations/supabase/types").Json | null;
|
|
11413
|
+
priority?: string;
|
|
11414
|
+
raised_at?: string;
|
|
11415
|
+
related_cart_ids?: string[] | null;
|
|
11416
|
+
resolved_at?: string | null;
|
|
11417
|
+
title?: string;
|
|
11418
|
+
updated_at?: string;
|
|
11419
|
+
user_id?: string;
|
|
11420
|
+
};
|
|
11421
|
+
Relationships: [];
|
|
11422
|
+
};
|
|
10372
11423
|
dashboard_daily_reports: {
|
|
10373
11424
|
Row: {
|
|
10374
11425
|
created_at: string;
|
|
@@ -11779,6 +12830,7 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
11779
12830
|
created_at: string;
|
|
11780
12831
|
exact_article_id: string | null;
|
|
11781
12832
|
id: string;
|
|
12833
|
+
image_url: string | null;
|
|
11782
12834
|
is_active: boolean;
|
|
11783
12835
|
name: string;
|
|
11784
12836
|
price: number;
|
|
@@ -11789,6 +12841,7 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
11789
12841
|
created_at?: string;
|
|
11790
12842
|
exact_article_id?: string | null;
|
|
11791
12843
|
id?: string;
|
|
12844
|
+
image_url?: string | null;
|
|
11792
12845
|
is_active?: boolean;
|
|
11793
12846
|
name: string;
|
|
11794
12847
|
price?: number;
|
|
@@ -11799,6 +12852,7 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
11799
12852
|
created_at?: string;
|
|
11800
12853
|
exact_article_id?: string | null;
|
|
11801
12854
|
id?: string;
|
|
12855
|
+
image_url?: string | null;
|
|
11802
12856
|
is_active?: boolean;
|
|
11803
12857
|
name?: string;
|
|
11804
12858
|
price?: number;
|
|
@@ -11868,6 +12922,7 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
11868
12922
|
};
|
|
11869
12923
|
floricode_sync_state: {
|
|
11870
12924
|
Row: {
|
|
12925
|
+
cursor_skip: number;
|
|
11871
12926
|
error_message: string | null;
|
|
11872
12927
|
last_change_date_time: string | null;
|
|
11873
12928
|
last_sequence_number: number;
|
|
@@ -11877,6 +12932,7 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
11877
12932
|
updated_at: string;
|
|
11878
12933
|
};
|
|
11879
12934
|
Insert: {
|
|
12935
|
+
cursor_skip?: number;
|
|
11880
12936
|
error_message?: string | null;
|
|
11881
12937
|
last_change_date_time?: string | null;
|
|
11882
12938
|
last_sequence_number?: number;
|
|
@@ -11886,6 +12942,7 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
11886
12942
|
updated_at?: string;
|
|
11887
12943
|
};
|
|
11888
12944
|
Update: {
|
|
12945
|
+
cursor_skip?: number;
|
|
11889
12946
|
error_message?: string | null;
|
|
11890
12947
|
last_change_date_time?: string | null;
|
|
11891
12948
|
last_sequence_number?: number;
|
|
@@ -13033,6 +14090,24 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
13033
14090
|
};
|
|
13034
14091
|
Relationships: [];
|
|
13035
14092
|
};
|
|
14093
|
+
floriday_order_number_map: {
|
|
14094
|
+
Row: {
|
|
14095
|
+
created_at: string;
|
|
14096
|
+
floriday_id: string;
|
|
14097
|
+
order_number: string;
|
|
14098
|
+
};
|
|
14099
|
+
Insert: {
|
|
14100
|
+
created_at?: string;
|
|
14101
|
+
floriday_id: string;
|
|
14102
|
+
order_number: string;
|
|
14103
|
+
};
|
|
14104
|
+
Update: {
|
|
14105
|
+
created_at?: string;
|
|
14106
|
+
floriday_id?: string;
|
|
14107
|
+
order_number?: string;
|
|
14108
|
+
};
|
|
14109
|
+
Relationships: [];
|
|
14110
|
+
};
|
|
13036
14111
|
floriday_packings_cache: {
|
|
13037
14112
|
Row: {
|
|
13038
14113
|
connection_id: string;
|
|
@@ -14172,45 +15247,132 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
14172
15247
|
created_at: string;
|
|
14173
15248
|
folder: string;
|
|
14174
15249
|
id: string;
|
|
14175
|
-
imap_host: string;
|
|
14176
|
-
imap_port: number;
|
|
14177
|
-
imap_use_tls: boolean;
|
|
14178
|
-
imap_username: string;
|
|
14179
|
-
last_error: string | null;
|
|
14180
|
-
last_polled_at: string | null;
|
|
14181
|
-
last_uid_seen: number;
|
|
14182
|
-
polling_enabled: boolean;
|
|
14183
|
-
singleton: boolean;
|
|
15250
|
+
imap_host: string;
|
|
15251
|
+
imap_port: number;
|
|
15252
|
+
imap_use_tls: boolean;
|
|
15253
|
+
imap_username: string;
|
|
15254
|
+
last_error: string | null;
|
|
15255
|
+
last_polled_at: string | null;
|
|
15256
|
+
last_uid_seen: number;
|
|
15257
|
+
polling_enabled: boolean;
|
|
15258
|
+
singleton: boolean;
|
|
15259
|
+
updated_at: string;
|
|
15260
|
+
};
|
|
15261
|
+
Insert: {
|
|
15262
|
+
created_at?: string;
|
|
15263
|
+
folder?: string;
|
|
15264
|
+
id?: string;
|
|
15265
|
+
imap_host?: string;
|
|
15266
|
+
imap_port?: number;
|
|
15267
|
+
imap_use_tls?: boolean;
|
|
15268
|
+
imap_username?: string;
|
|
15269
|
+
last_error?: string | null;
|
|
15270
|
+
last_polled_at?: string | null;
|
|
15271
|
+
last_uid_seen?: number;
|
|
15272
|
+
polling_enabled?: boolean;
|
|
15273
|
+
singleton?: boolean;
|
|
15274
|
+
updated_at?: string;
|
|
15275
|
+
};
|
|
15276
|
+
Update: {
|
|
15277
|
+
created_at?: string;
|
|
15278
|
+
folder?: string;
|
|
15279
|
+
id?: string;
|
|
15280
|
+
imap_host?: string;
|
|
15281
|
+
imap_port?: number;
|
|
15282
|
+
imap_use_tls?: boolean;
|
|
15283
|
+
imap_username?: string;
|
|
15284
|
+
last_error?: string | null;
|
|
15285
|
+
last_polled_at?: string | null;
|
|
15286
|
+
last_uid_seen?: number;
|
|
15287
|
+
polling_enabled?: boolean;
|
|
15288
|
+
singleton?: boolean;
|
|
15289
|
+
updated_at?: string;
|
|
15290
|
+
};
|
|
15291
|
+
Relationships: [];
|
|
15292
|
+
};
|
|
15293
|
+
manufacture_product_components: {
|
|
15294
|
+
Row: {
|
|
15295
|
+
component_type: string;
|
|
15296
|
+
created_at: string;
|
|
15297
|
+
id: string;
|
|
15298
|
+
manufacture_product_id: string;
|
|
15299
|
+
product_group_id: string | null;
|
|
15300
|
+
quantity: number;
|
|
15301
|
+
trade_item_id: string | null;
|
|
15302
|
+
unit: string;
|
|
15303
|
+
};
|
|
15304
|
+
Insert: {
|
|
15305
|
+
component_type: string;
|
|
15306
|
+
created_at?: string;
|
|
15307
|
+
id?: string;
|
|
15308
|
+
manufacture_product_id: string;
|
|
15309
|
+
product_group_id?: string | null;
|
|
15310
|
+
quantity?: number;
|
|
15311
|
+
trade_item_id?: string | null;
|
|
15312
|
+
unit?: string;
|
|
15313
|
+
};
|
|
15314
|
+
Update: {
|
|
15315
|
+
component_type?: string;
|
|
15316
|
+
created_at?: string;
|
|
15317
|
+
id?: string;
|
|
15318
|
+
manufacture_product_id?: string;
|
|
15319
|
+
product_group_id?: string | null;
|
|
15320
|
+
quantity?: number;
|
|
15321
|
+
trade_item_id?: string | null;
|
|
15322
|
+
unit?: string;
|
|
15323
|
+
};
|
|
15324
|
+
Relationships: [{
|
|
15325
|
+
foreignKeyName: "manufacture_product_components_manufacture_product_id_fkey";
|
|
15326
|
+
columns: ["manufacture_product_id"];
|
|
15327
|
+
isOneToOne: false;
|
|
15328
|
+
referencedRelation: "manufacture_product_possible_stock_view";
|
|
15329
|
+
referencedColumns: ["manufacture_product_id"];
|
|
15330
|
+
}, {
|
|
15331
|
+
foreignKeyName: "manufacture_product_components_manufacture_product_id_fkey";
|
|
15332
|
+
columns: ["manufacture_product_id"];
|
|
15333
|
+
isOneToOne: false;
|
|
15334
|
+
referencedRelation: "manufacture_products";
|
|
15335
|
+
referencedColumns: ["id"];
|
|
15336
|
+
}, {
|
|
15337
|
+
foreignKeyName: "manufacture_product_components_product_group_id_fkey";
|
|
15338
|
+
columns: ["product_group_id"];
|
|
15339
|
+
isOneToOne: false;
|
|
15340
|
+
referencedRelation: "product_groups";
|
|
15341
|
+
referencedColumns: ["id"];
|
|
15342
|
+
}];
|
|
15343
|
+
};
|
|
15344
|
+
manufacture_products: {
|
|
15345
|
+
Row: {
|
|
15346
|
+
created_at: string;
|
|
15347
|
+
description: string | null;
|
|
15348
|
+
id: string;
|
|
15349
|
+
is_active: boolean;
|
|
15350
|
+
name: string;
|
|
15351
|
+
produced_stock: number;
|
|
15352
|
+
product_code: string;
|
|
15353
|
+
tenant_id: string;
|
|
14184
15354
|
updated_at: string;
|
|
14185
15355
|
};
|
|
14186
15356
|
Insert: {
|
|
14187
15357
|
created_at?: string;
|
|
14188
|
-
|
|
15358
|
+
description?: string | null;
|
|
14189
15359
|
id?: string;
|
|
14190
|
-
|
|
14191
|
-
|
|
14192
|
-
|
|
14193
|
-
|
|
14194
|
-
|
|
14195
|
-
last_polled_at?: string | null;
|
|
14196
|
-
last_uid_seen?: number;
|
|
14197
|
-
polling_enabled?: boolean;
|
|
14198
|
-
singleton?: boolean;
|
|
15360
|
+
is_active?: boolean;
|
|
15361
|
+
name: string;
|
|
15362
|
+
produced_stock?: number;
|
|
15363
|
+
product_code: string;
|
|
15364
|
+
tenant_id: string;
|
|
14199
15365
|
updated_at?: string;
|
|
14200
15366
|
};
|
|
14201
15367
|
Update: {
|
|
14202
15368
|
created_at?: string;
|
|
14203
|
-
|
|
15369
|
+
description?: string | null;
|
|
14204
15370
|
id?: string;
|
|
14205
|
-
|
|
14206
|
-
|
|
14207
|
-
|
|
14208
|
-
|
|
14209
|
-
|
|
14210
|
-
last_polled_at?: string | null;
|
|
14211
|
-
last_uid_seen?: number;
|
|
14212
|
-
polling_enabled?: boolean;
|
|
14213
|
-
singleton?: boolean;
|
|
15371
|
+
is_active?: boolean;
|
|
15372
|
+
name?: string;
|
|
15373
|
+
produced_stock?: number;
|
|
15374
|
+
product_code?: string;
|
|
15375
|
+
tenant_id?: string;
|
|
14214
15376
|
updated_at?: string;
|
|
14215
15377
|
};
|
|
14216
15378
|
Relationships: [];
|
|
@@ -14878,6 +16040,24 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
14878
16040
|
referencedColumns: ["id"];
|
|
14879
16041
|
}];
|
|
14880
16042
|
};
|
|
16043
|
+
order_number_counters: {
|
|
16044
|
+
Row: {
|
|
16045
|
+
last_value: number;
|
|
16046
|
+
updated_at: string;
|
|
16047
|
+
year: number;
|
|
16048
|
+
};
|
|
16049
|
+
Insert: {
|
|
16050
|
+
last_value?: number;
|
|
16051
|
+
updated_at?: string;
|
|
16052
|
+
year: number;
|
|
16053
|
+
};
|
|
16054
|
+
Update: {
|
|
16055
|
+
last_value?: number;
|
|
16056
|
+
updated_at?: string;
|
|
16057
|
+
year?: number;
|
|
16058
|
+
};
|
|
16059
|
+
Relationships: [];
|
|
16060
|
+
};
|
|
14881
16061
|
orders: {
|
|
14882
16062
|
Row: {
|
|
14883
16063
|
created_at: string;
|
|
@@ -14890,6 +16070,7 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
14890
16070
|
notes: string | null;
|
|
14891
16071
|
order_date: string;
|
|
14892
16072
|
order_number: string;
|
|
16073
|
+
order_source: string;
|
|
14893
16074
|
status: string;
|
|
14894
16075
|
total: string;
|
|
14895
16076
|
updated_at: string;
|
|
@@ -14905,6 +16086,7 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
14905
16086
|
notes?: string | null;
|
|
14906
16087
|
order_date?: string;
|
|
14907
16088
|
order_number: string;
|
|
16089
|
+
order_source?: string;
|
|
14908
16090
|
status?: string;
|
|
14909
16091
|
total?: string;
|
|
14910
16092
|
updated_at?: string;
|
|
@@ -14920,6 +16102,7 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
14920
16102
|
notes?: string | null;
|
|
14921
16103
|
order_date?: string;
|
|
14922
16104
|
order_number?: string;
|
|
16105
|
+
order_source?: string;
|
|
14923
16106
|
status?: string;
|
|
14924
16107
|
total?: string;
|
|
14925
16108
|
updated_at?: string;
|
|
@@ -15154,6 +16337,66 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
15154
16337
|
};
|
|
15155
16338
|
Relationships: [];
|
|
15156
16339
|
};
|
|
16340
|
+
product_group_items: {
|
|
16341
|
+
Row: {
|
|
16342
|
+
created_at: string;
|
|
16343
|
+
id: string;
|
|
16344
|
+
product_group_id: string;
|
|
16345
|
+
quantity: number;
|
|
16346
|
+
trade_item_id: string;
|
|
16347
|
+
};
|
|
16348
|
+
Insert: {
|
|
16349
|
+
created_at?: string;
|
|
16350
|
+
id?: string;
|
|
16351
|
+
product_group_id: string;
|
|
16352
|
+
quantity?: number;
|
|
16353
|
+
trade_item_id: string;
|
|
16354
|
+
};
|
|
16355
|
+
Update: {
|
|
16356
|
+
created_at?: string;
|
|
16357
|
+
id?: string;
|
|
16358
|
+
product_group_id?: string;
|
|
16359
|
+
quantity?: number;
|
|
16360
|
+
trade_item_id?: string;
|
|
16361
|
+
};
|
|
16362
|
+
Relationships: [{
|
|
16363
|
+
foreignKeyName: "product_group_items_product_group_id_fkey";
|
|
16364
|
+
columns: ["product_group_id"];
|
|
16365
|
+
isOneToOne: false;
|
|
16366
|
+
referencedRelation: "product_groups";
|
|
16367
|
+
referencedColumns: ["id"];
|
|
16368
|
+
}];
|
|
16369
|
+
};
|
|
16370
|
+
product_groups: {
|
|
16371
|
+
Row: {
|
|
16372
|
+
created_at: string;
|
|
16373
|
+
description: string | null;
|
|
16374
|
+
id: string;
|
|
16375
|
+
is_active: boolean;
|
|
16376
|
+
name: string;
|
|
16377
|
+
tenant_id: string;
|
|
16378
|
+
updated_at: string;
|
|
16379
|
+
};
|
|
16380
|
+
Insert: {
|
|
16381
|
+
created_at?: string;
|
|
16382
|
+
description?: string | null;
|
|
16383
|
+
id?: string;
|
|
16384
|
+
is_active?: boolean;
|
|
16385
|
+
name: string;
|
|
16386
|
+
tenant_id: string;
|
|
16387
|
+
updated_at?: string;
|
|
16388
|
+
};
|
|
16389
|
+
Update: {
|
|
16390
|
+
created_at?: string;
|
|
16391
|
+
description?: string | null;
|
|
16392
|
+
id?: string;
|
|
16393
|
+
is_active?: boolean;
|
|
16394
|
+
name?: string;
|
|
16395
|
+
tenant_id?: string;
|
|
16396
|
+
updated_at?: string;
|
|
16397
|
+
};
|
|
16398
|
+
Relationships: [];
|
|
16399
|
+
};
|
|
15157
16400
|
products: {
|
|
15158
16401
|
Row: {
|
|
15159
16402
|
barcode: string | null;
|
|
@@ -16293,7 +17536,13 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
16293
17536
|
connection_id: string | null;
|
|
16294
17537
|
created_at: string;
|
|
16295
17538
|
data: import("../integrations/supabase/types").Json;
|
|
17539
|
+
floriday_id: string | null;
|
|
17540
|
+
floriday_link_error: string | null;
|
|
17541
|
+
floriday_link_status: string;
|
|
16296
17542
|
id: string;
|
|
17543
|
+
last_floriday_sync_at: string | null;
|
|
17544
|
+
missing_required_fields: string[];
|
|
17545
|
+
source: string;
|
|
16297
17546
|
updated_at: string;
|
|
16298
17547
|
user_id: string;
|
|
16299
17548
|
};
|
|
@@ -16301,7 +17550,13 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
16301
17550
|
connection_id?: string | null;
|
|
16302
17551
|
created_at?: string;
|
|
16303
17552
|
data?: import("../integrations/supabase/types").Json;
|
|
17553
|
+
floriday_id?: string | null;
|
|
17554
|
+
floriday_link_error?: string | null;
|
|
17555
|
+
floriday_link_status?: string;
|
|
16304
17556
|
id?: string;
|
|
17557
|
+
last_floriday_sync_at?: string | null;
|
|
17558
|
+
missing_required_fields?: string[];
|
|
17559
|
+
source?: string;
|
|
16305
17560
|
updated_at?: string;
|
|
16306
17561
|
user_id: string;
|
|
16307
17562
|
};
|
|
@@ -16309,7 +17564,55 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
16309
17564
|
connection_id?: string | null;
|
|
16310
17565
|
created_at?: string;
|
|
16311
17566
|
data?: import("../integrations/supabase/types").Json;
|
|
17567
|
+
floriday_id?: string | null;
|
|
17568
|
+
floriday_link_error?: string | null;
|
|
17569
|
+
floriday_link_status?: string;
|
|
17570
|
+
id?: string;
|
|
17571
|
+
last_floriday_sync_at?: string | null;
|
|
17572
|
+
missing_required_fields?: string[];
|
|
17573
|
+
source?: string;
|
|
17574
|
+
updated_at?: string;
|
|
17575
|
+
user_id?: string;
|
|
17576
|
+
};
|
|
17577
|
+
Relationships: [];
|
|
17578
|
+
};
|
|
17579
|
+
trade_item_stock: {
|
|
17580
|
+
Row: {
|
|
17581
|
+
connection_id: string;
|
|
17582
|
+
created_at: string;
|
|
17583
|
+
id: string;
|
|
17584
|
+
incoming_stock: number;
|
|
17585
|
+
minimum_stock: number;
|
|
17586
|
+
notes: string | null;
|
|
17587
|
+
physical_stock: number;
|
|
17588
|
+
reserved_stock: number;
|
|
17589
|
+
trade_item_key: string;
|
|
17590
|
+
updated_at: string;
|
|
17591
|
+
user_id: string;
|
|
17592
|
+
};
|
|
17593
|
+
Insert: {
|
|
17594
|
+
connection_id: string;
|
|
17595
|
+
created_at?: string;
|
|
17596
|
+
id?: string;
|
|
17597
|
+
incoming_stock?: number;
|
|
17598
|
+
minimum_stock?: number;
|
|
17599
|
+
notes?: string | null;
|
|
17600
|
+
physical_stock?: number;
|
|
17601
|
+
reserved_stock?: number;
|
|
17602
|
+
trade_item_key: string;
|
|
17603
|
+
updated_at?: string;
|
|
17604
|
+
user_id: string;
|
|
17605
|
+
};
|
|
17606
|
+
Update: {
|
|
17607
|
+
connection_id?: string;
|
|
17608
|
+
created_at?: string;
|
|
16312
17609
|
id?: string;
|
|
17610
|
+
incoming_stock?: number;
|
|
17611
|
+
minimum_stock?: number;
|
|
17612
|
+
notes?: string | null;
|
|
17613
|
+
physical_stock?: number;
|
|
17614
|
+
reserved_stock?: number;
|
|
17615
|
+
trade_item_key?: string;
|
|
16313
17616
|
updated_at?: string;
|
|
16314
17617
|
user_id?: string;
|
|
16315
17618
|
};
|
|
@@ -16659,6 +17962,7 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
16659
17962
|
};
|
|
16660
17963
|
twinfield_invoice_sync_logs: {
|
|
16661
17964
|
Row: {
|
|
17965
|
+
action_type: string | null;
|
|
16662
17966
|
created_at: string;
|
|
16663
17967
|
details: import("../integrations/supabase/types").Json | null;
|
|
16664
17968
|
duration_ms: number | null;
|
|
@@ -16671,6 +17975,7 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
16671
17975
|
user_id: string;
|
|
16672
17976
|
};
|
|
16673
17977
|
Insert: {
|
|
17978
|
+
action_type?: string | null;
|
|
16674
17979
|
created_at?: string;
|
|
16675
17980
|
details?: import("../integrations/supabase/types").Json | null;
|
|
16676
17981
|
duration_ms?: number | null;
|
|
@@ -16683,6 +17988,7 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
16683
17988
|
user_id: string;
|
|
16684
17989
|
};
|
|
16685
17990
|
Update: {
|
|
17991
|
+
action_type?: string | null;
|
|
16686
17992
|
created_at?: string;
|
|
16687
17993
|
details?: import("../integrations/supabase/types").Json | null;
|
|
16688
17994
|
duration_ms?: number | null;
|
|
@@ -16918,6 +18224,57 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
16918
18224
|
referencedColumns: ["id"];
|
|
16919
18225
|
}];
|
|
16920
18226
|
};
|
|
18227
|
+
twinfield_request_metrics: {
|
|
18228
|
+
Row: {
|
|
18229
|
+
bucket_hour: string;
|
|
18230
|
+
connection_id: string;
|
|
18231
|
+
error_count: number;
|
|
18232
|
+
rate_limited_count: number;
|
|
18233
|
+
request_count: number;
|
|
18234
|
+
updated_at: string;
|
|
18235
|
+
};
|
|
18236
|
+
Insert: {
|
|
18237
|
+
bucket_hour: string;
|
|
18238
|
+
connection_id: string;
|
|
18239
|
+
error_count?: number;
|
|
18240
|
+
rate_limited_count?: number;
|
|
18241
|
+
request_count?: number;
|
|
18242
|
+
updated_at?: string;
|
|
18243
|
+
};
|
|
18244
|
+
Update: {
|
|
18245
|
+
bucket_hour?: string;
|
|
18246
|
+
connection_id?: string;
|
|
18247
|
+
error_count?: number;
|
|
18248
|
+
rate_limited_count?: number;
|
|
18249
|
+
request_count?: number;
|
|
18250
|
+
updated_at?: string;
|
|
18251
|
+
};
|
|
18252
|
+
Relationships: [];
|
|
18253
|
+
};
|
|
18254
|
+
twinfield_session_cache: {
|
|
18255
|
+
Row: {
|
|
18256
|
+
cluster: string;
|
|
18257
|
+
created_at: string;
|
|
18258
|
+
expires_at: string;
|
|
18259
|
+
session_id: string;
|
|
18260
|
+
user_id: string;
|
|
18261
|
+
};
|
|
18262
|
+
Insert: {
|
|
18263
|
+
cluster: string;
|
|
18264
|
+
created_at?: string;
|
|
18265
|
+
expires_at: string;
|
|
18266
|
+
session_id: string;
|
|
18267
|
+
user_id: string;
|
|
18268
|
+
};
|
|
18269
|
+
Update: {
|
|
18270
|
+
cluster?: string;
|
|
18271
|
+
created_at?: string;
|
|
18272
|
+
expires_at?: string;
|
|
18273
|
+
session_id?: string;
|
|
18274
|
+
user_id?: string;
|
|
18275
|
+
};
|
|
18276
|
+
Relationships: [];
|
|
18277
|
+
};
|
|
16921
18278
|
twinfield_settings: {
|
|
16922
18279
|
Row: {
|
|
16923
18280
|
active_environment: string;
|
|
@@ -17029,6 +18386,72 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
17029
18386
|
referencedColumns: ["id"];
|
|
17030
18387
|
}];
|
|
17031
18388
|
};
|
|
18389
|
+
voorraad_media_upload_failures: {
|
|
18390
|
+
Row: {
|
|
18391
|
+
action: string;
|
|
18392
|
+
attempt_number: number;
|
|
18393
|
+
caller: string;
|
|
18394
|
+
client_user_id: string | null;
|
|
18395
|
+
content_type: string | null;
|
|
18396
|
+
created_at: string;
|
|
18397
|
+
environment: string;
|
|
18398
|
+
error_message: string | null;
|
|
18399
|
+
filename: string | null;
|
|
18400
|
+
id: string;
|
|
18401
|
+
idempotency_key: string | null;
|
|
18402
|
+
module: string;
|
|
18403
|
+
path: string;
|
|
18404
|
+
reference_id: string | null;
|
|
18405
|
+
request_body_hash: string | null;
|
|
18406
|
+
request_timestamp: number | null;
|
|
18407
|
+
response_content_type: string | null;
|
|
18408
|
+
response_status: number | null;
|
|
18409
|
+
size_bytes: number | null;
|
|
18410
|
+
};
|
|
18411
|
+
Insert: {
|
|
18412
|
+
action?: string;
|
|
18413
|
+
attempt_number?: number;
|
|
18414
|
+
caller?: string;
|
|
18415
|
+
client_user_id?: string | null;
|
|
18416
|
+
content_type?: string | null;
|
|
18417
|
+
created_at?: string;
|
|
18418
|
+
environment: string;
|
|
18419
|
+
error_message?: string | null;
|
|
18420
|
+
filename?: string | null;
|
|
18421
|
+
id?: string;
|
|
18422
|
+
idempotency_key?: string | null;
|
|
18423
|
+
module?: string;
|
|
18424
|
+
path: string;
|
|
18425
|
+
reference_id?: string | null;
|
|
18426
|
+
request_body_hash?: string | null;
|
|
18427
|
+
request_timestamp?: number | null;
|
|
18428
|
+
response_content_type?: string | null;
|
|
18429
|
+
response_status?: number | null;
|
|
18430
|
+
size_bytes?: number | null;
|
|
18431
|
+
};
|
|
18432
|
+
Update: {
|
|
18433
|
+
action?: string;
|
|
18434
|
+
attempt_number?: number;
|
|
18435
|
+
caller?: string;
|
|
18436
|
+
client_user_id?: string | null;
|
|
18437
|
+
content_type?: string | null;
|
|
18438
|
+
created_at?: string;
|
|
18439
|
+
environment?: string;
|
|
18440
|
+
error_message?: string | null;
|
|
18441
|
+
filename?: string | null;
|
|
18442
|
+
id?: string;
|
|
18443
|
+
idempotency_key?: string | null;
|
|
18444
|
+
module?: string;
|
|
18445
|
+
path?: string;
|
|
18446
|
+
reference_id?: string | null;
|
|
18447
|
+
request_body_hash?: string | null;
|
|
18448
|
+
request_timestamp?: number | null;
|
|
18449
|
+
response_content_type?: string | null;
|
|
18450
|
+
response_status?: number | null;
|
|
18451
|
+
size_bytes?: number | null;
|
|
18452
|
+
};
|
|
18453
|
+
Relationships: [];
|
|
18454
|
+
};
|
|
17032
18455
|
voorraad_publish_attempts: {
|
|
17033
18456
|
Row: {
|
|
17034
18457
|
action: string;
|
|
@@ -17433,6 +18856,35 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
17433
18856
|
};
|
|
17434
18857
|
Relationships: [];
|
|
17435
18858
|
};
|
|
18859
|
+
manufacture_product_possible_stock_view: {
|
|
18860
|
+
Row: {
|
|
18861
|
+
component_count: number | null;
|
|
18862
|
+
manufacture_product_id: string | null;
|
|
18863
|
+
possible_stock: number | null;
|
|
18864
|
+
};
|
|
18865
|
+
Relationships: [];
|
|
18866
|
+
};
|
|
18867
|
+
product_group_stock_view: {
|
|
18868
|
+
Row: {
|
|
18869
|
+
item_count: number | null;
|
|
18870
|
+
product_group_id: string | null;
|
|
18871
|
+
total_stock: number | null;
|
|
18872
|
+
};
|
|
18873
|
+
Relationships: [{
|
|
18874
|
+
foreignKeyName: "product_group_items_product_group_id_fkey";
|
|
18875
|
+
columns: ["product_group_id"];
|
|
18876
|
+
isOneToOne: false;
|
|
18877
|
+
referencedRelation: "product_groups";
|
|
18878
|
+
referencedColumns: ["id"];
|
|
18879
|
+
}];
|
|
18880
|
+
};
|
|
18881
|
+
trade_item_stock_view: {
|
|
18882
|
+
Row: {
|
|
18883
|
+
stock: number | null;
|
|
18884
|
+
trade_item_id: string | null;
|
|
18885
|
+
};
|
|
18886
|
+
Relationships: [];
|
|
18887
|
+
};
|
|
17436
18888
|
v_external_customers_exact: {
|
|
17437
18889
|
Row: {
|
|
17438
18890
|
account_number: string | null;
|
|
@@ -17688,6 +19140,29 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
17688
19140
|
};
|
|
17689
19141
|
Returns: number;
|
|
17690
19142
|
};
|
|
19143
|
+
assign_cart_numbers: {
|
|
19144
|
+
Args: {
|
|
19145
|
+
p_carts: import("../integrations/supabase/types").Json;
|
|
19146
|
+
};
|
|
19147
|
+
Returns: {
|
|
19148
|
+
cart_index: number;
|
|
19149
|
+
cart_number: string;
|
|
19150
|
+
day_seq: number;
|
|
19151
|
+
order_id: string;
|
|
19152
|
+
order_source: string;
|
|
19153
|
+
pick_date: string;
|
|
19154
|
+
status: string;
|
|
19155
|
+
}[];
|
|
19156
|
+
};
|
|
19157
|
+
assign_floriday_order_numbers: {
|
|
19158
|
+
Args: {
|
|
19159
|
+
p_ids: string[];
|
|
19160
|
+
};
|
|
19161
|
+
Returns: {
|
|
19162
|
+
floriday_id: string;
|
|
19163
|
+
order_number: string;
|
|
19164
|
+
}[];
|
|
19165
|
+
};
|
|
17691
19166
|
call_exact_route: {
|
|
17692
19167
|
Args: {
|
|
17693
19168
|
path: string;
|
|
@@ -17698,10 +19173,37 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
17698
19173
|
Args: never;
|
|
17699
19174
|
Returns: number;
|
|
17700
19175
|
};
|
|
19176
|
+
control_get_todays_carts: {
|
|
19177
|
+
Args: never;
|
|
19178
|
+
Returns: {
|
|
19179
|
+
cart_index: number;
|
|
19180
|
+
cart_number: string;
|
|
19181
|
+
cart_number_id: string;
|
|
19182
|
+
order_id: string;
|
|
19183
|
+
order_source: string;
|
|
19184
|
+
pick_date: string;
|
|
19185
|
+
status: string;
|
|
19186
|
+
}[];
|
|
19187
|
+
};
|
|
19188
|
+
count_distinct_regulatory_products: {
|
|
19189
|
+
Args: never;
|
|
19190
|
+
Returns: number;
|
|
19191
|
+
};
|
|
17701
19192
|
current_monteur_id: {
|
|
17702
19193
|
Args: never;
|
|
17703
19194
|
Returns: string;
|
|
17704
19195
|
};
|
|
19196
|
+
dashboard_alert_counts: {
|
|
19197
|
+
Args: never;
|
|
19198
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
19199
|
+
};
|
|
19200
|
+
dashboard_alert_rows: {
|
|
19201
|
+
Args: {
|
|
19202
|
+
check_id: string;
|
|
19203
|
+
row_limit?: number;
|
|
19204
|
+
};
|
|
19205
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
19206
|
+
};
|
|
17705
19207
|
dashboard_list_public_schema: {
|
|
17706
19208
|
Args: never;
|
|
17707
19209
|
Returns: {
|
|
@@ -17782,6 +19284,13 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
17782
19284
|
};
|
|
17783
19285
|
Returns: boolean;
|
|
17784
19286
|
};
|
|
19287
|
+
format_cart_number: {
|
|
19288
|
+
Args: {
|
|
19289
|
+
p_pick_date: string;
|
|
19290
|
+
p_seq: number;
|
|
19291
|
+
};
|
|
19292
|
+
Returns: string;
|
|
19293
|
+
};
|
|
17785
19294
|
get_active_floriday_connection_public: {
|
|
17786
19295
|
Args: never;
|
|
17787
19296
|
Returns: {
|
|
@@ -17897,6 +19406,12 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
17897
19406
|
};
|
|
17898
19407
|
Returns: import("../integrations/supabase/types").Json;
|
|
17899
19408
|
};
|
|
19409
|
+
get_or_assign_floriday_order_number: {
|
|
19410
|
+
Args: {
|
|
19411
|
+
p_floriday_id: string;
|
|
19412
|
+
};
|
|
19413
|
+
Returns: string;
|
|
19414
|
+
};
|
|
17900
19415
|
get_room_busy_windows: {
|
|
17901
19416
|
Args: {
|
|
17902
19417
|
p_from: string;
|
|
@@ -17943,6 +19458,12 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
17943
19458
|
Args: never;
|
|
17944
19459
|
Returns: boolean;
|
|
17945
19460
|
};
|
|
19461
|
+
next_order_number: {
|
|
19462
|
+
Args: {
|
|
19463
|
+
p_prefix: string;
|
|
19464
|
+
};
|
|
19465
|
+
Returns: string;
|
|
19466
|
+
};
|
|
17946
19467
|
next_work_order_number: {
|
|
17947
19468
|
Args: {
|
|
17948
19469
|
p_parent_work_order_id?: string;
|
|
@@ -17956,6 +19477,47 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
17956
19477
|
};
|
|
17957
19478
|
Returns: string;
|
|
17958
19479
|
};
|
|
19480
|
+
pickstation_get_orders_raw: {
|
|
19481
|
+
Args: never;
|
|
19482
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
19483
|
+
};
|
|
19484
|
+
pickstation_get_settings: {
|
|
19485
|
+
Args: never;
|
|
19486
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
19487
|
+
};
|
|
19488
|
+
pickstation_log_print: {
|
|
19489
|
+
Args: {
|
|
19490
|
+
p_customer_name: string;
|
|
19491
|
+
p_documents: string[];
|
|
19492
|
+
p_ip_address: string;
|
|
19493
|
+
p_order_id: string;
|
|
19494
|
+
p_order_number: string;
|
|
19495
|
+
};
|
|
19496
|
+
Returns: undefined;
|
|
19497
|
+
};
|
|
19498
|
+
pickstation_set_cart_status: {
|
|
19499
|
+
Args: {
|
|
19500
|
+
p_cart_index: number;
|
|
19501
|
+
p_order_id: string;
|
|
19502
|
+
p_order_source: string;
|
|
19503
|
+
p_status: string;
|
|
19504
|
+
};
|
|
19505
|
+
Returns: undefined;
|
|
19506
|
+
};
|
|
19507
|
+
refresh_floricode_derived_code_lists: {
|
|
19508
|
+
Args: never;
|
|
19509
|
+
Returns: {
|
|
19510
|
+
environment: string;
|
|
19511
|
+
list_name: string;
|
|
19512
|
+
row_count: number;
|
|
19513
|
+
}[];
|
|
19514
|
+
};
|
|
19515
|
+
refresh_floricode_derived_for_product: {
|
|
19516
|
+
Args: {
|
|
19517
|
+
p_product_code: string;
|
|
19518
|
+
};
|
|
19519
|
+
Returns: number;
|
|
19520
|
+
};
|
|
17959
19521
|
reset_floriday_sync_cursor: {
|
|
17960
19522
|
Args: {
|
|
17961
19523
|
p_connection_id: string;
|
|
@@ -18289,6 +19851,7 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
|
|
|
18289
19851
|
max_workdays_earlier_pick: number;
|
|
18290
19852
|
pick_days_before_transport: number;
|
|
18291
19853
|
pick_distribution_enabled: boolean;
|
|
19854
|
+
pick_weekdays: number[];
|
|
18292
19855
|
signup_mail_enabled: boolean;
|
|
18293
19856
|
signup_mail_lead_minutes: number;
|
|
18294
19857
|
signup_mail_purpose: string;
|
|
@@ -18302,6 +19865,7 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
|
|
|
18302
19865
|
max_workdays_earlier_pick?: number;
|
|
18303
19866
|
pick_days_before_transport?: number;
|
|
18304
19867
|
pick_distribution_enabled?: boolean;
|
|
19868
|
+
pick_weekdays?: number[];
|
|
18305
19869
|
signup_mail_enabled?: boolean;
|
|
18306
19870
|
signup_mail_lead_minutes?: number;
|
|
18307
19871
|
signup_mail_purpose?: string;
|
|
@@ -18315,6 +19879,7 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
|
|
|
18315
19879
|
max_workdays_earlier_pick?: number;
|
|
18316
19880
|
pick_days_before_transport?: number;
|
|
18317
19881
|
pick_distribution_enabled?: boolean;
|
|
19882
|
+
pick_weekdays?: number[];
|
|
18318
19883
|
signup_mail_enabled?: boolean;
|
|
18319
19884
|
signup_mail_lead_minutes?: number;
|
|
18320
19885
|
signup_mail_purpose?: string;
|
|
@@ -18726,6 +20291,48 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
|
|
|
18726
20291
|
referencedColumns: ["id"];
|
|
18727
20292
|
}];
|
|
18728
20293
|
};
|
|
20294
|
+
carrier_signup_dispatch_runs: {
|
|
20295
|
+
Row: {
|
|
20296
|
+
detail: import("../integrations/supabase/types").Json | null;
|
|
20297
|
+
error: string | null;
|
|
20298
|
+
finished_at: string | null;
|
|
20299
|
+
groups: number;
|
|
20300
|
+
id: string;
|
|
20301
|
+
ok: boolean;
|
|
20302
|
+
reason: string | null;
|
|
20303
|
+
sent: number;
|
|
20304
|
+
skipped: import("../integrations/supabase/types").Json;
|
|
20305
|
+
started_at: string;
|
|
20306
|
+
unassigned: import("../integrations/supabase/types").Json;
|
|
20307
|
+
};
|
|
20308
|
+
Insert: {
|
|
20309
|
+
detail?: import("../integrations/supabase/types").Json | null;
|
|
20310
|
+
error?: string | null;
|
|
20311
|
+
finished_at?: string | null;
|
|
20312
|
+
groups?: number;
|
|
20313
|
+
id?: string;
|
|
20314
|
+
ok?: boolean;
|
|
20315
|
+
reason?: string | null;
|
|
20316
|
+
sent?: number;
|
|
20317
|
+
skipped?: import("../integrations/supabase/types").Json;
|
|
20318
|
+
started_at?: string;
|
|
20319
|
+
unassigned?: import("../integrations/supabase/types").Json;
|
|
20320
|
+
};
|
|
20321
|
+
Update: {
|
|
20322
|
+
detail?: import("../integrations/supabase/types").Json | null;
|
|
20323
|
+
error?: string | null;
|
|
20324
|
+
finished_at?: string | null;
|
|
20325
|
+
groups?: number;
|
|
20326
|
+
id?: string;
|
|
20327
|
+
ok?: boolean;
|
|
20328
|
+
reason?: string | null;
|
|
20329
|
+
sent?: number;
|
|
20330
|
+
skipped?: import("../integrations/supabase/types").Json;
|
|
20331
|
+
started_at?: string;
|
|
20332
|
+
unassigned?: import("../integrations/supabase/types").Json;
|
|
20333
|
+
};
|
|
20334
|
+
Relationships: [];
|
|
20335
|
+
};
|
|
18729
20336
|
carrier_signup_dispatches: {
|
|
18730
20337
|
Row: {
|
|
18731
20338
|
carrier_id: string;
|
|
@@ -18777,6 +20384,7 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
|
|
|
18777
20384
|
contact_person: string | null;
|
|
18778
20385
|
created_at: string;
|
|
18779
20386
|
delivery_days: number | null;
|
|
20387
|
+
delivery_weekdays: number[];
|
|
18780
20388
|
email: string | null;
|
|
18781
20389
|
id: string;
|
|
18782
20390
|
is_default: boolean;
|
|
@@ -18784,6 +20392,7 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
|
|
|
18784
20392
|
notes: string | null;
|
|
18785
20393
|
phone: string | null;
|
|
18786
20394
|
pickup_moments: import("../integrations/supabase/types").Json;
|
|
20395
|
+
pickup_weekdays: number[];
|
|
18787
20396
|
service_cities: string[];
|
|
18788
20397
|
service_countries: string[];
|
|
18789
20398
|
service_provinces: string[];
|
|
@@ -18799,6 +20408,7 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
|
|
|
18799
20408
|
contact_person?: string | null;
|
|
18800
20409
|
created_at?: string;
|
|
18801
20410
|
delivery_days?: number | null;
|
|
20411
|
+
delivery_weekdays?: number[];
|
|
18802
20412
|
email?: string | null;
|
|
18803
20413
|
id?: string;
|
|
18804
20414
|
is_default?: boolean;
|
|
@@ -18806,6 +20416,7 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
|
|
|
18806
20416
|
notes?: string | null;
|
|
18807
20417
|
phone?: string | null;
|
|
18808
20418
|
pickup_moments?: import("../integrations/supabase/types").Json;
|
|
20419
|
+
pickup_weekdays?: number[];
|
|
18809
20420
|
service_cities?: string[];
|
|
18810
20421
|
service_countries?: string[];
|
|
18811
20422
|
service_provinces?: string[];
|
|
@@ -18821,6 +20432,7 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
|
|
|
18821
20432
|
contact_person?: string | null;
|
|
18822
20433
|
created_at?: string;
|
|
18823
20434
|
delivery_days?: number | null;
|
|
20435
|
+
delivery_weekdays?: number[];
|
|
18824
20436
|
email?: string | null;
|
|
18825
20437
|
id?: string;
|
|
18826
20438
|
is_default?: boolean;
|
|
@@ -18828,6 +20440,7 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
|
|
|
18828
20440
|
notes?: string | null;
|
|
18829
20441
|
phone?: string | null;
|
|
18830
20442
|
pickup_moments?: import("../integrations/supabase/types").Json;
|
|
20443
|
+
pickup_weekdays?: number[];
|
|
18831
20444
|
service_cities?: string[];
|
|
18832
20445
|
service_countries?: string[];
|
|
18833
20446
|
service_provinces?: string[];
|
|
@@ -18840,6 +20453,177 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
|
|
|
18840
20453
|
};
|
|
18841
20454
|
Relationships: [];
|
|
18842
20455
|
};
|
|
20456
|
+
cart_control_draft: {
|
|
20457
|
+
Row: {
|
|
20458
|
+
cart_states: import("../integrations/supabase/types").Json;
|
|
20459
|
+
checked_keys: import("../integrations/supabase/types").Json;
|
|
20460
|
+
draft_date: string;
|
|
20461
|
+
form_state: import("../integrations/supabase/types").Json;
|
|
20462
|
+
notes: string;
|
|
20463
|
+
updated_at: string;
|
|
20464
|
+
user_id: string;
|
|
20465
|
+
};
|
|
20466
|
+
Insert: {
|
|
20467
|
+
cart_states?: import("../integrations/supabase/types").Json;
|
|
20468
|
+
checked_keys?: import("../integrations/supabase/types").Json;
|
|
20469
|
+
draft_date: string;
|
|
20470
|
+
form_state?: import("../integrations/supabase/types").Json;
|
|
20471
|
+
notes?: string;
|
|
20472
|
+
updated_at?: string;
|
|
20473
|
+
user_id: string;
|
|
20474
|
+
};
|
|
20475
|
+
Update: {
|
|
20476
|
+
cart_states?: import("../integrations/supabase/types").Json;
|
|
20477
|
+
checked_keys?: import("../integrations/supabase/types").Json;
|
|
20478
|
+
draft_date?: string;
|
|
20479
|
+
form_state?: import("../integrations/supabase/types").Json;
|
|
20480
|
+
notes?: string;
|
|
20481
|
+
updated_at?: string;
|
|
20482
|
+
user_id?: string;
|
|
20483
|
+
};
|
|
20484
|
+
Relationships: [];
|
|
20485
|
+
};
|
|
20486
|
+
cart_control_items: {
|
|
20487
|
+
Row: {
|
|
20488
|
+
action: string;
|
|
20489
|
+
block_reason: string | null;
|
|
20490
|
+
carrier_name: string | null;
|
|
20491
|
+
cart_index: number;
|
|
20492
|
+
cart_number_id: string | null;
|
|
20493
|
+
cart_number_label: string | null;
|
|
20494
|
+
created_at: string;
|
|
20495
|
+
customer_name: string | null;
|
|
20496
|
+
delivery_date: string | null;
|
|
20497
|
+
id: string;
|
|
20498
|
+
new_pick_date: string | null;
|
|
20499
|
+
order_id: string;
|
|
20500
|
+
order_number: string | null;
|
|
20501
|
+
order_source: string;
|
|
20502
|
+
pickup_date: string | null;
|
|
20503
|
+
session_id: string;
|
|
20504
|
+
};
|
|
20505
|
+
Insert: {
|
|
20506
|
+
action: string;
|
|
20507
|
+
block_reason?: string | null;
|
|
20508
|
+
carrier_name?: string | null;
|
|
20509
|
+
cart_index: number;
|
|
20510
|
+
cart_number_id?: string | null;
|
|
20511
|
+
cart_number_label?: string | null;
|
|
20512
|
+
created_at?: string;
|
|
20513
|
+
customer_name?: string | null;
|
|
20514
|
+
delivery_date?: string | null;
|
|
20515
|
+
id?: string;
|
|
20516
|
+
new_pick_date?: string | null;
|
|
20517
|
+
order_id: string;
|
|
20518
|
+
order_number?: string | null;
|
|
20519
|
+
order_source: string;
|
|
20520
|
+
pickup_date?: string | null;
|
|
20521
|
+
session_id: string;
|
|
20522
|
+
};
|
|
20523
|
+
Update: {
|
|
20524
|
+
action?: string;
|
|
20525
|
+
block_reason?: string | null;
|
|
20526
|
+
carrier_name?: string | null;
|
|
20527
|
+
cart_index?: number;
|
|
20528
|
+
cart_number_id?: string | null;
|
|
20529
|
+
cart_number_label?: string | null;
|
|
20530
|
+
created_at?: string;
|
|
20531
|
+
customer_name?: string | null;
|
|
20532
|
+
delivery_date?: string | null;
|
|
20533
|
+
id?: string;
|
|
20534
|
+
new_pick_date?: string | null;
|
|
20535
|
+
order_id?: string;
|
|
20536
|
+
order_number?: string | null;
|
|
20537
|
+
order_source?: string;
|
|
20538
|
+
pickup_date?: string | null;
|
|
20539
|
+
session_id?: string;
|
|
20540
|
+
};
|
|
20541
|
+
Relationships: [{
|
|
20542
|
+
foreignKeyName: "cart_control_items_session_id_fkey";
|
|
20543
|
+
columns: ["session_id"];
|
|
20544
|
+
isOneToOne: false;
|
|
20545
|
+
referencedRelation: "cart_control_sessions";
|
|
20546
|
+
referencedColumns: ["id"];
|
|
20547
|
+
}];
|
|
20548
|
+
};
|
|
20549
|
+
cart_control_sessions: {
|
|
20550
|
+
Row: {
|
|
20551
|
+
blocked_count: number;
|
|
20552
|
+
checked_count: number;
|
|
20553
|
+
control_date: string;
|
|
20554
|
+
created_at: string;
|
|
20555
|
+
id: string;
|
|
20556
|
+
notes: string | null;
|
|
20557
|
+
performed_at: string;
|
|
20558
|
+
rescheduled_count: number;
|
|
20559
|
+
total_carts: number;
|
|
20560
|
+
updated_at: string;
|
|
20561
|
+
user_id: string;
|
|
20562
|
+
};
|
|
20563
|
+
Insert: {
|
|
20564
|
+
blocked_count?: number;
|
|
20565
|
+
checked_count?: number;
|
|
20566
|
+
control_date?: string;
|
|
20567
|
+
created_at?: string;
|
|
20568
|
+
id?: string;
|
|
20569
|
+
notes?: string | null;
|
|
20570
|
+
performed_at?: string;
|
|
20571
|
+
rescheduled_count?: number;
|
|
20572
|
+
total_carts?: number;
|
|
20573
|
+
updated_at?: string;
|
|
20574
|
+
user_id: string;
|
|
20575
|
+
};
|
|
20576
|
+
Update: {
|
|
20577
|
+
blocked_count?: number;
|
|
20578
|
+
checked_count?: number;
|
|
20579
|
+
control_date?: string;
|
|
20580
|
+
created_at?: string;
|
|
20581
|
+
id?: string;
|
|
20582
|
+
notes?: string | null;
|
|
20583
|
+
performed_at?: string;
|
|
20584
|
+
rescheduled_count?: number;
|
|
20585
|
+
total_carts?: number;
|
|
20586
|
+
updated_at?: string;
|
|
20587
|
+
user_id?: string;
|
|
20588
|
+
};
|
|
20589
|
+
Relationships: [];
|
|
20590
|
+
};
|
|
20591
|
+
cart_numbers: {
|
|
20592
|
+
Row: {
|
|
20593
|
+
assigned_at: string;
|
|
20594
|
+
cart_index: number;
|
|
20595
|
+
cart_number: string;
|
|
20596
|
+
day_seq: number;
|
|
20597
|
+
id: string;
|
|
20598
|
+
order_id: string;
|
|
20599
|
+
order_source: string;
|
|
20600
|
+
pick_date: string;
|
|
20601
|
+
status: string;
|
|
20602
|
+
};
|
|
20603
|
+
Insert: {
|
|
20604
|
+
assigned_at?: string;
|
|
20605
|
+
cart_index: number;
|
|
20606
|
+
cart_number: string;
|
|
20607
|
+
day_seq: number;
|
|
20608
|
+
id?: string;
|
|
20609
|
+
order_id: string;
|
|
20610
|
+
order_source: string;
|
|
20611
|
+
pick_date: string;
|
|
20612
|
+
status?: string;
|
|
20613
|
+
};
|
|
20614
|
+
Update: {
|
|
20615
|
+
assigned_at?: string;
|
|
20616
|
+
cart_index?: number;
|
|
20617
|
+
cart_number?: string;
|
|
20618
|
+
day_seq?: number;
|
|
20619
|
+
id?: string;
|
|
20620
|
+
order_id?: string;
|
|
20621
|
+
order_source?: string;
|
|
20622
|
+
pick_date?: string;
|
|
20623
|
+
status?: string;
|
|
20624
|
+
};
|
|
20625
|
+
Relationships: [];
|
|
20626
|
+
};
|
|
18843
20627
|
cart_pick_overrides: {
|
|
18844
20628
|
Row: {
|
|
18845
20629
|
cart_index: number;
|
|
@@ -19512,6 +21296,54 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
|
|
|
19512
21296
|
referencedColumns: ["id"];
|
|
19513
21297
|
}];
|
|
19514
21298
|
};
|
|
21299
|
+
dashboard_critical_alerts: {
|
|
21300
|
+
Row: {
|
|
21301
|
+
alert_key: string;
|
|
21302
|
+
alert_type: string;
|
|
21303
|
+
created_at: string;
|
|
21304
|
+
description: string | null;
|
|
21305
|
+
id: string;
|
|
21306
|
+
metadata: import("../integrations/supabase/types").Json | null;
|
|
21307
|
+
priority: string;
|
|
21308
|
+
raised_at: string;
|
|
21309
|
+
related_cart_ids: string[] | null;
|
|
21310
|
+
resolved_at: string | null;
|
|
21311
|
+
title: string;
|
|
21312
|
+
updated_at: string;
|
|
21313
|
+
user_id: string;
|
|
21314
|
+
};
|
|
21315
|
+
Insert: {
|
|
21316
|
+
alert_key: string;
|
|
21317
|
+
alert_type: string;
|
|
21318
|
+
created_at?: string;
|
|
21319
|
+
description?: string | null;
|
|
21320
|
+
id?: string;
|
|
21321
|
+
metadata?: import("../integrations/supabase/types").Json | null;
|
|
21322
|
+
priority?: string;
|
|
21323
|
+
raised_at?: string;
|
|
21324
|
+
related_cart_ids?: string[] | null;
|
|
21325
|
+
resolved_at?: string | null;
|
|
21326
|
+
title: string;
|
|
21327
|
+
updated_at?: string;
|
|
21328
|
+
user_id: string;
|
|
21329
|
+
};
|
|
21330
|
+
Update: {
|
|
21331
|
+
alert_key?: string;
|
|
21332
|
+
alert_type?: string;
|
|
21333
|
+
created_at?: string;
|
|
21334
|
+
description?: string | null;
|
|
21335
|
+
id?: string;
|
|
21336
|
+
metadata?: import("../integrations/supabase/types").Json | null;
|
|
21337
|
+
priority?: string;
|
|
21338
|
+
raised_at?: string;
|
|
21339
|
+
related_cart_ids?: string[] | null;
|
|
21340
|
+
resolved_at?: string | null;
|
|
21341
|
+
title?: string;
|
|
21342
|
+
updated_at?: string;
|
|
21343
|
+
user_id?: string;
|
|
21344
|
+
};
|
|
21345
|
+
Relationships: [];
|
|
21346
|
+
};
|
|
19515
21347
|
dashboard_daily_reports: {
|
|
19516
21348
|
Row: {
|
|
19517
21349
|
created_at: string;
|
|
@@ -20922,6 +22754,7 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
|
|
|
20922
22754
|
created_at: string;
|
|
20923
22755
|
exact_article_id: string | null;
|
|
20924
22756
|
id: string;
|
|
22757
|
+
image_url: string | null;
|
|
20925
22758
|
is_active: boolean;
|
|
20926
22759
|
name: string;
|
|
20927
22760
|
price: number;
|
|
@@ -20932,6 +22765,7 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
|
|
|
20932
22765
|
created_at?: string;
|
|
20933
22766
|
exact_article_id?: string | null;
|
|
20934
22767
|
id?: string;
|
|
22768
|
+
image_url?: string | null;
|
|
20935
22769
|
is_active?: boolean;
|
|
20936
22770
|
name: string;
|
|
20937
22771
|
price?: number;
|
|
@@ -20942,6 +22776,7 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
|
|
|
20942
22776
|
created_at?: string;
|
|
20943
22777
|
exact_article_id?: string | null;
|
|
20944
22778
|
id?: string;
|
|
22779
|
+
image_url?: string | null;
|
|
20945
22780
|
is_active?: boolean;
|
|
20946
22781
|
name?: string;
|
|
20947
22782
|
price?: number;
|
|
@@ -21011,6 +22846,7 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
|
|
|
21011
22846
|
};
|
|
21012
22847
|
floricode_sync_state: {
|
|
21013
22848
|
Row: {
|
|
22849
|
+
cursor_skip: number;
|
|
21014
22850
|
error_message: string | null;
|
|
21015
22851
|
last_change_date_time: string | null;
|
|
21016
22852
|
last_sequence_number: number;
|
|
@@ -21020,6 +22856,7 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
|
|
|
21020
22856
|
updated_at: string;
|
|
21021
22857
|
};
|
|
21022
22858
|
Insert: {
|
|
22859
|
+
cursor_skip?: number;
|
|
21023
22860
|
error_message?: string | null;
|
|
21024
22861
|
last_change_date_time?: string | null;
|
|
21025
22862
|
last_sequence_number?: number;
|
|
@@ -21029,6 +22866,7 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
|
|
|
21029
22866
|
updated_at?: string;
|
|
21030
22867
|
};
|
|
21031
22868
|
Update: {
|
|
22869
|
+
cursor_skip?: number;
|
|
21032
22870
|
error_message?: string | null;
|
|
21033
22871
|
last_change_date_time?: string | null;
|
|
21034
22872
|
last_sequence_number?: number;
|
|
@@ -22176,6 +24014,24 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
|
|
|
22176
24014
|
};
|
|
22177
24015
|
Relationships: [];
|
|
22178
24016
|
};
|
|
24017
|
+
floriday_order_number_map: {
|
|
24018
|
+
Row: {
|
|
24019
|
+
created_at: string;
|
|
24020
|
+
floriday_id: string;
|
|
24021
|
+
order_number: string;
|
|
24022
|
+
};
|
|
24023
|
+
Insert: {
|
|
24024
|
+
created_at?: string;
|
|
24025
|
+
floriday_id: string;
|
|
24026
|
+
order_number: string;
|
|
24027
|
+
};
|
|
24028
|
+
Update: {
|
|
24029
|
+
created_at?: string;
|
|
24030
|
+
floriday_id?: string;
|
|
24031
|
+
order_number?: string;
|
|
24032
|
+
};
|
|
24033
|
+
Relationships: [];
|
|
24034
|
+
};
|
|
22179
24035
|
floriday_packings_cache: {
|
|
22180
24036
|
Row: {
|
|
22181
24037
|
connection_id: string;
|
|
@@ -23358,6 +25214,93 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
|
|
|
23358
25214
|
};
|
|
23359
25215
|
Relationships: [];
|
|
23360
25216
|
};
|
|
25217
|
+
manufacture_product_components: {
|
|
25218
|
+
Row: {
|
|
25219
|
+
component_type: string;
|
|
25220
|
+
created_at: string;
|
|
25221
|
+
id: string;
|
|
25222
|
+
manufacture_product_id: string;
|
|
25223
|
+
product_group_id: string | null;
|
|
25224
|
+
quantity: number;
|
|
25225
|
+
trade_item_id: string | null;
|
|
25226
|
+
unit: string;
|
|
25227
|
+
};
|
|
25228
|
+
Insert: {
|
|
25229
|
+
component_type: string;
|
|
25230
|
+
created_at?: string;
|
|
25231
|
+
id?: string;
|
|
25232
|
+
manufacture_product_id: string;
|
|
25233
|
+
product_group_id?: string | null;
|
|
25234
|
+
quantity?: number;
|
|
25235
|
+
trade_item_id?: string | null;
|
|
25236
|
+
unit?: string;
|
|
25237
|
+
};
|
|
25238
|
+
Update: {
|
|
25239
|
+
component_type?: string;
|
|
25240
|
+
created_at?: string;
|
|
25241
|
+
id?: string;
|
|
25242
|
+
manufacture_product_id?: string;
|
|
25243
|
+
product_group_id?: string | null;
|
|
25244
|
+
quantity?: number;
|
|
25245
|
+
trade_item_id?: string | null;
|
|
25246
|
+
unit?: string;
|
|
25247
|
+
};
|
|
25248
|
+
Relationships: [{
|
|
25249
|
+
foreignKeyName: "manufacture_product_components_manufacture_product_id_fkey";
|
|
25250
|
+
columns: ["manufacture_product_id"];
|
|
25251
|
+
isOneToOne: false;
|
|
25252
|
+
referencedRelation: "manufacture_product_possible_stock_view";
|
|
25253
|
+
referencedColumns: ["manufacture_product_id"];
|
|
25254
|
+
}, {
|
|
25255
|
+
foreignKeyName: "manufacture_product_components_manufacture_product_id_fkey";
|
|
25256
|
+
columns: ["manufacture_product_id"];
|
|
25257
|
+
isOneToOne: false;
|
|
25258
|
+
referencedRelation: "manufacture_products";
|
|
25259
|
+
referencedColumns: ["id"];
|
|
25260
|
+
}, {
|
|
25261
|
+
foreignKeyName: "manufacture_product_components_product_group_id_fkey";
|
|
25262
|
+
columns: ["product_group_id"];
|
|
25263
|
+
isOneToOne: false;
|
|
25264
|
+
referencedRelation: "product_groups";
|
|
25265
|
+
referencedColumns: ["id"];
|
|
25266
|
+
}];
|
|
25267
|
+
};
|
|
25268
|
+
manufacture_products: {
|
|
25269
|
+
Row: {
|
|
25270
|
+
created_at: string;
|
|
25271
|
+
description: string | null;
|
|
25272
|
+
id: string;
|
|
25273
|
+
is_active: boolean;
|
|
25274
|
+
name: string;
|
|
25275
|
+
produced_stock: number;
|
|
25276
|
+
product_code: string;
|
|
25277
|
+
tenant_id: string;
|
|
25278
|
+
updated_at: string;
|
|
25279
|
+
};
|
|
25280
|
+
Insert: {
|
|
25281
|
+
created_at?: string;
|
|
25282
|
+
description?: string | null;
|
|
25283
|
+
id?: string;
|
|
25284
|
+
is_active?: boolean;
|
|
25285
|
+
name: string;
|
|
25286
|
+
produced_stock?: number;
|
|
25287
|
+
product_code: string;
|
|
25288
|
+
tenant_id: string;
|
|
25289
|
+
updated_at?: string;
|
|
25290
|
+
};
|
|
25291
|
+
Update: {
|
|
25292
|
+
created_at?: string;
|
|
25293
|
+
description?: string | null;
|
|
25294
|
+
id?: string;
|
|
25295
|
+
is_active?: boolean;
|
|
25296
|
+
name?: string;
|
|
25297
|
+
produced_stock?: number;
|
|
25298
|
+
product_code?: string;
|
|
25299
|
+
tenant_id?: string;
|
|
25300
|
+
updated_at?: string;
|
|
25301
|
+
};
|
|
25302
|
+
Relationships: [];
|
|
25303
|
+
};
|
|
23361
25304
|
monteurs: {
|
|
23362
25305
|
Row: {
|
|
23363
25306
|
avatar_url: string | null;
|
|
@@ -24021,6 +25964,24 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
|
|
|
24021
25964
|
referencedColumns: ["id"];
|
|
24022
25965
|
}];
|
|
24023
25966
|
};
|
|
25967
|
+
order_number_counters: {
|
|
25968
|
+
Row: {
|
|
25969
|
+
last_value: number;
|
|
25970
|
+
updated_at: string;
|
|
25971
|
+
year: number;
|
|
25972
|
+
};
|
|
25973
|
+
Insert: {
|
|
25974
|
+
last_value?: number;
|
|
25975
|
+
updated_at?: string;
|
|
25976
|
+
year: number;
|
|
25977
|
+
};
|
|
25978
|
+
Update: {
|
|
25979
|
+
last_value?: number;
|
|
25980
|
+
updated_at?: string;
|
|
25981
|
+
year?: number;
|
|
25982
|
+
};
|
|
25983
|
+
Relationships: [];
|
|
25984
|
+
};
|
|
24024
25985
|
orders: {
|
|
24025
25986
|
Row: {
|
|
24026
25987
|
created_at: string;
|
|
@@ -24033,6 +25994,7 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
|
|
|
24033
25994
|
notes: string | null;
|
|
24034
25995
|
order_date: string;
|
|
24035
25996
|
order_number: string;
|
|
25997
|
+
order_source: string;
|
|
24036
25998
|
status: string;
|
|
24037
25999
|
total: string;
|
|
24038
26000
|
updated_at: string;
|
|
@@ -24048,6 +26010,7 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
|
|
|
24048
26010
|
notes?: string | null;
|
|
24049
26011
|
order_date?: string;
|
|
24050
26012
|
order_number: string;
|
|
26013
|
+
order_source?: string;
|
|
24051
26014
|
status?: string;
|
|
24052
26015
|
total?: string;
|
|
24053
26016
|
updated_at?: string;
|
|
@@ -24063,6 +26026,7 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
|
|
|
24063
26026
|
notes?: string | null;
|
|
24064
26027
|
order_date?: string;
|
|
24065
26028
|
order_number?: string;
|
|
26029
|
+
order_source?: string;
|
|
24066
26030
|
status?: string;
|
|
24067
26031
|
total?: string;
|
|
24068
26032
|
updated_at?: string;
|
|
@@ -24297,6 +26261,66 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
|
|
|
24297
26261
|
};
|
|
24298
26262
|
Relationships: [];
|
|
24299
26263
|
};
|
|
26264
|
+
product_group_items: {
|
|
26265
|
+
Row: {
|
|
26266
|
+
created_at: string;
|
|
26267
|
+
id: string;
|
|
26268
|
+
product_group_id: string;
|
|
26269
|
+
quantity: number;
|
|
26270
|
+
trade_item_id: string;
|
|
26271
|
+
};
|
|
26272
|
+
Insert: {
|
|
26273
|
+
created_at?: string;
|
|
26274
|
+
id?: string;
|
|
26275
|
+
product_group_id: string;
|
|
26276
|
+
quantity?: number;
|
|
26277
|
+
trade_item_id: string;
|
|
26278
|
+
};
|
|
26279
|
+
Update: {
|
|
26280
|
+
created_at?: string;
|
|
26281
|
+
id?: string;
|
|
26282
|
+
product_group_id?: string;
|
|
26283
|
+
quantity?: number;
|
|
26284
|
+
trade_item_id?: string;
|
|
26285
|
+
};
|
|
26286
|
+
Relationships: [{
|
|
26287
|
+
foreignKeyName: "product_group_items_product_group_id_fkey";
|
|
26288
|
+
columns: ["product_group_id"];
|
|
26289
|
+
isOneToOne: false;
|
|
26290
|
+
referencedRelation: "product_groups";
|
|
26291
|
+
referencedColumns: ["id"];
|
|
26292
|
+
}];
|
|
26293
|
+
};
|
|
26294
|
+
product_groups: {
|
|
26295
|
+
Row: {
|
|
26296
|
+
created_at: string;
|
|
26297
|
+
description: string | null;
|
|
26298
|
+
id: string;
|
|
26299
|
+
is_active: boolean;
|
|
26300
|
+
name: string;
|
|
26301
|
+
tenant_id: string;
|
|
26302
|
+
updated_at: string;
|
|
26303
|
+
};
|
|
26304
|
+
Insert: {
|
|
26305
|
+
created_at?: string;
|
|
26306
|
+
description?: string | null;
|
|
26307
|
+
id?: string;
|
|
26308
|
+
is_active?: boolean;
|
|
26309
|
+
name: string;
|
|
26310
|
+
tenant_id: string;
|
|
26311
|
+
updated_at?: string;
|
|
26312
|
+
};
|
|
26313
|
+
Update: {
|
|
26314
|
+
created_at?: string;
|
|
26315
|
+
description?: string | null;
|
|
26316
|
+
id?: string;
|
|
26317
|
+
is_active?: boolean;
|
|
26318
|
+
name?: string;
|
|
26319
|
+
tenant_id?: string;
|
|
26320
|
+
updated_at?: string;
|
|
26321
|
+
};
|
|
26322
|
+
Relationships: [];
|
|
26323
|
+
};
|
|
24300
26324
|
products: {
|
|
24301
26325
|
Row: {
|
|
24302
26326
|
barcode: string | null;
|
|
@@ -25436,7 +27460,13 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
|
|
|
25436
27460
|
connection_id: string | null;
|
|
25437
27461
|
created_at: string;
|
|
25438
27462
|
data: import("../integrations/supabase/types").Json;
|
|
27463
|
+
floriday_id: string | null;
|
|
27464
|
+
floriday_link_error: string | null;
|
|
27465
|
+
floriday_link_status: string;
|
|
25439
27466
|
id: string;
|
|
27467
|
+
last_floriday_sync_at: string | null;
|
|
27468
|
+
missing_required_fields: string[];
|
|
27469
|
+
source: string;
|
|
25440
27470
|
updated_at: string;
|
|
25441
27471
|
user_id: string;
|
|
25442
27472
|
};
|
|
@@ -25444,7 +27474,13 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
|
|
|
25444
27474
|
connection_id?: string | null;
|
|
25445
27475
|
created_at?: string;
|
|
25446
27476
|
data?: import("../integrations/supabase/types").Json;
|
|
27477
|
+
floriday_id?: string | null;
|
|
27478
|
+
floriday_link_error?: string | null;
|
|
27479
|
+
floriday_link_status?: string;
|
|
25447
27480
|
id?: string;
|
|
27481
|
+
last_floriday_sync_at?: string | null;
|
|
27482
|
+
missing_required_fields?: string[];
|
|
27483
|
+
source?: string;
|
|
25448
27484
|
updated_at?: string;
|
|
25449
27485
|
user_id: string;
|
|
25450
27486
|
};
|
|
@@ -25452,7 +27488,55 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
|
|
|
25452
27488
|
connection_id?: string | null;
|
|
25453
27489
|
created_at?: string;
|
|
25454
27490
|
data?: import("../integrations/supabase/types").Json;
|
|
27491
|
+
floriday_id?: string | null;
|
|
27492
|
+
floriday_link_error?: string | null;
|
|
27493
|
+
floriday_link_status?: string;
|
|
27494
|
+
id?: string;
|
|
27495
|
+
last_floriday_sync_at?: string | null;
|
|
27496
|
+
missing_required_fields?: string[];
|
|
27497
|
+
source?: string;
|
|
27498
|
+
updated_at?: string;
|
|
27499
|
+
user_id?: string;
|
|
27500
|
+
};
|
|
27501
|
+
Relationships: [];
|
|
27502
|
+
};
|
|
27503
|
+
trade_item_stock: {
|
|
27504
|
+
Row: {
|
|
27505
|
+
connection_id: string;
|
|
27506
|
+
created_at: string;
|
|
27507
|
+
id: string;
|
|
27508
|
+
incoming_stock: number;
|
|
27509
|
+
minimum_stock: number;
|
|
27510
|
+
notes: string | null;
|
|
27511
|
+
physical_stock: number;
|
|
27512
|
+
reserved_stock: number;
|
|
27513
|
+
trade_item_key: string;
|
|
27514
|
+
updated_at: string;
|
|
27515
|
+
user_id: string;
|
|
27516
|
+
};
|
|
27517
|
+
Insert: {
|
|
27518
|
+
connection_id: string;
|
|
27519
|
+
created_at?: string;
|
|
27520
|
+
id?: string;
|
|
27521
|
+
incoming_stock?: number;
|
|
27522
|
+
minimum_stock?: number;
|
|
27523
|
+
notes?: string | null;
|
|
27524
|
+
physical_stock?: number;
|
|
27525
|
+
reserved_stock?: number;
|
|
27526
|
+
trade_item_key: string;
|
|
27527
|
+
updated_at?: string;
|
|
27528
|
+
user_id: string;
|
|
27529
|
+
};
|
|
27530
|
+
Update: {
|
|
27531
|
+
connection_id?: string;
|
|
27532
|
+
created_at?: string;
|
|
25455
27533
|
id?: string;
|
|
27534
|
+
incoming_stock?: number;
|
|
27535
|
+
minimum_stock?: number;
|
|
27536
|
+
notes?: string | null;
|
|
27537
|
+
physical_stock?: number;
|
|
27538
|
+
reserved_stock?: number;
|
|
27539
|
+
trade_item_key?: string;
|
|
25456
27540
|
updated_at?: string;
|
|
25457
27541
|
user_id?: string;
|
|
25458
27542
|
};
|
|
@@ -25802,6 +27886,7 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
|
|
|
25802
27886
|
};
|
|
25803
27887
|
twinfield_invoice_sync_logs: {
|
|
25804
27888
|
Row: {
|
|
27889
|
+
action_type: string | null;
|
|
25805
27890
|
created_at: string;
|
|
25806
27891
|
details: import("../integrations/supabase/types").Json | null;
|
|
25807
27892
|
duration_ms: number | null;
|
|
@@ -25814,6 +27899,7 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
|
|
|
25814
27899
|
user_id: string;
|
|
25815
27900
|
};
|
|
25816
27901
|
Insert: {
|
|
27902
|
+
action_type?: string | null;
|
|
25817
27903
|
created_at?: string;
|
|
25818
27904
|
details?: import("../integrations/supabase/types").Json | null;
|
|
25819
27905
|
duration_ms?: number | null;
|
|
@@ -25826,6 +27912,7 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
|
|
|
25826
27912
|
user_id: string;
|
|
25827
27913
|
};
|
|
25828
27914
|
Update: {
|
|
27915
|
+
action_type?: string | null;
|
|
25829
27916
|
created_at?: string;
|
|
25830
27917
|
details?: import("../integrations/supabase/types").Json | null;
|
|
25831
27918
|
duration_ms?: number | null;
|
|
@@ -26061,6 +28148,57 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
|
|
|
26061
28148
|
referencedColumns: ["id"];
|
|
26062
28149
|
}];
|
|
26063
28150
|
};
|
|
28151
|
+
twinfield_request_metrics: {
|
|
28152
|
+
Row: {
|
|
28153
|
+
bucket_hour: string;
|
|
28154
|
+
connection_id: string;
|
|
28155
|
+
error_count: number;
|
|
28156
|
+
rate_limited_count: number;
|
|
28157
|
+
request_count: number;
|
|
28158
|
+
updated_at: string;
|
|
28159
|
+
};
|
|
28160
|
+
Insert: {
|
|
28161
|
+
bucket_hour: string;
|
|
28162
|
+
connection_id: string;
|
|
28163
|
+
error_count?: number;
|
|
28164
|
+
rate_limited_count?: number;
|
|
28165
|
+
request_count?: number;
|
|
28166
|
+
updated_at?: string;
|
|
28167
|
+
};
|
|
28168
|
+
Update: {
|
|
28169
|
+
bucket_hour?: string;
|
|
28170
|
+
connection_id?: string;
|
|
28171
|
+
error_count?: number;
|
|
28172
|
+
rate_limited_count?: number;
|
|
28173
|
+
request_count?: number;
|
|
28174
|
+
updated_at?: string;
|
|
28175
|
+
};
|
|
28176
|
+
Relationships: [];
|
|
28177
|
+
};
|
|
28178
|
+
twinfield_session_cache: {
|
|
28179
|
+
Row: {
|
|
28180
|
+
cluster: string;
|
|
28181
|
+
created_at: string;
|
|
28182
|
+
expires_at: string;
|
|
28183
|
+
session_id: string;
|
|
28184
|
+
user_id: string;
|
|
28185
|
+
};
|
|
28186
|
+
Insert: {
|
|
28187
|
+
cluster: string;
|
|
28188
|
+
created_at?: string;
|
|
28189
|
+
expires_at: string;
|
|
28190
|
+
session_id: string;
|
|
28191
|
+
user_id: string;
|
|
28192
|
+
};
|
|
28193
|
+
Update: {
|
|
28194
|
+
cluster?: string;
|
|
28195
|
+
created_at?: string;
|
|
28196
|
+
expires_at?: string;
|
|
28197
|
+
session_id?: string;
|
|
28198
|
+
user_id?: string;
|
|
28199
|
+
};
|
|
28200
|
+
Relationships: [];
|
|
28201
|
+
};
|
|
26064
28202
|
twinfield_settings: {
|
|
26065
28203
|
Row: {
|
|
26066
28204
|
active_environment: string;
|
|
@@ -26172,6 +28310,72 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
|
|
|
26172
28310
|
referencedColumns: ["id"];
|
|
26173
28311
|
}];
|
|
26174
28312
|
};
|
|
28313
|
+
voorraad_media_upload_failures: {
|
|
28314
|
+
Row: {
|
|
28315
|
+
action: string;
|
|
28316
|
+
attempt_number: number;
|
|
28317
|
+
caller: string;
|
|
28318
|
+
client_user_id: string | null;
|
|
28319
|
+
content_type: string | null;
|
|
28320
|
+
created_at: string;
|
|
28321
|
+
environment: string;
|
|
28322
|
+
error_message: string | null;
|
|
28323
|
+
filename: string | null;
|
|
28324
|
+
id: string;
|
|
28325
|
+
idempotency_key: string | null;
|
|
28326
|
+
module: string;
|
|
28327
|
+
path: string;
|
|
28328
|
+
reference_id: string | null;
|
|
28329
|
+
request_body_hash: string | null;
|
|
28330
|
+
request_timestamp: number | null;
|
|
28331
|
+
response_content_type: string | null;
|
|
28332
|
+
response_status: number | null;
|
|
28333
|
+
size_bytes: number | null;
|
|
28334
|
+
};
|
|
28335
|
+
Insert: {
|
|
28336
|
+
action?: string;
|
|
28337
|
+
attempt_number?: number;
|
|
28338
|
+
caller?: string;
|
|
28339
|
+
client_user_id?: string | null;
|
|
28340
|
+
content_type?: string | null;
|
|
28341
|
+
created_at?: string;
|
|
28342
|
+
environment: string;
|
|
28343
|
+
error_message?: string | null;
|
|
28344
|
+
filename?: string | null;
|
|
28345
|
+
id?: string;
|
|
28346
|
+
idempotency_key?: string | null;
|
|
28347
|
+
module?: string;
|
|
28348
|
+
path: string;
|
|
28349
|
+
reference_id?: string | null;
|
|
28350
|
+
request_body_hash?: string | null;
|
|
28351
|
+
request_timestamp?: number | null;
|
|
28352
|
+
response_content_type?: string | null;
|
|
28353
|
+
response_status?: number | null;
|
|
28354
|
+
size_bytes?: number | null;
|
|
28355
|
+
};
|
|
28356
|
+
Update: {
|
|
28357
|
+
action?: string;
|
|
28358
|
+
attempt_number?: number;
|
|
28359
|
+
caller?: string;
|
|
28360
|
+
client_user_id?: string | null;
|
|
28361
|
+
content_type?: string | null;
|
|
28362
|
+
created_at?: string;
|
|
28363
|
+
environment?: string;
|
|
28364
|
+
error_message?: string | null;
|
|
28365
|
+
filename?: string | null;
|
|
28366
|
+
id?: string;
|
|
28367
|
+
idempotency_key?: string | null;
|
|
28368
|
+
module?: string;
|
|
28369
|
+
path?: string;
|
|
28370
|
+
reference_id?: string | null;
|
|
28371
|
+
request_body_hash?: string | null;
|
|
28372
|
+
request_timestamp?: number | null;
|
|
28373
|
+
response_content_type?: string | null;
|
|
28374
|
+
response_status?: number | null;
|
|
28375
|
+
size_bytes?: number | null;
|
|
28376
|
+
};
|
|
28377
|
+
Relationships: [];
|
|
28378
|
+
};
|
|
26175
28379
|
voorraad_publish_attempts: {
|
|
26176
28380
|
Row: {
|
|
26177
28381
|
action: string;
|
|
@@ -26576,6 +28780,35 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
|
|
|
26576
28780
|
};
|
|
26577
28781
|
Relationships: [];
|
|
26578
28782
|
};
|
|
28783
|
+
manufacture_product_possible_stock_view: {
|
|
28784
|
+
Row: {
|
|
28785
|
+
component_count: number | null;
|
|
28786
|
+
manufacture_product_id: string | null;
|
|
28787
|
+
possible_stock: number | null;
|
|
28788
|
+
};
|
|
28789
|
+
Relationships: [];
|
|
28790
|
+
};
|
|
28791
|
+
product_group_stock_view: {
|
|
28792
|
+
Row: {
|
|
28793
|
+
item_count: number | null;
|
|
28794
|
+
product_group_id: string | null;
|
|
28795
|
+
total_stock: number | null;
|
|
28796
|
+
};
|
|
28797
|
+
Relationships: [{
|
|
28798
|
+
foreignKeyName: "product_group_items_product_group_id_fkey";
|
|
28799
|
+
columns: ["product_group_id"];
|
|
28800
|
+
isOneToOne: false;
|
|
28801
|
+
referencedRelation: "product_groups";
|
|
28802
|
+
referencedColumns: ["id"];
|
|
28803
|
+
}];
|
|
28804
|
+
};
|
|
28805
|
+
trade_item_stock_view: {
|
|
28806
|
+
Row: {
|
|
28807
|
+
stock: number | null;
|
|
28808
|
+
trade_item_id: string | null;
|
|
28809
|
+
};
|
|
28810
|
+
Relationships: [];
|
|
28811
|
+
};
|
|
26579
28812
|
v_external_customers_exact: {
|
|
26580
28813
|
Row: {
|
|
26581
28814
|
account_number: string | null;
|
|
@@ -26831,6 +29064,29 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
|
|
|
26831
29064
|
};
|
|
26832
29065
|
Returns: number;
|
|
26833
29066
|
};
|
|
29067
|
+
assign_cart_numbers: {
|
|
29068
|
+
Args: {
|
|
29069
|
+
p_carts: import("../integrations/supabase/types").Json;
|
|
29070
|
+
};
|
|
29071
|
+
Returns: {
|
|
29072
|
+
cart_index: number;
|
|
29073
|
+
cart_number: string;
|
|
29074
|
+
day_seq: number;
|
|
29075
|
+
order_id: string;
|
|
29076
|
+
order_source: string;
|
|
29077
|
+
pick_date: string;
|
|
29078
|
+
status: string;
|
|
29079
|
+
}[];
|
|
29080
|
+
};
|
|
29081
|
+
assign_floriday_order_numbers: {
|
|
29082
|
+
Args: {
|
|
29083
|
+
p_ids: string[];
|
|
29084
|
+
};
|
|
29085
|
+
Returns: {
|
|
29086
|
+
floriday_id: string;
|
|
29087
|
+
order_number: string;
|
|
29088
|
+
}[];
|
|
29089
|
+
};
|
|
26834
29090
|
call_exact_route: {
|
|
26835
29091
|
Args: {
|
|
26836
29092
|
path: string;
|
|
@@ -26841,10 +29097,37 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
|
|
|
26841
29097
|
Args: never;
|
|
26842
29098
|
Returns: number;
|
|
26843
29099
|
};
|
|
29100
|
+
control_get_todays_carts: {
|
|
29101
|
+
Args: never;
|
|
29102
|
+
Returns: {
|
|
29103
|
+
cart_index: number;
|
|
29104
|
+
cart_number: string;
|
|
29105
|
+
cart_number_id: string;
|
|
29106
|
+
order_id: string;
|
|
29107
|
+
order_source: string;
|
|
29108
|
+
pick_date: string;
|
|
29109
|
+
status: string;
|
|
29110
|
+
}[];
|
|
29111
|
+
};
|
|
29112
|
+
count_distinct_regulatory_products: {
|
|
29113
|
+
Args: never;
|
|
29114
|
+
Returns: number;
|
|
29115
|
+
};
|
|
26844
29116
|
current_monteur_id: {
|
|
26845
29117
|
Args: never;
|
|
26846
29118
|
Returns: string;
|
|
26847
29119
|
};
|
|
29120
|
+
dashboard_alert_counts: {
|
|
29121
|
+
Args: never;
|
|
29122
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
29123
|
+
};
|
|
29124
|
+
dashboard_alert_rows: {
|
|
29125
|
+
Args: {
|
|
29126
|
+
check_id: string;
|
|
29127
|
+
row_limit?: number;
|
|
29128
|
+
};
|
|
29129
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
29130
|
+
};
|
|
26848
29131
|
dashboard_list_public_schema: {
|
|
26849
29132
|
Args: never;
|
|
26850
29133
|
Returns: {
|
|
@@ -26925,6 +29208,13 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
|
|
|
26925
29208
|
};
|
|
26926
29209
|
Returns: boolean;
|
|
26927
29210
|
};
|
|
29211
|
+
format_cart_number: {
|
|
29212
|
+
Args: {
|
|
29213
|
+
p_pick_date: string;
|
|
29214
|
+
p_seq: number;
|
|
29215
|
+
};
|
|
29216
|
+
Returns: string;
|
|
29217
|
+
};
|
|
26928
29218
|
get_active_floriday_connection_public: {
|
|
26929
29219
|
Args: never;
|
|
26930
29220
|
Returns: {
|
|
@@ -27040,6 +29330,12 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
|
|
|
27040
29330
|
};
|
|
27041
29331
|
Returns: import("../integrations/supabase/types").Json;
|
|
27042
29332
|
};
|
|
29333
|
+
get_or_assign_floriday_order_number: {
|
|
29334
|
+
Args: {
|
|
29335
|
+
p_floriday_id: string;
|
|
29336
|
+
};
|
|
29337
|
+
Returns: string;
|
|
29338
|
+
};
|
|
27043
29339
|
get_room_busy_windows: {
|
|
27044
29340
|
Args: {
|
|
27045
29341
|
p_from: string;
|
|
@@ -27086,6 +29382,12 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
|
|
|
27086
29382
|
Args: never;
|
|
27087
29383
|
Returns: boolean;
|
|
27088
29384
|
};
|
|
29385
|
+
next_order_number: {
|
|
29386
|
+
Args: {
|
|
29387
|
+
p_prefix: string;
|
|
29388
|
+
};
|
|
29389
|
+
Returns: string;
|
|
29390
|
+
};
|
|
27089
29391
|
next_work_order_number: {
|
|
27090
29392
|
Args: {
|
|
27091
29393
|
p_parent_work_order_id?: string;
|
|
@@ -27099,6 +29401,47 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
|
|
|
27099
29401
|
};
|
|
27100
29402
|
Returns: string;
|
|
27101
29403
|
};
|
|
29404
|
+
pickstation_get_orders_raw: {
|
|
29405
|
+
Args: never;
|
|
29406
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
29407
|
+
};
|
|
29408
|
+
pickstation_get_settings: {
|
|
29409
|
+
Args: never;
|
|
29410
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
29411
|
+
};
|
|
29412
|
+
pickstation_log_print: {
|
|
29413
|
+
Args: {
|
|
29414
|
+
p_customer_name: string;
|
|
29415
|
+
p_documents: string[];
|
|
29416
|
+
p_ip_address: string;
|
|
29417
|
+
p_order_id: string;
|
|
29418
|
+
p_order_number: string;
|
|
29419
|
+
};
|
|
29420
|
+
Returns: undefined;
|
|
29421
|
+
};
|
|
29422
|
+
pickstation_set_cart_status: {
|
|
29423
|
+
Args: {
|
|
29424
|
+
p_cart_index: number;
|
|
29425
|
+
p_order_id: string;
|
|
29426
|
+
p_order_source: string;
|
|
29427
|
+
p_status: string;
|
|
29428
|
+
};
|
|
29429
|
+
Returns: undefined;
|
|
29430
|
+
};
|
|
29431
|
+
refresh_floricode_derived_code_lists: {
|
|
29432
|
+
Args: never;
|
|
29433
|
+
Returns: {
|
|
29434
|
+
environment: string;
|
|
29435
|
+
list_name: string;
|
|
29436
|
+
row_count: number;
|
|
29437
|
+
}[];
|
|
29438
|
+
};
|
|
29439
|
+
refresh_floricode_derived_for_product: {
|
|
29440
|
+
Args: {
|
|
29441
|
+
p_product_code: string;
|
|
29442
|
+
};
|
|
29443
|
+
Returns: number;
|
|
29444
|
+
};
|
|
27102
29445
|
reset_floriday_sync_cursor: {
|
|
27103
29446
|
Args: {
|
|
27104
29447
|
p_connection_id: string;
|