@flowselections/floriday-verkoop-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/verkoop/AnalyticsCards.d.ts +1 -1
- package/dist-lib/components/verkoop/AnalyticsCards.d.ts.map +1 -1
- package/dist-lib/components/verkoop/AnalyticsCards.js +1 -7
- package/dist-lib/components/verkoop/SalesOrderDetailView.d.ts.map +1 -1
- package/dist-lib/components/verkoop/SalesOrderDetailView.js +1 -1
- package/dist-lib/components/verkoop/SalesOrdersTable.d.ts.map +1 -1
- package/dist-lib/components/verkoop/SalesOrdersTable.js +19 -39
- package/dist-lib/integrations/supabase/auth-middleware.d.ts +626 -0
- package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/client.d.ts +626 -0
- package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/client.server.d.ts +626 -0
- package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/types.d.ts +636 -0
- package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
- package/dist-lib/lib/floriday-public.functions.d.ts +4382 -0
- package/dist-lib/lib/floriday-public.functions.d.ts.map +1 -1
- package/dist-lib/lib/floriday-writes.functions.d.ts +3130 -0
- package/dist-lib/lib/floriday-writes.functions.d.ts.map +1 -1
- package/dist-lib/lib/salesorders-mapping.d.ts +4 -0
- package/dist-lib/lib/salesorders-mapping.d.ts.map +1 -1
- package/dist-lib/lib/salesorders-mapping.js +14 -3
- package/dist-lib/lib/salesorders.functions.d.ts +2000 -122
- package/dist-lib/lib/salesorders.functions.d.ts.map +1 -1
- package/dist-lib/lib/tradeitems.functions.d.ts +626 -0
- package/dist-lib/lib/tradeitems.functions.d.ts.map +1 -1
- package/dist-lib/lib/useSalesOrdersQuery.d.ts.map +1 -1
- package/dist-lib/lib/useSalesOrdersQuery.js +157 -24
- package/package.json +1 -1
|
@@ -13,6 +13,7 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
|
|
|
13
13
|
max_workdays_earlier_pick: number;
|
|
14
14
|
pick_days_before_transport: number;
|
|
15
15
|
pick_distribution_enabled: boolean;
|
|
16
|
+
pick_weekdays: number[];
|
|
16
17
|
signup_mail_enabled: boolean;
|
|
17
18
|
signup_mail_lead_minutes: number;
|
|
18
19
|
signup_mail_purpose: string;
|
|
@@ -26,6 +27,7 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
|
|
|
26
27
|
max_workdays_earlier_pick?: number;
|
|
27
28
|
pick_days_before_transport?: number;
|
|
28
29
|
pick_distribution_enabled?: boolean;
|
|
30
|
+
pick_weekdays?: number[];
|
|
29
31
|
signup_mail_enabled?: boolean;
|
|
30
32
|
signup_mail_lead_minutes?: number;
|
|
31
33
|
signup_mail_purpose?: string;
|
|
@@ -39,6 +41,7 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
|
|
|
39
41
|
max_workdays_earlier_pick?: number;
|
|
40
42
|
pick_days_before_transport?: number;
|
|
41
43
|
pick_distribution_enabled?: boolean;
|
|
44
|
+
pick_weekdays?: number[];
|
|
42
45
|
signup_mail_enabled?: boolean;
|
|
43
46
|
signup_mail_lead_minutes?: number;
|
|
44
47
|
signup_mail_purpose?: string;
|
|
@@ -450,6 +453,48 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
|
|
|
450
453
|
referencedColumns: ["id"];
|
|
451
454
|
}];
|
|
452
455
|
};
|
|
456
|
+
carrier_signup_dispatch_runs: {
|
|
457
|
+
Row: {
|
|
458
|
+
detail: import("../integrations/supabase/types").Json | null;
|
|
459
|
+
error: string | null;
|
|
460
|
+
finished_at: string | null;
|
|
461
|
+
groups: number;
|
|
462
|
+
id: string;
|
|
463
|
+
ok: boolean;
|
|
464
|
+
reason: string | null;
|
|
465
|
+
sent: number;
|
|
466
|
+
skipped: import("../integrations/supabase/types").Json;
|
|
467
|
+
started_at: string;
|
|
468
|
+
unassigned: import("../integrations/supabase/types").Json;
|
|
469
|
+
};
|
|
470
|
+
Insert: {
|
|
471
|
+
detail?: import("../integrations/supabase/types").Json | null;
|
|
472
|
+
error?: string | null;
|
|
473
|
+
finished_at?: string | null;
|
|
474
|
+
groups?: number;
|
|
475
|
+
id?: string;
|
|
476
|
+
ok?: boolean;
|
|
477
|
+
reason?: string | null;
|
|
478
|
+
sent?: number;
|
|
479
|
+
skipped?: import("../integrations/supabase/types").Json;
|
|
480
|
+
started_at?: string;
|
|
481
|
+
unassigned?: import("../integrations/supabase/types").Json;
|
|
482
|
+
};
|
|
483
|
+
Update: {
|
|
484
|
+
detail?: import("../integrations/supabase/types").Json | null;
|
|
485
|
+
error?: string | null;
|
|
486
|
+
finished_at?: string | null;
|
|
487
|
+
groups?: number;
|
|
488
|
+
id?: string;
|
|
489
|
+
ok?: boolean;
|
|
490
|
+
reason?: string | null;
|
|
491
|
+
sent?: number;
|
|
492
|
+
skipped?: import("../integrations/supabase/types").Json;
|
|
493
|
+
started_at?: string;
|
|
494
|
+
unassigned?: import("../integrations/supabase/types").Json;
|
|
495
|
+
};
|
|
496
|
+
Relationships: [];
|
|
497
|
+
};
|
|
453
498
|
carrier_signup_dispatches: {
|
|
454
499
|
Row: {
|
|
455
500
|
carrier_id: string;
|
|
@@ -501,6 +546,7 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
|
|
|
501
546
|
contact_person: string | null;
|
|
502
547
|
created_at: string;
|
|
503
548
|
delivery_days: number | null;
|
|
549
|
+
delivery_weekdays: number[];
|
|
504
550
|
email: string | null;
|
|
505
551
|
id: string;
|
|
506
552
|
is_default: boolean;
|
|
@@ -508,6 +554,7 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
|
|
|
508
554
|
notes: string | null;
|
|
509
555
|
phone: string | null;
|
|
510
556
|
pickup_moments: import("../integrations/supabase/types").Json;
|
|
557
|
+
pickup_weekdays: number[];
|
|
511
558
|
service_cities: string[];
|
|
512
559
|
service_countries: string[];
|
|
513
560
|
service_provinces: string[];
|
|
@@ -523,6 +570,7 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
|
|
|
523
570
|
contact_person?: string | null;
|
|
524
571
|
created_at?: string;
|
|
525
572
|
delivery_days?: number | null;
|
|
573
|
+
delivery_weekdays?: number[];
|
|
526
574
|
email?: string | null;
|
|
527
575
|
id?: string;
|
|
528
576
|
is_default?: boolean;
|
|
@@ -530,6 +578,7 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
|
|
|
530
578
|
notes?: string | null;
|
|
531
579
|
phone?: string | null;
|
|
532
580
|
pickup_moments?: import("../integrations/supabase/types").Json;
|
|
581
|
+
pickup_weekdays?: number[];
|
|
533
582
|
service_cities?: string[];
|
|
534
583
|
service_countries?: string[];
|
|
535
584
|
service_provinces?: string[];
|
|
@@ -545,6 +594,7 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
|
|
|
545
594
|
contact_person?: string | null;
|
|
546
595
|
created_at?: string;
|
|
547
596
|
delivery_days?: number | null;
|
|
597
|
+
delivery_weekdays?: number[];
|
|
548
598
|
email?: string | null;
|
|
549
599
|
id?: string;
|
|
550
600
|
is_default?: boolean;
|
|
@@ -552,6 +602,7 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
|
|
|
552
602
|
notes?: string | null;
|
|
553
603
|
phone?: string | null;
|
|
554
604
|
pickup_moments?: import("../integrations/supabase/types").Json;
|
|
605
|
+
pickup_weekdays?: number[];
|
|
555
606
|
service_cities?: string[];
|
|
556
607
|
service_countries?: string[];
|
|
557
608
|
service_provinces?: string[];
|
|
@@ -564,6 +615,177 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
|
|
|
564
615
|
};
|
|
565
616
|
Relationships: [];
|
|
566
617
|
};
|
|
618
|
+
cart_control_draft: {
|
|
619
|
+
Row: {
|
|
620
|
+
cart_states: import("../integrations/supabase/types").Json;
|
|
621
|
+
checked_keys: import("../integrations/supabase/types").Json;
|
|
622
|
+
draft_date: string;
|
|
623
|
+
form_state: import("../integrations/supabase/types").Json;
|
|
624
|
+
notes: string;
|
|
625
|
+
updated_at: string;
|
|
626
|
+
user_id: string;
|
|
627
|
+
};
|
|
628
|
+
Insert: {
|
|
629
|
+
cart_states?: import("../integrations/supabase/types").Json;
|
|
630
|
+
checked_keys?: import("../integrations/supabase/types").Json;
|
|
631
|
+
draft_date: string;
|
|
632
|
+
form_state?: import("../integrations/supabase/types").Json;
|
|
633
|
+
notes?: string;
|
|
634
|
+
updated_at?: string;
|
|
635
|
+
user_id: string;
|
|
636
|
+
};
|
|
637
|
+
Update: {
|
|
638
|
+
cart_states?: import("../integrations/supabase/types").Json;
|
|
639
|
+
checked_keys?: import("../integrations/supabase/types").Json;
|
|
640
|
+
draft_date?: string;
|
|
641
|
+
form_state?: import("../integrations/supabase/types").Json;
|
|
642
|
+
notes?: string;
|
|
643
|
+
updated_at?: string;
|
|
644
|
+
user_id?: string;
|
|
645
|
+
};
|
|
646
|
+
Relationships: [];
|
|
647
|
+
};
|
|
648
|
+
cart_control_items: {
|
|
649
|
+
Row: {
|
|
650
|
+
action: string;
|
|
651
|
+
block_reason: string | null;
|
|
652
|
+
carrier_name: string | null;
|
|
653
|
+
cart_index: number;
|
|
654
|
+
cart_number_id: string | null;
|
|
655
|
+
cart_number_label: string | null;
|
|
656
|
+
created_at: string;
|
|
657
|
+
customer_name: string | null;
|
|
658
|
+
delivery_date: string | null;
|
|
659
|
+
id: string;
|
|
660
|
+
new_pick_date: string | null;
|
|
661
|
+
order_id: string;
|
|
662
|
+
order_number: string | null;
|
|
663
|
+
order_source: string;
|
|
664
|
+
pickup_date: string | null;
|
|
665
|
+
session_id: string;
|
|
666
|
+
};
|
|
667
|
+
Insert: {
|
|
668
|
+
action: string;
|
|
669
|
+
block_reason?: string | null;
|
|
670
|
+
carrier_name?: string | null;
|
|
671
|
+
cart_index: number;
|
|
672
|
+
cart_number_id?: string | null;
|
|
673
|
+
cart_number_label?: string | null;
|
|
674
|
+
created_at?: string;
|
|
675
|
+
customer_name?: string | null;
|
|
676
|
+
delivery_date?: string | null;
|
|
677
|
+
id?: string;
|
|
678
|
+
new_pick_date?: string | null;
|
|
679
|
+
order_id: string;
|
|
680
|
+
order_number?: string | null;
|
|
681
|
+
order_source: string;
|
|
682
|
+
pickup_date?: string | null;
|
|
683
|
+
session_id: string;
|
|
684
|
+
};
|
|
685
|
+
Update: {
|
|
686
|
+
action?: string;
|
|
687
|
+
block_reason?: string | null;
|
|
688
|
+
carrier_name?: string | null;
|
|
689
|
+
cart_index?: number;
|
|
690
|
+
cart_number_id?: string | null;
|
|
691
|
+
cart_number_label?: string | null;
|
|
692
|
+
created_at?: string;
|
|
693
|
+
customer_name?: string | null;
|
|
694
|
+
delivery_date?: string | null;
|
|
695
|
+
id?: string;
|
|
696
|
+
new_pick_date?: string | null;
|
|
697
|
+
order_id?: string;
|
|
698
|
+
order_number?: string | null;
|
|
699
|
+
order_source?: string;
|
|
700
|
+
pickup_date?: string | null;
|
|
701
|
+
session_id?: string;
|
|
702
|
+
};
|
|
703
|
+
Relationships: [{
|
|
704
|
+
foreignKeyName: "cart_control_items_session_id_fkey";
|
|
705
|
+
columns: ["session_id"];
|
|
706
|
+
isOneToOne: false;
|
|
707
|
+
referencedRelation: "cart_control_sessions";
|
|
708
|
+
referencedColumns: ["id"];
|
|
709
|
+
}];
|
|
710
|
+
};
|
|
711
|
+
cart_control_sessions: {
|
|
712
|
+
Row: {
|
|
713
|
+
blocked_count: number;
|
|
714
|
+
checked_count: number;
|
|
715
|
+
control_date: string;
|
|
716
|
+
created_at: string;
|
|
717
|
+
id: string;
|
|
718
|
+
notes: string | null;
|
|
719
|
+
performed_at: string;
|
|
720
|
+
rescheduled_count: number;
|
|
721
|
+
total_carts: number;
|
|
722
|
+
updated_at: string;
|
|
723
|
+
user_id: string;
|
|
724
|
+
};
|
|
725
|
+
Insert: {
|
|
726
|
+
blocked_count?: number;
|
|
727
|
+
checked_count?: number;
|
|
728
|
+
control_date?: string;
|
|
729
|
+
created_at?: string;
|
|
730
|
+
id?: string;
|
|
731
|
+
notes?: string | null;
|
|
732
|
+
performed_at?: string;
|
|
733
|
+
rescheduled_count?: number;
|
|
734
|
+
total_carts?: number;
|
|
735
|
+
updated_at?: string;
|
|
736
|
+
user_id: string;
|
|
737
|
+
};
|
|
738
|
+
Update: {
|
|
739
|
+
blocked_count?: number;
|
|
740
|
+
checked_count?: number;
|
|
741
|
+
control_date?: string;
|
|
742
|
+
created_at?: string;
|
|
743
|
+
id?: string;
|
|
744
|
+
notes?: string | null;
|
|
745
|
+
performed_at?: string;
|
|
746
|
+
rescheduled_count?: number;
|
|
747
|
+
total_carts?: number;
|
|
748
|
+
updated_at?: string;
|
|
749
|
+
user_id?: string;
|
|
750
|
+
};
|
|
751
|
+
Relationships: [];
|
|
752
|
+
};
|
|
753
|
+
cart_numbers: {
|
|
754
|
+
Row: {
|
|
755
|
+
assigned_at: string;
|
|
756
|
+
cart_index: number;
|
|
757
|
+
cart_number: string;
|
|
758
|
+
day_seq: number;
|
|
759
|
+
id: string;
|
|
760
|
+
order_id: string;
|
|
761
|
+
order_source: string;
|
|
762
|
+
pick_date: string;
|
|
763
|
+
status: string;
|
|
764
|
+
};
|
|
765
|
+
Insert: {
|
|
766
|
+
assigned_at?: string;
|
|
767
|
+
cart_index: number;
|
|
768
|
+
cart_number: string;
|
|
769
|
+
day_seq: number;
|
|
770
|
+
id?: string;
|
|
771
|
+
order_id: string;
|
|
772
|
+
order_source: string;
|
|
773
|
+
pick_date: string;
|
|
774
|
+
status?: string;
|
|
775
|
+
};
|
|
776
|
+
Update: {
|
|
777
|
+
assigned_at?: string;
|
|
778
|
+
cart_index?: number;
|
|
779
|
+
cart_number?: string;
|
|
780
|
+
day_seq?: number;
|
|
781
|
+
id?: string;
|
|
782
|
+
order_id?: string;
|
|
783
|
+
order_source?: string;
|
|
784
|
+
pick_date?: string;
|
|
785
|
+
status?: string;
|
|
786
|
+
};
|
|
787
|
+
Relationships: [];
|
|
788
|
+
};
|
|
567
789
|
cart_pick_overrides: {
|
|
568
790
|
Row: {
|
|
569
791
|
cart_index: number;
|
|
@@ -1236,6 +1458,54 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
|
|
|
1236
1458
|
referencedColumns: ["id"];
|
|
1237
1459
|
}];
|
|
1238
1460
|
};
|
|
1461
|
+
dashboard_critical_alerts: {
|
|
1462
|
+
Row: {
|
|
1463
|
+
alert_key: string;
|
|
1464
|
+
alert_type: string;
|
|
1465
|
+
created_at: string;
|
|
1466
|
+
description: string | null;
|
|
1467
|
+
id: string;
|
|
1468
|
+
metadata: import("../integrations/supabase/types").Json | null;
|
|
1469
|
+
priority: string;
|
|
1470
|
+
raised_at: string;
|
|
1471
|
+
related_cart_ids: string[] | null;
|
|
1472
|
+
resolved_at: string | null;
|
|
1473
|
+
title: string;
|
|
1474
|
+
updated_at: string;
|
|
1475
|
+
user_id: string;
|
|
1476
|
+
};
|
|
1477
|
+
Insert: {
|
|
1478
|
+
alert_key: string;
|
|
1479
|
+
alert_type: string;
|
|
1480
|
+
created_at?: string;
|
|
1481
|
+
description?: string | null;
|
|
1482
|
+
id?: string;
|
|
1483
|
+
metadata?: import("../integrations/supabase/types").Json | null;
|
|
1484
|
+
priority?: string;
|
|
1485
|
+
raised_at?: string;
|
|
1486
|
+
related_cart_ids?: string[] | null;
|
|
1487
|
+
resolved_at?: string | null;
|
|
1488
|
+
title: string;
|
|
1489
|
+
updated_at?: string;
|
|
1490
|
+
user_id: string;
|
|
1491
|
+
};
|
|
1492
|
+
Update: {
|
|
1493
|
+
alert_key?: string;
|
|
1494
|
+
alert_type?: string;
|
|
1495
|
+
created_at?: string;
|
|
1496
|
+
description?: string | null;
|
|
1497
|
+
id?: string;
|
|
1498
|
+
metadata?: import("../integrations/supabase/types").Json | null;
|
|
1499
|
+
priority?: string;
|
|
1500
|
+
raised_at?: string;
|
|
1501
|
+
related_cart_ids?: string[] | null;
|
|
1502
|
+
resolved_at?: string | null;
|
|
1503
|
+
title?: string;
|
|
1504
|
+
updated_at?: string;
|
|
1505
|
+
user_id?: string;
|
|
1506
|
+
};
|
|
1507
|
+
Relationships: [];
|
|
1508
|
+
};
|
|
1239
1509
|
dashboard_daily_reports: {
|
|
1240
1510
|
Row: {
|
|
1241
1511
|
created_at: string;
|
|
@@ -2738,6 +3008,7 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
|
|
|
2738
3008
|
};
|
|
2739
3009
|
floricode_sync_state: {
|
|
2740
3010
|
Row: {
|
|
3011
|
+
cursor_skip: number;
|
|
2741
3012
|
error_message: string | null;
|
|
2742
3013
|
last_change_date_time: string | null;
|
|
2743
3014
|
last_sequence_number: number;
|
|
@@ -2747,6 +3018,7 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
|
|
|
2747
3018
|
updated_at: string;
|
|
2748
3019
|
};
|
|
2749
3020
|
Insert: {
|
|
3021
|
+
cursor_skip?: number;
|
|
2750
3022
|
error_message?: string | null;
|
|
2751
3023
|
last_change_date_time?: string | null;
|
|
2752
3024
|
last_sequence_number?: number;
|
|
@@ -2756,6 +3028,7 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
|
|
|
2756
3028
|
updated_at?: string;
|
|
2757
3029
|
};
|
|
2758
3030
|
Update: {
|
|
3031
|
+
cursor_skip?: number;
|
|
2759
3032
|
error_message?: string | null;
|
|
2760
3033
|
last_change_date_time?: string | null;
|
|
2761
3034
|
last_sequence_number?: number;
|
|
@@ -5103,6 +5376,93 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
|
|
|
5103
5376
|
};
|
|
5104
5377
|
Relationships: [];
|
|
5105
5378
|
};
|
|
5379
|
+
manufacture_product_components: {
|
|
5380
|
+
Row: {
|
|
5381
|
+
component_type: string;
|
|
5382
|
+
created_at: string;
|
|
5383
|
+
id: string;
|
|
5384
|
+
manufacture_product_id: string;
|
|
5385
|
+
product_group_id: string | null;
|
|
5386
|
+
quantity: number;
|
|
5387
|
+
trade_item_id: string | null;
|
|
5388
|
+
unit: string;
|
|
5389
|
+
};
|
|
5390
|
+
Insert: {
|
|
5391
|
+
component_type: string;
|
|
5392
|
+
created_at?: string;
|
|
5393
|
+
id?: string;
|
|
5394
|
+
manufacture_product_id: string;
|
|
5395
|
+
product_group_id?: string | null;
|
|
5396
|
+
quantity?: number;
|
|
5397
|
+
trade_item_id?: string | null;
|
|
5398
|
+
unit?: string;
|
|
5399
|
+
};
|
|
5400
|
+
Update: {
|
|
5401
|
+
component_type?: string;
|
|
5402
|
+
created_at?: string;
|
|
5403
|
+
id?: string;
|
|
5404
|
+
manufacture_product_id?: string;
|
|
5405
|
+
product_group_id?: string | null;
|
|
5406
|
+
quantity?: number;
|
|
5407
|
+
trade_item_id?: string | null;
|
|
5408
|
+
unit?: string;
|
|
5409
|
+
};
|
|
5410
|
+
Relationships: [{
|
|
5411
|
+
foreignKeyName: "manufacture_product_components_manufacture_product_id_fkey";
|
|
5412
|
+
columns: ["manufacture_product_id"];
|
|
5413
|
+
isOneToOne: false;
|
|
5414
|
+
referencedRelation: "manufacture_product_possible_stock_view";
|
|
5415
|
+
referencedColumns: ["manufacture_product_id"];
|
|
5416
|
+
}, {
|
|
5417
|
+
foreignKeyName: "manufacture_product_components_manufacture_product_id_fkey";
|
|
5418
|
+
columns: ["manufacture_product_id"];
|
|
5419
|
+
isOneToOne: false;
|
|
5420
|
+
referencedRelation: "manufacture_products";
|
|
5421
|
+
referencedColumns: ["id"];
|
|
5422
|
+
}, {
|
|
5423
|
+
foreignKeyName: "manufacture_product_components_product_group_id_fkey";
|
|
5424
|
+
columns: ["product_group_id"];
|
|
5425
|
+
isOneToOne: false;
|
|
5426
|
+
referencedRelation: "product_groups";
|
|
5427
|
+
referencedColumns: ["id"];
|
|
5428
|
+
}];
|
|
5429
|
+
};
|
|
5430
|
+
manufacture_products: {
|
|
5431
|
+
Row: {
|
|
5432
|
+
created_at: string;
|
|
5433
|
+
description: string | null;
|
|
5434
|
+
id: string;
|
|
5435
|
+
is_active: boolean;
|
|
5436
|
+
name: string;
|
|
5437
|
+
produced_stock: number;
|
|
5438
|
+
product_code: string;
|
|
5439
|
+
tenant_id: string;
|
|
5440
|
+
updated_at: string;
|
|
5441
|
+
};
|
|
5442
|
+
Insert: {
|
|
5443
|
+
created_at?: string;
|
|
5444
|
+
description?: string | null;
|
|
5445
|
+
id?: string;
|
|
5446
|
+
is_active?: boolean;
|
|
5447
|
+
name: string;
|
|
5448
|
+
produced_stock?: number;
|
|
5449
|
+
product_code: string;
|
|
5450
|
+
tenant_id: string;
|
|
5451
|
+
updated_at?: string;
|
|
5452
|
+
};
|
|
5453
|
+
Update: {
|
|
5454
|
+
created_at?: string;
|
|
5455
|
+
description?: string | null;
|
|
5456
|
+
id?: string;
|
|
5457
|
+
is_active?: boolean;
|
|
5458
|
+
name?: string;
|
|
5459
|
+
produced_stock?: number;
|
|
5460
|
+
product_code?: string;
|
|
5461
|
+
tenant_id?: string;
|
|
5462
|
+
updated_at?: string;
|
|
5463
|
+
};
|
|
5464
|
+
Relationships: [];
|
|
5465
|
+
};
|
|
5106
5466
|
monteurs: {
|
|
5107
5467
|
Row: {
|
|
5108
5468
|
avatar_url: string | null;
|
|
@@ -6063,60 +6423,120 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
|
|
|
6063
6423
|
};
|
|
6064
6424
|
Relationships: [];
|
|
6065
6425
|
};
|
|
6066
|
-
|
|
6426
|
+
product_group_items: {
|
|
6067
6427
|
Row: {
|
|
6068
|
-
barcode: string | null;
|
|
6069
|
-
batch: string;
|
|
6070
|
-
crates_per_layer: number;
|
|
6071
6428
|
created_at: string;
|
|
6072
|
-
custom_fields: import("../integrations/supabase/types").Json;
|
|
6073
6429
|
id: string;
|
|
6074
|
-
|
|
6075
|
-
incoming_quantity: number;
|
|
6076
|
-
layers_per_cart: number;
|
|
6077
|
-
location: string;
|
|
6078
|
-
min_quantity: number;
|
|
6079
|
-
plants_per_crate: number;
|
|
6080
|
-
product: string;
|
|
6081
|
-
product_type: string;
|
|
6082
|
-
purchase_price: number | null;
|
|
6430
|
+
product_group_id: string;
|
|
6083
6431
|
quantity: number;
|
|
6084
|
-
|
|
6085
|
-
unit: string;
|
|
6086
|
-
updated_at: string;
|
|
6087
|
-
weight: string | null;
|
|
6432
|
+
trade_item_id: string;
|
|
6088
6433
|
};
|
|
6089
6434
|
Insert: {
|
|
6090
|
-
barcode?: string | null;
|
|
6091
|
-
batch: string;
|
|
6092
|
-
crates_per_layer?: number;
|
|
6093
6435
|
created_at?: string;
|
|
6094
|
-
custom_fields?: import("../integrations/supabase/types").Json;
|
|
6095
6436
|
id?: string;
|
|
6096
|
-
|
|
6097
|
-
incoming_quantity?: number;
|
|
6098
|
-
layers_per_cart?: number;
|
|
6099
|
-
location: string;
|
|
6100
|
-
min_quantity?: number;
|
|
6101
|
-
plants_per_crate?: number;
|
|
6102
|
-
product: string;
|
|
6103
|
-
product_type?: string;
|
|
6104
|
-
purchase_price?: number | null;
|
|
6437
|
+
product_group_id: string;
|
|
6105
6438
|
quantity?: number;
|
|
6106
|
-
|
|
6107
|
-
unit?: string;
|
|
6108
|
-
updated_at?: string;
|
|
6109
|
-
weight?: string | null;
|
|
6439
|
+
trade_item_id: string;
|
|
6110
6440
|
};
|
|
6111
6441
|
Update: {
|
|
6112
|
-
barcode?: string | null;
|
|
6113
|
-
batch?: string;
|
|
6114
|
-
crates_per_layer?: number;
|
|
6115
6442
|
created_at?: string;
|
|
6116
|
-
custom_fields?: import("../integrations/supabase/types").Json;
|
|
6117
6443
|
id?: string;
|
|
6118
|
-
|
|
6119
|
-
|
|
6444
|
+
product_group_id?: string;
|
|
6445
|
+
quantity?: number;
|
|
6446
|
+
trade_item_id?: string;
|
|
6447
|
+
};
|
|
6448
|
+
Relationships: [{
|
|
6449
|
+
foreignKeyName: "product_group_items_product_group_id_fkey";
|
|
6450
|
+
columns: ["product_group_id"];
|
|
6451
|
+
isOneToOne: false;
|
|
6452
|
+
referencedRelation: "product_groups";
|
|
6453
|
+
referencedColumns: ["id"];
|
|
6454
|
+
}];
|
|
6455
|
+
};
|
|
6456
|
+
product_groups: {
|
|
6457
|
+
Row: {
|
|
6458
|
+
created_at: string;
|
|
6459
|
+
description: string | null;
|
|
6460
|
+
id: string;
|
|
6461
|
+
is_active: boolean;
|
|
6462
|
+
name: string;
|
|
6463
|
+
tenant_id: string;
|
|
6464
|
+
updated_at: string;
|
|
6465
|
+
};
|
|
6466
|
+
Insert: {
|
|
6467
|
+
created_at?: string;
|
|
6468
|
+
description?: string | null;
|
|
6469
|
+
id?: string;
|
|
6470
|
+
is_active?: boolean;
|
|
6471
|
+
name: string;
|
|
6472
|
+
tenant_id: string;
|
|
6473
|
+
updated_at?: string;
|
|
6474
|
+
};
|
|
6475
|
+
Update: {
|
|
6476
|
+
created_at?: string;
|
|
6477
|
+
description?: string | null;
|
|
6478
|
+
id?: string;
|
|
6479
|
+
is_active?: boolean;
|
|
6480
|
+
name?: string;
|
|
6481
|
+
tenant_id?: string;
|
|
6482
|
+
updated_at?: string;
|
|
6483
|
+
};
|
|
6484
|
+
Relationships: [];
|
|
6485
|
+
};
|
|
6486
|
+
products: {
|
|
6487
|
+
Row: {
|
|
6488
|
+
barcode: string | null;
|
|
6489
|
+
batch: string;
|
|
6490
|
+
crates_per_layer: number;
|
|
6491
|
+
created_at: string;
|
|
6492
|
+
custom_fields: import("../integrations/supabase/types").Json;
|
|
6493
|
+
id: string;
|
|
6494
|
+
image_url: string | null;
|
|
6495
|
+
incoming_quantity: number;
|
|
6496
|
+
layers_per_cart: number;
|
|
6497
|
+
location: string;
|
|
6498
|
+
min_quantity: number;
|
|
6499
|
+
plants_per_crate: number;
|
|
6500
|
+
product: string;
|
|
6501
|
+
product_type: string;
|
|
6502
|
+
purchase_price: number | null;
|
|
6503
|
+
quantity: number;
|
|
6504
|
+
sale_price: number | null;
|
|
6505
|
+
unit: string;
|
|
6506
|
+
updated_at: string;
|
|
6507
|
+
weight: string | null;
|
|
6508
|
+
};
|
|
6509
|
+
Insert: {
|
|
6510
|
+
barcode?: string | null;
|
|
6511
|
+
batch: string;
|
|
6512
|
+
crates_per_layer?: number;
|
|
6513
|
+
created_at?: string;
|
|
6514
|
+
custom_fields?: import("../integrations/supabase/types").Json;
|
|
6515
|
+
id?: string;
|
|
6516
|
+
image_url?: string | null;
|
|
6517
|
+
incoming_quantity?: number;
|
|
6518
|
+
layers_per_cart?: number;
|
|
6519
|
+
location: string;
|
|
6520
|
+
min_quantity?: number;
|
|
6521
|
+
plants_per_crate?: number;
|
|
6522
|
+
product: string;
|
|
6523
|
+
product_type?: string;
|
|
6524
|
+
purchase_price?: number | null;
|
|
6525
|
+
quantity?: number;
|
|
6526
|
+
sale_price?: number | null;
|
|
6527
|
+
unit?: string;
|
|
6528
|
+
updated_at?: string;
|
|
6529
|
+
weight?: string | null;
|
|
6530
|
+
};
|
|
6531
|
+
Update: {
|
|
6532
|
+
barcode?: string | null;
|
|
6533
|
+
batch?: string;
|
|
6534
|
+
crates_per_layer?: number;
|
|
6535
|
+
created_at?: string;
|
|
6536
|
+
custom_fields?: import("../integrations/supabase/types").Json;
|
|
6537
|
+
id?: string;
|
|
6538
|
+
image_url?: string | null;
|
|
6539
|
+
incoming_quantity?: number;
|
|
6120
6540
|
layers_per_cart?: number;
|
|
6121
6541
|
location?: string;
|
|
6122
6542
|
min_quantity?: number;
|
|
@@ -7202,7 +7622,13 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
|
|
|
7202
7622
|
connection_id: string | null;
|
|
7203
7623
|
created_at: string;
|
|
7204
7624
|
data: import("../integrations/supabase/types").Json;
|
|
7625
|
+
floriday_id: string | null;
|
|
7626
|
+
floriday_link_error: string | null;
|
|
7627
|
+
floriday_link_status: string;
|
|
7205
7628
|
id: string;
|
|
7629
|
+
last_floriday_sync_at: string | null;
|
|
7630
|
+
missing_required_fields: string[];
|
|
7631
|
+
source: string;
|
|
7206
7632
|
updated_at: string;
|
|
7207
7633
|
user_id: string;
|
|
7208
7634
|
};
|
|
@@ -7210,7 +7636,13 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
|
|
|
7210
7636
|
connection_id?: string | null;
|
|
7211
7637
|
created_at?: string;
|
|
7212
7638
|
data?: import("../integrations/supabase/types").Json;
|
|
7639
|
+
floriday_id?: string | null;
|
|
7640
|
+
floriday_link_error?: string | null;
|
|
7641
|
+
floriday_link_status?: string;
|
|
7213
7642
|
id?: string;
|
|
7643
|
+
last_floriday_sync_at?: string | null;
|
|
7644
|
+
missing_required_fields?: string[];
|
|
7645
|
+
source?: string;
|
|
7214
7646
|
updated_at?: string;
|
|
7215
7647
|
user_id: string;
|
|
7216
7648
|
};
|
|
@@ -7218,7 +7650,55 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
|
|
|
7218
7650
|
connection_id?: string | null;
|
|
7219
7651
|
created_at?: string;
|
|
7220
7652
|
data?: import("../integrations/supabase/types").Json;
|
|
7653
|
+
floriday_id?: string | null;
|
|
7654
|
+
floriday_link_error?: string | null;
|
|
7655
|
+
floriday_link_status?: string;
|
|
7656
|
+
id?: string;
|
|
7657
|
+
last_floriday_sync_at?: string | null;
|
|
7658
|
+
missing_required_fields?: string[];
|
|
7659
|
+
source?: string;
|
|
7660
|
+
updated_at?: string;
|
|
7661
|
+
user_id?: string;
|
|
7662
|
+
};
|
|
7663
|
+
Relationships: [];
|
|
7664
|
+
};
|
|
7665
|
+
trade_item_stock: {
|
|
7666
|
+
Row: {
|
|
7667
|
+
connection_id: string;
|
|
7668
|
+
created_at: string;
|
|
7669
|
+
id: string;
|
|
7670
|
+
incoming_stock: number;
|
|
7671
|
+
minimum_stock: number;
|
|
7672
|
+
notes: string | null;
|
|
7673
|
+
physical_stock: number;
|
|
7674
|
+
reserved_stock: number;
|
|
7675
|
+
trade_item_key: string;
|
|
7676
|
+
updated_at: string;
|
|
7677
|
+
user_id: string;
|
|
7678
|
+
};
|
|
7679
|
+
Insert: {
|
|
7680
|
+
connection_id: string;
|
|
7681
|
+
created_at?: string;
|
|
7682
|
+
id?: string;
|
|
7683
|
+
incoming_stock?: number;
|
|
7684
|
+
minimum_stock?: number;
|
|
7685
|
+
notes?: string | null;
|
|
7686
|
+
physical_stock?: number;
|
|
7687
|
+
reserved_stock?: number;
|
|
7688
|
+
trade_item_key: string;
|
|
7689
|
+
updated_at?: string;
|
|
7690
|
+
user_id: string;
|
|
7691
|
+
};
|
|
7692
|
+
Update: {
|
|
7693
|
+
connection_id?: string;
|
|
7694
|
+
created_at?: string;
|
|
7221
7695
|
id?: string;
|
|
7696
|
+
incoming_stock?: number;
|
|
7697
|
+
minimum_stock?: number;
|
|
7698
|
+
notes?: string | null;
|
|
7699
|
+
physical_stock?: number;
|
|
7700
|
+
reserved_stock?: number;
|
|
7701
|
+
trade_item_key?: string;
|
|
7222
7702
|
updated_at?: string;
|
|
7223
7703
|
user_id?: string;
|
|
7224
7704
|
};
|
|
@@ -7568,6 +8048,7 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
|
|
|
7568
8048
|
};
|
|
7569
8049
|
twinfield_invoice_sync_logs: {
|
|
7570
8050
|
Row: {
|
|
8051
|
+
action_type: string | null;
|
|
7571
8052
|
created_at: string;
|
|
7572
8053
|
details: import("../integrations/supabase/types").Json | null;
|
|
7573
8054
|
duration_ms: number | null;
|
|
@@ -7580,6 +8061,7 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
|
|
|
7580
8061
|
user_id: string;
|
|
7581
8062
|
};
|
|
7582
8063
|
Insert: {
|
|
8064
|
+
action_type?: string | null;
|
|
7583
8065
|
created_at?: string;
|
|
7584
8066
|
details?: import("../integrations/supabase/types").Json | null;
|
|
7585
8067
|
duration_ms?: number | null;
|
|
@@ -7592,6 +8074,7 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
|
|
|
7592
8074
|
user_id: string;
|
|
7593
8075
|
};
|
|
7594
8076
|
Update: {
|
|
8077
|
+
action_type?: string | null;
|
|
7595
8078
|
created_at?: string;
|
|
7596
8079
|
details?: import("../integrations/supabase/types").Json | null;
|
|
7597
8080
|
duration_ms?: number | null;
|
|
@@ -7827,6 +8310,57 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
|
|
|
7827
8310
|
referencedColumns: ["id"];
|
|
7828
8311
|
}];
|
|
7829
8312
|
};
|
|
8313
|
+
twinfield_request_metrics: {
|
|
8314
|
+
Row: {
|
|
8315
|
+
bucket_hour: string;
|
|
8316
|
+
connection_id: string;
|
|
8317
|
+
error_count: number;
|
|
8318
|
+
rate_limited_count: number;
|
|
8319
|
+
request_count: number;
|
|
8320
|
+
updated_at: string;
|
|
8321
|
+
};
|
|
8322
|
+
Insert: {
|
|
8323
|
+
bucket_hour: string;
|
|
8324
|
+
connection_id: string;
|
|
8325
|
+
error_count?: number;
|
|
8326
|
+
rate_limited_count?: number;
|
|
8327
|
+
request_count?: number;
|
|
8328
|
+
updated_at?: string;
|
|
8329
|
+
};
|
|
8330
|
+
Update: {
|
|
8331
|
+
bucket_hour?: string;
|
|
8332
|
+
connection_id?: string;
|
|
8333
|
+
error_count?: number;
|
|
8334
|
+
rate_limited_count?: number;
|
|
8335
|
+
request_count?: number;
|
|
8336
|
+
updated_at?: string;
|
|
8337
|
+
};
|
|
8338
|
+
Relationships: [];
|
|
8339
|
+
};
|
|
8340
|
+
twinfield_session_cache: {
|
|
8341
|
+
Row: {
|
|
8342
|
+
cluster: string;
|
|
8343
|
+
created_at: string;
|
|
8344
|
+
expires_at: string;
|
|
8345
|
+
session_id: string;
|
|
8346
|
+
user_id: string;
|
|
8347
|
+
};
|
|
8348
|
+
Insert: {
|
|
8349
|
+
cluster: string;
|
|
8350
|
+
created_at?: string;
|
|
8351
|
+
expires_at: string;
|
|
8352
|
+
session_id: string;
|
|
8353
|
+
user_id: string;
|
|
8354
|
+
};
|
|
8355
|
+
Update: {
|
|
8356
|
+
cluster?: string;
|
|
8357
|
+
created_at?: string;
|
|
8358
|
+
expires_at?: string;
|
|
8359
|
+
session_id?: string;
|
|
8360
|
+
user_id?: string;
|
|
8361
|
+
};
|
|
8362
|
+
Relationships: [];
|
|
8363
|
+
};
|
|
7830
8364
|
twinfield_settings: {
|
|
7831
8365
|
Row: {
|
|
7832
8366
|
active_environment: string;
|
|
@@ -8408,6 +8942,35 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
|
|
|
8408
8942
|
};
|
|
8409
8943
|
Relationships: [];
|
|
8410
8944
|
};
|
|
8945
|
+
manufacture_product_possible_stock_view: {
|
|
8946
|
+
Row: {
|
|
8947
|
+
component_count: number | null;
|
|
8948
|
+
manufacture_product_id: string | null;
|
|
8949
|
+
possible_stock: number | null;
|
|
8950
|
+
};
|
|
8951
|
+
Relationships: [];
|
|
8952
|
+
};
|
|
8953
|
+
product_group_stock_view: {
|
|
8954
|
+
Row: {
|
|
8955
|
+
item_count: number | null;
|
|
8956
|
+
product_group_id: string | null;
|
|
8957
|
+
total_stock: number | null;
|
|
8958
|
+
};
|
|
8959
|
+
Relationships: [{
|
|
8960
|
+
foreignKeyName: "product_group_items_product_group_id_fkey";
|
|
8961
|
+
columns: ["product_group_id"];
|
|
8962
|
+
isOneToOne: false;
|
|
8963
|
+
referencedRelation: "product_groups";
|
|
8964
|
+
referencedColumns: ["id"];
|
|
8965
|
+
}];
|
|
8966
|
+
};
|
|
8967
|
+
trade_item_stock_view: {
|
|
8968
|
+
Row: {
|
|
8969
|
+
stock: number | null;
|
|
8970
|
+
trade_item_id: string | null;
|
|
8971
|
+
};
|
|
8972
|
+
Relationships: [];
|
|
8973
|
+
};
|
|
8411
8974
|
v_external_customers_exact: {
|
|
8412
8975
|
Row: {
|
|
8413
8976
|
account_number: string | null;
|
|
@@ -8663,6 +9226,20 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
|
|
|
8663
9226
|
};
|
|
8664
9227
|
Returns: number;
|
|
8665
9228
|
};
|
|
9229
|
+
assign_cart_numbers: {
|
|
9230
|
+
Args: {
|
|
9231
|
+
p_carts: import("../integrations/supabase/types").Json;
|
|
9232
|
+
};
|
|
9233
|
+
Returns: {
|
|
9234
|
+
cart_index: number;
|
|
9235
|
+
cart_number: string;
|
|
9236
|
+
day_seq: number;
|
|
9237
|
+
order_id: string;
|
|
9238
|
+
order_source: string;
|
|
9239
|
+
pick_date: string;
|
|
9240
|
+
status: string;
|
|
9241
|
+
}[];
|
|
9242
|
+
};
|
|
8666
9243
|
assign_floriday_order_numbers: {
|
|
8667
9244
|
Args: {
|
|
8668
9245
|
p_ids: string[];
|
|
@@ -8682,10 +9259,37 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
|
|
|
8682
9259
|
Args: never;
|
|
8683
9260
|
Returns: number;
|
|
8684
9261
|
};
|
|
9262
|
+
control_get_todays_carts: {
|
|
9263
|
+
Args: never;
|
|
9264
|
+
Returns: {
|
|
9265
|
+
cart_index: number;
|
|
9266
|
+
cart_number: string;
|
|
9267
|
+
cart_number_id: string;
|
|
9268
|
+
order_id: string;
|
|
9269
|
+
order_source: string;
|
|
9270
|
+
pick_date: string;
|
|
9271
|
+
status: string;
|
|
9272
|
+
}[];
|
|
9273
|
+
};
|
|
9274
|
+
count_distinct_regulatory_products: {
|
|
9275
|
+
Args: never;
|
|
9276
|
+
Returns: number;
|
|
9277
|
+
};
|
|
8685
9278
|
current_monteur_id: {
|
|
8686
9279
|
Args: never;
|
|
8687
9280
|
Returns: string;
|
|
8688
9281
|
};
|
|
9282
|
+
dashboard_alert_counts: {
|
|
9283
|
+
Args: never;
|
|
9284
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
9285
|
+
};
|
|
9286
|
+
dashboard_alert_rows: {
|
|
9287
|
+
Args: {
|
|
9288
|
+
check_id: string;
|
|
9289
|
+
row_limit?: number;
|
|
9290
|
+
};
|
|
9291
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
9292
|
+
};
|
|
8689
9293
|
dashboard_list_public_schema: {
|
|
8690
9294
|
Args: never;
|
|
8691
9295
|
Returns: {
|
|
@@ -8766,6 +9370,13 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
|
|
|
8766
9370
|
};
|
|
8767
9371
|
Returns: boolean;
|
|
8768
9372
|
};
|
|
9373
|
+
format_cart_number: {
|
|
9374
|
+
Args: {
|
|
9375
|
+
p_pick_date: string;
|
|
9376
|
+
p_seq: number;
|
|
9377
|
+
};
|
|
9378
|
+
Returns: string;
|
|
9379
|
+
};
|
|
8769
9380
|
get_active_floriday_connection_public: {
|
|
8770
9381
|
Args: never;
|
|
8771
9382
|
Returns: {
|
|
@@ -8970,6 +9581,15 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
|
|
|
8970
9581
|
};
|
|
8971
9582
|
Returns: undefined;
|
|
8972
9583
|
};
|
|
9584
|
+
pickstation_set_cart_status: {
|
|
9585
|
+
Args: {
|
|
9586
|
+
p_cart_index: number;
|
|
9587
|
+
p_order_id: string;
|
|
9588
|
+
p_order_source: string;
|
|
9589
|
+
p_status: string;
|
|
9590
|
+
};
|
|
9591
|
+
Returns: undefined;
|
|
9592
|
+
};
|
|
8973
9593
|
refresh_floricode_derived_code_lists: {
|
|
8974
9594
|
Args: never;
|
|
8975
9595
|
Returns: {
|
|
@@ -8978,6 +9598,12 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
|
|
|
8978
9598
|
row_count: number;
|
|
8979
9599
|
}[];
|
|
8980
9600
|
};
|
|
9601
|
+
refresh_floricode_derived_for_product: {
|
|
9602
|
+
Args: {
|
|
9603
|
+
p_product_code: string;
|
|
9604
|
+
};
|
|
9605
|
+
Returns: number;
|
|
9606
|
+
};
|
|
8981
9607
|
reset_floriday_sync_cursor: {
|
|
8982
9608
|
Args: {
|
|
8983
9609
|
p_connection_id: string;
|
|
@@ -9301,6 +9927,7 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
9301
9927
|
max_workdays_earlier_pick: number;
|
|
9302
9928
|
pick_days_before_transport: number;
|
|
9303
9929
|
pick_distribution_enabled: boolean;
|
|
9930
|
+
pick_weekdays: number[];
|
|
9304
9931
|
signup_mail_enabled: boolean;
|
|
9305
9932
|
signup_mail_lead_minutes: number;
|
|
9306
9933
|
signup_mail_purpose: string;
|
|
@@ -9314,6 +9941,7 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
9314
9941
|
max_workdays_earlier_pick?: number;
|
|
9315
9942
|
pick_days_before_transport?: number;
|
|
9316
9943
|
pick_distribution_enabled?: boolean;
|
|
9944
|
+
pick_weekdays?: number[];
|
|
9317
9945
|
signup_mail_enabled?: boolean;
|
|
9318
9946
|
signup_mail_lead_minutes?: number;
|
|
9319
9947
|
signup_mail_purpose?: string;
|
|
@@ -9327,6 +9955,7 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
9327
9955
|
max_workdays_earlier_pick?: number;
|
|
9328
9956
|
pick_days_before_transport?: number;
|
|
9329
9957
|
pick_distribution_enabled?: boolean;
|
|
9958
|
+
pick_weekdays?: number[];
|
|
9330
9959
|
signup_mail_enabled?: boolean;
|
|
9331
9960
|
signup_mail_lead_minutes?: number;
|
|
9332
9961
|
signup_mail_purpose?: string;
|
|
@@ -9738,6 +10367,48 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
9738
10367
|
referencedColumns: ["id"];
|
|
9739
10368
|
}];
|
|
9740
10369
|
};
|
|
10370
|
+
carrier_signup_dispatch_runs: {
|
|
10371
|
+
Row: {
|
|
10372
|
+
detail: import("../integrations/supabase/types").Json | null;
|
|
10373
|
+
error: string | null;
|
|
10374
|
+
finished_at: string | null;
|
|
10375
|
+
groups: number;
|
|
10376
|
+
id: string;
|
|
10377
|
+
ok: boolean;
|
|
10378
|
+
reason: string | null;
|
|
10379
|
+
sent: number;
|
|
10380
|
+
skipped: import("../integrations/supabase/types").Json;
|
|
10381
|
+
started_at: string;
|
|
10382
|
+
unassigned: import("../integrations/supabase/types").Json;
|
|
10383
|
+
};
|
|
10384
|
+
Insert: {
|
|
10385
|
+
detail?: import("../integrations/supabase/types").Json | null;
|
|
10386
|
+
error?: string | null;
|
|
10387
|
+
finished_at?: string | null;
|
|
10388
|
+
groups?: number;
|
|
10389
|
+
id?: string;
|
|
10390
|
+
ok?: boolean;
|
|
10391
|
+
reason?: string | null;
|
|
10392
|
+
sent?: number;
|
|
10393
|
+
skipped?: import("../integrations/supabase/types").Json;
|
|
10394
|
+
started_at?: string;
|
|
10395
|
+
unassigned?: import("../integrations/supabase/types").Json;
|
|
10396
|
+
};
|
|
10397
|
+
Update: {
|
|
10398
|
+
detail?: import("../integrations/supabase/types").Json | null;
|
|
10399
|
+
error?: string | null;
|
|
10400
|
+
finished_at?: string | null;
|
|
10401
|
+
groups?: number;
|
|
10402
|
+
id?: string;
|
|
10403
|
+
ok?: boolean;
|
|
10404
|
+
reason?: string | null;
|
|
10405
|
+
sent?: number;
|
|
10406
|
+
skipped?: import("../integrations/supabase/types").Json;
|
|
10407
|
+
started_at?: string;
|
|
10408
|
+
unassigned?: import("../integrations/supabase/types").Json;
|
|
10409
|
+
};
|
|
10410
|
+
Relationships: [];
|
|
10411
|
+
};
|
|
9741
10412
|
carrier_signup_dispatches: {
|
|
9742
10413
|
Row: {
|
|
9743
10414
|
carrier_id: string;
|
|
@@ -9789,6 +10460,7 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
9789
10460
|
contact_person: string | null;
|
|
9790
10461
|
created_at: string;
|
|
9791
10462
|
delivery_days: number | null;
|
|
10463
|
+
delivery_weekdays: number[];
|
|
9792
10464
|
email: string | null;
|
|
9793
10465
|
id: string;
|
|
9794
10466
|
is_default: boolean;
|
|
@@ -9796,6 +10468,7 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
9796
10468
|
notes: string | null;
|
|
9797
10469
|
phone: string | null;
|
|
9798
10470
|
pickup_moments: import("../integrations/supabase/types").Json;
|
|
10471
|
+
pickup_weekdays: number[];
|
|
9799
10472
|
service_cities: string[];
|
|
9800
10473
|
service_countries: string[];
|
|
9801
10474
|
service_provinces: string[];
|
|
@@ -9811,6 +10484,7 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
9811
10484
|
contact_person?: string | null;
|
|
9812
10485
|
created_at?: string;
|
|
9813
10486
|
delivery_days?: number | null;
|
|
10487
|
+
delivery_weekdays?: number[];
|
|
9814
10488
|
email?: string | null;
|
|
9815
10489
|
id?: string;
|
|
9816
10490
|
is_default?: boolean;
|
|
@@ -9818,6 +10492,7 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
9818
10492
|
notes?: string | null;
|
|
9819
10493
|
phone?: string | null;
|
|
9820
10494
|
pickup_moments?: import("../integrations/supabase/types").Json;
|
|
10495
|
+
pickup_weekdays?: number[];
|
|
9821
10496
|
service_cities?: string[];
|
|
9822
10497
|
service_countries?: string[];
|
|
9823
10498
|
service_provinces?: string[];
|
|
@@ -9833,6 +10508,7 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
9833
10508
|
contact_person?: string | null;
|
|
9834
10509
|
created_at?: string;
|
|
9835
10510
|
delivery_days?: number | null;
|
|
10511
|
+
delivery_weekdays?: number[];
|
|
9836
10512
|
email?: string | null;
|
|
9837
10513
|
id?: string;
|
|
9838
10514
|
is_default?: boolean;
|
|
@@ -9840,6 +10516,7 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
9840
10516
|
notes?: string | null;
|
|
9841
10517
|
phone?: string | null;
|
|
9842
10518
|
pickup_moments?: import("../integrations/supabase/types").Json;
|
|
10519
|
+
pickup_weekdays?: number[];
|
|
9843
10520
|
service_cities?: string[];
|
|
9844
10521
|
service_countries?: string[];
|
|
9845
10522
|
service_provinces?: string[];
|
|
@@ -9852,33 +10529,204 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
9852
10529
|
};
|
|
9853
10530
|
Relationships: [];
|
|
9854
10531
|
};
|
|
9855
|
-
|
|
10532
|
+
cart_control_draft: {
|
|
9856
10533
|
Row: {
|
|
9857
|
-
|
|
9858
|
-
|
|
9859
|
-
|
|
9860
|
-
|
|
9861
|
-
notes: string
|
|
9862
|
-
order_id: string;
|
|
9863
|
-
order_source: string;
|
|
9864
|
-
pick_date: string;
|
|
9865
|
-
status: string;
|
|
10534
|
+
cart_states: import("../integrations/supabase/types").Json;
|
|
10535
|
+
checked_keys: import("../integrations/supabase/types").Json;
|
|
10536
|
+
draft_date: string;
|
|
10537
|
+
form_state: import("../integrations/supabase/types").Json;
|
|
10538
|
+
notes: string;
|
|
9866
10539
|
updated_at: string;
|
|
10540
|
+
user_id: string;
|
|
9867
10541
|
};
|
|
9868
10542
|
Insert: {
|
|
9869
|
-
|
|
9870
|
-
|
|
9871
|
-
|
|
9872
|
-
|
|
9873
|
-
notes?: string
|
|
9874
|
-
order_id: string;
|
|
9875
|
-
order_source: string;
|
|
9876
|
-
pick_date: string;
|
|
9877
|
-
status?: string;
|
|
10543
|
+
cart_states?: import("../integrations/supabase/types").Json;
|
|
10544
|
+
checked_keys?: import("../integrations/supabase/types").Json;
|
|
10545
|
+
draft_date: string;
|
|
10546
|
+
form_state?: import("../integrations/supabase/types").Json;
|
|
10547
|
+
notes?: string;
|
|
9878
10548
|
updated_at?: string;
|
|
10549
|
+
user_id: string;
|
|
9879
10550
|
};
|
|
9880
10551
|
Update: {
|
|
9881
|
-
|
|
10552
|
+
cart_states?: import("../integrations/supabase/types").Json;
|
|
10553
|
+
checked_keys?: import("../integrations/supabase/types").Json;
|
|
10554
|
+
draft_date?: string;
|
|
10555
|
+
form_state?: import("../integrations/supabase/types").Json;
|
|
10556
|
+
notes?: string;
|
|
10557
|
+
updated_at?: string;
|
|
10558
|
+
user_id?: string;
|
|
10559
|
+
};
|
|
10560
|
+
Relationships: [];
|
|
10561
|
+
};
|
|
10562
|
+
cart_control_items: {
|
|
10563
|
+
Row: {
|
|
10564
|
+
action: string;
|
|
10565
|
+
block_reason: string | null;
|
|
10566
|
+
carrier_name: string | null;
|
|
10567
|
+
cart_index: number;
|
|
10568
|
+
cart_number_id: string | null;
|
|
10569
|
+
cart_number_label: string | null;
|
|
10570
|
+
created_at: string;
|
|
10571
|
+
customer_name: string | null;
|
|
10572
|
+
delivery_date: string | null;
|
|
10573
|
+
id: string;
|
|
10574
|
+
new_pick_date: string | null;
|
|
10575
|
+
order_id: string;
|
|
10576
|
+
order_number: string | null;
|
|
10577
|
+
order_source: string;
|
|
10578
|
+
pickup_date: string | null;
|
|
10579
|
+
session_id: string;
|
|
10580
|
+
};
|
|
10581
|
+
Insert: {
|
|
10582
|
+
action: string;
|
|
10583
|
+
block_reason?: string | null;
|
|
10584
|
+
carrier_name?: string | null;
|
|
10585
|
+
cart_index: number;
|
|
10586
|
+
cart_number_id?: string | null;
|
|
10587
|
+
cart_number_label?: string | null;
|
|
10588
|
+
created_at?: string;
|
|
10589
|
+
customer_name?: string | null;
|
|
10590
|
+
delivery_date?: string | null;
|
|
10591
|
+
id?: string;
|
|
10592
|
+
new_pick_date?: string | null;
|
|
10593
|
+
order_id: string;
|
|
10594
|
+
order_number?: string | null;
|
|
10595
|
+
order_source: string;
|
|
10596
|
+
pickup_date?: string | null;
|
|
10597
|
+
session_id: string;
|
|
10598
|
+
};
|
|
10599
|
+
Update: {
|
|
10600
|
+
action?: string;
|
|
10601
|
+
block_reason?: string | null;
|
|
10602
|
+
carrier_name?: string | null;
|
|
10603
|
+
cart_index?: number;
|
|
10604
|
+
cart_number_id?: string | null;
|
|
10605
|
+
cart_number_label?: string | null;
|
|
10606
|
+
created_at?: string;
|
|
10607
|
+
customer_name?: string | null;
|
|
10608
|
+
delivery_date?: string | null;
|
|
10609
|
+
id?: string;
|
|
10610
|
+
new_pick_date?: string | null;
|
|
10611
|
+
order_id?: string;
|
|
10612
|
+
order_number?: string | null;
|
|
10613
|
+
order_source?: string;
|
|
10614
|
+
pickup_date?: string | null;
|
|
10615
|
+
session_id?: string;
|
|
10616
|
+
};
|
|
10617
|
+
Relationships: [{
|
|
10618
|
+
foreignKeyName: "cart_control_items_session_id_fkey";
|
|
10619
|
+
columns: ["session_id"];
|
|
10620
|
+
isOneToOne: false;
|
|
10621
|
+
referencedRelation: "cart_control_sessions";
|
|
10622
|
+
referencedColumns: ["id"];
|
|
10623
|
+
}];
|
|
10624
|
+
};
|
|
10625
|
+
cart_control_sessions: {
|
|
10626
|
+
Row: {
|
|
10627
|
+
blocked_count: number;
|
|
10628
|
+
checked_count: number;
|
|
10629
|
+
control_date: string;
|
|
10630
|
+
created_at: string;
|
|
10631
|
+
id: string;
|
|
10632
|
+
notes: string | null;
|
|
10633
|
+
performed_at: string;
|
|
10634
|
+
rescheduled_count: number;
|
|
10635
|
+
total_carts: number;
|
|
10636
|
+
updated_at: string;
|
|
10637
|
+
user_id: string;
|
|
10638
|
+
};
|
|
10639
|
+
Insert: {
|
|
10640
|
+
blocked_count?: number;
|
|
10641
|
+
checked_count?: number;
|
|
10642
|
+
control_date?: string;
|
|
10643
|
+
created_at?: string;
|
|
10644
|
+
id?: string;
|
|
10645
|
+
notes?: string | null;
|
|
10646
|
+
performed_at?: string;
|
|
10647
|
+
rescheduled_count?: number;
|
|
10648
|
+
total_carts?: number;
|
|
10649
|
+
updated_at?: string;
|
|
10650
|
+
user_id: string;
|
|
10651
|
+
};
|
|
10652
|
+
Update: {
|
|
10653
|
+
blocked_count?: number;
|
|
10654
|
+
checked_count?: number;
|
|
10655
|
+
control_date?: string;
|
|
10656
|
+
created_at?: string;
|
|
10657
|
+
id?: string;
|
|
10658
|
+
notes?: string | null;
|
|
10659
|
+
performed_at?: string;
|
|
10660
|
+
rescheduled_count?: number;
|
|
10661
|
+
total_carts?: number;
|
|
10662
|
+
updated_at?: string;
|
|
10663
|
+
user_id?: string;
|
|
10664
|
+
};
|
|
10665
|
+
Relationships: [];
|
|
10666
|
+
};
|
|
10667
|
+
cart_numbers: {
|
|
10668
|
+
Row: {
|
|
10669
|
+
assigned_at: string;
|
|
10670
|
+
cart_index: number;
|
|
10671
|
+
cart_number: string;
|
|
10672
|
+
day_seq: number;
|
|
10673
|
+
id: string;
|
|
10674
|
+
order_id: string;
|
|
10675
|
+
order_source: string;
|
|
10676
|
+
pick_date: string;
|
|
10677
|
+
status: string;
|
|
10678
|
+
};
|
|
10679
|
+
Insert: {
|
|
10680
|
+
assigned_at?: string;
|
|
10681
|
+
cart_index: number;
|
|
10682
|
+
cart_number: string;
|
|
10683
|
+
day_seq: number;
|
|
10684
|
+
id?: string;
|
|
10685
|
+
order_id: string;
|
|
10686
|
+
order_source: string;
|
|
10687
|
+
pick_date: string;
|
|
10688
|
+
status?: string;
|
|
10689
|
+
};
|
|
10690
|
+
Update: {
|
|
10691
|
+
assigned_at?: string;
|
|
10692
|
+
cart_index?: number;
|
|
10693
|
+
cart_number?: string;
|
|
10694
|
+
day_seq?: number;
|
|
10695
|
+
id?: string;
|
|
10696
|
+
order_id?: string;
|
|
10697
|
+
order_source?: string;
|
|
10698
|
+
pick_date?: string;
|
|
10699
|
+
status?: string;
|
|
10700
|
+
};
|
|
10701
|
+
Relationships: [];
|
|
10702
|
+
};
|
|
10703
|
+
cart_pick_overrides: {
|
|
10704
|
+
Row: {
|
|
10705
|
+
cart_index: number;
|
|
10706
|
+
created_at: string;
|
|
10707
|
+
id: string;
|
|
10708
|
+
moved_from_date: string | null;
|
|
10709
|
+
notes: string | null;
|
|
10710
|
+
order_id: string;
|
|
10711
|
+
order_source: string;
|
|
10712
|
+
pick_date: string;
|
|
10713
|
+
status: string;
|
|
10714
|
+
updated_at: string;
|
|
10715
|
+
};
|
|
10716
|
+
Insert: {
|
|
10717
|
+
cart_index: number;
|
|
10718
|
+
created_at?: string;
|
|
10719
|
+
id?: string;
|
|
10720
|
+
moved_from_date?: string | null;
|
|
10721
|
+
notes?: string | null;
|
|
10722
|
+
order_id: string;
|
|
10723
|
+
order_source: string;
|
|
10724
|
+
pick_date: string;
|
|
10725
|
+
status?: string;
|
|
10726
|
+
updated_at?: string;
|
|
10727
|
+
};
|
|
10728
|
+
Update: {
|
|
10729
|
+
cart_index?: number;
|
|
9882
10730
|
created_at?: string;
|
|
9883
10731
|
id?: string;
|
|
9884
10732
|
moved_from_date?: string | null;
|
|
@@ -10524,6 +11372,54 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
10524
11372
|
referencedColumns: ["id"];
|
|
10525
11373
|
}];
|
|
10526
11374
|
};
|
|
11375
|
+
dashboard_critical_alerts: {
|
|
11376
|
+
Row: {
|
|
11377
|
+
alert_key: string;
|
|
11378
|
+
alert_type: string;
|
|
11379
|
+
created_at: string;
|
|
11380
|
+
description: string | null;
|
|
11381
|
+
id: string;
|
|
11382
|
+
metadata: import("../integrations/supabase/types").Json | null;
|
|
11383
|
+
priority: string;
|
|
11384
|
+
raised_at: string;
|
|
11385
|
+
related_cart_ids: string[] | null;
|
|
11386
|
+
resolved_at: string | null;
|
|
11387
|
+
title: string;
|
|
11388
|
+
updated_at: string;
|
|
11389
|
+
user_id: string;
|
|
11390
|
+
};
|
|
11391
|
+
Insert: {
|
|
11392
|
+
alert_key: string;
|
|
11393
|
+
alert_type: string;
|
|
11394
|
+
created_at?: string;
|
|
11395
|
+
description?: string | null;
|
|
11396
|
+
id?: string;
|
|
11397
|
+
metadata?: import("../integrations/supabase/types").Json | null;
|
|
11398
|
+
priority?: string;
|
|
11399
|
+
raised_at?: string;
|
|
11400
|
+
related_cart_ids?: string[] | null;
|
|
11401
|
+
resolved_at?: string | null;
|
|
11402
|
+
title: string;
|
|
11403
|
+
updated_at?: string;
|
|
11404
|
+
user_id: string;
|
|
11405
|
+
};
|
|
11406
|
+
Update: {
|
|
11407
|
+
alert_key?: string;
|
|
11408
|
+
alert_type?: string;
|
|
11409
|
+
created_at?: string;
|
|
11410
|
+
description?: string | null;
|
|
11411
|
+
id?: string;
|
|
11412
|
+
metadata?: import("../integrations/supabase/types").Json | null;
|
|
11413
|
+
priority?: string;
|
|
11414
|
+
raised_at?: string;
|
|
11415
|
+
related_cart_ids?: string[] | null;
|
|
11416
|
+
resolved_at?: string | null;
|
|
11417
|
+
title?: string;
|
|
11418
|
+
updated_at?: string;
|
|
11419
|
+
user_id?: string;
|
|
11420
|
+
};
|
|
11421
|
+
Relationships: [];
|
|
11422
|
+
};
|
|
10527
11423
|
dashboard_daily_reports: {
|
|
10528
11424
|
Row: {
|
|
10529
11425
|
created_at: string;
|
|
@@ -12026,6 +12922,7 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
12026
12922
|
};
|
|
12027
12923
|
floricode_sync_state: {
|
|
12028
12924
|
Row: {
|
|
12925
|
+
cursor_skip: number;
|
|
12029
12926
|
error_message: string | null;
|
|
12030
12927
|
last_change_date_time: string | null;
|
|
12031
12928
|
last_sequence_number: number;
|
|
@@ -12035,6 +12932,7 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
12035
12932
|
updated_at: string;
|
|
12036
12933
|
};
|
|
12037
12934
|
Insert: {
|
|
12935
|
+
cursor_skip?: number;
|
|
12038
12936
|
error_message?: string | null;
|
|
12039
12937
|
last_change_date_time?: string | null;
|
|
12040
12938
|
last_sequence_number?: number;
|
|
@@ -12044,6 +12942,7 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
12044
12942
|
updated_at?: string;
|
|
12045
12943
|
};
|
|
12046
12944
|
Update: {
|
|
12945
|
+
cursor_skip?: number;
|
|
12047
12946
|
error_message?: string | null;
|
|
12048
12947
|
last_change_date_time?: string | null;
|
|
12049
12948
|
last_sequence_number?: number;
|
|
@@ -14391,6 +15290,93 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
14391
15290
|
};
|
|
14392
15291
|
Relationships: [];
|
|
14393
15292
|
};
|
|
15293
|
+
manufacture_product_components: {
|
|
15294
|
+
Row: {
|
|
15295
|
+
component_type: string;
|
|
15296
|
+
created_at: string;
|
|
15297
|
+
id: string;
|
|
15298
|
+
manufacture_product_id: string;
|
|
15299
|
+
product_group_id: string | null;
|
|
15300
|
+
quantity: number;
|
|
15301
|
+
trade_item_id: string | null;
|
|
15302
|
+
unit: string;
|
|
15303
|
+
};
|
|
15304
|
+
Insert: {
|
|
15305
|
+
component_type: string;
|
|
15306
|
+
created_at?: string;
|
|
15307
|
+
id?: string;
|
|
15308
|
+
manufacture_product_id: string;
|
|
15309
|
+
product_group_id?: string | null;
|
|
15310
|
+
quantity?: number;
|
|
15311
|
+
trade_item_id?: string | null;
|
|
15312
|
+
unit?: string;
|
|
15313
|
+
};
|
|
15314
|
+
Update: {
|
|
15315
|
+
component_type?: string;
|
|
15316
|
+
created_at?: string;
|
|
15317
|
+
id?: string;
|
|
15318
|
+
manufacture_product_id?: string;
|
|
15319
|
+
product_group_id?: string | null;
|
|
15320
|
+
quantity?: number;
|
|
15321
|
+
trade_item_id?: string | null;
|
|
15322
|
+
unit?: string;
|
|
15323
|
+
};
|
|
15324
|
+
Relationships: [{
|
|
15325
|
+
foreignKeyName: "manufacture_product_components_manufacture_product_id_fkey";
|
|
15326
|
+
columns: ["manufacture_product_id"];
|
|
15327
|
+
isOneToOne: false;
|
|
15328
|
+
referencedRelation: "manufacture_product_possible_stock_view";
|
|
15329
|
+
referencedColumns: ["manufacture_product_id"];
|
|
15330
|
+
}, {
|
|
15331
|
+
foreignKeyName: "manufacture_product_components_manufacture_product_id_fkey";
|
|
15332
|
+
columns: ["manufacture_product_id"];
|
|
15333
|
+
isOneToOne: false;
|
|
15334
|
+
referencedRelation: "manufacture_products";
|
|
15335
|
+
referencedColumns: ["id"];
|
|
15336
|
+
}, {
|
|
15337
|
+
foreignKeyName: "manufacture_product_components_product_group_id_fkey";
|
|
15338
|
+
columns: ["product_group_id"];
|
|
15339
|
+
isOneToOne: false;
|
|
15340
|
+
referencedRelation: "product_groups";
|
|
15341
|
+
referencedColumns: ["id"];
|
|
15342
|
+
}];
|
|
15343
|
+
};
|
|
15344
|
+
manufacture_products: {
|
|
15345
|
+
Row: {
|
|
15346
|
+
created_at: string;
|
|
15347
|
+
description: string | null;
|
|
15348
|
+
id: string;
|
|
15349
|
+
is_active: boolean;
|
|
15350
|
+
name: string;
|
|
15351
|
+
produced_stock: number;
|
|
15352
|
+
product_code: string;
|
|
15353
|
+
tenant_id: string;
|
|
15354
|
+
updated_at: string;
|
|
15355
|
+
};
|
|
15356
|
+
Insert: {
|
|
15357
|
+
created_at?: string;
|
|
15358
|
+
description?: string | null;
|
|
15359
|
+
id?: string;
|
|
15360
|
+
is_active?: boolean;
|
|
15361
|
+
name: string;
|
|
15362
|
+
produced_stock?: number;
|
|
15363
|
+
product_code: string;
|
|
15364
|
+
tenant_id: string;
|
|
15365
|
+
updated_at?: string;
|
|
15366
|
+
};
|
|
15367
|
+
Update: {
|
|
15368
|
+
created_at?: string;
|
|
15369
|
+
description?: string | null;
|
|
15370
|
+
id?: string;
|
|
15371
|
+
is_active?: boolean;
|
|
15372
|
+
name?: string;
|
|
15373
|
+
produced_stock?: number;
|
|
15374
|
+
product_code?: string;
|
|
15375
|
+
tenant_id?: string;
|
|
15376
|
+
updated_at?: string;
|
|
15377
|
+
};
|
|
15378
|
+
Relationships: [];
|
|
15379
|
+
};
|
|
14394
15380
|
monteurs: {
|
|
14395
15381
|
Row: {
|
|
14396
15382
|
avatar_url: string | null;
|
|
@@ -15351,65 +16337,125 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
15351
16337
|
};
|
|
15352
16338
|
Relationships: [];
|
|
15353
16339
|
};
|
|
15354
|
-
|
|
16340
|
+
product_group_items: {
|
|
15355
16341
|
Row: {
|
|
15356
|
-
barcode: string | null;
|
|
15357
|
-
batch: string;
|
|
15358
|
-
crates_per_layer: number;
|
|
15359
16342
|
created_at: string;
|
|
15360
|
-
custom_fields: import("../integrations/supabase/types").Json;
|
|
15361
16343
|
id: string;
|
|
15362
|
-
|
|
15363
|
-
incoming_quantity: number;
|
|
15364
|
-
layers_per_cart: number;
|
|
15365
|
-
location: string;
|
|
15366
|
-
min_quantity: number;
|
|
15367
|
-
plants_per_crate: number;
|
|
15368
|
-
product: string;
|
|
15369
|
-
product_type: string;
|
|
15370
|
-
purchase_price: number | null;
|
|
16344
|
+
product_group_id: string;
|
|
15371
16345
|
quantity: number;
|
|
15372
|
-
|
|
15373
|
-
unit: string;
|
|
15374
|
-
updated_at: string;
|
|
15375
|
-
weight: string | null;
|
|
16346
|
+
trade_item_id: string;
|
|
15376
16347
|
};
|
|
15377
16348
|
Insert: {
|
|
15378
|
-
barcode?: string | null;
|
|
15379
|
-
batch: string;
|
|
15380
|
-
crates_per_layer?: number;
|
|
15381
16349
|
created_at?: string;
|
|
15382
|
-
custom_fields?: import("../integrations/supabase/types").Json;
|
|
15383
16350
|
id?: string;
|
|
15384
|
-
|
|
15385
|
-
incoming_quantity?: number;
|
|
15386
|
-
layers_per_cart?: number;
|
|
15387
|
-
location: string;
|
|
15388
|
-
min_quantity?: number;
|
|
15389
|
-
plants_per_crate?: number;
|
|
15390
|
-
product: string;
|
|
15391
|
-
product_type?: string;
|
|
15392
|
-
purchase_price?: number | null;
|
|
16351
|
+
product_group_id: string;
|
|
15393
16352
|
quantity?: number;
|
|
15394
|
-
|
|
15395
|
-
unit?: string;
|
|
15396
|
-
updated_at?: string;
|
|
15397
|
-
weight?: string | null;
|
|
16353
|
+
trade_item_id: string;
|
|
15398
16354
|
};
|
|
15399
16355
|
Update: {
|
|
15400
|
-
barcode?: string | null;
|
|
15401
|
-
batch?: string;
|
|
15402
|
-
crates_per_layer?: number;
|
|
15403
16356
|
created_at?: string;
|
|
15404
|
-
custom_fields?: import("../integrations/supabase/types").Json;
|
|
15405
16357
|
id?: string;
|
|
15406
|
-
|
|
15407
|
-
|
|
15408
|
-
|
|
15409
|
-
|
|
15410
|
-
|
|
15411
|
-
|
|
15412
|
-
|
|
16358
|
+
product_group_id?: string;
|
|
16359
|
+
quantity?: number;
|
|
16360
|
+
trade_item_id?: string;
|
|
16361
|
+
};
|
|
16362
|
+
Relationships: [{
|
|
16363
|
+
foreignKeyName: "product_group_items_product_group_id_fkey";
|
|
16364
|
+
columns: ["product_group_id"];
|
|
16365
|
+
isOneToOne: false;
|
|
16366
|
+
referencedRelation: "product_groups";
|
|
16367
|
+
referencedColumns: ["id"];
|
|
16368
|
+
}];
|
|
16369
|
+
};
|
|
16370
|
+
product_groups: {
|
|
16371
|
+
Row: {
|
|
16372
|
+
created_at: string;
|
|
16373
|
+
description: string | null;
|
|
16374
|
+
id: string;
|
|
16375
|
+
is_active: boolean;
|
|
16376
|
+
name: string;
|
|
16377
|
+
tenant_id: string;
|
|
16378
|
+
updated_at: string;
|
|
16379
|
+
};
|
|
16380
|
+
Insert: {
|
|
16381
|
+
created_at?: string;
|
|
16382
|
+
description?: string | null;
|
|
16383
|
+
id?: string;
|
|
16384
|
+
is_active?: boolean;
|
|
16385
|
+
name: string;
|
|
16386
|
+
tenant_id: string;
|
|
16387
|
+
updated_at?: string;
|
|
16388
|
+
};
|
|
16389
|
+
Update: {
|
|
16390
|
+
created_at?: string;
|
|
16391
|
+
description?: string | null;
|
|
16392
|
+
id?: string;
|
|
16393
|
+
is_active?: boolean;
|
|
16394
|
+
name?: string;
|
|
16395
|
+
tenant_id?: string;
|
|
16396
|
+
updated_at?: string;
|
|
16397
|
+
};
|
|
16398
|
+
Relationships: [];
|
|
16399
|
+
};
|
|
16400
|
+
products: {
|
|
16401
|
+
Row: {
|
|
16402
|
+
barcode: string | null;
|
|
16403
|
+
batch: string;
|
|
16404
|
+
crates_per_layer: number;
|
|
16405
|
+
created_at: string;
|
|
16406
|
+
custom_fields: import("../integrations/supabase/types").Json;
|
|
16407
|
+
id: string;
|
|
16408
|
+
image_url: string | null;
|
|
16409
|
+
incoming_quantity: number;
|
|
16410
|
+
layers_per_cart: number;
|
|
16411
|
+
location: string;
|
|
16412
|
+
min_quantity: number;
|
|
16413
|
+
plants_per_crate: number;
|
|
16414
|
+
product: string;
|
|
16415
|
+
product_type: string;
|
|
16416
|
+
purchase_price: number | null;
|
|
16417
|
+
quantity: number;
|
|
16418
|
+
sale_price: number | null;
|
|
16419
|
+
unit: string;
|
|
16420
|
+
updated_at: string;
|
|
16421
|
+
weight: string | null;
|
|
16422
|
+
};
|
|
16423
|
+
Insert: {
|
|
16424
|
+
barcode?: string | null;
|
|
16425
|
+
batch: string;
|
|
16426
|
+
crates_per_layer?: number;
|
|
16427
|
+
created_at?: string;
|
|
16428
|
+
custom_fields?: import("../integrations/supabase/types").Json;
|
|
16429
|
+
id?: string;
|
|
16430
|
+
image_url?: string | null;
|
|
16431
|
+
incoming_quantity?: number;
|
|
16432
|
+
layers_per_cart?: number;
|
|
16433
|
+
location: string;
|
|
16434
|
+
min_quantity?: number;
|
|
16435
|
+
plants_per_crate?: number;
|
|
16436
|
+
product: string;
|
|
16437
|
+
product_type?: string;
|
|
16438
|
+
purchase_price?: number | null;
|
|
16439
|
+
quantity?: number;
|
|
16440
|
+
sale_price?: number | null;
|
|
16441
|
+
unit?: string;
|
|
16442
|
+
updated_at?: string;
|
|
16443
|
+
weight?: string | null;
|
|
16444
|
+
};
|
|
16445
|
+
Update: {
|
|
16446
|
+
barcode?: string | null;
|
|
16447
|
+
batch?: string;
|
|
16448
|
+
crates_per_layer?: number;
|
|
16449
|
+
created_at?: string;
|
|
16450
|
+
custom_fields?: import("../integrations/supabase/types").Json;
|
|
16451
|
+
id?: string;
|
|
16452
|
+
image_url?: string | null;
|
|
16453
|
+
incoming_quantity?: number;
|
|
16454
|
+
layers_per_cart?: number;
|
|
16455
|
+
location?: string;
|
|
16456
|
+
min_quantity?: number;
|
|
16457
|
+
plants_per_crate?: number;
|
|
16458
|
+
product?: string;
|
|
15413
16459
|
product_type?: string;
|
|
15414
16460
|
purchase_price?: number | null;
|
|
15415
16461
|
quantity?: number;
|
|
@@ -16490,7 +17536,13 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
16490
17536
|
connection_id: string | null;
|
|
16491
17537
|
created_at: string;
|
|
16492
17538
|
data: import("../integrations/supabase/types").Json;
|
|
17539
|
+
floriday_id: string | null;
|
|
17540
|
+
floriday_link_error: string | null;
|
|
17541
|
+
floriday_link_status: string;
|
|
16493
17542
|
id: string;
|
|
17543
|
+
last_floriday_sync_at: string | null;
|
|
17544
|
+
missing_required_fields: string[];
|
|
17545
|
+
source: string;
|
|
16494
17546
|
updated_at: string;
|
|
16495
17547
|
user_id: string;
|
|
16496
17548
|
};
|
|
@@ -16498,7 +17550,13 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
16498
17550
|
connection_id?: string | null;
|
|
16499
17551
|
created_at?: string;
|
|
16500
17552
|
data?: import("../integrations/supabase/types").Json;
|
|
17553
|
+
floriday_id?: string | null;
|
|
17554
|
+
floriday_link_error?: string | null;
|
|
17555
|
+
floriday_link_status?: string;
|
|
16501
17556
|
id?: string;
|
|
17557
|
+
last_floriday_sync_at?: string | null;
|
|
17558
|
+
missing_required_fields?: string[];
|
|
17559
|
+
source?: string;
|
|
16502
17560
|
updated_at?: string;
|
|
16503
17561
|
user_id: string;
|
|
16504
17562
|
};
|
|
@@ -16506,7 +17564,55 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
16506
17564
|
connection_id?: string | null;
|
|
16507
17565
|
created_at?: string;
|
|
16508
17566
|
data?: import("../integrations/supabase/types").Json;
|
|
17567
|
+
floriday_id?: string | null;
|
|
17568
|
+
floriday_link_error?: string | null;
|
|
17569
|
+
floriday_link_status?: string;
|
|
16509
17570
|
id?: string;
|
|
17571
|
+
last_floriday_sync_at?: string | null;
|
|
17572
|
+
missing_required_fields?: string[];
|
|
17573
|
+
source?: string;
|
|
17574
|
+
updated_at?: string;
|
|
17575
|
+
user_id?: string;
|
|
17576
|
+
};
|
|
17577
|
+
Relationships: [];
|
|
17578
|
+
};
|
|
17579
|
+
trade_item_stock: {
|
|
17580
|
+
Row: {
|
|
17581
|
+
connection_id: string;
|
|
17582
|
+
created_at: string;
|
|
17583
|
+
id: string;
|
|
17584
|
+
incoming_stock: number;
|
|
17585
|
+
minimum_stock: number;
|
|
17586
|
+
notes: string | null;
|
|
17587
|
+
physical_stock: number;
|
|
17588
|
+
reserved_stock: number;
|
|
17589
|
+
trade_item_key: string;
|
|
17590
|
+
updated_at: string;
|
|
17591
|
+
user_id: string;
|
|
17592
|
+
};
|
|
17593
|
+
Insert: {
|
|
17594
|
+
connection_id: string;
|
|
17595
|
+
created_at?: string;
|
|
17596
|
+
id?: string;
|
|
17597
|
+
incoming_stock?: number;
|
|
17598
|
+
minimum_stock?: number;
|
|
17599
|
+
notes?: string | null;
|
|
17600
|
+
physical_stock?: number;
|
|
17601
|
+
reserved_stock?: number;
|
|
17602
|
+
trade_item_key: string;
|
|
17603
|
+
updated_at?: string;
|
|
17604
|
+
user_id: string;
|
|
17605
|
+
};
|
|
17606
|
+
Update: {
|
|
17607
|
+
connection_id?: string;
|
|
17608
|
+
created_at?: string;
|
|
17609
|
+
id?: string;
|
|
17610
|
+
incoming_stock?: number;
|
|
17611
|
+
minimum_stock?: number;
|
|
17612
|
+
notes?: string | null;
|
|
17613
|
+
physical_stock?: number;
|
|
17614
|
+
reserved_stock?: number;
|
|
17615
|
+
trade_item_key?: string;
|
|
16510
17616
|
updated_at?: string;
|
|
16511
17617
|
user_id?: string;
|
|
16512
17618
|
};
|
|
@@ -16856,6 +17962,7 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
16856
17962
|
};
|
|
16857
17963
|
twinfield_invoice_sync_logs: {
|
|
16858
17964
|
Row: {
|
|
17965
|
+
action_type: string | null;
|
|
16859
17966
|
created_at: string;
|
|
16860
17967
|
details: import("../integrations/supabase/types").Json | null;
|
|
16861
17968
|
duration_ms: number | null;
|
|
@@ -16868,6 +17975,7 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
16868
17975
|
user_id: string;
|
|
16869
17976
|
};
|
|
16870
17977
|
Insert: {
|
|
17978
|
+
action_type?: string | null;
|
|
16871
17979
|
created_at?: string;
|
|
16872
17980
|
details?: import("../integrations/supabase/types").Json | null;
|
|
16873
17981
|
duration_ms?: number | null;
|
|
@@ -16880,6 +17988,7 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
16880
17988
|
user_id: string;
|
|
16881
17989
|
};
|
|
16882
17990
|
Update: {
|
|
17991
|
+
action_type?: string | null;
|
|
16883
17992
|
created_at?: string;
|
|
16884
17993
|
details?: import("../integrations/supabase/types").Json | null;
|
|
16885
17994
|
duration_ms?: number | null;
|
|
@@ -17115,6 +18224,57 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
17115
18224
|
referencedColumns: ["id"];
|
|
17116
18225
|
}];
|
|
17117
18226
|
};
|
|
18227
|
+
twinfield_request_metrics: {
|
|
18228
|
+
Row: {
|
|
18229
|
+
bucket_hour: string;
|
|
18230
|
+
connection_id: string;
|
|
18231
|
+
error_count: number;
|
|
18232
|
+
rate_limited_count: number;
|
|
18233
|
+
request_count: number;
|
|
18234
|
+
updated_at: string;
|
|
18235
|
+
};
|
|
18236
|
+
Insert: {
|
|
18237
|
+
bucket_hour: string;
|
|
18238
|
+
connection_id: string;
|
|
18239
|
+
error_count?: number;
|
|
18240
|
+
rate_limited_count?: number;
|
|
18241
|
+
request_count?: number;
|
|
18242
|
+
updated_at?: string;
|
|
18243
|
+
};
|
|
18244
|
+
Update: {
|
|
18245
|
+
bucket_hour?: string;
|
|
18246
|
+
connection_id?: string;
|
|
18247
|
+
error_count?: number;
|
|
18248
|
+
rate_limited_count?: number;
|
|
18249
|
+
request_count?: number;
|
|
18250
|
+
updated_at?: string;
|
|
18251
|
+
};
|
|
18252
|
+
Relationships: [];
|
|
18253
|
+
};
|
|
18254
|
+
twinfield_session_cache: {
|
|
18255
|
+
Row: {
|
|
18256
|
+
cluster: string;
|
|
18257
|
+
created_at: string;
|
|
18258
|
+
expires_at: string;
|
|
18259
|
+
session_id: string;
|
|
18260
|
+
user_id: string;
|
|
18261
|
+
};
|
|
18262
|
+
Insert: {
|
|
18263
|
+
cluster: string;
|
|
18264
|
+
created_at?: string;
|
|
18265
|
+
expires_at: string;
|
|
18266
|
+
session_id: string;
|
|
18267
|
+
user_id: string;
|
|
18268
|
+
};
|
|
18269
|
+
Update: {
|
|
18270
|
+
cluster?: string;
|
|
18271
|
+
created_at?: string;
|
|
18272
|
+
expires_at?: string;
|
|
18273
|
+
session_id?: string;
|
|
18274
|
+
user_id?: string;
|
|
18275
|
+
};
|
|
18276
|
+
Relationships: [];
|
|
18277
|
+
};
|
|
17118
18278
|
twinfield_settings: {
|
|
17119
18279
|
Row: {
|
|
17120
18280
|
active_environment: string;
|
|
@@ -17696,6 +18856,35 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
17696
18856
|
};
|
|
17697
18857
|
Relationships: [];
|
|
17698
18858
|
};
|
|
18859
|
+
manufacture_product_possible_stock_view: {
|
|
18860
|
+
Row: {
|
|
18861
|
+
component_count: number | null;
|
|
18862
|
+
manufacture_product_id: string | null;
|
|
18863
|
+
possible_stock: number | null;
|
|
18864
|
+
};
|
|
18865
|
+
Relationships: [];
|
|
18866
|
+
};
|
|
18867
|
+
product_group_stock_view: {
|
|
18868
|
+
Row: {
|
|
18869
|
+
item_count: number | null;
|
|
18870
|
+
product_group_id: string | null;
|
|
18871
|
+
total_stock: number | null;
|
|
18872
|
+
};
|
|
18873
|
+
Relationships: [{
|
|
18874
|
+
foreignKeyName: "product_group_items_product_group_id_fkey";
|
|
18875
|
+
columns: ["product_group_id"];
|
|
18876
|
+
isOneToOne: false;
|
|
18877
|
+
referencedRelation: "product_groups";
|
|
18878
|
+
referencedColumns: ["id"];
|
|
18879
|
+
}];
|
|
18880
|
+
};
|
|
18881
|
+
trade_item_stock_view: {
|
|
18882
|
+
Row: {
|
|
18883
|
+
stock: number | null;
|
|
18884
|
+
trade_item_id: string | null;
|
|
18885
|
+
};
|
|
18886
|
+
Relationships: [];
|
|
18887
|
+
};
|
|
17699
18888
|
v_external_customers_exact: {
|
|
17700
18889
|
Row: {
|
|
17701
18890
|
account_number: string | null;
|
|
@@ -17951,6 +19140,20 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
17951
19140
|
};
|
|
17952
19141
|
Returns: number;
|
|
17953
19142
|
};
|
|
19143
|
+
assign_cart_numbers: {
|
|
19144
|
+
Args: {
|
|
19145
|
+
p_carts: import("../integrations/supabase/types").Json;
|
|
19146
|
+
};
|
|
19147
|
+
Returns: {
|
|
19148
|
+
cart_index: number;
|
|
19149
|
+
cart_number: string;
|
|
19150
|
+
day_seq: number;
|
|
19151
|
+
order_id: string;
|
|
19152
|
+
order_source: string;
|
|
19153
|
+
pick_date: string;
|
|
19154
|
+
status: string;
|
|
19155
|
+
}[];
|
|
19156
|
+
};
|
|
17954
19157
|
assign_floriday_order_numbers: {
|
|
17955
19158
|
Args: {
|
|
17956
19159
|
p_ids: string[];
|
|
@@ -17970,10 +19173,37 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
17970
19173
|
Args: never;
|
|
17971
19174
|
Returns: number;
|
|
17972
19175
|
};
|
|
19176
|
+
control_get_todays_carts: {
|
|
19177
|
+
Args: never;
|
|
19178
|
+
Returns: {
|
|
19179
|
+
cart_index: number;
|
|
19180
|
+
cart_number: string;
|
|
19181
|
+
cart_number_id: string;
|
|
19182
|
+
order_id: string;
|
|
19183
|
+
order_source: string;
|
|
19184
|
+
pick_date: string;
|
|
19185
|
+
status: string;
|
|
19186
|
+
}[];
|
|
19187
|
+
};
|
|
19188
|
+
count_distinct_regulatory_products: {
|
|
19189
|
+
Args: never;
|
|
19190
|
+
Returns: number;
|
|
19191
|
+
};
|
|
17973
19192
|
current_monteur_id: {
|
|
17974
19193
|
Args: never;
|
|
17975
19194
|
Returns: string;
|
|
17976
19195
|
};
|
|
19196
|
+
dashboard_alert_counts: {
|
|
19197
|
+
Args: never;
|
|
19198
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
19199
|
+
};
|
|
19200
|
+
dashboard_alert_rows: {
|
|
19201
|
+
Args: {
|
|
19202
|
+
check_id: string;
|
|
19203
|
+
row_limit?: number;
|
|
19204
|
+
};
|
|
19205
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
19206
|
+
};
|
|
17977
19207
|
dashboard_list_public_schema: {
|
|
17978
19208
|
Args: never;
|
|
17979
19209
|
Returns: {
|
|
@@ -18054,6 +19284,13 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
18054
19284
|
};
|
|
18055
19285
|
Returns: boolean;
|
|
18056
19286
|
};
|
|
19287
|
+
format_cart_number: {
|
|
19288
|
+
Args: {
|
|
19289
|
+
p_pick_date: string;
|
|
19290
|
+
p_seq: number;
|
|
19291
|
+
};
|
|
19292
|
+
Returns: string;
|
|
19293
|
+
};
|
|
18057
19294
|
get_active_floriday_connection_public: {
|
|
18058
19295
|
Args: never;
|
|
18059
19296
|
Returns: {
|
|
@@ -18258,6 +19495,15 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
18258
19495
|
};
|
|
18259
19496
|
Returns: undefined;
|
|
18260
19497
|
};
|
|
19498
|
+
pickstation_set_cart_status: {
|
|
19499
|
+
Args: {
|
|
19500
|
+
p_cart_index: number;
|
|
19501
|
+
p_order_id: string;
|
|
19502
|
+
p_order_source: string;
|
|
19503
|
+
p_status: string;
|
|
19504
|
+
};
|
|
19505
|
+
Returns: undefined;
|
|
19506
|
+
};
|
|
18261
19507
|
refresh_floricode_derived_code_lists: {
|
|
18262
19508
|
Args: never;
|
|
18263
19509
|
Returns: {
|
|
@@ -18266,6 +19512,12 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
18266
19512
|
row_count: number;
|
|
18267
19513
|
}[];
|
|
18268
19514
|
};
|
|
19515
|
+
refresh_floricode_derived_for_product: {
|
|
19516
|
+
Args: {
|
|
19517
|
+
p_product_code: string;
|
|
19518
|
+
};
|
|
19519
|
+
Returns: number;
|
|
19520
|
+
};
|
|
18269
19521
|
reset_floriday_sync_cursor: {
|
|
18270
19522
|
Args: {
|
|
18271
19523
|
p_connection_id: string;
|
|
@@ -18599,6 +19851,7 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
|
|
|
18599
19851
|
max_workdays_earlier_pick: number;
|
|
18600
19852
|
pick_days_before_transport: number;
|
|
18601
19853
|
pick_distribution_enabled: boolean;
|
|
19854
|
+
pick_weekdays: number[];
|
|
18602
19855
|
signup_mail_enabled: boolean;
|
|
18603
19856
|
signup_mail_lead_minutes: number;
|
|
18604
19857
|
signup_mail_purpose: string;
|
|
@@ -18612,6 +19865,7 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
|
|
|
18612
19865
|
max_workdays_earlier_pick?: number;
|
|
18613
19866
|
pick_days_before_transport?: number;
|
|
18614
19867
|
pick_distribution_enabled?: boolean;
|
|
19868
|
+
pick_weekdays?: number[];
|
|
18615
19869
|
signup_mail_enabled?: boolean;
|
|
18616
19870
|
signup_mail_lead_minutes?: number;
|
|
18617
19871
|
signup_mail_purpose?: string;
|
|
@@ -18625,6 +19879,7 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
|
|
|
18625
19879
|
max_workdays_earlier_pick?: number;
|
|
18626
19880
|
pick_days_before_transport?: number;
|
|
18627
19881
|
pick_distribution_enabled?: boolean;
|
|
19882
|
+
pick_weekdays?: number[];
|
|
18628
19883
|
signup_mail_enabled?: boolean;
|
|
18629
19884
|
signup_mail_lead_minutes?: number;
|
|
18630
19885
|
signup_mail_purpose?: string;
|
|
@@ -19036,6 +20291,48 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
|
|
|
19036
20291
|
referencedColumns: ["id"];
|
|
19037
20292
|
}];
|
|
19038
20293
|
};
|
|
20294
|
+
carrier_signup_dispatch_runs: {
|
|
20295
|
+
Row: {
|
|
20296
|
+
detail: import("../integrations/supabase/types").Json | null;
|
|
20297
|
+
error: string | null;
|
|
20298
|
+
finished_at: string | null;
|
|
20299
|
+
groups: number;
|
|
20300
|
+
id: string;
|
|
20301
|
+
ok: boolean;
|
|
20302
|
+
reason: string | null;
|
|
20303
|
+
sent: number;
|
|
20304
|
+
skipped: import("../integrations/supabase/types").Json;
|
|
20305
|
+
started_at: string;
|
|
20306
|
+
unassigned: import("../integrations/supabase/types").Json;
|
|
20307
|
+
};
|
|
20308
|
+
Insert: {
|
|
20309
|
+
detail?: import("../integrations/supabase/types").Json | null;
|
|
20310
|
+
error?: string | null;
|
|
20311
|
+
finished_at?: string | null;
|
|
20312
|
+
groups?: number;
|
|
20313
|
+
id?: string;
|
|
20314
|
+
ok?: boolean;
|
|
20315
|
+
reason?: string | null;
|
|
20316
|
+
sent?: number;
|
|
20317
|
+
skipped?: import("../integrations/supabase/types").Json;
|
|
20318
|
+
started_at?: string;
|
|
20319
|
+
unassigned?: import("../integrations/supabase/types").Json;
|
|
20320
|
+
};
|
|
20321
|
+
Update: {
|
|
20322
|
+
detail?: import("../integrations/supabase/types").Json | null;
|
|
20323
|
+
error?: string | null;
|
|
20324
|
+
finished_at?: string | null;
|
|
20325
|
+
groups?: number;
|
|
20326
|
+
id?: string;
|
|
20327
|
+
ok?: boolean;
|
|
20328
|
+
reason?: string | null;
|
|
20329
|
+
sent?: number;
|
|
20330
|
+
skipped?: import("../integrations/supabase/types").Json;
|
|
20331
|
+
started_at?: string;
|
|
20332
|
+
unassigned?: import("../integrations/supabase/types").Json;
|
|
20333
|
+
};
|
|
20334
|
+
Relationships: [];
|
|
20335
|
+
};
|
|
19039
20336
|
carrier_signup_dispatches: {
|
|
19040
20337
|
Row: {
|
|
19041
20338
|
carrier_id: string;
|
|
@@ -19087,6 +20384,7 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
|
|
|
19087
20384
|
contact_person: string | null;
|
|
19088
20385
|
created_at: string;
|
|
19089
20386
|
delivery_days: number | null;
|
|
20387
|
+
delivery_weekdays: number[];
|
|
19090
20388
|
email: string | null;
|
|
19091
20389
|
id: string;
|
|
19092
20390
|
is_default: boolean;
|
|
@@ -19094,6 +20392,7 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
|
|
|
19094
20392
|
notes: string | null;
|
|
19095
20393
|
phone: string | null;
|
|
19096
20394
|
pickup_moments: import("../integrations/supabase/types").Json;
|
|
20395
|
+
pickup_weekdays: number[];
|
|
19097
20396
|
service_cities: string[];
|
|
19098
20397
|
service_countries: string[];
|
|
19099
20398
|
service_provinces: string[];
|
|
@@ -19109,6 +20408,7 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
|
|
|
19109
20408
|
contact_person?: string | null;
|
|
19110
20409
|
created_at?: string;
|
|
19111
20410
|
delivery_days?: number | null;
|
|
20411
|
+
delivery_weekdays?: number[];
|
|
19112
20412
|
email?: string | null;
|
|
19113
20413
|
id?: string;
|
|
19114
20414
|
is_default?: boolean;
|
|
@@ -19116,6 +20416,7 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
|
|
|
19116
20416
|
notes?: string | null;
|
|
19117
20417
|
phone?: string | null;
|
|
19118
20418
|
pickup_moments?: import("../integrations/supabase/types").Json;
|
|
20419
|
+
pickup_weekdays?: number[];
|
|
19119
20420
|
service_cities?: string[];
|
|
19120
20421
|
service_countries?: string[];
|
|
19121
20422
|
service_provinces?: string[];
|
|
@@ -19131,6 +20432,7 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
|
|
|
19131
20432
|
contact_person?: string | null;
|
|
19132
20433
|
created_at?: string;
|
|
19133
20434
|
delivery_days?: number | null;
|
|
20435
|
+
delivery_weekdays?: number[];
|
|
19134
20436
|
email?: string | null;
|
|
19135
20437
|
id?: string;
|
|
19136
20438
|
is_default?: boolean;
|
|
@@ -19138,6 +20440,7 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
|
|
|
19138
20440
|
notes?: string | null;
|
|
19139
20441
|
phone?: string | null;
|
|
19140
20442
|
pickup_moments?: import("../integrations/supabase/types").Json;
|
|
20443
|
+
pickup_weekdays?: number[];
|
|
19141
20444
|
service_cities?: string[];
|
|
19142
20445
|
service_countries?: string[];
|
|
19143
20446
|
service_provinces?: string[];
|
|
@@ -19150,6 +20453,177 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
|
|
|
19150
20453
|
};
|
|
19151
20454
|
Relationships: [];
|
|
19152
20455
|
};
|
|
20456
|
+
cart_control_draft: {
|
|
20457
|
+
Row: {
|
|
20458
|
+
cart_states: import("../integrations/supabase/types").Json;
|
|
20459
|
+
checked_keys: import("../integrations/supabase/types").Json;
|
|
20460
|
+
draft_date: string;
|
|
20461
|
+
form_state: import("../integrations/supabase/types").Json;
|
|
20462
|
+
notes: string;
|
|
20463
|
+
updated_at: string;
|
|
20464
|
+
user_id: string;
|
|
20465
|
+
};
|
|
20466
|
+
Insert: {
|
|
20467
|
+
cart_states?: import("../integrations/supabase/types").Json;
|
|
20468
|
+
checked_keys?: import("../integrations/supabase/types").Json;
|
|
20469
|
+
draft_date: string;
|
|
20470
|
+
form_state?: import("../integrations/supabase/types").Json;
|
|
20471
|
+
notes?: string;
|
|
20472
|
+
updated_at?: string;
|
|
20473
|
+
user_id: string;
|
|
20474
|
+
};
|
|
20475
|
+
Update: {
|
|
20476
|
+
cart_states?: import("../integrations/supabase/types").Json;
|
|
20477
|
+
checked_keys?: import("../integrations/supabase/types").Json;
|
|
20478
|
+
draft_date?: string;
|
|
20479
|
+
form_state?: import("../integrations/supabase/types").Json;
|
|
20480
|
+
notes?: string;
|
|
20481
|
+
updated_at?: string;
|
|
20482
|
+
user_id?: string;
|
|
20483
|
+
};
|
|
20484
|
+
Relationships: [];
|
|
20485
|
+
};
|
|
20486
|
+
cart_control_items: {
|
|
20487
|
+
Row: {
|
|
20488
|
+
action: string;
|
|
20489
|
+
block_reason: string | null;
|
|
20490
|
+
carrier_name: string | null;
|
|
20491
|
+
cart_index: number;
|
|
20492
|
+
cart_number_id: string | null;
|
|
20493
|
+
cart_number_label: string | null;
|
|
20494
|
+
created_at: string;
|
|
20495
|
+
customer_name: string | null;
|
|
20496
|
+
delivery_date: string | null;
|
|
20497
|
+
id: string;
|
|
20498
|
+
new_pick_date: string | null;
|
|
20499
|
+
order_id: string;
|
|
20500
|
+
order_number: string | null;
|
|
20501
|
+
order_source: string;
|
|
20502
|
+
pickup_date: string | null;
|
|
20503
|
+
session_id: string;
|
|
20504
|
+
};
|
|
20505
|
+
Insert: {
|
|
20506
|
+
action: string;
|
|
20507
|
+
block_reason?: string | null;
|
|
20508
|
+
carrier_name?: string | null;
|
|
20509
|
+
cart_index: number;
|
|
20510
|
+
cart_number_id?: string | null;
|
|
20511
|
+
cart_number_label?: string | null;
|
|
20512
|
+
created_at?: string;
|
|
20513
|
+
customer_name?: string | null;
|
|
20514
|
+
delivery_date?: string | null;
|
|
20515
|
+
id?: string;
|
|
20516
|
+
new_pick_date?: string | null;
|
|
20517
|
+
order_id: string;
|
|
20518
|
+
order_number?: string | null;
|
|
20519
|
+
order_source: string;
|
|
20520
|
+
pickup_date?: string | null;
|
|
20521
|
+
session_id: string;
|
|
20522
|
+
};
|
|
20523
|
+
Update: {
|
|
20524
|
+
action?: string;
|
|
20525
|
+
block_reason?: string | null;
|
|
20526
|
+
carrier_name?: string | null;
|
|
20527
|
+
cart_index?: number;
|
|
20528
|
+
cart_number_id?: string | null;
|
|
20529
|
+
cart_number_label?: string | null;
|
|
20530
|
+
created_at?: string;
|
|
20531
|
+
customer_name?: string | null;
|
|
20532
|
+
delivery_date?: string | null;
|
|
20533
|
+
id?: string;
|
|
20534
|
+
new_pick_date?: string | null;
|
|
20535
|
+
order_id?: string;
|
|
20536
|
+
order_number?: string | null;
|
|
20537
|
+
order_source?: string;
|
|
20538
|
+
pickup_date?: string | null;
|
|
20539
|
+
session_id?: string;
|
|
20540
|
+
};
|
|
20541
|
+
Relationships: [{
|
|
20542
|
+
foreignKeyName: "cart_control_items_session_id_fkey";
|
|
20543
|
+
columns: ["session_id"];
|
|
20544
|
+
isOneToOne: false;
|
|
20545
|
+
referencedRelation: "cart_control_sessions";
|
|
20546
|
+
referencedColumns: ["id"];
|
|
20547
|
+
}];
|
|
20548
|
+
};
|
|
20549
|
+
cart_control_sessions: {
|
|
20550
|
+
Row: {
|
|
20551
|
+
blocked_count: number;
|
|
20552
|
+
checked_count: number;
|
|
20553
|
+
control_date: string;
|
|
20554
|
+
created_at: string;
|
|
20555
|
+
id: string;
|
|
20556
|
+
notes: string | null;
|
|
20557
|
+
performed_at: string;
|
|
20558
|
+
rescheduled_count: number;
|
|
20559
|
+
total_carts: number;
|
|
20560
|
+
updated_at: string;
|
|
20561
|
+
user_id: string;
|
|
20562
|
+
};
|
|
20563
|
+
Insert: {
|
|
20564
|
+
blocked_count?: number;
|
|
20565
|
+
checked_count?: number;
|
|
20566
|
+
control_date?: string;
|
|
20567
|
+
created_at?: string;
|
|
20568
|
+
id?: string;
|
|
20569
|
+
notes?: string | null;
|
|
20570
|
+
performed_at?: string;
|
|
20571
|
+
rescheduled_count?: number;
|
|
20572
|
+
total_carts?: number;
|
|
20573
|
+
updated_at?: string;
|
|
20574
|
+
user_id: string;
|
|
20575
|
+
};
|
|
20576
|
+
Update: {
|
|
20577
|
+
blocked_count?: number;
|
|
20578
|
+
checked_count?: number;
|
|
20579
|
+
control_date?: string;
|
|
20580
|
+
created_at?: string;
|
|
20581
|
+
id?: string;
|
|
20582
|
+
notes?: string | null;
|
|
20583
|
+
performed_at?: string;
|
|
20584
|
+
rescheduled_count?: number;
|
|
20585
|
+
total_carts?: number;
|
|
20586
|
+
updated_at?: string;
|
|
20587
|
+
user_id?: string;
|
|
20588
|
+
};
|
|
20589
|
+
Relationships: [];
|
|
20590
|
+
};
|
|
20591
|
+
cart_numbers: {
|
|
20592
|
+
Row: {
|
|
20593
|
+
assigned_at: string;
|
|
20594
|
+
cart_index: number;
|
|
20595
|
+
cart_number: string;
|
|
20596
|
+
day_seq: number;
|
|
20597
|
+
id: string;
|
|
20598
|
+
order_id: string;
|
|
20599
|
+
order_source: string;
|
|
20600
|
+
pick_date: string;
|
|
20601
|
+
status: string;
|
|
20602
|
+
};
|
|
20603
|
+
Insert: {
|
|
20604
|
+
assigned_at?: string;
|
|
20605
|
+
cart_index: number;
|
|
20606
|
+
cart_number: string;
|
|
20607
|
+
day_seq: number;
|
|
20608
|
+
id?: string;
|
|
20609
|
+
order_id: string;
|
|
20610
|
+
order_source: string;
|
|
20611
|
+
pick_date: string;
|
|
20612
|
+
status?: string;
|
|
20613
|
+
};
|
|
20614
|
+
Update: {
|
|
20615
|
+
assigned_at?: string;
|
|
20616
|
+
cart_index?: number;
|
|
20617
|
+
cart_number?: string;
|
|
20618
|
+
day_seq?: number;
|
|
20619
|
+
id?: string;
|
|
20620
|
+
order_id?: string;
|
|
20621
|
+
order_source?: string;
|
|
20622
|
+
pick_date?: string;
|
|
20623
|
+
status?: string;
|
|
20624
|
+
};
|
|
20625
|
+
Relationships: [];
|
|
20626
|
+
};
|
|
19153
20627
|
cart_pick_overrides: {
|
|
19154
20628
|
Row: {
|
|
19155
20629
|
cart_index: number;
|
|
@@ -19798,29 +21272,77 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
|
|
|
19798
21272
|
permissions?: import("../integrations/supabase/types").Json;
|
|
19799
21273
|
sort_order?: number;
|
|
19800
21274
|
title: string;
|
|
19801
|
-
type: string;
|
|
21275
|
+
type: string;
|
|
21276
|
+
updated_at?: string;
|
|
21277
|
+
};
|
|
21278
|
+
Update: {
|
|
21279
|
+
config?: import("../integrations/supabase/types").Json;
|
|
21280
|
+
created_at?: string;
|
|
21281
|
+
filters?: import("../integrations/supabase/types").Json;
|
|
21282
|
+
id?: string;
|
|
21283
|
+
layout?: import("../integrations/supabase/types").Json;
|
|
21284
|
+
page_id?: string;
|
|
21285
|
+
permissions?: import("../integrations/supabase/types").Json;
|
|
21286
|
+
sort_order?: number;
|
|
21287
|
+
title?: string;
|
|
21288
|
+
type?: string;
|
|
21289
|
+
updated_at?: string;
|
|
21290
|
+
};
|
|
21291
|
+
Relationships: [{
|
|
21292
|
+
foreignKeyName: "dashboard_blocks_page_id_fkey";
|
|
21293
|
+
columns: ["page_id"];
|
|
21294
|
+
isOneToOne: false;
|
|
21295
|
+
referencedRelation: "dashboard_pages";
|
|
21296
|
+
referencedColumns: ["id"];
|
|
21297
|
+
}];
|
|
21298
|
+
};
|
|
21299
|
+
dashboard_critical_alerts: {
|
|
21300
|
+
Row: {
|
|
21301
|
+
alert_key: string;
|
|
21302
|
+
alert_type: string;
|
|
21303
|
+
created_at: string;
|
|
21304
|
+
description: string | null;
|
|
21305
|
+
id: string;
|
|
21306
|
+
metadata: import("../integrations/supabase/types").Json | null;
|
|
21307
|
+
priority: string;
|
|
21308
|
+
raised_at: string;
|
|
21309
|
+
related_cart_ids: string[] | null;
|
|
21310
|
+
resolved_at: string | null;
|
|
21311
|
+
title: string;
|
|
21312
|
+
updated_at: string;
|
|
21313
|
+
user_id: string;
|
|
21314
|
+
};
|
|
21315
|
+
Insert: {
|
|
21316
|
+
alert_key: string;
|
|
21317
|
+
alert_type: string;
|
|
21318
|
+
created_at?: string;
|
|
21319
|
+
description?: string | null;
|
|
21320
|
+
id?: string;
|
|
21321
|
+
metadata?: import("../integrations/supabase/types").Json | null;
|
|
21322
|
+
priority?: string;
|
|
21323
|
+
raised_at?: string;
|
|
21324
|
+
related_cart_ids?: string[] | null;
|
|
21325
|
+
resolved_at?: string | null;
|
|
21326
|
+
title: string;
|
|
19802
21327
|
updated_at?: string;
|
|
21328
|
+
user_id: string;
|
|
19803
21329
|
};
|
|
19804
21330
|
Update: {
|
|
19805
|
-
|
|
21331
|
+
alert_key?: string;
|
|
21332
|
+
alert_type?: string;
|
|
19806
21333
|
created_at?: string;
|
|
19807
|
-
|
|
21334
|
+
description?: string | null;
|
|
19808
21335
|
id?: string;
|
|
19809
|
-
|
|
19810
|
-
|
|
19811
|
-
|
|
19812
|
-
|
|
21336
|
+
metadata?: import("../integrations/supabase/types").Json | null;
|
|
21337
|
+
priority?: string;
|
|
21338
|
+
raised_at?: string;
|
|
21339
|
+
related_cart_ids?: string[] | null;
|
|
21340
|
+
resolved_at?: string | null;
|
|
19813
21341
|
title?: string;
|
|
19814
|
-
type?: string;
|
|
19815
21342
|
updated_at?: string;
|
|
21343
|
+
user_id?: string;
|
|
19816
21344
|
};
|
|
19817
|
-
Relationships: [
|
|
19818
|
-
foreignKeyName: "dashboard_blocks_page_id_fkey";
|
|
19819
|
-
columns: ["page_id"];
|
|
19820
|
-
isOneToOne: false;
|
|
19821
|
-
referencedRelation: "dashboard_pages";
|
|
19822
|
-
referencedColumns: ["id"];
|
|
19823
|
-
}];
|
|
21345
|
+
Relationships: [];
|
|
19824
21346
|
};
|
|
19825
21347
|
dashboard_daily_reports: {
|
|
19826
21348
|
Row: {
|
|
@@ -21324,6 +22846,7 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
|
|
|
21324
22846
|
};
|
|
21325
22847
|
floricode_sync_state: {
|
|
21326
22848
|
Row: {
|
|
22849
|
+
cursor_skip: number;
|
|
21327
22850
|
error_message: string | null;
|
|
21328
22851
|
last_change_date_time: string | null;
|
|
21329
22852
|
last_sequence_number: number;
|
|
@@ -21333,6 +22856,7 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
|
|
|
21333
22856
|
updated_at: string;
|
|
21334
22857
|
};
|
|
21335
22858
|
Insert: {
|
|
22859
|
+
cursor_skip?: number;
|
|
21336
22860
|
error_message?: string | null;
|
|
21337
22861
|
last_change_date_time?: string | null;
|
|
21338
22862
|
last_sequence_number?: number;
|
|
@@ -21342,6 +22866,7 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
|
|
|
21342
22866
|
updated_at?: string;
|
|
21343
22867
|
};
|
|
21344
22868
|
Update: {
|
|
22869
|
+
cursor_skip?: number;
|
|
21345
22870
|
error_message?: string | null;
|
|
21346
22871
|
last_change_date_time?: string | null;
|
|
21347
22872
|
last_sequence_number?: number;
|
|
@@ -23689,6 +25214,93 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
|
|
|
23689
25214
|
};
|
|
23690
25215
|
Relationships: [];
|
|
23691
25216
|
};
|
|
25217
|
+
manufacture_product_components: {
|
|
25218
|
+
Row: {
|
|
25219
|
+
component_type: string;
|
|
25220
|
+
created_at: string;
|
|
25221
|
+
id: string;
|
|
25222
|
+
manufacture_product_id: string;
|
|
25223
|
+
product_group_id: string | null;
|
|
25224
|
+
quantity: number;
|
|
25225
|
+
trade_item_id: string | null;
|
|
25226
|
+
unit: string;
|
|
25227
|
+
};
|
|
25228
|
+
Insert: {
|
|
25229
|
+
component_type: string;
|
|
25230
|
+
created_at?: string;
|
|
25231
|
+
id?: string;
|
|
25232
|
+
manufacture_product_id: string;
|
|
25233
|
+
product_group_id?: string | null;
|
|
25234
|
+
quantity?: number;
|
|
25235
|
+
trade_item_id?: string | null;
|
|
25236
|
+
unit?: string;
|
|
25237
|
+
};
|
|
25238
|
+
Update: {
|
|
25239
|
+
component_type?: string;
|
|
25240
|
+
created_at?: string;
|
|
25241
|
+
id?: string;
|
|
25242
|
+
manufacture_product_id?: string;
|
|
25243
|
+
product_group_id?: string | null;
|
|
25244
|
+
quantity?: number;
|
|
25245
|
+
trade_item_id?: string | null;
|
|
25246
|
+
unit?: string;
|
|
25247
|
+
};
|
|
25248
|
+
Relationships: [{
|
|
25249
|
+
foreignKeyName: "manufacture_product_components_manufacture_product_id_fkey";
|
|
25250
|
+
columns: ["manufacture_product_id"];
|
|
25251
|
+
isOneToOne: false;
|
|
25252
|
+
referencedRelation: "manufacture_product_possible_stock_view";
|
|
25253
|
+
referencedColumns: ["manufacture_product_id"];
|
|
25254
|
+
}, {
|
|
25255
|
+
foreignKeyName: "manufacture_product_components_manufacture_product_id_fkey";
|
|
25256
|
+
columns: ["manufacture_product_id"];
|
|
25257
|
+
isOneToOne: false;
|
|
25258
|
+
referencedRelation: "manufacture_products";
|
|
25259
|
+
referencedColumns: ["id"];
|
|
25260
|
+
}, {
|
|
25261
|
+
foreignKeyName: "manufacture_product_components_product_group_id_fkey";
|
|
25262
|
+
columns: ["product_group_id"];
|
|
25263
|
+
isOneToOne: false;
|
|
25264
|
+
referencedRelation: "product_groups";
|
|
25265
|
+
referencedColumns: ["id"];
|
|
25266
|
+
}];
|
|
25267
|
+
};
|
|
25268
|
+
manufacture_products: {
|
|
25269
|
+
Row: {
|
|
25270
|
+
created_at: string;
|
|
25271
|
+
description: string | null;
|
|
25272
|
+
id: string;
|
|
25273
|
+
is_active: boolean;
|
|
25274
|
+
name: string;
|
|
25275
|
+
produced_stock: number;
|
|
25276
|
+
product_code: string;
|
|
25277
|
+
tenant_id: string;
|
|
25278
|
+
updated_at: string;
|
|
25279
|
+
};
|
|
25280
|
+
Insert: {
|
|
25281
|
+
created_at?: string;
|
|
25282
|
+
description?: string | null;
|
|
25283
|
+
id?: string;
|
|
25284
|
+
is_active?: boolean;
|
|
25285
|
+
name: string;
|
|
25286
|
+
produced_stock?: number;
|
|
25287
|
+
product_code: string;
|
|
25288
|
+
tenant_id: string;
|
|
25289
|
+
updated_at?: string;
|
|
25290
|
+
};
|
|
25291
|
+
Update: {
|
|
25292
|
+
created_at?: string;
|
|
25293
|
+
description?: string | null;
|
|
25294
|
+
id?: string;
|
|
25295
|
+
is_active?: boolean;
|
|
25296
|
+
name?: string;
|
|
25297
|
+
produced_stock?: number;
|
|
25298
|
+
product_code?: string;
|
|
25299
|
+
tenant_id?: string;
|
|
25300
|
+
updated_at?: string;
|
|
25301
|
+
};
|
|
25302
|
+
Relationships: [];
|
|
25303
|
+
};
|
|
23692
25304
|
monteurs: {
|
|
23693
25305
|
Row: {
|
|
23694
25306
|
avatar_url: string | null;
|
|
@@ -24649,6 +26261,66 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
|
|
|
24649
26261
|
};
|
|
24650
26262
|
Relationships: [];
|
|
24651
26263
|
};
|
|
26264
|
+
product_group_items: {
|
|
26265
|
+
Row: {
|
|
26266
|
+
created_at: string;
|
|
26267
|
+
id: string;
|
|
26268
|
+
product_group_id: string;
|
|
26269
|
+
quantity: number;
|
|
26270
|
+
trade_item_id: string;
|
|
26271
|
+
};
|
|
26272
|
+
Insert: {
|
|
26273
|
+
created_at?: string;
|
|
26274
|
+
id?: string;
|
|
26275
|
+
product_group_id: string;
|
|
26276
|
+
quantity?: number;
|
|
26277
|
+
trade_item_id: string;
|
|
26278
|
+
};
|
|
26279
|
+
Update: {
|
|
26280
|
+
created_at?: string;
|
|
26281
|
+
id?: string;
|
|
26282
|
+
product_group_id?: string;
|
|
26283
|
+
quantity?: number;
|
|
26284
|
+
trade_item_id?: string;
|
|
26285
|
+
};
|
|
26286
|
+
Relationships: [{
|
|
26287
|
+
foreignKeyName: "product_group_items_product_group_id_fkey";
|
|
26288
|
+
columns: ["product_group_id"];
|
|
26289
|
+
isOneToOne: false;
|
|
26290
|
+
referencedRelation: "product_groups";
|
|
26291
|
+
referencedColumns: ["id"];
|
|
26292
|
+
}];
|
|
26293
|
+
};
|
|
26294
|
+
product_groups: {
|
|
26295
|
+
Row: {
|
|
26296
|
+
created_at: string;
|
|
26297
|
+
description: string | null;
|
|
26298
|
+
id: string;
|
|
26299
|
+
is_active: boolean;
|
|
26300
|
+
name: string;
|
|
26301
|
+
tenant_id: string;
|
|
26302
|
+
updated_at: string;
|
|
26303
|
+
};
|
|
26304
|
+
Insert: {
|
|
26305
|
+
created_at?: string;
|
|
26306
|
+
description?: string | null;
|
|
26307
|
+
id?: string;
|
|
26308
|
+
is_active?: boolean;
|
|
26309
|
+
name: string;
|
|
26310
|
+
tenant_id: string;
|
|
26311
|
+
updated_at?: string;
|
|
26312
|
+
};
|
|
26313
|
+
Update: {
|
|
26314
|
+
created_at?: string;
|
|
26315
|
+
description?: string | null;
|
|
26316
|
+
id?: string;
|
|
26317
|
+
is_active?: boolean;
|
|
26318
|
+
name?: string;
|
|
26319
|
+
tenant_id?: string;
|
|
26320
|
+
updated_at?: string;
|
|
26321
|
+
};
|
|
26322
|
+
Relationships: [];
|
|
26323
|
+
};
|
|
24652
26324
|
products: {
|
|
24653
26325
|
Row: {
|
|
24654
26326
|
barcode: string | null;
|
|
@@ -25788,7 +27460,13 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
|
|
|
25788
27460
|
connection_id: string | null;
|
|
25789
27461
|
created_at: string;
|
|
25790
27462
|
data: import("../integrations/supabase/types").Json;
|
|
27463
|
+
floriday_id: string | null;
|
|
27464
|
+
floriday_link_error: string | null;
|
|
27465
|
+
floriday_link_status: string;
|
|
25791
27466
|
id: string;
|
|
27467
|
+
last_floriday_sync_at: string | null;
|
|
27468
|
+
missing_required_fields: string[];
|
|
27469
|
+
source: string;
|
|
25792
27470
|
updated_at: string;
|
|
25793
27471
|
user_id: string;
|
|
25794
27472
|
};
|
|
@@ -25796,7 +27474,13 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
|
|
|
25796
27474
|
connection_id?: string | null;
|
|
25797
27475
|
created_at?: string;
|
|
25798
27476
|
data?: import("../integrations/supabase/types").Json;
|
|
27477
|
+
floriday_id?: string | null;
|
|
27478
|
+
floriday_link_error?: string | null;
|
|
27479
|
+
floriday_link_status?: string;
|
|
25799
27480
|
id?: string;
|
|
27481
|
+
last_floriday_sync_at?: string | null;
|
|
27482
|
+
missing_required_fields?: string[];
|
|
27483
|
+
source?: string;
|
|
25800
27484
|
updated_at?: string;
|
|
25801
27485
|
user_id: string;
|
|
25802
27486
|
};
|
|
@@ -25804,7 +27488,55 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
|
|
|
25804
27488
|
connection_id?: string | null;
|
|
25805
27489
|
created_at?: string;
|
|
25806
27490
|
data?: import("../integrations/supabase/types").Json;
|
|
27491
|
+
floriday_id?: string | null;
|
|
27492
|
+
floriday_link_error?: string | null;
|
|
27493
|
+
floriday_link_status?: string;
|
|
27494
|
+
id?: string;
|
|
27495
|
+
last_floriday_sync_at?: string | null;
|
|
27496
|
+
missing_required_fields?: string[];
|
|
27497
|
+
source?: string;
|
|
27498
|
+
updated_at?: string;
|
|
27499
|
+
user_id?: string;
|
|
27500
|
+
};
|
|
27501
|
+
Relationships: [];
|
|
27502
|
+
};
|
|
27503
|
+
trade_item_stock: {
|
|
27504
|
+
Row: {
|
|
27505
|
+
connection_id: string;
|
|
27506
|
+
created_at: string;
|
|
27507
|
+
id: string;
|
|
27508
|
+
incoming_stock: number;
|
|
27509
|
+
minimum_stock: number;
|
|
27510
|
+
notes: string | null;
|
|
27511
|
+
physical_stock: number;
|
|
27512
|
+
reserved_stock: number;
|
|
27513
|
+
trade_item_key: string;
|
|
27514
|
+
updated_at: string;
|
|
27515
|
+
user_id: string;
|
|
27516
|
+
};
|
|
27517
|
+
Insert: {
|
|
27518
|
+
connection_id: string;
|
|
27519
|
+
created_at?: string;
|
|
27520
|
+
id?: string;
|
|
27521
|
+
incoming_stock?: number;
|
|
27522
|
+
minimum_stock?: number;
|
|
27523
|
+
notes?: string | null;
|
|
27524
|
+
physical_stock?: number;
|
|
27525
|
+
reserved_stock?: number;
|
|
27526
|
+
trade_item_key: string;
|
|
27527
|
+
updated_at?: string;
|
|
27528
|
+
user_id: string;
|
|
27529
|
+
};
|
|
27530
|
+
Update: {
|
|
27531
|
+
connection_id?: string;
|
|
27532
|
+
created_at?: string;
|
|
25807
27533
|
id?: string;
|
|
27534
|
+
incoming_stock?: number;
|
|
27535
|
+
minimum_stock?: number;
|
|
27536
|
+
notes?: string | null;
|
|
27537
|
+
physical_stock?: number;
|
|
27538
|
+
reserved_stock?: number;
|
|
27539
|
+
trade_item_key?: string;
|
|
25808
27540
|
updated_at?: string;
|
|
25809
27541
|
user_id?: string;
|
|
25810
27542
|
};
|
|
@@ -26154,6 +27886,7 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
|
|
|
26154
27886
|
};
|
|
26155
27887
|
twinfield_invoice_sync_logs: {
|
|
26156
27888
|
Row: {
|
|
27889
|
+
action_type: string | null;
|
|
26157
27890
|
created_at: string;
|
|
26158
27891
|
details: import("../integrations/supabase/types").Json | null;
|
|
26159
27892
|
duration_ms: number | null;
|
|
@@ -26166,6 +27899,7 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
|
|
|
26166
27899
|
user_id: string;
|
|
26167
27900
|
};
|
|
26168
27901
|
Insert: {
|
|
27902
|
+
action_type?: string | null;
|
|
26169
27903
|
created_at?: string;
|
|
26170
27904
|
details?: import("../integrations/supabase/types").Json | null;
|
|
26171
27905
|
duration_ms?: number | null;
|
|
@@ -26178,6 +27912,7 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
|
|
|
26178
27912
|
user_id: string;
|
|
26179
27913
|
};
|
|
26180
27914
|
Update: {
|
|
27915
|
+
action_type?: string | null;
|
|
26181
27916
|
created_at?: string;
|
|
26182
27917
|
details?: import("../integrations/supabase/types").Json | null;
|
|
26183
27918
|
duration_ms?: number | null;
|
|
@@ -26413,6 +28148,57 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
|
|
|
26413
28148
|
referencedColumns: ["id"];
|
|
26414
28149
|
}];
|
|
26415
28150
|
};
|
|
28151
|
+
twinfield_request_metrics: {
|
|
28152
|
+
Row: {
|
|
28153
|
+
bucket_hour: string;
|
|
28154
|
+
connection_id: string;
|
|
28155
|
+
error_count: number;
|
|
28156
|
+
rate_limited_count: number;
|
|
28157
|
+
request_count: number;
|
|
28158
|
+
updated_at: string;
|
|
28159
|
+
};
|
|
28160
|
+
Insert: {
|
|
28161
|
+
bucket_hour: string;
|
|
28162
|
+
connection_id: string;
|
|
28163
|
+
error_count?: number;
|
|
28164
|
+
rate_limited_count?: number;
|
|
28165
|
+
request_count?: number;
|
|
28166
|
+
updated_at?: string;
|
|
28167
|
+
};
|
|
28168
|
+
Update: {
|
|
28169
|
+
bucket_hour?: string;
|
|
28170
|
+
connection_id?: string;
|
|
28171
|
+
error_count?: number;
|
|
28172
|
+
rate_limited_count?: number;
|
|
28173
|
+
request_count?: number;
|
|
28174
|
+
updated_at?: string;
|
|
28175
|
+
};
|
|
28176
|
+
Relationships: [];
|
|
28177
|
+
};
|
|
28178
|
+
twinfield_session_cache: {
|
|
28179
|
+
Row: {
|
|
28180
|
+
cluster: string;
|
|
28181
|
+
created_at: string;
|
|
28182
|
+
expires_at: string;
|
|
28183
|
+
session_id: string;
|
|
28184
|
+
user_id: string;
|
|
28185
|
+
};
|
|
28186
|
+
Insert: {
|
|
28187
|
+
cluster: string;
|
|
28188
|
+
created_at?: string;
|
|
28189
|
+
expires_at: string;
|
|
28190
|
+
session_id: string;
|
|
28191
|
+
user_id: string;
|
|
28192
|
+
};
|
|
28193
|
+
Update: {
|
|
28194
|
+
cluster?: string;
|
|
28195
|
+
created_at?: string;
|
|
28196
|
+
expires_at?: string;
|
|
28197
|
+
session_id?: string;
|
|
28198
|
+
user_id?: string;
|
|
28199
|
+
};
|
|
28200
|
+
Relationships: [];
|
|
28201
|
+
};
|
|
26416
28202
|
twinfield_settings: {
|
|
26417
28203
|
Row: {
|
|
26418
28204
|
active_environment: string;
|
|
@@ -26994,6 +28780,35 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
|
|
|
26994
28780
|
};
|
|
26995
28781
|
Relationships: [];
|
|
26996
28782
|
};
|
|
28783
|
+
manufacture_product_possible_stock_view: {
|
|
28784
|
+
Row: {
|
|
28785
|
+
component_count: number | null;
|
|
28786
|
+
manufacture_product_id: string | null;
|
|
28787
|
+
possible_stock: number | null;
|
|
28788
|
+
};
|
|
28789
|
+
Relationships: [];
|
|
28790
|
+
};
|
|
28791
|
+
product_group_stock_view: {
|
|
28792
|
+
Row: {
|
|
28793
|
+
item_count: number | null;
|
|
28794
|
+
product_group_id: string | null;
|
|
28795
|
+
total_stock: number | null;
|
|
28796
|
+
};
|
|
28797
|
+
Relationships: [{
|
|
28798
|
+
foreignKeyName: "product_group_items_product_group_id_fkey";
|
|
28799
|
+
columns: ["product_group_id"];
|
|
28800
|
+
isOneToOne: false;
|
|
28801
|
+
referencedRelation: "product_groups";
|
|
28802
|
+
referencedColumns: ["id"];
|
|
28803
|
+
}];
|
|
28804
|
+
};
|
|
28805
|
+
trade_item_stock_view: {
|
|
28806
|
+
Row: {
|
|
28807
|
+
stock: number | null;
|
|
28808
|
+
trade_item_id: string | null;
|
|
28809
|
+
};
|
|
28810
|
+
Relationships: [];
|
|
28811
|
+
};
|
|
26997
28812
|
v_external_customers_exact: {
|
|
26998
28813
|
Row: {
|
|
26999
28814
|
account_number: string | null;
|
|
@@ -27249,6 +29064,20 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
|
|
|
27249
29064
|
};
|
|
27250
29065
|
Returns: number;
|
|
27251
29066
|
};
|
|
29067
|
+
assign_cart_numbers: {
|
|
29068
|
+
Args: {
|
|
29069
|
+
p_carts: import("../integrations/supabase/types").Json;
|
|
29070
|
+
};
|
|
29071
|
+
Returns: {
|
|
29072
|
+
cart_index: number;
|
|
29073
|
+
cart_number: string;
|
|
29074
|
+
day_seq: number;
|
|
29075
|
+
order_id: string;
|
|
29076
|
+
order_source: string;
|
|
29077
|
+
pick_date: string;
|
|
29078
|
+
status: string;
|
|
29079
|
+
}[];
|
|
29080
|
+
};
|
|
27252
29081
|
assign_floriday_order_numbers: {
|
|
27253
29082
|
Args: {
|
|
27254
29083
|
p_ids: string[];
|
|
@@ -27268,10 +29097,37 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
|
|
|
27268
29097
|
Args: never;
|
|
27269
29098
|
Returns: number;
|
|
27270
29099
|
};
|
|
29100
|
+
control_get_todays_carts: {
|
|
29101
|
+
Args: never;
|
|
29102
|
+
Returns: {
|
|
29103
|
+
cart_index: number;
|
|
29104
|
+
cart_number: string;
|
|
29105
|
+
cart_number_id: string;
|
|
29106
|
+
order_id: string;
|
|
29107
|
+
order_source: string;
|
|
29108
|
+
pick_date: string;
|
|
29109
|
+
status: string;
|
|
29110
|
+
}[];
|
|
29111
|
+
};
|
|
29112
|
+
count_distinct_regulatory_products: {
|
|
29113
|
+
Args: never;
|
|
29114
|
+
Returns: number;
|
|
29115
|
+
};
|
|
27271
29116
|
current_monteur_id: {
|
|
27272
29117
|
Args: never;
|
|
27273
29118
|
Returns: string;
|
|
27274
29119
|
};
|
|
29120
|
+
dashboard_alert_counts: {
|
|
29121
|
+
Args: never;
|
|
29122
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
29123
|
+
};
|
|
29124
|
+
dashboard_alert_rows: {
|
|
29125
|
+
Args: {
|
|
29126
|
+
check_id: string;
|
|
29127
|
+
row_limit?: number;
|
|
29128
|
+
};
|
|
29129
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
29130
|
+
};
|
|
27275
29131
|
dashboard_list_public_schema: {
|
|
27276
29132
|
Args: never;
|
|
27277
29133
|
Returns: {
|
|
@@ -27352,6 +29208,13 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
|
|
|
27352
29208
|
};
|
|
27353
29209
|
Returns: boolean;
|
|
27354
29210
|
};
|
|
29211
|
+
format_cart_number: {
|
|
29212
|
+
Args: {
|
|
29213
|
+
p_pick_date: string;
|
|
29214
|
+
p_seq: number;
|
|
29215
|
+
};
|
|
29216
|
+
Returns: string;
|
|
29217
|
+
};
|
|
27355
29218
|
get_active_floriday_connection_public: {
|
|
27356
29219
|
Args: never;
|
|
27357
29220
|
Returns: {
|
|
@@ -27556,6 +29419,15 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
|
|
|
27556
29419
|
};
|
|
27557
29420
|
Returns: undefined;
|
|
27558
29421
|
};
|
|
29422
|
+
pickstation_set_cart_status: {
|
|
29423
|
+
Args: {
|
|
29424
|
+
p_cart_index: number;
|
|
29425
|
+
p_order_id: string;
|
|
29426
|
+
p_order_source: string;
|
|
29427
|
+
p_status: string;
|
|
29428
|
+
};
|
|
29429
|
+
Returns: undefined;
|
|
29430
|
+
};
|
|
27559
29431
|
refresh_floricode_derived_code_lists: {
|
|
27560
29432
|
Args: never;
|
|
27561
29433
|
Returns: {
|
|
@@ -27564,6 +29436,12 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
|
|
|
27564
29436
|
row_count: number;
|
|
27565
29437
|
}[];
|
|
27566
29438
|
};
|
|
29439
|
+
refresh_floricode_derived_for_product: {
|
|
29440
|
+
Args: {
|
|
29441
|
+
p_product_code: string;
|
|
29442
|
+
};
|
|
29443
|
+
Returns: number;
|
|
29444
|
+
};
|
|
27567
29445
|
reset_floriday_sync_cursor: {
|
|
27568
29446
|
Args: {
|
|
27569
29447
|
p_connection_id: string;
|