@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
|
@@ -9,6 +9,7 @@ export declare const acknowledgeSalesOrder: import("@tanstack/start-client-core"
|
|
|
9
9
|
max_workdays_earlier_pick: number;
|
|
10
10
|
pick_days_before_transport: number;
|
|
11
11
|
pick_distribution_enabled: boolean;
|
|
12
|
+
pick_weekdays: number[];
|
|
12
13
|
signup_mail_enabled: boolean;
|
|
13
14
|
signup_mail_lead_minutes: number;
|
|
14
15
|
signup_mail_purpose: string;
|
|
@@ -22,6 +23,7 @@ export declare const acknowledgeSalesOrder: import("@tanstack/start-client-core"
|
|
|
22
23
|
max_workdays_earlier_pick?: number;
|
|
23
24
|
pick_days_before_transport?: number;
|
|
24
25
|
pick_distribution_enabled?: boolean;
|
|
26
|
+
pick_weekdays?: number[];
|
|
25
27
|
signup_mail_enabled?: boolean;
|
|
26
28
|
signup_mail_lead_minutes?: number;
|
|
27
29
|
signup_mail_purpose?: string;
|
|
@@ -35,6 +37,7 @@ export declare const acknowledgeSalesOrder: import("@tanstack/start-client-core"
|
|
|
35
37
|
max_workdays_earlier_pick?: number;
|
|
36
38
|
pick_days_before_transport?: number;
|
|
37
39
|
pick_distribution_enabled?: boolean;
|
|
40
|
+
pick_weekdays?: number[];
|
|
38
41
|
signup_mail_enabled?: boolean;
|
|
39
42
|
signup_mail_lead_minutes?: number;
|
|
40
43
|
signup_mail_purpose?: string;
|
|
@@ -446,6 +449,48 @@ export declare const acknowledgeSalesOrder: import("@tanstack/start-client-core"
|
|
|
446
449
|
referencedColumns: ["id"];
|
|
447
450
|
}];
|
|
448
451
|
};
|
|
452
|
+
carrier_signup_dispatch_runs: {
|
|
453
|
+
Row: {
|
|
454
|
+
detail: import("../integrations/supabase/types").Json | null;
|
|
455
|
+
error: string | null;
|
|
456
|
+
finished_at: string | null;
|
|
457
|
+
groups: number;
|
|
458
|
+
id: string;
|
|
459
|
+
ok: boolean;
|
|
460
|
+
reason: string | null;
|
|
461
|
+
sent: number;
|
|
462
|
+
skipped: import("../integrations/supabase/types").Json;
|
|
463
|
+
started_at: string;
|
|
464
|
+
unassigned: import("../integrations/supabase/types").Json;
|
|
465
|
+
};
|
|
466
|
+
Insert: {
|
|
467
|
+
detail?: import("../integrations/supabase/types").Json | null;
|
|
468
|
+
error?: string | null;
|
|
469
|
+
finished_at?: string | null;
|
|
470
|
+
groups?: number;
|
|
471
|
+
id?: string;
|
|
472
|
+
ok?: boolean;
|
|
473
|
+
reason?: string | null;
|
|
474
|
+
sent?: number;
|
|
475
|
+
skipped?: import("../integrations/supabase/types").Json;
|
|
476
|
+
started_at?: string;
|
|
477
|
+
unassigned?: import("../integrations/supabase/types").Json;
|
|
478
|
+
};
|
|
479
|
+
Update: {
|
|
480
|
+
detail?: import("../integrations/supabase/types").Json | null;
|
|
481
|
+
error?: string | null;
|
|
482
|
+
finished_at?: string | null;
|
|
483
|
+
groups?: number;
|
|
484
|
+
id?: string;
|
|
485
|
+
ok?: boolean;
|
|
486
|
+
reason?: string | null;
|
|
487
|
+
sent?: number;
|
|
488
|
+
skipped?: import("../integrations/supabase/types").Json;
|
|
489
|
+
started_at?: string;
|
|
490
|
+
unassigned?: import("../integrations/supabase/types").Json;
|
|
491
|
+
};
|
|
492
|
+
Relationships: [];
|
|
493
|
+
};
|
|
449
494
|
carrier_signup_dispatches: {
|
|
450
495
|
Row: {
|
|
451
496
|
carrier_id: string;
|
|
@@ -497,6 +542,7 @@ export declare const acknowledgeSalesOrder: import("@tanstack/start-client-core"
|
|
|
497
542
|
contact_person: string | null;
|
|
498
543
|
created_at: string;
|
|
499
544
|
delivery_days: number | null;
|
|
545
|
+
delivery_weekdays: number[];
|
|
500
546
|
email: string | null;
|
|
501
547
|
id: string;
|
|
502
548
|
is_default: boolean;
|
|
@@ -504,6 +550,7 @@ export declare const acknowledgeSalesOrder: import("@tanstack/start-client-core"
|
|
|
504
550
|
notes: string | null;
|
|
505
551
|
phone: string | null;
|
|
506
552
|
pickup_moments: import("../integrations/supabase/types").Json;
|
|
553
|
+
pickup_weekdays: number[];
|
|
507
554
|
service_cities: string[];
|
|
508
555
|
service_countries: string[];
|
|
509
556
|
service_provinces: string[];
|
|
@@ -519,6 +566,7 @@ export declare const acknowledgeSalesOrder: import("@tanstack/start-client-core"
|
|
|
519
566
|
contact_person?: string | null;
|
|
520
567
|
created_at?: string;
|
|
521
568
|
delivery_days?: number | null;
|
|
569
|
+
delivery_weekdays?: number[];
|
|
522
570
|
email?: string | null;
|
|
523
571
|
id?: string;
|
|
524
572
|
is_default?: boolean;
|
|
@@ -526,6 +574,7 @@ export declare const acknowledgeSalesOrder: import("@tanstack/start-client-core"
|
|
|
526
574
|
notes?: string | null;
|
|
527
575
|
phone?: string | null;
|
|
528
576
|
pickup_moments?: import("../integrations/supabase/types").Json;
|
|
577
|
+
pickup_weekdays?: number[];
|
|
529
578
|
service_cities?: string[];
|
|
530
579
|
service_countries?: string[];
|
|
531
580
|
service_provinces?: string[];
|
|
@@ -541,6 +590,7 @@ export declare const acknowledgeSalesOrder: import("@tanstack/start-client-core"
|
|
|
541
590
|
contact_person?: string | null;
|
|
542
591
|
created_at?: string;
|
|
543
592
|
delivery_days?: number | null;
|
|
593
|
+
delivery_weekdays?: number[];
|
|
544
594
|
email?: string | null;
|
|
545
595
|
id?: string;
|
|
546
596
|
is_default?: boolean;
|
|
@@ -548,6 +598,7 @@ export declare const acknowledgeSalesOrder: import("@tanstack/start-client-core"
|
|
|
548
598
|
notes?: string | null;
|
|
549
599
|
phone?: string | null;
|
|
550
600
|
pickup_moments?: import("../integrations/supabase/types").Json;
|
|
601
|
+
pickup_weekdays?: number[];
|
|
551
602
|
service_cities?: string[];
|
|
552
603
|
service_countries?: string[];
|
|
553
604
|
service_provinces?: string[];
|
|
@@ -560,6 +611,177 @@ export declare const acknowledgeSalesOrder: import("@tanstack/start-client-core"
|
|
|
560
611
|
};
|
|
561
612
|
Relationships: [];
|
|
562
613
|
};
|
|
614
|
+
cart_control_draft: {
|
|
615
|
+
Row: {
|
|
616
|
+
cart_states: import("../integrations/supabase/types").Json;
|
|
617
|
+
checked_keys: import("../integrations/supabase/types").Json;
|
|
618
|
+
draft_date: string;
|
|
619
|
+
form_state: import("../integrations/supabase/types").Json;
|
|
620
|
+
notes: string;
|
|
621
|
+
updated_at: string;
|
|
622
|
+
user_id: string;
|
|
623
|
+
};
|
|
624
|
+
Insert: {
|
|
625
|
+
cart_states?: import("../integrations/supabase/types").Json;
|
|
626
|
+
checked_keys?: import("../integrations/supabase/types").Json;
|
|
627
|
+
draft_date: string;
|
|
628
|
+
form_state?: import("../integrations/supabase/types").Json;
|
|
629
|
+
notes?: string;
|
|
630
|
+
updated_at?: string;
|
|
631
|
+
user_id: string;
|
|
632
|
+
};
|
|
633
|
+
Update: {
|
|
634
|
+
cart_states?: import("../integrations/supabase/types").Json;
|
|
635
|
+
checked_keys?: import("../integrations/supabase/types").Json;
|
|
636
|
+
draft_date?: string;
|
|
637
|
+
form_state?: import("../integrations/supabase/types").Json;
|
|
638
|
+
notes?: string;
|
|
639
|
+
updated_at?: string;
|
|
640
|
+
user_id?: string;
|
|
641
|
+
};
|
|
642
|
+
Relationships: [];
|
|
643
|
+
};
|
|
644
|
+
cart_control_items: {
|
|
645
|
+
Row: {
|
|
646
|
+
action: string;
|
|
647
|
+
block_reason: string | null;
|
|
648
|
+
carrier_name: string | null;
|
|
649
|
+
cart_index: number;
|
|
650
|
+
cart_number_id: string | null;
|
|
651
|
+
cart_number_label: string | null;
|
|
652
|
+
created_at: string;
|
|
653
|
+
customer_name: string | null;
|
|
654
|
+
delivery_date: string | null;
|
|
655
|
+
id: string;
|
|
656
|
+
new_pick_date: string | null;
|
|
657
|
+
order_id: string;
|
|
658
|
+
order_number: string | null;
|
|
659
|
+
order_source: string;
|
|
660
|
+
pickup_date: string | null;
|
|
661
|
+
session_id: string;
|
|
662
|
+
};
|
|
663
|
+
Insert: {
|
|
664
|
+
action: string;
|
|
665
|
+
block_reason?: string | null;
|
|
666
|
+
carrier_name?: string | null;
|
|
667
|
+
cart_index: number;
|
|
668
|
+
cart_number_id?: string | null;
|
|
669
|
+
cart_number_label?: string | null;
|
|
670
|
+
created_at?: string;
|
|
671
|
+
customer_name?: string | null;
|
|
672
|
+
delivery_date?: string | null;
|
|
673
|
+
id?: string;
|
|
674
|
+
new_pick_date?: string | null;
|
|
675
|
+
order_id: string;
|
|
676
|
+
order_number?: string | null;
|
|
677
|
+
order_source: string;
|
|
678
|
+
pickup_date?: string | null;
|
|
679
|
+
session_id: string;
|
|
680
|
+
};
|
|
681
|
+
Update: {
|
|
682
|
+
action?: string;
|
|
683
|
+
block_reason?: string | null;
|
|
684
|
+
carrier_name?: string | null;
|
|
685
|
+
cart_index?: number;
|
|
686
|
+
cart_number_id?: string | null;
|
|
687
|
+
cart_number_label?: string | null;
|
|
688
|
+
created_at?: string;
|
|
689
|
+
customer_name?: string | null;
|
|
690
|
+
delivery_date?: string | null;
|
|
691
|
+
id?: string;
|
|
692
|
+
new_pick_date?: string | null;
|
|
693
|
+
order_id?: string;
|
|
694
|
+
order_number?: string | null;
|
|
695
|
+
order_source?: string;
|
|
696
|
+
pickup_date?: string | null;
|
|
697
|
+
session_id?: string;
|
|
698
|
+
};
|
|
699
|
+
Relationships: [{
|
|
700
|
+
foreignKeyName: "cart_control_items_session_id_fkey";
|
|
701
|
+
columns: ["session_id"];
|
|
702
|
+
isOneToOne: false;
|
|
703
|
+
referencedRelation: "cart_control_sessions";
|
|
704
|
+
referencedColumns: ["id"];
|
|
705
|
+
}];
|
|
706
|
+
};
|
|
707
|
+
cart_control_sessions: {
|
|
708
|
+
Row: {
|
|
709
|
+
blocked_count: number;
|
|
710
|
+
checked_count: number;
|
|
711
|
+
control_date: string;
|
|
712
|
+
created_at: string;
|
|
713
|
+
id: string;
|
|
714
|
+
notes: string | null;
|
|
715
|
+
performed_at: string;
|
|
716
|
+
rescheduled_count: number;
|
|
717
|
+
total_carts: number;
|
|
718
|
+
updated_at: string;
|
|
719
|
+
user_id: string;
|
|
720
|
+
};
|
|
721
|
+
Insert: {
|
|
722
|
+
blocked_count?: number;
|
|
723
|
+
checked_count?: number;
|
|
724
|
+
control_date?: string;
|
|
725
|
+
created_at?: string;
|
|
726
|
+
id?: string;
|
|
727
|
+
notes?: string | null;
|
|
728
|
+
performed_at?: string;
|
|
729
|
+
rescheduled_count?: number;
|
|
730
|
+
total_carts?: number;
|
|
731
|
+
updated_at?: string;
|
|
732
|
+
user_id: string;
|
|
733
|
+
};
|
|
734
|
+
Update: {
|
|
735
|
+
blocked_count?: number;
|
|
736
|
+
checked_count?: number;
|
|
737
|
+
control_date?: string;
|
|
738
|
+
created_at?: string;
|
|
739
|
+
id?: string;
|
|
740
|
+
notes?: string | null;
|
|
741
|
+
performed_at?: string;
|
|
742
|
+
rescheduled_count?: number;
|
|
743
|
+
total_carts?: number;
|
|
744
|
+
updated_at?: string;
|
|
745
|
+
user_id?: string;
|
|
746
|
+
};
|
|
747
|
+
Relationships: [];
|
|
748
|
+
};
|
|
749
|
+
cart_numbers: {
|
|
750
|
+
Row: {
|
|
751
|
+
assigned_at: string;
|
|
752
|
+
cart_index: number;
|
|
753
|
+
cart_number: string;
|
|
754
|
+
day_seq: number;
|
|
755
|
+
id: string;
|
|
756
|
+
order_id: string;
|
|
757
|
+
order_source: string;
|
|
758
|
+
pick_date: string;
|
|
759
|
+
status: string;
|
|
760
|
+
};
|
|
761
|
+
Insert: {
|
|
762
|
+
assigned_at?: string;
|
|
763
|
+
cart_index: number;
|
|
764
|
+
cart_number: string;
|
|
765
|
+
day_seq: number;
|
|
766
|
+
id?: string;
|
|
767
|
+
order_id: string;
|
|
768
|
+
order_source: string;
|
|
769
|
+
pick_date: string;
|
|
770
|
+
status?: string;
|
|
771
|
+
};
|
|
772
|
+
Update: {
|
|
773
|
+
assigned_at?: string;
|
|
774
|
+
cart_index?: number;
|
|
775
|
+
cart_number?: string;
|
|
776
|
+
day_seq?: number;
|
|
777
|
+
id?: string;
|
|
778
|
+
order_id?: string;
|
|
779
|
+
order_source?: string;
|
|
780
|
+
pick_date?: string;
|
|
781
|
+
status?: string;
|
|
782
|
+
};
|
|
783
|
+
Relationships: [];
|
|
784
|
+
};
|
|
563
785
|
cart_pick_overrides: {
|
|
564
786
|
Row: {
|
|
565
787
|
cart_index: number;
|
|
@@ -1232,6 +1454,54 @@ export declare const acknowledgeSalesOrder: import("@tanstack/start-client-core"
|
|
|
1232
1454
|
referencedColumns: ["id"];
|
|
1233
1455
|
}];
|
|
1234
1456
|
};
|
|
1457
|
+
dashboard_critical_alerts: {
|
|
1458
|
+
Row: {
|
|
1459
|
+
alert_key: string;
|
|
1460
|
+
alert_type: string;
|
|
1461
|
+
created_at: string;
|
|
1462
|
+
description: string | null;
|
|
1463
|
+
id: string;
|
|
1464
|
+
metadata: import("../integrations/supabase/types").Json | null;
|
|
1465
|
+
priority: string;
|
|
1466
|
+
raised_at: string;
|
|
1467
|
+
related_cart_ids: string[] | null;
|
|
1468
|
+
resolved_at: string | null;
|
|
1469
|
+
title: string;
|
|
1470
|
+
updated_at: string;
|
|
1471
|
+
user_id: string;
|
|
1472
|
+
};
|
|
1473
|
+
Insert: {
|
|
1474
|
+
alert_key: string;
|
|
1475
|
+
alert_type: string;
|
|
1476
|
+
created_at?: string;
|
|
1477
|
+
description?: string | null;
|
|
1478
|
+
id?: string;
|
|
1479
|
+
metadata?: import("../integrations/supabase/types").Json | null;
|
|
1480
|
+
priority?: string;
|
|
1481
|
+
raised_at?: string;
|
|
1482
|
+
related_cart_ids?: string[] | null;
|
|
1483
|
+
resolved_at?: string | null;
|
|
1484
|
+
title: string;
|
|
1485
|
+
updated_at?: string;
|
|
1486
|
+
user_id: string;
|
|
1487
|
+
};
|
|
1488
|
+
Update: {
|
|
1489
|
+
alert_key?: string;
|
|
1490
|
+
alert_type?: string;
|
|
1491
|
+
created_at?: string;
|
|
1492
|
+
description?: string | null;
|
|
1493
|
+
id?: string;
|
|
1494
|
+
metadata?: import("../integrations/supabase/types").Json | null;
|
|
1495
|
+
priority?: string;
|
|
1496
|
+
raised_at?: string;
|
|
1497
|
+
related_cart_ids?: string[] | null;
|
|
1498
|
+
resolved_at?: string | null;
|
|
1499
|
+
title?: string;
|
|
1500
|
+
updated_at?: string;
|
|
1501
|
+
user_id?: string;
|
|
1502
|
+
};
|
|
1503
|
+
Relationships: [];
|
|
1504
|
+
};
|
|
1235
1505
|
dashboard_daily_reports: {
|
|
1236
1506
|
Row: {
|
|
1237
1507
|
created_at: string;
|
|
@@ -2734,6 +3004,7 @@ export declare const acknowledgeSalesOrder: import("@tanstack/start-client-core"
|
|
|
2734
3004
|
};
|
|
2735
3005
|
floricode_sync_state: {
|
|
2736
3006
|
Row: {
|
|
3007
|
+
cursor_skip: number;
|
|
2737
3008
|
error_message: string | null;
|
|
2738
3009
|
last_change_date_time: string | null;
|
|
2739
3010
|
last_sequence_number: number;
|
|
@@ -2743,6 +3014,7 @@ export declare const acknowledgeSalesOrder: import("@tanstack/start-client-core"
|
|
|
2743
3014
|
updated_at: string;
|
|
2744
3015
|
};
|
|
2745
3016
|
Insert: {
|
|
3017
|
+
cursor_skip?: number;
|
|
2746
3018
|
error_message?: string | null;
|
|
2747
3019
|
last_change_date_time?: string | null;
|
|
2748
3020
|
last_sequence_number?: number;
|
|
@@ -2752,6 +3024,7 @@ export declare const acknowledgeSalesOrder: import("@tanstack/start-client-core"
|
|
|
2752
3024
|
updated_at?: string;
|
|
2753
3025
|
};
|
|
2754
3026
|
Update: {
|
|
3027
|
+
cursor_skip?: number;
|
|
2755
3028
|
error_message?: string | null;
|
|
2756
3029
|
last_change_date_time?: string | null;
|
|
2757
3030
|
last_sequence_number?: number;
|
|
@@ -5099,6 +5372,93 @@ export declare const acknowledgeSalesOrder: import("@tanstack/start-client-core"
|
|
|
5099
5372
|
};
|
|
5100
5373
|
Relationships: [];
|
|
5101
5374
|
};
|
|
5375
|
+
manufacture_product_components: {
|
|
5376
|
+
Row: {
|
|
5377
|
+
component_type: string;
|
|
5378
|
+
created_at: string;
|
|
5379
|
+
id: string;
|
|
5380
|
+
manufacture_product_id: string;
|
|
5381
|
+
product_group_id: string | null;
|
|
5382
|
+
quantity: number;
|
|
5383
|
+
trade_item_id: string | null;
|
|
5384
|
+
unit: string;
|
|
5385
|
+
};
|
|
5386
|
+
Insert: {
|
|
5387
|
+
component_type: string;
|
|
5388
|
+
created_at?: string;
|
|
5389
|
+
id?: string;
|
|
5390
|
+
manufacture_product_id: string;
|
|
5391
|
+
product_group_id?: string | null;
|
|
5392
|
+
quantity?: number;
|
|
5393
|
+
trade_item_id?: string | null;
|
|
5394
|
+
unit?: string;
|
|
5395
|
+
};
|
|
5396
|
+
Update: {
|
|
5397
|
+
component_type?: string;
|
|
5398
|
+
created_at?: string;
|
|
5399
|
+
id?: string;
|
|
5400
|
+
manufacture_product_id?: string;
|
|
5401
|
+
product_group_id?: string | null;
|
|
5402
|
+
quantity?: number;
|
|
5403
|
+
trade_item_id?: string | null;
|
|
5404
|
+
unit?: string;
|
|
5405
|
+
};
|
|
5406
|
+
Relationships: [{
|
|
5407
|
+
foreignKeyName: "manufacture_product_components_manufacture_product_id_fkey";
|
|
5408
|
+
columns: ["manufacture_product_id"];
|
|
5409
|
+
isOneToOne: false;
|
|
5410
|
+
referencedRelation: "manufacture_product_possible_stock_view";
|
|
5411
|
+
referencedColumns: ["manufacture_product_id"];
|
|
5412
|
+
}, {
|
|
5413
|
+
foreignKeyName: "manufacture_product_components_manufacture_product_id_fkey";
|
|
5414
|
+
columns: ["manufacture_product_id"];
|
|
5415
|
+
isOneToOne: false;
|
|
5416
|
+
referencedRelation: "manufacture_products";
|
|
5417
|
+
referencedColumns: ["id"];
|
|
5418
|
+
}, {
|
|
5419
|
+
foreignKeyName: "manufacture_product_components_product_group_id_fkey";
|
|
5420
|
+
columns: ["product_group_id"];
|
|
5421
|
+
isOneToOne: false;
|
|
5422
|
+
referencedRelation: "product_groups";
|
|
5423
|
+
referencedColumns: ["id"];
|
|
5424
|
+
}];
|
|
5425
|
+
};
|
|
5426
|
+
manufacture_products: {
|
|
5427
|
+
Row: {
|
|
5428
|
+
created_at: string;
|
|
5429
|
+
description: string | null;
|
|
5430
|
+
id: string;
|
|
5431
|
+
is_active: boolean;
|
|
5432
|
+
name: string;
|
|
5433
|
+
produced_stock: number;
|
|
5434
|
+
product_code: string;
|
|
5435
|
+
tenant_id: string;
|
|
5436
|
+
updated_at: string;
|
|
5437
|
+
};
|
|
5438
|
+
Insert: {
|
|
5439
|
+
created_at?: string;
|
|
5440
|
+
description?: string | null;
|
|
5441
|
+
id?: string;
|
|
5442
|
+
is_active?: boolean;
|
|
5443
|
+
name: string;
|
|
5444
|
+
produced_stock?: number;
|
|
5445
|
+
product_code: string;
|
|
5446
|
+
tenant_id: string;
|
|
5447
|
+
updated_at?: string;
|
|
5448
|
+
};
|
|
5449
|
+
Update: {
|
|
5450
|
+
created_at?: string;
|
|
5451
|
+
description?: string | null;
|
|
5452
|
+
id?: string;
|
|
5453
|
+
is_active?: boolean;
|
|
5454
|
+
name?: string;
|
|
5455
|
+
produced_stock?: number;
|
|
5456
|
+
product_code?: string;
|
|
5457
|
+
tenant_id?: string;
|
|
5458
|
+
updated_at?: string;
|
|
5459
|
+
};
|
|
5460
|
+
Relationships: [];
|
|
5461
|
+
};
|
|
5102
5462
|
monteurs: {
|
|
5103
5463
|
Row: {
|
|
5104
5464
|
avatar_url: string | null;
|
|
@@ -6059,6 +6419,66 @@ export declare const acknowledgeSalesOrder: import("@tanstack/start-client-core"
|
|
|
6059
6419
|
};
|
|
6060
6420
|
Relationships: [];
|
|
6061
6421
|
};
|
|
6422
|
+
product_group_items: {
|
|
6423
|
+
Row: {
|
|
6424
|
+
created_at: string;
|
|
6425
|
+
id: string;
|
|
6426
|
+
product_group_id: string;
|
|
6427
|
+
quantity: number;
|
|
6428
|
+
trade_item_id: string;
|
|
6429
|
+
};
|
|
6430
|
+
Insert: {
|
|
6431
|
+
created_at?: string;
|
|
6432
|
+
id?: string;
|
|
6433
|
+
product_group_id: string;
|
|
6434
|
+
quantity?: number;
|
|
6435
|
+
trade_item_id: string;
|
|
6436
|
+
};
|
|
6437
|
+
Update: {
|
|
6438
|
+
created_at?: string;
|
|
6439
|
+
id?: string;
|
|
6440
|
+
product_group_id?: string;
|
|
6441
|
+
quantity?: number;
|
|
6442
|
+
trade_item_id?: string;
|
|
6443
|
+
};
|
|
6444
|
+
Relationships: [{
|
|
6445
|
+
foreignKeyName: "product_group_items_product_group_id_fkey";
|
|
6446
|
+
columns: ["product_group_id"];
|
|
6447
|
+
isOneToOne: false;
|
|
6448
|
+
referencedRelation: "product_groups";
|
|
6449
|
+
referencedColumns: ["id"];
|
|
6450
|
+
}];
|
|
6451
|
+
};
|
|
6452
|
+
product_groups: {
|
|
6453
|
+
Row: {
|
|
6454
|
+
created_at: string;
|
|
6455
|
+
description: string | null;
|
|
6456
|
+
id: string;
|
|
6457
|
+
is_active: boolean;
|
|
6458
|
+
name: string;
|
|
6459
|
+
tenant_id: string;
|
|
6460
|
+
updated_at: string;
|
|
6461
|
+
};
|
|
6462
|
+
Insert: {
|
|
6463
|
+
created_at?: string;
|
|
6464
|
+
description?: string | null;
|
|
6465
|
+
id?: string;
|
|
6466
|
+
is_active?: boolean;
|
|
6467
|
+
name: string;
|
|
6468
|
+
tenant_id: string;
|
|
6469
|
+
updated_at?: string;
|
|
6470
|
+
};
|
|
6471
|
+
Update: {
|
|
6472
|
+
created_at?: string;
|
|
6473
|
+
description?: string | null;
|
|
6474
|
+
id?: string;
|
|
6475
|
+
is_active?: boolean;
|
|
6476
|
+
name?: string;
|
|
6477
|
+
tenant_id?: string;
|
|
6478
|
+
updated_at?: string;
|
|
6479
|
+
};
|
|
6480
|
+
Relationships: [];
|
|
6481
|
+
};
|
|
6062
6482
|
products: {
|
|
6063
6483
|
Row: {
|
|
6064
6484
|
barcode: string | null;
|
|
@@ -7198,7 +7618,13 @@ export declare const acknowledgeSalesOrder: import("@tanstack/start-client-core"
|
|
|
7198
7618
|
connection_id: string | null;
|
|
7199
7619
|
created_at: string;
|
|
7200
7620
|
data: import("../integrations/supabase/types").Json;
|
|
7621
|
+
floriday_id: string | null;
|
|
7622
|
+
floriday_link_error: string | null;
|
|
7623
|
+
floriday_link_status: string;
|
|
7201
7624
|
id: string;
|
|
7625
|
+
last_floriday_sync_at: string | null;
|
|
7626
|
+
missing_required_fields: string[];
|
|
7627
|
+
source: string;
|
|
7202
7628
|
updated_at: string;
|
|
7203
7629
|
user_id: string;
|
|
7204
7630
|
};
|
|
@@ -7206,7 +7632,13 @@ export declare const acknowledgeSalesOrder: import("@tanstack/start-client-core"
|
|
|
7206
7632
|
connection_id?: string | null;
|
|
7207
7633
|
created_at?: string;
|
|
7208
7634
|
data?: import("../integrations/supabase/types").Json;
|
|
7635
|
+
floriday_id?: string | null;
|
|
7636
|
+
floriday_link_error?: string | null;
|
|
7637
|
+
floriday_link_status?: string;
|
|
7209
7638
|
id?: string;
|
|
7639
|
+
last_floriday_sync_at?: string | null;
|
|
7640
|
+
missing_required_fields?: string[];
|
|
7641
|
+
source?: string;
|
|
7210
7642
|
updated_at?: string;
|
|
7211
7643
|
user_id: string;
|
|
7212
7644
|
};
|
|
@@ -7214,7 +7646,55 @@ export declare const acknowledgeSalesOrder: import("@tanstack/start-client-core"
|
|
|
7214
7646
|
connection_id?: string | null;
|
|
7215
7647
|
created_at?: string;
|
|
7216
7648
|
data?: import("../integrations/supabase/types").Json;
|
|
7649
|
+
floriday_id?: string | null;
|
|
7650
|
+
floriday_link_error?: string | null;
|
|
7651
|
+
floriday_link_status?: string;
|
|
7217
7652
|
id?: string;
|
|
7653
|
+
last_floriday_sync_at?: string | null;
|
|
7654
|
+
missing_required_fields?: string[];
|
|
7655
|
+
source?: string;
|
|
7656
|
+
updated_at?: string;
|
|
7657
|
+
user_id?: string;
|
|
7658
|
+
};
|
|
7659
|
+
Relationships: [];
|
|
7660
|
+
};
|
|
7661
|
+
trade_item_stock: {
|
|
7662
|
+
Row: {
|
|
7663
|
+
connection_id: string;
|
|
7664
|
+
created_at: string;
|
|
7665
|
+
id: string;
|
|
7666
|
+
incoming_stock: number;
|
|
7667
|
+
minimum_stock: number;
|
|
7668
|
+
notes: string | null;
|
|
7669
|
+
physical_stock: number;
|
|
7670
|
+
reserved_stock: number;
|
|
7671
|
+
trade_item_key: string;
|
|
7672
|
+
updated_at: string;
|
|
7673
|
+
user_id: string;
|
|
7674
|
+
};
|
|
7675
|
+
Insert: {
|
|
7676
|
+
connection_id: string;
|
|
7677
|
+
created_at?: string;
|
|
7678
|
+
id?: string;
|
|
7679
|
+
incoming_stock?: number;
|
|
7680
|
+
minimum_stock?: number;
|
|
7681
|
+
notes?: string | null;
|
|
7682
|
+
physical_stock?: number;
|
|
7683
|
+
reserved_stock?: number;
|
|
7684
|
+
trade_item_key: string;
|
|
7685
|
+
updated_at?: string;
|
|
7686
|
+
user_id: string;
|
|
7687
|
+
};
|
|
7688
|
+
Update: {
|
|
7689
|
+
connection_id?: string;
|
|
7690
|
+
created_at?: string;
|
|
7691
|
+
id?: string;
|
|
7692
|
+
incoming_stock?: number;
|
|
7693
|
+
minimum_stock?: number;
|
|
7694
|
+
notes?: string | null;
|
|
7695
|
+
physical_stock?: number;
|
|
7696
|
+
reserved_stock?: number;
|
|
7697
|
+
trade_item_key?: string;
|
|
7218
7698
|
updated_at?: string;
|
|
7219
7699
|
user_id?: string;
|
|
7220
7700
|
};
|
|
@@ -7564,6 +8044,7 @@ export declare const acknowledgeSalesOrder: import("@tanstack/start-client-core"
|
|
|
7564
8044
|
};
|
|
7565
8045
|
twinfield_invoice_sync_logs: {
|
|
7566
8046
|
Row: {
|
|
8047
|
+
action_type: string | null;
|
|
7567
8048
|
created_at: string;
|
|
7568
8049
|
details: import("../integrations/supabase/types").Json | null;
|
|
7569
8050
|
duration_ms: number | null;
|
|
@@ -7576,6 +8057,7 @@ export declare const acknowledgeSalesOrder: import("@tanstack/start-client-core"
|
|
|
7576
8057
|
user_id: string;
|
|
7577
8058
|
};
|
|
7578
8059
|
Insert: {
|
|
8060
|
+
action_type?: string | null;
|
|
7579
8061
|
created_at?: string;
|
|
7580
8062
|
details?: import("../integrations/supabase/types").Json | null;
|
|
7581
8063
|
duration_ms?: number | null;
|
|
@@ -7588,6 +8070,7 @@ export declare const acknowledgeSalesOrder: import("@tanstack/start-client-core"
|
|
|
7588
8070
|
user_id: string;
|
|
7589
8071
|
};
|
|
7590
8072
|
Update: {
|
|
8073
|
+
action_type?: string | null;
|
|
7591
8074
|
created_at?: string;
|
|
7592
8075
|
details?: import("../integrations/supabase/types").Json | null;
|
|
7593
8076
|
duration_ms?: number | null;
|
|
@@ -7823,6 +8306,57 @@ export declare const acknowledgeSalesOrder: import("@tanstack/start-client-core"
|
|
|
7823
8306
|
referencedColumns: ["id"];
|
|
7824
8307
|
}];
|
|
7825
8308
|
};
|
|
8309
|
+
twinfield_request_metrics: {
|
|
8310
|
+
Row: {
|
|
8311
|
+
bucket_hour: string;
|
|
8312
|
+
connection_id: string;
|
|
8313
|
+
error_count: number;
|
|
8314
|
+
rate_limited_count: number;
|
|
8315
|
+
request_count: number;
|
|
8316
|
+
updated_at: string;
|
|
8317
|
+
};
|
|
8318
|
+
Insert: {
|
|
8319
|
+
bucket_hour: string;
|
|
8320
|
+
connection_id: string;
|
|
8321
|
+
error_count?: number;
|
|
8322
|
+
rate_limited_count?: number;
|
|
8323
|
+
request_count?: number;
|
|
8324
|
+
updated_at?: string;
|
|
8325
|
+
};
|
|
8326
|
+
Update: {
|
|
8327
|
+
bucket_hour?: string;
|
|
8328
|
+
connection_id?: string;
|
|
8329
|
+
error_count?: number;
|
|
8330
|
+
rate_limited_count?: number;
|
|
8331
|
+
request_count?: number;
|
|
8332
|
+
updated_at?: string;
|
|
8333
|
+
};
|
|
8334
|
+
Relationships: [];
|
|
8335
|
+
};
|
|
8336
|
+
twinfield_session_cache: {
|
|
8337
|
+
Row: {
|
|
8338
|
+
cluster: string;
|
|
8339
|
+
created_at: string;
|
|
8340
|
+
expires_at: string;
|
|
8341
|
+
session_id: string;
|
|
8342
|
+
user_id: string;
|
|
8343
|
+
};
|
|
8344
|
+
Insert: {
|
|
8345
|
+
cluster: string;
|
|
8346
|
+
created_at?: string;
|
|
8347
|
+
expires_at: string;
|
|
8348
|
+
session_id: string;
|
|
8349
|
+
user_id: string;
|
|
8350
|
+
};
|
|
8351
|
+
Update: {
|
|
8352
|
+
cluster?: string;
|
|
8353
|
+
created_at?: string;
|
|
8354
|
+
expires_at?: string;
|
|
8355
|
+
session_id?: string;
|
|
8356
|
+
user_id?: string;
|
|
8357
|
+
};
|
|
8358
|
+
Relationships: [];
|
|
8359
|
+
};
|
|
7826
8360
|
twinfield_settings: {
|
|
7827
8361
|
Row: {
|
|
7828
8362
|
active_environment: string;
|
|
@@ -8404,6 +8938,35 @@ export declare const acknowledgeSalesOrder: import("@tanstack/start-client-core"
|
|
|
8404
8938
|
};
|
|
8405
8939
|
Relationships: [];
|
|
8406
8940
|
};
|
|
8941
|
+
manufacture_product_possible_stock_view: {
|
|
8942
|
+
Row: {
|
|
8943
|
+
component_count: number | null;
|
|
8944
|
+
manufacture_product_id: string | null;
|
|
8945
|
+
possible_stock: number | null;
|
|
8946
|
+
};
|
|
8947
|
+
Relationships: [];
|
|
8948
|
+
};
|
|
8949
|
+
product_group_stock_view: {
|
|
8950
|
+
Row: {
|
|
8951
|
+
item_count: number | null;
|
|
8952
|
+
product_group_id: string | null;
|
|
8953
|
+
total_stock: number | null;
|
|
8954
|
+
};
|
|
8955
|
+
Relationships: [{
|
|
8956
|
+
foreignKeyName: "product_group_items_product_group_id_fkey";
|
|
8957
|
+
columns: ["product_group_id"];
|
|
8958
|
+
isOneToOne: false;
|
|
8959
|
+
referencedRelation: "product_groups";
|
|
8960
|
+
referencedColumns: ["id"];
|
|
8961
|
+
}];
|
|
8962
|
+
};
|
|
8963
|
+
trade_item_stock_view: {
|
|
8964
|
+
Row: {
|
|
8965
|
+
stock: number | null;
|
|
8966
|
+
trade_item_id: string | null;
|
|
8967
|
+
};
|
|
8968
|
+
Relationships: [];
|
|
8969
|
+
};
|
|
8407
8970
|
v_external_customers_exact: {
|
|
8408
8971
|
Row: {
|
|
8409
8972
|
account_number: string | null;
|
|
@@ -8659,6 +9222,20 @@ export declare const acknowledgeSalesOrder: import("@tanstack/start-client-core"
|
|
|
8659
9222
|
};
|
|
8660
9223
|
Returns: number;
|
|
8661
9224
|
};
|
|
9225
|
+
assign_cart_numbers: {
|
|
9226
|
+
Args: {
|
|
9227
|
+
p_carts: import("../integrations/supabase/types").Json;
|
|
9228
|
+
};
|
|
9229
|
+
Returns: {
|
|
9230
|
+
cart_index: number;
|
|
9231
|
+
cart_number: string;
|
|
9232
|
+
day_seq: number;
|
|
9233
|
+
order_id: string;
|
|
9234
|
+
order_source: string;
|
|
9235
|
+
pick_date: string;
|
|
9236
|
+
status: string;
|
|
9237
|
+
}[];
|
|
9238
|
+
};
|
|
8662
9239
|
assign_floriday_order_numbers: {
|
|
8663
9240
|
Args: {
|
|
8664
9241
|
p_ids: string[];
|
|
@@ -8678,10 +9255,37 @@ export declare const acknowledgeSalesOrder: import("@tanstack/start-client-core"
|
|
|
8678
9255
|
Args: never;
|
|
8679
9256
|
Returns: number;
|
|
8680
9257
|
};
|
|
9258
|
+
control_get_todays_carts: {
|
|
9259
|
+
Args: never;
|
|
9260
|
+
Returns: {
|
|
9261
|
+
cart_index: number;
|
|
9262
|
+
cart_number: string;
|
|
9263
|
+
cart_number_id: string;
|
|
9264
|
+
order_id: string;
|
|
9265
|
+
order_source: string;
|
|
9266
|
+
pick_date: string;
|
|
9267
|
+
status: string;
|
|
9268
|
+
}[];
|
|
9269
|
+
};
|
|
9270
|
+
count_distinct_regulatory_products: {
|
|
9271
|
+
Args: never;
|
|
9272
|
+
Returns: number;
|
|
9273
|
+
};
|
|
8681
9274
|
current_monteur_id: {
|
|
8682
9275
|
Args: never;
|
|
8683
9276
|
Returns: string;
|
|
8684
9277
|
};
|
|
9278
|
+
dashboard_alert_counts: {
|
|
9279
|
+
Args: never;
|
|
9280
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
9281
|
+
};
|
|
9282
|
+
dashboard_alert_rows: {
|
|
9283
|
+
Args: {
|
|
9284
|
+
check_id: string;
|
|
9285
|
+
row_limit?: number;
|
|
9286
|
+
};
|
|
9287
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
9288
|
+
};
|
|
8685
9289
|
dashboard_list_public_schema: {
|
|
8686
9290
|
Args: never;
|
|
8687
9291
|
Returns: {
|
|
@@ -8762,6 +9366,13 @@ export declare const acknowledgeSalesOrder: import("@tanstack/start-client-core"
|
|
|
8762
9366
|
};
|
|
8763
9367
|
Returns: boolean;
|
|
8764
9368
|
};
|
|
9369
|
+
format_cart_number: {
|
|
9370
|
+
Args: {
|
|
9371
|
+
p_pick_date: string;
|
|
9372
|
+
p_seq: number;
|
|
9373
|
+
};
|
|
9374
|
+
Returns: string;
|
|
9375
|
+
};
|
|
8765
9376
|
get_active_floriday_connection_public: {
|
|
8766
9377
|
Args: never;
|
|
8767
9378
|
Returns: {
|
|
@@ -8966,6 +9577,15 @@ export declare const acknowledgeSalesOrder: import("@tanstack/start-client-core"
|
|
|
8966
9577
|
};
|
|
8967
9578
|
Returns: undefined;
|
|
8968
9579
|
};
|
|
9580
|
+
pickstation_set_cart_status: {
|
|
9581
|
+
Args: {
|
|
9582
|
+
p_cart_index: number;
|
|
9583
|
+
p_order_id: string;
|
|
9584
|
+
p_order_source: string;
|
|
9585
|
+
p_status: string;
|
|
9586
|
+
};
|
|
9587
|
+
Returns: undefined;
|
|
9588
|
+
};
|
|
8969
9589
|
refresh_floricode_derived_code_lists: {
|
|
8970
9590
|
Args: never;
|
|
8971
9591
|
Returns: {
|
|
@@ -8974,6 +9594,12 @@ export declare const acknowledgeSalesOrder: import("@tanstack/start-client-core"
|
|
|
8974
9594
|
row_count: number;
|
|
8975
9595
|
}[];
|
|
8976
9596
|
};
|
|
9597
|
+
refresh_floricode_derived_for_product: {
|
|
9598
|
+
Args: {
|
|
9599
|
+
p_product_code: string;
|
|
9600
|
+
};
|
|
9601
|
+
Returns: number;
|
|
9602
|
+
};
|
|
8977
9603
|
reset_floriday_sync_cursor: {
|
|
8978
9604
|
Args: {
|
|
8979
9605
|
p_connection_id: string;
|
|
@@ -9301,6 +9927,7 @@ export declare const rejectSalesOrder: 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 rejectSalesOrder: 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 rejectSalesOrder: 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 rejectSalesOrder: 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 rejectSalesOrder: 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 rejectSalesOrder: 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 rejectSalesOrder: 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 rejectSalesOrder: 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 rejectSalesOrder: 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 rejectSalesOrder: 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,6 +10529,177 @@ export declare const rejectSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
9852
10529
|
};
|
|
9853
10530
|
Relationships: [];
|
|
9854
10531
|
};
|
|
10532
|
+
cart_control_draft: {
|
|
10533
|
+
Row: {
|
|
10534
|
+
cart_states: import("../integrations/supabase/types").Json;
|
|
10535
|
+
checked_keys: import("../integrations/supabase/types").Json;
|
|
10536
|
+
draft_date: string;
|
|
10537
|
+
form_state: import("../integrations/supabase/types").Json;
|
|
10538
|
+
notes: string;
|
|
10539
|
+
updated_at: string;
|
|
10540
|
+
user_id: string;
|
|
10541
|
+
};
|
|
10542
|
+
Insert: {
|
|
10543
|
+
cart_states?: import("../integrations/supabase/types").Json;
|
|
10544
|
+
checked_keys?: import("../integrations/supabase/types").Json;
|
|
10545
|
+
draft_date: string;
|
|
10546
|
+
form_state?: import("../integrations/supabase/types").Json;
|
|
10547
|
+
notes?: string;
|
|
10548
|
+
updated_at?: string;
|
|
10549
|
+
user_id: string;
|
|
10550
|
+
};
|
|
10551
|
+
Update: {
|
|
10552
|
+
cart_states?: import("../integrations/supabase/types").Json;
|
|
10553
|
+
checked_keys?: import("../integrations/supabase/types").Json;
|
|
10554
|
+
draft_date?: string;
|
|
10555
|
+
form_state?: import("../integrations/supabase/types").Json;
|
|
10556
|
+
notes?: string;
|
|
10557
|
+
updated_at?: string;
|
|
10558
|
+
user_id?: string;
|
|
10559
|
+
};
|
|
10560
|
+
Relationships: [];
|
|
10561
|
+
};
|
|
10562
|
+
cart_control_items: {
|
|
10563
|
+
Row: {
|
|
10564
|
+
action: string;
|
|
10565
|
+
block_reason: string | null;
|
|
10566
|
+
carrier_name: string | null;
|
|
10567
|
+
cart_index: number;
|
|
10568
|
+
cart_number_id: string | null;
|
|
10569
|
+
cart_number_label: string | null;
|
|
10570
|
+
created_at: string;
|
|
10571
|
+
customer_name: string | null;
|
|
10572
|
+
delivery_date: string | null;
|
|
10573
|
+
id: string;
|
|
10574
|
+
new_pick_date: string | null;
|
|
10575
|
+
order_id: string;
|
|
10576
|
+
order_number: string | null;
|
|
10577
|
+
order_source: string;
|
|
10578
|
+
pickup_date: string | null;
|
|
10579
|
+
session_id: string;
|
|
10580
|
+
};
|
|
10581
|
+
Insert: {
|
|
10582
|
+
action: string;
|
|
10583
|
+
block_reason?: string | null;
|
|
10584
|
+
carrier_name?: string | null;
|
|
10585
|
+
cart_index: number;
|
|
10586
|
+
cart_number_id?: string | null;
|
|
10587
|
+
cart_number_label?: string | null;
|
|
10588
|
+
created_at?: string;
|
|
10589
|
+
customer_name?: string | null;
|
|
10590
|
+
delivery_date?: string | null;
|
|
10591
|
+
id?: string;
|
|
10592
|
+
new_pick_date?: string | null;
|
|
10593
|
+
order_id: string;
|
|
10594
|
+
order_number?: string | null;
|
|
10595
|
+
order_source: string;
|
|
10596
|
+
pickup_date?: string | null;
|
|
10597
|
+
session_id: string;
|
|
10598
|
+
};
|
|
10599
|
+
Update: {
|
|
10600
|
+
action?: string;
|
|
10601
|
+
block_reason?: string | null;
|
|
10602
|
+
carrier_name?: string | null;
|
|
10603
|
+
cart_index?: number;
|
|
10604
|
+
cart_number_id?: string | null;
|
|
10605
|
+
cart_number_label?: string | null;
|
|
10606
|
+
created_at?: string;
|
|
10607
|
+
customer_name?: string | null;
|
|
10608
|
+
delivery_date?: string | null;
|
|
10609
|
+
id?: string;
|
|
10610
|
+
new_pick_date?: string | null;
|
|
10611
|
+
order_id?: string;
|
|
10612
|
+
order_number?: string | null;
|
|
10613
|
+
order_source?: string;
|
|
10614
|
+
pickup_date?: string | null;
|
|
10615
|
+
session_id?: string;
|
|
10616
|
+
};
|
|
10617
|
+
Relationships: [{
|
|
10618
|
+
foreignKeyName: "cart_control_items_session_id_fkey";
|
|
10619
|
+
columns: ["session_id"];
|
|
10620
|
+
isOneToOne: false;
|
|
10621
|
+
referencedRelation: "cart_control_sessions";
|
|
10622
|
+
referencedColumns: ["id"];
|
|
10623
|
+
}];
|
|
10624
|
+
};
|
|
10625
|
+
cart_control_sessions: {
|
|
10626
|
+
Row: {
|
|
10627
|
+
blocked_count: number;
|
|
10628
|
+
checked_count: number;
|
|
10629
|
+
control_date: string;
|
|
10630
|
+
created_at: string;
|
|
10631
|
+
id: string;
|
|
10632
|
+
notes: string | null;
|
|
10633
|
+
performed_at: string;
|
|
10634
|
+
rescheduled_count: number;
|
|
10635
|
+
total_carts: number;
|
|
10636
|
+
updated_at: string;
|
|
10637
|
+
user_id: string;
|
|
10638
|
+
};
|
|
10639
|
+
Insert: {
|
|
10640
|
+
blocked_count?: number;
|
|
10641
|
+
checked_count?: number;
|
|
10642
|
+
control_date?: string;
|
|
10643
|
+
created_at?: string;
|
|
10644
|
+
id?: string;
|
|
10645
|
+
notes?: string | null;
|
|
10646
|
+
performed_at?: string;
|
|
10647
|
+
rescheduled_count?: number;
|
|
10648
|
+
total_carts?: number;
|
|
10649
|
+
updated_at?: string;
|
|
10650
|
+
user_id: string;
|
|
10651
|
+
};
|
|
10652
|
+
Update: {
|
|
10653
|
+
blocked_count?: number;
|
|
10654
|
+
checked_count?: number;
|
|
10655
|
+
control_date?: string;
|
|
10656
|
+
created_at?: string;
|
|
10657
|
+
id?: string;
|
|
10658
|
+
notes?: string | null;
|
|
10659
|
+
performed_at?: string;
|
|
10660
|
+
rescheduled_count?: number;
|
|
10661
|
+
total_carts?: number;
|
|
10662
|
+
updated_at?: string;
|
|
10663
|
+
user_id?: string;
|
|
10664
|
+
};
|
|
10665
|
+
Relationships: [];
|
|
10666
|
+
};
|
|
10667
|
+
cart_numbers: {
|
|
10668
|
+
Row: {
|
|
10669
|
+
assigned_at: string;
|
|
10670
|
+
cart_index: number;
|
|
10671
|
+
cart_number: string;
|
|
10672
|
+
day_seq: number;
|
|
10673
|
+
id: string;
|
|
10674
|
+
order_id: string;
|
|
10675
|
+
order_source: string;
|
|
10676
|
+
pick_date: string;
|
|
10677
|
+
status: string;
|
|
10678
|
+
};
|
|
10679
|
+
Insert: {
|
|
10680
|
+
assigned_at?: string;
|
|
10681
|
+
cart_index: number;
|
|
10682
|
+
cart_number: string;
|
|
10683
|
+
day_seq: number;
|
|
10684
|
+
id?: string;
|
|
10685
|
+
order_id: string;
|
|
10686
|
+
order_source: string;
|
|
10687
|
+
pick_date: string;
|
|
10688
|
+
status?: string;
|
|
10689
|
+
};
|
|
10690
|
+
Update: {
|
|
10691
|
+
assigned_at?: string;
|
|
10692
|
+
cart_index?: number;
|
|
10693
|
+
cart_number?: string;
|
|
10694
|
+
day_seq?: number;
|
|
10695
|
+
id?: string;
|
|
10696
|
+
order_id?: string;
|
|
10697
|
+
order_source?: string;
|
|
10698
|
+
pick_date?: string;
|
|
10699
|
+
status?: string;
|
|
10700
|
+
};
|
|
10701
|
+
Relationships: [];
|
|
10702
|
+
};
|
|
9855
10703
|
cart_pick_overrides: {
|
|
9856
10704
|
Row: {
|
|
9857
10705
|
cart_index: number;
|
|
@@ -10524,6 +11372,54 @@ export declare const rejectSalesOrder: 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 rejectSalesOrder: 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 rejectSalesOrder: 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 rejectSalesOrder: 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 rejectSalesOrder: 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,6 +16337,66 @@ export declare const rejectSalesOrder: import("@tanstack/start-client-core").Opt
|
|
|
15351
16337
|
};
|
|
15352
16338
|
Relationships: [];
|
|
15353
16339
|
};
|
|
16340
|
+
product_group_items: {
|
|
16341
|
+
Row: {
|
|
16342
|
+
created_at: string;
|
|
16343
|
+
id: string;
|
|
16344
|
+
product_group_id: string;
|
|
16345
|
+
quantity: number;
|
|
16346
|
+
trade_item_id: string;
|
|
16347
|
+
};
|
|
16348
|
+
Insert: {
|
|
16349
|
+
created_at?: string;
|
|
16350
|
+
id?: string;
|
|
16351
|
+
product_group_id: string;
|
|
16352
|
+
quantity?: number;
|
|
16353
|
+
trade_item_id: string;
|
|
16354
|
+
};
|
|
16355
|
+
Update: {
|
|
16356
|
+
created_at?: string;
|
|
16357
|
+
id?: string;
|
|
16358
|
+
product_group_id?: string;
|
|
16359
|
+
quantity?: number;
|
|
16360
|
+
trade_item_id?: string;
|
|
16361
|
+
};
|
|
16362
|
+
Relationships: [{
|
|
16363
|
+
foreignKeyName: "product_group_items_product_group_id_fkey";
|
|
16364
|
+
columns: ["product_group_id"];
|
|
16365
|
+
isOneToOne: false;
|
|
16366
|
+
referencedRelation: "product_groups";
|
|
16367
|
+
referencedColumns: ["id"];
|
|
16368
|
+
}];
|
|
16369
|
+
};
|
|
16370
|
+
product_groups: {
|
|
16371
|
+
Row: {
|
|
16372
|
+
created_at: string;
|
|
16373
|
+
description: string | null;
|
|
16374
|
+
id: string;
|
|
16375
|
+
is_active: boolean;
|
|
16376
|
+
name: string;
|
|
16377
|
+
tenant_id: string;
|
|
16378
|
+
updated_at: string;
|
|
16379
|
+
};
|
|
16380
|
+
Insert: {
|
|
16381
|
+
created_at?: string;
|
|
16382
|
+
description?: string | null;
|
|
16383
|
+
id?: string;
|
|
16384
|
+
is_active?: boolean;
|
|
16385
|
+
name: string;
|
|
16386
|
+
tenant_id: string;
|
|
16387
|
+
updated_at?: string;
|
|
16388
|
+
};
|
|
16389
|
+
Update: {
|
|
16390
|
+
created_at?: string;
|
|
16391
|
+
description?: string | null;
|
|
16392
|
+
id?: string;
|
|
16393
|
+
is_active?: boolean;
|
|
16394
|
+
name?: string;
|
|
16395
|
+
tenant_id?: string;
|
|
16396
|
+
updated_at?: string;
|
|
16397
|
+
};
|
|
16398
|
+
Relationships: [];
|
|
16399
|
+
};
|
|
15354
16400
|
products: {
|
|
15355
16401
|
Row: {
|
|
15356
16402
|
barcode: string | null;
|
|
@@ -16490,7 +17536,13 @@ export declare const rejectSalesOrder: 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 rejectSalesOrder: 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 rejectSalesOrder: 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;
|
|
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;
|
|
16509
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 rejectSalesOrder: 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 rejectSalesOrder: 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 rejectSalesOrder: 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 rejectSalesOrder: 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 rejectSalesOrder: 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 rejectSalesOrder: 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 rejectSalesOrder: 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 rejectSalesOrder: 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 rejectSalesOrder: 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 rejectSalesOrder: 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;
|
|
@@ -18590,6 +19842,7 @@ export declare const confirmFulfillmentOrder: import("@tanstack/start-client-cor
|
|
|
18590
19842
|
max_workdays_earlier_pick: number;
|
|
18591
19843
|
pick_days_before_transport: number;
|
|
18592
19844
|
pick_distribution_enabled: boolean;
|
|
19845
|
+
pick_weekdays: number[];
|
|
18593
19846
|
signup_mail_enabled: boolean;
|
|
18594
19847
|
signup_mail_lead_minutes: number;
|
|
18595
19848
|
signup_mail_purpose: string;
|
|
@@ -18603,6 +19856,7 @@ export declare const confirmFulfillmentOrder: import("@tanstack/start-client-cor
|
|
|
18603
19856
|
max_workdays_earlier_pick?: number;
|
|
18604
19857
|
pick_days_before_transport?: number;
|
|
18605
19858
|
pick_distribution_enabled?: boolean;
|
|
19859
|
+
pick_weekdays?: number[];
|
|
18606
19860
|
signup_mail_enabled?: boolean;
|
|
18607
19861
|
signup_mail_lead_minutes?: number;
|
|
18608
19862
|
signup_mail_purpose?: string;
|
|
@@ -18616,6 +19870,7 @@ export declare const confirmFulfillmentOrder: import("@tanstack/start-client-cor
|
|
|
18616
19870
|
max_workdays_earlier_pick?: number;
|
|
18617
19871
|
pick_days_before_transport?: number;
|
|
18618
19872
|
pick_distribution_enabled?: boolean;
|
|
19873
|
+
pick_weekdays?: number[];
|
|
18619
19874
|
signup_mail_enabled?: boolean;
|
|
18620
19875
|
signup_mail_lead_minutes?: number;
|
|
18621
19876
|
signup_mail_purpose?: string;
|
|
@@ -19027,6 +20282,48 @@ export declare const confirmFulfillmentOrder: import("@tanstack/start-client-cor
|
|
|
19027
20282
|
referencedColumns: ["id"];
|
|
19028
20283
|
}];
|
|
19029
20284
|
};
|
|
20285
|
+
carrier_signup_dispatch_runs: {
|
|
20286
|
+
Row: {
|
|
20287
|
+
detail: import("../integrations/supabase/types").Json | null;
|
|
20288
|
+
error: string | null;
|
|
20289
|
+
finished_at: string | null;
|
|
20290
|
+
groups: number;
|
|
20291
|
+
id: string;
|
|
20292
|
+
ok: boolean;
|
|
20293
|
+
reason: string | null;
|
|
20294
|
+
sent: number;
|
|
20295
|
+
skipped: import("../integrations/supabase/types").Json;
|
|
20296
|
+
started_at: string;
|
|
20297
|
+
unassigned: import("../integrations/supabase/types").Json;
|
|
20298
|
+
};
|
|
20299
|
+
Insert: {
|
|
20300
|
+
detail?: import("../integrations/supabase/types").Json | null;
|
|
20301
|
+
error?: string | null;
|
|
20302
|
+
finished_at?: string | null;
|
|
20303
|
+
groups?: number;
|
|
20304
|
+
id?: string;
|
|
20305
|
+
ok?: boolean;
|
|
20306
|
+
reason?: string | null;
|
|
20307
|
+
sent?: number;
|
|
20308
|
+
skipped?: import("../integrations/supabase/types").Json;
|
|
20309
|
+
started_at?: string;
|
|
20310
|
+
unassigned?: import("../integrations/supabase/types").Json;
|
|
20311
|
+
};
|
|
20312
|
+
Update: {
|
|
20313
|
+
detail?: import("../integrations/supabase/types").Json | null;
|
|
20314
|
+
error?: string | null;
|
|
20315
|
+
finished_at?: string | null;
|
|
20316
|
+
groups?: number;
|
|
20317
|
+
id?: string;
|
|
20318
|
+
ok?: boolean;
|
|
20319
|
+
reason?: string | null;
|
|
20320
|
+
sent?: number;
|
|
20321
|
+
skipped?: import("../integrations/supabase/types").Json;
|
|
20322
|
+
started_at?: string;
|
|
20323
|
+
unassigned?: import("../integrations/supabase/types").Json;
|
|
20324
|
+
};
|
|
20325
|
+
Relationships: [];
|
|
20326
|
+
};
|
|
19030
20327
|
carrier_signup_dispatches: {
|
|
19031
20328
|
Row: {
|
|
19032
20329
|
carrier_id: string;
|
|
@@ -19078,6 +20375,7 @@ export declare const confirmFulfillmentOrder: import("@tanstack/start-client-cor
|
|
|
19078
20375
|
contact_person: string | null;
|
|
19079
20376
|
created_at: string;
|
|
19080
20377
|
delivery_days: number | null;
|
|
20378
|
+
delivery_weekdays: number[];
|
|
19081
20379
|
email: string | null;
|
|
19082
20380
|
id: string;
|
|
19083
20381
|
is_default: boolean;
|
|
@@ -19085,6 +20383,7 @@ export declare const confirmFulfillmentOrder: import("@tanstack/start-client-cor
|
|
|
19085
20383
|
notes: string | null;
|
|
19086
20384
|
phone: string | null;
|
|
19087
20385
|
pickup_moments: import("../integrations/supabase/types").Json;
|
|
20386
|
+
pickup_weekdays: number[];
|
|
19088
20387
|
service_cities: string[];
|
|
19089
20388
|
service_countries: string[];
|
|
19090
20389
|
service_provinces: string[];
|
|
@@ -19100,6 +20399,7 @@ export declare const confirmFulfillmentOrder: import("@tanstack/start-client-cor
|
|
|
19100
20399
|
contact_person?: string | null;
|
|
19101
20400
|
created_at?: string;
|
|
19102
20401
|
delivery_days?: number | null;
|
|
20402
|
+
delivery_weekdays?: number[];
|
|
19103
20403
|
email?: string | null;
|
|
19104
20404
|
id?: string;
|
|
19105
20405
|
is_default?: boolean;
|
|
@@ -19107,6 +20407,7 @@ export declare const confirmFulfillmentOrder: import("@tanstack/start-client-cor
|
|
|
19107
20407
|
notes?: string | null;
|
|
19108
20408
|
phone?: string | null;
|
|
19109
20409
|
pickup_moments?: import("../integrations/supabase/types").Json;
|
|
20410
|
+
pickup_weekdays?: number[];
|
|
19110
20411
|
service_cities?: string[];
|
|
19111
20412
|
service_countries?: string[];
|
|
19112
20413
|
service_provinces?: string[];
|
|
@@ -19122,6 +20423,7 @@ export declare const confirmFulfillmentOrder: import("@tanstack/start-client-cor
|
|
|
19122
20423
|
contact_person?: string | null;
|
|
19123
20424
|
created_at?: string;
|
|
19124
20425
|
delivery_days?: number | null;
|
|
20426
|
+
delivery_weekdays?: number[];
|
|
19125
20427
|
email?: string | null;
|
|
19126
20428
|
id?: string;
|
|
19127
20429
|
is_default?: boolean;
|
|
@@ -19129,6 +20431,7 @@ export declare const confirmFulfillmentOrder: import("@tanstack/start-client-cor
|
|
|
19129
20431
|
notes?: string | null;
|
|
19130
20432
|
phone?: string | null;
|
|
19131
20433
|
pickup_moments?: import("../integrations/supabase/types").Json;
|
|
20434
|
+
pickup_weekdays?: number[];
|
|
19132
20435
|
service_cities?: string[];
|
|
19133
20436
|
service_countries?: string[];
|
|
19134
20437
|
service_provinces?: string[];
|
|
@@ -19141,6 +20444,177 @@ export declare const confirmFulfillmentOrder: import("@tanstack/start-client-cor
|
|
|
19141
20444
|
};
|
|
19142
20445
|
Relationships: [];
|
|
19143
20446
|
};
|
|
20447
|
+
cart_control_draft: {
|
|
20448
|
+
Row: {
|
|
20449
|
+
cart_states: import("../integrations/supabase/types").Json;
|
|
20450
|
+
checked_keys: import("../integrations/supabase/types").Json;
|
|
20451
|
+
draft_date: string;
|
|
20452
|
+
form_state: import("../integrations/supabase/types").Json;
|
|
20453
|
+
notes: string;
|
|
20454
|
+
updated_at: string;
|
|
20455
|
+
user_id: string;
|
|
20456
|
+
};
|
|
20457
|
+
Insert: {
|
|
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
|
+
Update: {
|
|
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
|
+
Relationships: [];
|
|
20476
|
+
};
|
|
20477
|
+
cart_control_items: {
|
|
20478
|
+
Row: {
|
|
20479
|
+
action: string;
|
|
20480
|
+
block_reason: string | null;
|
|
20481
|
+
carrier_name: string | null;
|
|
20482
|
+
cart_index: number;
|
|
20483
|
+
cart_number_id: string | null;
|
|
20484
|
+
cart_number_label: string | null;
|
|
20485
|
+
created_at: string;
|
|
20486
|
+
customer_name: string | null;
|
|
20487
|
+
delivery_date: string | null;
|
|
20488
|
+
id: string;
|
|
20489
|
+
new_pick_date: string | null;
|
|
20490
|
+
order_id: string;
|
|
20491
|
+
order_number: string | null;
|
|
20492
|
+
order_source: string;
|
|
20493
|
+
pickup_date: string | null;
|
|
20494
|
+
session_id: string;
|
|
20495
|
+
};
|
|
20496
|
+
Insert: {
|
|
20497
|
+
action: string;
|
|
20498
|
+
block_reason?: string | null;
|
|
20499
|
+
carrier_name?: string | null;
|
|
20500
|
+
cart_index: number;
|
|
20501
|
+
cart_number_id?: string | null;
|
|
20502
|
+
cart_number_label?: string | null;
|
|
20503
|
+
created_at?: string;
|
|
20504
|
+
customer_name?: string | null;
|
|
20505
|
+
delivery_date?: string | null;
|
|
20506
|
+
id?: string;
|
|
20507
|
+
new_pick_date?: string | null;
|
|
20508
|
+
order_id: string;
|
|
20509
|
+
order_number?: string | null;
|
|
20510
|
+
order_source: string;
|
|
20511
|
+
pickup_date?: string | null;
|
|
20512
|
+
session_id: string;
|
|
20513
|
+
};
|
|
20514
|
+
Update: {
|
|
20515
|
+
action?: string;
|
|
20516
|
+
block_reason?: string | null;
|
|
20517
|
+
carrier_name?: string | null;
|
|
20518
|
+
cart_index?: number;
|
|
20519
|
+
cart_number_id?: string | null;
|
|
20520
|
+
cart_number_label?: string | null;
|
|
20521
|
+
created_at?: string;
|
|
20522
|
+
customer_name?: string | null;
|
|
20523
|
+
delivery_date?: string | null;
|
|
20524
|
+
id?: string;
|
|
20525
|
+
new_pick_date?: string | null;
|
|
20526
|
+
order_id?: string;
|
|
20527
|
+
order_number?: string | null;
|
|
20528
|
+
order_source?: string;
|
|
20529
|
+
pickup_date?: string | null;
|
|
20530
|
+
session_id?: string;
|
|
20531
|
+
};
|
|
20532
|
+
Relationships: [{
|
|
20533
|
+
foreignKeyName: "cart_control_items_session_id_fkey";
|
|
20534
|
+
columns: ["session_id"];
|
|
20535
|
+
isOneToOne: false;
|
|
20536
|
+
referencedRelation: "cart_control_sessions";
|
|
20537
|
+
referencedColumns: ["id"];
|
|
20538
|
+
}];
|
|
20539
|
+
};
|
|
20540
|
+
cart_control_sessions: {
|
|
20541
|
+
Row: {
|
|
20542
|
+
blocked_count: number;
|
|
20543
|
+
checked_count: number;
|
|
20544
|
+
control_date: string;
|
|
20545
|
+
created_at: string;
|
|
20546
|
+
id: string;
|
|
20547
|
+
notes: string | null;
|
|
20548
|
+
performed_at: string;
|
|
20549
|
+
rescheduled_count: number;
|
|
20550
|
+
total_carts: number;
|
|
20551
|
+
updated_at: string;
|
|
20552
|
+
user_id: string;
|
|
20553
|
+
};
|
|
20554
|
+
Insert: {
|
|
20555
|
+
blocked_count?: number;
|
|
20556
|
+
checked_count?: number;
|
|
20557
|
+
control_date?: string;
|
|
20558
|
+
created_at?: string;
|
|
20559
|
+
id?: string;
|
|
20560
|
+
notes?: string | null;
|
|
20561
|
+
performed_at?: string;
|
|
20562
|
+
rescheduled_count?: number;
|
|
20563
|
+
total_carts?: number;
|
|
20564
|
+
updated_at?: string;
|
|
20565
|
+
user_id: string;
|
|
20566
|
+
};
|
|
20567
|
+
Update: {
|
|
20568
|
+
blocked_count?: number;
|
|
20569
|
+
checked_count?: number;
|
|
20570
|
+
control_date?: string;
|
|
20571
|
+
created_at?: string;
|
|
20572
|
+
id?: string;
|
|
20573
|
+
notes?: string | null;
|
|
20574
|
+
performed_at?: string;
|
|
20575
|
+
rescheduled_count?: number;
|
|
20576
|
+
total_carts?: number;
|
|
20577
|
+
updated_at?: string;
|
|
20578
|
+
user_id?: string;
|
|
20579
|
+
};
|
|
20580
|
+
Relationships: [];
|
|
20581
|
+
};
|
|
20582
|
+
cart_numbers: {
|
|
20583
|
+
Row: {
|
|
20584
|
+
assigned_at: string;
|
|
20585
|
+
cart_index: number;
|
|
20586
|
+
cart_number: string;
|
|
20587
|
+
day_seq: number;
|
|
20588
|
+
id: string;
|
|
20589
|
+
order_id: string;
|
|
20590
|
+
order_source: string;
|
|
20591
|
+
pick_date: string;
|
|
20592
|
+
status: string;
|
|
20593
|
+
};
|
|
20594
|
+
Insert: {
|
|
20595
|
+
assigned_at?: string;
|
|
20596
|
+
cart_index: number;
|
|
20597
|
+
cart_number: string;
|
|
20598
|
+
day_seq: number;
|
|
20599
|
+
id?: string;
|
|
20600
|
+
order_id: string;
|
|
20601
|
+
order_source: string;
|
|
20602
|
+
pick_date: string;
|
|
20603
|
+
status?: string;
|
|
20604
|
+
};
|
|
20605
|
+
Update: {
|
|
20606
|
+
assigned_at?: string;
|
|
20607
|
+
cart_index?: number;
|
|
20608
|
+
cart_number?: string;
|
|
20609
|
+
day_seq?: number;
|
|
20610
|
+
id?: string;
|
|
20611
|
+
order_id?: string;
|
|
20612
|
+
order_source?: string;
|
|
20613
|
+
pick_date?: string;
|
|
20614
|
+
status?: string;
|
|
20615
|
+
};
|
|
20616
|
+
Relationships: [];
|
|
20617
|
+
};
|
|
19144
20618
|
cart_pick_overrides: {
|
|
19145
20619
|
Row: {
|
|
19146
20620
|
cart_index: number;
|
|
@@ -19813,6 +21287,54 @@ export declare const confirmFulfillmentOrder: import("@tanstack/start-client-cor
|
|
|
19813
21287
|
referencedColumns: ["id"];
|
|
19814
21288
|
}];
|
|
19815
21289
|
};
|
|
21290
|
+
dashboard_critical_alerts: {
|
|
21291
|
+
Row: {
|
|
21292
|
+
alert_key: string;
|
|
21293
|
+
alert_type: string;
|
|
21294
|
+
created_at: string;
|
|
21295
|
+
description: string | null;
|
|
21296
|
+
id: string;
|
|
21297
|
+
metadata: import("../integrations/supabase/types").Json | null;
|
|
21298
|
+
priority: string;
|
|
21299
|
+
raised_at: string;
|
|
21300
|
+
related_cart_ids: string[] | null;
|
|
21301
|
+
resolved_at: string | null;
|
|
21302
|
+
title: string;
|
|
21303
|
+
updated_at: string;
|
|
21304
|
+
user_id: string;
|
|
21305
|
+
};
|
|
21306
|
+
Insert: {
|
|
21307
|
+
alert_key: string;
|
|
21308
|
+
alert_type: string;
|
|
21309
|
+
created_at?: string;
|
|
21310
|
+
description?: string | null;
|
|
21311
|
+
id?: string;
|
|
21312
|
+
metadata?: import("../integrations/supabase/types").Json | null;
|
|
21313
|
+
priority?: string;
|
|
21314
|
+
raised_at?: string;
|
|
21315
|
+
related_cart_ids?: string[] | null;
|
|
21316
|
+
resolved_at?: string | null;
|
|
21317
|
+
title: string;
|
|
21318
|
+
updated_at?: string;
|
|
21319
|
+
user_id: string;
|
|
21320
|
+
};
|
|
21321
|
+
Update: {
|
|
21322
|
+
alert_key?: string;
|
|
21323
|
+
alert_type?: string;
|
|
21324
|
+
created_at?: string;
|
|
21325
|
+
description?: string | null;
|
|
21326
|
+
id?: string;
|
|
21327
|
+
metadata?: import("../integrations/supabase/types").Json | null;
|
|
21328
|
+
priority?: string;
|
|
21329
|
+
raised_at?: string;
|
|
21330
|
+
related_cart_ids?: string[] | null;
|
|
21331
|
+
resolved_at?: string | null;
|
|
21332
|
+
title?: string;
|
|
21333
|
+
updated_at?: string;
|
|
21334
|
+
user_id?: string;
|
|
21335
|
+
};
|
|
21336
|
+
Relationships: [];
|
|
21337
|
+
};
|
|
19816
21338
|
dashboard_daily_reports: {
|
|
19817
21339
|
Row: {
|
|
19818
21340
|
created_at: string;
|
|
@@ -21315,6 +22837,7 @@ export declare const confirmFulfillmentOrder: import("@tanstack/start-client-cor
|
|
|
21315
22837
|
};
|
|
21316
22838
|
floricode_sync_state: {
|
|
21317
22839
|
Row: {
|
|
22840
|
+
cursor_skip: number;
|
|
21318
22841
|
error_message: string | null;
|
|
21319
22842
|
last_change_date_time: string | null;
|
|
21320
22843
|
last_sequence_number: number;
|
|
@@ -21324,6 +22847,7 @@ export declare const confirmFulfillmentOrder: import("@tanstack/start-client-cor
|
|
|
21324
22847
|
updated_at: string;
|
|
21325
22848
|
};
|
|
21326
22849
|
Insert: {
|
|
22850
|
+
cursor_skip?: number;
|
|
21327
22851
|
error_message?: string | null;
|
|
21328
22852
|
last_change_date_time?: string | null;
|
|
21329
22853
|
last_sequence_number?: number;
|
|
@@ -21333,6 +22857,7 @@ export declare const confirmFulfillmentOrder: import("@tanstack/start-client-cor
|
|
|
21333
22857
|
updated_at?: string;
|
|
21334
22858
|
};
|
|
21335
22859
|
Update: {
|
|
22860
|
+
cursor_skip?: number;
|
|
21336
22861
|
error_message?: string | null;
|
|
21337
22862
|
last_change_date_time?: string | null;
|
|
21338
22863
|
last_sequence_number?: number;
|
|
@@ -23680,6 +25205,93 @@ export declare const confirmFulfillmentOrder: import("@tanstack/start-client-cor
|
|
|
23680
25205
|
};
|
|
23681
25206
|
Relationships: [];
|
|
23682
25207
|
};
|
|
25208
|
+
manufacture_product_components: {
|
|
25209
|
+
Row: {
|
|
25210
|
+
component_type: string;
|
|
25211
|
+
created_at: string;
|
|
25212
|
+
id: string;
|
|
25213
|
+
manufacture_product_id: string;
|
|
25214
|
+
product_group_id: string | null;
|
|
25215
|
+
quantity: number;
|
|
25216
|
+
trade_item_id: string | null;
|
|
25217
|
+
unit: string;
|
|
25218
|
+
};
|
|
25219
|
+
Insert: {
|
|
25220
|
+
component_type: string;
|
|
25221
|
+
created_at?: string;
|
|
25222
|
+
id?: string;
|
|
25223
|
+
manufacture_product_id: string;
|
|
25224
|
+
product_group_id?: string | null;
|
|
25225
|
+
quantity?: number;
|
|
25226
|
+
trade_item_id?: string | null;
|
|
25227
|
+
unit?: string;
|
|
25228
|
+
};
|
|
25229
|
+
Update: {
|
|
25230
|
+
component_type?: string;
|
|
25231
|
+
created_at?: string;
|
|
25232
|
+
id?: string;
|
|
25233
|
+
manufacture_product_id?: string;
|
|
25234
|
+
product_group_id?: string | null;
|
|
25235
|
+
quantity?: number;
|
|
25236
|
+
trade_item_id?: string | null;
|
|
25237
|
+
unit?: string;
|
|
25238
|
+
};
|
|
25239
|
+
Relationships: [{
|
|
25240
|
+
foreignKeyName: "manufacture_product_components_manufacture_product_id_fkey";
|
|
25241
|
+
columns: ["manufacture_product_id"];
|
|
25242
|
+
isOneToOne: false;
|
|
25243
|
+
referencedRelation: "manufacture_product_possible_stock_view";
|
|
25244
|
+
referencedColumns: ["manufacture_product_id"];
|
|
25245
|
+
}, {
|
|
25246
|
+
foreignKeyName: "manufacture_product_components_manufacture_product_id_fkey";
|
|
25247
|
+
columns: ["manufacture_product_id"];
|
|
25248
|
+
isOneToOne: false;
|
|
25249
|
+
referencedRelation: "manufacture_products";
|
|
25250
|
+
referencedColumns: ["id"];
|
|
25251
|
+
}, {
|
|
25252
|
+
foreignKeyName: "manufacture_product_components_product_group_id_fkey";
|
|
25253
|
+
columns: ["product_group_id"];
|
|
25254
|
+
isOneToOne: false;
|
|
25255
|
+
referencedRelation: "product_groups";
|
|
25256
|
+
referencedColumns: ["id"];
|
|
25257
|
+
}];
|
|
25258
|
+
};
|
|
25259
|
+
manufacture_products: {
|
|
25260
|
+
Row: {
|
|
25261
|
+
created_at: string;
|
|
25262
|
+
description: string | null;
|
|
25263
|
+
id: string;
|
|
25264
|
+
is_active: boolean;
|
|
25265
|
+
name: string;
|
|
25266
|
+
produced_stock: number;
|
|
25267
|
+
product_code: string;
|
|
25268
|
+
tenant_id: string;
|
|
25269
|
+
updated_at: string;
|
|
25270
|
+
};
|
|
25271
|
+
Insert: {
|
|
25272
|
+
created_at?: string;
|
|
25273
|
+
description?: string | null;
|
|
25274
|
+
id?: string;
|
|
25275
|
+
is_active?: boolean;
|
|
25276
|
+
name: string;
|
|
25277
|
+
produced_stock?: number;
|
|
25278
|
+
product_code: string;
|
|
25279
|
+
tenant_id: string;
|
|
25280
|
+
updated_at?: string;
|
|
25281
|
+
};
|
|
25282
|
+
Update: {
|
|
25283
|
+
created_at?: string;
|
|
25284
|
+
description?: string | null;
|
|
25285
|
+
id?: string;
|
|
25286
|
+
is_active?: boolean;
|
|
25287
|
+
name?: string;
|
|
25288
|
+
produced_stock?: number;
|
|
25289
|
+
product_code?: string;
|
|
25290
|
+
tenant_id?: string;
|
|
25291
|
+
updated_at?: string;
|
|
25292
|
+
};
|
|
25293
|
+
Relationships: [];
|
|
25294
|
+
};
|
|
23683
25295
|
monteurs: {
|
|
23684
25296
|
Row: {
|
|
23685
25297
|
avatar_url: string | null;
|
|
@@ -24640,6 +26252,66 @@ export declare const confirmFulfillmentOrder: import("@tanstack/start-client-cor
|
|
|
24640
26252
|
};
|
|
24641
26253
|
Relationships: [];
|
|
24642
26254
|
};
|
|
26255
|
+
product_group_items: {
|
|
26256
|
+
Row: {
|
|
26257
|
+
created_at: string;
|
|
26258
|
+
id: string;
|
|
26259
|
+
product_group_id: string;
|
|
26260
|
+
quantity: number;
|
|
26261
|
+
trade_item_id: string;
|
|
26262
|
+
};
|
|
26263
|
+
Insert: {
|
|
26264
|
+
created_at?: string;
|
|
26265
|
+
id?: string;
|
|
26266
|
+
product_group_id: string;
|
|
26267
|
+
quantity?: number;
|
|
26268
|
+
trade_item_id: string;
|
|
26269
|
+
};
|
|
26270
|
+
Update: {
|
|
26271
|
+
created_at?: string;
|
|
26272
|
+
id?: string;
|
|
26273
|
+
product_group_id?: string;
|
|
26274
|
+
quantity?: number;
|
|
26275
|
+
trade_item_id?: string;
|
|
26276
|
+
};
|
|
26277
|
+
Relationships: [{
|
|
26278
|
+
foreignKeyName: "product_group_items_product_group_id_fkey";
|
|
26279
|
+
columns: ["product_group_id"];
|
|
26280
|
+
isOneToOne: false;
|
|
26281
|
+
referencedRelation: "product_groups";
|
|
26282
|
+
referencedColumns: ["id"];
|
|
26283
|
+
}];
|
|
26284
|
+
};
|
|
26285
|
+
product_groups: {
|
|
26286
|
+
Row: {
|
|
26287
|
+
created_at: string;
|
|
26288
|
+
description: string | null;
|
|
26289
|
+
id: string;
|
|
26290
|
+
is_active: boolean;
|
|
26291
|
+
name: string;
|
|
26292
|
+
tenant_id: string;
|
|
26293
|
+
updated_at: string;
|
|
26294
|
+
};
|
|
26295
|
+
Insert: {
|
|
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
|
+
Update: {
|
|
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
|
+
Relationships: [];
|
|
26314
|
+
};
|
|
24643
26315
|
products: {
|
|
24644
26316
|
Row: {
|
|
24645
26317
|
barcode: string | null;
|
|
@@ -25779,7 +27451,13 @@ export declare const confirmFulfillmentOrder: import("@tanstack/start-client-cor
|
|
|
25779
27451
|
connection_id: string | null;
|
|
25780
27452
|
created_at: string;
|
|
25781
27453
|
data: import("../integrations/supabase/types").Json;
|
|
27454
|
+
floriday_id: string | null;
|
|
27455
|
+
floriday_link_error: string | null;
|
|
27456
|
+
floriday_link_status: string;
|
|
25782
27457
|
id: string;
|
|
27458
|
+
last_floriday_sync_at: string | null;
|
|
27459
|
+
missing_required_fields: string[];
|
|
27460
|
+
source: string;
|
|
25783
27461
|
updated_at: string;
|
|
25784
27462
|
user_id: string;
|
|
25785
27463
|
};
|
|
@@ -25787,7 +27465,13 @@ export declare const confirmFulfillmentOrder: import("@tanstack/start-client-cor
|
|
|
25787
27465
|
connection_id?: string | null;
|
|
25788
27466
|
created_at?: string;
|
|
25789
27467
|
data?: import("../integrations/supabase/types").Json;
|
|
27468
|
+
floriday_id?: string | null;
|
|
27469
|
+
floriday_link_error?: string | null;
|
|
27470
|
+
floriday_link_status?: string;
|
|
25790
27471
|
id?: string;
|
|
27472
|
+
last_floriday_sync_at?: string | null;
|
|
27473
|
+
missing_required_fields?: string[];
|
|
27474
|
+
source?: string;
|
|
25791
27475
|
updated_at?: string;
|
|
25792
27476
|
user_id: string;
|
|
25793
27477
|
};
|
|
@@ -25795,7 +27479,55 @@ export declare const confirmFulfillmentOrder: import("@tanstack/start-client-cor
|
|
|
25795
27479
|
connection_id?: string | null;
|
|
25796
27480
|
created_at?: string;
|
|
25797
27481
|
data?: import("../integrations/supabase/types").Json;
|
|
27482
|
+
floriday_id?: string | null;
|
|
27483
|
+
floriday_link_error?: string | null;
|
|
27484
|
+
floriday_link_status?: string;
|
|
25798
27485
|
id?: string;
|
|
27486
|
+
last_floriday_sync_at?: string | null;
|
|
27487
|
+
missing_required_fields?: string[];
|
|
27488
|
+
source?: string;
|
|
27489
|
+
updated_at?: string;
|
|
27490
|
+
user_id?: string;
|
|
27491
|
+
};
|
|
27492
|
+
Relationships: [];
|
|
27493
|
+
};
|
|
27494
|
+
trade_item_stock: {
|
|
27495
|
+
Row: {
|
|
27496
|
+
connection_id: string;
|
|
27497
|
+
created_at: string;
|
|
27498
|
+
id: string;
|
|
27499
|
+
incoming_stock: number;
|
|
27500
|
+
minimum_stock: number;
|
|
27501
|
+
notes: string | null;
|
|
27502
|
+
physical_stock: number;
|
|
27503
|
+
reserved_stock: number;
|
|
27504
|
+
trade_item_key: string;
|
|
27505
|
+
updated_at: string;
|
|
27506
|
+
user_id: string;
|
|
27507
|
+
};
|
|
27508
|
+
Insert: {
|
|
27509
|
+
connection_id: string;
|
|
27510
|
+
created_at?: string;
|
|
27511
|
+
id?: string;
|
|
27512
|
+
incoming_stock?: number;
|
|
27513
|
+
minimum_stock?: number;
|
|
27514
|
+
notes?: string | null;
|
|
27515
|
+
physical_stock?: number;
|
|
27516
|
+
reserved_stock?: number;
|
|
27517
|
+
trade_item_key: string;
|
|
27518
|
+
updated_at?: string;
|
|
27519
|
+
user_id: string;
|
|
27520
|
+
};
|
|
27521
|
+
Update: {
|
|
27522
|
+
connection_id?: string;
|
|
27523
|
+
created_at?: string;
|
|
27524
|
+
id?: string;
|
|
27525
|
+
incoming_stock?: number;
|
|
27526
|
+
minimum_stock?: number;
|
|
27527
|
+
notes?: string | null;
|
|
27528
|
+
physical_stock?: number;
|
|
27529
|
+
reserved_stock?: number;
|
|
27530
|
+
trade_item_key?: string;
|
|
25799
27531
|
updated_at?: string;
|
|
25800
27532
|
user_id?: string;
|
|
25801
27533
|
};
|
|
@@ -26145,6 +27877,7 @@ export declare const confirmFulfillmentOrder: import("@tanstack/start-client-cor
|
|
|
26145
27877
|
};
|
|
26146
27878
|
twinfield_invoice_sync_logs: {
|
|
26147
27879
|
Row: {
|
|
27880
|
+
action_type: string | null;
|
|
26148
27881
|
created_at: string;
|
|
26149
27882
|
details: import("../integrations/supabase/types").Json | null;
|
|
26150
27883
|
duration_ms: number | null;
|
|
@@ -26157,6 +27890,7 @@ export declare const confirmFulfillmentOrder: import("@tanstack/start-client-cor
|
|
|
26157
27890
|
user_id: string;
|
|
26158
27891
|
};
|
|
26159
27892
|
Insert: {
|
|
27893
|
+
action_type?: string | null;
|
|
26160
27894
|
created_at?: string;
|
|
26161
27895
|
details?: import("../integrations/supabase/types").Json | null;
|
|
26162
27896
|
duration_ms?: number | null;
|
|
@@ -26169,6 +27903,7 @@ export declare const confirmFulfillmentOrder: import("@tanstack/start-client-cor
|
|
|
26169
27903
|
user_id: string;
|
|
26170
27904
|
};
|
|
26171
27905
|
Update: {
|
|
27906
|
+
action_type?: string | null;
|
|
26172
27907
|
created_at?: string;
|
|
26173
27908
|
details?: import("../integrations/supabase/types").Json | null;
|
|
26174
27909
|
duration_ms?: number | null;
|
|
@@ -26404,6 +28139,57 @@ export declare const confirmFulfillmentOrder: import("@tanstack/start-client-cor
|
|
|
26404
28139
|
referencedColumns: ["id"];
|
|
26405
28140
|
}];
|
|
26406
28141
|
};
|
|
28142
|
+
twinfield_request_metrics: {
|
|
28143
|
+
Row: {
|
|
28144
|
+
bucket_hour: string;
|
|
28145
|
+
connection_id: string;
|
|
28146
|
+
error_count: number;
|
|
28147
|
+
rate_limited_count: number;
|
|
28148
|
+
request_count: number;
|
|
28149
|
+
updated_at: string;
|
|
28150
|
+
};
|
|
28151
|
+
Insert: {
|
|
28152
|
+
bucket_hour: string;
|
|
28153
|
+
connection_id: string;
|
|
28154
|
+
error_count?: number;
|
|
28155
|
+
rate_limited_count?: number;
|
|
28156
|
+
request_count?: number;
|
|
28157
|
+
updated_at?: string;
|
|
28158
|
+
};
|
|
28159
|
+
Update: {
|
|
28160
|
+
bucket_hour?: string;
|
|
28161
|
+
connection_id?: string;
|
|
28162
|
+
error_count?: number;
|
|
28163
|
+
rate_limited_count?: number;
|
|
28164
|
+
request_count?: number;
|
|
28165
|
+
updated_at?: string;
|
|
28166
|
+
};
|
|
28167
|
+
Relationships: [];
|
|
28168
|
+
};
|
|
28169
|
+
twinfield_session_cache: {
|
|
28170
|
+
Row: {
|
|
28171
|
+
cluster: string;
|
|
28172
|
+
created_at: string;
|
|
28173
|
+
expires_at: string;
|
|
28174
|
+
session_id: string;
|
|
28175
|
+
user_id: string;
|
|
28176
|
+
};
|
|
28177
|
+
Insert: {
|
|
28178
|
+
cluster: string;
|
|
28179
|
+
created_at?: string;
|
|
28180
|
+
expires_at: string;
|
|
28181
|
+
session_id: string;
|
|
28182
|
+
user_id: string;
|
|
28183
|
+
};
|
|
28184
|
+
Update: {
|
|
28185
|
+
cluster?: string;
|
|
28186
|
+
created_at?: string;
|
|
28187
|
+
expires_at?: string;
|
|
28188
|
+
session_id?: string;
|
|
28189
|
+
user_id?: string;
|
|
28190
|
+
};
|
|
28191
|
+
Relationships: [];
|
|
28192
|
+
};
|
|
26407
28193
|
twinfield_settings: {
|
|
26408
28194
|
Row: {
|
|
26409
28195
|
active_environment: string;
|
|
@@ -26985,6 +28771,35 @@ export declare const confirmFulfillmentOrder: import("@tanstack/start-client-cor
|
|
|
26985
28771
|
};
|
|
26986
28772
|
Relationships: [];
|
|
26987
28773
|
};
|
|
28774
|
+
manufacture_product_possible_stock_view: {
|
|
28775
|
+
Row: {
|
|
28776
|
+
component_count: number | null;
|
|
28777
|
+
manufacture_product_id: string | null;
|
|
28778
|
+
possible_stock: number | null;
|
|
28779
|
+
};
|
|
28780
|
+
Relationships: [];
|
|
28781
|
+
};
|
|
28782
|
+
product_group_stock_view: {
|
|
28783
|
+
Row: {
|
|
28784
|
+
item_count: number | null;
|
|
28785
|
+
product_group_id: string | null;
|
|
28786
|
+
total_stock: number | null;
|
|
28787
|
+
};
|
|
28788
|
+
Relationships: [{
|
|
28789
|
+
foreignKeyName: "product_group_items_product_group_id_fkey";
|
|
28790
|
+
columns: ["product_group_id"];
|
|
28791
|
+
isOneToOne: false;
|
|
28792
|
+
referencedRelation: "product_groups";
|
|
28793
|
+
referencedColumns: ["id"];
|
|
28794
|
+
}];
|
|
28795
|
+
};
|
|
28796
|
+
trade_item_stock_view: {
|
|
28797
|
+
Row: {
|
|
28798
|
+
stock: number | null;
|
|
28799
|
+
trade_item_id: string | null;
|
|
28800
|
+
};
|
|
28801
|
+
Relationships: [];
|
|
28802
|
+
};
|
|
26988
28803
|
v_external_customers_exact: {
|
|
26989
28804
|
Row: {
|
|
26990
28805
|
account_number: string | null;
|
|
@@ -27240,6 +29055,20 @@ export declare const confirmFulfillmentOrder: import("@tanstack/start-client-cor
|
|
|
27240
29055
|
};
|
|
27241
29056
|
Returns: number;
|
|
27242
29057
|
};
|
|
29058
|
+
assign_cart_numbers: {
|
|
29059
|
+
Args: {
|
|
29060
|
+
p_carts: import("../integrations/supabase/types").Json;
|
|
29061
|
+
};
|
|
29062
|
+
Returns: {
|
|
29063
|
+
cart_index: number;
|
|
29064
|
+
cart_number: string;
|
|
29065
|
+
day_seq: number;
|
|
29066
|
+
order_id: string;
|
|
29067
|
+
order_source: string;
|
|
29068
|
+
pick_date: string;
|
|
29069
|
+
status: string;
|
|
29070
|
+
}[];
|
|
29071
|
+
};
|
|
27243
29072
|
assign_floriday_order_numbers: {
|
|
27244
29073
|
Args: {
|
|
27245
29074
|
p_ids: string[];
|
|
@@ -27259,10 +29088,37 @@ export declare const confirmFulfillmentOrder: import("@tanstack/start-client-cor
|
|
|
27259
29088
|
Args: never;
|
|
27260
29089
|
Returns: number;
|
|
27261
29090
|
};
|
|
29091
|
+
control_get_todays_carts: {
|
|
29092
|
+
Args: never;
|
|
29093
|
+
Returns: {
|
|
29094
|
+
cart_index: number;
|
|
29095
|
+
cart_number: string;
|
|
29096
|
+
cart_number_id: string;
|
|
29097
|
+
order_id: string;
|
|
29098
|
+
order_source: string;
|
|
29099
|
+
pick_date: string;
|
|
29100
|
+
status: string;
|
|
29101
|
+
}[];
|
|
29102
|
+
};
|
|
29103
|
+
count_distinct_regulatory_products: {
|
|
29104
|
+
Args: never;
|
|
29105
|
+
Returns: number;
|
|
29106
|
+
};
|
|
27262
29107
|
current_monteur_id: {
|
|
27263
29108
|
Args: never;
|
|
27264
29109
|
Returns: string;
|
|
27265
29110
|
};
|
|
29111
|
+
dashboard_alert_counts: {
|
|
29112
|
+
Args: never;
|
|
29113
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
29114
|
+
};
|
|
29115
|
+
dashboard_alert_rows: {
|
|
29116
|
+
Args: {
|
|
29117
|
+
check_id: string;
|
|
29118
|
+
row_limit?: number;
|
|
29119
|
+
};
|
|
29120
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
29121
|
+
};
|
|
27266
29122
|
dashboard_list_public_schema: {
|
|
27267
29123
|
Args: never;
|
|
27268
29124
|
Returns: {
|
|
@@ -27343,6 +29199,13 @@ export declare const confirmFulfillmentOrder: import("@tanstack/start-client-cor
|
|
|
27343
29199
|
};
|
|
27344
29200
|
Returns: boolean;
|
|
27345
29201
|
};
|
|
29202
|
+
format_cart_number: {
|
|
29203
|
+
Args: {
|
|
29204
|
+
p_pick_date: string;
|
|
29205
|
+
p_seq: number;
|
|
29206
|
+
};
|
|
29207
|
+
Returns: string;
|
|
29208
|
+
};
|
|
27346
29209
|
get_active_floriday_connection_public: {
|
|
27347
29210
|
Args: never;
|
|
27348
29211
|
Returns: {
|
|
@@ -27547,6 +29410,15 @@ export declare const confirmFulfillmentOrder: import("@tanstack/start-client-cor
|
|
|
27547
29410
|
};
|
|
27548
29411
|
Returns: undefined;
|
|
27549
29412
|
};
|
|
29413
|
+
pickstation_set_cart_status: {
|
|
29414
|
+
Args: {
|
|
29415
|
+
p_cart_index: number;
|
|
29416
|
+
p_order_id: string;
|
|
29417
|
+
p_order_source: string;
|
|
29418
|
+
p_status: string;
|
|
29419
|
+
};
|
|
29420
|
+
Returns: undefined;
|
|
29421
|
+
};
|
|
27550
29422
|
refresh_floricode_derived_code_lists: {
|
|
27551
29423
|
Args: never;
|
|
27552
29424
|
Returns: {
|
|
@@ -27555,6 +29427,12 @@ export declare const confirmFulfillmentOrder: import("@tanstack/start-client-cor
|
|
|
27555
29427
|
row_count: number;
|
|
27556
29428
|
}[];
|
|
27557
29429
|
};
|
|
29430
|
+
refresh_floricode_derived_for_product: {
|
|
29431
|
+
Args: {
|
|
29432
|
+
p_product_code: string;
|
|
29433
|
+
};
|
|
29434
|
+
Returns: number;
|
|
29435
|
+
};
|
|
27558
29436
|
reset_floriday_sync_cursor: {
|
|
27559
29437
|
Args: {
|
|
27560
29438
|
p_connection_id: string;
|
|
@@ -27882,6 +29760,7 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Opt
|
|
|
27882
29760
|
max_workdays_earlier_pick: number;
|
|
27883
29761
|
pick_days_before_transport: number;
|
|
27884
29762
|
pick_distribution_enabled: boolean;
|
|
29763
|
+
pick_weekdays: number[];
|
|
27885
29764
|
signup_mail_enabled: boolean;
|
|
27886
29765
|
signup_mail_lead_minutes: number;
|
|
27887
29766
|
signup_mail_purpose: string;
|
|
@@ -27895,6 +29774,7 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Opt
|
|
|
27895
29774
|
max_workdays_earlier_pick?: number;
|
|
27896
29775
|
pick_days_before_transport?: number;
|
|
27897
29776
|
pick_distribution_enabled?: boolean;
|
|
29777
|
+
pick_weekdays?: number[];
|
|
27898
29778
|
signup_mail_enabled?: boolean;
|
|
27899
29779
|
signup_mail_lead_minutes?: number;
|
|
27900
29780
|
signup_mail_purpose?: string;
|
|
@@ -27908,6 +29788,7 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Opt
|
|
|
27908
29788
|
max_workdays_earlier_pick?: number;
|
|
27909
29789
|
pick_days_before_transport?: number;
|
|
27910
29790
|
pick_distribution_enabled?: boolean;
|
|
29791
|
+
pick_weekdays?: number[];
|
|
27911
29792
|
signup_mail_enabled?: boolean;
|
|
27912
29793
|
signup_mail_lead_minutes?: number;
|
|
27913
29794
|
signup_mail_purpose?: string;
|
|
@@ -28319,6 +30200,48 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Opt
|
|
|
28319
30200
|
referencedColumns: ["id"];
|
|
28320
30201
|
}];
|
|
28321
30202
|
};
|
|
30203
|
+
carrier_signup_dispatch_runs: {
|
|
30204
|
+
Row: {
|
|
30205
|
+
detail: import("../integrations/supabase/types").Json | null;
|
|
30206
|
+
error: string | null;
|
|
30207
|
+
finished_at: string | null;
|
|
30208
|
+
groups: number;
|
|
30209
|
+
id: string;
|
|
30210
|
+
ok: boolean;
|
|
30211
|
+
reason: string | null;
|
|
30212
|
+
sent: number;
|
|
30213
|
+
skipped: import("../integrations/supabase/types").Json;
|
|
30214
|
+
started_at: string;
|
|
30215
|
+
unassigned: import("../integrations/supabase/types").Json;
|
|
30216
|
+
};
|
|
30217
|
+
Insert: {
|
|
30218
|
+
detail?: import("../integrations/supabase/types").Json | null;
|
|
30219
|
+
error?: string | null;
|
|
30220
|
+
finished_at?: string | null;
|
|
30221
|
+
groups?: number;
|
|
30222
|
+
id?: string;
|
|
30223
|
+
ok?: boolean;
|
|
30224
|
+
reason?: string | null;
|
|
30225
|
+
sent?: number;
|
|
30226
|
+
skipped?: import("../integrations/supabase/types").Json;
|
|
30227
|
+
started_at?: string;
|
|
30228
|
+
unassigned?: import("../integrations/supabase/types").Json;
|
|
30229
|
+
};
|
|
30230
|
+
Update: {
|
|
30231
|
+
detail?: import("../integrations/supabase/types").Json | null;
|
|
30232
|
+
error?: string | null;
|
|
30233
|
+
finished_at?: string | null;
|
|
30234
|
+
groups?: number;
|
|
30235
|
+
id?: string;
|
|
30236
|
+
ok?: boolean;
|
|
30237
|
+
reason?: string | null;
|
|
30238
|
+
sent?: number;
|
|
30239
|
+
skipped?: import("../integrations/supabase/types").Json;
|
|
30240
|
+
started_at?: string;
|
|
30241
|
+
unassigned?: import("../integrations/supabase/types").Json;
|
|
30242
|
+
};
|
|
30243
|
+
Relationships: [];
|
|
30244
|
+
};
|
|
28322
30245
|
carrier_signup_dispatches: {
|
|
28323
30246
|
Row: {
|
|
28324
30247
|
carrier_id: string;
|
|
@@ -28370,6 +30293,7 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Opt
|
|
|
28370
30293
|
contact_person: string | null;
|
|
28371
30294
|
created_at: string;
|
|
28372
30295
|
delivery_days: number | null;
|
|
30296
|
+
delivery_weekdays: number[];
|
|
28373
30297
|
email: string | null;
|
|
28374
30298
|
id: string;
|
|
28375
30299
|
is_default: boolean;
|
|
@@ -28377,6 +30301,7 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Opt
|
|
|
28377
30301
|
notes: string | null;
|
|
28378
30302
|
phone: string | null;
|
|
28379
30303
|
pickup_moments: import("../integrations/supabase/types").Json;
|
|
30304
|
+
pickup_weekdays: number[];
|
|
28380
30305
|
service_cities: string[];
|
|
28381
30306
|
service_countries: string[];
|
|
28382
30307
|
service_provinces: string[];
|
|
@@ -28392,6 +30317,7 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Opt
|
|
|
28392
30317
|
contact_person?: string | null;
|
|
28393
30318
|
created_at?: string;
|
|
28394
30319
|
delivery_days?: number | null;
|
|
30320
|
+
delivery_weekdays?: number[];
|
|
28395
30321
|
email?: string | null;
|
|
28396
30322
|
id?: string;
|
|
28397
30323
|
is_default?: boolean;
|
|
@@ -28399,6 +30325,7 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Opt
|
|
|
28399
30325
|
notes?: string | null;
|
|
28400
30326
|
phone?: string | null;
|
|
28401
30327
|
pickup_moments?: import("../integrations/supabase/types").Json;
|
|
30328
|
+
pickup_weekdays?: number[];
|
|
28402
30329
|
service_cities?: string[];
|
|
28403
30330
|
service_countries?: string[];
|
|
28404
30331
|
service_provinces?: string[];
|
|
@@ -28414,6 +30341,7 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Opt
|
|
|
28414
30341
|
contact_person?: string | null;
|
|
28415
30342
|
created_at?: string;
|
|
28416
30343
|
delivery_days?: number | null;
|
|
30344
|
+
delivery_weekdays?: number[];
|
|
28417
30345
|
email?: string | null;
|
|
28418
30346
|
id?: string;
|
|
28419
30347
|
is_default?: boolean;
|
|
@@ -28421,6 +30349,7 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Opt
|
|
|
28421
30349
|
notes?: string | null;
|
|
28422
30350
|
phone?: string | null;
|
|
28423
30351
|
pickup_moments?: import("../integrations/supabase/types").Json;
|
|
30352
|
+
pickup_weekdays?: number[];
|
|
28424
30353
|
service_cities?: string[];
|
|
28425
30354
|
service_countries?: string[];
|
|
28426
30355
|
service_provinces?: string[];
|
|
@@ -28433,6 +30362,177 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Opt
|
|
|
28433
30362
|
};
|
|
28434
30363
|
Relationships: [];
|
|
28435
30364
|
};
|
|
30365
|
+
cart_control_draft: {
|
|
30366
|
+
Row: {
|
|
30367
|
+
cart_states: import("../integrations/supabase/types").Json;
|
|
30368
|
+
checked_keys: import("../integrations/supabase/types").Json;
|
|
30369
|
+
draft_date: string;
|
|
30370
|
+
form_state: import("../integrations/supabase/types").Json;
|
|
30371
|
+
notes: string;
|
|
30372
|
+
updated_at: string;
|
|
30373
|
+
user_id: string;
|
|
30374
|
+
};
|
|
30375
|
+
Insert: {
|
|
30376
|
+
cart_states?: import("../integrations/supabase/types").Json;
|
|
30377
|
+
checked_keys?: import("../integrations/supabase/types").Json;
|
|
30378
|
+
draft_date: string;
|
|
30379
|
+
form_state?: import("../integrations/supabase/types").Json;
|
|
30380
|
+
notes?: string;
|
|
30381
|
+
updated_at?: string;
|
|
30382
|
+
user_id: string;
|
|
30383
|
+
};
|
|
30384
|
+
Update: {
|
|
30385
|
+
cart_states?: import("../integrations/supabase/types").Json;
|
|
30386
|
+
checked_keys?: import("../integrations/supabase/types").Json;
|
|
30387
|
+
draft_date?: string;
|
|
30388
|
+
form_state?: import("../integrations/supabase/types").Json;
|
|
30389
|
+
notes?: string;
|
|
30390
|
+
updated_at?: string;
|
|
30391
|
+
user_id?: string;
|
|
30392
|
+
};
|
|
30393
|
+
Relationships: [];
|
|
30394
|
+
};
|
|
30395
|
+
cart_control_items: {
|
|
30396
|
+
Row: {
|
|
30397
|
+
action: string;
|
|
30398
|
+
block_reason: string | null;
|
|
30399
|
+
carrier_name: string | null;
|
|
30400
|
+
cart_index: number;
|
|
30401
|
+
cart_number_id: string | null;
|
|
30402
|
+
cart_number_label: string | null;
|
|
30403
|
+
created_at: string;
|
|
30404
|
+
customer_name: string | null;
|
|
30405
|
+
delivery_date: string | null;
|
|
30406
|
+
id: string;
|
|
30407
|
+
new_pick_date: string | null;
|
|
30408
|
+
order_id: string;
|
|
30409
|
+
order_number: string | null;
|
|
30410
|
+
order_source: string;
|
|
30411
|
+
pickup_date: string | null;
|
|
30412
|
+
session_id: string;
|
|
30413
|
+
};
|
|
30414
|
+
Insert: {
|
|
30415
|
+
action: string;
|
|
30416
|
+
block_reason?: string | null;
|
|
30417
|
+
carrier_name?: string | null;
|
|
30418
|
+
cart_index: number;
|
|
30419
|
+
cart_number_id?: string | null;
|
|
30420
|
+
cart_number_label?: string | null;
|
|
30421
|
+
created_at?: string;
|
|
30422
|
+
customer_name?: string | null;
|
|
30423
|
+
delivery_date?: string | null;
|
|
30424
|
+
id?: string;
|
|
30425
|
+
new_pick_date?: string | null;
|
|
30426
|
+
order_id: string;
|
|
30427
|
+
order_number?: string | null;
|
|
30428
|
+
order_source: string;
|
|
30429
|
+
pickup_date?: string | null;
|
|
30430
|
+
session_id: string;
|
|
30431
|
+
};
|
|
30432
|
+
Update: {
|
|
30433
|
+
action?: string;
|
|
30434
|
+
block_reason?: string | null;
|
|
30435
|
+
carrier_name?: string | null;
|
|
30436
|
+
cart_index?: number;
|
|
30437
|
+
cart_number_id?: string | null;
|
|
30438
|
+
cart_number_label?: string | null;
|
|
30439
|
+
created_at?: string;
|
|
30440
|
+
customer_name?: string | null;
|
|
30441
|
+
delivery_date?: string | null;
|
|
30442
|
+
id?: string;
|
|
30443
|
+
new_pick_date?: string | null;
|
|
30444
|
+
order_id?: string;
|
|
30445
|
+
order_number?: string | null;
|
|
30446
|
+
order_source?: string;
|
|
30447
|
+
pickup_date?: string | null;
|
|
30448
|
+
session_id?: string;
|
|
30449
|
+
};
|
|
30450
|
+
Relationships: [{
|
|
30451
|
+
foreignKeyName: "cart_control_items_session_id_fkey";
|
|
30452
|
+
columns: ["session_id"];
|
|
30453
|
+
isOneToOne: false;
|
|
30454
|
+
referencedRelation: "cart_control_sessions";
|
|
30455
|
+
referencedColumns: ["id"];
|
|
30456
|
+
}];
|
|
30457
|
+
};
|
|
30458
|
+
cart_control_sessions: {
|
|
30459
|
+
Row: {
|
|
30460
|
+
blocked_count: number;
|
|
30461
|
+
checked_count: number;
|
|
30462
|
+
control_date: string;
|
|
30463
|
+
created_at: string;
|
|
30464
|
+
id: string;
|
|
30465
|
+
notes: string | null;
|
|
30466
|
+
performed_at: string;
|
|
30467
|
+
rescheduled_count: number;
|
|
30468
|
+
total_carts: number;
|
|
30469
|
+
updated_at: string;
|
|
30470
|
+
user_id: string;
|
|
30471
|
+
};
|
|
30472
|
+
Insert: {
|
|
30473
|
+
blocked_count?: number;
|
|
30474
|
+
checked_count?: number;
|
|
30475
|
+
control_date?: string;
|
|
30476
|
+
created_at?: string;
|
|
30477
|
+
id?: string;
|
|
30478
|
+
notes?: string | null;
|
|
30479
|
+
performed_at?: string;
|
|
30480
|
+
rescheduled_count?: number;
|
|
30481
|
+
total_carts?: number;
|
|
30482
|
+
updated_at?: string;
|
|
30483
|
+
user_id: string;
|
|
30484
|
+
};
|
|
30485
|
+
Update: {
|
|
30486
|
+
blocked_count?: number;
|
|
30487
|
+
checked_count?: number;
|
|
30488
|
+
control_date?: string;
|
|
30489
|
+
created_at?: string;
|
|
30490
|
+
id?: string;
|
|
30491
|
+
notes?: string | null;
|
|
30492
|
+
performed_at?: string;
|
|
30493
|
+
rescheduled_count?: number;
|
|
30494
|
+
total_carts?: number;
|
|
30495
|
+
updated_at?: string;
|
|
30496
|
+
user_id?: string;
|
|
30497
|
+
};
|
|
30498
|
+
Relationships: [];
|
|
30499
|
+
};
|
|
30500
|
+
cart_numbers: {
|
|
30501
|
+
Row: {
|
|
30502
|
+
assigned_at: string;
|
|
30503
|
+
cart_index: number;
|
|
30504
|
+
cart_number: string;
|
|
30505
|
+
day_seq: number;
|
|
30506
|
+
id: string;
|
|
30507
|
+
order_id: string;
|
|
30508
|
+
order_source: string;
|
|
30509
|
+
pick_date: string;
|
|
30510
|
+
status: string;
|
|
30511
|
+
};
|
|
30512
|
+
Insert: {
|
|
30513
|
+
assigned_at?: string;
|
|
30514
|
+
cart_index: number;
|
|
30515
|
+
cart_number: string;
|
|
30516
|
+
day_seq: number;
|
|
30517
|
+
id?: string;
|
|
30518
|
+
order_id: string;
|
|
30519
|
+
order_source: string;
|
|
30520
|
+
pick_date: string;
|
|
30521
|
+
status?: string;
|
|
30522
|
+
};
|
|
30523
|
+
Update: {
|
|
30524
|
+
assigned_at?: string;
|
|
30525
|
+
cart_index?: number;
|
|
30526
|
+
cart_number?: string;
|
|
30527
|
+
day_seq?: number;
|
|
30528
|
+
id?: string;
|
|
30529
|
+
order_id?: string;
|
|
30530
|
+
order_source?: string;
|
|
30531
|
+
pick_date?: string;
|
|
30532
|
+
status?: string;
|
|
30533
|
+
};
|
|
30534
|
+
Relationships: [];
|
|
30535
|
+
};
|
|
28436
30536
|
cart_pick_overrides: {
|
|
28437
30537
|
Row: {
|
|
28438
30538
|
cart_index: number;
|
|
@@ -29105,6 +31205,54 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Opt
|
|
|
29105
31205
|
referencedColumns: ["id"];
|
|
29106
31206
|
}];
|
|
29107
31207
|
};
|
|
31208
|
+
dashboard_critical_alerts: {
|
|
31209
|
+
Row: {
|
|
31210
|
+
alert_key: string;
|
|
31211
|
+
alert_type: string;
|
|
31212
|
+
created_at: string;
|
|
31213
|
+
description: string | null;
|
|
31214
|
+
id: string;
|
|
31215
|
+
metadata: import("../integrations/supabase/types").Json | null;
|
|
31216
|
+
priority: string;
|
|
31217
|
+
raised_at: string;
|
|
31218
|
+
related_cart_ids: string[] | null;
|
|
31219
|
+
resolved_at: string | null;
|
|
31220
|
+
title: string;
|
|
31221
|
+
updated_at: string;
|
|
31222
|
+
user_id: string;
|
|
31223
|
+
};
|
|
31224
|
+
Insert: {
|
|
31225
|
+
alert_key: string;
|
|
31226
|
+
alert_type: string;
|
|
31227
|
+
created_at?: string;
|
|
31228
|
+
description?: string | null;
|
|
31229
|
+
id?: string;
|
|
31230
|
+
metadata?: import("../integrations/supabase/types").Json | null;
|
|
31231
|
+
priority?: string;
|
|
31232
|
+
raised_at?: string;
|
|
31233
|
+
related_cart_ids?: string[] | null;
|
|
31234
|
+
resolved_at?: string | null;
|
|
31235
|
+
title: string;
|
|
31236
|
+
updated_at?: string;
|
|
31237
|
+
user_id: string;
|
|
31238
|
+
};
|
|
31239
|
+
Update: {
|
|
31240
|
+
alert_key?: string;
|
|
31241
|
+
alert_type?: string;
|
|
31242
|
+
created_at?: string;
|
|
31243
|
+
description?: string | null;
|
|
31244
|
+
id?: string;
|
|
31245
|
+
metadata?: import("../integrations/supabase/types").Json | null;
|
|
31246
|
+
priority?: string;
|
|
31247
|
+
raised_at?: string;
|
|
31248
|
+
related_cart_ids?: string[] | null;
|
|
31249
|
+
resolved_at?: string | null;
|
|
31250
|
+
title?: string;
|
|
31251
|
+
updated_at?: string;
|
|
31252
|
+
user_id?: string;
|
|
31253
|
+
};
|
|
31254
|
+
Relationships: [];
|
|
31255
|
+
};
|
|
29108
31256
|
dashboard_daily_reports: {
|
|
29109
31257
|
Row: {
|
|
29110
31258
|
created_at: string;
|
|
@@ -30607,6 +32755,7 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Opt
|
|
|
30607
32755
|
};
|
|
30608
32756
|
floricode_sync_state: {
|
|
30609
32757
|
Row: {
|
|
32758
|
+
cursor_skip: number;
|
|
30610
32759
|
error_message: string | null;
|
|
30611
32760
|
last_change_date_time: string | null;
|
|
30612
32761
|
last_sequence_number: number;
|
|
@@ -30616,6 +32765,7 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Opt
|
|
|
30616
32765
|
updated_at: string;
|
|
30617
32766
|
};
|
|
30618
32767
|
Insert: {
|
|
32768
|
+
cursor_skip?: number;
|
|
30619
32769
|
error_message?: string | null;
|
|
30620
32770
|
last_change_date_time?: string | null;
|
|
30621
32771
|
last_sequence_number?: number;
|
|
@@ -30625,6 +32775,7 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Opt
|
|
|
30625
32775
|
updated_at?: string;
|
|
30626
32776
|
};
|
|
30627
32777
|
Update: {
|
|
32778
|
+
cursor_skip?: number;
|
|
30628
32779
|
error_message?: string | null;
|
|
30629
32780
|
last_change_date_time?: string | null;
|
|
30630
32781
|
last_sequence_number?: number;
|
|
@@ -32972,6 +35123,93 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Opt
|
|
|
32972
35123
|
};
|
|
32973
35124
|
Relationships: [];
|
|
32974
35125
|
};
|
|
35126
|
+
manufacture_product_components: {
|
|
35127
|
+
Row: {
|
|
35128
|
+
component_type: string;
|
|
35129
|
+
created_at: string;
|
|
35130
|
+
id: string;
|
|
35131
|
+
manufacture_product_id: string;
|
|
35132
|
+
product_group_id: string | null;
|
|
35133
|
+
quantity: number;
|
|
35134
|
+
trade_item_id: string | null;
|
|
35135
|
+
unit: string;
|
|
35136
|
+
};
|
|
35137
|
+
Insert: {
|
|
35138
|
+
component_type: string;
|
|
35139
|
+
created_at?: string;
|
|
35140
|
+
id?: string;
|
|
35141
|
+
manufacture_product_id: string;
|
|
35142
|
+
product_group_id?: string | null;
|
|
35143
|
+
quantity?: number;
|
|
35144
|
+
trade_item_id?: string | null;
|
|
35145
|
+
unit?: string;
|
|
35146
|
+
};
|
|
35147
|
+
Update: {
|
|
35148
|
+
component_type?: string;
|
|
35149
|
+
created_at?: string;
|
|
35150
|
+
id?: string;
|
|
35151
|
+
manufacture_product_id?: string;
|
|
35152
|
+
product_group_id?: string | null;
|
|
35153
|
+
quantity?: number;
|
|
35154
|
+
trade_item_id?: string | null;
|
|
35155
|
+
unit?: string;
|
|
35156
|
+
};
|
|
35157
|
+
Relationships: [{
|
|
35158
|
+
foreignKeyName: "manufacture_product_components_manufacture_product_id_fkey";
|
|
35159
|
+
columns: ["manufacture_product_id"];
|
|
35160
|
+
isOneToOne: false;
|
|
35161
|
+
referencedRelation: "manufacture_product_possible_stock_view";
|
|
35162
|
+
referencedColumns: ["manufacture_product_id"];
|
|
35163
|
+
}, {
|
|
35164
|
+
foreignKeyName: "manufacture_product_components_manufacture_product_id_fkey";
|
|
35165
|
+
columns: ["manufacture_product_id"];
|
|
35166
|
+
isOneToOne: false;
|
|
35167
|
+
referencedRelation: "manufacture_products";
|
|
35168
|
+
referencedColumns: ["id"];
|
|
35169
|
+
}, {
|
|
35170
|
+
foreignKeyName: "manufacture_product_components_product_group_id_fkey";
|
|
35171
|
+
columns: ["product_group_id"];
|
|
35172
|
+
isOneToOne: false;
|
|
35173
|
+
referencedRelation: "product_groups";
|
|
35174
|
+
referencedColumns: ["id"];
|
|
35175
|
+
}];
|
|
35176
|
+
};
|
|
35177
|
+
manufacture_products: {
|
|
35178
|
+
Row: {
|
|
35179
|
+
created_at: string;
|
|
35180
|
+
description: string | null;
|
|
35181
|
+
id: string;
|
|
35182
|
+
is_active: boolean;
|
|
35183
|
+
name: string;
|
|
35184
|
+
produced_stock: number;
|
|
35185
|
+
product_code: string;
|
|
35186
|
+
tenant_id: string;
|
|
35187
|
+
updated_at: string;
|
|
35188
|
+
};
|
|
35189
|
+
Insert: {
|
|
35190
|
+
created_at?: string;
|
|
35191
|
+
description?: string | null;
|
|
35192
|
+
id?: string;
|
|
35193
|
+
is_active?: boolean;
|
|
35194
|
+
name: string;
|
|
35195
|
+
produced_stock?: number;
|
|
35196
|
+
product_code: string;
|
|
35197
|
+
tenant_id: string;
|
|
35198
|
+
updated_at?: string;
|
|
35199
|
+
};
|
|
35200
|
+
Update: {
|
|
35201
|
+
created_at?: string;
|
|
35202
|
+
description?: string | null;
|
|
35203
|
+
id?: string;
|
|
35204
|
+
is_active?: boolean;
|
|
35205
|
+
name?: string;
|
|
35206
|
+
produced_stock?: number;
|
|
35207
|
+
product_code?: string;
|
|
35208
|
+
tenant_id?: string;
|
|
35209
|
+
updated_at?: string;
|
|
35210
|
+
};
|
|
35211
|
+
Relationships: [];
|
|
35212
|
+
};
|
|
32975
35213
|
monteurs: {
|
|
32976
35214
|
Row: {
|
|
32977
35215
|
avatar_url: string | null;
|
|
@@ -33932,6 +36170,66 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Opt
|
|
|
33932
36170
|
};
|
|
33933
36171
|
Relationships: [];
|
|
33934
36172
|
};
|
|
36173
|
+
product_group_items: {
|
|
36174
|
+
Row: {
|
|
36175
|
+
created_at: string;
|
|
36176
|
+
id: string;
|
|
36177
|
+
product_group_id: string;
|
|
36178
|
+
quantity: number;
|
|
36179
|
+
trade_item_id: string;
|
|
36180
|
+
};
|
|
36181
|
+
Insert: {
|
|
36182
|
+
created_at?: string;
|
|
36183
|
+
id?: string;
|
|
36184
|
+
product_group_id: string;
|
|
36185
|
+
quantity?: number;
|
|
36186
|
+
trade_item_id: string;
|
|
36187
|
+
};
|
|
36188
|
+
Update: {
|
|
36189
|
+
created_at?: string;
|
|
36190
|
+
id?: string;
|
|
36191
|
+
product_group_id?: string;
|
|
36192
|
+
quantity?: number;
|
|
36193
|
+
trade_item_id?: string;
|
|
36194
|
+
};
|
|
36195
|
+
Relationships: [{
|
|
36196
|
+
foreignKeyName: "product_group_items_product_group_id_fkey";
|
|
36197
|
+
columns: ["product_group_id"];
|
|
36198
|
+
isOneToOne: false;
|
|
36199
|
+
referencedRelation: "product_groups";
|
|
36200
|
+
referencedColumns: ["id"];
|
|
36201
|
+
}];
|
|
36202
|
+
};
|
|
36203
|
+
product_groups: {
|
|
36204
|
+
Row: {
|
|
36205
|
+
created_at: string;
|
|
36206
|
+
description: string | null;
|
|
36207
|
+
id: string;
|
|
36208
|
+
is_active: boolean;
|
|
36209
|
+
name: string;
|
|
36210
|
+
tenant_id: string;
|
|
36211
|
+
updated_at: string;
|
|
36212
|
+
};
|
|
36213
|
+
Insert: {
|
|
36214
|
+
created_at?: string;
|
|
36215
|
+
description?: string | null;
|
|
36216
|
+
id?: string;
|
|
36217
|
+
is_active?: boolean;
|
|
36218
|
+
name: string;
|
|
36219
|
+
tenant_id: string;
|
|
36220
|
+
updated_at?: string;
|
|
36221
|
+
};
|
|
36222
|
+
Update: {
|
|
36223
|
+
created_at?: string;
|
|
36224
|
+
description?: string | null;
|
|
36225
|
+
id?: string;
|
|
36226
|
+
is_active?: boolean;
|
|
36227
|
+
name?: string;
|
|
36228
|
+
tenant_id?: string;
|
|
36229
|
+
updated_at?: string;
|
|
36230
|
+
};
|
|
36231
|
+
Relationships: [];
|
|
36232
|
+
};
|
|
33935
36233
|
products: {
|
|
33936
36234
|
Row: {
|
|
33937
36235
|
barcode: string | null;
|
|
@@ -35071,7 +37369,13 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Opt
|
|
|
35071
37369
|
connection_id: string | null;
|
|
35072
37370
|
created_at: string;
|
|
35073
37371
|
data: import("../integrations/supabase/types").Json;
|
|
37372
|
+
floriday_id: string | null;
|
|
37373
|
+
floriday_link_error: string | null;
|
|
37374
|
+
floriday_link_status: string;
|
|
35074
37375
|
id: string;
|
|
37376
|
+
last_floriday_sync_at: string | null;
|
|
37377
|
+
missing_required_fields: string[];
|
|
37378
|
+
source: string;
|
|
35075
37379
|
updated_at: string;
|
|
35076
37380
|
user_id: string;
|
|
35077
37381
|
};
|
|
@@ -35079,7 +37383,13 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Opt
|
|
|
35079
37383
|
connection_id?: string | null;
|
|
35080
37384
|
created_at?: string;
|
|
35081
37385
|
data?: import("../integrations/supabase/types").Json;
|
|
37386
|
+
floriday_id?: string | null;
|
|
37387
|
+
floriday_link_error?: string | null;
|
|
37388
|
+
floriday_link_status?: string;
|
|
35082
37389
|
id?: string;
|
|
37390
|
+
last_floriday_sync_at?: string | null;
|
|
37391
|
+
missing_required_fields?: string[];
|
|
37392
|
+
source?: string;
|
|
35083
37393
|
updated_at?: string;
|
|
35084
37394
|
user_id: string;
|
|
35085
37395
|
};
|
|
@@ -35087,7 +37397,55 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Opt
|
|
|
35087
37397
|
connection_id?: string | null;
|
|
35088
37398
|
created_at?: string;
|
|
35089
37399
|
data?: import("../integrations/supabase/types").Json;
|
|
37400
|
+
floriday_id?: string | null;
|
|
37401
|
+
floriday_link_error?: string | null;
|
|
37402
|
+
floriday_link_status?: string;
|
|
37403
|
+
id?: string;
|
|
37404
|
+
last_floriday_sync_at?: string | null;
|
|
37405
|
+
missing_required_fields?: string[];
|
|
37406
|
+
source?: string;
|
|
37407
|
+
updated_at?: string;
|
|
37408
|
+
user_id?: string;
|
|
37409
|
+
};
|
|
37410
|
+
Relationships: [];
|
|
37411
|
+
};
|
|
37412
|
+
trade_item_stock: {
|
|
37413
|
+
Row: {
|
|
37414
|
+
connection_id: string;
|
|
37415
|
+
created_at: string;
|
|
37416
|
+
id: string;
|
|
37417
|
+
incoming_stock: number;
|
|
37418
|
+
minimum_stock: number;
|
|
37419
|
+
notes: string | null;
|
|
37420
|
+
physical_stock: number;
|
|
37421
|
+
reserved_stock: number;
|
|
37422
|
+
trade_item_key: string;
|
|
37423
|
+
updated_at: string;
|
|
37424
|
+
user_id: string;
|
|
37425
|
+
};
|
|
37426
|
+
Insert: {
|
|
37427
|
+
connection_id: string;
|
|
37428
|
+
created_at?: string;
|
|
35090
37429
|
id?: string;
|
|
37430
|
+
incoming_stock?: number;
|
|
37431
|
+
minimum_stock?: number;
|
|
37432
|
+
notes?: string | null;
|
|
37433
|
+
physical_stock?: number;
|
|
37434
|
+
reserved_stock?: number;
|
|
37435
|
+
trade_item_key: string;
|
|
37436
|
+
updated_at?: string;
|
|
37437
|
+
user_id: string;
|
|
37438
|
+
};
|
|
37439
|
+
Update: {
|
|
37440
|
+
connection_id?: string;
|
|
37441
|
+
created_at?: string;
|
|
37442
|
+
id?: string;
|
|
37443
|
+
incoming_stock?: number;
|
|
37444
|
+
minimum_stock?: number;
|
|
37445
|
+
notes?: string | null;
|
|
37446
|
+
physical_stock?: number;
|
|
37447
|
+
reserved_stock?: number;
|
|
37448
|
+
trade_item_key?: string;
|
|
35091
37449
|
updated_at?: string;
|
|
35092
37450
|
user_id?: string;
|
|
35093
37451
|
};
|
|
@@ -35437,6 +37795,7 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Opt
|
|
|
35437
37795
|
};
|
|
35438
37796
|
twinfield_invoice_sync_logs: {
|
|
35439
37797
|
Row: {
|
|
37798
|
+
action_type: string | null;
|
|
35440
37799
|
created_at: string;
|
|
35441
37800
|
details: import("../integrations/supabase/types").Json | null;
|
|
35442
37801
|
duration_ms: number | null;
|
|
@@ -35449,6 +37808,7 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Opt
|
|
|
35449
37808
|
user_id: string;
|
|
35450
37809
|
};
|
|
35451
37810
|
Insert: {
|
|
37811
|
+
action_type?: string | null;
|
|
35452
37812
|
created_at?: string;
|
|
35453
37813
|
details?: import("../integrations/supabase/types").Json | null;
|
|
35454
37814
|
duration_ms?: number | null;
|
|
@@ -35461,6 +37821,7 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Opt
|
|
|
35461
37821
|
user_id: string;
|
|
35462
37822
|
};
|
|
35463
37823
|
Update: {
|
|
37824
|
+
action_type?: string | null;
|
|
35464
37825
|
created_at?: string;
|
|
35465
37826
|
details?: import("../integrations/supabase/types").Json | null;
|
|
35466
37827
|
duration_ms?: number | null;
|
|
@@ -35696,6 +38057,57 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Opt
|
|
|
35696
38057
|
referencedColumns: ["id"];
|
|
35697
38058
|
}];
|
|
35698
38059
|
};
|
|
38060
|
+
twinfield_request_metrics: {
|
|
38061
|
+
Row: {
|
|
38062
|
+
bucket_hour: string;
|
|
38063
|
+
connection_id: string;
|
|
38064
|
+
error_count: number;
|
|
38065
|
+
rate_limited_count: number;
|
|
38066
|
+
request_count: number;
|
|
38067
|
+
updated_at: string;
|
|
38068
|
+
};
|
|
38069
|
+
Insert: {
|
|
38070
|
+
bucket_hour: string;
|
|
38071
|
+
connection_id: string;
|
|
38072
|
+
error_count?: number;
|
|
38073
|
+
rate_limited_count?: number;
|
|
38074
|
+
request_count?: number;
|
|
38075
|
+
updated_at?: string;
|
|
38076
|
+
};
|
|
38077
|
+
Update: {
|
|
38078
|
+
bucket_hour?: string;
|
|
38079
|
+
connection_id?: string;
|
|
38080
|
+
error_count?: number;
|
|
38081
|
+
rate_limited_count?: number;
|
|
38082
|
+
request_count?: number;
|
|
38083
|
+
updated_at?: string;
|
|
38084
|
+
};
|
|
38085
|
+
Relationships: [];
|
|
38086
|
+
};
|
|
38087
|
+
twinfield_session_cache: {
|
|
38088
|
+
Row: {
|
|
38089
|
+
cluster: string;
|
|
38090
|
+
created_at: string;
|
|
38091
|
+
expires_at: string;
|
|
38092
|
+
session_id: string;
|
|
38093
|
+
user_id: string;
|
|
38094
|
+
};
|
|
38095
|
+
Insert: {
|
|
38096
|
+
cluster: string;
|
|
38097
|
+
created_at?: string;
|
|
38098
|
+
expires_at: string;
|
|
38099
|
+
session_id: string;
|
|
38100
|
+
user_id: string;
|
|
38101
|
+
};
|
|
38102
|
+
Update: {
|
|
38103
|
+
cluster?: string;
|
|
38104
|
+
created_at?: string;
|
|
38105
|
+
expires_at?: string;
|
|
38106
|
+
session_id?: string;
|
|
38107
|
+
user_id?: string;
|
|
38108
|
+
};
|
|
38109
|
+
Relationships: [];
|
|
38110
|
+
};
|
|
35699
38111
|
twinfield_settings: {
|
|
35700
38112
|
Row: {
|
|
35701
38113
|
active_environment: string;
|
|
@@ -36277,6 +38689,35 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Opt
|
|
|
36277
38689
|
};
|
|
36278
38690
|
Relationships: [];
|
|
36279
38691
|
};
|
|
38692
|
+
manufacture_product_possible_stock_view: {
|
|
38693
|
+
Row: {
|
|
38694
|
+
component_count: number | null;
|
|
38695
|
+
manufacture_product_id: string | null;
|
|
38696
|
+
possible_stock: number | null;
|
|
38697
|
+
};
|
|
38698
|
+
Relationships: [];
|
|
38699
|
+
};
|
|
38700
|
+
product_group_stock_view: {
|
|
38701
|
+
Row: {
|
|
38702
|
+
item_count: number | null;
|
|
38703
|
+
product_group_id: string | null;
|
|
38704
|
+
total_stock: number | null;
|
|
38705
|
+
};
|
|
38706
|
+
Relationships: [{
|
|
38707
|
+
foreignKeyName: "product_group_items_product_group_id_fkey";
|
|
38708
|
+
columns: ["product_group_id"];
|
|
38709
|
+
isOneToOne: false;
|
|
38710
|
+
referencedRelation: "product_groups";
|
|
38711
|
+
referencedColumns: ["id"];
|
|
38712
|
+
}];
|
|
38713
|
+
};
|
|
38714
|
+
trade_item_stock_view: {
|
|
38715
|
+
Row: {
|
|
38716
|
+
stock: number | null;
|
|
38717
|
+
trade_item_id: string | null;
|
|
38718
|
+
};
|
|
38719
|
+
Relationships: [];
|
|
38720
|
+
};
|
|
36280
38721
|
v_external_customers_exact: {
|
|
36281
38722
|
Row: {
|
|
36282
38723
|
account_number: string | null;
|
|
@@ -36532,6 +38973,20 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Opt
|
|
|
36532
38973
|
};
|
|
36533
38974
|
Returns: number;
|
|
36534
38975
|
};
|
|
38976
|
+
assign_cart_numbers: {
|
|
38977
|
+
Args: {
|
|
38978
|
+
p_carts: import("../integrations/supabase/types").Json;
|
|
38979
|
+
};
|
|
38980
|
+
Returns: {
|
|
38981
|
+
cart_index: number;
|
|
38982
|
+
cart_number: string;
|
|
38983
|
+
day_seq: number;
|
|
38984
|
+
order_id: string;
|
|
38985
|
+
order_source: string;
|
|
38986
|
+
pick_date: string;
|
|
38987
|
+
status: string;
|
|
38988
|
+
}[];
|
|
38989
|
+
};
|
|
36535
38990
|
assign_floriday_order_numbers: {
|
|
36536
38991
|
Args: {
|
|
36537
38992
|
p_ids: string[];
|
|
@@ -36551,10 +39006,37 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Opt
|
|
|
36551
39006
|
Args: never;
|
|
36552
39007
|
Returns: number;
|
|
36553
39008
|
};
|
|
39009
|
+
control_get_todays_carts: {
|
|
39010
|
+
Args: never;
|
|
39011
|
+
Returns: {
|
|
39012
|
+
cart_index: number;
|
|
39013
|
+
cart_number: string;
|
|
39014
|
+
cart_number_id: string;
|
|
39015
|
+
order_id: string;
|
|
39016
|
+
order_source: string;
|
|
39017
|
+
pick_date: string;
|
|
39018
|
+
status: string;
|
|
39019
|
+
}[];
|
|
39020
|
+
};
|
|
39021
|
+
count_distinct_regulatory_products: {
|
|
39022
|
+
Args: never;
|
|
39023
|
+
Returns: number;
|
|
39024
|
+
};
|
|
36554
39025
|
current_monteur_id: {
|
|
36555
39026
|
Args: never;
|
|
36556
39027
|
Returns: string;
|
|
36557
39028
|
};
|
|
39029
|
+
dashboard_alert_counts: {
|
|
39030
|
+
Args: never;
|
|
39031
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
39032
|
+
};
|
|
39033
|
+
dashboard_alert_rows: {
|
|
39034
|
+
Args: {
|
|
39035
|
+
check_id: string;
|
|
39036
|
+
row_limit?: number;
|
|
39037
|
+
};
|
|
39038
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
39039
|
+
};
|
|
36558
39040
|
dashboard_list_public_schema: {
|
|
36559
39041
|
Args: never;
|
|
36560
39042
|
Returns: {
|
|
@@ -36635,6 +39117,13 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Opt
|
|
|
36635
39117
|
};
|
|
36636
39118
|
Returns: boolean;
|
|
36637
39119
|
};
|
|
39120
|
+
format_cart_number: {
|
|
39121
|
+
Args: {
|
|
39122
|
+
p_pick_date: string;
|
|
39123
|
+
p_seq: number;
|
|
39124
|
+
};
|
|
39125
|
+
Returns: string;
|
|
39126
|
+
};
|
|
36638
39127
|
get_active_floriday_connection_public: {
|
|
36639
39128
|
Args: never;
|
|
36640
39129
|
Returns: {
|
|
@@ -36839,6 +39328,15 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Opt
|
|
|
36839
39328
|
};
|
|
36840
39329
|
Returns: undefined;
|
|
36841
39330
|
};
|
|
39331
|
+
pickstation_set_cart_status: {
|
|
39332
|
+
Args: {
|
|
39333
|
+
p_cart_index: number;
|
|
39334
|
+
p_order_id: string;
|
|
39335
|
+
p_order_source: string;
|
|
39336
|
+
p_status: string;
|
|
39337
|
+
};
|
|
39338
|
+
Returns: undefined;
|
|
39339
|
+
};
|
|
36842
39340
|
refresh_floricode_derived_code_lists: {
|
|
36843
39341
|
Args: never;
|
|
36844
39342
|
Returns: {
|
|
@@ -36847,6 +39345,12 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Opt
|
|
|
36847
39345
|
row_count: number;
|
|
36848
39346
|
}[];
|
|
36849
39347
|
};
|
|
39348
|
+
refresh_floricode_derived_for_product: {
|
|
39349
|
+
Args: {
|
|
39350
|
+
p_product_code: string;
|
|
39351
|
+
};
|
|
39352
|
+
Returns: number;
|
|
39353
|
+
};
|
|
36850
39354
|
reset_floriday_sync_cursor: {
|
|
36851
39355
|
Args: {
|
|
36852
39356
|
p_connection_id: string;
|
|
@@ -37171,6 +39675,7 @@ export declare const upsertSupplyLine: import("@tanstack/start-client-core").Opt
|
|
|
37171
39675
|
max_workdays_earlier_pick: number;
|
|
37172
39676
|
pick_days_before_transport: number;
|
|
37173
39677
|
pick_distribution_enabled: boolean;
|
|
39678
|
+
pick_weekdays: number[];
|
|
37174
39679
|
signup_mail_enabled: boolean;
|
|
37175
39680
|
signup_mail_lead_minutes: number;
|
|
37176
39681
|
signup_mail_purpose: string;
|
|
@@ -37184,6 +39689,7 @@ export declare const upsertSupplyLine: import("@tanstack/start-client-core").Opt
|
|
|
37184
39689
|
max_workdays_earlier_pick?: number;
|
|
37185
39690
|
pick_days_before_transport?: number;
|
|
37186
39691
|
pick_distribution_enabled?: boolean;
|
|
39692
|
+
pick_weekdays?: number[];
|
|
37187
39693
|
signup_mail_enabled?: boolean;
|
|
37188
39694
|
signup_mail_lead_minutes?: number;
|
|
37189
39695
|
signup_mail_purpose?: string;
|
|
@@ -37197,6 +39703,7 @@ export declare const upsertSupplyLine: import("@tanstack/start-client-core").Opt
|
|
|
37197
39703
|
max_workdays_earlier_pick?: number;
|
|
37198
39704
|
pick_days_before_transport?: number;
|
|
37199
39705
|
pick_distribution_enabled?: boolean;
|
|
39706
|
+
pick_weekdays?: number[];
|
|
37200
39707
|
signup_mail_enabled?: boolean;
|
|
37201
39708
|
signup_mail_lead_minutes?: number;
|
|
37202
39709
|
signup_mail_purpose?: string;
|
|
@@ -37608,6 +40115,48 @@ export declare const upsertSupplyLine: import("@tanstack/start-client-core").Opt
|
|
|
37608
40115
|
referencedColumns: ["id"];
|
|
37609
40116
|
}];
|
|
37610
40117
|
};
|
|
40118
|
+
carrier_signup_dispatch_runs: {
|
|
40119
|
+
Row: {
|
|
40120
|
+
detail: import("../integrations/supabase/types").Json | null;
|
|
40121
|
+
error: string | null;
|
|
40122
|
+
finished_at: string | null;
|
|
40123
|
+
groups: number;
|
|
40124
|
+
id: string;
|
|
40125
|
+
ok: boolean;
|
|
40126
|
+
reason: string | null;
|
|
40127
|
+
sent: number;
|
|
40128
|
+
skipped: import("../integrations/supabase/types").Json;
|
|
40129
|
+
started_at: string;
|
|
40130
|
+
unassigned: import("../integrations/supabase/types").Json;
|
|
40131
|
+
};
|
|
40132
|
+
Insert: {
|
|
40133
|
+
detail?: import("../integrations/supabase/types").Json | null;
|
|
40134
|
+
error?: string | null;
|
|
40135
|
+
finished_at?: string | null;
|
|
40136
|
+
groups?: number;
|
|
40137
|
+
id?: string;
|
|
40138
|
+
ok?: boolean;
|
|
40139
|
+
reason?: string | null;
|
|
40140
|
+
sent?: number;
|
|
40141
|
+
skipped?: import("../integrations/supabase/types").Json;
|
|
40142
|
+
started_at?: string;
|
|
40143
|
+
unassigned?: import("../integrations/supabase/types").Json;
|
|
40144
|
+
};
|
|
40145
|
+
Update: {
|
|
40146
|
+
detail?: import("../integrations/supabase/types").Json | null;
|
|
40147
|
+
error?: string | null;
|
|
40148
|
+
finished_at?: string | null;
|
|
40149
|
+
groups?: number;
|
|
40150
|
+
id?: string;
|
|
40151
|
+
ok?: boolean;
|
|
40152
|
+
reason?: string | null;
|
|
40153
|
+
sent?: number;
|
|
40154
|
+
skipped?: import("../integrations/supabase/types").Json;
|
|
40155
|
+
started_at?: string;
|
|
40156
|
+
unassigned?: import("../integrations/supabase/types").Json;
|
|
40157
|
+
};
|
|
40158
|
+
Relationships: [];
|
|
40159
|
+
};
|
|
37611
40160
|
carrier_signup_dispatches: {
|
|
37612
40161
|
Row: {
|
|
37613
40162
|
carrier_id: string;
|
|
@@ -37659,6 +40208,7 @@ export declare const upsertSupplyLine: import("@tanstack/start-client-core").Opt
|
|
|
37659
40208
|
contact_person: string | null;
|
|
37660
40209
|
created_at: string;
|
|
37661
40210
|
delivery_days: number | null;
|
|
40211
|
+
delivery_weekdays: number[];
|
|
37662
40212
|
email: string | null;
|
|
37663
40213
|
id: string;
|
|
37664
40214
|
is_default: boolean;
|
|
@@ -37666,6 +40216,7 @@ export declare const upsertSupplyLine: import("@tanstack/start-client-core").Opt
|
|
|
37666
40216
|
notes: string | null;
|
|
37667
40217
|
phone: string | null;
|
|
37668
40218
|
pickup_moments: import("../integrations/supabase/types").Json;
|
|
40219
|
+
pickup_weekdays: number[];
|
|
37669
40220
|
service_cities: string[];
|
|
37670
40221
|
service_countries: string[];
|
|
37671
40222
|
service_provinces: string[];
|
|
@@ -37681,6 +40232,7 @@ export declare const upsertSupplyLine: import("@tanstack/start-client-core").Opt
|
|
|
37681
40232
|
contact_person?: string | null;
|
|
37682
40233
|
created_at?: string;
|
|
37683
40234
|
delivery_days?: number | null;
|
|
40235
|
+
delivery_weekdays?: number[];
|
|
37684
40236
|
email?: string | null;
|
|
37685
40237
|
id?: string;
|
|
37686
40238
|
is_default?: boolean;
|
|
@@ -37688,6 +40240,7 @@ export declare const upsertSupplyLine: import("@tanstack/start-client-core").Opt
|
|
|
37688
40240
|
notes?: string | null;
|
|
37689
40241
|
phone?: string | null;
|
|
37690
40242
|
pickup_moments?: import("../integrations/supabase/types").Json;
|
|
40243
|
+
pickup_weekdays?: number[];
|
|
37691
40244
|
service_cities?: string[];
|
|
37692
40245
|
service_countries?: string[];
|
|
37693
40246
|
service_provinces?: string[];
|
|
@@ -37703,6 +40256,7 @@ export declare const upsertSupplyLine: import("@tanstack/start-client-core").Opt
|
|
|
37703
40256
|
contact_person?: string | null;
|
|
37704
40257
|
created_at?: string;
|
|
37705
40258
|
delivery_days?: number | null;
|
|
40259
|
+
delivery_weekdays?: number[];
|
|
37706
40260
|
email?: string | null;
|
|
37707
40261
|
id?: string;
|
|
37708
40262
|
is_default?: boolean;
|
|
@@ -37710,6 +40264,7 @@ export declare const upsertSupplyLine: import("@tanstack/start-client-core").Opt
|
|
|
37710
40264
|
notes?: string | null;
|
|
37711
40265
|
phone?: string | null;
|
|
37712
40266
|
pickup_moments?: import("../integrations/supabase/types").Json;
|
|
40267
|
+
pickup_weekdays?: number[];
|
|
37713
40268
|
service_cities?: string[];
|
|
37714
40269
|
service_countries?: string[];
|
|
37715
40270
|
service_provinces?: string[];
|
|
@@ -37722,6 +40277,177 @@ export declare const upsertSupplyLine: import("@tanstack/start-client-core").Opt
|
|
|
37722
40277
|
};
|
|
37723
40278
|
Relationships: [];
|
|
37724
40279
|
};
|
|
40280
|
+
cart_control_draft: {
|
|
40281
|
+
Row: {
|
|
40282
|
+
cart_states: import("../integrations/supabase/types").Json;
|
|
40283
|
+
checked_keys: import("../integrations/supabase/types").Json;
|
|
40284
|
+
draft_date: string;
|
|
40285
|
+
form_state: import("../integrations/supabase/types").Json;
|
|
40286
|
+
notes: string;
|
|
40287
|
+
updated_at: string;
|
|
40288
|
+
user_id: string;
|
|
40289
|
+
};
|
|
40290
|
+
Insert: {
|
|
40291
|
+
cart_states?: import("../integrations/supabase/types").Json;
|
|
40292
|
+
checked_keys?: import("../integrations/supabase/types").Json;
|
|
40293
|
+
draft_date: string;
|
|
40294
|
+
form_state?: import("../integrations/supabase/types").Json;
|
|
40295
|
+
notes?: string;
|
|
40296
|
+
updated_at?: string;
|
|
40297
|
+
user_id: string;
|
|
40298
|
+
};
|
|
40299
|
+
Update: {
|
|
40300
|
+
cart_states?: import("../integrations/supabase/types").Json;
|
|
40301
|
+
checked_keys?: import("../integrations/supabase/types").Json;
|
|
40302
|
+
draft_date?: string;
|
|
40303
|
+
form_state?: import("../integrations/supabase/types").Json;
|
|
40304
|
+
notes?: string;
|
|
40305
|
+
updated_at?: string;
|
|
40306
|
+
user_id?: string;
|
|
40307
|
+
};
|
|
40308
|
+
Relationships: [];
|
|
40309
|
+
};
|
|
40310
|
+
cart_control_items: {
|
|
40311
|
+
Row: {
|
|
40312
|
+
action: string;
|
|
40313
|
+
block_reason: string | null;
|
|
40314
|
+
carrier_name: string | null;
|
|
40315
|
+
cart_index: number;
|
|
40316
|
+
cart_number_id: string | null;
|
|
40317
|
+
cart_number_label: string | null;
|
|
40318
|
+
created_at: string;
|
|
40319
|
+
customer_name: string | null;
|
|
40320
|
+
delivery_date: string | null;
|
|
40321
|
+
id: string;
|
|
40322
|
+
new_pick_date: string | null;
|
|
40323
|
+
order_id: string;
|
|
40324
|
+
order_number: string | null;
|
|
40325
|
+
order_source: string;
|
|
40326
|
+
pickup_date: string | null;
|
|
40327
|
+
session_id: string;
|
|
40328
|
+
};
|
|
40329
|
+
Insert: {
|
|
40330
|
+
action: string;
|
|
40331
|
+
block_reason?: string | null;
|
|
40332
|
+
carrier_name?: string | null;
|
|
40333
|
+
cart_index: number;
|
|
40334
|
+
cart_number_id?: string | null;
|
|
40335
|
+
cart_number_label?: string | null;
|
|
40336
|
+
created_at?: string;
|
|
40337
|
+
customer_name?: string | null;
|
|
40338
|
+
delivery_date?: string | null;
|
|
40339
|
+
id?: string;
|
|
40340
|
+
new_pick_date?: string | null;
|
|
40341
|
+
order_id: string;
|
|
40342
|
+
order_number?: string | null;
|
|
40343
|
+
order_source: string;
|
|
40344
|
+
pickup_date?: string | null;
|
|
40345
|
+
session_id: string;
|
|
40346
|
+
};
|
|
40347
|
+
Update: {
|
|
40348
|
+
action?: string;
|
|
40349
|
+
block_reason?: string | null;
|
|
40350
|
+
carrier_name?: string | null;
|
|
40351
|
+
cart_index?: number;
|
|
40352
|
+
cart_number_id?: string | null;
|
|
40353
|
+
cart_number_label?: string | null;
|
|
40354
|
+
created_at?: string;
|
|
40355
|
+
customer_name?: string | null;
|
|
40356
|
+
delivery_date?: string | null;
|
|
40357
|
+
id?: string;
|
|
40358
|
+
new_pick_date?: string | null;
|
|
40359
|
+
order_id?: string;
|
|
40360
|
+
order_number?: string | null;
|
|
40361
|
+
order_source?: string;
|
|
40362
|
+
pickup_date?: string | null;
|
|
40363
|
+
session_id?: string;
|
|
40364
|
+
};
|
|
40365
|
+
Relationships: [{
|
|
40366
|
+
foreignKeyName: "cart_control_items_session_id_fkey";
|
|
40367
|
+
columns: ["session_id"];
|
|
40368
|
+
isOneToOne: false;
|
|
40369
|
+
referencedRelation: "cart_control_sessions";
|
|
40370
|
+
referencedColumns: ["id"];
|
|
40371
|
+
}];
|
|
40372
|
+
};
|
|
40373
|
+
cart_control_sessions: {
|
|
40374
|
+
Row: {
|
|
40375
|
+
blocked_count: number;
|
|
40376
|
+
checked_count: number;
|
|
40377
|
+
control_date: string;
|
|
40378
|
+
created_at: string;
|
|
40379
|
+
id: string;
|
|
40380
|
+
notes: string | null;
|
|
40381
|
+
performed_at: string;
|
|
40382
|
+
rescheduled_count: number;
|
|
40383
|
+
total_carts: number;
|
|
40384
|
+
updated_at: string;
|
|
40385
|
+
user_id: string;
|
|
40386
|
+
};
|
|
40387
|
+
Insert: {
|
|
40388
|
+
blocked_count?: number;
|
|
40389
|
+
checked_count?: number;
|
|
40390
|
+
control_date?: string;
|
|
40391
|
+
created_at?: string;
|
|
40392
|
+
id?: string;
|
|
40393
|
+
notes?: string | null;
|
|
40394
|
+
performed_at?: string;
|
|
40395
|
+
rescheduled_count?: number;
|
|
40396
|
+
total_carts?: number;
|
|
40397
|
+
updated_at?: string;
|
|
40398
|
+
user_id: string;
|
|
40399
|
+
};
|
|
40400
|
+
Update: {
|
|
40401
|
+
blocked_count?: number;
|
|
40402
|
+
checked_count?: number;
|
|
40403
|
+
control_date?: string;
|
|
40404
|
+
created_at?: string;
|
|
40405
|
+
id?: string;
|
|
40406
|
+
notes?: string | null;
|
|
40407
|
+
performed_at?: string;
|
|
40408
|
+
rescheduled_count?: number;
|
|
40409
|
+
total_carts?: number;
|
|
40410
|
+
updated_at?: string;
|
|
40411
|
+
user_id?: string;
|
|
40412
|
+
};
|
|
40413
|
+
Relationships: [];
|
|
40414
|
+
};
|
|
40415
|
+
cart_numbers: {
|
|
40416
|
+
Row: {
|
|
40417
|
+
assigned_at: string;
|
|
40418
|
+
cart_index: number;
|
|
40419
|
+
cart_number: string;
|
|
40420
|
+
day_seq: number;
|
|
40421
|
+
id: string;
|
|
40422
|
+
order_id: string;
|
|
40423
|
+
order_source: string;
|
|
40424
|
+
pick_date: string;
|
|
40425
|
+
status: string;
|
|
40426
|
+
};
|
|
40427
|
+
Insert: {
|
|
40428
|
+
assigned_at?: string;
|
|
40429
|
+
cart_index: number;
|
|
40430
|
+
cart_number: string;
|
|
40431
|
+
day_seq: number;
|
|
40432
|
+
id?: string;
|
|
40433
|
+
order_id: string;
|
|
40434
|
+
order_source: string;
|
|
40435
|
+
pick_date: string;
|
|
40436
|
+
status?: string;
|
|
40437
|
+
};
|
|
40438
|
+
Update: {
|
|
40439
|
+
assigned_at?: string;
|
|
40440
|
+
cart_index?: number;
|
|
40441
|
+
cart_number?: string;
|
|
40442
|
+
day_seq?: number;
|
|
40443
|
+
id?: string;
|
|
40444
|
+
order_id?: string;
|
|
40445
|
+
order_source?: string;
|
|
40446
|
+
pick_date?: string;
|
|
40447
|
+
status?: string;
|
|
40448
|
+
};
|
|
40449
|
+
Relationships: [];
|
|
40450
|
+
};
|
|
37725
40451
|
cart_pick_overrides: {
|
|
37726
40452
|
Row: {
|
|
37727
40453
|
cart_index: number;
|
|
@@ -38394,6 +41120,54 @@ export declare const upsertSupplyLine: import("@tanstack/start-client-core").Opt
|
|
|
38394
41120
|
referencedColumns: ["id"];
|
|
38395
41121
|
}];
|
|
38396
41122
|
};
|
|
41123
|
+
dashboard_critical_alerts: {
|
|
41124
|
+
Row: {
|
|
41125
|
+
alert_key: string;
|
|
41126
|
+
alert_type: string;
|
|
41127
|
+
created_at: string;
|
|
41128
|
+
description: string | null;
|
|
41129
|
+
id: string;
|
|
41130
|
+
metadata: import("../integrations/supabase/types").Json | null;
|
|
41131
|
+
priority: string;
|
|
41132
|
+
raised_at: string;
|
|
41133
|
+
related_cart_ids: string[] | null;
|
|
41134
|
+
resolved_at: string | null;
|
|
41135
|
+
title: string;
|
|
41136
|
+
updated_at: string;
|
|
41137
|
+
user_id: string;
|
|
41138
|
+
};
|
|
41139
|
+
Insert: {
|
|
41140
|
+
alert_key: string;
|
|
41141
|
+
alert_type: string;
|
|
41142
|
+
created_at?: string;
|
|
41143
|
+
description?: string | null;
|
|
41144
|
+
id?: string;
|
|
41145
|
+
metadata?: import("../integrations/supabase/types").Json | null;
|
|
41146
|
+
priority?: string;
|
|
41147
|
+
raised_at?: string;
|
|
41148
|
+
related_cart_ids?: string[] | null;
|
|
41149
|
+
resolved_at?: string | null;
|
|
41150
|
+
title: string;
|
|
41151
|
+
updated_at?: string;
|
|
41152
|
+
user_id: string;
|
|
41153
|
+
};
|
|
41154
|
+
Update: {
|
|
41155
|
+
alert_key?: string;
|
|
41156
|
+
alert_type?: string;
|
|
41157
|
+
created_at?: string;
|
|
41158
|
+
description?: string | null;
|
|
41159
|
+
id?: string;
|
|
41160
|
+
metadata?: import("../integrations/supabase/types").Json | null;
|
|
41161
|
+
priority?: string;
|
|
41162
|
+
raised_at?: string;
|
|
41163
|
+
related_cart_ids?: string[] | null;
|
|
41164
|
+
resolved_at?: string | null;
|
|
41165
|
+
title?: string;
|
|
41166
|
+
updated_at?: string;
|
|
41167
|
+
user_id?: string;
|
|
41168
|
+
};
|
|
41169
|
+
Relationships: [];
|
|
41170
|
+
};
|
|
38397
41171
|
dashboard_daily_reports: {
|
|
38398
41172
|
Row: {
|
|
38399
41173
|
created_at: string;
|
|
@@ -39896,6 +42670,7 @@ export declare const upsertSupplyLine: import("@tanstack/start-client-core").Opt
|
|
|
39896
42670
|
};
|
|
39897
42671
|
floricode_sync_state: {
|
|
39898
42672
|
Row: {
|
|
42673
|
+
cursor_skip: number;
|
|
39899
42674
|
error_message: string | null;
|
|
39900
42675
|
last_change_date_time: string | null;
|
|
39901
42676
|
last_sequence_number: number;
|
|
@@ -39905,6 +42680,7 @@ export declare const upsertSupplyLine: import("@tanstack/start-client-core").Opt
|
|
|
39905
42680
|
updated_at: string;
|
|
39906
42681
|
};
|
|
39907
42682
|
Insert: {
|
|
42683
|
+
cursor_skip?: number;
|
|
39908
42684
|
error_message?: string | null;
|
|
39909
42685
|
last_change_date_time?: string | null;
|
|
39910
42686
|
last_sequence_number?: number;
|
|
@@ -39914,6 +42690,7 @@ export declare const upsertSupplyLine: import("@tanstack/start-client-core").Opt
|
|
|
39914
42690
|
updated_at?: string;
|
|
39915
42691
|
};
|
|
39916
42692
|
Update: {
|
|
42693
|
+
cursor_skip?: number;
|
|
39917
42694
|
error_message?: string | null;
|
|
39918
42695
|
last_change_date_time?: string | null;
|
|
39919
42696
|
last_sequence_number?: number;
|
|
@@ -42261,6 +45038,93 @@ export declare const upsertSupplyLine: import("@tanstack/start-client-core").Opt
|
|
|
42261
45038
|
};
|
|
42262
45039
|
Relationships: [];
|
|
42263
45040
|
};
|
|
45041
|
+
manufacture_product_components: {
|
|
45042
|
+
Row: {
|
|
45043
|
+
component_type: string;
|
|
45044
|
+
created_at: string;
|
|
45045
|
+
id: string;
|
|
45046
|
+
manufacture_product_id: string;
|
|
45047
|
+
product_group_id: string | null;
|
|
45048
|
+
quantity: number;
|
|
45049
|
+
trade_item_id: string | null;
|
|
45050
|
+
unit: string;
|
|
45051
|
+
};
|
|
45052
|
+
Insert: {
|
|
45053
|
+
component_type: string;
|
|
45054
|
+
created_at?: string;
|
|
45055
|
+
id?: string;
|
|
45056
|
+
manufacture_product_id: string;
|
|
45057
|
+
product_group_id?: string | null;
|
|
45058
|
+
quantity?: number;
|
|
45059
|
+
trade_item_id?: string | null;
|
|
45060
|
+
unit?: string;
|
|
45061
|
+
};
|
|
45062
|
+
Update: {
|
|
45063
|
+
component_type?: string;
|
|
45064
|
+
created_at?: string;
|
|
45065
|
+
id?: string;
|
|
45066
|
+
manufacture_product_id?: string;
|
|
45067
|
+
product_group_id?: string | null;
|
|
45068
|
+
quantity?: number;
|
|
45069
|
+
trade_item_id?: string | null;
|
|
45070
|
+
unit?: string;
|
|
45071
|
+
};
|
|
45072
|
+
Relationships: [{
|
|
45073
|
+
foreignKeyName: "manufacture_product_components_manufacture_product_id_fkey";
|
|
45074
|
+
columns: ["manufacture_product_id"];
|
|
45075
|
+
isOneToOne: false;
|
|
45076
|
+
referencedRelation: "manufacture_product_possible_stock_view";
|
|
45077
|
+
referencedColumns: ["manufacture_product_id"];
|
|
45078
|
+
}, {
|
|
45079
|
+
foreignKeyName: "manufacture_product_components_manufacture_product_id_fkey";
|
|
45080
|
+
columns: ["manufacture_product_id"];
|
|
45081
|
+
isOneToOne: false;
|
|
45082
|
+
referencedRelation: "manufacture_products";
|
|
45083
|
+
referencedColumns: ["id"];
|
|
45084
|
+
}, {
|
|
45085
|
+
foreignKeyName: "manufacture_product_components_product_group_id_fkey";
|
|
45086
|
+
columns: ["product_group_id"];
|
|
45087
|
+
isOneToOne: false;
|
|
45088
|
+
referencedRelation: "product_groups";
|
|
45089
|
+
referencedColumns: ["id"];
|
|
45090
|
+
}];
|
|
45091
|
+
};
|
|
45092
|
+
manufacture_products: {
|
|
45093
|
+
Row: {
|
|
45094
|
+
created_at: string;
|
|
45095
|
+
description: string | null;
|
|
45096
|
+
id: string;
|
|
45097
|
+
is_active: boolean;
|
|
45098
|
+
name: string;
|
|
45099
|
+
produced_stock: number;
|
|
45100
|
+
product_code: string;
|
|
45101
|
+
tenant_id: string;
|
|
45102
|
+
updated_at: string;
|
|
45103
|
+
};
|
|
45104
|
+
Insert: {
|
|
45105
|
+
created_at?: string;
|
|
45106
|
+
description?: string | null;
|
|
45107
|
+
id?: string;
|
|
45108
|
+
is_active?: boolean;
|
|
45109
|
+
name: string;
|
|
45110
|
+
produced_stock?: number;
|
|
45111
|
+
product_code: string;
|
|
45112
|
+
tenant_id: string;
|
|
45113
|
+
updated_at?: string;
|
|
45114
|
+
};
|
|
45115
|
+
Update: {
|
|
45116
|
+
created_at?: string;
|
|
45117
|
+
description?: string | null;
|
|
45118
|
+
id?: string;
|
|
45119
|
+
is_active?: boolean;
|
|
45120
|
+
name?: string;
|
|
45121
|
+
produced_stock?: number;
|
|
45122
|
+
product_code?: string;
|
|
45123
|
+
tenant_id?: string;
|
|
45124
|
+
updated_at?: string;
|
|
45125
|
+
};
|
|
45126
|
+
Relationships: [];
|
|
45127
|
+
};
|
|
42264
45128
|
monteurs: {
|
|
42265
45129
|
Row: {
|
|
42266
45130
|
avatar_url: string | null;
|
|
@@ -43221,6 +46085,66 @@ export declare const upsertSupplyLine: import("@tanstack/start-client-core").Opt
|
|
|
43221
46085
|
};
|
|
43222
46086
|
Relationships: [];
|
|
43223
46087
|
};
|
|
46088
|
+
product_group_items: {
|
|
46089
|
+
Row: {
|
|
46090
|
+
created_at: string;
|
|
46091
|
+
id: string;
|
|
46092
|
+
product_group_id: string;
|
|
46093
|
+
quantity: number;
|
|
46094
|
+
trade_item_id: string;
|
|
46095
|
+
};
|
|
46096
|
+
Insert: {
|
|
46097
|
+
created_at?: string;
|
|
46098
|
+
id?: string;
|
|
46099
|
+
product_group_id: string;
|
|
46100
|
+
quantity?: number;
|
|
46101
|
+
trade_item_id: string;
|
|
46102
|
+
};
|
|
46103
|
+
Update: {
|
|
46104
|
+
created_at?: string;
|
|
46105
|
+
id?: string;
|
|
46106
|
+
product_group_id?: string;
|
|
46107
|
+
quantity?: number;
|
|
46108
|
+
trade_item_id?: string;
|
|
46109
|
+
};
|
|
46110
|
+
Relationships: [{
|
|
46111
|
+
foreignKeyName: "product_group_items_product_group_id_fkey";
|
|
46112
|
+
columns: ["product_group_id"];
|
|
46113
|
+
isOneToOne: false;
|
|
46114
|
+
referencedRelation: "product_groups";
|
|
46115
|
+
referencedColumns: ["id"];
|
|
46116
|
+
}];
|
|
46117
|
+
};
|
|
46118
|
+
product_groups: {
|
|
46119
|
+
Row: {
|
|
46120
|
+
created_at: string;
|
|
46121
|
+
description: string | null;
|
|
46122
|
+
id: string;
|
|
46123
|
+
is_active: boolean;
|
|
46124
|
+
name: string;
|
|
46125
|
+
tenant_id: string;
|
|
46126
|
+
updated_at: string;
|
|
46127
|
+
};
|
|
46128
|
+
Insert: {
|
|
46129
|
+
created_at?: string;
|
|
46130
|
+
description?: string | null;
|
|
46131
|
+
id?: string;
|
|
46132
|
+
is_active?: boolean;
|
|
46133
|
+
name: string;
|
|
46134
|
+
tenant_id: string;
|
|
46135
|
+
updated_at?: string;
|
|
46136
|
+
};
|
|
46137
|
+
Update: {
|
|
46138
|
+
created_at?: string;
|
|
46139
|
+
description?: string | null;
|
|
46140
|
+
id?: string;
|
|
46141
|
+
is_active?: boolean;
|
|
46142
|
+
name?: string;
|
|
46143
|
+
tenant_id?: string;
|
|
46144
|
+
updated_at?: string;
|
|
46145
|
+
};
|
|
46146
|
+
Relationships: [];
|
|
46147
|
+
};
|
|
43224
46148
|
products: {
|
|
43225
46149
|
Row: {
|
|
43226
46150
|
barcode: string | null;
|
|
@@ -44360,7 +47284,13 @@ export declare const upsertSupplyLine: import("@tanstack/start-client-core").Opt
|
|
|
44360
47284
|
connection_id: string | null;
|
|
44361
47285
|
created_at: string;
|
|
44362
47286
|
data: import("../integrations/supabase/types").Json;
|
|
47287
|
+
floriday_id: string | null;
|
|
47288
|
+
floriday_link_error: string | null;
|
|
47289
|
+
floriday_link_status: string;
|
|
44363
47290
|
id: string;
|
|
47291
|
+
last_floriday_sync_at: string | null;
|
|
47292
|
+
missing_required_fields: string[];
|
|
47293
|
+
source: string;
|
|
44364
47294
|
updated_at: string;
|
|
44365
47295
|
user_id: string;
|
|
44366
47296
|
};
|
|
@@ -44368,7 +47298,13 @@ export declare const upsertSupplyLine: import("@tanstack/start-client-core").Opt
|
|
|
44368
47298
|
connection_id?: string | null;
|
|
44369
47299
|
created_at?: string;
|
|
44370
47300
|
data?: import("../integrations/supabase/types").Json;
|
|
47301
|
+
floriday_id?: string | null;
|
|
47302
|
+
floriday_link_error?: string | null;
|
|
47303
|
+
floriday_link_status?: string;
|
|
44371
47304
|
id?: string;
|
|
47305
|
+
last_floriday_sync_at?: string | null;
|
|
47306
|
+
missing_required_fields?: string[];
|
|
47307
|
+
source?: string;
|
|
44372
47308
|
updated_at?: string;
|
|
44373
47309
|
user_id: string;
|
|
44374
47310
|
};
|
|
@@ -44376,7 +47312,55 @@ export declare const upsertSupplyLine: import("@tanstack/start-client-core").Opt
|
|
|
44376
47312
|
connection_id?: string | null;
|
|
44377
47313
|
created_at?: string;
|
|
44378
47314
|
data?: import("../integrations/supabase/types").Json;
|
|
47315
|
+
floriday_id?: string | null;
|
|
47316
|
+
floriday_link_error?: string | null;
|
|
47317
|
+
floriday_link_status?: string;
|
|
44379
47318
|
id?: string;
|
|
47319
|
+
last_floriday_sync_at?: string | null;
|
|
47320
|
+
missing_required_fields?: string[];
|
|
47321
|
+
source?: string;
|
|
47322
|
+
updated_at?: string;
|
|
47323
|
+
user_id?: string;
|
|
47324
|
+
};
|
|
47325
|
+
Relationships: [];
|
|
47326
|
+
};
|
|
47327
|
+
trade_item_stock: {
|
|
47328
|
+
Row: {
|
|
47329
|
+
connection_id: string;
|
|
47330
|
+
created_at: string;
|
|
47331
|
+
id: string;
|
|
47332
|
+
incoming_stock: number;
|
|
47333
|
+
minimum_stock: number;
|
|
47334
|
+
notes: string | null;
|
|
47335
|
+
physical_stock: number;
|
|
47336
|
+
reserved_stock: number;
|
|
47337
|
+
trade_item_key: string;
|
|
47338
|
+
updated_at: string;
|
|
47339
|
+
user_id: string;
|
|
47340
|
+
};
|
|
47341
|
+
Insert: {
|
|
47342
|
+
connection_id: string;
|
|
47343
|
+
created_at?: string;
|
|
47344
|
+
id?: string;
|
|
47345
|
+
incoming_stock?: number;
|
|
47346
|
+
minimum_stock?: number;
|
|
47347
|
+
notes?: string | null;
|
|
47348
|
+
physical_stock?: number;
|
|
47349
|
+
reserved_stock?: number;
|
|
47350
|
+
trade_item_key: string;
|
|
47351
|
+
updated_at?: string;
|
|
47352
|
+
user_id: string;
|
|
47353
|
+
};
|
|
47354
|
+
Update: {
|
|
47355
|
+
connection_id?: string;
|
|
47356
|
+
created_at?: string;
|
|
47357
|
+
id?: string;
|
|
47358
|
+
incoming_stock?: number;
|
|
47359
|
+
minimum_stock?: number;
|
|
47360
|
+
notes?: string | null;
|
|
47361
|
+
physical_stock?: number;
|
|
47362
|
+
reserved_stock?: number;
|
|
47363
|
+
trade_item_key?: string;
|
|
44380
47364
|
updated_at?: string;
|
|
44381
47365
|
user_id?: string;
|
|
44382
47366
|
};
|
|
@@ -44726,6 +47710,7 @@ export declare const upsertSupplyLine: import("@tanstack/start-client-core").Opt
|
|
|
44726
47710
|
};
|
|
44727
47711
|
twinfield_invoice_sync_logs: {
|
|
44728
47712
|
Row: {
|
|
47713
|
+
action_type: string | null;
|
|
44729
47714
|
created_at: string;
|
|
44730
47715
|
details: import("../integrations/supabase/types").Json | null;
|
|
44731
47716
|
duration_ms: number | null;
|
|
@@ -44738,6 +47723,7 @@ export declare const upsertSupplyLine: import("@tanstack/start-client-core").Opt
|
|
|
44738
47723
|
user_id: string;
|
|
44739
47724
|
};
|
|
44740
47725
|
Insert: {
|
|
47726
|
+
action_type?: string | null;
|
|
44741
47727
|
created_at?: string;
|
|
44742
47728
|
details?: import("../integrations/supabase/types").Json | null;
|
|
44743
47729
|
duration_ms?: number | null;
|
|
@@ -44750,6 +47736,7 @@ export declare const upsertSupplyLine: import("@tanstack/start-client-core").Opt
|
|
|
44750
47736
|
user_id: string;
|
|
44751
47737
|
};
|
|
44752
47738
|
Update: {
|
|
47739
|
+
action_type?: string | null;
|
|
44753
47740
|
created_at?: string;
|
|
44754
47741
|
details?: import("../integrations/supabase/types").Json | null;
|
|
44755
47742
|
duration_ms?: number | null;
|
|
@@ -44985,6 +47972,57 @@ export declare const upsertSupplyLine: import("@tanstack/start-client-core").Opt
|
|
|
44985
47972
|
referencedColumns: ["id"];
|
|
44986
47973
|
}];
|
|
44987
47974
|
};
|
|
47975
|
+
twinfield_request_metrics: {
|
|
47976
|
+
Row: {
|
|
47977
|
+
bucket_hour: string;
|
|
47978
|
+
connection_id: string;
|
|
47979
|
+
error_count: number;
|
|
47980
|
+
rate_limited_count: number;
|
|
47981
|
+
request_count: number;
|
|
47982
|
+
updated_at: string;
|
|
47983
|
+
};
|
|
47984
|
+
Insert: {
|
|
47985
|
+
bucket_hour: string;
|
|
47986
|
+
connection_id: string;
|
|
47987
|
+
error_count?: number;
|
|
47988
|
+
rate_limited_count?: number;
|
|
47989
|
+
request_count?: number;
|
|
47990
|
+
updated_at?: string;
|
|
47991
|
+
};
|
|
47992
|
+
Update: {
|
|
47993
|
+
bucket_hour?: string;
|
|
47994
|
+
connection_id?: string;
|
|
47995
|
+
error_count?: number;
|
|
47996
|
+
rate_limited_count?: number;
|
|
47997
|
+
request_count?: number;
|
|
47998
|
+
updated_at?: string;
|
|
47999
|
+
};
|
|
48000
|
+
Relationships: [];
|
|
48001
|
+
};
|
|
48002
|
+
twinfield_session_cache: {
|
|
48003
|
+
Row: {
|
|
48004
|
+
cluster: string;
|
|
48005
|
+
created_at: string;
|
|
48006
|
+
expires_at: string;
|
|
48007
|
+
session_id: string;
|
|
48008
|
+
user_id: string;
|
|
48009
|
+
};
|
|
48010
|
+
Insert: {
|
|
48011
|
+
cluster: string;
|
|
48012
|
+
created_at?: string;
|
|
48013
|
+
expires_at: string;
|
|
48014
|
+
session_id: string;
|
|
48015
|
+
user_id: string;
|
|
48016
|
+
};
|
|
48017
|
+
Update: {
|
|
48018
|
+
cluster?: string;
|
|
48019
|
+
created_at?: string;
|
|
48020
|
+
expires_at?: string;
|
|
48021
|
+
session_id?: string;
|
|
48022
|
+
user_id?: string;
|
|
48023
|
+
};
|
|
48024
|
+
Relationships: [];
|
|
48025
|
+
};
|
|
44988
48026
|
twinfield_settings: {
|
|
44989
48027
|
Row: {
|
|
44990
48028
|
active_environment: string;
|
|
@@ -45566,6 +48604,35 @@ export declare const upsertSupplyLine: import("@tanstack/start-client-core").Opt
|
|
|
45566
48604
|
};
|
|
45567
48605
|
Relationships: [];
|
|
45568
48606
|
};
|
|
48607
|
+
manufacture_product_possible_stock_view: {
|
|
48608
|
+
Row: {
|
|
48609
|
+
component_count: number | null;
|
|
48610
|
+
manufacture_product_id: string | null;
|
|
48611
|
+
possible_stock: number | null;
|
|
48612
|
+
};
|
|
48613
|
+
Relationships: [];
|
|
48614
|
+
};
|
|
48615
|
+
product_group_stock_view: {
|
|
48616
|
+
Row: {
|
|
48617
|
+
item_count: number | null;
|
|
48618
|
+
product_group_id: string | null;
|
|
48619
|
+
total_stock: number | null;
|
|
48620
|
+
};
|
|
48621
|
+
Relationships: [{
|
|
48622
|
+
foreignKeyName: "product_group_items_product_group_id_fkey";
|
|
48623
|
+
columns: ["product_group_id"];
|
|
48624
|
+
isOneToOne: false;
|
|
48625
|
+
referencedRelation: "product_groups";
|
|
48626
|
+
referencedColumns: ["id"];
|
|
48627
|
+
}];
|
|
48628
|
+
};
|
|
48629
|
+
trade_item_stock_view: {
|
|
48630
|
+
Row: {
|
|
48631
|
+
stock: number | null;
|
|
48632
|
+
trade_item_id: string | null;
|
|
48633
|
+
};
|
|
48634
|
+
Relationships: [];
|
|
48635
|
+
};
|
|
45569
48636
|
v_external_customers_exact: {
|
|
45570
48637
|
Row: {
|
|
45571
48638
|
account_number: string | null;
|
|
@@ -45821,6 +48888,20 @@ export declare const upsertSupplyLine: import("@tanstack/start-client-core").Opt
|
|
|
45821
48888
|
};
|
|
45822
48889
|
Returns: number;
|
|
45823
48890
|
};
|
|
48891
|
+
assign_cart_numbers: {
|
|
48892
|
+
Args: {
|
|
48893
|
+
p_carts: import("../integrations/supabase/types").Json;
|
|
48894
|
+
};
|
|
48895
|
+
Returns: {
|
|
48896
|
+
cart_index: number;
|
|
48897
|
+
cart_number: string;
|
|
48898
|
+
day_seq: number;
|
|
48899
|
+
order_id: string;
|
|
48900
|
+
order_source: string;
|
|
48901
|
+
pick_date: string;
|
|
48902
|
+
status: string;
|
|
48903
|
+
}[];
|
|
48904
|
+
};
|
|
45824
48905
|
assign_floriday_order_numbers: {
|
|
45825
48906
|
Args: {
|
|
45826
48907
|
p_ids: string[];
|
|
@@ -45840,10 +48921,37 @@ export declare const upsertSupplyLine: import("@tanstack/start-client-core").Opt
|
|
|
45840
48921
|
Args: never;
|
|
45841
48922
|
Returns: number;
|
|
45842
48923
|
};
|
|
48924
|
+
control_get_todays_carts: {
|
|
48925
|
+
Args: never;
|
|
48926
|
+
Returns: {
|
|
48927
|
+
cart_index: number;
|
|
48928
|
+
cart_number: string;
|
|
48929
|
+
cart_number_id: string;
|
|
48930
|
+
order_id: string;
|
|
48931
|
+
order_source: string;
|
|
48932
|
+
pick_date: string;
|
|
48933
|
+
status: string;
|
|
48934
|
+
}[];
|
|
48935
|
+
};
|
|
48936
|
+
count_distinct_regulatory_products: {
|
|
48937
|
+
Args: never;
|
|
48938
|
+
Returns: number;
|
|
48939
|
+
};
|
|
45843
48940
|
current_monteur_id: {
|
|
45844
48941
|
Args: never;
|
|
45845
48942
|
Returns: string;
|
|
45846
48943
|
};
|
|
48944
|
+
dashboard_alert_counts: {
|
|
48945
|
+
Args: never;
|
|
48946
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
48947
|
+
};
|
|
48948
|
+
dashboard_alert_rows: {
|
|
48949
|
+
Args: {
|
|
48950
|
+
check_id: string;
|
|
48951
|
+
row_limit?: number;
|
|
48952
|
+
};
|
|
48953
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
48954
|
+
};
|
|
45847
48955
|
dashboard_list_public_schema: {
|
|
45848
48956
|
Args: never;
|
|
45849
48957
|
Returns: {
|
|
@@ -45924,6 +49032,13 @@ export declare const upsertSupplyLine: import("@tanstack/start-client-core").Opt
|
|
|
45924
49032
|
};
|
|
45925
49033
|
Returns: boolean;
|
|
45926
49034
|
};
|
|
49035
|
+
format_cart_number: {
|
|
49036
|
+
Args: {
|
|
49037
|
+
p_pick_date: string;
|
|
49038
|
+
p_seq: number;
|
|
49039
|
+
};
|
|
49040
|
+
Returns: string;
|
|
49041
|
+
};
|
|
45927
49042
|
get_active_floriday_connection_public: {
|
|
45928
49043
|
Args: never;
|
|
45929
49044
|
Returns: {
|
|
@@ -46128,6 +49243,15 @@ export declare const upsertSupplyLine: import("@tanstack/start-client-core").Opt
|
|
|
46128
49243
|
};
|
|
46129
49244
|
Returns: undefined;
|
|
46130
49245
|
};
|
|
49246
|
+
pickstation_set_cart_status: {
|
|
49247
|
+
Args: {
|
|
49248
|
+
p_cart_index: number;
|
|
49249
|
+
p_order_id: string;
|
|
49250
|
+
p_order_source: string;
|
|
49251
|
+
p_status: string;
|
|
49252
|
+
};
|
|
49253
|
+
Returns: undefined;
|
|
49254
|
+
};
|
|
46131
49255
|
refresh_floricode_derived_code_lists: {
|
|
46132
49256
|
Args: never;
|
|
46133
49257
|
Returns: {
|
|
@@ -46136,6 +49260,12 @@ export declare const upsertSupplyLine: import("@tanstack/start-client-core").Opt
|
|
|
46136
49260
|
row_count: number;
|
|
46137
49261
|
}[];
|
|
46138
49262
|
};
|
|
49263
|
+
refresh_floricode_derived_for_product: {
|
|
49264
|
+
Args: {
|
|
49265
|
+
p_product_code: string;
|
|
49266
|
+
};
|
|
49267
|
+
Returns: number;
|
|
49268
|
+
};
|
|
46139
49269
|
reset_floriday_sync_cursor: {
|
|
46140
49270
|
Args: {
|
|
46141
49271
|
p_connection_id: string;
|