@flowselections/mailbox-orders 1.0.4 → 1.0.5
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/MailboxProposalsPage.d.ts.map +1 -1
- package/dist-lib/components/MailboxProposalsPage.js +66 -39
- package/dist-lib/integrations/supabase/auth-middleware.d.ts +689 -3
- package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/client.d.ts +689 -3
- package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/client.server.d.ts +689 -3
- package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/types.d.ts +699 -3
- package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
- package/dist-lib/lib/mailbox-template.functions.d.ts +4134 -18
- package/dist-lib/lib/mailbox-template.functions.d.ts.map +1 -1
- package/dist-lib/lib/mailbox.functions.d.ts +11713 -51
- package/dist-lib/lib/mailbox.functions.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -9,6 +9,7 @@ export declare const requireSupabaseAuth: 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 requireSupabaseAuth: 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 requireSupabaseAuth: 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 requireSupabaseAuth: import("@tanstack/start-client-core").
|
|
|
446
449
|
referencedColumns: ["id"];
|
|
447
450
|
}];
|
|
448
451
|
};
|
|
452
|
+
carrier_signup_dispatch_runs: {
|
|
453
|
+
Row: {
|
|
454
|
+
detail: import("./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("./types").Json;
|
|
463
|
+
started_at: string;
|
|
464
|
+
unassigned: import("./types").Json;
|
|
465
|
+
};
|
|
466
|
+
Insert: {
|
|
467
|
+
detail?: import("./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("./types").Json;
|
|
476
|
+
started_at?: string;
|
|
477
|
+
unassigned?: import("./types").Json;
|
|
478
|
+
};
|
|
479
|
+
Update: {
|
|
480
|
+
detail?: import("./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("./types").Json;
|
|
489
|
+
started_at?: string;
|
|
490
|
+
unassigned?: import("./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 requireSupabaseAuth: 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 requireSupabaseAuth: import("@tanstack/start-client-core").
|
|
|
504
550
|
notes: string | null;
|
|
505
551
|
phone: string | null;
|
|
506
552
|
pickup_moments: import("./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 requireSupabaseAuth: 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 requireSupabaseAuth: import("@tanstack/start-client-core").
|
|
|
526
574
|
notes?: string | null;
|
|
527
575
|
phone?: string | null;
|
|
528
576
|
pickup_moments?: import("./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 requireSupabaseAuth: 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 requireSupabaseAuth: import("@tanstack/start-client-core").
|
|
|
548
598
|
notes?: string | null;
|
|
549
599
|
phone?: string | null;
|
|
550
600
|
pickup_moments?: import("./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 requireSupabaseAuth: import("@tanstack/start-client-core").
|
|
|
560
611
|
};
|
|
561
612
|
Relationships: [];
|
|
562
613
|
};
|
|
614
|
+
cart_control_draft: {
|
|
615
|
+
Row: {
|
|
616
|
+
cart_states: import("./types").Json;
|
|
617
|
+
checked_keys: import("./types").Json;
|
|
618
|
+
draft_date: string;
|
|
619
|
+
form_state: import("./types").Json;
|
|
620
|
+
notes: string;
|
|
621
|
+
updated_at: string;
|
|
622
|
+
user_id: string;
|
|
623
|
+
};
|
|
624
|
+
Insert: {
|
|
625
|
+
cart_states?: import("./types").Json;
|
|
626
|
+
checked_keys?: import("./types").Json;
|
|
627
|
+
draft_date: string;
|
|
628
|
+
form_state?: import("./types").Json;
|
|
629
|
+
notes?: string;
|
|
630
|
+
updated_at?: string;
|
|
631
|
+
user_id: string;
|
|
632
|
+
};
|
|
633
|
+
Update: {
|
|
634
|
+
cart_states?: import("./types").Json;
|
|
635
|
+
checked_keys?: import("./types").Json;
|
|
636
|
+
draft_date?: string;
|
|
637
|
+
form_state?: import("./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 requireSupabaseAuth: 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("./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("./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("./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 requireSupabaseAuth: 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 requireSupabaseAuth: 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 requireSupabaseAuth: 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;
|
|
@@ -3899,6 +4172,24 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
|
|
|
3899
4172
|
};
|
|
3900
4173
|
Relationships: [];
|
|
3901
4174
|
};
|
|
4175
|
+
floriday_order_number_map: {
|
|
4176
|
+
Row: {
|
|
4177
|
+
created_at: string;
|
|
4178
|
+
floriday_id: string;
|
|
4179
|
+
order_number: string;
|
|
4180
|
+
};
|
|
4181
|
+
Insert: {
|
|
4182
|
+
created_at?: string;
|
|
4183
|
+
floriday_id: string;
|
|
4184
|
+
order_number: string;
|
|
4185
|
+
};
|
|
4186
|
+
Update: {
|
|
4187
|
+
created_at?: string;
|
|
4188
|
+
floriday_id?: string;
|
|
4189
|
+
order_number?: string;
|
|
4190
|
+
};
|
|
4191
|
+
Relationships: [];
|
|
4192
|
+
};
|
|
3902
4193
|
floriday_packings_cache: {
|
|
3903
4194
|
Row: {
|
|
3904
4195
|
connection_id: string;
|
|
@@ -5081,6 +5372,93 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
|
|
|
5081
5372
|
};
|
|
5082
5373
|
Relationships: [];
|
|
5083
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
|
+
};
|
|
5084
5462
|
monteurs: {
|
|
5085
5463
|
Row: {
|
|
5086
5464
|
avatar_url: string | null;
|
|
@@ -5744,6 +6122,24 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
|
|
|
5744
6122
|
referencedColumns: ["id"];
|
|
5745
6123
|
}];
|
|
5746
6124
|
};
|
|
6125
|
+
order_number_counters: {
|
|
6126
|
+
Row: {
|
|
6127
|
+
last_value: number;
|
|
6128
|
+
updated_at: string;
|
|
6129
|
+
year: number;
|
|
6130
|
+
};
|
|
6131
|
+
Insert: {
|
|
6132
|
+
last_value?: number;
|
|
6133
|
+
updated_at?: string;
|
|
6134
|
+
year: number;
|
|
6135
|
+
};
|
|
6136
|
+
Update: {
|
|
6137
|
+
last_value?: number;
|
|
6138
|
+
updated_at?: string;
|
|
6139
|
+
year?: number;
|
|
6140
|
+
};
|
|
6141
|
+
Relationships: [];
|
|
6142
|
+
};
|
|
5747
6143
|
orders: {
|
|
5748
6144
|
Row: {
|
|
5749
6145
|
created_at: string;
|
|
@@ -5756,6 +6152,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
|
|
|
5756
6152
|
notes: string | null;
|
|
5757
6153
|
order_date: string;
|
|
5758
6154
|
order_number: string;
|
|
6155
|
+
order_source: string;
|
|
5759
6156
|
status: string;
|
|
5760
6157
|
total: string;
|
|
5761
6158
|
updated_at: string;
|
|
@@ -5771,6 +6168,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
|
|
|
5771
6168
|
notes?: string | null;
|
|
5772
6169
|
order_date?: string;
|
|
5773
6170
|
order_number: string;
|
|
6171
|
+
order_source?: string;
|
|
5774
6172
|
status?: string;
|
|
5775
6173
|
total?: string;
|
|
5776
6174
|
updated_at?: string;
|
|
@@ -5786,6 +6184,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
|
|
|
5786
6184
|
notes?: string | null;
|
|
5787
6185
|
order_date?: string;
|
|
5788
6186
|
order_number?: string;
|
|
6187
|
+
order_source?: string;
|
|
5789
6188
|
status?: string;
|
|
5790
6189
|
total?: string;
|
|
5791
6190
|
updated_at?: string;
|
|
@@ -6020,6 +6419,66 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
|
|
|
6020
6419
|
};
|
|
6021
6420
|
Relationships: [];
|
|
6022
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
|
+
};
|
|
6023
6482
|
products: {
|
|
6024
6483
|
Row: {
|
|
6025
6484
|
barcode: string | null;
|
|
@@ -7159,7 +7618,13 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
|
|
|
7159
7618
|
connection_id: string | null;
|
|
7160
7619
|
created_at: string;
|
|
7161
7620
|
data: import("./types").Json;
|
|
7621
|
+
floriday_id: string | null;
|
|
7622
|
+
floriday_link_error: string | null;
|
|
7623
|
+
floriday_link_status: string;
|
|
7162
7624
|
id: string;
|
|
7625
|
+
last_floriday_sync_at: string | null;
|
|
7626
|
+
missing_required_fields: string[];
|
|
7627
|
+
source: string;
|
|
7163
7628
|
updated_at: string;
|
|
7164
7629
|
user_id: string;
|
|
7165
7630
|
};
|
|
@@ -7167,7 +7632,13 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
|
|
|
7167
7632
|
connection_id?: string | null;
|
|
7168
7633
|
created_at?: string;
|
|
7169
7634
|
data?: import("./types").Json;
|
|
7635
|
+
floriday_id?: string | null;
|
|
7636
|
+
floriday_link_error?: string | null;
|
|
7637
|
+
floriday_link_status?: string;
|
|
7170
7638
|
id?: string;
|
|
7639
|
+
last_floriday_sync_at?: string | null;
|
|
7640
|
+
missing_required_fields?: string[];
|
|
7641
|
+
source?: string;
|
|
7171
7642
|
updated_at?: string;
|
|
7172
7643
|
user_id: string;
|
|
7173
7644
|
};
|
|
@@ -7175,7 +7646,55 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
|
|
|
7175
7646
|
connection_id?: string | null;
|
|
7176
7647
|
created_at?: string;
|
|
7177
7648
|
data?: import("./types").Json;
|
|
7649
|
+
floriday_id?: string | null;
|
|
7650
|
+
floriday_link_error?: string | null;
|
|
7651
|
+
floriday_link_status?: string;
|
|
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;
|
|
7178
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;
|
|
7179
7698
|
updated_at?: string;
|
|
7180
7699
|
user_id?: string;
|
|
7181
7700
|
};
|
|
@@ -7525,6 +8044,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
|
|
|
7525
8044
|
};
|
|
7526
8045
|
twinfield_invoice_sync_logs: {
|
|
7527
8046
|
Row: {
|
|
8047
|
+
action_type: string | null;
|
|
7528
8048
|
created_at: string;
|
|
7529
8049
|
details: import("./types").Json | null;
|
|
7530
8050
|
duration_ms: number | null;
|
|
@@ -7537,6 +8057,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
|
|
|
7537
8057
|
user_id: string;
|
|
7538
8058
|
};
|
|
7539
8059
|
Insert: {
|
|
8060
|
+
action_type?: string | null;
|
|
7540
8061
|
created_at?: string;
|
|
7541
8062
|
details?: import("./types").Json | null;
|
|
7542
8063
|
duration_ms?: number | null;
|
|
@@ -7549,6 +8070,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
|
|
|
7549
8070
|
user_id: string;
|
|
7550
8071
|
};
|
|
7551
8072
|
Update: {
|
|
8073
|
+
action_type?: string | null;
|
|
7552
8074
|
created_at?: string;
|
|
7553
8075
|
details?: import("./types").Json | null;
|
|
7554
8076
|
duration_ms?: number | null;
|
|
@@ -7784,6 +8306,57 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
|
|
|
7784
8306
|
referencedColumns: ["id"];
|
|
7785
8307
|
}];
|
|
7786
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
|
+
};
|
|
7787
8360
|
twinfield_settings: {
|
|
7788
8361
|
Row: {
|
|
7789
8362
|
active_environment: string;
|
|
@@ -8365,6 +8938,35 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
|
|
|
8365
8938
|
};
|
|
8366
8939
|
Relationships: [];
|
|
8367
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
|
+
};
|
|
8368
8970
|
v_external_customers_exact: {
|
|
8369
8971
|
Row: {
|
|
8370
8972
|
account_number: string | null;
|
|
@@ -8620,6 +9222,29 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
|
|
|
8620
9222
|
};
|
|
8621
9223
|
Returns: number;
|
|
8622
9224
|
};
|
|
9225
|
+
assign_cart_numbers: {
|
|
9226
|
+
Args: {
|
|
9227
|
+
p_carts: import("./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
|
+
};
|
|
9239
|
+
assign_floriday_order_numbers: {
|
|
9240
|
+
Args: {
|
|
9241
|
+
p_ids: string[];
|
|
9242
|
+
};
|
|
9243
|
+
Returns: {
|
|
9244
|
+
floriday_id: string;
|
|
9245
|
+
order_number: string;
|
|
9246
|
+
}[];
|
|
9247
|
+
};
|
|
8623
9248
|
call_exact_route: {
|
|
8624
9249
|
Args: {
|
|
8625
9250
|
path: string;
|
|
@@ -8630,10 +9255,37 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
|
|
|
8630
9255
|
Args: never;
|
|
8631
9256
|
Returns: number;
|
|
8632
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
|
+
};
|
|
8633
9274
|
current_monteur_id: {
|
|
8634
9275
|
Args: never;
|
|
8635
9276
|
Returns: string;
|
|
8636
9277
|
};
|
|
9278
|
+
dashboard_alert_counts: {
|
|
9279
|
+
Args: never;
|
|
9280
|
+
Returns: import("./types").Json;
|
|
9281
|
+
};
|
|
9282
|
+
dashboard_alert_rows: {
|
|
9283
|
+
Args: {
|
|
9284
|
+
check_id: string;
|
|
9285
|
+
row_limit?: number;
|
|
9286
|
+
};
|
|
9287
|
+
Returns: import("./types").Json;
|
|
9288
|
+
};
|
|
8637
9289
|
dashboard_list_public_schema: {
|
|
8638
9290
|
Args: never;
|
|
8639
9291
|
Returns: {
|
|
@@ -8714,6 +9366,13 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
|
|
|
8714
9366
|
};
|
|
8715
9367
|
Returns: boolean;
|
|
8716
9368
|
};
|
|
9369
|
+
format_cart_number: {
|
|
9370
|
+
Args: {
|
|
9371
|
+
p_pick_date: string;
|
|
9372
|
+
p_seq: number;
|
|
9373
|
+
};
|
|
9374
|
+
Returns: string;
|
|
9375
|
+
};
|
|
8717
9376
|
get_active_floriday_connection_public: {
|
|
8718
9377
|
Args: never;
|
|
8719
9378
|
Returns: {
|
|
@@ -8829,6 +9488,12 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
|
|
|
8829
9488
|
};
|
|
8830
9489
|
Returns: import("./types").Json;
|
|
8831
9490
|
};
|
|
9491
|
+
get_or_assign_floriday_order_number: {
|
|
9492
|
+
Args: {
|
|
9493
|
+
p_floriday_id: string;
|
|
9494
|
+
};
|
|
9495
|
+
Returns: string;
|
|
9496
|
+
};
|
|
8832
9497
|
get_room_busy_windows: {
|
|
8833
9498
|
Args: {
|
|
8834
9499
|
p_from: string;
|
|
@@ -8875,6 +9540,12 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
|
|
|
8875
9540
|
Args: never;
|
|
8876
9541
|
Returns: boolean;
|
|
8877
9542
|
};
|
|
9543
|
+
next_order_number: {
|
|
9544
|
+
Args: {
|
|
9545
|
+
p_prefix: string;
|
|
9546
|
+
};
|
|
9547
|
+
Returns: string;
|
|
9548
|
+
};
|
|
8878
9549
|
next_work_order_number: {
|
|
8879
9550
|
Args: {
|
|
8880
9551
|
p_parent_work_order_id?: string;
|
|
@@ -8906,14 +9577,29 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
|
|
|
8906
9577
|
};
|
|
8907
9578
|
Returns: undefined;
|
|
8908
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
|
+
};
|
|
8909
9589
|
refresh_floricode_derived_code_lists: {
|
|
8910
9590
|
Args: never;
|
|
8911
9591
|
Returns: {
|
|
8912
|
-
|
|
8913
|
-
|
|
8914
|
-
|
|
9592
|
+
environment: string;
|
|
9593
|
+
list_name: string;
|
|
9594
|
+
row_count: number;
|
|
8915
9595
|
}[];
|
|
8916
9596
|
};
|
|
9597
|
+
refresh_floricode_derived_for_product: {
|
|
9598
|
+
Args: {
|
|
9599
|
+
p_product_code: string;
|
|
9600
|
+
};
|
|
9601
|
+
Returns: number;
|
|
9602
|
+
};
|
|
8917
9603
|
reset_floriday_sync_cursor: {
|
|
8918
9604
|
Args: {
|
|
8919
9605
|
p_connection_id: string;
|