@flowselections/floriday-afhandeling-module 1.0.10 → 1.0.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-lib/components/afhandeling/ControleLijstPrint.d.ts +7 -0
- package/dist-lib/components/afhandeling/ControleLijstPrint.d.ts.map +1 -0
- package/dist-lib/components/afhandeling/ControleLijstPrint.js +67 -0
- package/dist-lib/components/afhandeling/ControlePage.d.ts +2 -0
- package/dist-lib/components/afhandeling/ControlePage.d.ts.map +1 -0
- package/dist-lib/components/afhandeling/ControlePage.js +456 -0
- package/dist-lib/components/afhandeling/DagDetailDialog.d.ts.map +1 -1
- package/dist-lib/components/afhandeling/DagDetailDialog.js +9 -5
- package/dist-lib/components/afhandeling/VervoerderForm.d.ts.map +1 -1
- package/dist-lib/components/afhandeling/VervoerderForm.js +10 -1
- package/dist-lib/components/afhandeling/VervoerdersPage.d.ts.map +1 -1
- package/dist-lib/components/afhandeling/VervoerdersPage.js +3 -2
- package/dist-lib/components/afhandeling/WeekAgendaView.d.ts.map +1 -1
- package/dist-lib/components/afhandeling/WeekAgendaView.js +15 -5
- package/dist-lib/components/afhandeling/WeekdayPicker.d.ts +12 -0
- package/dist-lib/components/afhandeling/WeekdayPicker.d.ts.map +1 -0
- package/dist-lib/components/afhandeling/WeekdayPicker.js +30 -0
- package/dist-lib/components/pickstation/PakbonTemplate.d.ts +1 -0
- package/dist-lib/components/pickstation/PakbonTemplate.d.ts.map +1 -1
- package/dist-lib/components/pickstation/PakbonTemplate.js +31 -8
- package/dist-lib/components/settings/AfhandelingSettingsCard.d.ts.map +1 -1
- package/dist-lib/components/settings/AfhandelingSettingsCard.js +9 -2
- package/dist-lib/components/ui/responsive-dialog.d.ts +20 -0
- package/dist-lib/components/ui/responsive-dialog.d.ts.map +1 -0
- package/dist-lib/components/ui/responsive-dialog.js +44 -0
- package/dist-lib/hooks/useOrderPlanning.d.ts.map +1 -1
- package/dist-lib/hooks/useOrderPlanning.js +17 -6
- package/dist-lib/index.d.ts +1 -0
- package/dist-lib/index.d.ts.map +1 -1
- package/dist-lib/index.js +4 -2
- package/dist-lib/integrations/supabase/auth-middleware.d.ts +629 -3
- package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/client.d.ts +629 -3
- package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/client.server.d.ts +629 -3
- package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/types.d.ts +639 -3
- package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
- package/dist-lib/lib/afhandelingSettings.functions.d.ts +1318 -62
- package/dist-lib/lib/afhandelingSettings.functions.d.ts.map +1 -1
- package/dist-lib/lib/afhandelingSettings.functions.js +16 -1
- package/dist-lib/lib/carrierMatch.server.d.ts +27 -0
- package/dist-lib/lib/carrierMatch.server.d.ts.map +1 -0
- package/dist-lib/lib/carrierMatch.server.js +75 -0
- package/dist-lib/lib/carriers.functions.d.ts +3151 -15
- package/dist-lib/lib/carriers.functions.d.ts.map +1 -1
- package/dist-lib/lib/carriers.functions.js +17 -2
- package/dist-lib/lib/cartAssignments.functions.d.ts +3145 -15
- package/dist-lib/lib/cartAssignments.functions.d.ts.map +1 -1
- package/dist-lib/lib/cartControl.functions.d.ts +99259 -0
- package/dist-lib/lib/cartControl.functions.d.ts.map +1 -0
- package/dist-lib/lib/cartControl.functions.js +489 -0
- package/dist-lib/lib/cartRescheduling.d.ts +30 -0
- package/dist-lib/lib/cartRescheduling.d.ts.map +1 -0
- package/dist-lib/lib/cartRescheduling.js +71 -0
- package/dist-lib/lib/floriday.functions.d.ts +629 -3
- package/dist-lib/lib/floriday.functions.d.ts.map +1 -1
- package/dist-lib/lib/pickstationI18n.d.ts +8 -0
- package/dist-lib/lib/pickstationI18n.d.ts.map +1 -1
- package/dist-lib/lib/pickstationI18n.js +48 -0
- package/dist-lib/lib/pickstationOrders.server.d.ts +1 -0
- package/dist-lib/lib/pickstationOrders.server.d.ts.map +1 -1
- package/dist-lib/lib/pickstationOrders.server.js +94 -7
- package/dist-lib/lib/pickstationTypes.d.ts +12 -0
- package/dist-lib/lib/pickstationTypes.d.ts.map +1 -1
- package/dist-lib/lib/planning.d.ts +23 -0
- package/dist-lib/lib/planning.d.ts.map +1 -1
- package/dist-lib/lib/planning.js +66 -6
- package/package.json +1 -1
|
@@ -8,6 +8,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
8
8
|
max_workdays_earlier_pick: number;
|
|
9
9
|
pick_days_before_transport: number;
|
|
10
10
|
pick_distribution_enabled: boolean;
|
|
11
|
+
pick_weekdays: number[];
|
|
11
12
|
signup_mail_enabled: boolean;
|
|
12
13
|
signup_mail_lead_minutes: number;
|
|
13
14
|
signup_mail_purpose: string;
|
|
@@ -21,6 +22,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
21
22
|
max_workdays_earlier_pick?: number;
|
|
22
23
|
pick_days_before_transport?: number;
|
|
23
24
|
pick_distribution_enabled?: boolean;
|
|
25
|
+
pick_weekdays?: number[];
|
|
24
26
|
signup_mail_enabled?: boolean;
|
|
25
27
|
signup_mail_lead_minutes?: number;
|
|
26
28
|
signup_mail_purpose?: string;
|
|
@@ -34,6 +36,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
34
36
|
max_workdays_earlier_pick?: number;
|
|
35
37
|
pick_days_before_transport?: number;
|
|
36
38
|
pick_distribution_enabled?: boolean;
|
|
39
|
+
pick_weekdays?: number[];
|
|
37
40
|
signup_mail_enabled?: boolean;
|
|
38
41
|
signup_mail_lead_minutes?: number;
|
|
39
42
|
signup_mail_purpose?: string;
|
|
@@ -445,6 +448,48 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
445
448
|
referencedColumns: ["id"];
|
|
446
449
|
}];
|
|
447
450
|
};
|
|
451
|
+
carrier_signup_dispatch_runs: {
|
|
452
|
+
Row: {
|
|
453
|
+
detail: import("./types").Json | null;
|
|
454
|
+
error: string | null;
|
|
455
|
+
finished_at: string | null;
|
|
456
|
+
groups: number;
|
|
457
|
+
id: string;
|
|
458
|
+
ok: boolean;
|
|
459
|
+
reason: string | null;
|
|
460
|
+
sent: number;
|
|
461
|
+
skipped: import("./types").Json;
|
|
462
|
+
started_at: string;
|
|
463
|
+
unassigned: import("./types").Json;
|
|
464
|
+
};
|
|
465
|
+
Insert: {
|
|
466
|
+
detail?: import("./types").Json | null;
|
|
467
|
+
error?: string | null;
|
|
468
|
+
finished_at?: string | null;
|
|
469
|
+
groups?: number;
|
|
470
|
+
id?: string;
|
|
471
|
+
ok?: boolean;
|
|
472
|
+
reason?: string | null;
|
|
473
|
+
sent?: number;
|
|
474
|
+
skipped?: import("./types").Json;
|
|
475
|
+
started_at?: string;
|
|
476
|
+
unassigned?: import("./types").Json;
|
|
477
|
+
};
|
|
478
|
+
Update: {
|
|
479
|
+
detail?: import("./types").Json | null;
|
|
480
|
+
error?: string | null;
|
|
481
|
+
finished_at?: string | null;
|
|
482
|
+
groups?: number;
|
|
483
|
+
id?: string;
|
|
484
|
+
ok?: boolean;
|
|
485
|
+
reason?: string | null;
|
|
486
|
+
sent?: number;
|
|
487
|
+
skipped?: import("./types").Json;
|
|
488
|
+
started_at?: string;
|
|
489
|
+
unassigned?: import("./types").Json;
|
|
490
|
+
};
|
|
491
|
+
Relationships: [];
|
|
492
|
+
};
|
|
448
493
|
carrier_signup_dispatches: {
|
|
449
494
|
Row: {
|
|
450
495
|
carrier_id: string;
|
|
@@ -496,6 +541,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
496
541
|
contact_person: string | null;
|
|
497
542
|
created_at: string;
|
|
498
543
|
delivery_days: number | null;
|
|
544
|
+
delivery_weekdays: number[];
|
|
499
545
|
email: string | null;
|
|
500
546
|
id: string;
|
|
501
547
|
is_default: boolean;
|
|
@@ -503,6 +549,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
503
549
|
notes: string | null;
|
|
504
550
|
phone: string | null;
|
|
505
551
|
pickup_moments: import("./types").Json;
|
|
552
|
+
pickup_weekdays: number[];
|
|
506
553
|
service_cities: string[];
|
|
507
554
|
service_countries: string[];
|
|
508
555
|
service_provinces: string[];
|
|
@@ -518,6 +565,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
518
565
|
contact_person?: string | null;
|
|
519
566
|
created_at?: string;
|
|
520
567
|
delivery_days?: number | null;
|
|
568
|
+
delivery_weekdays?: number[];
|
|
521
569
|
email?: string | null;
|
|
522
570
|
id?: string;
|
|
523
571
|
is_default?: boolean;
|
|
@@ -525,6 +573,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
525
573
|
notes?: string | null;
|
|
526
574
|
phone?: string | null;
|
|
527
575
|
pickup_moments?: import("./types").Json;
|
|
576
|
+
pickup_weekdays?: number[];
|
|
528
577
|
service_cities?: string[];
|
|
529
578
|
service_countries?: string[];
|
|
530
579
|
service_provinces?: string[];
|
|
@@ -540,6 +589,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
540
589
|
contact_person?: string | null;
|
|
541
590
|
created_at?: string;
|
|
542
591
|
delivery_days?: number | null;
|
|
592
|
+
delivery_weekdays?: number[];
|
|
543
593
|
email?: string | null;
|
|
544
594
|
id?: string;
|
|
545
595
|
is_default?: boolean;
|
|
@@ -547,6 +597,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
547
597
|
notes?: string | null;
|
|
548
598
|
phone?: string | null;
|
|
549
599
|
pickup_moments?: import("./types").Json;
|
|
600
|
+
pickup_weekdays?: number[];
|
|
550
601
|
service_cities?: string[];
|
|
551
602
|
service_countries?: string[];
|
|
552
603
|
service_provinces?: string[];
|
|
@@ -559,6 +610,177 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
559
610
|
};
|
|
560
611
|
Relationships: [];
|
|
561
612
|
};
|
|
613
|
+
cart_control_draft: {
|
|
614
|
+
Row: {
|
|
615
|
+
cart_states: import("./types").Json;
|
|
616
|
+
checked_keys: import("./types").Json;
|
|
617
|
+
draft_date: string;
|
|
618
|
+
form_state: import("./types").Json;
|
|
619
|
+
notes: string;
|
|
620
|
+
updated_at: string;
|
|
621
|
+
user_id: string;
|
|
622
|
+
};
|
|
623
|
+
Insert: {
|
|
624
|
+
cart_states?: import("./types").Json;
|
|
625
|
+
checked_keys?: import("./types").Json;
|
|
626
|
+
draft_date: string;
|
|
627
|
+
form_state?: import("./types").Json;
|
|
628
|
+
notes?: string;
|
|
629
|
+
updated_at?: string;
|
|
630
|
+
user_id: string;
|
|
631
|
+
};
|
|
632
|
+
Update: {
|
|
633
|
+
cart_states?: import("./types").Json;
|
|
634
|
+
checked_keys?: import("./types").Json;
|
|
635
|
+
draft_date?: string;
|
|
636
|
+
form_state?: import("./types").Json;
|
|
637
|
+
notes?: string;
|
|
638
|
+
updated_at?: string;
|
|
639
|
+
user_id?: string;
|
|
640
|
+
};
|
|
641
|
+
Relationships: [];
|
|
642
|
+
};
|
|
643
|
+
cart_control_items: {
|
|
644
|
+
Row: {
|
|
645
|
+
action: string;
|
|
646
|
+
block_reason: string | null;
|
|
647
|
+
carrier_name: string | null;
|
|
648
|
+
cart_index: number;
|
|
649
|
+
cart_number_id: string | null;
|
|
650
|
+
cart_number_label: string | null;
|
|
651
|
+
created_at: string;
|
|
652
|
+
customer_name: string | null;
|
|
653
|
+
delivery_date: string | null;
|
|
654
|
+
id: string;
|
|
655
|
+
new_pick_date: string | null;
|
|
656
|
+
order_id: string;
|
|
657
|
+
order_number: string | null;
|
|
658
|
+
order_source: string;
|
|
659
|
+
pickup_date: string | null;
|
|
660
|
+
session_id: string;
|
|
661
|
+
};
|
|
662
|
+
Insert: {
|
|
663
|
+
action: string;
|
|
664
|
+
block_reason?: string | null;
|
|
665
|
+
carrier_name?: string | null;
|
|
666
|
+
cart_index: number;
|
|
667
|
+
cart_number_id?: string | null;
|
|
668
|
+
cart_number_label?: string | null;
|
|
669
|
+
created_at?: string;
|
|
670
|
+
customer_name?: string | null;
|
|
671
|
+
delivery_date?: string | null;
|
|
672
|
+
id?: string;
|
|
673
|
+
new_pick_date?: string | null;
|
|
674
|
+
order_id: string;
|
|
675
|
+
order_number?: string | null;
|
|
676
|
+
order_source: string;
|
|
677
|
+
pickup_date?: string | null;
|
|
678
|
+
session_id: string;
|
|
679
|
+
};
|
|
680
|
+
Update: {
|
|
681
|
+
action?: string;
|
|
682
|
+
block_reason?: string | null;
|
|
683
|
+
carrier_name?: string | null;
|
|
684
|
+
cart_index?: number;
|
|
685
|
+
cart_number_id?: string | null;
|
|
686
|
+
cart_number_label?: string | null;
|
|
687
|
+
created_at?: string;
|
|
688
|
+
customer_name?: string | null;
|
|
689
|
+
delivery_date?: string | null;
|
|
690
|
+
id?: string;
|
|
691
|
+
new_pick_date?: string | null;
|
|
692
|
+
order_id?: string;
|
|
693
|
+
order_number?: string | null;
|
|
694
|
+
order_source?: string;
|
|
695
|
+
pickup_date?: string | null;
|
|
696
|
+
session_id?: string;
|
|
697
|
+
};
|
|
698
|
+
Relationships: [{
|
|
699
|
+
foreignKeyName: "cart_control_items_session_id_fkey";
|
|
700
|
+
columns: ["session_id"];
|
|
701
|
+
isOneToOne: false;
|
|
702
|
+
referencedRelation: "cart_control_sessions";
|
|
703
|
+
referencedColumns: ["id"];
|
|
704
|
+
}];
|
|
705
|
+
};
|
|
706
|
+
cart_control_sessions: {
|
|
707
|
+
Row: {
|
|
708
|
+
blocked_count: number;
|
|
709
|
+
checked_count: number;
|
|
710
|
+
control_date: string;
|
|
711
|
+
created_at: string;
|
|
712
|
+
id: string;
|
|
713
|
+
notes: string | null;
|
|
714
|
+
performed_at: string;
|
|
715
|
+
rescheduled_count: number;
|
|
716
|
+
total_carts: number;
|
|
717
|
+
updated_at: string;
|
|
718
|
+
user_id: string;
|
|
719
|
+
};
|
|
720
|
+
Insert: {
|
|
721
|
+
blocked_count?: number;
|
|
722
|
+
checked_count?: number;
|
|
723
|
+
control_date?: string;
|
|
724
|
+
created_at?: string;
|
|
725
|
+
id?: string;
|
|
726
|
+
notes?: string | null;
|
|
727
|
+
performed_at?: string;
|
|
728
|
+
rescheduled_count?: number;
|
|
729
|
+
total_carts?: number;
|
|
730
|
+
updated_at?: string;
|
|
731
|
+
user_id: string;
|
|
732
|
+
};
|
|
733
|
+
Update: {
|
|
734
|
+
blocked_count?: number;
|
|
735
|
+
checked_count?: number;
|
|
736
|
+
control_date?: string;
|
|
737
|
+
created_at?: string;
|
|
738
|
+
id?: string;
|
|
739
|
+
notes?: string | null;
|
|
740
|
+
performed_at?: string;
|
|
741
|
+
rescheduled_count?: number;
|
|
742
|
+
total_carts?: number;
|
|
743
|
+
updated_at?: string;
|
|
744
|
+
user_id?: string;
|
|
745
|
+
};
|
|
746
|
+
Relationships: [];
|
|
747
|
+
};
|
|
748
|
+
cart_numbers: {
|
|
749
|
+
Row: {
|
|
750
|
+
assigned_at: string;
|
|
751
|
+
cart_index: number;
|
|
752
|
+
cart_number: string;
|
|
753
|
+
day_seq: number;
|
|
754
|
+
id: string;
|
|
755
|
+
order_id: string;
|
|
756
|
+
order_source: string;
|
|
757
|
+
pick_date: string;
|
|
758
|
+
status: string;
|
|
759
|
+
};
|
|
760
|
+
Insert: {
|
|
761
|
+
assigned_at?: string;
|
|
762
|
+
cart_index: number;
|
|
763
|
+
cart_number: string;
|
|
764
|
+
day_seq: number;
|
|
765
|
+
id?: string;
|
|
766
|
+
order_id: string;
|
|
767
|
+
order_source: string;
|
|
768
|
+
pick_date: string;
|
|
769
|
+
status?: string;
|
|
770
|
+
};
|
|
771
|
+
Update: {
|
|
772
|
+
assigned_at?: string;
|
|
773
|
+
cart_index?: number;
|
|
774
|
+
cart_number?: string;
|
|
775
|
+
day_seq?: number;
|
|
776
|
+
id?: string;
|
|
777
|
+
order_id?: string;
|
|
778
|
+
order_source?: string;
|
|
779
|
+
pick_date?: string;
|
|
780
|
+
status?: string;
|
|
781
|
+
};
|
|
782
|
+
Relationships: [];
|
|
783
|
+
};
|
|
562
784
|
cart_pick_overrides: {
|
|
563
785
|
Row: {
|
|
564
786
|
cart_index: number;
|
|
@@ -1231,6 +1453,54 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
1231
1453
|
referencedColumns: ["id"];
|
|
1232
1454
|
}];
|
|
1233
1455
|
};
|
|
1456
|
+
dashboard_critical_alerts: {
|
|
1457
|
+
Row: {
|
|
1458
|
+
alert_key: string;
|
|
1459
|
+
alert_type: string;
|
|
1460
|
+
created_at: string;
|
|
1461
|
+
description: string | null;
|
|
1462
|
+
id: string;
|
|
1463
|
+
metadata: import("./types").Json | null;
|
|
1464
|
+
priority: string;
|
|
1465
|
+
raised_at: string;
|
|
1466
|
+
related_cart_ids: string[] | null;
|
|
1467
|
+
resolved_at: string | null;
|
|
1468
|
+
title: string;
|
|
1469
|
+
updated_at: string;
|
|
1470
|
+
user_id: string;
|
|
1471
|
+
};
|
|
1472
|
+
Insert: {
|
|
1473
|
+
alert_key: string;
|
|
1474
|
+
alert_type: string;
|
|
1475
|
+
created_at?: string;
|
|
1476
|
+
description?: string | null;
|
|
1477
|
+
id?: string;
|
|
1478
|
+
metadata?: import("./types").Json | null;
|
|
1479
|
+
priority?: string;
|
|
1480
|
+
raised_at?: string;
|
|
1481
|
+
related_cart_ids?: string[] | null;
|
|
1482
|
+
resolved_at?: string | null;
|
|
1483
|
+
title: string;
|
|
1484
|
+
updated_at?: string;
|
|
1485
|
+
user_id: string;
|
|
1486
|
+
};
|
|
1487
|
+
Update: {
|
|
1488
|
+
alert_key?: string;
|
|
1489
|
+
alert_type?: string;
|
|
1490
|
+
created_at?: string;
|
|
1491
|
+
description?: string | null;
|
|
1492
|
+
id?: string;
|
|
1493
|
+
metadata?: import("./types").Json | null;
|
|
1494
|
+
priority?: string;
|
|
1495
|
+
raised_at?: string;
|
|
1496
|
+
related_cart_ids?: string[] | null;
|
|
1497
|
+
resolved_at?: string | null;
|
|
1498
|
+
title?: string;
|
|
1499
|
+
updated_at?: string;
|
|
1500
|
+
user_id?: string;
|
|
1501
|
+
};
|
|
1502
|
+
Relationships: [];
|
|
1503
|
+
};
|
|
1234
1504
|
dashboard_daily_reports: {
|
|
1235
1505
|
Row: {
|
|
1236
1506
|
created_at: string;
|
|
@@ -2733,6 +3003,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
2733
3003
|
};
|
|
2734
3004
|
floricode_sync_state: {
|
|
2735
3005
|
Row: {
|
|
3006
|
+
cursor_skip: number;
|
|
2736
3007
|
error_message: string | null;
|
|
2737
3008
|
last_change_date_time: string | null;
|
|
2738
3009
|
last_sequence_number: number;
|
|
@@ -2742,6 +3013,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
2742
3013
|
updated_at: string;
|
|
2743
3014
|
};
|
|
2744
3015
|
Insert: {
|
|
3016
|
+
cursor_skip?: number;
|
|
2745
3017
|
error_message?: string | null;
|
|
2746
3018
|
last_change_date_time?: string | null;
|
|
2747
3019
|
last_sequence_number?: number;
|
|
@@ -2751,6 +3023,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
2751
3023
|
updated_at?: string;
|
|
2752
3024
|
};
|
|
2753
3025
|
Update: {
|
|
3026
|
+
cursor_skip?: number;
|
|
2754
3027
|
error_message?: string | null;
|
|
2755
3028
|
last_change_date_time?: string | null;
|
|
2756
3029
|
last_sequence_number?: number;
|
|
@@ -5098,6 +5371,93 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
5098
5371
|
};
|
|
5099
5372
|
Relationships: [];
|
|
5100
5373
|
};
|
|
5374
|
+
manufacture_product_components: {
|
|
5375
|
+
Row: {
|
|
5376
|
+
component_type: string;
|
|
5377
|
+
created_at: string;
|
|
5378
|
+
id: string;
|
|
5379
|
+
manufacture_product_id: string;
|
|
5380
|
+
product_group_id: string | null;
|
|
5381
|
+
quantity: number;
|
|
5382
|
+
trade_item_id: string | null;
|
|
5383
|
+
unit: string;
|
|
5384
|
+
};
|
|
5385
|
+
Insert: {
|
|
5386
|
+
component_type: string;
|
|
5387
|
+
created_at?: string;
|
|
5388
|
+
id?: string;
|
|
5389
|
+
manufacture_product_id: string;
|
|
5390
|
+
product_group_id?: string | null;
|
|
5391
|
+
quantity?: number;
|
|
5392
|
+
trade_item_id?: string | null;
|
|
5393
|
+
unit?: string;
|
|
5394
|
+
};
|
|
5395
|
+
Update: {
|
|
5396
|
+
component_type?: string;
|
|
5397
|
+
created_at?: string;
|
|
5398
|
+
id?: string;
|
|
5399
|
+
manufacture_product_id?: string;
|
|
5400
|
+
product_group_id?: string | null;
|
|
5401
|
+
quantity?: number;
|
|
5402
|
+
trade_item_id?: string | null;
|
|
5403
|
+
unit?: string;
|
|
5404
|
+
};
|
|
5405
|
+
Relationships: [{
|
|
5406
|
+
foreignKeyName: "manufacture_product_components_manufacture_product_id_fkey";
|
|
5407
|
+
columns: ["manufacture_product_id"];
|
|
5408
|
+
isOneToOne: false;
|
|
5409
|
+
referencedRelation: "manufacture_product_possible_stock_view";
|
|
5410
|
+
referencedColumns: ["manufacture_product_id"];
|
|
5411
|
+
}, {
|
|
5412
|
+
foreignKeyName: "manufacture_product_components_manufacture_product_id_fkey";
|
|
5413
|
+
columns: ["manufacture_product_id"];
|
|
5414
|
+
isOneToOne: false;
|
|
5415
|
+
referencedRelation: "manufacture_products";
|
|
5416
|
+
referencedColumns: ["id"];
|
|
5417
|
+
}, {
|
|
5418
|
+
foreignKeyName: "manufacture_product_components_product_group_id_fkey";
|
|
5419
|
+
columns: ["product_group_id"];
|
|
5420
|
+
isOneToOne: false;
|
|
5421
|
+
referencedRelation: "product_groups";
|
|
5422
|
+
referencedColumns: ["id"];
|
|
5423
|
+
}];
|
|
5424
|
+
};
|
|
5425
|
+
manufacture_products: {
|
|
5426
|
+
Row: {
|
|
5427
|
+
created_at: string;
|
|
5428
|
+
description: string | null;
|
|
5429
|
+
id: string;
|
|
5430
|
+
is_active: boolean;
|
|
5431
|
+
name: string;
|
|
5432
|
+
produced_stock: number;
|
|
5433
|
+
product_code: string;
|
|
5434
|
+
tenant_id: string;
|
|
5435
|
+
updated_at: string;
|
|
5436
|
+
};
|
|
5437
|
+
Insert: {
|
|
5438
|
+
created_at?: string;
|
|
5439
|
+
description?: string | null;
|
|
5440
|
+
id?: string;
|
|
5441
|
+
is_active?: boolean;
|
|
5442
|
+
name: string;
|
|
5443
|
+
produced_stock?: number;
|
|
5444
|
+
product_code: string;
|
|
5445
|
+
tenant_id: string;
|
|
5446
|
+
updated_at?: string;
|
|
5447
|
+
};
|
|
5448
|
+
Update: {
|
|
5449
|
+
created_at?: string;
|
|
5450
|
+
description?: string | null;
|
|
5451
|
+
id?: string;
|
|
5452
|
+
is_active?: boolean;
|
|
5453
|
+
name?: string;
|
|
5454
|
+
produced_stock?: number;
|
|
5455
|
+
product_code?: string;
|
|
5456
|
+
tenant_id?: string;
|
|
5457
|
+
updated_at?: string;
|
|
5458
|
+
};
|
|
5459
|
+
Relationships: [];
|
|
5460
|
+
};
|
|
5101
5461
|
monteurs: {
|
|
5102
5462
|
Row: {
|
|
5103
5463
|
avatar_url: string | null;
|
|
@@ -6058,6 +6418,66 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
6058
6418
|
};
|
|
6059
6419
|
Relationships: [];
|
|
6060
6420
|
};
|
|
6421
|
+
product_group_items: {
|
|
6422
|
+
Row: {
|
|
6423
|
+
created_at: string;
|
|
6424
|
+
id: string;
|
|
6425
|
+
product_group_id: string;
|
|
6426
|
+
quantity: number;
|
|
6427
|
+
trade_item_id: string;
|
|
6428
|
+
};
|
|
6429
|
+
Insert: {
|
|
6430
|
+
created_at?: string;
|
|
6431
|
+
id?: string;
|
|
6432
|
+
product_group_id: string;
|
|
6433
|
+
quantity?: number;
|
|
6434
|
+
trade_item_id: string;
|
|
6435
|
+
};
|
|
6436
|
+
Update: {
|
|
6437
|
+
created_at?: string;
|
|
6438
|
+
id?: string;
|
|
6439
|
+
product_group_id?: string;
|
|
6440
|
+
quantity?: number;
|
|
6441
|
+
trade_item_id?: string;
|
|
6442
|
+
};
|
|
6443
|
+
Relationships: [{
|
|
6444
|
+
foreignKeyName: "product_group_items_product_group_id_fkey";
|
|
6445
|
+
columns: ["product_group_id"];
|
|
6446
|
+
isOneToOne: false;
|
|
6447
|
+
referencedRelation: "product_groups";
|
|
6448
|
+
referencedColumns: ["id"];
|
|
6449
|
+
}];
|
|
6450
|
+
};
|
|
6451
|
+
product_groups: {
|
|
6452
|
+
Row: {
|
|
6453
|
+
created_at: string;
|
|
6454
|
+
description: string | null;
|
|
6455
|
+
id: string;
|
|
6456
|
+
is_active: boolean;
|
|
6457
|
+
name: string;
|
|
6458
|
+
tenant_id: string;
|
|
6459
|
+
updated_at: string;
|
|
6460
|
+
};
|
|
6461
|
+
Insert: {
|
|
6462
|
+
created_at?: string;
|
|
6463
|
+
description?: string | null;
|
|
6464
|
+
id?: string;
|
|
6465
|
+
is_active?: boolean;
|
|
6466
|
+
name: string;
|
|
6467
|
+
tenant_id: string;
|
|
6468
|
+
updated_at?: string;
|
|
6469
|
+
};
|
|
6470
|
+
Update: {
|
|
6471
|
+
created_at?: string;
|
|
6472
|
+
description?: string | null;
|
|
6473
|
+
id?: string;
|
|
6474
|
+
is_active?: boolean;
|
|
6475
|
+
name?: string;
|
|
6476
|
+
tenant_id?: string;
|
|
6477
|
+
updated_at?: string;
|
|
6478
|
+
};
|
|
6479
|
+
Relationships: [];
|
|
6480
|
+
};
|
|
6061
6481
|
products: {
|
|
6062
6482
|
Row: {
|
|
6063
6483
|
barcode: string | null;
|
|
@@ -7197,7 +7617,13 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
7197
7617
|
connection_id: string | null;
|
|
7198
7618
|
created_at: string;
|
|
7199
7619
|
data: import("./types").Json;
|
|
7620
|
+
floriday_id: string | null;
|
|
7621
|
+
floriday_link_error: string | null;
|
|
7622
|
+
floriday_link_status: string;
|
|
7200
7623
|
id: string;
|
|
7624
|
+
last_floriday_sync_at: string | null;
|
|
7625
|
+
missing_required_fields: string[];
|
|
7626
|
+
source: string;
|
|
7201
7627
|
updated_at: string;
|
|
7202
7628
|
user_id: string;
|
|
7203
7629
|
};
|
|
@@ -7205,7 +7631,13 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
7205
7631
|
connection_id?: string | null;
|
|
7206
7632
|
created_at?: string;
|
|
7207
7633
|
data?: import("./types").Json;
|
|
7634
|
+
floriday_id?: string | null;
|
|
7635
|
+
floriday_link_error?: string | null;
|
|
7636
|
+
floriday_link_status?: string;
|
|
7208
7637
|
id?: string;
|
|
7638
|
+
last_floriday_sync_at?: string | null;
|
|
7639
|
+
missing_required_fields?: string[];
|
|
7640
|
+
source?: string;
|
|
7209
7641
|
updated_at?: string;
|
|
7210
7642
|
user_id: string;
|
|
7211
7643
|
};
|
|
@@ -7213,7 +7645,55 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
7213
7645
|
connection_id?: string | null;
|
|
7214
7646
|
created_at?: string;
|
|
7215
7647
|
data?: import("./types").Json;
|
|
7648
|
+
floriday_id?: string | null;
|
|
7649
|
+
floriday_link_error?: string | null;
|
|
7650
|
+
floriday_link_status?: string;
|
|
7216
7651
|
id?: string;
|
|
7652
|
+
last_floriday_sync_at?: string | null;
|
|
7653
|
+
missing_required_fields?: string[];
|
|
7654
|
+
source?: string;
|
|
7655
|
+
updated_at?: string;
|
|
7656
|
+
user_id?: string;
|
|
7657
|
+
};
|
|
7658
|
+
Relationships: [];
|
|
7659
|
+
};
|
|
7660
|
+
trade_item_stock: {
|
|
7661
|
+
Row: {
|
|
7662
|
+
connection_id: string;
|
|
7663
|
+
created_at: string;
|
|
7664
|
+
id: string;
|
|
7665
|
+
incoming_stock: number;
|
|
7666
|
+
minimum_stock: number;
|
|
7667
|
+
notes: string | null;
|
|
7668
|
+
physical_stock: number;
|
|
7669
|
+
reserved_stock: number;
|
|
7670
|
+
trade_item_key: string;
|
|
7671
|
+
updated_at: string;
|
|
7672
|
+
user_id: string;
|
|
7673
|
+
};
|
|
7674
|
+
Insert: {
|
|
7675
|
+
connection_id: string;
|
|
7676
|
+
created_at?: string;
|
|
7677
|
+
id?: string;
|
|
7678
|
+
incoming_stock?: number;
|
|
7679
|
+
minimum_stock?: number;
|
|
7680
|
+
notes?: string | null;
|
|
7681
|
+
physical_stock?: number;
|
|
7682
|
+
reserved_stock?: number;
|
|
7683
|
+
trade_item_key: string;
|
|
7684
|
+
updated_at?: string;
|
|
7685
|
+
user_id: string;
|
|
7686
|
+
};
|
|
7687
|
+
Update: {
|
|
7688
|
+
connection_id?: string;
|
|
7689
|
+
created_at?: string;
|
|
7690
|
+
id?: string;
|
|
7691
|
+
incoming_stock?: number;
|
|
7692
|
+
minimum_stock?: number;
|
|
7693
|
+
notes?: string | null;
|
|
7694
|
+
physical_stock?: number;
|
|
7695
|
+
reserved_stock?: number;
|
|
7696
|
+
trade_item_key?: string;
|
|
7217
7697
|
updated_at?: string;
|
|
7218
7698
|
user_id?: string;
|
|
7219
7699
|
};
|
|
@@ -7563,6 +8043,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
7563
8043
|
};
|
|
7564
8044
|
twinfield_invoice_sync_logs: {
|
|
7565
8045
|
Row: {
|
|
8046
|
+
action_type: string | null;
|
|
7566
8047
|
created_at: string;
|
|
7567
8048
|
details: import("./types").Json | null;
|
|
7568
8049
|
duration_ms: number | null;
|
|
@@ -7575,6 +8056,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
7575
8056
|
user_id: string;
|
|
7576
8057
|
};
|
|
7577
8058
|
Insert: {
|
|
8059
|
+
action_type?: string | null;
|
|
7578
8060
|
created_at?: string;
|
|
7579
8061
|
details?: import("./types").Json | null;
|
|
7580
8062
|
duration_ms?: number | null;
|
|
@@ -7587,6 +8069,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
7587
8069
|
user_id: string;
|
|
7588
8070
|
};
|
|
7589
8071
|
Update: {
|
|
8072
|
+
action_type?: string | null;
|
|
7590
8073
|
created_at?: string;
|
|
7591
8074
|
details?: import("./types").Json | null;
|
|
7592
8075
|
duration_ms?: number | null;
|
|
@@ -7822,6 +8305,57 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
7822
8305
|
referencedColumns: ["id"];
|
|
7823
8306
|
}];
|
|
7824
8307
|
};
|
|
8308
|
+
twinfield_request_metrics: {
|
|
8309
|
+
Row: {
|
|
8310
|
+
bucket_hour: string;
|
|
8311
|
+
connection_id: string;
|
|
8312
|
+
error_count: number;
|
|
8313
|
+
rate_limited_count: number;
|
|
8314
|
+
request_count: number;
|
|
8315
|
+
updated_at: string;
|
|
8316
|
+
};
|
|
8317
|
+
Insert: {
|
|
8318
|
+
bucket_hour: string;
|
|
8319
|
+
connection_id: string;
|
|
8320
|
+
error_count?: number;
|
|
8321
|
+
rate_limited_count?: number;
|
|
8322
|
+
request_count?: number;
|
|
8323
|
+
updated_at?: string;
|
|
8324
|
+
};
|
|
8325
|
+
Update: {
|
|
8326
|
+
bucket_hour?: string;
|
|
8327
|
+
connection_id?: string;
|
|
8328
|
+
error_count?: number;
|
|
8329
|
+
rate_limited_count?: number;
|
|
8330
|
+
request_count?: number;
|
|
8331
|
+
updated_at?: string;
|
|
8332
|
+
};
|
|
8333
|
+
Relationships: [];
|
|
8334
|
+
};
|
|
8335
|
+
twinfield_session_cache: {
|
|
8336
|
+
Row: {
|
|
8337
|
+
cluster: string;
|
|
8338
|
+
created_at: string;
|
|
8339
|
+
expires_at: string;
|
|
8340
|
+
session_id: string;
|
|
8341
|
+
user_id: string;
|
|
8342
|
+
};
|
|
8343
|
+
Insert: {
|
|
8344
|
+
cluster: string;
|
|
8345
|
+
created_at?: string;
|
|
8346
|
+
expires_at: string;
|
|
8347
|
+
session_id: string;
|
|
8348
|
+
user_id: string;
|
|
8349
|
+
};
|
|
8350
|
+
Update: {
|
|
8351
|
+
cluster?: string;
|
|
8352
|
+
created_at?: string;
|
|
8353
|
+
expires_at?: string;
|
|
8354
|
+
session_id?: string;
|
|
8355
|
+
user_id?: string;
|
|
8356
|
+
};
|
|
8357
|
+
Relationships: [];
|
|
8358
|
+
};
|
|
7825
8359
|
twinfield_settings: {
|
|
7826
8360
|
Row: {
|
|
7827
8361
|
active_environment: string;
|
|
@@ -8403,6 +8937,35 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
8403
8937
|
};
|
|
8404
8938
|
Relationships: [];
|
|
8405
8939
|
};
|
|
8940
|
+
manufacture_product_possible_stock_view: {
|
|
8941
|
+
Row: {
|
|
8942
|
+
component_count: number | null;
|
|
8943
|
+
manufacture_product_id: string | null;
|
|
8944
|
+
possible_stock: number | null;
|
|
8945
|
+
};
|
|
8946
|
+
Relationships: [];
|
|
8947
|
+
};
|
|
8948
|
+
product_group_stock_view: {
|
|
8949
|
+
Row: {
|
|
8950
|
+
item_count: number | null;
|
|
8951
|
+
product_group_id: string | null;
|
|
8952
|
+
total_stock: number | null;
|
|
8953
|
+
};
|
|
8954
|
+
Relationships: [{
|
|
8955
|
+
foreignKeyName: "product_group_items_product_group_id_fkey";
|
|
8956
|
+
columns: ["product_group_id"];
|
|
8957
|
+
isOneToOne: false;
|
|
8958
|
+
referencedRelation: "product_groups";
|
|
8959
|
+
referencedColumns: ["id"];
|
|
8960
|
+
}];
|
|
8961
|
+
};
|
|
8962
|
+
trade_item_stock_view: {
|
|
8963
|
+
Row: {
|
|
8964
|
+
stock: number | null;
|
|
8965
|
+
trade_item_id: string | null;
|
|
8966
|
+
};
|
|
8967
|
+
Relationships: [];
|
|
8968
|
+
};
|
|
8406
8969
|
v_external_customers_exact: {
|
|
8407
8970
|
Row: {
|
|
8408
8971
|
account_number: string | null;
|
|
@@ -8658,6 +9221,20 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
8658
9221
|
};
|
|
8659
9222
|
Returns: number;
|
|
8660
9223
|
};
|
|
9224
|
+
assign_cart_numbers: {
|
|
9225
|
+
Args: {
|
|
9226
|
+
p_carts: import("./types").Json;
|
|
9227
|
+
};
|
|
9228
|
+
Returns: {
|
|
9229
|
+
cart_index: number;
|
|
9230
|
+
cart_number: string;
|
|
9231
|
+
day_seq: number;
|
|
9232
|
+
order_id: string;
|
|
9233
|
+
order_source: string;
|
|
9234
|
+
pick_date: string;
|
|
9235
|
+
status: string;
|
|
9236
|
+
}[];
|
|
9237
|
+
};
|
|
8661
9238
|
assign_floriday_order_numbers: {
|
|
8662
9239
|
Args: {
|
|
8663
9240
|
p_ids: string[];
|
|
@@ -8677,10 +9254,37 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
8677
9254
|
Args: never;
|
|
8678
9255
|
Returns: number;
|
|
8679
9256
|
};
|
|
9257
|
+
control_get_todays_carts: {
|
|
9258
|
+
Args: never;
|
|
9259
|
+
Returns: {
|
|
9260
|
+
cart_index: number;
|
|
9261
|
+
cart_number: string;
|
|
9262
|
+
cart_number_id: string;
|
|
9263
|
+
order_id: string;
|
|
9264
|
+
order_source: string;
|
|
9265
|
+
pick_date: string;
|
|
9266
|
+
status: string;
|
|
9267
|
+
}[];
|
|
9268
|
+
};
|
|
9269
|
+
count_distinct_regulatory_products: {
|
|
9270
|
+
Args: never;
|
|
9271
|
+
Returns: number;
|
|
9272
|
+
};
|
|
8680
9273
|
current_monteur_id: {
|
|
8681
9274
|
Args: never;
|
|
8682
9275
|
Returns: string;
|
|
8683
9276
|
};
|
|
9277
|
+
dashboard_alert_counts: {
|
|
9278
|
+
Args: never;
|
|
9279
|
+
Returns: import("./types").Json;
|
|
9280
|
+
};
|
|
9281
|
+
dashboard_alert_rows: {
|
|
9282
|
+
Args: {
|
|
9283
|
+
check_id: string;
|
|
9284
|
+
row_limit?: number;
|
|
9285
|
+
};
|
|
9286
|
+
Returns: import("./types").Json;
|
|
9287
|
+
};
|
|
8684
9288
|
dashboard_list_public_schema: {
|
|
8685
9289
|
Args: never;
|
|
8686
9290
|
Returns: {
|
|
@@ -8761,6 +9365,13 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
8761
9365
|
};
|
|
8762
9366
|
Returns: boolean;
|
|
8763
9367
|
};
|
|
9368
|
+
format_cart_number: {
|
|
9369
|
+
Args: {
|
|
9370
|
+
p_pick_date: string;
|
|
9371
|
+
p_seq: number;
|
|
9372
|
+
};
|
|
9373
|
+
Returns: string;
|
|
9374
|
+
};
|
|
8764
9375
|
get_active_floriday_connection_public: {
|
|
8765
9376
|
Args: never;
|
|
8766
9377
|
Returns: {
|
|
@@ -8965,14 +9576,29 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
|
|
|
8965
9576
|
};
|
|
8966
9577
|
Returns: undefined;
|
|
8967
9578
|
};
|
|
9579
|
+
pickstation_set_cart_status: {
|
|
9580
|
+
Args: {
|
|
9581
|
+
p_cart_index: number;
|
|
9582
|
+
p_order_id: string;
|
|
9583
|
+
p_order_source: string;
|
|
9584
|
+
p_status: string;
|
|
9585
|
+
};
|
|
9586
|
+
Returns: undefined;
|
|
9587
|
+
};
|
|
8968
9588
|
refresh_floricode_derived_code_lists: {
|
|
8969
9589
|
Args: never;
|
|
8970
9590
|
Returns: {
|
|
8971
|
-
|
|
8972
|
-
|
|
8973
|
-
|
|
9591
|
+
environment: string;
|
|
9592
|
+
list_name: string;
|
|
9593
|
+
row_count: number;
|
|
8974
9594
|
}[];
|
|
8975
9595
|
};
|
|
9596
|
+
refresh_floricode_derived_for_product: {
|
|
9597
|
+
Args: {
|
|
9598
|
+
p_product_code: string;
|
|
9599
|
+
};
|
|
9600
|
+
Returns: number;
|
|
9601
|
+
};
|
|
8976
9602
|
reset_floriday_sync_cursor: {
|
|
8977
9603
|
Args: {
|
|
8978
9604
|
p_connection_id: string;
|