@flowselections/floriday-afhandeling-module 1.0.10 → 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/afhandeling/ControleLijstPrint.d.ts +7 -0
- package/dist-lib/components/afhandeling/ControleLijstPrint.d.ts.map +1 -0
- package/dist-lib/components/afhandeling/ControleLijstPrint.js +67 -0
- package/dist-lib/components/afhandeling/ControlePage.d.ts +2 -0
- package/dist-lib/components/afhandeling/ControlePage.d.ts.map +1 -0
- package/dist-lib/components/afhandeling/ControlePage.js +456 -0
- package/dist-lib/components/afhandeling/DagDetailDialog.d.ts.map +1 -1
- package/dist-lib/components/afhandeling/DagDetailDialog.js +9 -5
- package/dist-lib/components/afhandeling/VervoerderForm.d.ts.map +1 -1
- package/dist-lib/components/afhandeling/VervoerderForm.js +10 -1
- package/dist-lib/components/afhandeling/VervoerdersPage.d.ts.map +1 -1
- package/dist-lib/components/afhandeling/VervoerdersPage.js +3 -2
- package/dist-lib/components/afhandeling/WeekAgendaView.d.ts.map +1 -1
- package/dist-lib/components/afhandeling/WeekAgendaView.js +15 -5
- package/dist-lib/components/afhandeling/WeekdayPicker.d.ts +12 -0
- package/dist-lib/components/afhandeling/WeekdayPicker.d.ts.map +1 -0
- package/dist-lib/components/afhandeling/WeekdayPicker.js +30 -0
- package/dist-lib/components/pickstation/PakbonTemplate.d.ts +1 -0
- package/dist-lib/components/pickstation/PakbonTemplate.d.ts.map +1 -1
- package/dist-lib/components/pickstation/PakbonTemplate.js +31 -8
- package/dist-lib/components/settings/AfhandelingSettingsCard.d.ts.map +1 -1
- package/dist-lib/components/settings/AfhandelingSettingsCard.js +9 -2
- package/dist-lib/components/ui/responsive-dialog.d.ts +20 -0
- package/dist-lib/components/ui/responsive-dialog.d.ts.map +1 -0
- package/dist-lib/components/ui/responsive-dialog.js +44 -0
- package/dist-lib/hooks/useOrderPlanning.d.ts.map +1 -1
- package/dist-lib/hooks/useOrderPlanning.js +17 -6
- package/dist-lib/index.d.ts +1 -0
- package/dist-lib/index.d.ts.map +1 -1
- package/dist-lib/index.js +4 -2
- package/dist-lib/integrations/supabase/auth-middleware.d.ts +629 -3
- package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/client.d.ts +629 -3
- package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/client.server.d.ts +629 -3
- package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/types.d.ts +639 -3
- package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
- package/dist-lib/lib/afhandelingSettings.functions.d.ts +1318 -62
- package/dist-lib/lib/afhandelingSettings.functions.d.ts.map +1 -1
- package/dist-lib/lib/afhandelingSettings.functions.js +16 -1
- package/dist-lib/lib/carrierMatch.server.d.ts +27 -0
- package/dist-lib/lib/carrierMatch.server.d.ts.map +1 -0
- package/dist-lib/lib/carrierMatch.server.js +75 -0
- package/dist-lib/lib/carriers.functions.d.ts +3151 -15
- package/dist-lib/lib/carriers.functions.d.ts.map +1 -1
- package/dist-lib/lib/carriers.functions.js +17 -2
- package/dist-lib/lib/cartAssignments.functions.d.ts +3145 -15
- package/dist-lib/lib/cartAssignments.functions.d.ts.map +1 -1
- package/dist-lib/lib/cartControl.functions.d.ts +99259 -0
- package/dist-lib/lib/cartControl.functions.d.ts.map +1 -0
- package/dist-lib/lib/cartControl.functions.js +489 -0
- package/dist-lib/lib/cartRescheduling.d.ts +30 -0
- package/dist-lib/lib/cartRescheduling.d.ts.map +1 -0
- package/dist-lib/lib/cartRescheduling.js +71 -0
- package/dist-lib/lib/floriday.functions.d.ts +629 -3
- package/dist-lib/lib/floriday.functions.d.ts.map +1 -1
- package/dist-lib/lib/pickstationI18n.d.ts +8 -0
- package/dist-lib/lib/pickstationI18n.d.ts.map +1 -1
- package/dist-lib/lib/pickstationI18n.js +48 -0
- package/dist-lib/lib/pickstationOrders.server.d.ts +1 -0
- package/dist-lib/lib/pickstationOrders.server.d.ts.map +1 -1
- package/dist-lib/lib/pickstationOrders.server.js +94 -7
- package/dist-lib/lib/pickstationTypes.d.ts +12 -0
- package/dist-lib/lib/pickstationTypes.d.ts.map +1 -1
- package/dist-lib/lib/planning.d.ts +23 -0
- package/dist-lib/lib/planning.d.ts.map +1 -1
- package/dist-lib/lib/planning.js +66 -6
- package/package.json +1 -1
|
@@ -27,6 +27,10 @@ export interface Carrier {
|
|
|
27
27
|
service_countries: string[];
|
|
28
28
|
service_provinces: string[];
|
|
29
29
|
service_cities: string[];
|
|
30
|
+
/** ISO-dagnummers (1=ma … 7=zo) waarop deze vervoerder karren bij ons ophaalt. */
|
|
31
|
+
pickup_weekdays: number[];
|
|
32
|
+
/** ISO-dagnummers waarop deze vervoerder bij de klant aflevert. */
|
|
33
|
+
delivery_weekdays: number[];
|
|
30
34
|
created_at: string;
|
|
31
35
|
updated_at: string;
|
|
32
36
|
}
|
|
@@ -49,6 +53,8 @@ export interface CarrierInput {
|
|
|
49
53
|
service_countries?: string[];
|
|
50
54
|
service_provinces?: string[];
|
|
51
55
|
service_cities?: string[];
|
|
56
|
+
pickup_weekdays?: number[];
|
|
57
|
+
delivery_weekdays?: number[];
|
|
52
58
|
}
|
|
53
59
|
export declare const listCarriers: import("@tanstack/start-client-core").OptionalFetcher<readonly [import("@tanstack/start-client-core").FunctionMiddlewareAfterServer<{}, unknown, undefined, {
|
|
54
60
|
supabase: import("@supabase/supabase-js").SupabaseClient<import("../integrations/supabase/types").Database, "public", "public", {
|
|
@@ -60,6 +66,7 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
|
|
|
60
66
|
max_workdays_earlier_pick: number;
|
|
61
67
|
pick_days_before_transport: number;
|
|
62
68
|
pick_distribution_enabled: boolean;
|
|
69
|
+
pick_weekdays: number[];
|
|
63
70
|
signup_mail_enabled: boolean;
|
|
64
71
|
signup_mail_lead_minutes: number;
|
|
65
72
|
signup_mail_purpose: string;
|
|
@@ -73,6 +80,7 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
|
|
|
73
80
|
max_workdays_earlier_pick?: number;
|
|
74
81
|
pick_days_before_transport?: number;
|
|
75
82
|
pick_distribution_enabled?: boolean;
|
|
83
|
+
pick_weekdays?: number[];
|
|
76
84
|
signup_mail_enabled?: boolean;
|
|
77
85
|
signup_mail_lead_minutes?: number;
|
|
78
86
|
signup_mail_purpose?: string;
|
|
@@ -86,6 +94,7 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
|
|
|
86
94
|
max_workdays_earlier_pick?: number;
|
|
87
95
|
pick_days_before_transport?: number;
|
|
88
96
|
pick_distribution_enabled?: boolean;
|
|
97
|
+
pick_weekdays?: number[];
|
|
89
98
|
signup_mail_enabled?: boolean;
|
|
90
99
|
signup_mail_lead_minutes?: number;
|
|
91
100
|
signup_mail_purpose?: string;
|
|
@@ -497,6 +506,48 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
|
|
|
497
506
|
referencedColumns: ["id"];
|
|
498
507
|
}];
|
|
499
508
|
};
|
|
509
|
+
carrier_signup_dispatch_runs: {
|
|
510
|
+
Row: {
|
|
511
|
+
detail: import("../integrations/supabase/types").Json | null;
|
|
512
|
+
error: string | null;
|
|
513
|
+
finished_at: string | null;
|
|
514
|
+
groups: number;
|
|
515
|
+
id: string;
|
|
516
|
+
ok: boolean;
|
|
517
|
+
reason: string | null;
|
|
518
|
+
sent: number;
|
|
519
|
+
skipped: import("../integrations/supabase/types").Json;
|
|
520
|
+
started_at: string;
|
|
521
|
+
unassigned: import("../integrations/supabase/types").Json;
|
|
522
|
+
};
|
|
523
|
+
Insert: {
|
|
524
|
+
detail?: import("../integrations/supabase/types").Json | null;
|
|
525
|
+
error?: string | null;
|
|
526
|
+
finished_at?: string | null;
|
|
527
|
+
groups?: number;
|
|
528
|
+
id?: string;
|
|
529
|
+
ok?: boolean;
|
|
530
|
+
reason?: string | null;
|
|
531
|
+
sent?: number;
|
|
532
|
+
skipped?: import("../integrations/supabase/types").Json;
|
|
533
|
+
started_at?: string;
|
|
534
|
+
unassigned?: import("../integrations/supabase/types").Json;
|
|
535
|
+
};
|
|
536
|
+
Update: {
|
|
537
|
+
detail?: import("../integrations/supabase/types").Json | null;
|
|
538
|
+
error?: string | null;
|
|
539
|
+
finished_at?: string | null;
|
|
540
|
+
groups?: number;
|
|
541
|
+
id?: string;
|
|
542
|
+
ok?: boolean;
|
|
543
|
+
reason?: string | null;
|
|
544
|
+
sent?: number;
|
|
545
|
+
skipped?: import("../integrations/supabase/types").Json;
|
|
546
|
+
started_at?: string;
|
|
547
|
+
unassigned?: import("../integrations/supabase/types").Json;
|
|
548
|
+
};
|
|
549
|
+
Relationships: [];
|
|
550
|
+
};
|
|
500
551
|
carrier_signup_dispatches: {
|
|
501
552
|
Row: {
|
|
502
553
|
carrier_id: string;
|
|
@@ -548,6 +599,7 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
|
|
|
548
599
|
contact_person: string | null;
|
|
549
600
|
created_at: string;
|
|
550
601
|
delivery_days: number | null;
|
|
602
|
+
delivery_weekdays: number[];
|
|
551
603
|
email: string | null;
|
|
552
604
|
id: string;
|
|
553
605
|
is_default: boolean;
|
|
@@ -555,6 +607,7 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
|
|
|
555
607
|
notes: string | null;
|
|
556
608
|
phone: string | null;
|
|
557
609
|
pickup_moments: import("../integrations/supabase/types").Json;
|
|
610
|
+
pickup_weekdays: number[];
|
|
558
611
|
service_cities: string[];
|
|
559
612
|
service_countries: string[];
|
|
560
613
|
service_provinces: string[];
|
|
@@ -570,6 +623,7 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
|
|
|
570
623
|
contact_person?: string | null;
|
|
571
624
|
created_at?: string;
|
|
572
625
|
delivery_days?: number | null;
|
|
626
|
+
delivery_weekdays?: number[];
|
|
573
627
|
email?: string | null;
|
|
574
628
|
id?: string;
|
|
575
629
|
is_default?: boolean;
|
|
@@ -577,6 +631,7 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
|
|
|
577
631
|
notes?: string | null;
|
|
578
632
|
phone?: string | null;
|
|
579
633
|
pickup_moments?: import("../integrations/supabase/types").Json;
|
|
634
|
+
pickup_weekdays?: number[];
|
|
580
635
|
service_cities?: string[];
|
|
581
636
|
service_countries?: string[];
|
|
582
637
|
service_provinces?: string[];
|
|
@@ -592,6 +647,7 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
|
|
|
592
647
|
contact_person?: string | null;
|
|
593
648
|
created_at?: string;
|
|
594
649
|
delivery_days?: number | null;
|
|
650
|
+
delivery_weekdays?: number[];
|
|
595
651
|
email?: string | null;
|
|
596
652
|
id?: string;
|
|
597
653
|
is_default?: boolean;
|
|
@@ -599,6 +655,7 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
|
|
|
599
655
|
notes?: string | null;
|
|
600
656
|
phone?: string | null;
|
|
601
657
|
pickup_moments?: import("../integrations/supabase/types").Json;
|
|
658
|
+
pickup_weekdays?: number[];
|
|
602
659
|
service_cities?: string[];
|
|
603
660
|
service_countries?: string[];
|
|
604
661
|
service_provinces?: string[];
|
|
@@ -611,6 +668,177 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
|
|
|
611
668
|
};
|
|
612
669
|
Relationships: [];
|
|
613
670
|
};
|
|
671
|
+
cart_control_draft: {
|
|
672
|
+
Row: {
|
|
673
|
+
cart_states: import("../integrations/supabase/types").Json;
|
|
674
|
+
checked_keys: import("../integrations/supabase/types").Json;
|
|
675
|
+
draft_date: string;
|
|
676
|
+
form_state: import("../integrations/supabase/types").Json;
|
|
677
|
+
notes: string;
|
|
678
|
+
updated_at: string;
|
|
679
|
+
user_id: string;
|
|
680
|
+
};
|
|
681
|
+
Insert: {
|
|
682
|
+
cart_states?: import("../integrations/supabase/types").Json;
|
|
683
|
+
checked_keys?: import("../integrations/supabase/types").Json;
|
|
684
|
+
draft_date: string;
|
|
685
|
+
form_state?: import("../integrations/supabase/types").Json;
|
|
686
|
+
notes?: string;
|
|
687
|
+
updated_at?: string;
|
|
688
|
+
user_id: string;
|
|
689
|
+
};
|
|
690
|
+
Update: {
|
|
691
|
+
cart_states?: import("../integrations/supabase/types").Json;
|
|
692
|
+
checked_keys?: import("../integrations/supabase/types").Json;
|
|
693
|
+
draft_date?: string;
|
|
694
|
+
form_state?: import("../integrations/supabase/types").Json;
|
|
695
|
+
notes?: string;
|
|
696
|
+
updated_at?: string;
|
|
697
|
+
user_id?: string;
|
|
698
|
+
};
|
|
699
|
+
Relationships: [];
|
|
700
|
+
};
|
|
701
|
+
cart_control_items: {
|
|
702
|
+
Row: {
|
|
703
|
+
action: string;
|
|
704
|
+
block_reason: string | null;
|
|
705
|
+
carrier_name: string | null;
|
|
706
|
+
cart_index: number;
|
|
707
|
+
cart_number_id: string | null;
|
|
708
|
+
cart_number_label: string | null;
|
|
709
|
+
created_at: string;
|
|
710
|
+
customer_name: string | null;
|
|
711
|
+
delivery_date: string | null;
|
|
712
|
+
id: string;
|
|
713
|
+
new_pick_date: string | null;
|
|
714
|
+
order_id: string;
|
|
715
|
+
order_number: string | null;
|
|
716
|
+
order_source: string;
|
|
717
|
+
pickup_date: string | null;
|
|
718
|
+
session_id: string;
|
|
719
|
+
};
|
|
720
|
+
Insert: {
|
|
721
|
+
action: string;
|
|
722
|
+
block_reason?: string | null;
|
|
723
|
+
carrier_name?: string | null;
|
|
724
|
+
cart_index: number;
|
|
725
|
+
cart_number_id?: string | null;
|
|
726
|
+
cart_number_label?: string | null;
|
|
727
|
+
created_at?: string;
|
|
728
|
+
customer_name?: string | null;
|
|
729
|
+
delivery_date?: string | null;
|
|
730
|
+
id?: string;
|
|
731
|
+
new_pick_date?: string | null;
|
|
732
|
+
order_id: string;
|
|
733
|
+
order_number?: string | null;
|
|
734
|
+
order_source: string;
|
|
735
|
+
pickup_date?: string | null;
|
|
736
|
+
session_id: string;
|
|
737
|
+
};
|
|
738
|
+
Update: {
|
|
739
|
+
action?: string;
|
|
740
|
+
block_reason?: string | null;
|
|
741
|
+
carrier_name?: string | null;
|
|
742
|
+
cart_index?: number;
|
|
743
|
+
cart_number_id?: string | null;
|
|
744
|
+
cart_number_label?: string | null;
|
|
745
|
+
created_at?: string;
|
|
746
|
+
customer_name?: string | null;
|
|
747
|
+
delivery_date?: string | null;
|
|
748
|
+
id?: string;
|
|
749
|
+
new_pick_date?: string | null;
|
|
750
|
+
order_id?: string;
|
|
751
|
+
order_number?: string | null;
|
|
752
|
+
order_source?: string;
|
|
753
|
+
pickup_date?: string | null;
|
|
754
|
+
session_id?: string;
|
|
755
|
+
};
|
|
756
|
+
Relationships: [{
|
|
757
|
+
foreignKeyName: "cart_control_items_session_id_fkey";
|
|
758
|
+
columns: ["session_id"];
|
|
759
|
+
isOneToOne: false;
|
|
760
|
+
referencedRelation: "cart_control_sessions";
|
|
761
|
+
referencedColumns: ["id"];
|
|
762
|
+
}];
|
|
763
|
+
};
|
|
764
|
+
cart_control_sessions: {
|
|
765
|
+
Row: {
|
|
766
|
+
blocked_count: number;
|
|
767
|
+
checked_count: number;
|
|
768
|
+
control_date: string;
|
|
769
|
+
created_at: string;
|
|
770
|
+
id: string;
|
|
771
|
+
notes: string | null;
|
|
772
|
+
performed_at: string;
|
|
773
|
+
rescheduled_count: number;
|
|
774
|
+
total_carts: number;
|
|
775
|
+
updated_at: string;
|
|
776
|
+
user_id: string;
|
|
777
|
+
};
|
|
778
|
+
Insert: {
|
|
779
|
+
blocked_count?: number;
|
|
780
|
+
checked_count?: number;
|
|
781
|
+
control_date?: string;
|
|
782
|
+
created_at?: string;
|
|
783
|
+
id?: string;
|
|
784
|
+
notes?: string | null;
|
|
785
|
+
performed_at?: string;
|
|
786
|
+
rescheduled_count?: number;
|
|
787
|
+
total_carts?: number;
|
|
788
|
+
updated_at?: string;
|
|
789
|
+
user_id: string;
|
|
790
|
+
};
|
|
791
|
+
Update: {
|
|
792
|
+
blocked_count?: number;
|
|
793
|
+
checked_count?: number;
|
|
794
|
+
control_date?: string;
|
|
795
|
+
created_at?: string;
|
|
796
|
+
id?: string;
|
|
797
|
+
notes?: string | null;
|
|
798
|
+
performed_at?: string;
|
|
799
|
+
rescheduled_count?: number;
|
|
800
|
+
total_carts?: number;
|
|
801
|
+
updated_at?: string;
|
|
802
|
+
user_id?: string;
|
|
803
|
+
};
|
|
804
|
+
Relationships: [];
|
|
805
|
+
};
|
|
806
|
+
cart_numbers: {
|
|
807
|
+
Row: {
|
|
808
|
+
assigned_at: string;
|
|
809
|
+
cart_index: number;
|
|
810
|
+
cart_number: string;
|
|
811
|
+
day_seq: number;
|
|
812
|
+
id: string;
|
|
813
|
+
order_id: string;
|
|
814
|
+
order_source: string;
|
|
815
|
+
pick_date: string;
|
|
816
|
+
status: string;
|
|
817
|
+
};
|
|
818
|
+
Insert: {
|
|
819
|
+
assigned_at?: string;
|
|
820
|
+
cart_index: number;
|
|
821
|
+
cart_number: string;
|
|
822
|
+
day_seq: number;
|
|
823
|
+
id?: string;
|
|
824
|
+
order_id: string;
|
|
825
|
+
order_source: string;
|
|
826
|
+
pick_date: string;
|
|
827
|
+
status?: string;
|
|
828
|
+
};
|
|
829
|
+
Update: {
|
|
830
|
+
assigned_at?: string;
|
|
831
|
+
cart_index?: number;
|
|
832
|
+
cart_number?: string;
|
|
833
|
+
day_seq?: number;
|
|
834
|
+
id?: string;
|
|
835
|
+
order_id?: string;
|
|
836
|
+
order_source?: string;
|
|
837
|
+
pick_date?: string;
|
|
838
|
+
status?: string;
|
|
839
|
+
};
|
|
840
|
+
Relationships: [];
|
|
841
|
+
};
|
|
614
842
|
cart_pick_overrides: {
|
|
615
843
|
Row: {
|
|
616
844
|
cart_index: number;
|
|
@@ -1283,6 +1511,54 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
|
|
|
1283
1511
|
referencedColumns: ["id"];
|
|
1284
1512
|
}];
|
|
1285
1513
|
};
|
|
1514
|
+
dashboard_critical_alerts: {
|
|
1515
|
+
Row: {
|
|
1516
|
+
alert_key: string;
|
|
1517
|
+
alert_type: string;
|
|
1518
|
+
created_at: string;
|
|
1519
|
+
description: string | null;
|
|
1520
|
+
id: string;
|
|
1521
|
+
metadata: import("../integrations/supabase/types").Json | null;
|
|
1522
|
+
priority: string;
|
|
1523
|
+
raised_at: string;
|
|
1524
|
+
related_cart_ids: string[] | null;
|
|
1525
|
+
resolved_at: string | null;
|
|
1526
|
+
title: string;
|
|
1527
|
+
updated_at: string;
|
|
1528
|
+
user_id: string;
|
|
1529
|
+
};
|
|
1530
|
+
Insert: {
|
|
1531
|
+
alert_key: string;
|
|
1532
|
+
alert_type: string;
|
|
1533
|
+
created_at?: string;
|
|
1534
|
+
description?: string | null;
|
|
1535
|
+
id?: string;
|
|
1536
|
+
metadata?: import("../integrations/supabase/types").Json | null;
|
|
1537
|
+
priority?: string;
|
|
1538
|
+
raised_at?: string;
|
|
1539
|
+
related_cart_ids?: string[] | null;
|
|
1540
|
+
resolved_at?: string | null;
|
|
1541
|
+
title: string;
|
|
1542
|
+
updated_at?: string;
|
|
1543
|
+
user_id: string;
|
|
1544
|
+
};
|
|
1545
|
+
Update: {
|
|
1546
|
+
alert_key?: string;
|
|
1547
|
+
alert_type?: string;
|
|
1548
|
+
created_at?: string;
|
|
1549
|
+
description?: string | null;
|
|
1550
|
+
id?: string;
|
|
1551
|
+
metadata?: import("../integrations/supabase/types").Json | null;
|
|
1552
|
+
priority?: string;
|
|
1553
|
+
raised_at?: string;
|
|
1554
|
+
related_cart_ids?: string[] | null;
|
|
1555
|
+
resolved_at?: string | null;
|
|
1556
|
+
title?: string;
|
|
1557
|
+
updated_at?: string;
|
|
1558
|
+
user_id?: string;
|
|
1559
|
+
};
|
|
1560
|
+
Relationships: [];
|
|
1561
|
+
};
|
|
1286
1562
|
dashboard_daily_reports: {
|
|
1287
1563
|
Row: {
|
|
1288
1564
|
created_at: string;
|
|
@@ -2785,6 +3061,7 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
|
|
|
2785
3061
|
};
|
|
2786
3062
|
floricode_sync_state: {
|
|
2787
3063
|
Row: {
|
|
3064
|
+
cursor_skip: number;
|
|
2788
3065
|
error_message: string | null;
|
|
2789
3066
|
last_change_date_time: string | null;
|
|
2790
3067
|
last_sequence_number: number;
|
|
@@ -2794,6 +3071,7 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
|
|
|
2794
3071
|
updated_at: string;
|
|
2795
3072
|
};
|
|
2796
3073
|
Insert: {
|
|
3074
|
+
cursor_skip?: number;
|
|
2797
3075
|
error_message?: string | null;
|
|
2798
3076
|
last_change_date_time?: string | null;
|
|
2799
3077
|
last_sequence_number?: number;
|
|
@@ -2803,6 +3081,7 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
|
|
|
2803
3081
|
updated_at?: string;
|
|
2804
3082
|
};
|
|
2805
3083
|
Update: {
|
|
3084
|
+
cursor_skip?: number;
|
|
2806
3085
|
error_message?: string | null;
|
|
2807
3086
|
last_change_date_time?: string | null;
|
|
2808
3087
|
last_sequence_number?: number;
|
|
@@ -5150,6 +5429,93 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
|
|
|
5150
5429
|
};
|
|
5151
5430
|
Relationships: [];
|
|
5152
5431
|
};
|
|
5432
|
+
manufacture_product_components: {
|
|
5433
|
+
Row: {
|
|
5434
|
+
component_type: string;
|
|
5435
|
+
created_at: string;
|
|
5436
|
+
id: string;
|
|
5437
|
+
manufacture_product_id: string;
|
|
5438
|
+
product_group_id: string | null;
|
|
5439
|
+
quantity: number;
|
|
5440
|
+
trade_item_id: string | null;
|
|
5441
|
+
unit: string;
|
|
5442
|
+
};
|
|
5443
|
+
Insert: {
|
|
5444
|
+
component_type: string;
|
|
5445
|
+
created_at?: string;
|
|
5446
|
+
id?: string;
|
|
5447
|
+
manufacture_product_id: string;
|
|
5448
|
+
product_group_id?: string | null;
|
|
5449
|
+
quantity?: number;
|
|
5450
|
+
trade_item_id?: string | null;
|
|
5451
|
+
unit?: string;
|
|
5452
|
+
};
|
|
5453
|
+
Update: {
|
|
5454
|
+
component_type?: string;
|
|
5455
|
+
created_at?: string;
|
|
5456
|
+
id?: string;
|
|
5457
|
+
manufacture_product_id?: string;
|
|
5458
|
+
product_group_id?: string | null;
|
|
5459
|
+
quantity?: number;
|
|
5460
|
+
trade_item_id?: string | null;
|
|
5461
|
+
unit?: string;
|
|
5462
|
+
};
|
|
5463
|
+
Relationships: [{
|
|
5464
|
+
foreignKeyName: "manufacture_product_components_manufacture_product_id_fkey";
|
|
5465
|
+
columns: ["manufacture_product_id"];
|
|
5466
|
+
isOneToOne: false;
|
|
5467
|
+
referencedRelation: "manufacture_product_possible_stock_view";
|
|
5468
|
+
referencedColumns: ["manufacture_product_id"];
|
|
5469
|
+
}, {
|
|
5470
|
+
foreignKeyName: "manufacture_product_components_manufacture_product_id_fkey";
|
|
5471
|
+
columns: ["manufacture_product_id"];
|
|
5472
|
+
isOneToOne: false;
|
|
5473
|
+
referencedRelation: "manufacture_products";
|
|
5474
|
+
referencedColumns: ["id"];
|
|
5475
|
+
}, {
|
|
5476
|
+
foreignKeyName: "manufacture_product_components_product_group_id_fkey";
|
|
5477
|
+
columns: ["product_group_id"];
|
|
5478
|
+
isOneToOne: false;
|
|
5479
|
+
referencedRelation: "product_groups";
|
|
5480
|
+
referencedColumns: ["id"];
|
|
5481
|
+
}];
|
|
5482
|
+
};
|
|
5483
|
+
manufacture_products: {
|
|
5484
|
+
Row: {
|
|
5485
|
+
created_at: string;
|
|
5486
|
+
description: string | null;
|
|
5487
|
+
id: string;
|
|
5488
|
+
is_active: boolean;
|
|
5489
|
+
name: string;
|
|
5490
|
+
produced_stock: number;
|
|
5491
|
+
product_code: string;
|
|
5492
|
+
tenant_id: string;
|
|
5493
|
+
updated_at: string;
|
|
5494
|
+
};
|
|
5495
|
+
Insert: {
|
|
5496
|
+
created_at?: string;
|
|
5497
|
+
description?: string | null;
|
|
5498
|
+
id?: string;
|
|
5499
|
+
is_active?: boolean;
|
|
5500
|
+
name: string;
|
|
5501
|
+
produced_stock?: number;
|
|
5502
|
+
product_code: string;
|
|
5503
|
+
tenant_id: string;
|
|
5504
|
+
updated_at?: string;
|
|
5505
|
+
};
|
|
5506
|
+
Update: {
|
|
5507
|
+
created_at?: string;
|
|
5508
|
+
description?: string | null;
|
|
5509
|
+
id?: string;
|
|
5510
|
+
is_active?: boolean;
|
|
5511
|
+
name?: string;
|
|
5512
|
+
produced_stock?: number;
|
|
5513
|
+
product_code?: string;
|
|
5514
|
+
tenant_id?: string;
|
|
5515
|
+
updated_at?: string;
|
|
5516
|
+
};
|
|
5517
|
+
Relationships: [];
|
|
5518
|
+
};
|
|
5153
5519
|
monteurs: {
|
|
5154
5520
|
Row: {
|
|
5155
5521
|
avatar_url: string | null;
|
|
@@ -6110,6 +6476,66 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
|
|
|
6110
6476
|
};
|
|
6111
6477
|
Relationships: [];
|
|
6112
6478
|
};
|
|
6479
|
+
product_group_items: {
|
|
6480
|
+
Row: {
|
|
6481
|
+
created_at: string;
|
|
6482
|
+
id: string;
|
|
6483
|
+
product_group_id: string;
|
|
6484
|
+
quantity: number;
|
|
6485
|
+
trade_item_id: string;
|
|
6486
|
+
};
|
|
6487
|
+
Insert: {
|
|
6488
|
+
created_at?: string;
|
|
6489
|
+
id?: string;
|
|
6490
|
+
product_group_id: string;
|
|
6491
|
+
quantity?: number;
|
|
6492
|
+
trade_item_id: string;
|
|
6493
|
+
};
|
|
6494
|
+
Update: {
|
|
6495
|
+
created_at?: string;
|
|
6496
|
+
id?: string;
|
|
6497
|
+
product_group_id?: string;
|
|
6498
|
+
quantity?: number;
|
|
6499
|
+
trade_item_id?: string;
|
|
6500
|
+
};
|
|
6501
|
+
Relationships: [{
|
|
6502
|
+
foreignKeyName: "product_group_items_product_group_id_fkey";
|
|
6503
|
+
columns: ["product_group_id"];
|
|
6504
|
+
isOneToOne: false;
|
|
6505
|
+
referencedRelation: "product_groups";
|
|
6506
|
+
referencedColumns: ["id"];
|
|
6507
|
+
}];
|
|
6508
|
+
};
|
|
6509
|
+
product_groups: {
|
|
6510
|
+
Row: {
|
|
6511
|
+
created_at: string;
|
|
6512
|
+
description: string | null;
|
|
6513
|
+
id: string;
|
|
6514
|
+
is_active: boolean;
|
|
6515
|
+
name: string;
|
|
6516
|
+
tenant_id: string;
|
|
6517
|
+
updated_at: string;
|
|
6518
|
+
};
|
|
6519
|
+
Insert: {
|
|
6520
|
+
created_at?: string;
|
|
6521
|
+
description?: string | null;
|
|
6522
|
+
id?: string;
|
|
6523
|
+
is_active?: boolean;
|
|
6524
|
+
name: string;
|
|
6525
|
+
tenant_id: string;
|
|
6526
|
+
updated_at?: string;
|
|
6527
|
+
};
|
|
6528
|
+
Update: {
|
|
6529
|
+
created_at?: string;
|
|
6530
|
+
description?: string | null;
|
|
6531
|
+
id?: string;
|
|
6532
|
+
is_active?: boolean;
|
|
6533
|
+
name?: string;
|
|
6534
|
+
tenant_id?: string;
|
|
6535
|
+
updated_at?: string;
|
|
6536
|
+
};
|
|
6537
|
+
Relationships: [];
|
|
6538
|
+
};
|
|
6113
6539
|
products: {
|
|
6114
6540
|
Row: {
|
|
6115
6541
|
barcode: string | null;
|
|
@@ -7249,7 +7675,13 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
|
|
|
7249
7675
|
connection_id: string | null;
|
|
7250
7676
|
created_at: string;
|
|
7251
7677
|
data: import("../integrations/supabase/types").Json;
|
|
7678
|
+
floriday_id: string | null;
|
|
7679
|
+
floriday_link_error: string | null;
|
|
7680
|
+
floriday_link_status: string;
|
|
7252
7681
|
id: string;
|
|
7682
|
+
last_floriday_sync_at: string | null;
|
|
7683
|
+
missing_required_fields: string[];
|
|
7684
|
+
source: string;
|
|
7253
7685
|
updated_at: string;
|
|
7254
7686
|
user_id: string;
|
|
7255
7687
|
};
|
|
@@ -7257,7 +7689,13 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
|
|
|
7257
7689
|
connection_id?: string | null;
|
|
7258
7690
|
created_at?: string;
|
|
7259
7691
|
data?: import("../integrations/supabase/types").Json;
|
|
7692
|
+
floriday_id?: string | null;
|
|
7693
|
+
floriday_link_error?: string | null;
|
|
7694
|
+
floriday_link_status?: string;
|
|
7260
7695
|
id?: string;
|
|
7696
|
+
last_floriday_sync_at?: string | null;
|
|
7697
|
+
missing_required_fields?: string[];
|
|
7698
|
+
source?: string;
|
|
7261
7699
|
updated_at?: string;
|
|
7262
7700
|
user_id: string;
|
|
7263
7701
|
};
|
|
@@ -7265,7 +7703,55 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
|
|
|
7265
7703
|
connection_id?: string | null;
|
|
7266
7704
|
created_at?: string;
|
|
7267
7705
|
data?: import("../integrations/supabase/types").Json;
|
|
7706
|
+
floriday_id?: string | null;
|
|
7707
|
+
floriday_link_error?: string | null;
|
|
7708
|
+
floriday_link_status?: string;
|
|
7268
7709
|
id?: string;
|
|
7710
|
+
last_floriday_sync_at?: string | null;
|
|
7711
|
+
missing_required_fields?: string[];
|
|
7712
|
+
source?: string;
|
|
7713
|
+
updated_at?: string;
|
|
7714
|
+
user_id?: string;
|
|
7715
|
+
};
|
|
7716
|
+
Relationships: [];
|
|
7717
|
+
};
|
|
7718
|
+
trade_item_stock: {
|
|
7719
|
+
Row: {
|
|
7720
|
+
connection_id: string;
|
|
7721
|
+
created_at: string;
|
|
7722
|
+
id: string;
|
|
7723
|
+
incoming_stock: number;
|
|
7724
|
+
minimum_stock: number;
|
|
7725
|
+
notes: string | null;
|
|
7726
|
+
physical_stock: number;
|
|
7727
|
+
reserved_stock: number;
|
|
7728
|
+
trade_item_key: string;
|
|
7729
|
+
updated_at: string;
|
|
7730
|
+
user_id: string;
|
|
7731
|
+
};
|
|
7732
|
+
Insert: {
|
|
7733
|
+
connection_id: string;
|
|
7734
|
+
created_at?: string;
|
|
7735
|
+
id?: string;
|
|
7736
|
+
incoming_stock?: number;
|
|
7737
|
+
minimum_stock?: number;
|
|
7738
|
+
notes?: string | null;
|
|
7739
|
+
physical_stock?: number;
|
|
7740
|
+
reserved_stock?: number;
|
|
7741
|
+
trade_item_key: string;
|
|
7742
|
+
updated_at?: string;
|
|
7743
|
+
user_id: string;
|
|
7744
|
+
};
|
|
7745
|
+
Update: {
|
|
7746
|
+
connection_id?: string;
|
|
7747
|
+
created_at?: string;
|
|
7748
|
+
id?: string;
|
|
7749
|
+
incoming_stock?: number;
|
|
7750
|
+
minimum_stock?: number;
|
|
7751
|
+
notes?: string | null;
|
|
7752
|
+
physical_stock?: number;
|
|
7753
|
+
reserved_stock?: number;
|
|
7754
|
+
trade_item_key?: string;
|
|
7269
7755
|
updated_at?: string;
|
|
7270
7756
|
user_id?: string;
|
|
7271
7757
|
};
|
|
@@ -7615,6 +8101,7 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
|
|
|
7615
8101
|
};
|
|
7616
8102
|
twinfield_invoice_sync_logs: {
|
|
7617
8103
|
Row: {
|
|
8104
|
+
action_type: string | null;
|
|
7618
8105
|
created_at: string;
|
|
7619
8106
|
details: import("../integrations/supabase/types").Json | null;
|
|
7620
8107
|
duration_ms: number | null;
|
|
@@ -7627,6 +8114,7 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
|
|
|
7627
8114
|
user_id: string;
|
|
7628
8115
|
};
|
|
7629
8116
|
Insert: {
|
|
8117
|
+
action_type?: string | null;
|
|
7630
8118
|
created_at?: string;
|
|
7631
8119
|
details?: import("../integrations/supabase/types").Json | null;
|
|
7632
8120
|
duration_ms?: number | null;
|
|
@@ -7639,6 +8127,7 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
|
|
|
7639
8127
|
user_id: string;
|
|
7640
8128
|
};
|
|
7641
8129
|
Update: {
|
|
8130
|
+
action_type?: string | null;
|
|
7642
8131
|
created_at?: string;
|
|
7643
8132
|
details?: import("../integrations/supabase/types").Json | null;
|
|
7644
8133
|
duration_ms?: number | null;
|
|
@@ -7874,6 +8363,57 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
|
|
|
7874
8363
|
referencedColumns: ["id"];
|
|
7875
8364
|
}];
|
|
7876
8365
|
};
|
|
8366
|
+
twinfield_request_metrics: {
|
|
8367
|
+
Row: {
|
|
8368
|
+
bucket_hour: string;
|
|
8369
|
+
connection_id: string;
|
|
8370
|
+
error_count: number;
|
|
8371
|
+
rate_limited_count: number;
|
|
8372
|
+
request_count: number;
|
|
8373
|
+
updated_at: string;
|
|
8374
|
+
};
|
|
8375
|
+
Insert: {
|
|
8376
|
+
bucket_hour: string;
|
|
8377
|
+
connection_id: string;
|
|
8378
|
+
error_count?: number;
|
|
8379
|
+
rate_limited_count?: number;
|
|
8380
|
+
request_count?: number;
|
|
8381
|
+
updated_at?: string;
|
|
8382
|
+
};
|
|
8383
|
+
Update: {
|
|
8384
|
+
bucket_hour?: string;
|
|
8385
|
+
connection_id?: string;
|
|
8386
|
+
error_count?: number;
|
|
8387
|
+
rate_limited_count?: number;
|
|
8388
|
+
request_count?: number;
|
|
8389
|
+
updated_at?: string;
|
|
8390
|
+
};
|
|
8391
|
+
Relationships: [];
|
|
8392
|
+
};
|
|
8393
|
+
twinfield_session_cache: {
|
|
8394
|
+
Row: {
|
|
8395
|
+
cluster: string;
|
|
8396
|
+
created_at: string;
|
|
8397
|
+
expires_at: string;
|
|
8398
|
+
session_id: string;
|
|
8399
|
+
user_id: string;
|
|
8400
|
+
};
|
|
8401
|
+
Insert: {
|
|
8402
|
+
cluster: string;
|
|
8403
|
+
created_at?: string;
|
|
8404
|
+
expires_at: string;
|
|
8405
|
+
session_id: string;
|
|
8406
|
+
user_id: string;
|
|
8407
|
+
};
|
|
8408
|
+
Update: {
|
|
8409
|
+
cluster?: string;
|
|
8410
|
+
created_at?: string;
|
|
8411
|
+
expires_at?: string;
|
|
8412
|
+
session_id?: string;
|
|
8413
|
+
user_id?: string;
|
|
8414
|
+
};
|
|
8415
|
+
Relationships: [];
|
|
8416
|
+
};
|
|
7877
8417
|
twinfield_settings: {
|
|
7878
8418
|
Row: {
|
|
7879
8419
|
active_environment: string;
|
|
@@ -8455,6 +8995,35 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
|
|
|
8455
8995
|
};
|
|
8456
8996
|
Relationships: [];
|
|
8457
8997
|
};
|
|
8998
|
+
manufacture_product_possible_stock_view: {
|
|
8999
|
+
Row: {
|
|
9000
|
+
component_count: number | null;
|
|
9001
|
+
manufacture_product_id: string | null;
|
|
9002
|
+
possible_stock: number | null;
|
|
9003
|
+
};
|
|
9004
|
+
Relationships: [];
|
|
9005
|
+
};
|
|
9006
|
+
product_group_stock_view: {
|
|
9007
|
+
Row: {
|
|
9008
|
+
item_count: number | null;
|
|
9009
|
+
product_group_id: string | null;
|
|
9010
|
+
total_stock: number | null;
|
|
9011
|
+
};
|
|
9012
|
+
Relationships: [{
|
|
9013
|
+
foreignKeyName: "product_group_items_product_group_id_fkey";
|
|
9014
|
+
columns: ["product_group_id"];
|
|
9015
|
+
isOneToOne: false;
|
|
9016
|
+
referencedRelation: "product_groups";
|
|
9017
|
+
referencedColumns: ["id"];
|
|
9018
|
+
}];
|
|
9019
|
+
};
|
|
9020
|
+
trade_item_stock_view: {
|
|
9021
|
+
Row: {
|
|
9022
|
+
stock: number | null;
|
|
9023
|
+
trade_item_id: string | null;
|
|
9024
|
+
};
|
|
9025
|
+
Relationships: [];
|
|
9026
|
+
};
|
|
8458
9027
|
v_external_customers_exact: {
|
|
8459
9028
|
Row: {
|
|
8460
9029
|
account_number: string | null;
|
|
@@ -8710,6 +9279,20 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
|
|
|
8710
9279
|
};
|
|
8711
9280
|
Returns: number;
|
|
8712
9281
|
};
|
|
9282
|
+
assign_cart_numbers: {
|
|
9283
|
+
Args: {
|
|
9284
|
+
p_carts: import("../integrations/supabase/types").Json;
|
|
9285
|
+
};
|
|
9286
|
+
Returns: {
|
|
9287
|
+
cart_index: number;
|
|
9288
|
+
cart_number: string;
|
|
9289
|
+
day_seq: number;
|
|
9290
|
+
order_id: string;
|
|
9291
|
+
order_source: string;
|
|
9292
|
+
pick_date: string;
|
|
9293
|
+
status: string;
|
|
9294
|
+
}[];
|
|
9295
|
+
};
|
|
8713
9296
|
assign_floriday_order_numbers: {
|
|
8714
9297
|
Args: {
|
|
8715
9298
|
p_ids: string[];
|
|
@@ -8729,10 +9312,37 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
|
|
|
8729
9312
|
Args: never;
|
|
8730
9313
|
Returns: number;
|
|
8731
9314
|
};
|
|
9315
|
+
control_get_todays_carts: {
|
|
9316
|
+
Args: never;
|
|
9317
|
+
Returns: {
|
|
9318
|
+
cart_index: number;
|
|
9319
|
+
cart_number: string;
|
|
9320
|
+
cart_number_id: string;
|
|
9321
|
+
order_id: string;
|
|
9322
|
+
order_source: string;
|
|
9323
|
+
pick_date: string;
|
|
9324
|
+
status: string;
|
|
9325
|
+
}[];
|
|
9326
|
+
};
|
|
9327
|
+
count_distinct_regulatory_products: {
|
|
9328
|
+
Args: never;
|
|
9329
|
+
Returns: number;
|
|
9330
|
+
};
|
|
8732
9331
|
current_monteur_id: {
|
|
8733
9332
|
Args: never;
|
|
8734
9333
|
Returns: string;
|
|
8735
9334
|
};
|
|
9335
|
+
dashboard_alert_counts: {
|
|
9336
|
+
Args: never;
|
|
9337
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
9338
|
+
};
|
|
9339
|
+
dashboard_alert_rows: {
|
|
9340
|
+
Args: {
|
|
9341
|
+
check_id: string;
|
|
9342
|
+
row_limit?: number;
|
|
9343
|
+
};
|
|
9344
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
9345
|
+
};
|
|
8736
9346
|
dashboard_list_public_schema: {
|
|
8737
9347
|
Args: never;
|
|
8738
9348
|
Returns: {
|
|
@@ -8813,6 +9423,13 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
|
|
|
8813
9423
|
};
|
|
8814
9424
|
Returns: boolean;
|
|
8815
9425
|
};
|
|
9426
|
+
format_cart_number: {
|
|
9427
|
+
Args: {
|
|
9428
|
+
p_pick_date: string;
|
|
9429
|
+
p_seq: number;
|
|
9430
|
+
};
|
|
9431
|
+
Returns: string;
|
|
9432
|
+
};
|
|
8816
9433
|
get_active_floriday_connection_public: {
|
|
8817
9434
|
Args: never;
|
|
8818
9435
|
Returns: {
|
|
@@ -9017,14 +9634,29 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
|
|
|
9017
9634
|
};
|
|
9018
9635
|
Returns: undefined;
|
|
9019
9636
|
};
|
|
9637
|
+
pickstation_set_cart_status: {
|
|
9638
|
+
Args: {
|
|
9639
|
+
p_cart_index: number;
|
|
9640
|
+
p_order_id: string;
|
|
9641
|
+
p_order_source: string;
|
|
9642
|
+
p_status: string;
|
|
9643
|
+
};
|
|
9644
|
+
Returns: undefined;
|
|
9645
|
+
};
|
|
9020
9646
|
refresh_floricode_derived_code_lists: {
|
|
9021
9647
|
Args: never;
|
|
9022
9648
|
Returns: {
|
|
9023
|
-
|
|
9024
|
-
|
|
9025
|
-
|
|
9649
|
+
environment: string;
|
|
9650
|
+
list_name: string;
|
|
9651
|
+
row_count: number;
|
|
9026
9652
|
}[];
|
|
9027
9653
|
};
|
|
9654
|
+
refresh_floricode_derived_for_product: {
|
|
9655
|
+
Args: {
|
|
9656
|
+
p_product_code: string;
|
|
9657
|
+
};
|
|
9658
|
+
Returns: number;
|
|
9659
|
+
};
|
|
9028
9660
|
reset_floriday_sync_cursor: {
|
|
9029
9661
|
Args: {
|
|
9030
9662
|
p_connection_id: string;
|
|
@@ -9347,6 +9979,7 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
|
|
|
9347
9979
|
max_workdays_earlier_pick: number;
|
|
9348
9980
|
pick_days_before_transport: number;
|
|
9349
9981
|
pick_distribution_enabled: boolean;
|
|
9982
|
+
pick_weekdays: number[];
|
|
9350
9983
|
signup_mail_enabled: boolean;
|
|
9351
9984
|
signup_mail_lead_minutes: number;
|
|
9352
9985
|
signup_mail_purpose: string;
|
|
@@ -9360,6 +9993,7 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
|
|
|
9360
9993
|
max_workdays_earlier_pick?: number;
|
|
9361
9994
|
pick_days_before_transport?: number;
|
|
9362
9995
|
pick_distribution_enabled?: boolean;
|
|
9996
|
+
pick_weekdays?: number[];
|
|
9363
9997
|
signup_mail_enabled?: boolean;
|
|
9364
9998
|
signup_mail_lead_minutes?: number;
|
|
9365
9999
|
signup_mail_purpose?: string;
|
|
@@ -9373,6 +10007,7 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
|
|
|
9373
10007
|
max_workdays_earlier_pick?: number;
|
|
9374
10008
|
pick_days_before_transport?: number;
|
|
9375
10009
|
pick_distribution_enabled?: boolean;
|
|
10010
|
+
pick_weekdays?: number[];
|
|
9376
10011
|
signup_mail_enabled?: boolean;
|
|
9377
10012
|
signup_mail_lead_minutes?: number;
|
|
9378
10013
|
signup_mail_purpose?: string;
|
|
@@ -9784,6 +10419,48 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
|
|
|
9784
10419
|
referencedColumns: ["id"];
|
|
9785
10420
|
}];
|
|
9786
10421
|
};
|
|
10422
|
+
carrier_signup_dispatch_runs: {
|
|
10423
|
+
Row: {
|
|
10424
|
+
detail: import("../integrations/supabase/types").Json | null;
|
|
10425
|
+
error: string | null;
|
|
10426
|
+
finished_at: string | null;
|
|
10427
|
+
groups: number;
|
|
10428
|
+
id: string;
|
|
10429
|
+
ok: boolean;
|
|
10430
|
+
reason: string | null;
|
|
10431
|
+
sent: number;
|
|
10432
|
+
skipped: import("../integrations/supabase/types").Json;
|
|
10433
|
+
started_at: string;
|
|
10434
|
+
unassigned: import("../integrations/supabase/types").Json;
|
|
10435
|
+
};
|
|
10436
|
+
Insert: {
|
|
10437
|
+
detail?: import("../integrations/supabase/types").Json | null;
|
|
10438
|
+
error?: string | null;
|
|
10439
|
+
finished_at?: string | null;
|
|
10440
|
+
groups?: number;
|
|
10441
|
+
id?: string;
|
|
10442
|
+
ok?: boolean;
|
|
10443
|
+
reason?: string | null;
|
|
10444
|
+
sent?: number;
|
|
10445
|
+
skipped?: import("../integrations/supabase/types").Json;
|
|
10446
|
+
started_at?: string;
|
|
10447
|
+
unassigned?: import("../integrations/supabase/types").Json;
|
|
10448
|
+
};
|
|
10449
|
+
Update: {
|
|
10450
|
+
detail?: import("../integrations/supabase/types").Json | null;
|
|
10451
|
+
error?: string | null;
|
|
10452
|
+
finished_at?: string | null;
|
|
10453
|
+
groups?: number;
|
|
10454
|
+
id?: string;
|
|
10455
|
+
ok?: boolean;
|
|
10456
|
+
reason?: string | null;
|
|
10457
|
+
sent?: number;
|
|
10458
|
+
skipped?: import("../integrations/supabase/types").Json;
|
|
10459
|
+
started_at?: string;
|
|
10460
|
+
unassigned?: import("../integrations/supabase/types").Json;
|
|
10461
|
+
};
|
|
10462
|
+
Relationships: [];
|
|
10463
|
+
};
|
|
9787
10464
|
carrier_signup_dispatches: {
|
|
9788
10465
|
Row: {
|
|
9789
10466
|
carrier_id: string;
|
|
@@ -9835,6 +10512,7 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
|
|
|
9835
10512
|
contact_person: string | null;
|
|
9836
10513
|
created_at: string;
|
|
9837
10514
|
delivery_days: number | null;
|
|
10515
|
+
delivery_weekdays: number[];
|
|
9838
10516
|
email: string | null;
|
|
9839
10517
|
id: string;
|
|
9840
10518
|
is_default: boolean;
|
|
@@ -9842,6 +10520,7 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
|
|
|
9842
10520
|
notes: string | null;
|
|
9843
10521
|
phone: string | null;
|
|
9844
10522
|
pickup_moments: import("../integrations/supabase/types").Json;
|
|
10523
|
+
pickup_weekdays: number[];
|
|
9845
10524
|
service_cities: string[];
|
|
9846
10525
|
service_countries: string[];
|
|
9847
10526
|
service_provinces: string[];
|
|
@@ -9857,6 +10536,7 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
|
|
|
9857
10536
|
contact_person?: string | null;
|
|
9858
10537
|
created_at?: string;
|
|
9859
10538
|
delivery_days?: number | null;
|
|
10539
|
+
delivery_weekdays?: number[];
|
|
9860
10540
|
email?: string | null;
|
|
9861
10541
|
id?: string;
|
|
9862
10542
|
is_default?: boolean;
|
|
@@ -9864,6 +10544,7 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
|
|
|
9864
10544
|
notes?: string | null;
|
|
9865
10545
|
phone?: string | null;
|
|
9866
10546
|
pickup_moments?: import("../integrations/supabase/types").Json;
|
|
10547
|
+
pickup_weekdays?: number[];
|
|
9867
10548
|
service_cities?: string[];
|
|
9868
10549
|
service_countries?: string[];
|
|
9869
10550
|
service_provinces?: string[];
|
|
@@ -9879,6 +10560,7 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
|
|
|
9879
10560
|
contact_person?: string | null;
|
|
9880
10561
|
created_at?: string;
|
|
9881
10562
|
delivery_days?: number | null;
|
|
10563
|
+
delivery_weekdays?: number[];
|
|
9882
10564
|
email?: string | null;
|
|
9883
10565
|
id?: string;
|
|
9884
10566
|
is_default?: boolean;
|
|
@@ -9886,6 +10568,7 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
|
|
|
9886
10568
|
notes?: string | null;
|
|
9887
10569
|
phone?: string | null;
|
|
9888
10570
|
pickup_moments?: import("../integrations/supabase/types").Json;
|
|
10571
|
+
pickup_weekdays?: number[];
|
|
9889
10572
|
service_cities?: string[];
|
|
9890
10573
|
service_countries?: string[];
|
|
9891
10574
|
service_provinces?: string[];
|
|
@@ -9898,6 +10581,177 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
|
|
|
9898
10581
|
};
|
|
9899
10582
|
Relationships: [];
|
|
9900
10583
|
};
|
|
10584
|
+
cart_control_draft: {
|
|
10585
|
+
Row: {
|
|
10586
|
+
cart_states: import("../integrations/supabase/types").Json;
|
|
10587
|
+
checked_keys: import("../integrations/supabase/types").Json;
|
|
10588
|
+
draft_date: string;
|
|
10589
|
+
form_state: import("../integrations/supabase/types").Json;
|
|
10590
|
+
notes: string;
|
|
10591
|
+
updated_at: string;
|
|
10592
|
+
user_id: string;
|
|
10593
|
+
};
|
|
10594
|
+
Insert: {
|
|
10595
|
+
cart_states?: import("../integrations/supabase/types").Json;
|
|
10596
|
+
checked_keys?: import("../integrations/supabase/types").Json;
|
|
10597
|
+
draft_date: string;
|
|
10598
|
+
form_state?: import("../integrations/supabase/types").Json;
|
|
10599
|
+
notes?: string;
|
|
10600
|
+
updated_at?: string;
|
|
10601
|
+
user_id: string;
|
|
10602
|
+
};
|
|
10603
|
+
Update: {
|
|
10604
|
+
cart_states?: import("../integrations/supabase/types").Json;
|
|
10605
|
+
checked_keys?: import("../integrations/supabase/types").Json;
|
|
10606
|
+
draft_date?: string;
|
|
10607
|
+
form_state?: import("../integrations/supabase/types").Json;
|
|
10608
|
+
notes?: string;
|
|
10609
|
+
updated_at?: string;
|
|
10610
|
+
user_id?: string;
|
|
10611
|
+
};
|
|
10612
|
+
Relationships: [];
|
|
10613
|
+
};
|
|
10614
|
+
cart_control_items: {
|
|
10615
|
+
Row: {
|
|
10616
|
+
action: string;
|
|
10617
|
+
block_reason: string | null;
|
|
10618
|
+
carrier_name: string | null;
|
|
10619
|
+
cart_index: number;
|
|
10620
|
+
cart_number_id: string | null;
|
|
10621
|
+
cart_number_label: string | null;
|
|
10622
|
+
created_at: string;
|
|
10623
|
+
customer_name: string | null;
|
|
10624
|
+
delivery_date: string | null;
|
|
10625
|
+
id: string;
|
|
10626
|
+
new_pick_date: string | null;
|
|
10627
|
+
order_id: string;
|
|
10628
|
+
order_number: string | null;
|
|
10629
|
+
order_source: string;
|
|
10630
|
+
pickup_date: string | null;
|
|
10631
|
+
session_id: string;
|
|
10632
|
+
};
|
|
10633
|
+
Insert: {
|
|
10634
|
+
action: string;
|
|
10635
|
+
block_reason?: string | null;
|
|
10636
|
+
carrier_name?: string | null;
|
|
10637
|
+
cart_index: number;
|
|
10638
|
+
cart_number_id?: string | null;
|
|
10639
|
+
cart_number_label?: string | null;
|
|
10640
|
+
created_at?: string;
|
|
10641
|
+
customer_name?: string | null;
|
|
10642
|
+
delivery_date?: string | null;
|
|
10643
|
+
id?: string;
|
|
10644
|
+
new_pick_date?: string | null;
|
|
10645
|
+
order_id: string;
|
|
10646
|
+
order_number?: string | null;
|
|
10647
|
+
order_source: string;
|
|
10648
|
+
pickup_date?: string | null;
|
|
10649
|
+
session_id: string;
|
|
10650
|
+
};
|
|
10651
|
+
Update: {
|
|
10652
|
+
action?: string;
|
|
10653
|
+
block_reason?: string | null;
|
|
10654
|
+
carrier_name?: string | null;
|
|
10655
|
+
cart_index?: number;
|
|
10656
|
+
cart_number_id?: string | null;
|
|
10657
|
+
cart_number_label?: string | null;
|
|
10658
|
+
created_at?: string;
|
|
10659
|
+
customer_name?: string | null;
|
|
10660
|
+
delivery_date?: string | null;
|
|
10661
|
+
id?: string;
|
|
10662
|
+
new_pick_date?: string | null;
|
|
10663
|
+
order_id?: string;
|
|
10664
|
+
order_number?: string | null;
|
|
10665
|
+
order_source?: string;
|
|
10666
|
+
pickup_date?: string | null;
|
|
10667
|
+
session_id?: string;
|
|
10668
|
+
};
|
|
10669
|
+
Relationships: [{
|
|
10670
|
+
foreignKeyName: "cart_control_items_session_id_fkey";
|
|
10671
|
+
columns: ["session_id"];
|
|
10672
|
+
isOneToOne: false;
|
|
10673
|
+
referencedRelation: "cart_control_sessions";
|
|
10674
|
+
referencedColumns: ["id"];
|
|
10675
|
+
}];
|
|
10676
|
+
};
|
|
10677
|
+
cart_control_sessions: {
|
|
10678
|
+
Row: {
|
|
10679
|
+
blocked_count: number;
|
|
10680
|
+
checked_count: number;
|
|
10681
|
+
control_date: string;
|
|
10682
|
+
created_at: string;
|
|
10683
|
+
id: string;
|
|
10684
|
+
notes: string | null;
|
|
10685
|
+
performed_at: string;
|
|
10686
|
+
rescheduled_count: number;
|
|
10687
|
+
total_carts: number;
|
|
10688
|
+
updated_at: string;
|
|
10689
|
+
user_id: string;
|
|
10690
|
+
};
|
|
10691
|
+
Insert: {
|
|
10692
|
+
blocked_count?: number;
|
|
10693
|
+
checked_count?: number;
|
|
10694
|
+
control_date?: string;
|
|
10695
|
+
created_at?: string;
|
|
10696
|
+
id?: string;
|
|
10697
|
+
notes?: string | null;
|
|
10698
|
+
performed_at?: string;
|
|
10699
|
+
rescheduled_count?: number;
|
|
10700
|
+
total_carts?: number;
|
|
10701
|
+
updated_at?: string;
|
|
10702
|
+
user_id: string;
|
|
10703
|
+
};
|
|
10704
|
+
Update: {
|
|
10705
|
+
blocked_count?: number;
|
|
10706
|
+
checked_count?: number;
|
|
10707
|
+
control_date?: string;
|
|
10708
|
+
created_at?: string;
|
|
10709
|
+
id?: string;
|
|
10710
|
+
notes?: string | null;
|
|
10711
|
+
performed_at?: string;
|
|
10712
|
+
rescheduled_count?: number;
|
|
10713
|
+
total_carts?: number;
|
|
10714
|
+
updated_at?: string;
|
|
10715
|
+
user_id?: string;
|
|
10716
|
+
};
|
|
10717
|
+
Relationships: [];
|
|
10718
|
+
};
|
|
10719
|
+
cart_numbers: {
|
|
10720
|
+
Row: {
|
|
10721
|
+
assigned_at: string;
|
|
10722
|
+
cart_index: number;
|
|
10723
|
+
cart_number: string;
|
|
10724
|
+
day_seq: number;
|
|
10725
|
+
id: string;
|
|
10726
|
+
order_id: string;
|
|
10727
|
+
order_source: string;
|
|
10728
|
+
pick_date: string;
|
|
10729
|
+
status: string;
|
|
10730
|
+
};
|
|
10731
|
+
Insert: {
|
|
10732
|
+
assigned_at?: string;
|
|
10733
|
+
cart_index: number;
|
|
10734
|
+
cart_number: string;
|
|
10735
|
+
day_seq: number;
|
|
10736
|
+
id?: string;
|
|
10737
|
+
order_id: string;
|
|
10738
|
+
order_source: string;
|
|
10739
|
+
pick_date: string;
|
|
10740
|
+
status?: string;
|
|
10741
|
+
};
|
|
10742
|
+
Update: {
|
|
10743
|
+
assigned_at?: string;
|
|
10744
|
+
cart_index?: number;
|
|
10745
|
+
cart_number?: string;
|
|
10746
|
+
day_seq?: number;
|
|
10747
|
+
id?: string;
|
|
10748
|
+
order_id?: string;
|
|
10749
|
+
order_source?: string;
|
|
10750
|
+
pick_date?: string;
|
|
10751
|
+
status?: string;
|
|
10752
|
+
};
|
|
10753
|
+
Relationships: [];
|
|
10754
|
+
};
|
|
9901
10755
|
cart_pick_overrides: {
|
|
9902
10756
|
Row: {
|
|
9903
10757
|
cart_index: number;
|
|
@@ -10570,6 +11424,54 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
|
|
|
10570
11424
|
referencedColumns: ["id"];
|
|
10571
11425
|
}];
|
|
10572
11426
|
};
|
|
11427
|
+
dashboard_critical_alerts: {
|
|
11428
|
+
Row: {
|
|
11429
|
+
alert_key: string;
|
|
11430
|
+
alert_type: string;
|
|
11431
|
+
created_at: string;
|
|
11432
|
+
description: string | null;
|
|
11433
|
+
id: string;
|
|
11434
|
+
metadata: import("../integrations/supabase/types").Json | null;
|
|
11435
|
+
priority: string;
|
|
11436
|
+
raised_at: string;
|
|
11437
|
+
related_cart_ids: string[] | null;
|
|
11438
|
+
resolved_at: string | null;
|
|
11439
|
+
title: string;
|
|
11440
|
+
updated_at: string;
|
|
11441
|
+
user_id: string;
|
|
11442
|
+
};
|
|
11443
|
+
Insert: {
|
|
11444
|
+
alert_key: string;
|
|
11445
|
+
alert_type: string;
|
|
11446
|
+
created_at?: string;
|
|
11447
|
+
description?: string | null;
|
|
11448
|
+
id?: string;
|
|
11449
|
+
metadata?: import("../integrations/supabase/types").Json | null;
|
|
11450
|
+
priority?: string;
|
|
11451
|
+
raised_at?: string;
|
|
11452
|
+
related_cart_ids?: string[] | null;
|
|
11453
|
+
resolved_at?: string | null;
|
|
11454
|
+
title: string;
|
|
11455
|
+
updated_at?: string;
|
|
11456
|
+
user_id: string;
|
|
11457
|
+
};
|
|
11458
|
+
Update: {
|
|
11459
|
+
alert_key?: string;
|
|
11460
|
+
alert_type?: string;
|
|
11461
|
+
created_at?: string;
|
|
11462
|
+
description?: string | null;
|
|
11463
|
+
id?: string;
|
|
11464
|
+
metadata?: import("../integrations/supabase/types").Json | null;
|
|
11465
|
+
priority?: string;
|
|
11466
|
+
raised_at?: string;
|
|
11467
|
+
related_cart_ids?: string[] | null;
|
|
11468
|
+
resolved_at?: string | null;
|
|
11469
|
+
title?: string;
|
|
11470
|
+
updated_at?: string;
|
|
11471
|
+
user_id?: string;
|
|
11472
|
+
};
|
|
11473
|
+
Relationships: [];
|
|
11474
|
+
};
|
|
10573
11475
|
dashboard_daily_reports: {
|
|
10574
11476
|
Row: {
|
|
10575
11477
|
created_at: string;
|
|
@@ -12072,6 +12974,7 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
|
|
|
12072
12974
|
};
|
|
12073
12975
|
floricode_sync_state: {
|
|
12074
12976
|
Row: {
|
|
12977
|
+
cursor_skip: number;
|
|
12075
12978
|
error_message: string | null;
|
|
12076
12979
|
last_change_date_time: string | null;
|
|
12077
12980
|
last_sequence_number: number;
|
|
@@ -12081,6 +12984,7 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
|
|
|
12081
12984
|
updated_at: string;
|
|
12082
12985
|
};
|
|
12083
12986
|
Insert: {
|
|
12987
|
+
cursor_skip?: number;
|
|
12084
12988
|
error_message?: string | null;
|
|
12085
12989
|
last_change_date_time?: string | null;
|
|
12086
12990
|
last_sequence_number?: number;
|
|
@@ -12090,6 +12994,7 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
|
|
|
12090
12994
|
updated_at?: string;
|
|
12091
12995
|
};
|
|
12092
12996
|
Update: {
|
|
12997
|
+
cursor_skip?: number;
|
|
12093
12998
|
error_message?: string | null;
|
|
12094
12999
|
last_change_date_time?: string | null;
|
|
12095
13000
|
last_sequence_number?: number;
|
|
@@ -14437,6 +15342,93 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
|
|
|
14437
15342
|
};
|
|
14438
15343
|
Relationships: [];
|
|
14439
15344
|
};
|
|
15345
|
+
manufacture_product_components: {
|
|
15346
|
+
Row: {
|
|
15347
|
+
component_type: string;
|
|
15348
|
+
created_at: string;
|
|
15349
|
+
id: string;
|
|
15350
|
+
manufacture_product_id: string;
|
|
15351
|
+
product_group_id: string | null;
|
|
15352
|
+
quantity: number;
|
|
15353
|
+
trade_item_id: string | null;
|
|
15354
|
+
unit: string;
|
|
15355
|
+
};
|
|
15356
|
+
Insert: {
|
|
15357
|
+
component_type: string;
|
|
15358
|
+
created_at?: string;
|
|
15359
|
+
id?: string;
|
|
15360
|
+
manufacture_product_id: string;
|
|
15361
|
+
product_group_id?: string | null;
|
|
15362
|
+
quantity?: number;
|
|
15363
|
+
trade_item_id?: string | null;
|
|
15364
|
+
unit?: string;
|
|
15365
|
+
};
|
|
15366
|
+
Update: {
|
|
15367
|
+
component_type?: string;
|
|
15368
|
+
created_at?: string;
|
|
15369
|
+
id?: string;
|
|
15370
|
+
manufacture_product_id?: string;
|
|
15371
|
+
product_group_id?: string | null;
|
|
15372
|
+
quantity?: number;
|
|
15373
|
+
trade_item_id?: string | null;
|
|
15374
|
+
unit?: string;
|
|
15375
|
+
};
|
|
15376
|
+
Relationships: [{
|
|
15377
|
+
foreignKeyName: "manufacture_product_components_manufacture_product_id_fkey";
|
|
15378
|
+
columns: ["manufacture_product_id"];
|
|
15379
|
+
isOneToOne: false;
|
|
15380
|
+
referencedRelation: "manufacture_product_possible_stock_view";
|
|
15381
|
+
referencedColumns: ["manufacture_product_id"];
|
|
15382
|
+
}, {
|
|
15383
|
+
foreignKeyName: "manufacture_product_components_manufacture_product_id_fkey";
|
|
15384
|
+
columns: ["manufacture_product_id"];
|
|
15385
|
+
isOneToOne: false;
|
|
15386
|
+
referencedRelation: "manufacture_products";
|
|
15387
|
+
referencedColumns: ["id"];
|
|
15388
|
+
}, {
|
|
15389
|
+
foreignKeyName: "manufacture_product_components_product_group_id_fkey";
|
|
15390
|
+
columns: ["product_group_id"];
|
|
15391
|
+
isOneToOne: false;
|
|
15392
|
+
referencedRelation: "product_groups";
|
|
15393
|
+
referencedColumns: ["id"];
|
|
15394
|
+
}];
|
|
15395
|
+
};
|
|
15396
|
+
manufacture_products: {
|
|
15397
|
+
Row: {
|
|
15398
|
+
created_at: string;
|
|
15399
|
+
description: string | null;
|
|
15400
|
+
id: string;
|
|
15401
|
+
is_active: boolean;
|
|
15402
|
+
name: string;
|
|
15403
|
+
produced_stock: number;
|
|
15404
|
+
product_code: string;
|
|
15405
|
+
tenant_id: string;
|
|
15406
|
+
updated_at: string;
|
|
15407
|
+
};
|
|
15408
|
+
Insert: {
|
|
15409
|
+
created_at?: string;
|
|
15410
|
+
description?: string | null;
|
|
15411
|
+
id?: string;
|
|
15412
|
+
is_active?: boolean;
|
|
15413
|
+
name: string;
|
|
15414
|
+
produced_stock?: number;
|
|
15415
|
+
product_code: string;
|
|
15416
|
+
tenant_id: string;
|
|
15417
|
+
updated_at?: string;
|
|
15418
|
+
};
|
|
15419
|
+
Update: {
|
|
15420
|
+
created_at?: string;
|
|
15421
|
+
description?: string | null;
|
|
15422
|
+
id?: string;
|
|
15423
|
+
is_active?: boolean;
|
|
15424
|
+
name?: string;
|
|
15425
|
+
produced_stock?: number;
|
|
15426
|
+
product_code?: string;
|
|
15427
|
+
tenant_id?: string;
|
|
15428
|
+
updated_at?: string;
|
|
15429
|
+
};
|
|
15430
|
+
Relationships: [];
|
|
15431
|
+
};
|
|
14440
15432
|
monteurs: {
|
|
14441
15433
|
Row: {
|
|
14442
15434
|
avatar_url: string | null;
|
|
@@ -15397,6 +16389,66 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
|
|
|
15397
16389
|
};
|
|
15398
16390
|
Relationships: [];
|
|
15399
16391
|
};
|
|
16392
|
+
product_group_items: {
|
|
16393
|
+
Row: {
|
|
16394
|
+
created_at: string;
|
|
16395
|
+
id: string;
|
|
16396
|
+
product_group_id: string;
|
|
16397
|
+
quantity: number;
|
|
16398
|
+
trade_item_id: string;
|
|
16399
|
+
};
|
|
16400
|
+
Insert: {
|
|
16401
|
+
created_at?: string;
|
|
16402
|
+
id?: string;
|
|
16403
|
+
product_group_id: string;
|
|
16404
|
+
quantity?: number;
|
|
16405
|
+
trade_item_id: string;
|
|
16406
|
+
};
|
|
16407
|
+
Update: {
|
|
16408
|
+
created_at?: string;
|
|
16409
|
+
id?: string;
|
|
16410
|
+
product_group_id?: string;
|
|
16411
|
+
quantity?: number;
|
|
16412
|
+
trade_item_id?: string;
|
|
16413
|
+
};
|
|
16414
|
+
Relationships: [{
|
|
16415
|
+
foreignKeyName: "product_group_items_product_group_id_fkey";
|
|
16416
|
+
columns: ["product_group_id"];
|
|
16417
|
+
isOneToOne: false;
|
|
16418
|
+
referencedRelation: "product_groups";
|
|
16419
|
+
referencedColumns: ["id"];
|
|
16420
|
+
}];
|
|
16421
|
+
};
|
|
16422
|
+
product_groups: {
|
|
16423
|
+
Row: {
|
|
16424
|
+
created_at: string;
|
|
16425
|
+
description: string | null;
|
|
16426
|
+
id: string;
|
|
16427
|
+
is_active: boolean;
|
|
16428
|
+
name: string;
|
|
16429
|
+
tenant_id: string;
|
|
16430
|
+
updated_at: string;
|
|
16431
|
+
};
|
|
16432
|
+
Insert: {
|
|
16433
|
+
created_at?: string;
|
|
16434
|
+
description?: string | null;
|
|
16435
|
+
id?: string;
|
|
16436
|
+
is_active?: boolean;
|
|
16437
|
+
name: string;
|
|
16438
|
+
tenant_id: string;
|
|
16439
|
+
updated_at?: string;
|
|
16440
|
+
};
|
|
16441
|
+
Update: {
|
|
16442
|
+
created_at?: string;
|
|
16443
|
+
description?: string | null;
|
|
16444
|
+
id?: string;
|
|
16445
|
+
is_active?: boolean;
|
|
16446
|
+
name?: string;
|
|
16447
|
+
tenant_id?: string;
|
|
16448
|
+
updated_at?: string;
|
|
16449
|
+
};
|
|
16450
|
+
Relationships: [];
|
|
16451
|
+
};
|
|
15400
16452
|
products: {
|
|
15401
16453
|
Row: {
|
|
15402
16454
|
barcode: string | null;
|
|
@@ -16536,7 +17588,13 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
|
|
|
16536
17588
|
connection_id: string | null;
|
|
16537
17589
|
created_at: string;
|
|
16538
17590
|
data: import("../integrations/supabase/types").Json;
|
|
17591
|
+
floriday_id: string | null;
|
|
17592
|
+
floriday_link_error: string | null;
|
|
17593
|
+
floriday_link_status: string;
|
|
16539
17594
|
id: string;
|
|
17595
|
+
last_floriday_sync_at: string | null;
|
|
17596
|
+
missing_required_fields: string[];
|
|
17597
|
+
source: string;
|
|
16540
17598
|
updated_at: string;
|
|
16541
17599
|
user_id: string;
|
|
16542
17600
|
};
|
|
@@ -16544,7 +17602,13 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
|
|
|
16544
17602
|
connection_id?: string | null;
|
|
16545
17603
|
created_at?: string;
|
|
16546
17604
|
data?: import("../integrations/supabase/types").Json;
|
|
17605
|
+
floriday_id?: string | null;
|
|
17606
|
+
floriday_link_error?: string | null;
|
|
17607
|
+
floriday_link_status?: string;
|
|
16547
17608
|
id?: string;
|
|
17609
|
+
last_floriday_sync_at?: string | null;
|
|
17610
|
+
missing_required_fields?: string[];
|
|
17611
|
+
source?: string;
|
|
16548
17612
|
updated_at?: string;
|
|
16549
17613
|
user_id: string;
|
|
16550
17614
|
};
|
|
@@ -16552,7 +17616,55 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
|
|
|
16552
17616
|
connection_id?: string | null;
|
|
16553
17617
|
created_at?: string;
|
|
16554
17618
|
data?: import("../integrations/supabase/types").Json;
|
|
17619
|
+
floriday_id?: string | null;
|
|
17620
|
+
floriday_link_error?: string | null;
|
|
17621
|
+
floriday_link_status?: string;
|
|
16555
17622
|
id?: string;
|
|
17623
|
+
last_floriday_sync_at?: string | null;
|
|
17624
|
+
missing_required_fields?: string[];
|
|
17625
|
+
source?: string;
|
|
17626
|
+
updated_at?: string;
|
|
17627
|
+
user_id?: string;
|
|
17628
|
+
};
|
|
17629
|
+
Relationships: [];
|
|
17630
|
+
};
|
|
17631
|
+
trade_item_stock: {
|
|
17632
|
+
Row: {
|
|
17633
|
+
connection_id: string;
|
|
17634
|
+
created_at: string;
|
|
17635
|
+
id: string;
|
|
17636
|
+
incoming_stock: number;
|
|
17637
|
+
minimum_stock: number;
|
|
17638
|
+
notes: string | null;
|
|
17639
|
+
physical_stock: number;
|
|
17640
|
+
reserved_stock: number;
|
|
17641
|
+
trade_item_key: string;
|
|
17642
|
+
updated_at: string;
|
|
17643
|
+
user_id: string;
|
|
17644
|
+
};
|
|
17645
|
+
Insert: {
|
|
17646
|
+
connection_id: string;
|
|
17647
|
+
created_at?: string;
|
|
17648
|
+
id?: string;
|
|
17649
|
+
incoming_stock?: number;
|
|
17650
|
+
minimum_stock?: number;
|
|
17651
|
+
notes?: string | null;
|
|
17652
|
+
physical_stock?: number;
|
|
17653
|
+
reserved_stock?: number;
|
|
17654
|
+
trade_item_key: string;
|
|
17655
|
+
updated_at?: string;
|
|
17656
|
+
user_id: string;
|
|
17657
|
+
};
|
|
17658
|
+
Update: {
|
|
17659
|
+
connection_id?: string;
|
|
17660
|
+
created_at?: string;
|
|
17661
|
+
id?: string;
|
|
17662
|
+
incoming_stock?: number;
|
|
17663
|
+
minimum_stock?: number;
|
|
17664
|
+
notes?: string | null;
|
|
17665
|
+
physical_stock?: number;
|
|
17666
|
+
reserved_stock?: number;
|
|
17667
|
+
trade_item_key?: string;
|
|
16556
17668
|
updated_at?: string;
|
|
16557
17669
|
user_id?: string;
|
|
16558
17670
|
};
|
|
@@ -16902,6 +18014,7 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
|
|
|
16902
18014
|
};
|
|
16903
18015
|
twinfield_invoice_sync_logs: {
|
|
16904
18016
|
Row: {
|
|
18017
|
+
action_type: string | null;
|
|
16905
18018
|
created_at: string;
|
|
16906
18019
|
details: import("../integrations/supabase/types").Json | null;
|
|
16907
18020
|
duration_ms: number | null;
|
|
@@ -16914,6 +18027,7 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
|
|
|
16914
18027
|
user_id: string;
|
|
16915
18028
|
};
|
|
16916
18029
|
Insert: {
|
|
18030
|
+
action_type?: string | null;
|
|
16917
18031
|
created_at?: string;
|
|
16918
18032
|
details?: import("../integrations/supabase/types").Json | null;
|
|
16919
18033
|
duration_ms?: number | null;
|
|
@@ -16926,6 +18040,7 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
|
|
|
16926
18040
|
user_id: string;
|
|
16927
18041
|
};
|
|
16928
18042
|
Update: {
|
|
18043
|
+
action_type?: string | null;
|
|
16929
18044
|
created_at?: string;
|
|
16930
18045
|
details?: import("../integrations/supabase/types").Json | null;
|
|
16931
18046
|
duration_ms?: number | null;
|
|
@@ -17161,6 +18276,57 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
|
|
|
17161
18276
|
referencedColumns: ["id"];
|
|
17162
18277
|
}];
|
|
17163
18278
|
};
|
|
18279
|
+
twinfield_request_metrics: {
|
|
18280
|
+
Row: {
|
|
18281
|
+
bucket_hour: string;
|
|
18282
|
+
connection_id: string;
|
|
18283
|
+
error_count: number;
|
|
18284
|
+
rate_limited_count: number;
|
|
18285
|
+
request_count: number;
|
|
18286
|
+
updated_at: string;
|
|
18287
|
+
};
|
|
18288
|
+
Insert: {
|
|
18289
|
+
bucket_hour: string;
|
|
18290
|
+
connection_id: string;
|
|
18291
|
+
error_count?: number;
|
|
18292
|
+
rate_limited_count?: number;
|
|
18293
|
+
request_count?: number;
|
|
18294
|
+
updated_at?: string;
|
|
18295
|
+
};
|
|
18296
|
+
Update: {
|
|
18297
|
+
bucket_hour?: string;
|
|
18298
|
+
connection_id?: string;
|
|
18299
|
+
error_count?: number;
|
|
18300
|
+
rate_limited_count?: number;
|
|
18301
|
+
request_count?: number;
|
|
18302
|
+
updated_at?: string;
|
|
18303
|
+
};
|
|
18304
|
+
Relationships: [];
|
|
18305
|
+
};
|
|
18306
|
+
twinfield_session_cache: {
|
|
18307
|
+
Row: {
|
|
18308
|
+
cluster: string;
|
|
18309
|
+
created_at: string;
|
|
18310
|
+
expires_at: string;
|
|
18311
|
+
session_id: string;
|
|
18312
|
+
user_id: string;
|
|
18313
|
+
};
|
|
18314
|
+
Insert: {
|
|
18315
|
+
cluster: string;
|
|
18316
|
+
created_at?: string;
|
|
18317
|
+
expires_at: string;
|
|
18318
|
+
session_id: string;
|
|
18319
|
+
user_id: string;
|
|
18320
|
+
};
|
|
18321
|
+
Update: {
|
|
18322
|
+
cluster?: string;
|
|
18323
|
+
created_at?: string;
|
|
18324
|
+
expires_at?: string;
|
|
18325
|
+
session_id?: string;
|
|
18326
|
+
user_id?: string;
|
|
18327
|
+
};
|
|
18328
|
+
Relationships: [];
|
|
18329
|
+
};
|
|
17164
18330
|
twinfield_settings: {
|
|
17165
18331
|
Row: {
|
|
17166
18332
|
active_environment: string;
|
|
@@ -17742,6 +18908,35 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
|
|
|
17742
18908
|
};
|
|
17743
18909
|
Relationships: [];
|
|
17744
18910
|
};
|
|
18911
|
+
manufacture_product_possible_stock_view: {
|
|
18912
|
+
Row: {
|
|
18913
|
+
component_count: number | null;
|
|
18914
|
+
manufacture_product_id: string | null;
|
|
18915
|
+
possible_stock: number | null;
|
|
18916
|
+
};
|
|
18917
|
+
Relationships: [];
|
|
18918
|
+
};
|
|
18919
|
+
product_group_stock_view: {
|
|
18920
|
+
Row: {
|
|
18921
|
+
item_count: number | null;
|
|
18922
|
+
product_group_id: string | null;
|
|
18923
|
+
total_stock: number | null;
|
|
18924
|
+
};
|
|
18925
|
+
Relationships: [{
|
|
18926
|
+
foreignKeyName: "product_group_items_product_group_id_fkey";
|
|
18927
|
+
columns: ["product_group_id"];
|
|
18928
|
+
isOneToOne: false;
|
|
18929
|
+
referencedRelation: "product_groups";
|
|
18930
|
+
referencedColumns: ["id"];
|
|
18931
|
+
}];
|
|
18932
|
+
};
|
|
18933
|
+
trade_item_stock_view: {
|
|
18934
|
+
Row: {
|
|
18935
|
+
stock: number | null;
|
|
18936
|
+
trade_item_id: string | null;
|
|
18937
|
+
};
|
|
18938
|
+
Relationships: [];
|
|
18939
|
+
};
|
|
17745
18940
|
v_external_customers_exact: {
|
|
17746
18941
|
Row: {
|
|
17747
18942
|
account_number: string | null;
|
|
@@ -17997,6 +19192,20 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
|
|
|
17997
19192
|
};
|
|
17998
19193
|
Returns: number;
|
|
17999
19194
|
};
|
|
19195
|
+
assign_cart_numbers: {
|
|
19196
|
+
Args: {
|
|
19197
|
+
p_carts: import("../integrations/supabase/types").Json;
|
|
19198
|
+
};
|
|
19199
|
+
Returns: {
|
|
19200
|
+
cart_index: number;
|
|
19201
|
+
cart_number: string;
|
|
19202
|
+
day_seq: number;
|
|
19203
|
+
order_id: string;
|
|
19204
|
+
order_source: string;
|
|
19205
|
+
pick_date: string;
|
|
19206
|
+
status: string;
|
|
19207
|
+
}[];
|
|
19208
|
+
};
|
|
18000
19209
|
assign_floriday_order_numbers: {
|
|
18001
19210
|
Args: {
|
|
18002
19211
|
p_ids: string[];
|
|
@@ -18016,10 +19225,37 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
|
|
|
18016
19225
|
Args: never;
|
|
18017
19226
|
Returns: number;
|
|
18018
19227
|
};
|
|
19228
|
+
control_get_todays_carts: {
|
|
19229
|
+
Args: never;
|
|
19230
|
+
Returns: {
|
|
19231
|
+
cart_index: number;
|
|
19232
|
+
cart_number: string;
|
|
19233
|
+
cart_number_id: string;
|
|
19234
|
+
order_id: string;
|
|
19235
|
+
order_source: string;
|
|
19236
|
+
pick_date: string;
|
|
19237
|
+
status: string;
|
|
19238
|
+
}[];
|
|
19239
|
+
};
|
|
19240
|
+
count_distinct_regulatory_products: {
|
|
19241
|
+
Args: never;
|
|
19242
|
+
Returns: number;
|
|
19243
|
+
};
|
|
18019
19244
|
current_monteur_id: {
|
|
18020
19245
|
Args: never;
|
|
18021
19246
|
Returns: string;
|
|
18022
19247
|
};
|
|
19248
|
+
dashboard_alert_counts: {
|
|
19249
|
+
Args: never;
|
|
19250
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
19251
|
+
};
|
|
19252
|
+
dashboard_alert_rows: {
|
|
19253
|
+
Args: {
|
|
19254
|
+
check_id: string;
|
|
19255
|
+
row_limit?: number;
|
|
19256
|
+
};
|
|
19257
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
19258
|
+
};
|
|
18023
19259
|
dashboard_list_public_schema: {
|
|
18024
19260
|
Args: never;
|
|
18025
19261
|
Returns: {
|
|
@@ -18100,6 +19336,13 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
|
|
|
18100
19336
|
};
|
|
18101
19337
|
Returns: boolean;
|
|
18102
19338
|
};
|
|
19339
|
+
format_cart_number: {
|
|
19340
|
+
Args: {
|
|
19341
|
+
p_pick_date: string;
|
|
19342
|
+
p_seq: number;
|
|
19343
|
+
};
|
|
19344
|
+
Returns: string;
|
|
19345
|
+
};
|
|
18103
19346
|
get_active_floriday_connection_public: {
|
|
18104
19347
|
Args: never;
|
|
18105
19348
|
Returns: {
|
|
@@ -18304,14 +19547,29 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
|
|
|
18304
19547
|
};
|
|
18305
19548
|
Returns: undefined;
|
|
18306
19549
|
};
|
|
19550
|
+
pickstation_set_cart_status: {
|
|
19551
|
+
Args: {
|
|
19552
|
+
p_cart_index: number;
|
|
19553
|
+
p_order_id: string;
|
|
19554
|
+
p_order_source: string;
|
|
19555
|
+
p_status: string;
|
|
19556
|
+
};
|
|
19557
|
+
Returns: undefined;
|
|
19558
|
+
};
|
|
18307
19559
|
refresh_floricode_derived_code_lists: {
|
|
18308
19560
|
Args: never;
|
|
18309
19561
|
Returns: {
|
|
18310
|
-
|
|
18311
|
-
|
|
18312
|
-
|
|
19562
|
+
environment: string;
|
|
19563
|
+
list_name: string;
|
|
19564
|
+
row_count: number;
|
|
18313
19565
|
}[];
|
|
18314
19566
|
};
|
|
19567
|
+
refresh_floricode_derived_for_product: {
|
|
19568
|
+
Args: {
|
|
19569
|
+
p_product_code: string;
|
|
19570
|
+
};
|
|
19571
|
+
Returns: number;
|
|
19572
|
+
};
|
|
18315
19573
|
reset_floriday_sync_cursor: {
|
|
18316
19574
|
Args: {
|
|
18317
19575
|
p_connection_id: string;
|
|
@@ -18638,6 +19896,7 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
|
|
|
18638
19896
|
max_workdays_earlier_pick: number;
|
|
18639
19897
|
pick_days_before_transport: number;
|
|
18640
19898
|
pick_distribution_enabled: boolean;
|
|
19899
|
+
pick_weekdays: number[];
|
|
18641
19900
|
signup_mail_enabled: boolean;
|
|
18642
19901
|
signup_mail_lead_minutes: number;
|
|
18643
19902
|
signup_mail_purpose: string;
|
|
@@ -18651,6 +19910,7 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
|
|
|
18651
19910
|
max_workdays_earlier_pick?: number;
|
|
18652
19911
|
pick_days_before_transport?: number;
|
|
18653
19912
|
pick_distribution_enabled?: boolean;
|
|
19913
|
+
pick_weekdays?: number[];
|
|
18654
19914
|
signup_mail_enabled?: boolean;
|
|
18655
19915
|
signup_mail_lead_minutes?: number;
|
|
18656
19916
|
signup_mail_purpose?: string;
|
|
@@ -18664,6 +19924,7 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
|
|
|
18664
19924
|
max_workdays_earlier_pick?: number;
|
|
18665
19925
|
pick_days_before_transport?: number;
|
|
18666
19926
|
pick_distribution_enabled?: boolean;
|
|
19927
|
+
pick_weekdays?: number[];
|
|
18667
19928
|
signup_mail_enabled?: boolean;
|
|
18668
19929
|
signup_mail_lead_minutes?: number;
|
|
18669
19930
|
signup_mail_purpose?: string;
|
|
@@ -19075,6 +20336,48 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
|
|
|
19075
20336
|
referencedColumns: ["id"];
|
|
19076
20337
|
}];
|
|
19077
20338
|
};
|
|
20339
|
+
carrier_signup_dispatch_runs: {
|
|
20340
|
+
Row: {
|
|
20341
|
+
detail: import("../integrations/supabase/types").Json | null;
|
|
20342
|
+
error: string | null;
|
|
20343
|
+
finished_at: string | null;
|
|
20344
|
+
groups: number;
|
|
20345
|
+
id: string;
|
|
20346
|
+
ok: boolean;
|
|
20347
|
+
reason: string | null;
|
|
20348
|
+
sent: number;
|
|
20349
|
+
skipped: import("../integrations/supabase/types").Json;
|
|
20350
|
+
started_at: string;
|
|
20351
|
+
unassigned: import("../integrations/supabase/types").Json;
|
|
20352
|
+
};
|
|
20353
|
+
Insert: {
|
|
20354
|
+
detail?: import("../integrations/supabase/types").Json | null;
|
|
20355
|
+
error?: string | null;
|
|
20356
|
+
finished_at?: string | null;
|
|
20357
|
+
groups?: number;
|
|
20358
|
+
id?: string;
|
|
20359
|
+
ok?: boolean;
|
|
20360
|
+
reason?: string | null;
|
|
20361
|
+
sent?: number;
|
|
20362
|
+
skipped?: import("../integrations/supabase/types").Json;
|
|
20363
|
+
started_at?: string;
|
|
20364
|
+
unassigned?: import("../integrations/supabase/types").Json;
|
|
20365
|
+
};
|
|
20366
|
+
Update: {
|
|
20367
|
+
detail?: import("../integrations/supabase/types").Json | null;
|
|
20368
|
+
error?: string | null;
|
|
20369
|
+
finished_at?: string | null;
|
|
20370
|
+
groups?: number;
|
|
20371
|
+
id?: string;
|
|
20372
|
+
ok?: boolean;
|
|
20373
|
+
reason?: string | null;
|
|
20374
|
+
sent?: number;
|
|
20375
|
+
skipped?: import("../integrations/supabase/types").Json;
|
|
20376
|
+
started_at?: string;
|
|
20377
|
+
unassigned?: import("../integrations/supabase/types").Json;
|
|
20378
|
+
};
|
|
20379
|
+
Relationships: [];
|
|
20380
|
+
};
|
|
19078
20381
|
carrier_signup_dispatches: {
|
|
19079
20382
|
Row: {
|
|
19080
20383
|
carrier_id: string;
|
|
@@ -19126,6 +20429,7 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
|
|
|
19126
20429
|
contact_person: string | null;
|
|
19127
20430
|
created_at: string;
|
|
19128
20431
|
delivery_days: number | null;
|
|
20432
|
+
delivery_weekdays: number[];
|
|
19129
20433
|
email: string | null;
|
|
19130
20434
|
id: string;
|
|
19131
20435
|
is_default: boolean;
|
|
@@ -19133,6 +20437,7 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
|
|
|
19133
20437
|
notes: string | null;
|
|
19134
20438
|
phone: string | null;
|
|
19135
20439
|
pickup_moments: import("../integrations/supabase/types").Json;
|
|
20440
|
+
pickup_weekdays: number[];
|
|
19136
20441
|
service_cities: string[];
|
|
19137
20442
|
service_countries: string[];
|
|
19138
20443
|
service_provinces: string[];
|
|
@@ -19148,6 +20453,7 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
|
|
|
19148
20453
|
contact_person?: string | null;
|
|
19149
20454
|
created_at?: string;
|
|
19150
20455
|
delivery_days?: number | null;
|
|
20456
|
+
delivery_weekdays?: number[];
|
|
19151
20457
|
email?: string | null;
|
|
19152
20458
|
id?: string;
|
|
19153
20459
|
is_default?: boolean;
|
|
@@ -19155,6 +20461,7 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
|
|
|
19155
20461
|
notes?: string | null;
|
|
19156
20462
|
phone?: string | null;
|
|
19157
20463
|
pickup_moments?: import("../integrations/supabase/types").Json;
|
|
20464
|
+
pickup_weekdays?: number[];
|
|
19158
20465
|
service_cities?: string[];
|
|
19159
20466
|
service_countries?: string[];
|
|
19160
20467
|
service_provinces?: string[];
|
|
@@ -19170,6 +20477,7 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
|
|
|
19170
20477
|
contact_person?: string | null;
|
|
19171
20478
|
created_at?: string;
|
|
19172
20479
|
delivery_days?: number | null;
|
|
20480
|
+
delivery_weekdays?: number[];
|
|
19173
20481
|
email?: string | null;
|
|
19174
20482
|
id?: string;
|
|
19175
20483
|
is_default?: boolean;
|
|
@@ -19177,6 +20485,7 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
|
|
|
19177
20485
|
notes?: string | null;
|
|
19178
20486
|
phone?: string | null;
|
|
19179
20487
|
pickup_moments?: import("../integrations/supabase/types").Json;
|
|
20488
|
+
pickup_weekdays?: number[];
|
|
19180
20489
|
service_cities?: string[];
|
|
19181
20490
|
service_countries?: string[];
|
|
19182
20491
|
service_provinces?: string[];
|
|
@@ -19189,6 +20498,177 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
|
|
|
19189
20498
|
};
|
|
19190
20499
|
Relationships: [];
|
|
19191
20500
|
};
|
|
20501
|
+
cart_control_draft: {
|
|
20502
|
+
Row: {
|
|
20503
|
+
cart_states: import("../integrations/supabase/types").Json;
|
|
20504
|
+
checked_keys: import("../integrations/supabase/types").Json;
|
|
20505
|
+
draft_date: string;
|
|
20506
|
+
form_state: import("../integrations/supabase/types").Json;
|
|
20507
|
+
notes: string;
|
|
20508
|
+
updated_at: string;
|
|
20509
|
+
user_id: string;
|
|
20510
|
+
};
|
|
20511
|
+
Insert: {
|
|
20512
|
+
cart_states?: import("../integrations/supabase/types").Json;
|
|
20513
|
+
checked_keys?: import("../integrations/supabase/types").Json;
|
|
20514
|
+
draft_date: string;
|
|
20515
|
+
form_state?: import("../integrations/supabase/types").Json;
|
|
20516
|
+
notes?: string;
|
|
20517
|
+
updated_at?: string;
|
|
20518
|
+
user_id: string;
|
|
20519
|
+
};
|
|
20520
|
+
Update: {
|
|
20521
|
+
cart_states?: import("../integrations/supabase/types").Json;
|
|
20522
|
+
checked_keys?: import("../integrations/supabase/types").Json;
|
|
20523
|
+
draft_date?: string;
|
|
20524
|
+
form_state?: import("../integrations/supabase/types").Json;
|
|
20525
|
+
notes?: string;
|
|
20526
|
+
updated_at?: string;
|
|
20527
|
+
user_id?: string;
|
|
20528
|
+
};
|
|
20529
|
+
Relationships: [];
|
|
20530
|
+
};
|
|
20531
|
+
cart_control_items: {
|
|
20532
|
+
Row: {
|
|
20533
|
+
action: string;
|
|
20534
|
+
block_reason: string | null;
|
|
20535
|
+
carrier_name: string | null;
|
|
20536
|
+
cart_index: number;
|
|
20537
|
+
cart_number_id: string | null;
|
|
20538
|
+
cart_number_label: string | null;
|
|
20539
|
+
created_at: string;
|
|
20540
|
+
customer_name: string | null;
|
|
20541
|
+
delivery_date: string | null;
|
|
20542
|
+
id: string;
|
|
20543
|
+
new_pick_date: string | null;
|
|
20544
|
+
order_id: string;
|
|
20545
|
+
order_number: string | null;
|
|
20546
|
+
order_source: string;
|
|
20547
|
+
pickup_date: string | null;
|
|
20548
|
+
session_id: string;
|
|
20549
|
+
};
|
|
20550
|
+
Insert: {
|
|
20551
|
+
action: string;
|
|
20552
|
+
block_reason?: string | null;
|
|
20553
|
+
carrier_name?: string | null;
|
|
20554
|
+
cart_index: number;
|
|
20555
|
+
cart_number_id?: string | null;
|
|
20556
|
+
cart_number_label?: string | null;
|
|
20557
|
+
created_at?: string;
|
|
20558
|
+
customer_name?: string | null;
|
|
20559
|
+
delivery_date?: string | null;
|
|
20560
|
+
id?: string;
|
|
20561
|
+
new_pick_date?: string | null;
|
|
20562
|
+
order_id: string;
|
|
20563
|
+
order_number?: string | null;
|
|
20564
|
+
order_source: string;
|
|
20565
|
+
pickup_date?: string | null;
|
|
20566
|
+
session_id: string;
|
|
20567
|
+
};
|
|
20568
|
+
Update: {
|
|
20569
|
+
action?: string;
|
|
20570
|
+
block_reason?: string | null;
|
|
20571
|
+
carrier_name?: string | null;
|
|
20572
|
+
cart_index?: number;
|
|
20573
|
+
cart_number_id?: string | null;
|
|
20574
|
+
cart_number_label?: string | null;
|
|
20575
|
+
created_at?: string;
|
|
20576
|
+
customer_name?: string | null;
|
|
20577
|
+
delivery_date?: string | null;
|
|
20578
|
+
id?: string;
|
|
20579
|
+
new_pick_date?: string | null;
|
|
20580
|
+
order_id?: string;
|
|
20581
|
+
order_number?: string | null;
|
|
20582
|
+
order_source?: string;
|
|
20583
|
+
pickup_date?: string | null;
|
|
20584
|
+
session_id?: string;
|
|
20585
|
+
};
|
|
20586
|
+
Relationships: [{
|
|
20587
|
+
foreignKeyName: "cart_control_items_session_id_fkey";
|
|
20588
|
+
columns: ["session_id"];
|
|
20589
|
+
isOneToOne: false;
|
|
20590
|
+
referencedRelation: "cart_control_sessions";
|
|
20591
|
+
referencedColumns: ["id"];
|
|
20592
|
+
}];
|
|
20593
|
+
};
|
|
20594
|
+
cart_control_sessions: {
|
|
20595
|
+
Row: {
|
|
20596
|
+
blocked_count: number;
|
|
20597
|
+
checked_count: number;
|
|
20598
|
+
control_date: string;
|
|
20599
|
+
created_at: string;
|
|
20600
|
+
id: string;
|
|
20601
|
+
notes: string | null;
|
|
20602
|
+
performed_at: string;
|
|
20603
|
+
rescheduled_count: number;
|
|
20604
|
+
total_carts: number;
|
|
20605
|
+
updated_at: string;
|
|
20606
|
+
user_id: string;
|
|
20607
|
+
};
|
|
20608
|
+
Insert: {
|
|
20609
|
+
blocked_count?: number;
|
|
20610
|
+
checked_count?: number;
|
|
20611
|
+
control_date?: string;
|
|
20612
|
+
created_at?: string;
|
|
20613
|
+
id?: string;
|
|
20614
|
+
notes?: string | null;
|
|
20615
|
+
performed_at?: string;
|
|
20616
|
+
rescheduled_count?: number;
|
|
20617
|
+
total_carts?: number;
|
|
20618
|
+
updated_at?: string;
|
|
20619
|
+
user_id: string;
|
|
20620
|
+
};
|
|
20621
|
+
Update: {
|
|
20622
|
+
blocked_count?: number;
|
|
20623
|
+
checked_count?: number;
|
|
20624
|
+
control_date?: string;
|
|
20625
|
+
created_at?: string;
|
|
20626
|
+
id?: string;
|
|
20627
|
+
notes?: string | null;
|
|
20628
|
+
performed_at?: string;
|
|
20629
|
+
rescheduled_count?: number;
|
|
20630
|
+
total_carts?: number;
|
|
20631
|
+
updated_at?: string;
|
|
20632
|
+
user_id?: string;
|
|
20633
|
+
};
|
|
20634
|
+
Relationships: [];
|
|
20635
|
+
};
|
|
20636
|
+
cart_numbers: {
|
|
20637
|
+
Row: {
|
|
20638
|
+
assigned_at: string;
|
|
20639
|
+
cart_index: number;
|
|
20640
|
+
cart_number: string;
|
|
20641
|
+
day_seq: number;
|
|
20642
|
+
id: string;
|
|
20643
|
+
order_id: string;
|
|
20644
|
+
order_source: string;
|
|
20645
|
+
pick_date: string;
|
|
20646
|
+
status: string;
|
|
20647
|
+
};
|
|
20648
|
+
Insert: {
|
|
20649
|
+
assigned_at?: string;
|
|
20650
|
+
cart_index: number;
|
|
20651
|
+
cart_number: string;
|
|
20652
|
+
day_seq: number;
|
|
20653
|
+
id?: string;
|
|
20654
|
+
order_id: string;
|
|
20655
|
+
order_source: string;
|
|
20656
|
+
pick_date: string;
|
|
20657
|
+
status?: string;
|
|
20658
|
+
};
|
|
20659
|
+
Update: {
|
|
20660
|
+
assigned_at?: string;
|
|
20661
|
+
cart_index?: number;
|
|
20662
|
+
cart_number?: string;
|
|
20663
|
+
day_seq?: number;
|
|
20664
|
+
id?: string;
|
|
20665
|
+
order_id?: string;
|
|
20666
|
+
order_source?: string;
|
|
20667
|
+
pick_date?: string;
|
|
20668
|
+
status?: string;
|
|
20669
|
+
};
|
|
20670
|
+
Relationships: [];
|
|
20671
|
+
};
|
|
19192
20672
|
cart_pick_overrides: {
|
|
19193
20673
|
Row: {
|
|
19194
20674
|
cart_index: number;
|
|
@@ -19861,6 +21341,54 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
|
|
|
19861
21341
|
referencedColumns: ["id"];
|
|
19862
21342
|
}];
|
|
19863
21343
|
};
|
|
21344
|
+
dashboard_critical_alerts: {
|
|
21345
|
+
Row: {
|
|
21346
|
+
alert_key: string;
|
|
21347
|
+
alert_type: string;
|
|
21348
|
+
created_at: string;
|
|
21349
|
+
description: string | null;
|
|
21350
|
+
id: string;
|
|
21351
|
+
metadata: import("../integrations/supabase/types").Json | null;
|
|
21352
|
+
priority: string;
|
|
21353
|
+
raised_at: string;
|
|
21354
|
+
related_cart_ids: string[] | null;
|
|
21355
|
+
resolved_at: string | null;
|
|
21356
|
+
title: string;
|
|
21357
|
+
updated_at: string;
|
|
21358
|
+
user_id: string;
|
|
21359
|
+
};
|
|
21360
|
+
Insert: {
|
|
21361
|
+
alert_key: string;
|
|
21362
|
+
alert_type: string;
|
|
21363
|
+
created_at?: string;
|
|
21364
|
+
description?: string | null;
|
|
21365
|
+
id?: string;
|
|
21366
|
+
metadata?: import("../integrations/supabase/types").Json | null;
|
|
21367
|
+
priority?: string;
|
|
21368
|
+
raised_at?: string;
|
|
21369
|
+
related_cart_ids?: string[] | null;
|
|
21370
|
+
resolved_at?: string | null;
|
|
21371
|
+
title: string;
|
|
21372
|
+
updated_at?: string;
|
|
21373
|
+
user_id: string;
|
|
21374
|
+
};
|
|
21375
|
+
Update: {
|
|
21376
|
+
alert_key?: string;
|
|
21377
|
+
alert_type?: string;
|
|
21378
|
+
created_at?: string;
|
|
21379
|
+
description?: string | null;
|
|
21380
|
+
id?: string;
|
|
21381
|
+
metadata?: import("../integrations/supabase/types").Json | null;
|
|
21382
|
+
priority?: string;
|
|
21383
|
+
raised_at?: string;
|
|
21384
|
+
related_cart_ids?: string[] | null;
|
|
21385
|
+
resolved_at?: string | null;
|
|
21386
|
+
title?: string;
|
|
21387
|
+
updated_at?: string;
|
|
21388
|
+
user_id?: string;
|
|
21389
|
+
};
|
|
21390
|
+
Relationships: [];
|
|
21391
|
+
};
|
|
19864
21392
|
dashboard_daily_reports: {
|
|
19865
21393
|
Row: {
|
|
19866
21394
|
created_at: string;
|
|
@@ -21363,6 +22891,7 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
|
|
|
21363
22891
|
};
|
|
21364
22892
|
floricode_sync_state: {
|
|
21365
22893
|
Row: {
|
|
22894
|
+
cursor_skip: number;
|
|
21366
22895
|
error_message: string | null;
|
|
21367
22896
|
last_change_date_time: string | null;
|
|
21368
22897
|
last_sequence_number: number;
|
|
@@ -21372,6 +22901,7 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
|
|
|
21372
22901
|
updated_at: string;
|
|
21373
22902
|
};
|
|
21374
22903
|
Insert: {
|
|
22904
|
+
cursor_skip?: number;
|
|
21375
22905
|
error_message?: string | null;
|
|
21376
22906
|
last_change_date_time?: string | null;
|
|
21377
22907
|
last_sequence_number?: number;
|
|
@@ -21381,6 +22911,7 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
|
|
|
21381
22911
|
updated_at?: string;
|
|
21382
22912
|
};
|
|
21383
22913
|
Update: {
|
|
22914
|
+
cursor_skip?: number;
|
|
21384
22915
|
error_message?: string | null;
|
|
21385
22916
|
last_change_date_time?: string | null;
|
|
21386
22917
|
last_sequence_number?: number;
|
|
@@ -23728,6 +25259,93 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
|
|
|
23728
25259
|
};
|
|
23729
25260
|
Relationships: [];
|
|
23730
25261
|
};
|
|
25262
|
+
manufacture_product_components: {
|
|
25263
|
+
Row: {
|
|
25264
|
+
component_type: string;
|
|
25265
|
+
created_at: string;
|
|
25266
|
+
id: string;
|
|
25267
|
+
manufacture_product_id: string;
|
|
25268
|
+
product_group_id: string | null;
|
|
25269
|
+
quantity: number;
|
|
25270
|
+
trade_item_id: string | null;
|
|
25271
|
+
unit: string;
|
|
25272
|
+
};
|
|
25273
|
+
Insert: {
|
|
25274
|
+
component_type: string;
|
|
25275
|
+
created_at?: string;
|
|
25276
|
+
id?: string;
|
|
25277
|
+
manufacture_product_id: string;
|
|
25278
|
+
product_group_id?: string | null;
|
|
25279
|
+
quantity?: number;
|
|
25280
|
+
trade_item_id?: string | null;
|
|
25281
|
+
unit?: string;
|
|
25282
|
+
};
|
|
25283
|
+
Update: {
|
|
25284
|
+
component_type?: string;
|
|
25285
|
+
created_at?: string;
|
|
25286
|
+
id?: string;
|
|
25287
|
+
manufacture_product_id?: string;
|
|
25288
|
+
product_group_id?: string | null;
|
|
25289
|
+
quantity?: number;
|
|
25290
|
+
trade_item_id?: string | null;
|
|
25291
|
+
unit?: string;
|
|
25292
|
+
};
|
|
25293
|
+
Relationships: [{
|
|
25294
|
+
foreignKeyName: "manufacture_product_components_manufacture_product_id_fkey";
|
|
25295
|
+
columns: ["manufacture_product_id"];
|
|
25296
|
+
isOneToOne: false;
|
|
25297
|
+
referencedRelation: "manufacture_product_possible_stock_view";
|
|
25298
|
+
referencedColumns: ["manufacture_product_id"];
|
|
25299
|
+
}, {
|
|
25300
|
+
foreignKeyName: "manufacture_product_components_manufacture_product_id_fkey";
|
|
25301
|
+
columns: ["manufacture_product_id"];
|
|
25302
|
+
isOneToOne: false;
|
|
25303
|
+
referencedRelation: "manufacture_products";
|
|
25304
|
+
referencedColumns: ["id"];
|
|
25305
|
+
}, {
|
|
25306
|
+
foreignKeyName: "manufacture_product_components_product_group_id_fkey";
|
|
25307
|
+
columns: ["product_group_id"];
|
|
25308
|
+
isOneToOne: false;
|
|
25309
|
+
referencedRelation: "product_groups";
|
|
25310
|
+
referencedColumns: ["id"];
|
|
25311
|
+
}];
|
|
25312
|
+
};
|
|
25313
|
+
manufacture_products: {
|
|
25314
|
+
Row: {
|
|
25315
|
+
created_at: string;
|
|
25316
|
+
description: string | null;
|
|
25317
|
+
id: string;
|
|
25318
|
+
is_active: boolean;
|
|
25319
|
+
name: string;
|
|
25320
|
+
produced_stock: number;
|
|
25321
|
+
product_code: string;
|
|
25322
|
+
tenant_id: string;
|
|
25323
|
+
updated_at: string;
|
|
25324
|
+
};
|
|
25325
|
+
Insert: {
|
|
25326
|
+
created_at?: string;
|
|
25327
|
+
description?: string | null;
|
|
25328
|
+
id?: string;
|
|
25329
|
+
is_active?: boolean;
|
|
25330
|
+
name: string;
|
|
25331
|
+
produced_stock?: number;
|
|
25332
|
+
product_code: string;
|
|
25333
|
+
tenant_id: string;
|
|
25334
|
+
updated_at?: string;
|
|
25335
|
+
};
|
|
25336
|
+
Update: {
|
|
25337
|
+
created_at?: string;
|
|
25338
|
+
description?: string | null;
|
|
25339
|
+
id?: string;
|
|
25340
|
+
is_active?: boolean;
|
|
25341
|
+
name?: string;
|
|
25342
|
+
produced_stock?: number;
|
|
25343
|
+
product_code?: string;
|
|
25344
|
+
tenant_id?: string;
|
|
25345
|
+
updated_at?: string;
|
|
25346
|
+
};
|
|
25347
|
+
Relationships: [];
|
|
25348
|
+
};
|
|
23731
25349
|
monteurs: {
|
|
23732
25350
|
Row: {
|
|
23733
25351
|
avatar_url: string | null;
|
|
@@ -24688,6 +26306,66 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
|
|
|
24688
26306
|
};
|
|
24689
26307
|
Relationships: [];
|
|
24690
26308
|
};
|
|
26309
|
+
product_group_items: {
|
|
26310
|
+
Row: {
|
|
26311
|
+
created_at: string;
|
|
26312
|
+
id: string;
|
|
26313
|
+
product_group_id: string;
|
|
26314
|
+
quantity: number;
|
|
26315
|
+
trade_item_id: string;
|
|
26316
|
+
};
|
|
26317
|
+
Insert: {
|
|
26318
|
+
created_at?: string;
|
|
26319
|
+
id?: string;
|
|
26320
|
+
product_group_id: string;
|
|
26321
|
+
quantity?: number;
|
|
26322
|
+
trade_item_id: string;
|
|
26323
|
+
};
|
|
26324
|
+
Update: {
|
|
26325
|
+
created_at?: string;
|
|
26326
|
+
id?: string;
|
|
26327
|
+
product_group_id?: string;
|
|
26328
|
+
quantity?: number;
|
|
26329
|
+
trade_item_id?: string;
|
|
26330
|
+
};
|
|
26331
|
+
Relationships: [{
|
|
26332
|
+
foreignKeyName: "product_group_items_product_group_id_fkey";
|
|
26333
|
+
columns: ["product_group_id"];
|
|
26334
|
+
isOneToOne: false;
|
|
26335
|
+
referencedRelation: "product_groups";
|
|
26336
|
+
referencedColumns: ["id"];
|
|
26337
|
+
}];
|
|
26338
|
+
};
|
|
26339
|
+
product_groups: {
|
|
26340
|
+
Row: {
|
|
26341
|
+
created_at: string;
|
|
26342
|
+
description: string | null;
|
|
26343
|
+
id: string;
|
|
26344
|
+
is_active: boolean;
|
|
26345
|
+
name: string;
|
|
26346
|
+
tenant_id: string;
|
|
26347
|
+
updated_at: string;
|
|
26348
|
+
};
|
|
26349
|
+
Insert: {
|
|
26350
|
+
created_at?: string;
|
|
26351
|
+
description?: string | null;
|
|
26352
|
+
id?: string;
|
|
26353
|
+
is_active?: boolean;
|
|
26354
|
+
name: string;
|
|
26355
|
+
tenant_id: string;
|
|
26356
|
+
updated_at?: string;
|
|
26357
|
+
};
|
|
26358
|
+
Update: {
|
|
26359
|
+
created_at?: string;
|
|
26360
|
+
description?: string | null;
|
|
26361
|
+
id?: string;
|
|
26362
|
+
is_active?: boolean;
|
|
26363
|
+
name?: string;
|
|
26364
|
+
tenant_id?: string;
|
|
26365
|
+
updated_at?: string;
|
|
26366
|
+
};
|
|
26367
|
+
Relationships: [];
|
|
26368
|
+
};
|
|
24691
26369
|
products: {
|
|
24692
26370
|
Row: {
|
|
24693
26371
|
barcode: string | null;
|
|
@@ -25827,7 +27505,13 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
|
|
|
25827
27505
|
connection_id: string | null;
|
|
25828
27506
|
created_at: string;
|
|
25829
27507
|
data: import("../integrations/supabase/types").Json;
|
|
27508
|
+
floriday_id: string | null;
|
|
27509
|
+
floriday_link_error: string | null;
|
|
27510
|
+
floriday_link_status: string;
|
|
25830
27511
|
id: string;
|
|
27512
|
+
last_floriday_sync_at: string | null;
|
|
27513
|
+
missing_required_fields: string[];
|
|
27514
|
+
source: string;
|
|
25831
27515
|
updated_at: string;
|
|
25832
27516
|
user_id: string;
|
|
25833
27517
|
};
|
|
@@ -25835,7 +27519,13 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
|
|
|
25835
27519
|
connection_id?: string | null;
|
|
25836
27520
|
created_at?: string;
|
|
25837
27521
|
data?: import("../integrations/supabase/types").Json;
|
|
27522
|
+
floriday_id?: string | null;
|
|
27523
|
+
floriday_link_error?: string | null;
|
|
27524
|
+
floriday_link_status?: string;
|
|
25838
27525
|
id?: string;
|
|
27526
|
+
last_floriday_sync_at?: string | null;
|
|
27527
|
+
missing_required_fields?: string[];
|
|
27528
|
+
source?: string;
|
|
25839
27529
|
updated_at?: string;
|
|
25840
27530
|
user_id: string;
|
|
25841
27531
|
};
|
|
@@ -25843,7 +27533,55 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
|
|
|
25843
27533
|
connection_id?: string | null;
|
|
25844
27534
|
created_at?: string;
|
|
25845
27535
|
data?: import("../integrations/supabase/types").Json;
|
|
27536
|
+
floriday_id?: string | null;
|
|
27537
|
+
floriday_link_error?: string | null;
|
|
27538
|
+
floriday_link_status?: string;
|
|
27539
|
+
id?: string;
|
|
27540
|
+
last_floriday_sync_at?: string | null;
|
|
27541
|
+
missing_required_fields?: string[];
|
|
27542
|
+
source?: string;
|
|
27543
|
+
updated_at?: string;
|
|
27544
|
+
user_id?: string;
|
|
27545
|
+
};
|
|
27546
|
+
Relationships: [];
|
|
27547
|
+
};
|
|
27548
|
+
trade_item_stock: {
|
|
27549
|
+
Row: {
|
|
27550
|
+
connection_id: string;
|
|
27551
|
+
created_at: string;
|
|
27552
|
+
id: string;
|
|
27553
|
+
incoming_stock: number;
|
|
27554
|
+
minimum_stock: number;
|
|
27555
|
+
notes: string | null;
|
|
27556
|
+
physical_stock: number;
|
|
27557
|
+
reserved_stock: number;
|
|
27558
|
+
trade_item_key: string;
|
|
27559
|
+
updated_at: string;
|
|
27560
|
+
user_id: string;
|
|
27561
|
+
};
|
|
27562
|
+
Insert: {
|
|
27563
|
+
connection_id: string;
|
|
27564
|
+
created_at?: string;
|
|
25846
27565
|
id?: string;
|
|
27566
|
+
incoming_stock?: number;
|
|
27567
|
+
minimum_stock?: number;
|
|
27568
|
+
notes?: string | null;
|
|
27569
|
+
physical_stock?: number;
|
|
27570
|
+
reserved_stock?: number;
|
|
27571
|
+
trade_item_key: string;
|
|
27572
|
+
updated_at?: string;
|
|
27573
|
+
user_id: string;
|
|
27574
|
+
};
|
|
27575
|
+
Update: {
|
|
27576
|
+
connection_id?: string;
|
|
27577
|
+
created_at?: string;
|
|
27578
|
+
id?: string;
|
|
27579
|
+
incoming_stock?: number;
|
|
27580
|
+
minimum_stock?: number;
|
|
27581
|
+
notes?: string | null;
|
|
27582
|
+
physical_stock?: number;
|
|
27583
|
+
reserved_stock?: number;
|
|
27584
|
+
trade_item_key?: string;
|
|
25847
27585
|
updated_at?: string;
|
|
25848
27586
|
user_id?: string;
|
|
25849
27587
|
};
|
|
@@ -26193,6 +27931,7 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
|
|
|
26193
27931
|
};
|
|
26194
27932
|
twinfield_invoice_sync_logs: {
|
|
26195
27933
|
Row: {
|
|
27934
|
+
action_type: string | null;
|
|
26196
27935
|
created_at: string;
|
|
26197
27936
|
details: import("../integrations/supabase/types").Json | null;
|
|
26198
27937
|
duration_ms: number | null;
|
|
@@ -26205,6 +27944,7 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
|
|
|
26205
27944
|
user_id: string;
|
|
26206
27945
|
};
|
|
26207
27946
|
Insert: {
|
|
27947
|
+
action_type?: string | null;
|
|
26208
27948
|
created_at?: string;
|
|
26209
27949
|
details?: import("../integrations/supabase/types").Json | null;
|
|
26210
27950
|
duration_ms?: number | null;
|
|
@@ -26217,6 +27957,7 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
|
|
|
26217
27957
|
user_id: string;
|
|
26218
27958
|
};
|
|
26219
27959
|
Update: {
|
|
27960
|
+
action_type?: string | null;
|
|
26220
27961
|
created_at?: string;
|
|
26221
27962
|
details?: import("../integrations/supabase/types").Json | null;
|
|
26222
27963
|
duration_ms?: number | null;
|
|
@@ -26452,6 +28193,57 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
|
|
|
26452
28193
|
referencedColumns: ["id"];
|
|
26453
28194
|
}];
|
|
26454
28195
|
};
|
|
28196
|
+
twinfield_request_metrics: {
|
|
28197
|
+
Row: {
|
|
28198
|
+
bucket_hour: string;
|
|
28199
|
+
connection_id: string;
|
|
28200
|
+
error_count: number;
|
|
28201
|
+
rate_limited_count: number;
|
|
28202
|
+
request_count: number;
|
|
28203
|
+
updated_at: string;
|
|
28204
|
+
};
|
|
28205
|
+
Insert: {
|
|
28206
|
+
bucket_hour: string;
|
|
28207
|
+
connection_id: string;
|
|
28208
|
+
error_count?: number;
|
|
28209
|
+
rate_limited_count?: number;
|
|
28210
|
+
request_count?: number;
|
|
28211
|
+
updated_at?: string;
|
|
28212
|
+
};
|
|
28213
|
+
Update: {
|
|
28214
|
+
bucket_hour?: string;
|
|
28215
|
+
connection_id?: string;
|
|
28216
|
+
error_count?: number;
|
|
28217
|
+
rate_limited_count?: number;
|
|
28218
|
+
request_count?: number;
|
|
28219
|
+
updated_at?: string;
|
|
28220
|
+
};
|
|
28221
|
+
Relationships: [];
|
|
28222
|
+
};
|
|
28223
|
+
twinfield_session_cache: {
|
|
28224
|
+
Row: {
|
|
28225
|
+
cluster: string;
|
|
28226
|
+
created_at: string;
|
|
28227
|
+
expires_at: string;
|
|
28228
|
+
session_id: string;
|
|
28229
|
+
user_id: string;
|
|
28230
|
+
};
|
|
28231
|
+
Insert: {
|
|
28232
|
+
cluster: string;
|
|
28233
|
+
created_at?: string;
|
|
28234
|
+
expires_at: string;
|
|
28235
|
+
session_id: string;
|
|
28236
|
+
user_id: string;
|
|
28237
|
+
};
|
|
28238
|
+
Update: {
|
|
28239
|
+
cluster?: string;
|
|
28240
|
+
created_at?: string;
|
|
28241
|
+
expires_at?: string;
|
|
28242
|
+
session_id?: string;
|
|
28243
|
+
user_id?: string;
|
|
28244
|
+
};
|
|
28245
|
+
Relationships: [];
|
|
28246
|
+
};
|
|
26455
28247
|
twinfield_settings: {
|
|
26456
28248
|
Row: {
|
|
26457
28249
|
active_environment: string;
|
|
@@ -27033,6 +28825,35 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
|
|
|
27033
28825
|
};
|
|
27034
28826
|
Relationships: [];
|
|
27035
28827
|
};
|
|
28828
|
+
manufacture_product_possible_stock_view: {
|
|
28829
|
+
Row: {
|
|
28830
|
+
component_count: number | null;
|
|
28831
|
+
manufacture_product_id: string | null;
|
|
28832
|
+
possible_stock: number | null;
|
|
28833
|
+
};
|
|
28834
|
+
Relationships: [];
|
|
28835
|
+
};
|
|
28836
|
+
product_group_stock_view: {
|
|
28837
|
+
Row: {
|
|
28838
|
+
item_count: number | null;
|
|
28839
|
+
product_group_id: string | null;
|
|
28840
|
+
total_stock: number | null;
|
|
28841
|
+
};
|
|
28842
|
+
Relationships: [{
|
|
28843
|
+
foreignKeyName: "product_group_items_product_group_id_fkey";
|
|
28844
|
+
columns: ["product_group_id"];
|
|
28845
|
+
isOneToOne: false;
|
|
28846
|
+
referencedRelation: "product_groups";
|
|
28847
|
+
referencedColumns: ["id"];
|
|
28848
|
+
}];
|
|
28849
|
+
};
|
|
28850
|
+
trade_item_stock_view: {
|
|
28851
|
+
Row: {
|
|
28852
|
+
stock: number | null;
|
|
28853
|
+
trade_item_id: string | null;
|
|
28854
|
+
};
|
|
28855
|
+
Relationships: [];
|
|
28856
|
+
};
|
|
27036
28857
|
v_external_customers_exact: {
|
|
27037
28858
|
Row: {
|
|
27038
28859
|
account_number: string | null;
|
|
@@ -27288,6 +29109,20 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
|
|
|
27288
29109
|
};
|
|
27289
29110
|
Returns: number;
|
|
27290
29111
|
};
|
|
29112
|
+
assign_cart_numbers: {
|
|
29113
|
+
Args: {
|
|
29114
|
+
p_carts: import("../integrations/supabase/types").Json;
|
|
29115
|
+
};
|
|
29116
|
+
Returns: {
|
|
29117
|
+
cart_index: number;
|
|
29118
|
+
cart_number: string;
|
|
29119
|
+
day_seq: number;
|
|
29120
|
+
order_id: string;
|
|
29121
|
+
order_source: string;
|
|
29122
|
+
pick_date: string;
|
|
29123
|
+
status: string;
|
|
29124
|
+
}[];
|
|
29125
|
+
};
|
|
27291
29126
|
assign_floriday_order_numbers: {
|
|
27292
29127
|
Args: {
|
|
27293
29128
|
p_ids: string[];
|
|
@@ -27307,10 +29142,37 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
|
|
|
27307
29142
|
Args: never;
|
|
27308
29143
|
Returns: number;
|
|
27309
29144
|
};
|
|
29145
|
+
control_get_todays_carts: {
|
|
29146
|
+
Args: never;
|
|
29147
|
+
Returns: {
|
|
29148
|
+
cart_index: number;
|
|
29149
|
+
cart_number: string;
|
|
29150
|
+
cart_number_id: string;
|
|
29151
|
+
order_id: string;
|
|
29152
|
+
order_source: string;
|
|
29153
|
+
pick_date: string;
|
|
29154
|
+
status: string;
|
|
29155
|
+
}[];
|
|
29156
|
+
};
|
|
29157
|
+
count_distinct_regulatory_products: {
|
|
29158
|
+
Args: never;
|
|
29159
|
+
Returns: number;
|
|
29160
|
+
};
|
|
27310
29161
|
current_monteur_id: {
|
|
27311
29162
|
Args: never;
|
|
27312
29163
|
Returns: string;
|
|
27313
29164
|
};
|
|
29165
|
+
dashboard_alert_counts: {
|
|
29166
|
+
Args: never;
|
|
29167
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
29168
|
+
};
|
|
29169
|
+
dashboard_alert_rows: {
|
|
29170
|
+
Args: {
|
|
29171
|
+
check_id: string;
|
|
29172
|
+
row_limit?: number;
|
|
29173
|
+
};
|
|
29174
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
29175
|
+
};
|
|
27314
29176
|
dashboard_list_public_schema: {
|
|
27315
29177
|
Args: never;
|
|
27316
29178
|
Returns: {
|
|
@@ -27391,6 +29253,13 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
|
|
|
27391
29253
|
};
|
|
27392
29254
|
Returns: boolean;
|
|
27393
29255
|
};
|
|
29256
|
+
format_cart_number: {
|
|
29257
|
+
Args: {
|
|
29258
|
+
p_pick_date: string;
|
|
29259
|
+
p_seq: number;
|
|
29260
|
+
};
|
|
29261
|
+
Returns: string;
|
|
29262
|
+
};
|
|
27394
29263
|
get_active_floriday_connection_public: {
|
|
27395
29264
|
Args: never;
|
|
27396
29265
|
Returns: {
|
|
@@ -27595,14 +29464,29 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
|
|
|
27595
29464
|
};
|
|
27596
29465
|
Returns: undefined;
|
|
27597
29466
|
};
|
|
29467
|
+
pickstation_set_cart_status: {
|
|
29468
|
+
Args: {
|
|
29469
|
+
p_cart_index: number;
|
|
29470
|
+
p_order_id: string;
|
|
29471
|
+
p_order_source: string;
|
|
29472
|
+
p_status: string;
|
|
29473
|
+
};
|
|
29474
|
+
Returns: undefined;
|
|
29475
|
+
};
|
|
27598
29476
|
refresh_floricode_derived_code_lists: {
|
|
27599
29477
|
Args: never;
|
|
27600
29478
|
Returns: {
|
|
27601
|
-
|
|
27602
|
-
|
|
27603
|
-
|
|
29479
|
+
environment: string;
|
|
29480
|
+
list_name: string;
|
|
29481
|
+
row_count: number;
|
|
27604
29482
|
}[];
|
|
27605
29483
|
};
|
|
29484
|
+
refresh_floricode_derived_for_product: {
|
|
29485
|
+
Args: {
|
|
29486
|
+
p_product_code: string;
|
|
29487
|
+
};
|
|
29488
|
+
Returns: number;
|
|
29489
|
+
};
|
|
27606
29490
|
reset_floriday_sync_cursor: {
|
|
27607
29491
|
Args: {
|
|
27608
29492
|
p_connection_id: string;
|
|
@@ -27931,6 +29815,7 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
|
|
|
27931
29815
|
max_workdays_earlier_pick: number;
|
|
27932
29816
|
pick_days_before_transport: number;
|
|
27933
29817
|
pick_distribution_enabled: boolean;
|
|
29818
|
+
pick_weekdays: number[];
|
|
27934
29819
|
signup_mail_enabled: boolean;
|
|
27935
29820
|
signup_mail_lead_minutes: number;
|
|
27936
29821
|
signup_mail_purpose: string;
|
|
@@ -27944,6 +29829,7 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
|
|
|
27944
29829
|
max_workdays_earlier_pick?: number;
|
|
27945
29830
|
pick_days_before_transport?: number;
|
|
27946
29831
|
pick_distribution_enabled?: boolean;
|
|
29832
|
+
pick_weekdays?: number[];
|
|
27947
29833
|
signup_mail_enabled?: boolean;
|
|
27948
29834
|
signup_mail_lead_minutes?: number;
|
|
27949
29835
|
signup_mail_purpose?: string;
|
|
@@ -27957,6 +29843,7 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
|
|
|
27957
29843
|
max_workdays_earlier_pick?: number;
|
|
27958
29844
|
pick_days_before_transport?: number;
|
|
27959
29845
|
pick_distribution_enabled?: boolean;
|
|
29846
|
+
pick_weekdays?: number[];
|
|
27960
29847
|
signup_mail_enabled?: boolean;
|
|
27961
29848
|
signup_mail_lead_minutes?: number;
|
|
27962
29849
|
signup_mail_purpose?: string;
|
|
@@ -28368,6 +30255,48 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
|
|
|
28368
30255
|
referencedColumns: ["id"];
|
|
28369
30256
|
}];
|
|
28370
30257
|
};
|
|
30258
|
+
carrier_signup_dispatch_runs: {
|
|
30259
|
+
Row: {
|
|
30260
|
+
detail: import("../integrations/supabase/types").Json | null;
|
|
30261
|
+
error: string | null;
|
|
30262
|
+
finished_at: string | null;
|
|
30263
|
+
groups: number;
|
|
30264
|
+
id: string;
|
|
30265
|
+
ok: boolean;
|
|
30266
|
+
reason: string | null;
|
|
30267
|
+
sent: number;
|
|
30268
|
+
skipped: import("../integrations/supabase/types").Json;
|
|
30269
|
+
started_at: string;
|
|
30270
|
+
unassigned: import("../integrations/supabase/types").Json;
|
|
30271
|
+
};
|
|
30272
|
+
Insert: {
|
|
30273
|
+
detail?: import("../integrations/supabase/types").Json | null;
|
|
30274
|
+
error?: string | null;
|
|
30275
|
+
finished_at?: string | null;
|
|
30276
|
+
groups?: number;
|
|
30277
|
+
id?: string;
|
|
30278
|
+
ok?: boolean;
|
|
30279
|
+
reason?: string | null;
|
|
30280
|
+
sent?: number;
|
|
30281
|
+
skipped?: import("../integrations/supabase/types").Json;
|
|
30282
|
+
started_at?: string;
|
|
30283
|
+
unassigned?: import("../integrations/supabase/types").Json;
|
|
30284
|
+
};
|
|
30285
|
+
Update: {
|
|
30286
|
+
detail?: import("../integrations/supabase/types").Json | null;
|
|
30287
|
+
error?: string | null;
|
|
30288
|
+
finished_at?: string | null;
|
|
30289
|
+
groups?: number;
|
|
30290
|
+
id?: string;
|
|
30291
|
+
ok?: boolean;
|
|
30292
|
+
reason?: string | null;
|
|
30293
|
+
sent?: number;
|
|
30294
|
+
skipped?: import("../integrations/supabase/types").Json;
|
|
30295
|
+
started_at?: string;
|
|
30296
|
+
unassigned?: import("../integrations/supabase/types").Json;
|
|
30297
|
+
};
|
|
30298
|
+
Relationships: [];
|
|
30299
|
+
};
|
|
28371
30300
|
carrier_signup_dispatches: {
|
|
28372
30301
|
Row: {
|
|
28373
30302
|
carrier_id: string;
|
|
@@ -28419,6 +30348,7 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
|
|
|
28419
30348
|
contact_person: string | null;
|
|
28420
30349
|
created_at: string;
|
|
28421
30350
|
delivery_days: number | null;
|
|
30351
|
+
delivery_weekdays: number[];
|
|
28422
30352
|
email: string | null;
|
|
28423
30353
|
id: string;
|
|
28424
30354
|
is_default: boolean;
|
|
@@ -28426,6 +30356,7 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
|
|
|
28426
30356
|
notes: string | null;
|
|
28427
30357
|
phone: string | null;
|
|
28428
30358
|
pickup_moments: import("../integrations/supabase/types").Json;
|
|
30359
|
+
pickup_weekdays: number[];
|
|
28429
30360
|
service_cities: string[];
|
|
28430
30361
|
service_countries: string[];
|
|
28431
30362
|
service_provinces: string[];
|
|
@@ -28441,6 +30372,7 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
|
|
|
28441
30372
|
contact_person?: string | null;
|
|
28442
30373
|
created_at?: string;
|
|
28443
30374
|
delivery_days?: number | null;
|
|
30375
|
+
delivery_weekdays?: number[];
|
|
28444
30376
|
email?: string | null;
|
|
28445
30377
|
id?: string;
|
|
28446
30378
|
is_default?: boolean;
|
|
@@ -28448,6 +30380,7 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
|
|
|
28448
30380
|
notes?: string | null;
|
|
28449
30381
|
phone?: string | null;
|
|
28450
30382
|
pickup_moments?: import("../integrations/supabase/types").Json;
|
|
30383
|
+
pickup_weekdays?: number[];
|
|
28451
30384
|
service_cities?: string[];
|
|
28452
30385
|
service_countries?: string[];
|
|
28453
30386
|
service_provinces?: string[];
|
|
@@ -28463,6 +30396,7 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
|
|
|
28463
30396
|
contact_person?: string | null;
|
|
28464
30397
|
created_at?: string;
|
|
28465
30398
|
delivery_days?: number | null;
|
|
30399
|
+
delivery_weekdays?: number[];
|
|
28466
30400
|
email?: string | null;
|
|
28467
30401
|
id?: string;
|
|
28468
30402
|
is_default?: boolean;
|
|
@@ -28470,6 +30404,7 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
|
|
|
28470
30404
|
notes?: string | null;
|
|
28471
30405
|
phone?: string | null;
|
|
28472
30406
|
pickup_moments?: import("../integrations/supabase/types").Json;
|
|
30407
|
+
pickup_weekdays?: number[];
|
|
28473
30408
|
service_cities?: string[];
|
|
28474
30409
|
service_countries?: string[];
|
|
28475
30410
|
service_provinces?: string[];
|
|
@@ -28482,6 +30417,177 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
|
|
|
28482
30417
|
};
|
|
28483
30418
|
Relationships: [];
|
|
28484
30419
|
};
|
|
30420
|
+
cart_control_draft: {
|
|
30421
|
+
Row: {
|
|
30422
|
+
cart_states: import("../integrations/supabase/types").Json;
|
|
30423
|
+
checked_keys: import("../integrations/supabase/types").Json;
|
|
30424
|
+
draft_date: string;
|
|
30425
|
+
form_state: import("../integrations/supabase/types").Json;
|
|
30426
|
+
notes: string;
|
|
30427
|
+
updated_at: string;
|
|
30428
|
+
user_id: string;
|
|
30429
|
+
};
|
|
30430
|
+
Insert: {
|
|
30431
|
+
cart_states?: import("../integrations/supabase/types").Json;
|
|
30432
|
+
checked_keys?: import("../integrations/supabase/types").Json;
|
|
30433
|
+
draft_date: string;
|
|
30434
|
+
form_state?: import("../integrations/supabase/types").Json;
|
|
30435
|
+
notes?: string;
|
|
30436
|
+
updated_at?: string;
|
|
30437
|
+
user_id: string;
|
|
30438
|
+
};
|
|
30439
|
+
Update: {
|
|
30440
|
+
cart_states?: import("../integrations/supabase/types").Json;
|
|
30441
|
+
checked_keys?: import("../integrations/supabase/types").Json;
|
|
30442
|
+
draft_date?: string;
|
|
30443
|
+
form_state?: import("../integrations/supabase/types").Json;
|
|
30444
|
+
notes?: string;
|
|
30445
|
+
updated_at?: string;
|
|
30446
|
+
user_id?: string;
|
|
30447
|
+
};
|
|
30448
|
+
Relationships: [];
|
|
30449
|
+
};
|
|
30450
|
+
cart_control_items: {
|
|
30451
|
+
Row: {
|
|
30452
|
+
action: string;
|
|
30453
|
+
block_reason: string | null;
|
|
30454
|
+
carrier_name: string | null;
|
|
30455
|
+
cart_index: number;
|
|
30456
|
+
cart_number_id: string | null;
|
|
30457
|
+
cart_number_label: string | null;
|
|
30458
|
+
created_at: string;
|
|
30459
|
+
customer_name: string | null;
|
|
30460
|
+
delivery_date: string | null;
|
|
30461
|
+
id: string;
|
|
30462
|
+
new_pick_date: string | null;
|
|
30463
|
+
order_id: string;
|
|
30464
|
+
order_number: string | null;
|
|
30465
|
+
order_source: string;
|
|
30466
|
+
pickup_date: string | null;
|
|
30467
|
+
session_id: string;
|
|
30468
|
+
};
|
|
30469
|
+
Insert: {
|
|
30470
|
+
action: string;
|
|
30471
|
+
block_reason?: string | null;
|
|
30472
|
+
carrier_name?: string | null;
|
|
30473
|
+
cart_index: number;
|
|
30474
|
+
cart_number_id?: string | null;
|
|
30475
|
+
cart_number_label?: string | null;
|
|
30476
|
+
created_at?: string;
|
|
30477
|
+
customer_name?: string | null;
|
|
30478
|
+
delivery_date?: string | null;
|
|
30479
|
+
id?: string;
|
|
30480
|
+
new_pick_date?: string | null;
|
|
30481
|
+
order_id: string;
|
|
30482
|
+
order_number?: string | null;
|
|
30483
|
+
order_source: string;
|
|
30484
|
+
pickup_date?: string | null;
|
|
30485
|
+
session_id: string;
|
|
30486
|
+
};
|
|
30487
|
+
Update: {
|
|
30488
|
+
action?: string;
|
|
30489
|
+
block_reason?: string | null;
|
|
30490
|
+
carrier_name?: string | null;
|
|
30491
|
+
cart_index?: number;
|
|
30492
|
+
cart_number_id?: string | null;
|
|
30493
|
+
cart_number_label?: string | null;
|
|
30494
|
+
created_at?: string;
|
|
30495
|
+
customer_name?: string | null;
|
|
30496
|
+
delivery_date?: string | null;
|
|
30497
|
+
id?: string;
|
|
30498
|
+
new_pick_date?: string | null;
|
|
30499
|
+
order_id?: string;
|
|
30500
|
+
order_number?: string | null;
|
|
30501
|
+
order_source?: string;
|
|
30502
|
+
pickup_date?: string | null;
|
|
30503
|
+
session_id?: string;
|
|
30504
|
+
};
|
|
30505
|
+
Relationships: [{
|
|
30506
|
+
foreignKeyName: "cart_control_items_session_id_fkey";
|
|
30507
|
+
columns: ["session_id"];
|
|
30508
|
+
isOneToOne: false;
|
|
30509
|
+
referencedRelation: "cart_control_sessions";
|
|
30510
|
+
referencedColumns: ["id"];
|
|
30511
|
+
}];
|
|
30512
|
+
};
|
|
30513
|
+
cart_control_sessions: {
|
|
30514
|
+
Row: {
|
|
30515
|
+
blocked_count: number;
|
|
30516
|
+
checked_count: number;
|
|
30517
|
+
control_date: string;
|
|
30518
|
+
created_at: string;
|
|
30519
|
+
id: string;
|
|
30520
|
+
notes: string | null;
|
|
30521
|
+
performed_at: string;
|
|
30522
|
+
rescheduled_count: number;
|
|
30523
|
+
total_carts: number;
|
|
30524
|
+
updated_at: string;
|
|
30525
|
+
user_id: string;
|
|
30526
|
+
};
|
|
30527
|
+
Insert: {
|
|
30528
|
+
blocked_count?: number;
|
|
30529
|
+
checked_count?: number;
|
|
30530
|
+
control_date?: string;
|
|
30531
|
+
created_at?: string;
|
|
30532
|
+
id?: string;
|
|
30533
|
+
notes?: string | null;
|
|
30534
|
+
performed_at?: string;
|
|
30535
|
+
rescheduled_count?: number;
|
|
30536
|
+
total_carts?: number;
|
|
30537
|
+
updated_at?: string;
|
|
30538
|
+
user_id: string;
|
|
30539
|
+
};
|
|
30540
|
+
Update: {
|
|
30541
|
+
blocked_count?: number;
|
|
30542
|
+
checked_count?: number;
|
|
30543
|
+
control_date?: string;
|
|
30544
|
+
created_at?: string;
|
|
30545
|
+
id?: string;
|
|
30546
|
+
notes?: string | null;
|
|
30547
|
+
performed_at?: string;
|
|
30548
|
+
rescheduled_count?: number;
|
|
30549
|
+
total_carts?: number;
|
|
30550
|
+
updated_at?: string;
|
|
30551
|
+
user_id?: string;
|
|
30552
|
+
};
|
|
30553
|
+
Relationships: [];
|
|
30554
|
+
};
|
|
30555
|
+
cart_numbers: {
|
|
30556
|
+
Row: {
|
|
30557
|
+
assigned_at: string;
|
|
30558
|
+
cart_index: number;
|
|
30559
|
+
cart_number: string;
|
|
30560
|
+
day_seq: number;
|
|
30561
|
+
id: string;
|
|
30562
|
+
order_id: string;
|
|
30563
|
+
order_source: string;
|
|
30564
|
+
pick_date: string;
|
|
30565
|
+
status: string;
|
|
30566
|
+
};
|
|
30567
|
+
Insert: {
|
|
30568
|
+
assigned_at?: string;
|
|
30569
|
+
cart_index: number;
|
|
30570
|
+
cart_number: string;
|
|
30571
|
+
day_seq: number;
|
|
30572
|
+
id?: string;
|
|
30573
|
+
order_id: string;
|
|
30574
|
+
order_source: string;
|
|
30575
|
+
pick_date: string;
|
|
30576
|
+
status?: string;
|
|
30577
|
+
};
|
|
30578
|
+
Update: {
|
|
30579
|
+
assigned_at?: string;
|
|
30580
|
+
cart_index?: number;
|
|
30581
|
+
cart_number?: string;
|
|
30582
|
+
day_seq?: number;
|
|
30583
|
+
id?: string;
|
|
30584
|
+
order_id?: string;
|
|
30585
|
+
order_source?: string;
|
|
30586
|
+
pick_date?: string;
|
|
30587
|
+
status?: string;
|
|
30588
|
+
};
|
|
30589
|
+
Relationships: [];
|
|
30590
|
+
};
|
|
28485
30591
|
cart_pick_overrides: {
|
|
28486
30592
|
Row: {
|
|
28487
30593
|
cart_index: number;
|
|
@@ -29154,6 +31260,54 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
|
|
|
29154
31260
|
referencedColumns: ["id"];
|
|
29155
31261
|
}];
|
|
29156
31262
|
};
|
|
31263
|
+
dashboard_critical_alerts: {
|
|
31264
|
+
Row: {
|
|
31265
|
+
alert_key: string;
|
|
31266
|
+
alert_type: string;
|
|
31267
|
+
created_at: string;
|
|
31268
|
+
description: string | null;
|
|
31269
|
+
id: string;
|
|
31270
|
+
metadata: import("../integrations/supabase/types").Json | null;
|
|
31271
|
+
priority: string;
|
|
31272
|
+
raised_at: string;
|
|
31273
|
+
related_cart_ids: string[] | null;
|
|
31274
|
+
resolved_at: string | null;
|
|
31275
|
+
title: string;
|
|
31276
|
+
updated_at: string;
|
|
31277
|
+
user_id: string;
|
|
31278
|
+
};
|
|
31279
|
+
Insert: {
|
|
31280
|
+
alert_key: string;
|
|
31281
|
+
alert_type: string;
|
|
31282
|
+
created_at?: string;
|
|
31283
|
+
description?: string | null;
|
|
31284
|
+
id?: string;
|
|
31285
|
+
metadata?: import("../integrations/supabase/types").Json | null;
|
|
31286
|
+
priority?: string;
|
|
31287
|
+
raised_at?: string;
|
|
31288
|
+
related_cart_ids?: string[] | null;
|
|
31289
|
+
resolved_at?: string | null;
|
|
31290
|
+
title: string;
|
|
31291
|
+
updated_at?: string;
|
|
31292
|
+
user_id: string;
|
|
31293
|
+
};
|
|
31294
|
+
Update: {
|
|
31295
|
+
alert_key?: string;
|
|
31296
|
+
alert_type?: string;
|
|
31297
|
+
created_at?: string;
|
|
31298
|
+
description?: string | null;
|
|
31299
|
+
id?: string;
|
|
31300
|
+
metadata?: import("../integrations/supabase/types").Json | null;
|
|
31301
|
+
priority?: string;
|
|
31302
|
+
raised_at?: string;
|
|
31303
|
+
related_cart_ids?: string[] | null;
|
|
31304
|
+
resolved_at?: string | null;
|
|
31305
|
+
title?: string;
|
|
31306
|
+
updated_at?: string;
|
|
31307
|
+
user_id?: string;
|
|
31308
|
+
};
|
|
31309
|
+
Relationships: [];
|
|
31310
|
+
};
|
|
29157
31311
|
dashboard_daily_reports: {
|
|
29158
31312
|
Row: {
|
|
29159
31313
|
created_at: string;
|
|
@@ -30656,6 +32810,7 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
|
|
|
30656
32810
|
};
|
|
30657
32811
|
floricode_sync_state: {
|
|
30658
32812
|
Row: {
|
|
32813
|
+
cursor_skip: number;
|
|
30659
32814
|
error_message: string | null;
|
|
30660
32815
|
last_change_date_time: string | null;
|
|
30661
32816
|
last_sequence_number: number;
|
|
@@ -30665,6 +32820,7 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
|
|
|
30665
32820
|
updated_at: string;
|
|
30666
32821
|
};
|
|
30667
32822
|
Insert: {
|
|
32823
|
+
cursor_skip?: number;
|
|
30668
32824
|
error_message?: string | null;
|
|
30669
32825
|
last_change_date_time?: string | null;
|
|
30670
32826
|
last_sequence_number?: number;
|
|
@@ -30674,6 +32830,7 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
|
|
|
30674
32830
|
updated_at?: string;
|
|
30675
32831
|
};
|
|
30676
32832
|
Update: {
|
|
32833
|
+
cursor_skip?: number;
|
|
30677
32834
|
error_message?: string | null;
|
|
30678
32835
|
last_change_date_time?: string | null;
|
|
30679
32836
|
last_sequence_number?: number;
|
|
@@ -33021,6 +35178,93 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
|
|
|
33021
35178
|
};
|
|
33022
35179
|
Relationships: [];
|
|
33023
35180
|
};
|
|
35181
|
+
manufacture_product_components: {
|
|
35182
|
+
Row: {
|
|
35183
|
+
component_type: string;
|
|
35184
|
+
created_at: string;
|
|
35185
|
+
id: string;
|
|
35186
|
+
manufacture_product_id: string;
|
|
35187
|
+
product_group_id: string | null;
|
|
35188
|
+
quantity: number;
|
|
35189
|
+
trade_item_id: string | null;
|
|
35190
|
+
unit: string;
|
|
35191
|
+
};
|
|
35192
|
+
Insert: {
|
|
35193
|
+
component_type: string;
|
|
35194
|
+
created_at?: string;
|
|
35195
|
+
id?: string;
|
|
35196
|
+
manufacture_product_id: string;
|
|
35197
|
+
product_group_id?: string | null;
|
|
35198
|
+
quantity?: number;
|
|
35199
|
+
trade_item_id?: string | null;
|
|
35200
|
+
unit?: string;
|
|
35201
|
+
};
|
|
35202
|
+
Update: {
|
|
35203
|
+
component_type?: string;
|
|
35204
|
+
created_at?: string;
|
|
35205
|
+
id?: string;
|
|
35206
|
+
manufacture_product_id?: string;
|
|
35207
|
+
product_group_id?: string | null;
|
|
35208
|
+
quantity?: number;
|
|
35209
|
+
trade_item_id?: string | null;
|
|
35210
|
+
unit?: string;
|
|
35211
|
+
};
|
|
35212
|
+
Relationships: [{
|
|
35213
|
+
foreignKeyName: "manufacture_product_components_manufacture_product_id_fkey";
|
|
35214
|
+
columns: ["manufacture_product_id"];
|
|
35215
|
+
isOneToOne: false;
|
|
35216
|
+
referencedRelation: "manufacture_product_possible_stock_view";
|
|
35217
|
+
referencedColumns: ["manufacture_product_id"];
|
|
35218
|
+
}, {
|
|
35219
|
+
foreignKeyName: "manufacture_product_components_manufacture_product_id_fkey";
|
|
35220
|
+
columns: ["manufacture_product_id"];
|
|
35221
|
+
isOneToOne: false;
|
|
35222
|
+
referencedRelation: "manufacture_products";
|
|
35223
|
+
referencedColumns: ["id"];
|
|
35224
|
+
}, {
|
|
35225
|
+
foreignKeyName: "manufacture_product_components_product_group_id_fkey";
|
|
35226
|
+
columns: ["product_group_id"];
|
|
35227
|
+
isOneToOne: false;
|
|
35228
|
+
referencedRelation: "product_groups";
|
|
35229
|
+
referencedColumns: ["id"];
|
|
35230
|
+
}];
|
|
35231
|
+
};
|
|
35232
|
+
manufacture_products: {
|
|
35233
|
+
Row: {
|
|
35234
|
+
created_at: string;
|
|
35235
|
+
description: string | null;
|
|
35236
|
+
id: string;
|
|
35237
|
+
is_active: boolean;
|
|
35238
|
+
name: string;
|
|
35239
|
+
produced_stock: number;
|
|
35240
|
+
product_code: string;
|
|
35241
|
+
tenant_id: string;
|
|
35242
|
+
updated_at: string;
|
|
35243
|
+
};
|
|
35244
|
+
Insert: {
|
|
35245
|
+
created_at?: string;
|
|
35246
|
+
description?: string | null;
|
|
35247
|
+
id?: string;
|
|
35248
|
+
is_active?: boolean;
|
|
35249
|
+
name: string;
|
|
35250
|
+
produced_stock?: number;
|
|
35251
|
+
product_code: string;
|
|
35252
|
+
tenant_id: string;
|
|
35253
|
+
updated_at?: string;
|
|
35254
|
+
};
|
|
35255
|
+
Update: {
|
|
35256
|
+
created_at?: string;
|
|
35257
|
+
description?: string | null;
|
|
35258
|
+
id?: string;
|
|
35259
|
+
is_active?: boolean;
|
|
35260
|
+
name?: string;
|
|
35261
|
+
produced_stock?: number;
|
|
35262
|
+
product_code?: string;
|
|
35263
|
+
tenant_id?: string;
|
|
35264
|
+
updated_at?: string;
|
|
35265
|
+
};
|
|
35266
|
+
Relationships: [];
|
|
35267
|
+
};
|
|
33024
35268
|
monteurs: {
|
|
33025
35269
|
Row: {
|
|
33026
35270
|
avatar_url: string | null;
|
|
@@ -33981,6 +36225,66 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
|
|
|
33981
36225
|
};
|
|
33982
36226
|
Relationships: [];
|
|
33983
36227
|
};
|
|
36228
|
+
product_group_items: {
|
|
36229
|
+
Row: {
|
|
36230
|
+
created_at: string;
|
|
36231
|
+
id: string;
|
|
36232
|
+
product_group_id: string;
|
|
36233
|
+
quantity: number;
|
|
36234
|
+
trade_item_id: string;
|
|
36235
|
+
};
|
|
36236
|
+
Insert: {
|
|
36237
|
+
created_at?: string;
|
|
36238
|
+
id?: string;
|
|
36239
|
+
product_group_id: string;
|
|
36240
|
+
quantity?: number;
|
|
36241
|
+
trade_item_id: string;
|
|
36242
|
+
};
|
|
36243
|
+
Update: {
|
|
36244
|
+
created_at?: string;
|
|
36245
|
+
id?: string;
|
|
36246
|
+
product_group_id?: string;
|
|
36247
|
+
quantity?: number;
|
|
36248
|
+
trade_item_id?: string;
|
|
36249
|
+
};
|
|
36250
|
+
Relationships: [{
|
|
36251
|
+
foreignKeyName: "product_group_items_product_group_id_fkey";
|
|
36252
|
+
columns: ["product_group_id"];
|
|
36253
|
+
isOneToOne: false;
|
|
36254
|
+
referencedRelation: "product_groups";
|
|
36255
|
+
referencedColumns: ["id"];
|
|
36256
|
+
}];
|
|
36257
|
+
};
|
|
36258
|
+
product_groups: {
|
|
36259
|
+
Row: {
|
|
36260
|
+
created_at: string;
|
|
36261
|
+
description: string | null;
|
|
36262
|
+
id: string;
|
|
36263
|
+
is_active: boolean;
|
|
36264
|
+
name: string;
|
|
36265
|
+
tenant_id: string;
|
|
36266
|
+
updated_at: string;
|
|
36267
|
+
};
|
|
36268
|
+
Insert: {
|
|
36269
|
+
created_at?: string;
|
|
36270
|
+
description?: string | null;
|
|
36271
|
+
id?: string;
|
|
36272
|
+
is_active?: boolean;
|
|
36273
|
+
name: string;
|
|
36274
|
+
tenant_id: string;
|
|
36275
|
+
updated_at?: string;
|
|
36276
|
+
};
|
|
36277
|
+
Update: {
|
|
36278
|
+
created_at?: string;
|
|
36279
|
+
description?: string | null;
|
|
36280
|
+
id?: string;
|
|
36281
|
+
is_active?: boolean;
|
|
36282
|
+
name?: string;
|
|
36283
|
+
tenant_id?: string;
|
|
36284
|
+
updated_at?: string;
|
|
36285
|
+
};
|
|
36286
|
+
Relationships: [];
|
|
36287
|
+
};
|
|
33984
36288
|
products: {
|
|
33985
36289
|
Row: {
|
|
33986
36290
|
barcode: string | null;
|
|
@@ -35120,7 +37424,13 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
|
|
|
35120
37424
|
connection_id: string | null;
|
|
35121
37425
|
created_at: string;
|
|
35122
37426
|
data: import("../integrations/supabase/types").Json;
|
|
37427
|
+
floriday_id: string | null;
|
|
37428
|
+
floriday_link_error: string | null;
|
|
37429
|
+
floriday_link_status: string;
|
|
35123
37430
|
id: string;
|
|
37431
|
+
last_floriday_sync_at: string | null;
|
|
37432
|
+
missing_required_fields: string[];
|
|
37433
|
+
source: string;
|
|
35124
37434
|
updated_at: string;
|
|
35125
37435
|
user_id: string;
|
|
35126
37436
|
};
|
|
@@ -35128,7 +37438,13 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
|
|
|
35128
37438
|
connection_id?: string | null;
|
|
35129
37439
|
created_at?: string;
|
|
35130
37440
|
data?: import("../integrations/supabase/types").Json;
|
|
37441
|
+
floriday_id?: string | null;
|
|
37442
|
+
floriday_link_error?: string | null;
|
|
37443
|
+
floriday_link_status?: string;
|
|
35131
37444
|
id?: string;
|
|
37445
|
+
last_floriday_sync_at?: string | null;
|
|
37446
|
+
missing_required_fields?: string[];
|
|
37447
|
+
source?: string;
|
|
35132
37448
|
updated_at?: string;
|
|
35133
37449
|
user_id: string;
|
|
35134
37450
|
};
|
|
@@ -35136,7 +37452,55 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
|
|
|
35136
37452
|
connection_id?: string | null;
|
|
35137
37453
|
created_at?: string;
|
|
35138
37454
|
data?: import("../integrations/supabase/types").Json;
|
|
37455
|
+
floriday_id?: string | null;
|
|
37456
|
+
floriday_link_error?: string | null;
|
|
37457
|
+
floriday_link_status?: string;
|
|
35139
37458
|
id?: string;
|
|
37459
|
+
last_floriday_sync_at?: string | null;
|
|
37460
|
+
missing_required_fields?: string[];
|
|
37461
|
+
source?: string;
|
|
37462
|
+
updated_at?: string;
|
|
37463
|
+
user_id?: string;
|
|
37464
|
+
};
|
|
37465
|
+
Relationships: [];
|
|
37466
|
+
};
|
|
37467
|
+
trade_item_stock: {
|
|
37468
|
+
Row: {
|
|
37469
|
+
connection_id: string;
|
|
37470
|
+
created_at: string;
|
|
37471
|
+
id: string;
|
|
37472
|
+
incoming_stock: number;
|
|
37473
|
+
minimum_stock: number;
|
|
37474
|
+
notes: string | null;
|
|
37475
|
+
physical_stock: number;
|
|
37476
|
+
reserved_stock: number;
|
|
37477
|
+
trade_item_key: string;
|
|
37478
|
+
updated_at: string;
|
|
37479
|
+
user_id: string;
|
|
37480
|
+
};
|
|
37481
|
+
Insert: {
|
|
37482
|
+
connection_id: string;
|
|
37483
|
+
created_at?: string;
|
|
37484
|
+
id?: string;
|
|
37485
|
+
incoming_stock?: number;
|
|
37486
|
+
minimum_stock?: number;
|
|
37487
|
+
notes?: string | null;
|
|
37488
|
+
physical_stock?: number;
|
|
37489
|
+
reserved_stock?: number;
|
|
37490
|
+
trade_item_key: string;
|
|
37491
|
+
updated_at?: string;
|
|
37492
|
+
user_id: string;
|
|
37493
|
+
};
|
|
37494
|
+
Update: {
|
|
37495
|
+
connection_id?: string;
|
|
37496
|
+
created_at?: string;
|
|
37497
|
+
id?: string;
|
|
37498
|
+
incoming_stock?: number;
|
|
37499
|
+
minimum_stock?: number;
|
|
37500
|
+
notes?: string | null;
|
|
37501
|
+
physical_stock?: number;
|
|
37502
|
+
reserved_stock?: number;
|
|
37503
|
+
trade_item_key?: string;
|
|
35140
37504
|
updated_at?: string;
|
|
35141
37505
|
user_id?: string;
|
|
35142
37506
|
};
|
|
@@ -35486,6 +37850,7 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
|
|
|
35486
37850
|
};
|
|
35487
37851
|
twinfield_invoice_sync_logs: {
|
|
35488
37852
|
Row: {
|
|
37853
|
+
action_type: string | null;
|
|
35489
37854
|
created_at: string;
|
|
35490
37855
|
details: import("../integrations/supabase/types").Json | null;
|
|
35491
37856
|
duration_ms: number | null;
|
|
@@ -35498,6 +37863,7 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
|
|
|
35498
37863
|
user_id: string;
|
|
35499
37864
|
};
|
|
35500
37865
|
Insert: {
|
|
37866
|
+
action_type?: string | null;
|
|
35501
37867
|
created_at?: string;
|
|
35502
37868
|
details?: import("../integrations/supabase/types").Json | null;
|
|
35503
37869
|
duration_ms?: number | null;
|
|
@@ -35510,6 +37876,7 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
|
|
|
35510
37876
|
user_id: string;
|
|
35511
37877
|
};
|
|
35512
37878
|
Update: {
|
|
37879
|
+
action_type?: string | null;
|
|
35513
37880
|
created_at?: string;
|
|
35514
37881
|
details?: import("../integrations/supabase/types").Json | null;
|
|
35515
37882
|
duration_ms?: number | null;
|
|
@@ -35745,6 +38112,57 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
|
|
|
35745
38112
|
referencedColumns: ["id"];
|
|
35746
38113
|
}];
|
|
35747
38114
|
};
|
|
38115
|
+
twinfield_request_metrics: {
|
|
38116
|
+
Row: {
|
|
38117
|
+
bucket_hour: string;
|
|
38118
|
+
connection_id: string;
|
|
38119
|
+
error_count: number;
|
|
38120
|
+
rate_limited_count: number;
|
|
38121
|
+
request_count: number;
|
|
38122
|
+
updated_at: string;
|
|
38123
|
+
};
|
|
38124
|
+
Insert: {
|
|
38125
|
+
bucket_hour: string;
|
|
38126
|
+
connection_id: string;
|
|
38127
|
+
error_count?: number;
|
|
38128
|
+
rate_limited_count?: number;
|
|
38129
|
+
request_count?: number;
|
|
38130
|
+
updated_at?: string;
|
|
38131
|
+
};
|
|
38132
|
+
Update: {
|
|
38133
|
+
bucket_hour?: string;
|
|
38134
|
+
connection_id?: string;
|
|
38135
|
+
error_count?: number;
|
|
38136
|
+
rate_limited_count?: number;
|
|
38137
|
+
request_count?: number;
|
|
38138
|
+
updated_at?: string;
|
|
38139
|
+
};
|
|
38140
|
+
Relationships: [];
|
|
38141
|
+
};
|
|
38142
|
+
twinfield_session_cache: {
|
|
38143
|
+
Row: {
|
|
38144
|
+
cluster: string;
|
|
38145
|
+
created_at: string;
|
|
38146
|
+
expires_at: string;
|
|
38147
|
+
session_id: string;
|
|
38148
|
+
user_id: string;
|
|
38149
|
+
};
|
|
38150
|
+
Insert: {
|
|
38151
|
+
cluster: string;
|
|
38152
|
+
created_at?: string;
|
|
38153
|
+
expires_at: string;
|
|
38154
|
+
session_id: string;
|
|
38155
|
+
user_id: string;
|
|
38156
|
+
};
|
|
38157
|
+
Update: {
|
|
38158
|
+
cluster?: string;
|
|
38159
|
+
created_at?: string;
|
|
38160
|
+
expires_at?: string;
|
|
38161
|
+
session_id?: string;
|
|
38162
|
+
user_id?: string;
|
|
38163
|
+
};
|
|
38164
|
+
Relationships: [];
|
|
38165
|
+
};
|
|
35748
38166
|
twinfield_settings: {
|
|
35749
38167
|
Row: {
|
|
35750
38168
|
active_environment: string;
|
|
@@ -36326,6 +38744,35 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
|
|
|
36326
38744
|
};
|
|
36327
38745
|
Relationships: [];
|
|
36328
38746
|
};
|
|
38747
|
+
manufacture_product_possible_stock_view: {
|
|
38748
|
+
Row: {
|
|
38749
|
+
component_count: number | null;
|
|
38750
|
+
manufacture_product_id: string | null;
|
|
38751
|
+
possible_stock: number | null;
|
|
38752
|
+
};
|
|
38753
|
+
Relationships: [];
|
|
38754
|
+
};
|
|
38755
|
+
product_group_stock_view: {
|
|
38756
|
+
Row: {
|
|
38757
|
+
item_count: number | null;
|
|
38758
|
+
product_group_id: string | null;
|
|
38759
|
+
total_stock: number | null;
|
|
38760
|
+
};
|
|
38761
|
+
Relationships: [{
|
|
38762
|
+
foreignKeyName: "product_group_items_product_group_id_fkey";
|
|
38763
|
+
columns: ["product_group_id"];
|
|
38764
|
+
isOneToOne: false;
|
|
38765
|
+
referencedRelation: "product_groups";
|
|
38766
|
+
referencedColumns: ["id"];
|
|
38767
|
+
}];
|
|
38768
|
+
};
|
|
38769
|
+
trade_item_stock_view: {
|
|
38770
|
+
Row: {
|
|
38771
|
+
stock: number | null;
|
|
38772
|
+
trade_item_id: string | null;
|
|
38773
|
+
};
|
|
38774
|
+
Relationships: [];
|
|
38775
|
+
};
|
|
36329
38776
|
v_external_customers_exact: {
|
|
36330
38777
|
Row: {
|
|
36331
38778
|
account_number: string | null;
|
|
@@ -36581,6 +39028,20 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
|
|
|
36581
39028
|
};
|
|
36582
39029
|
Returns: number;
|
|
36583
39030
|
};
|
|
39031
|
+
assign_cart_numbers: {
|
|
39032
|
+
Args: {
|
|
39033
|
+
p_carts: import("../integrations/supabase/types").Json;
|
|
39034
|
+
};
|
|
39035
|
+
Returns: {
|
|
39036
|
+
cart_index: number;
|
|
39037
|
+
cart_number: string;
|
|
39038
|
+
day_seq: number;
|
|
39039
|
+
order_id: string;
|
|
39040
|
+
order_source: string;
|
|
39041
|
+
pick_date: string;
|
|
39042
|
+
status: string;
|
|
39043
|
+
}[];
|
|
39044
|
+
};
|
|
36584
39045
|
assign_floriday_order_numbers: {
|
|
36585
39046
|
Args: {
|
|
36586
39047
|
p_ids: string[];
|
|
@@ -36600,10 +39061,37 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
|
|
|
36600
39061
|
Args: never;
|
|
36601
39062
|
Returns: number;
|
|
36602
39063
|
};
|
|
39064
|
+
control_get_todays_carts: {
|
|
39065
|
+
Args: never;
|
|
39066
|
+
Returns: {
|
|
39067
|
+
cart_index: number;
|
|
39068
|
+
cart_number: string;
|
|
39069
|
+
cart_number_id: string;
|
|
39070
|
+
order_id: string;
|
|
39071
|
+
order_source: string;
|
|
39072
|
+
pick_date: string;
|
|
39073
|
+
status: string;
|
|
39074
|
+
}[];
|
|
39075
|
+
};
|
|
39076
|
+
count_distinct_regulatory_products: {
|
|
39077
|
+
Args: never;
|
|
39078
|
+
Returns: number;
|
|
39079
|
+
};
|
|
36603
39080
|
current_monteur_id: {
|
|
36604
39081
|
Args: never;
|
|
36605
39082
|
Returns: string;
|
|
36606
39083
|
};
|
|
39084
|
+
dashboard_alert_counts: {
|
|
39085
|
+
Args: never;
|
|
39086
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
39087
|
+
};
|
|
39088
|
+
dashboard_alert_rows: {
|
|
39089
|
+
Args: {
|
|
39090
|
+
check_id: string;
|
|
39091
|
+
row_limit?: number;
|
|
39092
|
+
};
|
|
39093
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
39094
|
+
};
|
|
36607
39095
|
dashboard_list_public_schema: {
|
|
36608
39096
|
Args: never;
|
|
36609
39097
|
Returns: {
|
|
@@ -36684,6 +39172,13 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
|
|
|
36684
39172
|
};
|
|
36685
39173
|
Returns: boolean;
|
|
36686
39174
|
};
|
|
39175
|
+
format_cart_number: {
|
|
39176
|
+
Args: {
|
|
39177
|
+
p_pick_date: string;
|
|
39178
|
+
p_seq: number;
|
|
39179
|
+
};
|
|
39180
|
+
Returns: string;
|
|
39181
|
+
};
|
|
36687
39182
|
get_active_floriday_connection_public: {
|
|
36688
39183
|
Args: never;
|
|
36689
39184
|
Returns: {
|
|
@@ -36888,14 +39383,29 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
|
|
|
36888
39383
|
};
|
|
36889
39384
|
Returns: undefined;
|
|
36890
39385
|
};
|
|
39386
|
+
pickstation_set_cart_status: {
|
|
39387
|
+
Args: {
|
|
39388
|
+
p_cart_index: number;
|
|
39389
|
+
p_order_id: string;
|
|
39390
|
+
p_order_source: string;
|
|
39391
|
+
p_status: string;
|
|
39392
|
+
};
|
|
39393
|
+
Returns: undefined;
|
|
39394
|
+
};
|
|
36891
39395
|
refresh_floricode_derived_code_lists: {
|
|
36892
39396
|
Args: never;
|
|
36893
39397
|
Returns: {
|
|
36894
|
-
|
|
36895
|
-
|
|
36896
|
-
|
|
39398
|
+
environment: string;
|
|
39399
|
+
list_name: string;
|
|
39400
|
+
row_count: number;
|
|
36897
39401
|
}[];
|
|
36898
39402
|
};
|
|
39403
|
+
refresh_floricode_derived_for_product: {
|
|
39404
|
+
Args: {
|
|
39405
|
+
p_product_code: string;
|
|
39406
|
+
};
|
|
39407
|
+
Returns: number;
|
|
39408
|
+
};
|
|
36899
39409
|
reset_floriday_sync_cursor: {
|
|
36900
39410
|
Args: {
|
|
36901
39411
|
p_connection_id: string;
|
|
@@ -37222,6 +39732,7 @@ export declare const reorderCarriers: import("@tanstack/start-client-core").Requ
|
|
|
37222
39732
|
max_workdays_earlier_pick: number;
|
|
37223
39733
|
pick_days_before_transport: number;
|
|
37224
39734
|
pick_distribution_enabled: boolean;
|
|
39735
|
+
pick_weekdays: number[];
|
|
37225
39736
|
signup_mail_enabled: boolean;
|
|
37226
39737
|
signup_mail_lead_minutes: number;
|
|
37227
39738
|
signup_mail_purpose: string;
|
|
@@ -37235,6 +39746,7 @@ export declare const reorderCarriers: import("@tanstack/start-client-core").Requ
|
|
|
37235
39746
|
max_workdays_earlier_pick?: number;
|
|
37236
39747
|
pick_days_before_transport?: number;
|
|
37237
39748
|
pick_distribution_enabled?: boolean;
|
|
39749
|
+
pick_weekdays?: number[];
|
|
37238
39750
|
signup_mail_enabled?: boolean;
|
|
37239
39751
|
signup_mail_lead_minutes?: number;
|
|
37240
39752
|
signup_mail_purpose?: string;
|
|
@@ -37248,6 +39760,7 @@ export declare const reorderCarriers: import("@tanstack/start-client-core").Requ
|
|
|
37248
39760
|
max_workdays_earlier_pick?: number;
|
|
37249
39761
|
pick_days_before_transport?: number;
|
|
37250
39762
|
pick_distribution_enabled?: boolean;
|
|
39763
|
+
pick_weekdays?: number[];
|
|
37251
39764
|
signup_mail_enabled?: boolean;
|
|
37252
39765
|
signup_mail_lead_minutes?: number;
|
|
37253
39766
|
signup_mail_purpose?: string;
|
|
@@ -37659,6 +40172,48 @@ export declare const reorderCarriers: import("@tanstack/start-client-core").Requ
|
|
|
37659
40172
|
referencedColumns: ["id"];
|
|
37660
40173
|
}];
|
|
37661
40174
|
};
|
|
40175
|
+
carrier_signup_dispatch_runs: {
|
|
40176
|
+
Row: {
|
|
40177
|
+
detail: import("../integrations/supabase/types").Json | null;
|
|
40178
|
+
error: string | null;
|
|
40179
|
+
finished_at: string | null;
|
|
40180
|
+
groups: number;
|
|
40181
|
+
id: string;
|
|
40182
|
+
ok: boolean;
|
|
40183
|
+
reason: string | null;
|
|
40184
|
+
sent: number;
|
|
40185
|
+
skipped: import("../integrations/supabase/types").Json;
|
|
40186
|
+
started_at: string;
|
|
40187
|
+
unassigned: import("../integrations/supabase/types").Json;
|
|
40188
|
+
};
|
|
40189
|
+
Insert: {
|
|
40190
|
+
detail?: import("../integrations/supabase/types").Json | null;
|
|
40191
|
+
error?: string | null;
|
|
40192
|
+
finished_at?: string | null;
|
|
40193
|
+
groups?: number;
|
|
40194
|
+
id?: string;
|
|
40195
|
+
ok?: boolean;
|
|
40196
|
+
reason?: string | null;
|
|
40197
|
+
sent?: number;
|
|
40198
|
+
skipped?: import("../integrations/supabase/types").Json;
|
|
40199
|
+
started_at?: string;
|
|
40200
|
+
unassigned?: import("../integrations/supabase/types").Json;
|
|
40201
|
+
};
|
|
40202
|
+
Update: {
|
|
40203
|
+
detail?: import("../integrations/supabase/types").Json | null;
|
|
40204
|
+
error?: string | null;
|
|
40205
|
+
finished_at?: string | null;
|
|
40206
|
+
groups?: number;
|
|
40207
|
+
id?: string;
|
|
40208
|
+
ok?: boolean;
|
|
40209
|
+
reason?: string | null;
|
|
40210
|
+
sent?: number;
|
|
40211
|
+
skipped?: import("../integrations/supabase/types").Json;
|
|
40212
|
+
started_at?: string;
|
|
40213
|
+
unassigned?: import("../integrations/supabase/types").Json;
|
|
40214
|
+
};
|
|
40215
|
+
Relationships: [];
|
|
40216
|
+
};
|
|
37662
40217
|
carrier_signup_dispatches: {
|
|
37663
40218
|
Row: {
|
|
37664
40219
|
carrier_id: string;
|
|
@@ -37710,6 +40265,7 @@ export declare const reorderCarriers: import("@tanstack/start-client-core").Requ
|
|
|
37710
40265
|
contact_person: string | null;
|
|
37711
40266
|
created_at: string;
|
|
37712
40267
|
delivery_days: number | null;
|
|
40268
|
+
delivery_weekdays: number[];
|
|
37713
40269
|
email: string | null;
|
|
37714
40270
|
id: string;
|
|
37715
40271
|
is_default: boolean;
|
|
@@ -37717,6 +40273,7 @@ export declare const reorderCarriers: import("@tanstack/start-client-core").Requ
|
|
|
37717
40273
|
notes: string | null;
|
|
37718
40274
|
phone: string | null;
|
|
37719
40275
|
pickup_moments: import("../integrations/supabase/types").Json;
|
|
40276
|
+
pickup_weekdays: number[];
|
|
37720
40277
|
service_cities: string[];
|
|
37721
40278
|
service_countries: string[];
|
|
37722
40279
|
service_provinces: string[];
|
|
@@ -37732,6 +40289,7 @@ export declare const reorderCarriers: import("@tanstack/start-client-core").Requ
|
|
|
37732
40289
|
contact_person?: string | null;
|
|
37733
40290
|
created_at?: string;
|
|
37734
40291
|
delivery_days?: number | null;
|
|
40292
|
+
delivery_weekdays?: number[];
|
|
37735
40293
|
email?: string | null;
|
|
37736
40294
|
id?: string;
|
|
37737
40295
|
is_default?: boolean;
|
|
@@ -37739,6 +40297,7 @@ export declare const reorderCarriers: import("@tanstack/start-client-core").Requ
|
|
|
37739
40297
|
notes?: string | null;
|
|
37740
40298
|
phone?: string | null;
|
|
37741
40299
|
pickup_moments?: import("../integrations/supabase/types").Json;
|
|
40300
|
+
pickup_weekdays?: number[];
|
|
37742
40301
|
service_cities?: string[];
|
|
37743
40302
|
service_countries?: string[];
|
|
37744
40303
|
service_provinces?: string[];
|
|
@@ -37754,6 +40313,7 @@ export declare const reorderCarriers: import("@tanstack/start-client-core").Requ
|
|
|
37754
40313
|
contact_person?: string | null;
|
|
37755
40314
|
created_at?: string;
|
|
37756
40315
|
delivery_days?: number | null;
|
|
40316
|
+
delivery_weekdays?: number[];
|
|
37757
40317
|
email?: string | null;
|
|
37758
40318
|
id?: string;
|
|
37759
40319
|
is_default?: boolean;
|
|
@@ -37761,6 +40321,7 @@ export declare const reorderCarriers: import("@tanstack/start-client-core").Requ
|
|
|
37761
40321
|
notes?: string | null;
|
|
37762
40322
|
phone?: string | null;
|
|
37763
40323
|
pickup_moments?: import("../integrations/supabase/types").Json;
|
|
40324
|
+
pickup_weekdays?: number[];
|
|
37764
40325
|
service_cities?: string[];
|
|
37765
40326
|
service_countries?: string[];
|
|
37766
40327
|
service_provinces?: string[];
|
|
@@ -37773,6 +40334,177 @@ export declare const reorderCarriers: import("@tanstack/start-client-core").Requ
|
|
|
37773
40334
|
};
|
|
37774
40335
|
Relationships: [];
|
|
37775
40336
|
};
|
|
40337
|
+
cart_control_draft: {
|
|
40338
|
+
Row: {
|
|
40339
|
+
cart_states: import("../integrations/supabase/types").Json;
|
|
40340
|
+
checked_keys: import("../integrations/supabase/types").Json;
|
|
40341
|
+
draft_date: string;
|
|
40342
|
+
form_state: import("../integrations/supabase/types").Json;
|
|
40343
|
+
notes: string;
|
|
40344
|
+
updated_at: string;
|
|
40345
|
+
user_id: string;
|
|
40346
|
+
};
|
|
40347
|
+
Insert: {
|
|
40348
|
+
cart_states?: import("../integrations/supabase/types").Json;
|
|
40349
|
+
checked_keys?: import("../integrations/supabase/types").Json;
|
|
40350
|
+
draft_date: string;
|
|
40351
|
+
form_state?: import("../integrations/supabase/types").Json;
|
|
40352
|
+
notes?: string;
|
|
40353
|
+
updated_at?: string;
|
|
40354
|
+
user_id: string;
|
|
40355
|
+
};
|
|
40356
|
+
Update: {
|
|
40357
|
+
cart_states?: import("../integrations/supabase/types").Json;
|
|
40358
|
+
checked_keys?: import("../integrations/supabase/types").Json;
|
|
40359
|
+
draft_date?: string;
|
|
40360
|
+
form_state?: import("../integrations/supabase/types").Json;
|
|
40361
|
+
notes?: string;
|
|
40362
|
+
updated_at?: string;
|
|
40363
|
+
user_id?: string;
|
|
40364
|
+
};
|
|
40365
|
+
Relationships: [];
|
|
40366
|
+
};
|
|
40367
|
+
cart_control_items: {
|
|
40368
|
+
Row: {
|
|
40369
|
+
action: string;
|
|
40370
|
+
block_reason: string | null;
|
|
40371
|
+
carrier_name: string | null;
|
|
40372
|
+
cart_index: number;
|
|
40373
|
+
cart_number_id: string | null;
|
|
40374
|
+
cart_number_label: string | null;
|
|
40375
|
+
created_at: string;
|
|
40376
|
+
customer_name: string | null;
|
|
40377
|
+
delivery_date: string | null;
|
|
40378
|
+
id: string;
|
|
40379
|
+
new_pick_date: string | null;
|
|
40380
|
+
order_id: string;
|
|
40381
|
+
order_number: string | null;
|
|
40382
|
+
order_source: string;
|
|
40383
|
+
pickup_date: string | null;
|
|
40384
|
+
session_id: string;
|
|
40385
|
+
};
|
|
40386
|
+
Insert: {
|
|
40387
|
+
action: string;
|
|
40388
|
+
block_reason?: string | null;
|
|
40389
|
+
carrier_name?: string | null;
|
|
40390
|
+
cart_index: number;
|
|
40391
|
+
cart_number_id?: string | null;
|
|
40392
|
+
cart_number_label?: string | null;
|
|
40393
|
+
created_at?: string;
|
|
40394
|
+
customer_name?: string | null;
|
|
40395
|
+
delivery_date?: string | null;
|
|
40396
|
+
id?: string;
|
|
40397
|
+
new_pick_date?: string | null;
|
|
40398
|
+
order_id: string;
|
|
40399
|
+
order_number?: string | null;
|
|
40400
|
+
order_source: string;
|
|
40401
|
+
pickup_date?: string | null;
|
|
40402
|
+
session_id: string;
|
|
40403
|
+
};
|
|
40404
|
+
Update: {
|
|
40405
|
+
action?: string;
|
|
40406
|
+
block_reason?: string | null;
|
|
40407
|
+
carrier_name?: string | null;
|
|
40408
|
+
cart_index?: number;
|
|
40409
|
+
cart_number_id?: string | null;
|
|
40410
|
+
cart_number_label?: string | null;
|
|
40411
|
+
created_at?: string;
|
|
40412
|
+
customer_name?: string | null;
|
|
40413
|
+
delivery_date?: string | null;
|
|
40414
|
+
id?: string;
|
|
40415
|
+
new_pick_date?: string | null;
|
|
40416
|
+
order_id?: string;
|
|
40417
|
+
order_number?: string | null;
|
|
40418
|
+
order_source?: string;
|
|
40419
|
+
pickup_date?: string | null;
|
|
40420
|
+
session_id?: string;
|
|
40421
|
+
};
|
|
40422
|
+
Relationships: [{
|
|
40423
|
+
foreignKeyName: "cart_control_items_session_id_fkey";
|
|
40424
|
+
columns: ["session_id"];
|
|
40425
|
+
isOneToOne: false;
|
|
40426
|
+
referencedRelation: "cart_control_sessions";
|
|
40427
|
+
referencedColumns: ["id"];
|
|
40428
|
+
}];
|
|
40429
|
+
};
|
|
40430
|
+
cart_control_sessions: {
|
|
40431
|
+
Row: {
|
|
40432
|
+
blocked_count: number;
|
|
40433
|
+
checked_count: number;
|
|
40434
|
+
control_date: string;
|
|
40435
|
+
created_at: string;
|
|
40436
|
+
id: string;
|
|
40437
|
+
notes: string | null;
|
|
40438
|
+
performed_at: string;
|
|
40439
|
+
rescheduled_count: number;
|
|
40440
|
+
total_carts: number;
|
|
40441
|
+
updated_at: string;
|
|
40442
|
+
user_id: string;
|
|
40443
|
+
};
|
|
40444
|
+
Insert: {
|
|
40445
|
+
blocked_count?: number;
|
|
40446
|
+
checked_count?: number;
|
|
40447
|
+
control_date?: string;
|
|
40448
|
+
created_at?: string;
|
|
40449
|
+
id?: string;
|
|
40450
|
+
notes?: string | null;
|
|
40451
|
+
performed_at?: string;
|
|
40452
|
+
rescheduled_count?: number;
|
|
40453
|
+
total_carts?: number;
|
|
40454
|
+
updated_at?: string;
|
|
40455
|
+
user_id: string;
|
|
40456
|
+
};
|
|
40457
|
+
Update: {
|
|
40458
|
+
blocked_count?: number;
|
|
40459
|
+
checked_count?: number;
|
|
40460
|
+
control_date?: string;
|
|
40461
|
+
created_at?: string;
|
|
40462
|
+
id?: string;
|
|
40463
|
+
notes?: string | null;
|
|
40464
|
+
performed_at?: string;
|
|
40465
|
+
rescheduled_count?: number;
|
|
40466
|
+
total_carts?: number;
|
|
40467
|
+
updated_at?: string;
|
|
40468
|
+
user_id?: string;
|
|
40469
|
+
};
|
|
40470
|
+
Relationships: [];
|
|
40471
|
+
};
|
|
40472
|
+
cart_numbers: {
|
|
40473
|
+
Row: {
|
|
40474
|
+
assigned_at: string;
|
|
40475
|
+
cart_index: number;
|
|
40476
|
+
cart_number: string;
|
|
40477
|
+
day_seq: number;
|
|
40478
|
+
id: string;
|
|
40479
|
+
order_id: string;
|
|
40480
|
+
order_source: string;
|
|
40481
|
+
pick_date: string;
|
|
40482
|
+
status: string;
|
|
40483
|
+
};
|
|
40484
|
+
Insert: {
|
|
40485
|
+
assigned_at?: string;
|
|
40486
|
+
cart_index: number;
|
|
40487
|
+
cart_number: string;
|
|
40488
|
+
day_seq: number;
|
|
40489
|
+
id?: string;
|
|
40490
|
+
order_id: string;
|
|
40491
|
+
order_source: string;
|
|
40492
|
+
pick_date: string;
|
|
40493
|
+
status?: string;
|
|
40494
|
+
};
|
|
40495
|
+
Update: {
|
|
40496
|
+
assigned_at?: string;
|
|
40497
|
+
cart_index?: number;
|
|
40498
|
+
cart_number?: string;
|
|
40499
|
+
day_seq?: number;
|
|
40500
|
+
id?: string;
|
|
40501
|
+
order_id?: string;
|
|
40502
|
+
order_source?: string;
|
|
40503
|
+
pick_date?: string;
|
|
40504
|
+
status?: string;
|
|
40505
|
+
};
|
|
40506
|
+
Relationships: [];
|
|
40507
|
+
};
|
|
37776
40508
|
cart_pick_overrides: {
|
|
37777
40509
|
Row: {
|
|
37778
40510
|
cart_index: number;
|
|
@@ -38445,6 +41177,54 @@ export declare const reorderCarriers: import("@tanstack/start-client-core").Requ
|
|
|
38445
41177
|
referencedColumns: ["id"];
|
|
38446
41178
|
}];
|
|
38447
41179
|
};
|
|
41180
|
+
dashboard_critical_alerts: {
|
|
41181
|
+
Row: {
|
|
41182
|
+
alert_key: string;
|
|
41183
|
+
alert_type: string;
|
|
41184
|
+
created_at: string;
|
|
41185
|
+
description: string | null;
|
|
41186
|
+
id: string;
|
|
41187
|
+
metadata: import("../integrations/supabase/types").Json | null;
|
|
41188
|
+
priority: string;
|
|
41189
|
+
raised_at: string;
|
|
41190
|
+
related_cart_ids: string[] | null;
|
|
41191
|
+
resolved_at: string | null;
|
|
41192
|
+
title: string;
|
|
41193
|
+
updated_at: string;
|
|
41194
|
+
user_id: string;
|
|
41195
|
+
};
|
|
41196
|
+
Insert: {
|
|
41197
|
+
alert_key: string;
|
|
41198
|
+
alert_type: string;
|
|
41199
|
+
created_at?: string;
|
|
41200
|
+
description?: string | null;
|
|
41201
|
+
id?: string;
|
|
41202
|
+
metadata?: import("../integrations/supabase/types").Json | null;
|
|
41203
|
+
priority?: string;
|
|
41204
|
+
raised_at?: string;
|
|
41205
|
+
related_cart_ids?: string[] | null;
|
|
41206
|
+
resolved_at?: string | null;
|
|
41207
|
+
title: string;
|
|
41208
|
+
updated_at?: string;
|
|
41209
|
+
user_id: string;
|
|
41210
|
+
};
|
|
41211
|
+
Update: {
|
|
41212
|
+
alert_key?: string;
|
|
41213
|
+
alert_type?: string;
|
|
41214
|
+
created_at?: string;
|
|
41215
|
+
description?: string | null;
|
|
41216
|
+
id?: string;
|
|
41217
|
+
metadata?: import("../integrations/supabase/types").Json | null;
|
|
41218
|
+
priority?: string;
|
|
41219
|
+
raised_at?: string;
|
|
41220
|
+
related_cart_ids?: string[] | null;
|
|
41221
|
+
resolved_at?: string | null;
|
|
41222
|
+
title?: string;
|
|
41223
|
+
updated_at?: string;
|
|
41224
|
+
user_id?: string;
|
|
41225
|
+
};
|
|
41226
|
+
Relationships: [];
|
|
41227
|
+
};
|
|
38448
41228
|
dashboard_daily_reports: {
|
|
38449
41229
|
Row: {
|
|
38450
41230
|
created_at: string;
|
|
@@ -39947,6 +42727,7 @@ export declare const reorderCarriers: import("@tanstack/start-client-core").Requ
|
|
|
39947
42727
|
};
|
|
39948
42728
|
floricode_sync_state: {
|
|
39949
42729
|
Row: {
|
|
42730
|
+
cursor_skip: number;
|
|
39950
42731
|
error_message: string | null;
|
|
39951
42732
|
last_change_date_time: string | null;
|
|
39952
42733
|
last_sequence_number: number;
|
|
@@ -39956,6 +42737,7 @@ export declare const reorderCarriers: import("@tanstack/start-client-core").Requ
|
|
|
39956
42737
|
updated_at: string;
|
|
39957
42738
|
};
|
|
39958
42739
|
Insert: {
|
|
42740
|
+
cursor_skip?: number;
|
|
39959
42741
|
error_message?: string | null;
|
|
39960
42742
|
last_change_date_time?: string | null;
|
|
39961
42743
|
last_sequence_number?: number;
|
|
@@ -39965,6 +42747,7 @@ export declare const reorderCarriers: import("@tanstack/start-client-core").Requ
|
|
|
39965
42747
|
updated_at?: string;
|
|
39966
42748
|
};
|
|
39967
42749
|
Update: {
|
|
42750
|
+
cursor_skip?: number;
|
|
39968
42751
|
error_message?: string | null;
|
|
39969
42752
|
last_change_date_time?: string | null;
|
|
39970
42753
|
last_sequence_number?: number;
|
|
@@ -42312,6 +45095,93 @@ export declare const reorderCarriers: import("@tanstack/start-client-core").Requ
|
|
|
42312
45095
|
};
|
|
42313
45096
|
Relationships: [];
|
|
42314
45097
|
};
|
|
45098
|
+
manufacture_product_components: {
|
|
45099
|
+
Row: {
|
|
45100
|
+
component_type: string;
|
|
45101
|
+
created_at: string;
|
|
45102
|
+
id: string;
|
|
45103
|
+
manufacture_product_id: string;
|
|
45104
|
+
product_group_id: string | null;
|
|
45105
|
+
quantity: number;
|
|
45106
|
+
trade_item_id: string | null;
|
|
45107
|
+
unit: string;
|
|
45108
|
+
};
|
|
45109
|
+
Insert: {
|
|
45110
|
+
component_type: string;
|
|
45111
|
+
created_at?: string;
|
|
45112
|
+
id?: string;
|
|
45113
|
+
manufacture_product_id: string;
|
|
45114
|
+
product_group_id?: string | null;
|
|
45115
|
+
quantity?: number;
|
|
45116
|
+
trade_item_id?: string | null;
|
|
45117
|
+
unit?: string;
|
|
45118
|
+
};
|
|
45119
|
+
Update: {
|
|
45120
|
+
component_type?: string;
|
|
45121
|
+
created_at?: string;
|
|
45122
|
+
id?: string;
|
|
45123
|
+
manufacture_product_id?: string;
|
|
45124
|
+
product_group_id?: string | null;
|
|
45125
|
+
quantity?: number;
|
|
45126
|
+
trade_item_id?: string | null;
|
|
45127
|
+
unit?: string;
|
|
45128
|
+
};
|
|
45129
|
+
Relationships: [{
|
|
45130
|
+
foreignKeyName: "manufacture_product_components_manufacture_product_id_fkey";
|
|
45131
|
+
columns: ["manufacture_product_id"];
|
|
45132
|
+
isOneToOne: false;
|
|
45133
|
+
referencedRelation: "manufacture_product_possible_stock_view";
|
|
45134
|
+
referencedColumns: ["manufacture_product_id"];
|
|
45135
|
+
}, {
|
|
45136
|
+
foreignKeyName: "manufacture_product_components_manufacture_product_id_fkey";
|
|
45137
|
+
columns: ["manufacture_product_id"];
|
|
45138
|
+
isOneToOne: false;
|
|
45139
|
+
referencedRelation: "manufacture_products";
|
|
45140
|
+
referencedColumns: ["id"];
|
|
45141
|
+
}, {
|
|
45142
|
+
foreignKeyName: "manufacture_product_components_product_group_id_fkey";
|
|
45143
|
+
columns: ["product_group_id"];
|
|
45144
|
+
isOneToOne: false;
|
|
45145
|
+
referencedRelation: "product_groups";
|
|
45146
|
+
referencedColumns: ["id"];
|
|
45147
|
+
}];
|
|
45148
|
+
};
|
|
45149
|
+
manufacture_products: {
|
|
45150
|
+
Row: {
|
|
45151
|
+
created_at: string;
|
|
45152
|
+
description: string | null;
|
|
45153
|
+
id: string;
|
|
45154
|
+
is_active: boolean;
|
|
45155
|
+
name: string;
|
|
45156
|
+
produced_stock: number;
|
|
45157
|
+
product_code: string;
|
|
45158
|
+
tenant_id: string;
|
|
45159
|
+
updated_at: string;
|
|
45160
|
+
};
|
|
45161
|
+
Insert: {
|
|
45162
|
+
created_at?: string;
|
|
45163
|
+
description?: string | null;
|
|
45164
|
+
id?: string;
|
|
45165
|
+
is_active?: boolean;
|
|
45166
|
+
name: string;
|
|
45167
|
+
produced_stock?: number;
|
|
45168
|
+
product_code: string;
|
|
45169
|
+
tenant_id: string;
|
|
45170
|
+
updated_at?: string;
|
|
45171
|
+
};
|
|
45172
|
+
Update: {
|
|
45173
|
+
created_at?: string;
|
|
45174
|
+
description?: string | null;
|
|
45175
|
+
id?: string;
|
|
45176
|
+
is_active?: boolean;
|
|
45177
|
+
name?: string;
|
|
45178
|
+
produced_stock?: number;
|
|
45179
|
+
product_code?: string;
|
|
45180
|
+
tenant_id?: string;
|
|
45181
|
+
updated_at?: string;
|
|
45182
|
+
};
|
|
45183
|
+
Relationships: [];
|
|
45184
|
+
};
|
|
42315
45185
|
monteurs: {
|
|
42316
45186
|
Row: {
|
|
42317
45187
|
avatar_url: string | null;
|
|
@@ -43272,6 +46142,66 @@ export declare const reorderCarriers: import("@tanstack/start-client-core").Requ
|
|
|
43272
46142
|
};
|
|
43273
46143
|
Relationships: [];
|
|
43274
46144
|
};
|
|
46145
|
+
product_group_items: {
|
|
46146
|
+
Row: {
|
|
46147
|
+
created_at: string;
|
|
46148
|
+
id: string;
|
|
46149
|
+
product_group_id: string;
|
|
46150
|
+
quantity: number;
|
|
46151
|
+
trade_item_id: string;
|
|
46152
|
+
};
|
|
46153
|
+
Insert: {
|
|
46154
|
+
created_at?: string;
|
|
46155
|
+
id?: string;
|
|
46156
|
+
product_group_id: string;
|
|
46157
|
+
quantity?: number;
|
|
46158
|
+
trade_item_id: string;
|
|
46159
|
+
};
|
|
46160
|
+
Update: {
|
|
46161
|
+
created_at?: string;
|
|
46162
|
+
id?: string;
|
|
46163
|
+
product_group_id?: string;
|
|
46164
|
+
quantity?: number;
|
|
46165
|
+
trade_item_id?: string;
|
|
46166
|
+
};
|
|
46167
|
+
Relationships: [{
|
|
46168
|
+
foreignKeyName: "product_group_items_product_group_id_fkey";
|
|
46169
|
+
columns: ["product_group_id"];
|
|
46170
|
+
isOneToOne: false;
|
|
46171
|
+
referencedRelation: "product_groups";
|
|
46172
|
+
referencedColumns: ["id"];
|
|
46173
|
+
}];
|
|
46174
|
+
};
|
|
46175
|
+
product_groups: {
|
|
46176
|
+
Row: {
|
|
46177
|
+
created_at: string;
|
|
46178
|
+
description: string | null;
|
|
46179
|
+
id: string;
|
|
46180
|
+
is_active: boolean;
|
|
46181
|
+
name: string;
|
|
46182
|
+
tenant_id: string;
|
|
46183
|
+
updated_at: string;
|
|
46184
|
+
};
|
|
46185
|
+
Insert: {
|
|
46186
|
+
created_at?: string;
|
|
46187
|
+
description?: string | null;
|
|
46188
|
+
id?: string;
|
|
46189
|
+
is_active?: boolean;
|
|
46190
|
+
name: string;
|
|
46191
|
+
tenant_id: string;
|
|
46192
|
+
updated_at?: string;
|
|
46193
|
+
};
|
|
46194
|
+
Update: {
|
|
46195
|
+
created_at?: string;
|
|
46196
|
+
description?: string | null;
|
|
46197
|
+
id?: string;
|
|
46198
|
+
is_active?: boolean;
|
|
46199
|
+
name?: string;
|
|
46200
|
+
tenant_id?: string;
|
|
46201
|
+
updated_at?: string;
|
|
46202
|
+
};
|
|
46203
|
+
Relationships: [];
|
|
46204
|
+
};
|
|
43275
46205
|
products: {
|
|
43276
46206
|
Row: {
|
|
43277
46207
|
barcode: string | null;
|
|
@@ -44411,7 +47341,13 @@ export declare const reorderCarriers: import("@tanstack/start-client-core").Requ
|
|
|
44411
47341
|
connection_id: string | null;
|
|
44412
47342
|
created_at: string;
|
|
44413
47343
|
data: import("../integrations/supabase/types").Json;
|
|
47344
|
+
floriday_id: string | null;
|
|
47345
|
+
floriday_link_error: string | null;
|
|
47346
|
+
floriday_link_status: string;
|
|
44414
47347
|
id: string;
|
|
47348
|
+
last_floriday_sync_at: string | null;
|
|
47349
|
+
missing_required_fields: string[];
|
|
47350
|
+
source: string;
|
|
44415
47351
|
updated_at: string;
|
|
44416
47352
|
user_id: string;
|
|
44417
47353
|
};
|
|
@@ -44419,7 +47355,13 @@ export declare const reorderCarriers: import("@tanstack/start-client-core").Requ
|
|
|
44419
47355
|
connection_id?: string | null;
|
|
44420
47356
|
created_at?: string;
|
|
44421
47357
|
data?: import("../integrations/supabase/types").Json;
|
|
47358
|
+
floriday_id?: string | null;
|
|
47359
|
+
floriday_link_error?: string | null;
|
|
47360
|
+
floriday_link_status?: string;
|
|
44422
47361
|
id?: string;
|
|
47362
|
+
last_floriday_sync_at?: string | null;
|
|
47363
|
+
missing_required_fields?: string[];
|
|
47364
|
+
source?: string;
|
|
44423
47365
|
updated_at?: string;
|
|
44424
47366
|
user_id: string;
|
|
44425
47367
|
};
|
|
@@ -44427,7 +47369,55 @@ export declare const reorderCarriers: import("@tanstack/start-client-core").Requ
|
|
|
44427
47369
|
connection_id?: string | null;
|
|
44428
47370
|
created_at?: string;
|
|
44429
47371
|
data?: import("../integrations/supabase/types").Json;
|
|
47372
|
+
floriday_id?: string | null;
|
|
47373
|
+
floriday_link_error?: string | null;
|
|
47374
|
+
floriday_link_status?: string;
|
|
47375
|
+
id?: string;
|
|
47376
|
+
last_floriday_sync_at?: string | null;
|
|
47377
|
+
missing_required_fields?: string[];
|
|
47378
|
+
source?: string;
|
|
47379
|
+
updated_at?: string;
|
|
47380
|
+
user_id?: string;
|
|
47381
|
+
};
|
|
47382
|
+
Relationships: [];
|
|
47383
|
+
};
|
|
47384
|
+
trade_item_stock: {
|
|
47385
|
+
Row: {
|
|
47386
|
+
connection_id: string;
|
|
47387
|
+
created_at: string;
|
|
47388
|
+
id: string;
|
|
47389
|
+
incoming_stock: number;
|
|
47390
|
+
minimum_stock: number;
|
|
47391
|
+
notes: string | null;
|
|
47392
|
+
physical_stock: number;
|
|
47393
|
+
reserved_stock: number;
|
|
47394
|
+
trade_item_key: string;
|
|
47395
|
+
updated_at: string;
|
|
47396
|
+
user_id: string;
|
|
47397
|
+
};
|
|
47398
|
+
Insert: {
|
|
47399
|
+
connection_id: string;
|
|
47400
|
+
created_at?: string;
|
|
47401
|
+
id?: string;
|
|
47402
|
+
incoming_stock?: number;
|
|
47403
|
+
minimum_stock?: number;
|
|
47404
|
+
notes?: string | null;
|
|
47405
|
+
physical_stock?: number;
|
|
47406
|
+
reserved_stock?: number;
|
|
47407
|
+
trade_item_key: string;
|
|
47408
|
+
updated_at?: string;
|
|
47409
|
+
user_id: string;
|
|
47410
|
+
};
|
|
47411
|
+
Update: {
|
|
47412
|
+
connection_id?: string;
|
|
47413
|
+
created_at?: string;
|
|
44430
47414
|
id?: string;
|
|
47415
|
+
incoming_stock?: number;
|
|
47416
|
+
minimum_stock?: number;
|
|
47417
|
+
notes?: string | null;
|
|
47418
|
+
physical_stock?: number;
|
|
47419
|
+
reserved_stock?: number;
|
|
47420
|
+
trade_item_key?: string;
|
|
44431
47421
|
updated_at?: string;
|
|
44432
47422
|
user_id?: string;
|
|
44433
47423
|
};
|
|
@@ -44777,6 +47767,7 @@ export declare const reorderCarriers: import("@tanstack/start-client-core").Requ
|
|
|
44777
47767
|
};
|
|
44778
47768
|
twinfield_invoice_sync_logs: {
|
|
44779
47769
|
Row: {
|
|
47770
|
+
action_type: string | null;
|
|
44780
47771
|
created_at: string;
|
|
44781
47772
|
details: import("../integrations/supabase/types").Json | null;
|
|
44782
47773
|
duration_ms: number | null;
|
|
@@ -44789,6 +47780,7 @@ export declare const reorderCarriers: import("@tanstack/start-client-core").Requ
|
|
|
44789
47780
|
user_id: string;
|
|
44790
47781
|
};
|
|
44791
47782
|
Insert: {
|
|
47783
|
+
action_type?: string | null;
|
|
44792
47784
|
created_at?: string;
|
|
44793
47785
|
details?: import("../integrations/supabase/types").Json | null;
|
|
44794
47786
|
duration_ms?: number | null;
|
|
@@ -44801,6 +47793,7 @@ export declare const reorderCarriers: import("@tanstack/start-client-core").Requ
|
|
|
44801
47793
|
user_id: string;
|
|
44802
47794
|
};
|
|
44803
47795
|
Update: {
|
|
47796
|
+
action_type?: string | null;
|
|
44804
47797
|
created_at?: string;
|
|
44805
47798
|
details?: import("../integrations/supabase/types").Json | null;
|
|
44806
47799
|
duration_ms?: number | null;
|
|
@@ -45036,6 +48029,57 @@ export declare const reorderCarriers: import("@tanstack/start-client-core").Requ
|
|
|
45036
48029
|
referencedColumns: ["id"];
|
|
45037
48030
|
}];
|
|
45038
48031
|
};
|
|
48032
|
+
twinfield_request_metrics: {
|
|
48033
|
+
Row: {
|
|
48034
|
+
bucket_hour: string;
|
|
48035
|
+
connection_id: string;
|
|
48036
|
+
error_count: number;
|
|
48037
|
+
rate_limited_count: number;
|
|
48038
|
+
request_count: number;
|
|
48039
|
+
updated_at: string;
|
|
48040
|
+
};
|
|
48041
|
+
Insert: {
|
|
48042
|
+
bucket_hour: string;
|
|
48043
|
+
connection_id: string;
|
|
48044
|
+
error_count?: number;
|
|
48045
|
+
rate_limited_count?: number;
|
|
48046
|
+
request_count?: number;
|
|
48047
|
+
updated_at?: string;
|
|
48048
|
+
};
|
|
48049
|
+
Update: {
|
|
48050
|
+
bucket_hour?: string;
|
|
48051
|
+
connection_id?: string;
|
|
48052
|
+
error_count?: number;
|
|
48053
|
+
rate_limited_count?: number;
|
|
48054
|
+
request_count?: number;
|
|
48055
|
+
updated_at?: string;
|
|
48056
|
+
};
|
|
48057
|
+
Relationships: [];
|
|
48058
|
+
};
|
|
48059
|
+
twinfield_session_cache: {
|
|
48060
|
+
Row: {
|
|
48061
|
+
cluster: string;
|
|
48062
|
+
created_at: string;
|
|
48063
|
+
expires_at: string;
|
|
48064
|
+
session_id: string;
|
|
48065
|
+
user_id: string;
|
|
48066
|
+
};
|
|
48067
|
+
Insert: {
|
|
48068
|
+
cluster: string;
|
|
48069
|
+
created_at?: string;
|
|
48070
|
+
expires_at: string;
|
|
48071
|
+
session_id: string;
|
|
48072
|
+
user_id: string;
|
|
48073
|
+
};
|
|
48074
|
+
Update: {
|
|
48075
|
+
cluster?: string;
|
|
48076
|
+
created_at?: string;
|
|
48077
|
+
expires_at?: string;
|
|
48078
|
+
session_id?: string;
|
|
48079
|
+
user_id?: string;
|
|
48080
|
+
};
|
|
48081
|
+
Relationships: [];
|
|
48082
|
+
};
|
|
45039
48083
|
twinfield_settings: {
|
|
45040
48084
|
Row: {
|
|
45041
48085
|
active_environment: string;
|
|
@@ -45617,6 +48661,35 @@ export declare const reorderCarriers: import("@tanstack/start-client-core").Requ
|
|
|
45617
48661
|
};
|
|
45618
48662
|
Relationships: [];
|
|
45619
48663
|
};
|
|
48664
|
+
manufacture_product_possible_stock_view: {
|
|
48665
|
+
Row: {
|
|
48666
|
+
component_count: number | null;
|
|
48667
|
+
manufacture_product_id: string | null;
|
|
48668
|
+
possible_stock: number | null;
|
|
48669
|
+
};
|
|
48670
|
+
Relationships: [];
|
|
48671
|
+
};
|
|
48672
|
+
product_group_stock_view: {
|
|
48673
|
+
Row: {
|
|
48674
|
+
item_count: number | null;
|
|
48675
|
+
product_group_id: string | null;
|
|
48676
|
+
total_stock: number | null;
|
|
48677
|
+
};
|
|
48678
|
+
Relationships: [{
|
|
48679
|
+
foreignKeyName: "product_group_items_product_group_id_fkey";
|
|
48680
|
+
columns: ["product_group_id"];
|
|
48681
|
+
isOneToOne: false;
|
|
48682
|
+
referencedRelation: "product_groups";
|
|
48683
|
+
referencedColumns: ["id"];
|
|
48684
|
+
}];
|
|
48685
|
+
};
|
|
48686
|
+
trade_item_stock_view: {
|
|
48687
|
+
Row: {
|
|
48688
|
+
stock: number | null;
|
|
48689
|
+
trade_item_id: string | null;
|
|
48690
|
+
};
|
|
48691
|
+
Relationships: [];
|
|
48692
|
+
};
|
|
45620
48693
|
v_external_customers_exact: {
|
|
45621
48694
|
Row: {
|
|
45622
48695
|
account_number: string | null;
|
|
@@ -45872,6 +48945,20 @@ export declare const reorderCarriers: import("@tanstack/start-client-core").Requ
|
|
|
45872
48945
|
};
|
|
45873
48946
|
Returns: number;
|
|
45874
48947
|
};
|
|
48948
|
+
assign_cart_numbers: {
|
|
48949
|
+
Args: {
|
|
48950
|
+
p_carts: import("../integrations/supabase/types").Json;
|
|
48951
|
+
};
|
|
48952
|
+
Returns: {
|
|
48953
|
+
cart_index: number;
|
|
48954
|
+
cart_number: string;
|
|
48955
|
+
day_seq: number;
|
|
48956
|
+
order_id: string;
|
|
48957
|
+
order_source: string;
|
|
48958
|
+
pick_date: string;
|
|
48959
|
+
status: string;
|
|
48960
|
+
}[];
|
|
48961
|
+
};
|
|
45875
48962
|
assign_floriday_order_numbers: {
|
|
45876
48963
|
Args: {
|
|
45877
48964
|
p_ids: string[];
|
|
@@ -45891,10 +48978,37 @@ export declare const reorderCarriers: import("@tanstack/start-client-core").Requ
|
|
|
45891
48978
|
Args: never;
|
|
45892
48979
|
Returns: number;
|
|
45893
48980
|
};
|
|
48981
|
+
control_get_todays_carts: {
|
|
48982
|
+
Args: never;
|
|
48983
|
+
Returns: {
|
|
48984
|
+
cart_index: number;
|
|
48985
|
+
cart_number: string;
|
|
48986
|
+
cart_number_id: string;
|
|
48987
|
+
order_id: string;
|
|
48988
|
+
order_source: string;
|
|
48989
|
+
pick_date: string;
|
|
48990
|
+
status: string;
|
|
48991
|
+
}[];
|
|
48992
|
+
};
|
|
48993
|
+
count_distinct_regulatory_products: {
|
|
48994
|
+
Args: never;
|
|
48995
|
+
Returns: number;
|
|
48996
|
+
};
|
|
45894
48997
|
current_monteur_id: {
|
|
45895
48998
|
Args: never;
|
|
45896
48999
|
Returns: string;
|
|
45897
49000
|
};
|
|
49001
|
+
dashboard_alert_counts: {
|
|
49002
|
+
Args: never;
|
|
49003
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
49004
|
+
};
|
|
49005
|
+
dashboard_alert_rows: {
|
|
49006
|
+
Args: {
|
|
49007
|
+
check_id: string;
|
|
49008
|
+
row_limit?: number;
|
|
49009
|
+
};
|
|
49010
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
49011
|
+
};
|
|
45898
49012
|
dashboard_list_public_schema: {
|
|
45899
49013
|
Args: never;
|
|
45900
49014
|
Returns: {
|
|
@@ -45975,6 +49089,13 @@ export declare const reorderCarriers: import("@tanstack/start-client-core").Requ
|
|
|
45975
49089
|
};
|
|
45976
49090
|
Returns: boolean;
|
|
45977
49091
|
};
|
|
49092
|
+
format_cart_number: {
|
|
49093
|
+
Args: {
|
|
49094
|
+
p_pick_date: string;
|
|
49095
|
+
p_seq: number;
|
|
49096
|
+
};
|
|
49097
|
+
Returns: string;
|
|
49098
|
+
};
|
|
45978
49099
|
get_active_floriday_connection_public: {
|
|
45979
49100
|
Args: never;
|
|
45980
49101
|
Returns: {
|
|
@@ -46179,14 +49300,29 @@ export declare const reorderCarriers: import("@tanstack/start-client-core").Requ
|
|
|
46179
49300
|
};
|
|
46180
49301
|
Returns: undefined;
|
|
46181
49302
|
};
|
|
49303
|
+
pickstation_set_cart_status: {
|
|
49304
|
+
Args: {
|
|
49305
|
+
p_cart_index: number;
|
|
49306
|
+
p_order_id: string;
|
|
49307
|
+
p_order_source: string;
|
|
49308
|
+
p_status: string;
|
|
49309
|
+
};
|
|
49310
|
+
Returns: undefined;
|
|
49311
|
+
};
|
|
46182
49312
|
refresh_floricode_derived_code_lists: {
|
|
46183
49313
|
Args: never;
|
|
46184
49314
|
Returns: {
|
|
46185
|
-
|
|
46186
|
-
|
|
46187
|
-
|
|
49315
|
+
environment: string;
|
|
49316
|
+
list_name: string;
|
|
49317
|
+
row_count: number;
|
|
46188
49318
|
}[];
|
|
46189
49319
|
};
|
|
49320
|
+
refresh_floricode_derived_for_product: {
|
|
49321
|
+
Args: {
|
|
49322
|
+
p_product_code: string;
|
|
49323
|
+
};
|
|
49324
|
+
Returns: number;
|
|
49325
|
+
};
|
|
46190
49326
|
reset_floriday_sync_cursor: {
|
|
46191
49327
|
Args: {
|
|
46192
49328
|
p_connection_id: string;
|