@flowselections/floriday-klanten-module 1.0.11 → 1.0.13
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/klanten/DiscountsTab.d.ts +4 -0
- package/dist-lib/components/klanten/DiscountsTab.d.ts.map +1 -0
- package/dist-lib/components/klanten/DiscountsTab.js +92 -0
- package/dist-lib/components/klanten/GroupedKlantDetail.d.ts.map +1 -1
- package/dist-lib/components/klanten/GroupedKlantDetail.js +5 -2
- package/dist-lib/components/klanten/KlantDetail.d.ts.map +1 -1
- package/dist-lib/components/klanten/KlantDetail.js +3 -2
- package/dist-lib/components/klanten/KlantenOverzicht.d.ts.map +1 -1
- package/dist-lib/components/klanten/KlantenOverzicht.js +83 -23
- package/dist-lib/components/klanten/LocalDiscountFormDialog.d.ts +10 -0
- package/dist-lib/components/klanten/LocalDiscountFormDialog.d.ts.map +1 -0
- package/dist-lib/components/klanten/LocalDiscountFormDialog.js +107 -0
- package/dist-lib/components/klanten/LocalDiscountsTab.d.ts +4 -0
- package/dist-lib/components/klanten/LocalDiscountsTab.d.ts.map +1 -0
- package/dist-lib/components/klanten/LocalDiscountsTab.js +101 -0
- package/dist-lib/integrations/supabase/auth-middleware.d.ts +1788 -107
- package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/client.d.ts +1788 -107
- package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/client.server.d.ts +1788 -107
- package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/types.d.ts +1819 -104
- package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
- package/dist-lib/lib/accounting.functions.d.ts +5362 -319
- package/dist-lib/lib/accounting.functions.d.ts.map +1 -1
- package/dist-lib/lib/customer-analytics.functions.d.ts +1788 -107
- package/dist-lib/lib/customer-analytics.functions.d.ts.map +1 -1
- package/dist-lib/lib/customers.functions.d.ts +11767 -0
- package/dist-lib/lib/customers.functions.d.ts.map +1 -1
- package/dist-lib/lib/delivery-locations.functions.d.ts +6724 -0
- package/dist-lib/lib/delivery-locations.functions.d.ts.map +1 -1
- package/dist-lib/lib/external-customers.functions.d.ts +6724 -0
- package/dist-lib/lib/external-customers.functions.d.ts.map +1 -1
- package/dist-lib/lib/floriday-discounts.functions.d.ts +21974 -0
- package/dist-lib/lib/floriday-discounts.functions.d.ts.map +1 -0
- package/dist-lib/lib/floriday-discounts.functions.js +83 -0
- package/dist-lib/lib/local-discounts.functions.d.ts +76898 -0
- package/dist-lib/lib/local-discounts.functions.d.ts.map +1 -0
- package/dist-lib/lib/local-discounts.functions.js +185 -0
- package/dist-lib/lib/overdue-invoices.functions.d.ts +10984 -0
- package/dist-lib/lib/overdue-invoices.functions.d.ts.map +1 -0
- package/dist-lib/lib/overdue-invoices.functions.js +72 -0
- package/package.json +1 -1
|
@@ -4,10 +4,12 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
|
|
|
4
4
|
afhandeling_settings: {
|
|
5
5
|
Row: {
|
|
6
6
|
created_at: string;
|
|
7
|
+
extra_pick_days_with_stickers: number;
|
|
7
8
|
id: string;
|
|
8
9
|
max_workdays_earlier_pick: number;
|
|
9
10
|
pick_days_before_transport: number;
|
|
10
11
|
pick_distribution_enabled: boolean;
|
|
12
|
+
pick_weekdays: number[];
|
|
11
13
|
signup_mail_enabled: boolean;
|
|
12
14
|
signup_mail_lead_minutes: number;
|
|
13
15
|
signup_mail_purpose: string;
|
|
@@ -17,10 +19,12 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
|
|
|
17
19
|
};
|
|
18
20
|
Insert: {
|
|
19
21
|
created_at?: string;
|
|
22
|
+
extra_pick_days_with_stickers?: number;
|
|
20
23
|
id?: string;
|
|
21
24
|
max_workdays_earlier_pick?: number;
|
|
22
25
|
pick_days_before_transport?: number;
|
|
23
26
|
pick_distribution_enabled?: boolean;
|
|
27
|
+
pick_weekdays?: number[];
|
|
24
28
|
signup_mail_enabled?: boolean;
|
|
25
29
|
signup_mail_lead_minutes?: number;
|
|
26
30
|
signup_mail_purpose?: string;
|
|
@@ -30,10 +34,12 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
|
|
|
30
34
|
};
|
|
31
35
|
Update: {
|
|
32
36
|
created_at?: string;
|
|
37
|
+
extra_pick_days_with_stickers?: number;
|
|
33
38
|
id?: string;
|
|
34
39
|
max_workdays_earlier_pick?: number;
|
|
35
40
|
pick_days_before_transport?: number;
|
|
36
41
|
pick_distribution_enabled?: boolean;
|
|
42
|
+
pick_weekdays?: number[];
|
|
37
43
|
signup_mail_enabled?: boolean;
|
|
38
44
|
signup_mail_lead_minutes?: number;
|
|
39
45
|
signup_mail_purpose?: string;
|
|
@@ -445,6 +451,48 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
|
|
|
445
451
|
referencedColumns: ["id"];
|
|
446
452
|
}];
|
|
447
453
|
};
|
|
454
|
+
carrier_signup_dispatch_runs: {
|
|
455
|
+
Row: {
|
|
456
|
+
detail: import("./types").Json | null;
|
|
457
|
+
error: string | null;
|
|
458
|
+
finished_at: string | null;
|
|
459
|
+
groups: number;
|
|
460
|
+
id: string;
|
|
461
|
+
ok: boolean;
|
|
462
|
+
reason: string | null;
|
|
463
|
+
sent: number;
|
|
464
|
+
skipped: import("./types").Json;
|
|
465
|
+
started_at: string;
|
|
466
|
+
unassigned: import("./types").Json;
|
|
467
|
+
};
|
|
468
|
+
Insert: {
|
|
469
|
+
detail?: import("./types").Json | null;
|
|
470
|
+
error?: string | null;
|
|
471
|
+
finished_at?: string | null;
|
|
472
|
+
groups?: number;
|
|
473
|
+
id?: string;
|
|
474
|
+
ok?: boolean;
|
|
475
|
+
reason?: string | null;
|
|
476
|
+
sent?: number;
|
|
477
|
+
skipped?: import("./types").Json;
|
|
478
|
+
started_at?: string;
|
|
479
|
+
unassigned?: import("./types").Json;
|
|
480
|
+
};
|
|
481
|
+
Update: {
|
|
482
|
+
detail?: import("./types").Json | null;
|
|
483
|
+
error?: string | null;
|
|
484
|
+
finished_at?: string | null;
|
|
485
|
+
groups?: number;
|
|
486
|
+
id?: string;
|
|
487
|
+
ok?: boolean;
|
|
488
|
+
reason?: string | null;
|
|
489
|
+
sent?: number;
|
|
490
|
+
skipped?: import("./types").Json;
|
|
491
|
+
started_at?: string;
|
|
492
|
+
unassigned?: import("./types").Json;
|
|
493
|
+
};
|
|
494
|
+
Relationships: [];
|
|
495
|
+
};
|
|
448
496
|
carrier_signup_dispatches: {
|
|
449
497
|
Row: {
|
|
450
498
|
carrier_id: string;
|
|
@@ -496,6 +544,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
|
|
|
496
544
|
contact_person: string | null;
|
|
497
545
|
created_at: string;
|
|
498
546
|
delivery_days: number | null;
|
|
547
|
+
delivery_weekdays: number[];
|
|
499
548
|
email: string | null;
|
|
500
549
|
id: string;
|
|
501
550
|
is_default: boolean;
|
|
@@ -503,6 +552,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
|
|
|
503
552
|
notes: string | null;
|
|
504
553
|
phone: string | null;
|
|
505
554
|
pickup_moments: import("./types").Json;
|
|
555
|
+
pickup_weekdays: number[];
|
|
506
556
|
service_cities: string[];
|
|
507
557
|
service_countries: string[];
|
|
508
558
|
service_provinces: string[];
|
|
@@ -518,6 +568,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
|
|
|
518
568
|
contact_person?: string | null;
|
|
519
569
|
created_at?: string;
|
|
520
570
|
delivery_days?: number | null;
|
|
571
|
+
delivery_weekdays?: number[];
|
|
521
572
|
email?: string | null;
|
|
522
573
|
id?: string;
|
|
523
574
|
is_default?: boolean;
|
|
@@ -525,6 +576,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
|
|
|
525
576
|
notes?: string | null;
|
|
526
577
|
phone?: string | null;
|
|
527
578
|
pickup_moments?: import("./types").Json;
|
|
579
|
+
pickup_weekdays?: number[];
|
|
528
580
|
service_cities?: string[];
|
|
529
581
|
service_countries?: string[];
|
|
530
582
|
service_provinces?: string[];
|
|
@@ -540,6 +592,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
|
|
|
540
592
|
contact_person?: string | null;
|
|
541
593
|
created_at?: string;
|
|
542
594
|
delivery_days?: number | null;
|
|
595
|
+
delivery_weekdays?: number[];
|
|
543
596
|
email?: string | null;
|
|
544
597
|
id?: string;
|
|
545
598
|
is_default?: boolean;
|
|
@@ -547,6 +600,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
|
|
|
547
600
|
notes?: string | null;
|
|
548
601
|
phone?: string | null;
|
|
549
602
|
pickup_moments?: import("./types").Json;
|
|
603
|
+
pickup_weekdays?: number[];
|
|
550
604
|
service_cities?: string[];
|
|
551
605
|
service_countries?: string[];
|
|
552
606
|
service_provinces?: string[];
|
|
@@ -559,6 +613,180 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
|
|
|
559
613
|
};
|
|
560
614
|
Relationships: [];
|
|
561
615
|
};
|
|
616
|
+
cart_control_draft: {
|
|
617
|
+
Row: {
|
|
618
|
+
cart_states: import("./types").Json;
|
|
619
|
+
checked_keys: import("./types").Json;
|
|
620
|
+
draft_date: string;
|
|
621
|
+
form_state: import("./types").Json;
|
|
622
|
+
notes: string;
|
|
623
|
+
updated_at: string;
|
|
624
|
+
user_id: string;
|
|
625
|
+
};
|
|
626
|
+
Insert: {
|
|
627
|
+
cart_states?: import("./types").Json;
|
|
628
|
+
checked_keys?: import("./types").Json;
|
|
629
|
+
draft_date: string;
|
|
630
|
+
form_state?: import("./types").Json;
|
|
631
|
+
notes?: string;
|
|
632
|
+
updated_at?: string;
|
|
633
|
+
user_id: string;
|
|
634
|
+
};
|
|
635
|
+
Update: {
|
|
636
|
+
cart_states?: import("./types").Json;
|
|
637
|
+
checked_keys?: import("./types").Json;
|
|
638
|
+
draft_date?: string;
|
|
639
|
+
form_state?: import("./types").Json;
|
|
640
|
+
notes?: string;
|
|
641
|
+
updated_at?: string;
|
|
642
|
+
user_id?: string;
|
|
643
|
+
};
|
|
644
|
+
Relationships: [];
|
|
645
|
+
};
|
|
646
|
+
cart_control_items: {
|
|
647
|
+
Row: {
|
|
648
|
+
action: string;
|
|
649
|
+
block_reason: string | null;
|
|
650
|
+
carrier_name: string | null;
|
|
651
|
+
cart_index: number;
|
|
652
|
+
cart_number_id: string | null;
|
|
653
|
+
cart_number_label: string | null;
|
|
654
|
+
created_at: string;
|
|
655
|
+
customer_name: string | null;
|
|
656
|
+
delivery_date: string | null;
|
|
657
|
+
id: string;
|
|
658
|
+
new_pick_date: string | null;
|
|
659
|
+
order_id: string;
|
|
660
|
+
order_number: string | null;
|
|
661
|
+
order_source: string;
|
|
662
|
+
pickup_date: string | null;
|
|
663
|
+
session_id: string;
|
|
664
|
+
};
|
|
665
|
+
Insert: {
|
|
666
|
+
action: string;
|
|
667
|
+
block_reason?: string | null;
|
|
668
|
+
carrier_name?: string | null;
|
|
669
|
+
cart_index: number;
|
|
670
|
+
cart_number_id?: string | null;
|
|
671
|
+
cart_number_label?: string | null;
|
|
672
|
+
created_at?: string;
|
|
673
|
+
customer_name?: string | null;
|
|
674
|
+
delivery_date?: string | null;
|
|
675
|
+
id?: string;
|
|
676
|
+
new_pick_date?: string | null;
|
|
677
|
+
order_id: string;
|
|
678
|
+
order_number?: string | null;
|
|
679
|
+
order_source: string;
|
|
680
|
+
pickup_date?: string | null;
|
|
681
|
+
session_id: string;
|
|
682
|
+
};
|
|
683
|
+
Update: {
|
|
684
|
+
action?: string;
|
|
685
|
+
block_reason?: string | null;
|
|
686
|
+
carrier_name?: string | null;
|
|
687
|
+
cart_index?: number;
|
|
688
|
+
cart_number_id?: string | null;
|
|
689
|
+
cart_number_label?: string | null;
|
|
690
|
+
created_at?: string;
|
|
691
|
+
customer_name?: string | null;
|
|
692
|
+
delivery_date?: string | null;
|
|
693
|
+
id?: string;
|
|
694
|
+
new_pick_date?: string | null;
|
|
695
|
+
order_id?: string;
|
|
696
|
+
order_number?: string | null;
|
|
697
|
+
order_source?: string;
|
|
698
|
+
pickup_date?: string | null;
|
|
699
|
+
session_id?: string;
|
|
700
|
+
};
|
|
701
|
+
Relationships: [{
|
|
702
|
+
foreignKeyName: "cart_control_items_session_id_fkey";
|
|
703
|
+
columns: ["session_id"];
|
|
704
|
+
isOneToOne: false;
|
|
705
|
+
referencedRelation: "cart_control_sessions";
|
|
706
|
+
referencedColumns: ["id"];
|
|
707
|
+
}];
|
|
708
|
+
};
|
|
709
|
+
cart_control_sessions: {
|
|
710
|
+
Row: {
|
|
711
|
+
blocked_count: number;
|
|
712
|
+
checked_count: number;
|
|
713
|
+
control_date: string;
|
|
714
|
+
created_at: string;
|
|
715
|
+
id: string;
|
|
716
|
+
notes: string | null;
|
|
717
|
+
performed_at: string;
|
|
718
|
+
rescheduled_count: number;
|
|
719
|
+
stock_consumed_at: string | null;
|
|
720
|
+
total_carts: number;
|
|
721
|
+
updated_at: string;
|
|
722
|
+
user_id: string;
|
|
723
|
+
};
|
|
724
|
+
Insert: {
|
|
725
|
+
blocked_count?: number;
|
|
726
|
+
checked_count?: number;
|
|
727
|
+
control_date?: string;
|
|
728
|
+
created_at?: string;
|
|
729
|
+
id?: string;
|
|
730
|
+
notes?: string | null;
|
|
731
|
+
performed_at?: string;
|
|
732
|
+
rescheduled_count?: number;
|
|
733
|
+
stock_consumed_at?: string | null;
|
|
734
|
+
total_carts?: number;
|
|
735
|
+
updated_at?: string;
|
|
736
|
+
user_id: string;
|
|
737
|
+
};
|
|
738
|
+
Update: {
|
|
739
|
+
blocked_count?: number;
|
|
740
|
+
checked_count?: number;
|
|
741
|
+
control_date?: string;
|
|
742
|
+
created_at?: string;
|
|
743
|
+
id?: string;
|
|
744
|
+
notes?: string | null;
|
|
745
|
+
performed_at?: string;
|
|
746
|
+
rescheduled_count?: number;
|
|
747
|
+
stock_consumed_at?: string | null;
|
|
748
|
+
total_carts?: number;
|
|
749
|
+
updated_at?: string;
|
|
750
|
+
user_id?: string;
|
|
751
|
+
};
|
|
752
|
+
Relationships: [];
|
|
753
|
+
};
|
|
754
|
+
cart_numbers: {
|
|
755
|
+
Row: {
|
|
756
|
+
assigned_at: string;
|
|
757
|
+
cart_index: number;
|
|
758
|
+
cart_number: string;
|
|
759
|
+
day_seq: number;
|
|
760
|
+
id: string;
|
|
761
|
+
order_id: string;
|
|
762
|
+
order_source: string;
|
|
763
|
+
pick_date: string;
|
|
764
|
+
status: string;
|
|
765
|
+
};
|
|
766
|
+
Insert: {
|
|
767
|
+
assigned_at?: string;
|
|
768
|
+
cart_index: number;
|
|
769
|
+
cart_number: string;
|
|
770
|
+
day_seq: number;
|
|
771
|
+
id?: string;
|
|
772
|
+
order_id: string;
|
|
773
|
+
order_source: string;
|
|
774
|
+
pick_date: string;
|
|
775
|
+
status?: string;
|
|
776
|
+
};
|
|
777
|
+
Update: {
|
|
778
|
+
assigned_at?: string;
|
|
779
|
+
cart_index?: number;
|
|
780
|
+
cart_number?: string;
|
|
781
|
+
day_seq?: number;
|
|
782
|
+
id?: string;
|
|
783
|
+
order_id?: string;
|
|
784
|
+
order_source?: string;
|
|
785
|
+
pick_date?: string;
|
|
786
|
+
status?: string;
|
|
787
|
+
};
|
|
788
|
+
Relationships: [];
|
|
789
|
+
};
|
|
562
790
|
cart_pick_overrides: {
|
|
563
791
|
Row: {
|
|
564
792
|
cart_index: number;
|
|
@@ -598,6 +826,36 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
|
|
|
598
826
|
};
|
|
599
827
|
Relationships: [];
|
|
600
828
|
};
|
|
829
|
+
cart_replan_queue: {
|
|
830
|
+
Row: {
|
|
831
|
+
attempts: number;
|
|
832
|
+
last_error: string | null;
|
|
833
|
+
order_id: string;
|
|
834
|
+
processed_at: string | null;
|
|
835
|
+
requested_at: string;
|
|
836
|
+
};
|
|
837
|
+
Insert: {
|
|
838
|
+
attempts?: number;
|
|
839
|
+
last_error?: string | null;
|
|
840
|
+
order_id: string;
|
|
841
|
+
processed_at?: string | null;
|
|
842
|
+
requested_at?: string;
|
|
843
|
+
};
|
|
844
|
+
Update: {
|
|
845
|
+
attempts?: number;
|
|
846
|
+
last_error?: string | null;
|
|
847
|
+
order_id?: string;
|
|
848
|
+
processed_at?: string | null;
|
|
849
|
+
requested_at?: string;
|
|
850
|
+
};
|
|
851
|
+
Relationships: [{
|
|
852
|
+
foreignKeyName: "cart_replan_queue_order_id_fkey";
|
|
853
|
+
columns: ["order_id"];
|
|
854
|
+
isOneToOne: true;
|
|
855
|
+
referencedRelation: "orders";
|
|
856
|
+
referencedColumns: ["id"];
|
|
857
|
+
}];
|
|
858
|
+
};
|
|
601
859
|
collections: {
|
|
602
860
|
Row: {
|
|
603
861
|
created_at: string;
|
|
@@ -1231,6 +1489,54 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
|
|
|
1231
1489
|
referencedColumns: ["id"];
|
|
1232
1490
|
}];
|
|
1233
1491
|
};
|
|
1492
|
+
dashboard_critical_alerts: {
|
|
1493
|
+
Row: {
|
|
1494
|
+
alert_key: string;
|
|
1495
|
+
alert_type: string;
|
|
1496
|
+
created_at: string;
|
|
1497
|
+
description: string | null;
|
|
1498
|
+
id: string;
|
|
1499
|
+
metadata: import("./types").Json | null;
|
|
1500
|
+
priority: string;
|
|
1501
|
+
raised_at: string;
|
|
1502
|
+
related_cart_ids: string[] | null;
|
|
1503
|
+
resolved_at: string | null;
|
|
1504
|
+
title: string;
|
|
1505
|
+
updated_at: string;
|
|
1506
|
+
user_id: string;
|
|
1507
|
+
};
|
|
1508
|
+
Insert: {
|
|
1509
|
+
alert_key: string;
|
|
1510
|
+
alert_type: string;
|
|
1511
|
+
created_at?: string;
|
|
1512
|
+
description?: string | null;
|
|
1513
|
+
id?: string;
|
|
1514
|
+
metadata?: import("./types").Json | null;
|
|
1515
|
+
priority?: string;
|
|
1516
|
+
raised_at?: string;
|
|
1517
|
+
related_cart_ids?: string[] | null;
|
|
1518
|
+
resolved_at?: string | null;
|
|
1519
|
+
title: string;
|
|
1520
|
+
updated_at?: string;
|
|
1521
|
+
user_id: string;
|
|
1522
|
+
};
|
|
1523
|
+
Update: {
|
|
1524
|
+
alert_key?: string;
|
|
1525
|
+
alert_type?: string;
|
|
1526
|
+
created_at?: string;
|
|
1527
|
+
description?: string | null;
|
|
1528
|
+
id?: string;
|
|
1529
|
+
metadata?: import("./types").Json | null;
|
|
1530
|
+
priority?: string;
|
|
1531
|
+
raised_at?: string;
|
|
1532
|
+
related_cart_ids?: string[] | null;
|
|
1533
|
+
resolved_at?: string | null;
|
|
1534
|
+
title?: string;
|
|
1535
|
+
updated_at?: string;
|
|
1536
|
+
user_id?: string;
|
|
1537
|
+
};
|
|
1538
|
+
Relationships: [];
|
|
1539
|
+
};
|
|
1234
1540
|
dashboard_daily_reports: {
|
|
1235
1541
|
Row: {
|
|
1236
1542
|
created_at: string;
|
|
@@ -2675,34 +2981,52 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
|
|
|
2675
2981
|
Row: {
|
|
2676
2982
|
catalog_key: string | null;
|
|
2677
2983
|
catalog_url: string;
|
|
2984
|
+
client_id: string | null;
|
|
2985
|
+
client_secret_ciphertext: string | null;
|
|
2986
|
+
client_secret_last4: string | null;
|
|
2678
2987
|
created_at: string;
|
|
2679
2988
|
id: number;
|
|
2680
2989
|
last_meta: import("./types").Json | null;
|
|
2681
2990
|
last_test_at: string | null;
|
|
2682
2991
|
last_test_error: string | null;
|
|
2683
2992
|
last_test_ok: boolean | null;
|
|
2993
|
+
last_token_test_at: string | null;
|
|
2994
|
+
last_token_test_error: string | null;
|
|
2995
|
+
last_token_test_ok: boolean | null;
|
|
2684
2996
|
updated_at: string;
|
|
2685
2997
|
};
|
|
2686
2998
|
Insert: {
|
|
2687
2999
|
catalog_key?: string | null;
|
|
2688
3000
|
catalog_url?: string;
|
|
3001
|
+
client_id?: string | null;
|
|
3002
|
+
client_secret_ciphertext?: string | null;
|
|
3003
|
+
client_secret_last4?: string | null;
|
|
2689
3004
|
created_at?: string;
|
|
2690
3005
|
id?: number;
|
|
2691
3006
|
last_meta?: import("./types").Json | null;
|
|
2692
3007
|
last_test_at?: string | null;
|
|
2693
3008
|
last_test_error?: string | null;
|
|
2694
3009
|
last_test_ok?: boolean | null;
|
|
3010
|
+
last_token_test_at?: string | null;
|
|
3011
|
+
last_token_test_error?: string | null;
|
|
3012
|
+
last_token_test_ok?: boolean | null;
|
|
2695
3013
|
updated_at?: string;
|
|
2696
3014
|
};
|
|
2697
3015
|
Update: {
|
|
2698
3016
|
catalog_key?: string | null;
|
|
2699
3017
|
catalog_url?: string;
|
|
3018
|
+
client_id?: string | null;
|
|
3019
|
+
client_secret_ciphertext?: string | null;
|
|
3020
|
+
client_secret_last4?: string | null;
|
|
2700
3021
|
created_at?: string;
|
|
2701
3022
|
id?: number;
|
|
2702
3023
|
last_meta?: import("./types").Json | null;
|
|
2703
3024
|
last_test_at?: string | null;
|
|
2704
3025
|
last_test_error?: string | null;
|
|
2705
3026
|
last_test_ok?: boolean | null;
|
|
3027
|
+
last_token_test_at?: string | null;
|
|
3028
|
+
last_token_test_error?: string | null;
|
|
3029
|
+
last_token_test_ok?: boolean | null;
|
|
2706
3030
|
updated_at?: string;
|
|
2707
3031
|
};
|
|
2708
3032
|
Relationships: [];
|
|
@@ -2733,6 +3057,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
|
|
|
2733
3057
|
};
|
|
2734
3058
|
floricode_sync_state: {
|
|
2735
3059
|
Row: {
|
|
3060
|
+
cursor_skip: number;
|
|
2736
3061
|
error_message: string | null;
|
|
2737
3062
|
last_change_date_time: string | null;
|
|
2738
3063
|
last_sequence_number: number;
|
|
@@ -2742,6 +3067,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
|
|
|
2742
3067
|
updated_at: string;
|
|
2743
3068
|
};
|
|
2744
3069
|
Insert: {
|
|
3070
|
+
cursor_skip?: number;
|
|
2745
3071
|
error_message?: string | null;
|
|
2746
3072
|
last_change_date_time?: string | null;
|
|
2747
3073
|
last_sequence_number?: number;
|
|
@@ -2751,6 +3077,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
|
|
|
2751
3077
|
updated_at?: string;
|
|
2752
3078
|
};
|
|
2753
3079
|
Update: {
|
|
3080
|
+
cursor_skip?: number;
|
|
2754
3081
|
error_message?: string | null;
|
|
2755
3082
|
last_change_date_time?: string | null;
|
|
2756
3083
|
last_sequence_number?: number;
|
|
@@ -3346,6 +3673,51 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
|
|
|
3346
3673
|
referencedColumns: ["id"];
|
|
3347
3674
|
}];
|
|
3348
3675
|
};
|
|
3676
|
+
floriday_continuous_stock_queue: {
|
|
3677
|
+
Row: {
|
|
3678
|
+
attempts: number;
|
|
3679
|
+
connection_id: string;
|
|
3680
|
+
created_at: string;
|
|
3681
|
+
gateway_attempt_id: string | null;
|
|
3682
|
+
id: string;
|
|
3683
|
+
last_error: string | null;
|
|
3684
|
+
number_of_pieces: number;
|
|
3685
|
+
sent_at: string | null;
|
|
3686
|
+
status: string;
|
|
3687
|
+
trade_item_id: string;
|
|
3688
|
+
updated_at: string;
|
|
3689
|
+
user_id: string;
|
|
3690
|
+
};
|
|
3691
|
+
Insert: {
|
|
3692
|
+
attempts?: number;
|
|
3693
|
+
connection_id: string;
|
|
3694
|
+
created_at?: string;
|
|
3695
|
+
gateway_attempt_id?: string | null;
|
|
3696
|
+
id?: string;
|
|
3697
|
+
last_error?: string | null;
|
|
3698
|
+
number_of_pieces?: number;
|
|
3699
|
+
sent_at?: string | null;
|
|
3700
|
+
status?: string;
|
|
3701
|
+
trade_item_id: string;
|
|
3702
|
+
updated_at?: string;
|
|
3703
|
+
user_id: string;
|
|
3704
|
+
};
|
|
3705
|
+
Update: {
|
|
3706
|
+
attempts?: number;
|
|
3707
|
+
connection_id?: string;
|
|
3708
|
+
created_at?: string;
|
|
3709
|
+
gateway_attempt_id?: string | null;
|
|
3710
|
+
id?: string;
|
|
3711
|
+
last_error?: string | null;
|
|
3712
|
+
number_of_pieces?: number;
|
|
3713
|
+
sent_at?: string | null;
|
|
3714
|
+
status?: string;
|
|
3715
|
+
trade_item_id?: string;
|
|
3716
|
+
updated_at?: string;
|
|
3717
|
+
user_id?: string;
|
|
3718
|
+
};
|
|
3719
|
+
Relationships: [];
|
|
3720
|
+
};
|
|
3349
3721
|
floriday_contract_trade_item_groups_cache: {
|
|
3350
3722
|
Row: {
|
|
3351
3723
|
connection_id: string;
|
|
@@ -4414,51 +4786,105 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
|
|
|
4414
4786
|
referencedColumns: ["id"];
|
|
4415
4787
|
}];
|
|
4416
4788
|
};
|
|
4417
|
-
|
|
4789
|
+
flow_role_assignments: {
|
|
4418
4790
|
Row: {
|
|
4419
4791
|
created_at: string;
|
|
4420
|
-
email: string | null;
|
|
4421
|
-
host: string;
|
|
4422
4792
|
id: string;
|
|
4423
|
-
|
|
4424
|
-
|
|
4425
|
-
last_test_ok: boolean | null;
|
|
4426
|
-
last_tested_at: string | null;
|
|
4427
|
-
name: string;
|
|
4428
|
-
password: string | null;
|
|
4429
|
-
password_secret_name: string | null;
|
|
4430
|
-
port: number;
|
|
4431
|
-
updated_at: string;
|
|
4432
|
-
use_tls: boolean;
|
|
4433
|
-
username: string;
|
|
4793
|
+
role_id: string;
|
|
4794
|
+
user_id: string;
|
|
4434
4795
|
};
|
|
4435
4796
|
Insert: {
|
|
4436
4797
|
created_at?: string;
|
|
4437
|
-
email?: string | null;
|
|
4438
|
-
host: string;
|
|
4439
4798
|
id?: string;
|
|
4440
|
-
|
|
4441
|
-
|
|
4442
|
-
last_test_ok?: boolean | null;
|
|
4443
|
-
last_tested_at?: string | null;
|
|
4444
|
-
name: string;
|
|
4445
|
-
password?: string | null;
|
|
4446
|
-
password_secret_name?: string | null;
|
|
4447
|
-
port?: number;
|
|
4448
|
-
updated_at?: string;
|
|
4449
|
-
use_tls?: boolean;
|
|
4450
|
-
username: string;
|
|
4799
|
+
role_id: string;
|
|
4800
|
+
user_id: string;
|
|
4451
4801
|
};
|
|
4452
4802
|
Update: {
|
|
4453
4803
|
created_at?: string;
|
|
4454
|
-
email?: string | null;
|
|
4455
|
-
host?: string;
|
|
4456
4804
|
id?: string;
|
|
4457
|
-
|
|
4458
|
-
|
|
4459
|
-
|
|
4460
|
-
|
|
4461
|
-
|
|
4805
|
+
role_id?: string;
|
|
4806
|
+
user_id?: string;
|
|
4807
|
+
};
|
|
4808
|
+
Relationships: [{
|
|
4809
|
+
foreignKeyName: "flow_role_assignments_role_id_fkey";
|
|
4810
|
+
columns: ["role_id"];
|
|
4811
|
+
isOneToOne: false;
|
|
4812
|
+
referencedRelation: "flow_roles";
|
|
4813
|
+
referencedColumns: ["id"];
|
|
4814
|
+
}];
|
|
4815
|
+
};
|
|
4816
|
+
flow_roles: {
|
|
4817
|
+
Row: {
|
|
4818
|
+
created_at: string;
|
|
4819
|
+
description: string | null;
|
|
4820
|
+
id: string;
|
|
4821
|
+
module_access: string[];
|
|
4822
|
+
name: string;
|
|
4823
|
+
updated_at: string;
|
|
4824
|
+
};
|
|
4825
|
+
Insert: {
|
|
4826
|
+
created_at?: string;
|
|
4827
|
+
description?: string | null;
|
|
4828
|
+
id?: string;
|
|
4829
|
+
module_access?: string[];
|
|
4830
|
+
name: string;
|
|
4831
|
+
updated_at?: string;
|
|
4832
|
+
};
|
|
4833
|
+
Update: {
|
|
4834
|
+
created_at?: string;
|
|
4835
|
+
description?: string | null;
|
|
4836
|
+
id?: string;
|
|
4837
|
+
module_access?: string[];
|
|
4838
|
+
name?: string;
|
|
4839
|
+
updated_at?: string;
|
|
4840
|
+
};
|
|
4841
|
+
Relationships: [];
|
|
4842
|
+
};
|
|
4843
|
+
imap_accounts: {
|
|
4844
|
+
Row: {
|
|
4845
|
+
created_at: string;
|
|
4846
|
+
email: string | null;
|
|
4847
|
+
host: string;
|
|
4848
|
+
id: string;
|
|
4849
|
+
is_active: boolean;
|
|
4850
|
+
last_test_error: string | null;
|
|
4851
|
+
last_test_ok: boolean | null;
|
|
4852
|
+
last_tested_at: string | null;
|
|
4853
|
+
name: string;
|
|
4854
|
+
password: string | null;
|
|
4855
|
+
password_secret_name: string | null;
|
|
4856
|
+
port: number;
|
|
4857
|
+
updated_at: string;
|
|
4858
|
+
use_tls: boolean;
|
|
4859
|
+
username: string;
|
|
4860
|
+
};
|
|
4861
|
+
Insert: {
|
|
4862
|
+
created_at?: string;
|
|
4863
|
+
email?: string | null;
|
|
4864
|
+
host: string;
|
|
4865
|
+
id?: string;
|
|
4866
|
+
is_active?: boolean;
|
|
4867
|
+
last_test_error?: string | null;
|
|
4868
|
+
last_test_ok?: boolean | null;
|
|
4869
|
+
last_tested_at?: string | null;
|
|
4870
|
+
name: string;
|
|
4871
|
+
password?: string | null;
|
|
4872
|
+
password_secret_name?: string | null;
|
|
4873
|
+
port?: number;
|
|
4874
|
+
updated_at?: string;
|
|
4875
|
+
use_tls?: boolean;
|
|
4876
|
+
username: string;
|
|
4877
|
+
};
|
|
4878
|
+
Update: {
|
|
4879
|
+
created_at?: string;
|
|
4880
|
+
email?: string | null;
|
|
4881
|
+
host?: string;
|
|
4882
|
+
id?: string;
|
|
4883
|
+
is_active?: boolean;
|
|
4884
|
+
last_test_error?: string | null;
|
|
4885
|
+
last_test_ok?: boolean | null;
|
|
4886
|
+
last_tested_at?: string | null;
|
|
4887
|
+
name?: string;
|
|
4462
4888
|
password?: string | null;
|
|
4463
4889
|
password_secret_name?: string | null;
|
|
4464
4890
|
port?: number;
|
|
@@ -4735,6 +5161,204 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
|
|
|
4735
5161
|
};
|
|
4736
5162
|
Relationships: [];
|
|
4737
5163
|
};
|
|
5164
|
+
local_customer_agreements: {
|
|
5165
|
+
Row: {
|
|
5166
|
+
base_price: number | null;
|
|
5167
|
+
created_at: string;
|
|
5168
|
+
currency: string;
|
|
5169
|
+
customer_id: string;
|
|
5170
|
+
id: string;
|
|
5171
|
+
min_quantity: number;
|
|
5172
|
+
net_price: number;
|
|
5173
|
+
notes: string | null;
|
|
5174
|
+
product_category_id: string | null;
|
|
5175
|
+
product_id: string | null;
|
|
5176
|
+
updated_at: string;
|
|
5177
|
+
valid_from: string | null;
|
|
5178
|
+
valid_until: string | null;
|
|
5179
|
+
};
|
|
5180
|
+
Insert: {
|
|
5181
|
+
base_price?: number | null;
|
|
5182
|
+
created_at?: string;
|
|
5183
|
+
currency?: string;
|
|
5184
|
+
customer_id: string;
|
|
5185
|
+
id?: string;
|
|
5186
|
+
min_quantity?: number;
|
|
5187
|
+
net_price: number;
|
|
5188
|
+
notes?: string | null;
|
|
5189
|
+
product_category_id?: string | null;
|
|
5190
|
+
product_id?: string | null;
|
|
5191
|
+
updated_at?: string;
|
|
5192
|
+
valid_from?: string | null;
|
|
5193
|
+
valid_until?: string | null;
|
|
5194
|
+
};
|
|
5195
|
+
Update: {
|
|
5196
|
+
base_price?: number | null;
|
|
5197
|
+
created_at?: string;
|
|
5198
|
+
currency?: string;
|
|
5199
|
+
customer_id?: string;
|
|
5200
|
+
id?: string;
|
|
5201
|
+
min_quantity?: number;
|
|
5202
|
+
net_price?: number;
|
|
5203
|
+
notes?: string | null;
|
|
5204
|
+
product_category_id?: string | null;
|
|
5205
|
+
product_id?: string | null;
|
|
5206
|
+
updated_at?: string;
|
|
5207
|
+
valid_from?: string | null;
|
|
5208
|
+
valid_until?: string | null;
|
|
5209
|
+
};
|
|
5210
|
+
Relationships: [{
|
|
5211
|
+
foreignKeyName: "local_customer_agreements_customer_id_fkey";
|
|
5212
|
+
columns: ["customer_id"];
|
|
5213
|
+
isOneToOne: false;
|
|
5214
|
+
referencedRelation: "customers";
|
|
5215
|
+
referencedColumns: ["id"];
|
|
5216
|
+
}, {
|
|
5217
|
+
foreignKeyName: "local_customer_agreements_product_category_id_fkey";
|
|
5218
|
+
columns: ["product_category_id"];
|
|
5219
|
+
isOneToOne: false;
|
|
5220
|
+
referencedRelation: "product_categories";
|
|
5221
|
+
referencedColumns: ["id"];
|
|
5222
|
+
}, {
|
|
5223
|
+
foreignKeyName: "local_customer_agreements_product_id_fkey";
|
|
5224
|
+
columns: ["product_id"];
|
|
5225
|
+
isOneToOne: false;
|
|
5226
|
+
referencedRelation: "products";
|
|
5227
|
+
referencedColumns: ["id"];
|
|
5228
|
+
}];
|
|
5229
|
+
};
|
|
5230
|
+
local_customer_price_groups: {
|
|
5231
|
+
Row: {
|
|
5232
|
+
created_at: string;
|
|
5233
|
+
currency: string;
|
|
5234
|
+
customer_id: string;
|
|
5235
|
+
discount_type: string;
|
|
5236
|
+
discount_value: number;
|
|
5237
|
+
id: string;
|
|
5238
|
+
min_quantity: number;
|
|
5239
|
+
notes: string | null;
|
|
5240
|
+
product_category_id: string | null;
|
|
5241
|
+
product_id: string | null;
|
|
5242
|
+
updated_at: string;
|
|
5243
|
+
valid_from: string | null;
|
|
5244
|
+
valid_until: string | null;
|
|
5245
|
+
};
|
|
5246
|
+
Insert: {
|
|
5247
|
+
created_at?: string;
|
|
5248
|
+
currency?: string;
|
|
5249
|
+
customer_id: string;
|
|
5250
|
+
discount_type: string;
|
|
5251
|
+
discount_value: number;
|
|
5252
|
+
id?: string;
|
|
5253
|
+
min_quantity?: number;
|
|
5254
|
+
notes?: string | null;
|
|
5255
|
+
product_category_id?: string | null;
|
|
5256
|
+
product_id?: string | null;
|
|
5257
|
+
updated_at?: string;
|
|
5258
|
+
valid_from?: string | null;
|
|
5259
|
+
valid_until?: string | null;
|
|
5260
|
+
};
|
|
5261
|
+
Update: {
|
|
5262
|
+
created_at?: string;
|
|
5263
|
+
currency?: string;
|
|
5264
|
+
customer_id?: string;
|
|
5265
|
+
discount_type?: string;
|
|
5266
|
+
discount_value?: number;
|
|
5267
|
+
id?: string;
|
|
5268
|
+
min_quantity?: number;
|
|
5269
|
+
notes?: string | null;
|
|
5270
|
+
product_category_id?: string | null;
|
|
5271
|
+
product_id?: string | null;
|
|
5272
|
+
updated_at?: string;
|
|
5273
|
+
valid_from?: string | null;
|
|
5274
|
+
valid_until?: string | null;
|
|
5275
|
+
};
|
|
5276
|
+
Relationships: [{
|
|
5277
|
+
foreignKeyName: "local_customer_price_groups_customer_id_fkey";
|
|
5278
|
+
columns: ["customer_id"];
|
|
5279
|
+
isOneToOne: false;
|
|
5280
|
+
referencedRelation: "customers";
|
|
5281
|
+
referencedColumns: ["id"];
|
|
5282
|
+
}, {
|
|
5283
|
+
foreignKeyName: "local_customer_price_groups_product_category_id_fkey";
|
|
5284
|
+
columns: ["product_category_id"];
|
|
5285
|
+
isOneToOne: false;
|
|
5286
|
+
referencedRelation: "product_categories";
|
|
5287
|
+
referencedColumns: ["id"];
|
|
5288
|
+
}, {
|
|
5289
|
+
foreignKeyName: "local_customer_price_groups_product_id_fkey";
|
|
5290
|
+
columns: ["product_id"];
|
|
5291
|
+
isOneToOne: false;
|
|
5292
|
+
referencedRelation: "products";
|
|
5293
|
+
referencedColumns: ["id"];
|
|
5294
|
+
}];
|
|
5295
|
+
};
|
|
5296
|
+
local_customer_sales_strategies: {
|
|
5297
|
+
Row: {
|
|
5298
|
+
created_at: string;
|
|
5299
|
+
currency: string;
|
|
5300
|
+
customer_id: string;
|
|
5301
|
+
discount_type: string;
|
|
5302
|
+
discount_value: number;
|
|
5303
|
+
id: string;
|
|
5304
|
+
min_quantity: number;
|
|
5305
|
+
notes: string | null;
|
|
5306
|
+
product_category_id: string | null;
|
|
5307
|
+
product_id: string | null;
|
|
5308
|
+
updated_at: string;
|
|
5309
|
+
valid_from: string | null;
|
|
5310
|
+
valid_until: string | null;
|
|
5311
|
+
};
|
|
5312
|
+
Insert: {
|
|
5313
|
+
created_at?: string;
|
|
5314
|
+
currency?: string;
|
|
5315
|
+
customer_id: string;
|
|
5316
|
+
discount_type: string;
|
|
5317
|
+
discount_value: number;
|
|
5318
|
+
id?: string;
|
|
5319
|
+
min_quantity?: number;
|
|
5320
|
+
notes?: string | null;
|
|
5321
|
+
product_category_id?: string | null;
|
|
5322
|
+
product_id?: string | null;
|
|
5323
|
+
updated_at?: string;
|
|
5324
|
+
valid_from?: string | null;
|
|
5325
|
+
valid_until?: string | null;
|
|
5326
|
+
};
|
|
5327
|
+
Update: {
|
|
5328
|
+
created_at?: string;
|
|
5329
|
+
currency?: string;
|
|
5330
|
+
customer_id?: string;
|
|
5331
|
+
discount_type?: string;
|
|
5332
|
+
discount_value?: number;
|
|
5333
|
+
id?: string;
|
|
5334
|
+
min_quantity?: number;
|
|
5335
|
+
notes?: string | null;
|
|
5336
|
+
product_category_id?: string | null;
|
|
5337
|
+
product_id?: string | null;
|
|
5338
|
+
updated_at?: string;
|
|
5339
|
+
valid_from?: string | null;
|
|
5340
|
+
valid_until?: string | null;
|
|
5341
|
+
};
|
|
5342
|
+
Relationships: [{
|
|
5343
|
+
foreignKeyName: "local_customer_sales_strategies_customer_id_fkey";
|
|
5344
|
+
columns: ["customer_id"];
|
|
5345
|
+
isOneToOne: false;
|
|
5346
|
+
referencedRelation: "customers";
|
|
5347
|
+
referencedColumns: ["id"];
|
|
5348
|
+
}, {
|
|
5349
|
+
foreignKeyName: "local_customer_sales_strategies_product_category_id_fkey";
|
|
5350
|
+
columns: ["product_category_id"];
|
|
5351
|
+
isOneToOne: false;
|
|
5352
|
+
referencedRelation: "product_categories";
|
|
5353
|
+
referencedColumns: ["id"];
|
|
5354
|
+
}, {
|
|
5355
|
+
foreignKeyName: "local_customer_sales_strategies_product_id_fkey";
|
|
5356
|
+
columns: ["product_id"];
|
|
5357
|
+
isOneToOne: false;
|
|
5358
|
+
referencedRelation: "products";
|
|
5359
|
+
referencedColumns: ["id"];
|
|
5360
|
+
}];
|
|
5361
|
+
};
|
|
4738
5362
|
locations: {
|
|
4739
5363
|
Row: {
|
|
4740
5364
|
created_at: string;
|
|
@@ -4847,6 +5471,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
|
|
|
4847
5471
|
matched_customer_id: string | null;
|
|
4848
5472
|
message_id: string;
|
|
4849
5473
|
notes: string | null;
|
|
5474
|
+
order_number: string | null;
|
|
4850
5475
|
parsed_payload: import("./types").Json | null;
|
|
4851
5476
|
reviewed_at: string | null;
|
|
4852
5477
|
reviewed_by: string | null;
|
|
@@ -4862,6 +5487,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
|
|
|
4862
5487
|
matched_customer_id?: string | null;
|
|
4863
5488
|
message_id: string;
|
|
4864
5489
|
notes?: string | null;
|
|
5490
|
+
order_number?: string | null;
|
|
4865
5491
|
parsed_payload?: import("./types").Json | null;
|
|
4866
5492
|
reviewed_at?: string | null;
|
|
4867
5493
|
reviewed_by?: string | null;
|
|
@@ -4877,6 +5503,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
|
|
|
4877
5503
|
matched_customer_id?: string | null;
|
|
4878
5504
|
message_id?: string;
|
|
4879
5505
|
notes?: string | null;
|
|
5506
|
+
order_number?: string | null;
|
|
4880
5507
|
parsed_payload?: import("./types").Json | null;
|
|
4881
5508
|
reviewed_at?: string | null;
|
|
4882
5509
|
reviewed_by?: string | null;
|
|
@@ -5050,110 +5677,464 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
|
|
|
5050
5677
|
referencedColumns: ["id"];
|
|
5051
5678
|
}];
|
|
5052
5679
|
};
|
|
5053
|
-
mailbox_settings: {
|
|
5680
|
+
mailbox_settings: {
|
|
5681
|
+
Row: {
|
|
5682
|
+
created_at: string;
|
|
5683
|
+
folder: string;
|
|
5684
|
+
id: string;
|
|
5685
|
+
imap_host: string;
|
|
5686
|
+
imap_port: number;
|
|
5687
|
+
imap_use_tls: boolean;
|
|
5688
|
+
imap_username: string;
|
|
5689
|
+
last_error: string | null;
|
|
5690
|
+
last_polled_at: string | null;
|
|
5691
|
+
last_uid_seen: number;
|
|
5692
|
+
polling_enabled: boolean;
|
|
5693
|
+
singleton: boolean;
|
|
5694
|
+
updated_at: string;
|
|
5695
|
+
};
|
|
5696
|
+
Insert: {
|
|
5697
|
+
created_at?: string;
|
|
5698
|
+
folder?: string;
|
|
5699
|
+
id?: string;
|
|
5700
|
+
imap_host?: string;
|
|
5701
|
+
imap_port?: number;
|
|
5702
|
+
imap_use_tls?: boolean;
|
|
5703
|
+
imap_username?: string;
|
|
5704
|
+
last_error?: string | null;
|
|
5705
|
+
last_polled_at?: string | null;
|
|
5706
|
+
last_uid_seen?: number;
|
|
5707
|
+
polling_enabled?: boolean;
|
|
5708
|
+
singleton?: boolean;
|
|
5709
|
+
updated_at?: string;
|
|
5710
|
+
};
|
|
5711
|
+
Update: {
|
|
5712
|
+
created_at?: string;
|
|
5713
|
+
folder?: string;
|
|
5714
|
+
id?: string;
|
|
5715
|
+
imap_host?: string;
|
|
5716
|
+
imap_port?: number;
|
|
5717
|
+
imap_use_tls?: boolean;
|
|
5718
|
+
imap_username?: string;
|
|
5719
|
+
last_error?: string | null;
|
|
5720
|
+
last_polled_at?: string | null;
|
|
5721
|
+
last_uid_seen?: number;
|
|
5722
|
+
polling_enabled?: boolean;
|
|
5723
|
+
singleton?: boolean;
|
|
5724
|
+
updated_at?: string;
|
|
5725
|
+
};
|
|
5726
|
+
Relationships: [];
|
|
5727
|
+
};
|
|
5728
|
+
manufacture_product_components: {
|
|
5729
|
+
Row: {
|
|
5730
|
+
component_type: string;
|
|
5731
|
+
created_at: string;
|
|
5732
|
+
id: string;
|
|
5733
|
+
manufacture_product_id: string;
|
|
5734
|
+
product_group_id: string | null;
|
|
5735
|
+
quantity: number;
|
|
5736
|
+
trade_item_id: string | null;
|
|
5737
|
+
unit: string;
|
|
5738
|
+
};
|
|
5739
|
+
Insert: {
|
|
5740
|
+
component_type: string;
|
|
5741
|
+
created_at?: string;
|
|
5742
|
+
id?: string;
|
|
5743
|
+
manufacture_product_id: string;
|
|
5744
|
+
product_group_id?: string | null;
|
|
5745
|
+
quantity?: number;
|
|
5746
|
+
trade_item_id?: string | null;
|
|
5747
|
+
unit?: string;
|
|
5748
|
+
};
|
|
5749
|
+
Update: {
|
|
5750
|
+
component_type?: string;
|
|
5751
|
+
created_at?: string;
|
|
5752
|
+
id?: string;
|
|
5753
|
+
manufacture_product_id?: string;
|
|
5754
|
+
product_group_id?: string | null;
|
|
5755
|
+
quantity?: number;
|
|
5756
|
+
trade_item_id?: string | null;
|
|
5757
|
+
unit?: string;
|
|
5758
|
+
};
|
|
5759
|
+
Relationships: [{
|
|
5760
|
+
foreignKeyName: "manufacture_product_components_manufacture_product_id_fkey";
|
|
5761
|
+
columns: ["manufacture_product_id"];
|
|
5762
|
+
isOneToOne: false;
|
|
5763
|
+
referencedRelation: "manufacture_product_possible_stock_view";
|
|
5764
|
+
referencedColumns: ["manufacture_product_id"];
|
|
5765
|
+
}, {
|
|
5766
|
+
foreignKeyName: "manufacture_product_components_manufacture_product_id_fkey";
|
|
5767
|
+
columns: ["manufacture_product_id"];
|
|
5768
|
+
isOneToOne: false;
|
|
5769
|
+
referencedRelation: "manufacture_products";
|
|
5770
|
+
referencedColumns: ["id"];
|
|
5771
|
+
}, {
|
|
5772
|
+
foreignKeyName: "manufacture_product_components_product_group_id_fkey";
|
|
5773
|
+
columns: ["product_group_id"];
|
|
5774
|
+
isOneToOne: false;
|
|
5775
|
+
referencedRelation: "product_groups";
|
|
5776
|
+
referencedColumns: ["id"];
|
|
5777
|
+
}];
|
|
5778
|
+
};
|
|
5779
|
+
manufacture_products: {
|
|
5780
|
+
Row: {
|
|
5781
|
+
created_at: string;
|
|
5782
|
+
description: string | null;
|
|
5783
|
+
id: string;
|
|
5784
|
+
is_active: boolean;
|
|
5785
|
+
name: string;
|
|
5786
|
+
produced_stock: number;
|
|
5787
|
+
product_code: string;
|
|
5788
|
+
tenant_id: string;
|
|
5789
|
+
updated_at: string;
|
|
5790
|
+
};
|
|
5791
|
+
Insert: {
|
|
5792
|
+
created_at?: string;
|
|
5793
|
+
description?: string | null;
|
|
5794
|
+
id?: string;
|
|
5795
|
+
is_active?: boolean;
|
|
5796
|
+
name: string;
|
|
5797
|
+
produced_stock?: number;
|
|
5798
|
+
product_code: string;
|
|
5799
|
+
tenant_id: string;
|
|
5800
|
+
updated_at?: string;
|
|
5801
|
+
};
|
|
5802
|
+
Update: {
|
|
5803
|
+
created_at?: string;
|
|
5804
|
+
description?: string | null;
|
|
5805
|
+
id?: string;
|
|
5806
|
+
is_active?: boolean;
|
|
5807
|
+
name?: string;
|
|
5808
|
+
produced_stock?: number;
|
|
5809
|
+
product_code?: string;
|
|
5810
|
+
tenant_id?: string;
|
|
5811
|
+
updated_at?: string;
|
|
5812
|
+
};
|
|
5813
|
+
Relationships: [];
|
|
5814
|
+
};
|
|
5815
|
+
monteurs: {
|
|
5816
|
+
Row: {
|
|
5817
|
+
avatar_url: string | null;
|
|
5818
|
+
color: string | null;
|
|
5819
|
+
created_at: string;
|
|
5820
|
+
email: string | null;
|
|
5821
|
+
id: string;
|
|
5822
|
+
is_active: boolean;
|
|
5823
|
+
leave_balance_hours: number;
|
|
5824
|
+
name: string;
|
|
5825
|
+
persnr: number | null;
|
|
5826
|
+
phone: string | null;
|
|
5827
|
+
role: string;
|
|
5828
|
+
tenant_id: string;
|
|
5829
|
+
updated_at: string;
|
|
5830
|
+
user_id: string | null;
|
|
5831
|
+
};
|
|
5832
|
+
Insert: {
|
|
5833
|
+
avatar_url?: string | null;
|
|
5834
|
+
color?: string | null;
|
|
5835
|
+
created_at?: string;
|
|
5836
|
+
email?: string | null;
|
|
5837
|
+
id?: string;
|
|
5838
|
+
is_active?: boolean;
|
|
5839
|
+
leave_balance_hours?: number;
|
|
5840
|
+
name: string;
|
|
5841
|
+
persnr?: number | null;
|
|
5842
|
+
phone?: string | null;
|
|
5843
|
+
role?: string;
|
|
5844
|
+
tenant_id: string;
|
|
5845
|
+
updated_at?: string;
|
|
5846
|
+
user_id?: string | null;
|
|
5847
|
+
};
|
|
5848
|
+
Update: {
|
|
5849
|
+
avatar_url?: string | null;
|
|
5850
|
+
color?: string | null;
|
|
5851
|
+
created_at?: string;
|
|
5852
|
+
email?: string | null;
|
|
5853
|
+
id?: string;
|
|
5854
|
+
is_active?: boolean;
|
|
5855
|
+
leave_balance_hours?: number;
|
|
5856
|
+
name?: string;
|
|
5857
|
+
persnr?: number | null;
|
|
5858
|
+
phone?: string | null;
|
|
5859
|
+
role?: string;
|
|
5860
|
+
tenant_id?: string;
|
|
5861
|
+
updated_at?: string;
|
|
5862
|
+
user_id?: string | null;
|
|
5863
|
+
};
|
|
5864
|
+
Relationships: [{
|
|
5865
|
+
foreignKeyName: "monteurs_tenant_id_fkey";
|
|
5866
|
+
columns: ["tenant_id"];
|
|
5867
|
+
isOneToOne: false;
|
|
5868
|
+
referencedRelation: "tenants";
|
|
5869
|
+
referencedColumns: ["id"];
|
|
5870
|
+
}];
|
|
5871
|
+
};
|
|
5872
|
+
nmbrs_component_mapping: {
|
|
5873
|
+
Row: {
|
|
5874
|
+
created_at: string;
|
|
5875
|
+
id: string;
|
|
5876
|
+
source_kind: string;
|
|
5877
|
+
source_value: string | null;
|
|
5878
|
+
updated_at: string;
|
|
5879
|
+
wage_code: string;
|
|
5880
|
+
};
|
|
5881
|
+
Insert: {
|
|
5882
|
+
created_at?: string;
|
|
5883
|
+
id?: string;
|
|
5884
|
+
source_kind: string;
|
|
5885
|
+
source_value?: string | null;
|
|
5886
|
+
updated_at?: string;
|
|
5887
|
+
wage_code: string;
|
|
5888
|
+
};
|
|
5889
|
+
Update: {
|
|
5890
|
+
created_at?: string;
|
|
5891
|
+
id?: string;
|
|
5892
|
+
source_kind?: string;
|
|
5893
|
+
source_value?: string | null;
|
|
5894
|
+
updated_at?: string;
|
|
5895
|
+
wage_code?: string;
|
|
5896
|
+
};
|
|
5897
|
+
Relationships: [{
|
|
5898
|
+
foreignKeyName: "nmbrs_component_mapping_wage_code_fkey";
|
|
5899
|
+
columns: ["wage_code"];
|
|
5900
|
+
isOneToOne: false;
|
|
5901
|
+
referencedRelation: "nmbrs_wage_components";
|
|
5902
|
+
referencedColumns: ["code"];
|
|
5903
|
+
}];
|
|
5904
|
+
};
|
|
5905
|
+
nmbrs_employee_mapping: {
|
|
5906
|
+
Row: {
|
|
5907
|
+
active_from: string | null;
|
|
5908
|
+
active_to: string | null;
|
|
5909
|
+
contract_hours_per_week: number | null;
|
|
5910
|
+
created_at: string;
|
|
5911
|
+
hourly_wage: number | null;
|
|
5912
|
+
id: string;
|
|
5913
|
+
monteur_id: string;
|
|
5914
|
+
nmbrs_company_code: string | null;
|
|
5915
|
+
nmbrs_employee_number: string;
|
|
5916
|
+
updated_at: string;
|
|
5917
|
+
};
|
|
5918
|
+
Insert: {
|
|
5919
|
+
active_from?: string | null;
|
|
5920
|
+
active_to?: string | null;
|
|
5921
|
+
contract_hours_per_week?: number | null;
|
|
5922
|
+
created_at?: string;
|
|
5923
|
+
hourly_wage?: number | null;
|
|
5924
|
+
id?: string;
|
|
5925
|
+
monteur_id: string;
|
|
5926
|
+
nmbrs_company_code?: string | null;
|
|
5927
|
+
nmbrs_employee_number: string;
|
|
5928
|
+
updated_at?: string;
|
|
5929
|
+
};
|
|
5930
|
+
Update: {
|
|
5931
|
+
active_from?: string | null;
|
|
5932
|
+
active_to?: string | null;
|
|
5933
|
+
contract_hours_per_week?: number | null;
|
|
5934
|
+
created_at?: string;
|
|
5935
|
+
hourly_wage?: number | null;
|
|
5936
|
+
id?: string;
|
|
5937
|
+
monteur_id?: string;
|
|
5938
|
+
nmbrs_company_code?: string | null;
|
|
5939
|
+
nmbrs_employee_number?: string;
|
|
5940
|
+
updated_at?: string;
|
|
5941
|
+
};
|
|
5942
|
+
Relationships: [{
|
|
5943
|
+
foreignKeyName: "nmbrs_employee_mapping_monteur_id_fkey";
|
|
5944
|
+
columns: ["monteur_id"];
|
|
5945
|
+
isOneToOne: true;
|
|
5946
|
+
referencedRelation: "monteurs";
|
|
5947
|
+
referencedColumns: ["id"];
|
|
5948
|
+
}];
|
|
5949
|
+
};
|
|
5950
|
+
nmbrs_export_lines: {
|
|
5951
|
+
Row: {
|
|
5952
|
+
amount: number;
|
|
5953
|
+
created_at: string;
|
|
5954
|
+
entry_date: string;
|
|
5955
|
+
hours: number;
|
|
5956
|
+
id: string;
|
|
5957
|
+
monteur_id: string;
|
|
5958
|
+
nmbrs_employee_number: string | null;
|
|
5959
|
+
notes: string | null;
|
|
5960
|
+
run_id: string;
|
|
5961
|
+
source_kind: string | null;
|
|
5962
|
+
source_ref_id: string | null;
|
|
5963
|
+
updated_at: string;
|
|
5964
|
+
wage_code: string;
|
|
5965
|
+
};
|
|
5966
|
+
Insert: {
|
|
5967
|
+
amount?: number;
|
|
5968
|
+
created_at?: string;
|
|
5969
|
+
entry_date: string;
|
|
5970
|
+
hours?: number;
|
|
5971
|
+
id?: string;
|
|
5972
|
+
monteur_id: string;
|
|
5973
|
+
nmbrs_employee_number?: string | null;
|
|
5974
|
+
notes?: string | null;
|
|
5975
|
+
run_id: string;
|
|
5976
|
+
source_kind?: string | null;
|
|
5977
|
+
source_ref_id?: string | null;
|
|
5978
|
+
updated_at?: string;
|
|
5979
|
+
wage_code: string;
|
|
5980
|
+
};
|
|
5981
|
+
Update: {
|
|
5982
|
+
amount?: number;
|
|
5983
|
+
created_at?: string;
|
|
5984
|
+
entry_date?: string;
|
|
5985
|
+
hours?: number;
|
|
5986
|
+
id?: string;
|
|
5987
|
+
monteur_id?: string;
|
|
5988
|
+
nmbrs_employee_number?: string | null;
|
|
5989
|
+
notes?: string | null;
|
|
5990
|
+
run_id?: string;
|
|
5991
|
+
source_kind?: string | null;
|
|
5992
|
+
source_ref_id?: string | null;
|
|
5993
|
+
updated_at?: string;
|
|
5994
|
+
wage_code?: string;
|
|
5995
|
+
};
|
|
5996
|
+
Relationships: [{
|
|
5997
|
+
foreignKeyName: "nmbrs_export_lines_monteur_id_fkey";
|
|
5998
|
+
columns: ["monteur_id"];
|
|
5999
|
+
isOneToOne: false;
|
|
6000
|
+
referencedRelation: "monteurs";
|
|
6001
|
+
referencedColumns: ["id"];
|
|
6002
|
+
}, {
|
|
6003
|
+
foreignKeyName: "nmbrs_export_lines_run_id_fkey";
|
|
6004
|
+
columns: ["run_id"];
|
|
6005
|
+
isOneToOne: false;
|
|
6006
|
+
referencedRelation: "nmbrs_export_runs";
|
|
6007
|
+
referencedColumns: ["id"];
|
|
6008
|
+
}, {
|
|
6009
|
+
foreignKeyName: "nmbrs_export_lines_wage_code_fkey";
|
|
6010
|
+
columns: ["wage_code"];
|
|
6011
|
+
isOneToOne: false;
|
|
6012
|
+
referencedRelation: "nmbrs_wage_components";
|
|
6013
|
+
referencedColumns: ["code"];
|
|
6014
|
+
}];
|
|
6015
|
+
};
|
|
6016
|
+
nmbrs_export_runs: {
|
|
6017
|
+
Row: {
|
|
6018
|
+
created_at: string;
|
|
6019
|
+
file_name: string | null;
|
|
6020
|
+
generated_at: string;
|
|
6021
|
+
generated_by: string | null;
|
|
6022
|
+
id: string;
|
|
6023
|
+
notes: string | null;
|
|
6024
|
+
period_end: string;
|
|
6025
|
+
period_label: string;
|
|
6026
|
+
period_start: string;
|
|
6027
|
+
status: string;
|
|
6028
|
+
total_hours: number;
|
|
6029
|
+
total_lines: number;
|
|
6030
|
+
updated_at: string;
|
|
6031
|
+
};
|
|
6032
|
+
Insert: {
|
|
6033
|
+
created_at?: string;
|
|
6034
|
+
file_name?: string | null;
|
|
6035
|
+
generated_at?: string;
|
|
6036
|
+
generated_by?: string | null;
|
|
6037
|
+
id?: string;
|
|
6038
|
+
notes?: string | null;
|
|
6039
|
+
period_end: string;
|
|
6040
|
+
period_label: string;
|
|
6041
|
+
period_start: string;
|
|
6042
|
+
status?: string;
|
|
6043
|
+
total_hours?: number;
|
|
6044
|
+
total_lines?: number;
|
|
6045
|
+
updated_at?: string;
|
|
6046
|
+
};
|
|
6047
|
+
Update: {
|
|
6048
|
+
created_at?: string;
|
|
6049
|
+
file_name?: string | null;
|
|
6050
|
+
generated_at?: string;
|
|
6051
|
+
generated_by?: string | null;
|
|
6052
|
+
id?: string;
|
|
6053
|
+
notes?: string | null;
|
|
6054
|
+
period_end?: string;
|
|
6055
|
+
period_label?: string;
|
|
6056
|
+
period_start?: string;
|
|
6057
|
+
status?: string;
|
|
6058
|
+
total_hours?: number;
|
|
6059
|
+
total_lines?: number;
|
|
6060
|
+
updated_at?: string;
|
|
6061
|
+
};
|
|
6062
|
+
Relationships: [];
|
|
6063
|
+
};
|
|
6064
|
+
nmbrs_settings: {
|
|
5054
6065
|
Row: {
|
|
5055
6066
|
created_at: string;
|
|
5056
|
-
|
|
5057
|
-
id:
|
|
5058
|
-
|
|
5059
|
-
|
|
5060
|
-
|
|
5061
|
-
|
|
5062
|
-
last_error: string | null;
|
|
5063
|
-
last_polled_at: string | null;
|
|
5064
|
-
last_uid_seen: number;
|
|
5065
|
-
polling_enabled: boolean;
|
|
5066
|
-
singleton: boolean;
|
|
6067
|
+
default_company_code: string | null;
|
|
6068
|
+
id: boolean;
|
|
6069
|
+
include_travel: boolean;
|
|
6070
|
+
overtime_threshold_daily: number;
|
|
6071
|
+
overtime_threshold_weekly: number;
|
|
6072
|
+
period_type: string;
|
|
5067
6073
|
updated_at: string;
|
|
6074
|
+
updated_by: string | null;
|
|
6075
|
+
week_start_day: number;
|
|
5068
6076
|
};
|
|
5069
6077
|
Insert: {
|
|
5070
6078
|
created_at?: string;
|
|
5071
|
-
|
|
5072
|
-
id?:
|
|
5073
|
-
|
|
5074
|
-
|
|
5075
|
-
|
|
5076
|
-
|
|
5077
|
-
last_error?: string | null;
|
|
5078
|
-
last_polled_at?: string | null;
|
|
5079
|
-
last_uid_seen?: number;
|
|
5080
|
-
polling_enabled?: boolean;
|
|
5081
|
-
singleton?: boolean;
|
|
6079
|
+
default_company_code?: string | null;
|
|
6080
|
+
id?: boolean;
|
|
6081
|
+
include_travel?: boolean;
|
|
6082
|
+
overtime_threshold_daily?: number;
|
|
6083
|
+
overtime_threshold_weekly?: number;
|
|
6084
|
+
period_type?: string;
|
|
5082
6085
|
updated_at?: string;
|
|
6086
|
+
updated_by?: string | null;
|
|
6087
|
+
week_start_day?: number;
|
|
5083
6088
|
};
|
|
5084
6089
|
Update: {
|
|
5085
6090
|
created_at?: string;
|
|
5086
|
-
|
|
5087
|
-
id?:
|
|
5088
|
-
|
|
5089
|
-
|
|
5090
|
-
|
|
5091
|
-
|
|
5092
|
-
last_error?: string | null;
|
|
5093
|
-
last_polled_at?: string | null;
|
|
5094
|
-
last_uid_seen?: number;
|
|
5095
|
-
polling_enabled?: boolean;
|
|
5096
|
-
singleton?: boolean;
|
|
6091
|
+
default_company_code?: string | null;
|
|
6092
|
+
id?: boolean;
|
|
6093
|
+
include_travel?: boolean;
|
|
6094
|
+
overtime_threshold_daily?: number;
|
|
6095
|
+
overtime_threshold_weekly?: number;
|
|
6096
|
+
period_type?: string;
|
|
5097
6097
|
updated_at?: string;
|
|
6098
|
+
updated_by?: string | null;
|
|
6099
|
+
week_start_day?: number;
|
|
5098
6100
|
};
|
|
5099
6101
|
Relationships: [];
|
|
5100
6102
|
};
|
|
5101
|
-
|
|
6103
|
+
nmbrs_wage_components: {
|
|
5102
6104
|
Row: {
|
|
5103
|
-
|
|
5104
|
-
|
|
6105
|
+
category: string;
|
|
6106
|
+
code: string;
|
|
5105
6107
|
created_at: string;
|
|
5106
|
-
email: string | null;
|
|
5107
6108
|
id: string;
|
|
5108
6109
|
is_active: boolean;
|
|
5109
|
-
|
|
5110
|
-
|
|
5111
|
-
|
|
5112
|
-
phone: string | null;
|
|
5113
|
-
role: string;
|
|
5114
|
-
tenant_id: string;
|
|
6110
|
+
label: string;
|
|
6111
|
+
sort_order: number;
|
|
6112
|
+
unit: string;
|
|
5115
6113
|
updated_at: string;
|
|
5116
|
-
user_id: string | null;
|
|
5117
6114
|
};
|
|
5118
6115
|
Insert: {
|
|
5119
|
-
|
|
5120
|
-
|
|
6116
|
+
category: string;
|
|
6117
|
+
code: string;
|
|
5121
6118
|
created_at?: string;
|
|
5122
|
-
email?: string | null;
|
|
5123
6119
|
id?: string;
|
|
5124
6120
|
is_active?: boolean;
|
|
5125
|
-
|
|
5126
|
-
|
|
5127
|
-
|
|
5128
|
-
phone?: string | null;
|
|
5129
|
-
role?: string;
|
|
5130
|
-
tenant_id: string;
|
|
6121
|
+
label: string;
|
|
6122
|
+
sort_order?: number;
|
|
6123
|
+
unit: string;
|
|
5131
6124
|
updated_at?: string;
|
|
5132
|
-
user_id?: string | null;
|
|
5133
6125
|
};
|
|
5134
6126
|
Update: {
|
|
5135
|
-
|
|
5136
|
-
|
|
6127
|
+
category?: string;
|
|
6128
|
+
code?: string;
|
|
5137
6129
|
created_at?: string;
|
|
5138
|
-
email?: string | null;
|
|
5139
6130
|
id?: string;
|
|
5140
6131
|
is_active?: boolean;
|
|
5141
|
-
|
|
5142
|
-
|
|
5143
|
-
|
|
5144
|
-
phone?: string | null;
|
|
5145
|
-
role?: string;
|
|
5146
|
-
tenant_id?: string;
|
|
6132
|
+
label?: string;
|
|
6133
|
+
sort_order?: number;
|
|
6134
|
+
unit?: string;
|
|
5147
6135
|
updated_at?: string;
|
|
5148
|
-
user_id?: string | null;
|
|
5149
6136
|
};
|
|
5150
|
-
Relationships: [
|
|
5151
|
-
foreignKeyName: "monteurs_tenant_id_fkey";
|
|
5152
|
-
columns: ["tenant_id"];
|
|
5153
|
-
isOneToOne: false;
|
|
5154
|
-
referencedRelation: "tenants";
|
|
5155
|
-
referencedColumns: ["id"];
|
|
5156
|
-
}];
|
|
6137
|
+
Relationships: [];
|
|
5157
6138
|
};
|
|
5158
6139
|
notifications: {
|
|
5159
6140
|
Row: {
|
|
@@ -5379,6 +6360,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
|
|
|
5379
6360
|
id: string;
|
|
5380
6361
|
items: import("./types").Json;
|
|
5381
6362
|
notes: string | null;
|
|
6363
|
+
order_number: string | null;
|
|
5382
6364
|
recipient_id: string;
|
|
5383
6365
|
total_amount: number;
|
|
5384
6366
|
};
|
|
@@ -5392,6 +6374,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
|
|
|
5392
6374
|
id?: string;
|
|
5393
6375
|
items?: import("./types").Json;
|
|
5394
6376
|
notes?: string | null;
|
|
6377
|
+
order_number?: string | null;
|
|
5395
6378
|
recipient_id: string;
|
|
5396
6379
|
total_amount?: number;
|
|
5397
6380
|
};
|
|
@@ -5405,6 +6388,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
|
|
|
5405
6388
|
id?: string;
|
|
5406
6389
|
items?: import("./types").Json;
|
|
5407
6390
|
notes?: string | null;
|
|
6391
|
+
order_number?: string | null;
|
|
5408
6392
|
recipient_id?: string;
|
|
5409
6393
|
total_amount?: number;
|
|
5410
6394
|
};
|
|
@@ -5564,6 +6548,9 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
|
|
|
5564
6548
|
crates_per_layer: number;
|
|
5565
6549
|
created_at: string;
|
|
5566
6550
|
id: string;
|
|
6551
|
+
layer_fraction: number;
|
|
6552
|
+
layer_share_pct: number;
|
|
6553
|
+
layers_per_cart: number;
|
|
5567
6554
|
order_item_id: string | null;
|
|
5568
6555
|
plants_per_crate: number;
|
|
5569
6556
|
product_id: string | null;
|
|
@@ -5575,6 +6562,9 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
|
|
|
5575
6562
|
crates_per_layer?: number;
|
|
5576
6563
|
created_at?: string;
|
|
5577
6564
|
id?: string;
|
|
6565
|
+
layer_fraction?: number;
|
|
6566
|
+
layer_share_pct?: number;
|
|
6567
|
+
layers_per_cart?: number;
|
|
5578
6568
|
order_item_id?: string | null;
|
|
5579
6569
|
plants_per_crate?: number;
|
|
5580
6570
|
product_id?: string | null;
|
|
@@ -5586,6 +6576,9 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
|
|
|
5586
6576
|
crates_per_layer?: number;
|
|
5587
6577
|
created_at?: string;
|
|
5588
6578
|
id?: string;
|
|
6579
|
+
layer_fraction?: number;
|
|
6580
|
+
layer_share_pct?: number;
|
|
6581
|
+
layers_per_cart?: number;
|
|
5589
6582
|
order_item_id?: string | null;
|
|
5590
6583
|
plants_per_crate?: number;
|
|
5591
6584
|
product_id?: string | null;
|
|
@@ -5613,33 +6606,45 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
|
|
|
5613
6606
|
};
|
|
5614
6607
|
order_carts: {
|
|
5615
6608
|
Row: {
|
|
6609
|
+
algorithm_version: number;
|
|
5616
6610
|
cart_number: number;
|
|
5617
6611
|
created_at: string;
|
|
5618
6612
|
id: string;
|
|
5619
6613
|
is_auto: boolean;
|
|
5620
6614
|
is_complete: boolean;
|
|
5621
6615
|
notes: string | null;
|
|
6616
|
+
occupancy_pct: number;
|
|
5622
6617
|
order_id: string;
|
|
6618
|
+
source: string;
|
|
6619
|
+
total_layers_used: number;
|
|
5623
6620
|
updated_at: string;
|
|
5624
6621
|
};
|
|
5625
6622
|
Insert: {
|
|
6623
|
+
algorithm_version?: number;
|
|
5626
6624
|
cart_number: number;
|
|
5627
6625
|
created_at?: string;
|
|
5628
6626
|
id?: string;
|
|
5629
6627
|
is_auto?: boolean;
|
|
5630
6628
|
is_complete?: boolean;
|
|
5631
6629
|
notes?: string | null;
|
|
6630
|
+
occupancy_pct?: number;
|
|
5632
6631
|
order_id: string;
|
|
6632
|
+
source?: string;
|
|
6633
|
+
total_layers_used?: number;
|
|
5633
6634
|
updated_at?: string;
|
|
5634
6635
|
};
|
|
5635
6636
|
Update: {
|
|
6637
|
+
algorithm_version?: number;
|
|
5636
6638
|
cart_number?: number;
|
|
5637
6639
|
created_at?: string;
|
|
5638
6640
|
id?: string;
|
|
5639
6641
|
is_auto?: boolean;
|
|
5640
6642
|
is_complete?: boolean;
|
|
5641
6643
|
notes?: string | null;
|
|
6644
|
+
occupancy_pct?: number;
|
|
5642
6645
|
order_id?: string;
|
|
6646
|
+
source?: string;
|
|
6647
|
+
total_layers_used?: number;
|
|
5643
6648
|
updated_at?: string;
|
|
5644
6649
|
};
|
|
5645
6650
|
Relationships: [{
|
|
@@ -6058,6 +7063,66 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
|
|
|
6058
7063
|
};
|
|
6059
7064
|
Relationships: [];
|
|
6060
7065
|
};
|
|
7066
|
+
product_group_items: {
|
|
7067
|
+
Row: {
|
|
7068
|
+
created_at: string;
|
|
7069
|
+
id: string;
|
|
7070
|
+
product_group_id: string;
|
|
7071
|
+
quantity: number;
|
|
7072
|
+
trade_item_id: string;
|
|
7073
|
+
};
|
|
7074
|
+
Insert: {
|
|
7075
|
+
created_at?: string;
|
|
7076
|
+
id?: string;
|
|
7077
|
+
product_group_id: string;
|
|
7078
|
+
quantity?: number;
|
|
7079
|
+
trade_item_id: string;
|
|
7080
|
+
};
|
|
7081
|
+
Update: {
|
|
7082
|
+
created_at?: string;
|
|
7083
|
+
id?: string;
|
|
7084
|
+
product_group_id?: string;
|
|
7085
|
+
quantity?: number;
|
|
7086
|
+
trade_item_id?: string;
|
|
7087
|
+
};
|
|
7088
|
+
Relationships: [{
|
|
7089
|
+
foreignKeyName: "product_group_items_product_group_id_fkey";
|
|
7090
|
+
columns: ["product_group_id"];
|
|
7091
|
+
isOneToOne: false;
|
|
7092
|
+
referencedRelation: "product_groups";
|
|
7093
|
+
referencedColumns: ["id"];
|
|
7094
|
+
}];
|
|
7095
|
+
};
|
|
7096
|
+
product_groups: {
|
|
7097
|
+
Row: {
|
|
7098
|
+
created_at: string;
|
|
7099
|
+
description: string | null;
|
|
7100
|
+
id: string;
|
|
7101
|
+
is_active: boolean;
|
|
7102
|
+
name: string;
|
|
7103
|
+
tenant_id: string;
|
|
7104
|
+
updated_at: string;
|
|
7105
|
+
};
|
|
7106
|
+
Insert: {
|
|
7107
|
+
created_at?: string;
|
|
7108
|
+
description?: string | null;
|
|
7109
|
+
id?: string;
|
|
7110
|
+
is_active?: boolean;
|
|
7111
|
+
name: string;
|
|
7112
|
+
tenant_id: string;
|
|
7113
|
+
updated_at?: string;
|
|
7114
|
+
};
|
|
7115
|
+
Update: {
|
|
7116
|
+
created_at?: string;
|
|
7117
|
+
description?: string | null;
|
|
7118
|
+
id?: string;
|
|
7119
|
+
is_active?: boolean;
|
|
7120
|
+
name?: string;
|
|
7121
|
+
tenant_id?: string;
|
|
7122
|
+
updated_at?: string;
|
|
7123
|
+
};
|
|
7124
|
+
Relationships: [];
|
|
7125
|
+
};
|
|
6061
7126
|
products: {
|
|
6062
7127
|
Row: {
|
|
6063
7128
|
barcode: string | null;
|
|
@@ -6077,6 +7142,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
|
|
|
6077
7142
|
purchase_price: number | null;
|
|
6078
7143
|
quantity: number;
|
|
6079
7144
|
sale_price: number | null;
|
|
7145
|
+
trade_item_key: string | null;
|
|
6080
7146
|
unit: string;
|
|
6081
7147
|
updated_at: string;
|
|
6082
7148
|
weight: string | null;
|
|
@@ -6099,6 +7165,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
|
|
|
6099
7165
|
purchase_price?: number | null;
|
|
6100
7166
|
quantity?: number;
|
|
6101
7167
|
sale_price?: number | null;
|
|
7168
|
+
trade_item_key?: string | null;
|
|
6102
7169
|
unit?: string;
|
|
6103
7170
|
updated_at?: string;
|
|
6104
7171
|
weight?: string | null;
|
|
@@ -6121,6 +7188,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
|
|
|
6121
7188
|
purchase_price?: number | null;
|
|
6122
7189
|
quantity?: number;
|
|
6123
7190
|
sale_price?: number | null;
|
|
7191
|
+
trade_item_key?: string | null;
|
|
6124
7192
|
unit?: string;
|
|
6125
7193
|
updated_at?: string;
|
|
6126
7194
|
weight?: string | null;
|
|
@@ -6133,6 +7201,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
|
|
|
6133
7201
|
display_name: string | null;
|
|
6134
7202
|
email: string | null;
|
|
6135
7203
|
id: string;
|
|
7204
|
+
is_superadmin: boolean;
|
|
6136
7205
|
notification_preferences: import("./types").Json;
|
|
6137
7206
|
tenant_id: string | null;
|
|
6138
7207
|
updated_at: string;
|
|
@@ -6142,6 +7211,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
|
|
|
6142
7211
|
display_name?: string | null;
|
|
6143
7212
|
email?: string | null;
|
|
6144
7213
|
id: string;
|
|
7214
|
+
is_superadmin?: boolean;
|
|
6145
7215
|
notification_preferences?: import("./types").Json;
|
|
6146
7216
|
tenant_id?: string | null;
|
|
6147
7217
|
updated_at?: string;
|
|
@@ -6151,6 +7221,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
|
|
|
6151
7221
|
display_name?: string | null;
|
|
6152
7222
|
email?: string | null;
|
|
6153
7223
|
id?: string;
|
|
7224
|
+
is_superadmin?: boolean;
|
|
6154
7225
|
notification_preferences?: import("./types").Json;
|
|
6155
7226
|
tenant_id?: string | null;
|
|
6156
7227
|
updated_at?: string;
|
|
@@ -6940,6 +8011,120 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
|
|
|
6940
8011
|
};
|
|
6941
8012
|
Relationships: [];
|
|
6942
8013
|
};
|
|
8014
|
+
sidebar_config: {
|
|
8015
|
+
Row: {
|
|
8016
|
+
id: string;
|
|
8017
|
+
module_order: string[];
|
|
8018
|
+
updated_at: string;
|
|
8019
|
+
};
|
|
8020
|
+
Insert: {
|
|
8021
|
+
id?: string;
|
|
8022
|
+
module_order?: string[];
|
|
8023
|
+
updated_at?: string;
|
|
8024
|
+
};
|
|
8025
|
+
Update: {
|
|
8026
|
+
id?: string;
|
|
8027
|
+
module_order?: string[];
|
|
8028
|
+
updated_at?: string;
|
|
8029
|
+
};
|
|
8030
|
+
Relationships: [];
|
|
8031
|
+
};
|
|
8032
|
+
stock_import_runs: {
|
|
8033
|
+
Row: {
|
|
8034
|
+
connection_id: string | null;
|
|
8035
|
+
created_at: string;
|
|
8036
|
+
created_rows: number;
|
|
8037
|
+
errors: import("./types").Json;
|
|
8038
|
+
filename: string | null;
|
|
8039
|
+
id: string;
|
|
8040
|
+
mutations: import("./types").Json;
|
|
8041
|
+
skipped_rows: number;
|
|
8042
|
+
total_rows: number;
|
|
8043
|
+
updated_rows: number;
|
|
8044
|
+
user_id: string;
|
|
8045
|
+
};
|
|
8046
|
+
Insert: {
|
|
8047
|
+
connection_id?: string | null;
|
|
8048
|
+
created_at?: string;
|
|
8049
|
+
created_rows?: number;
|
|
8050
|
+
errors?: import("./types").Json;
|
|
8051
|
+
filename?: string | null;
|
|
8052
|
+
id?: string;
|
|
8053
|
+
mutations?: import("./types").Json;
|
|
8054
|
+
skipped_rows?: number;
|
|
8055
|
+
total_rows?: number;
|
|
8056
|
+
updated_rows?: number;
|
|
8057
|
+
user_id: string;
|
|
8058
|
+
};
|
|
8059
|
+
Update: {
|
|
8060
|
+
connection_id?: string | null;
|
|
8061
|
+
created_at?: string;
|
|
8062
|
+
created_rows?: number;
|
|
8063
|
+
errors?: import("./types").Json;
|
|
8064
|
+
filename?: string | null;
|
|
8065
|
+
id?: string;
|
|
8066
|
+
mutations?: import("./types").Json;
|
|
8067
|
+
skipped_rows?: number;
|
|
8068
|
+
total_rows?: number;
|
|
8069
|
+
updated_rows?: number;
|
|
8070
|
+
user_id?: string;
|
|
8071
|
+
};
|
|
8072
|
+
Relationships: [];
|
|
8073
|
+
};
|
|
8074
|
+
stock_mutation_log: {
|
|
8075
|
+
Row: {
|
|
8076
|
+
connection_id: string | null;
|
|
8077
|
+
created_at: string;
|
|
8078
|
+
created_by: string | null;
|
|
8079
|
+
id: string;
|
|
8080
|
+
mutation_type: string;
|
|
8081
|
+
order_id: string | null;
|
|
8082
|
+
order_item_id: string | null;
|
|
8083
|
+
order_source: string | null;
|
|
8084
|
+
physical_after: number | null;
|
|
8085
|
+
physical_before: number | null;
|
|
8086
|
+
qty_delta: number;
|
|
8087
|
+
reason: string | null;
|
|
8088
|
+
reserved_after: number | null;
|
|
8089
|
+
reserved_before: number | null;
|
|
8090
|
+
trade_item_key: string | null;
|
|
8091
|
+
};
|
|
8092
|
+
Insert: {
|
|
8093
|
+
connection_id?: string | null;
|
|
8094
|
+
created_at?: string;
|
|
8095
|
+
created_by?: string | null;
|
|
8096
|
+
id?: string;
|
|
8097
|
+
mutation_type: string;
|
|
8098
|
+
order_id?: string | null;
|
|
8099
|
+
order_item_id?: string | null;
|
|
8100
|
+
order_source?: string | null;
|
|
8101
|
+
physical_after?: number | null;
|
|
8102
|
+
physical_before?: number | null;
|
|
8103
|
+
qty_delta: number;
|
|
8104
|
+
reason?: string | null;
|
|
8105
|
+
reserved_after?: number | null;
|
|
8106
|
+
reserved_before?: number | null;
|
|
8107
|
+
trade_item_key?: string | null;
|
|
8108
|
+
};
|
|
8109
|
+
Update: {
|
|
8110
|
+
connection_id?: string | null;
|
|
8111
|
+
created_at?: string;
|
|
8112
|
+
created_by?: string | null;
|
|
8113
|
+
id?: string;
|
|
8114
|
+
mutation_type?: string;
|
|
8115
|
+
order_id?: string | null;
|
|
8116
|
+
order_item_id?: string | null;
|
|
8117
|
+
order_source?: string | null;
|
|
8118
|
+
physical_after?: number | null;
|
|
8119
|
+
physical_before?: number | null;
|
|
8120
|
+
qty_delta?: number;
|
|
8121
|
+
reason?: string | null;
|
|
8122
|
+
reserved_after?: number | null;
|
|
8123
|
+
reserved_before?: number | null;
|
|
8124
|
+
trade_item_key?: string | null;
|
|
8125
|
+
};
|
|
8126
|
+
Relationships: [];
|
|
8127
|
+
};
|
|
6943
8128
|
supplier_products: {
|
|
6944
8129
|
Row: {
|
|
6945
8130
|
article_number: string | null;
|
|
@@ -7197,7 +8382,13 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
|
|
|
7197
8382
|
connection_id: string | null;
|
|
7198
8383
|
created_at: string;
|
|
7199
8384
|
data: import("./types").Json;
|
|
8385
|
+
floriday_id: string | null;
|
|
8386
|
+
floriday_link_error: string | null;
|
|
8387
|
+
floriday_link_status: string;
|
|
7200
8388
|
id: string;
|
|
8389
|
+
last_floriday_sync_at: string | null;
|
|
8390
|
+
missing_required_fields: string[];
|
|
8391
|
+
source: string;
|
|
7201
8392
|
updated_at: string;
|
|
7202
8393
|
user_id: string;
|
|
7203
8394
|
};
|
|
@@ -7205,15 +8396,69 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
|
|
|
7205
8396
|
connection_id?: string | null;
|
|
7206
8397
|
created_at?: string;
|
|
7207
8398
|
data?: import("./types").Json;
|
|
8399
|
+
floriday_id?: string | null;
|
|
8400
|
+
floriday_link_error?: string | null;
|
|
8401
|
+
floriday_link_status?: string;
|
|
7208
8402
|
id?: string;
|
|
8403
|
+
last_floriday_sync_at?: string | null;
|
|
8404
|
+
missing_required_fields?: string[];
|
|
8405
|
+
source?: string;
|
|
7209
8406
|
updated_at?: string;
|
|
7210
8407
|
user_id: string;
|
|
7211
8408
|
};
|
|
7212
8409
|
Update: {
|
|
7213
8410
|
connection_id?: string | null;
|
|
7214
8411
|
created_at?: string;
|
|
7215
|
-
data?: import("./types").Json;
|
|
8412
|
+
data?: import("./types").Json;
|
|
8413
|
+
floriday_id?: string | null;
|
|
8414
|
+
floriday_link_error?: string | null;
|
|
8415
|
+
floriday_link_status?: string;
|
|
8416
|
+
id?: string;
|
|
8417
|
+
last_floriday_sync_at?: string | null;
|
|
8418
|
+
missing_required_fields?: string[];
|
|
8419
|
+
source?: string;
|
|
8420
|
+
updated_at?: string;
|
|
8421
|
+
user_id?: string;
|
|
8422
|
+
};
|
|
8423
|
+
Relationships: [];
|
|
8424
|
+
};
|
|
8425
|
+
trade_item_stock: {
|
|
8426
|
+
Row: {
|
|
8427
|
+
connection_id: string;
|
|
8428
|
+
created_at: string;
|
|
8429
|
+
id: string;
|
|
8430
|
+
incoming_stock: number;
|
|
8431
|
+
minimum_stock: number;
|
|
8432
|
+
notes: string | null;
|
|
8433
|
+
physical_stock: number;
|
|
8434
|
+
reserved_stock: number;
|
|
8435
|
+
trade_item_key: string;
|
|
8436
|
+
updated_at: string;
|
|
8437
|
+
user_id: string;
|
|
8438
|
+
};
|
|
8439
|
+
Insert: {
|
|
8440
|
+
connection_id: string;
|
|
8441
|
+
created_at?: string;
|
|
8442
|
+
id?: string;
|
|
8443
|
+
incoming_stock?: number;
|
|
8444
|
+
minimum_stock?: number;
|
|
8445
|
+
notes?: string | null;
|
|
8446
|
+
physical_stock?: number;
|
|
8447
|
+
reserved_stock?: number;
|
|
8448
|
+
trade_item_key: string;
|
|
8449
|
+
updated_at?: string;
|
|
8450
|
+
user_id: string;
|
|
8451
|
+
};
|
|
8452
|
+
Update: {
|
|
8453
|
+
connection_id?: string;
|
|
8454
|
+
created_at?: string;
|
|
7216
8455
|
id?: string;
|
|
8456
|
+
incoming_stock?: number;
|
|
8457
|
+
minimum_stock?: number;
|
|
8458
|
+
notes?: string | null;
|
|
8459
|
+
physical_stock?: number;
|
|
8460
|
+
reserved_stock?: number;
|
|
8461
|
+
trade_item_key?: string;
|
|
7217
8462
|
updated_at?: string;
|
|
7218
8463
|
user_id?: string;
|
|
7219
8464
|
};
|
|
@@ -7538,6 +8783,10 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
|
|
|
7538
8783
|
default_invoice_type: string;
|
|
7539
8784
|
default_payment_term_days: number;
|
|
7540
8785
|
default_vat_code: string;
|
|
8786
|
+
invoice_enabled_ao: boolean;
|
|
8787
|
+
invoice_enabled_fo: boolean;
|
|
8788
|
+
invoice_enabled_ho: boolean;
|
|
8789
|
+
invoice_enabled_mo: boolean;
|
|
7541
8790
|
updated_at: string;
|
|
7542
8791
|
user_id: string;
|
|
7543
8792
|
};
|
|
@@ -7547,6 +8796,10 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
|
|
|
7547
8796
|
default_invoice_type?: string;
|
|
7548
8797
|
default_payment_term_days?: number;
|
|
7549
8798
|
default_vat_code?: string;
|
|
8799
|
+
invoice_enabled_ao?: boolean;
|
|
8800
|
+
invoice_enabled_fo?: boolean;
|
|
8801
|
+
invoice_enabled_ho?: boolean;
|
|
8802
|
+
invoice_enabled_mo?: boolean;
|
|
7550
8803
|
updated_at?: string;
|
|
7551
8804
|
user_id: string;
|
|
7552
8805
|
};
|
|
@@ -7556,6 +8809,10 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
|
|
|
7556
8809
|
default_invoice_type?: string;
|
|
7557
8810
|
default_payment_term_days?: number;
|
|
7558
8811
|
default_vat_code?: string;
|
|
8812
|
+
invoice_enabled_ao?: boolean;
|
|
8813
|
+
invoice_enabled_fo?: boolean;
|
|
8814
|
+
invoice_enabled_ho?: boolean;
|
|
8815
|
+
invoice_enabled_mo?: boolean;
|
|
7559
8816
|
updated_at?: string;
|
|
7560
8817
|
user_id?: string;
|
|
7561
8818
|
};
|
|
@@ -7563,6 +8820,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
|
|
|
7563
8820
|
};
|
|
7564
8821
|
twinfield_invoice_sync_logs: {
|
|
7565
8822
|
Row: {
|
|
8823
|
+
action_type: string | null;
|
|
7566
8824
|
created_at: string;
|
|
7567
8825
|
details: import("./types").Json | null;
|
|
7568
8826
|
duration_ms: number | null;
|
|
@@ -7575,6 +8833,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
|
|
|
7575
8833
|
user_id: string;
|
|
7576
8834
|
};
|
|
7577
8835
|
Insert: {
|
|
8836
|
+
action_type?: string | null;
|
|
7578
8837
|
created_at?: string;
|
|
7579
8838
|
details?: import("./types").Json | null;
|
|
7580
8839
|
duration_ms?: number | null;
|
|
@@ -7587,6 +8846,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
|
|
|
7587
8846
|
user_id: string;
|
|
7588
8847
|
};
|
|
7589
8848
|
Update: {
|
|
8849
|
+
action_type?: string | null;
|
|
7590
8850
|
created_at?: string;
|
|
7591
8851
|
details?: import("./types").Json | null;
|
|
7592
8852
|
duration_ms?: number | null;
|
|
@@ -7822,6 +9082,57 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
|
|
|
7822
9082
|
referencedColumns: ["id"];
|
|
7823
9083
|
}];
|
|
7824
9084
|
};
|
|
9085
|
+
twinfield_request_metrics: {
|
|
9086
|
+
Row: {
|
|
9087
|
+
bucket_hour: string;
|
|
9088
|
+
connection_id: string;
|
|
9089
|
+
error_count: number;
|
|
9090
|
+
rate_limited_count: number;
|
|
9091
|
+
request_count: number;
|
|
9092
|
+
updated_at: string;
|
|
9093
|
+
};
|
|
9094
|
+
Insert: {
|
|
9095
|
+
bucket_hour: string;
|
|
9096
|
+
connection_id: string;
|
|
9097
|
+
error_count?: number;
|
|
9098
|
+
rate_limited_count?: number;
|
|
9099
|
+
request_count?: number;
|
|
9100
|
+
updated_at?: string;
|
|
9101
|
+
};
|
|
9102
|
+
Update: {
|
|
9103
|
+
bucket_hour?: string;
|
|
9104
|
+
connection_id?: string;
|
|
9105
|
+
error_count?: number;
|
|
9106
|
+
rate_limited_count?: number;
|
|
9107
|
+
request_count?: number;
|
|
9108
|
+
updated_at?: string;
|
|
9109
|
+
};
|
|
9110
|
+
Relationships: [];
|
|
9111
|
+
};
|
|
9112
|
+
twinfield_session_cache: {
|
|
9113
|
+
Row: {
|
|
9114
|
+
cluster: string;
|
|
9115
|
+
created_at: string;
|
|
9116
|
+
expires_at: string;
|
|
9117
|
+
session_id: string;
|
|
9118
|
+
user_id: string;
|
|
9119
|
+
};
|
|
9120
|
+
Insert: {
|
|
9121
|
+
cluster: string;
|
|
9122
|
+
created_at?: string;
|
|
9123
|
+
expires_at: string;
|
|
9124
|
+
session_id: string;
|
|
9125
|
+
user_id: string;
|
|
9126
|
+
};
|
|
9127
|
+
Update: {
|
|
9128
|
+
cluster?: string;
|
|
9129
|
+
created_at?: string;
|
|
9130
|
+
expires_at?: string;
|
|
9131
|
+
session_id?: string;
|
|
9132
|
+
user_id?: string;
|
|
9133
|
+
};
|
|
9134
|
+
Relationships: [];
|
|
9135
|
+
};
|
|
7825
9136
|
twinfield_settings: {
|
|
7826
9137
|
Row: {
|
|
7827
9138
|
active_environment: string;
|
|
@@ -8403,6 +9714,73 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
|
|
|
8403
9714
|
};
|
|
8404
9715
|
Relationships: [];
|
|
8405
9716
|
};
|
|
9717
|
+
floriday_customer_discounts: {
|
|
9718
|
+
Row: {
|
|
9719
|
+
base_price: number | null;
|
|
9720
|
+
buyer_organization_id: string | null;
|
|
9721
|
+
currency: string | null;
|
|
9722
|
+
discount_type: string | null;
|
|
9723
|
+
discount_value: number | null;
|
|
9724
|
+
min_quantity: number | null;
|
|
9725
|
+
net_price: number | null;
|
|
9726
|
+
product_group_id: string | null;
|
|
9727
|
+
raw: import("./types").Json | null;
|
|
9728
|
+
source: string | null;
|
|
9729
|
+
source_id: string | null;
|
|
9730
|
+
trade_item_id: string | null;
|
|
9731
|
+
valid_from: string | null;
|
|
9732
|
+
valid_until: string | null;
|
|
9733
|
+
};
|
|
9734
|
+
Relationships: [];
|
|
9735
|
+
};
|
|
9736
|
+
local_customer_discounts: {
|
|
9737
|
+
Row: {
|
|
9738
|
+
base_price: number | null;
|
|
9739
|
+
currency: string | null;
|
|
9740
|
+
customer_id: string | null;
|
|
9741
|
+
discount_type: string | null;
|
|
9742
|
+
discount_value: number | null;
|
|
9743
|
+
min_quantity: number | null;
|
|
9744
|
+
net_price: number | null;
|
|
9745
|
+
product_category_id: string | null;
|
|
9746
|
+
product_id: string | null;
|
|
9747
|
+
product_name: string | null;
|
|
9748
|
+
source: string | null;
|
|
9749
|
+
source_id: string | null;
|
|
9750
|
+
valid_from: string | null;
|
|
9751
|
+
valid_until: string | null;
|
|
9752
|
+
};
|
|
9753
|
+
Relationships: [];
|
|
9754
|
+
};
|
|
9755
|
+
manufacture_product_possible_stock_view: {
|
|
9756
|
+
Row: {
|
|
9757
|
+
component_count: number | null;
|
|
9758
|
+
manufacture_product_id: string | null;
|
|
9759
|
+
possible_stock: number | null;
|
|
9760
|
+
};
|
|
9761
|
+
Relationships: [];
|
|
9762
|
+
};
|
|
9763
|
+
product_group_stock_view: {
|
|
9764
|
+
Row: {
|
|
9765
|
+
item_count: number | null;
|
|
9766
|
+
product_group_id: string | null;
|
|
9767
|
+
total_stock: number | null;
|
|
9768
|
+
};
|
|
9769
|
+
Relationships: [{
|
|
9770
|
+
foreignKeyName: "product_group_items_product_group_id_fkey";
|
|
9771
|
+
columns: ["product_group_id"];
|
|
9772
|
+
isOneToOne: false;
|
|
9773
|
+
referencedRelation: "product_groups";
|
|
9774
|
+
referencedColumns: ["id"];
|
|
9775
|
+
}];
|
|
9776
|
+
};
|
|
9777
|
+
trade_item_stock_view: {
|
|
9778
|
+
Row: {
|
|
9779
|
+
stock: number | null;
|
|
9780
|
+
trade_item_id: string | null;
|
|
9781
|
+
};
|
|
9782
|
+
Relationships: [];
|
|
9783
|
+
};
|
|
8406
9784
|
v_external_customers_exact: {
|
|
8407
9785
|
Row: {
|
|
8408
9786
|
account_number: string | null;
|
|
@@ -8658,6 +10036,68 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
|
|
|
8658
10036
|
};
|
|
8659
10037
|
Returns: number;
|
|
8660
10038
|
};
|
|
10039
|
+
afh_city_code: {
|
|
10040
|
+
Args: {
|
|
10041
|
+
_city: string;
|
|
10042
|
+
_country: string;
|
|
10043
|
+
};
|
|
10044
|
+
Returns: string;
|
|
10045
|
+
};
|
|
10046
|
+
afh_normalize_country: {
|
|
10047
|
+
Args: {
|
|
10048
|
+
_raw: string;
|
|
10049
|
+
};
|
|
10050
|
+
Returns: string;
|
|
10051
|
+
};
|
|
10052
|
+
afh_normalize_nl_province: {
|
|
10053
|
+
Args: {
|
|
10054
|
+
_raw: string;
|
|
10055
|
+
};
|
|
10056
|
+
Returns: string;
|
|
10057
|
+
};
|
|
10058
|
+
afh_subtract_workdays: {
|
|
10059
|
+
Args: {
|
|
10060
|
+
_date: string;
|
|
10061
|
+
_days: number;
|
|
10062
|
+
};
|
|
10063
|
+
Returns: string;
|
|
10064
|
+
};
|
|
10065
|
+
apply_stock_consumption: {
|
|
10066
|
+
Args: {
|
|
10067
|
+
p_order_id: string;
|
|
10068
|
+
p_order_item_id: string;
|
|
10069
|
+
p_qty: number;
|
|
10070
|
+
p_reason: string;
|
|
10071
|
+
p_source: string;
|
|
10072
|
+
p_trade_item_key: string;
|
|
10073
|
+
};
|
|
10074
|
+
Returns: undefined;
|
|
10075
|
+
};
|
|
10076
|
+
apply_stock_reservation: {
|
|
10077
|
+
Args: {
|
|
10078
|
+
p_order_id: string;
|
|
10079
|
+
p_order_item_id: string;
|
|
10080
|
+
p_qty: number;
|
|
10081
|
+
p_reason: string;
|
|
10082
|
+
p_source: string;
|
|
10083
|
+
p_trade_item_key: string;
|
|
10084
|
+
};
|
|
10085
|
+
Returns: undefined;
|
|
10086
|
+
};
|
|
10087
|
+
assign_cart_numbers: {
|
|
10088
|
+
Args: {
|
|
10089
|
+
p_carts: import("./types").Json;
|
|
10090
|
+
};
|
|
10091
|
+
Returns: {
|
|
10092
|
+
cart_index: number;
|
|
10093
|
+
cart_number: string;
|
|
10094
|
+
day_seq: number;
|
|
10095
|
+
order_id: string;
|
|
10096
|
+
order_source: string;
|
|
10097
|
+
pick_date: string;
|
|
10098
|
+
status: string;
|
|
10099
|
+
}[];
|
|
10100
|
+
};
|
|
8661
10101
|
assign_floriday_order_numbers: {
|
|
8662
10102
|
Args: {
|
|
8663
10103
|
p_ids: string[];
|
|
@@ -8667,20 +10107,81 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
|
|
|
8667
10107
|
order_number: string;
|
|
8668
10108
|
}[];
|
|
8669
10109
|
};
|
|
10110
|
+
autolink_product_to_floriday: {
|
|
10111
|
+
Args: {
|
|
10112
|
+
p_product_id: string;
|
|
10113
|
+
};
|
|
10114
|
+
Returns: string;
|
|
10115
|
+
};
|
|
10116
|
+
backfill_open_order_reservations: {
|
|
10117
|
+
Args: never;
|
|
10118
|
+
Returns: {
|
|
10119
|
+
processed_items: number;
|
|
10120
|
+
}[];
|
|
10121
|
+
};
|
|
8670
10122
|
call_exact_route: {
|
|
8671
10123
|
Args: {
|
|
8672
10124
|
path: string;
|
|
8673
10125
|
};
|
|
8674
10126
|
Returns: number;
|
|
8675
10127
|
};
|
|
10128
|
+
check_offer_product_available_stock: {
|
|
10129
|
+
Args: {
|
|
10130
|
+
p_campaign_product_id: string;
|
|
10131
|
+
p_code: string;
|
|
10132
|
+
p_needed_qty?: number;
|
|
10133
|
+
p_product_name?: string;
|
|
10134
|
+
};
|
|
10135
|
+
Returns: import("./types").Json;
|
|
10136
|
+
};
|
|
10137
|
+
check_trade_item_available_stock: {
|
|
10138
|
+
Args: {
|
|
10139
|
+
p_connection_id?: string;
|
|
10140
|
+
p_context?: string;
|
|
10141
|
+
p_needed_qty?: number;
|
|
10142
|
+
p_order_id?: string;
|
|
10143
|
+
p_order_item_id?: string;
|
|
10144
|
+
p_owner_id?: string;
|
|
10145
|
+
p_product_name?: string;
|
|
10146
|
+
p_trade_item_key: string;
|
|
10147
|
+
};
|
|
10148
|
+
Returns: import("./types").Json;
|
|
10149
|
+
};
|
|
8676
10150
|
cleanup_old_bookings: {
|
|
8677
10151
|
Args: never;
|
|
8678
10152
|
Returns: number;
|
|
8679
10153
|
};
|
|
10154
|
+
control_get_todays_carts: {
|
|
10155
|
+
Args: never;
|
|
10156
|
+
Returns: {
|
|
10157
|
+
cart_index: number;
|
|
10158
|
+
cart_number: string;
|
|
10159
|
+
cart_number_id: string;
|
|
10160
|
+
order_id: string;
|
|
10161
|
+
order_source: string;
|
|
10162
|
+
pick_date: string;
|
|
10163
|
+
status: string;
|
|
10164
|
+
}[];
|
|
10165
|
+
};
|
|
10166
|
+
count_distinct_regulatory_products: {
|
|
10167
|
+
Args: never;
|
|
10168
|
+
Returns: number;
|
|
10169
|
+
};
|
|
8680
10170
|
current_monteur_id: {
|
|
8681
10171
|
Args: never;
|
|
8682
10172
|
Returns: string;
|
|
8683
10173
|
};
|
|
10174
|
+
dashboard_alert_counts: {
|
|
10175
|
+
Args: never;
|
|
10176
|
+
Returns: import("./types").Json;
|
|
10177
|
+
};
|
|
10178
|
+
dashboard_alert_rows: {
|
|
10179
|
+
Args: {
|
|
10180
|
+
check_id: string;
|
|
10181
|
+
row_limit?: number;
|
|
10182
|
+
};
|
|
10183
|
+
Returns: import("./types").Json;
|
|
10184
|
+
};
|
|
8684
10185
|
dashboard_list_public_schema: {
|
|
8685
10186
|
Args: never;
|
|
8686
10187
|
Returns: {
|
|
@@ -8689,6 +10190,12 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
|
|
|
8689
10190
|
table_name: string;
|
|
8690
10191
|
}[];
|
|
8691
10192
|
};
|
|
10193
|
+
dispatch_carrier_signups_sql: {
|
|
10194
|
+
Args: {
|
|
10195
|
+
_catchup?: string;
|
|
10196
|
+
};
|
|
10197
|
+
Returns: import("./types").Json;
|
|
10198
|
+
};
|
|
8692
10199
|
email_auth_decrypt: {
|
|
8693
10200
|
Args: {
|
|
8694
10201
|
cipher: string;
|
|
@@ -8724,6 +10231,12 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
|
|
|
8724
10231
|
status: string;
|
|
8725
10232
|
}[];
|
|
8726
10233
|
};
|
|
10234
|
+
ensure_trade_item_stock_row: {
|
|
10235
|
+
Args: {
|
|
10236
|
+
p_key: string;
|
|
10237
|
+
};
|
|
10238
|
+
Returns: undefined;
|
|
10239
|
+
};
|
|
8727
10240
|
ensure_user_tenant: {
|
|
8728
10241
|
Args: never;
|
|
8729
10242
|
Returns: string;
|
|
@@ -8761,6 +10274,38 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
|
|
|
8761
10274
|
};
|
|
8762
10275
|
Returns: boolean;
|
|
8763
10276
|
};
|
|
10277
|
+
find_trade_item_key: {
|
|
10278
|
+
Args: {
|
|
10279
|
+
p_barcode: string;
|
|
10280
|
+
p_name: string;
|
|
10281
|
+
p_product_id: string;
|
|
10282
|
+
};
|
|
10283
|
+
Returns: string;
|
|
10284
|
+
};
|
|
10285
|
+
floriday_effective_price: {
|
|
10286
|
+
Args: {
|
|
10287
|
+
_buyer_id: string;
|
|
10288
|
+
_on_date?: string;
|
|
10289
|
+
_quantity?: number;
|
|
10290
|
+
_trade_item_id: string;
|
|
10291
|
+
};
|
|
10292
|
+
Returns: {
|
|
10293
|
+
base_price: number;
|
|
10294
|
+
currency: string;
|
|
10295
|
+
discount_type: string;
|
|
10296
|
+
discount_value: number;
|
|
10297
|
+
net_price: number;
|
|
10298
|
+
source: string;
|
|
10299
|
+
source_id: string;
|
|
10300
|
+
}[];
|
|
10301
|
+
};
|
|
10302
|
+
format_cart_number: {
|
|
10303
|
+
Args: {
|
|
10304
|
+
p_pick_date: string;
|
|
10305
|
+
p_seq: number;
|
|
10306
|
+
};
|
|
10307
|
+
Returns: string;
|
|
10308
|
+
};
|
|
8764
10309
|
get_active_floriday_connection_public: {
|
|
8765
10310
|
Args: never;
|
|
8766
10311
|
Returns: {
|
|
@@ -8774,6 +10319,13 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
|
|
|
8774
10319
|
preferred_warehouse_name: string;
|
|
8775
10320
|
}[];
|
|
8776
10321
|
};
|
|
10322
|
+
get_active_floriday_context: {
|
|
10323
|
+
Args: never;
|
|
10324
|
+
Returns: {
|
|
10325
|
+
connection_id: string;
|
|
10326
|
+
user_id: string;
|
|
10327
|
+
}[];
|
|
10328
|
+
};
|
|
8777
10329
|
get_active_twinfield_public: {
|
|
8778
10330
|
Args: never;
|
|
8779
10331
|
Returns: {
|
|
@@ -8785,6 +10337,13 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
|
|
|
8785
10337
|
office_code: string;
|
|
8786
10338
|
}[];
|
|
8787
10339
|
};
|
|
10340
|
+
get_floricode_record_counts: {
|
|
10341
|
+
Args: never;
|
|
10342
|
+
Returns: {
|
|
10343
|
+
count: number;
|
|
10344
|
+
resource: string;
|
|
10345
|
+
}[];
|
|
10346
|
+
};
|
|
8788
10347
|
get_floriday_agreements_active: {
|
|
8789
10348
|
Args: {
|
|
8790
10349
|
p_on_date?: string;
|
|
@@ -8876,6 +10435,24 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
|
|
|
8876
10435
|
};
|
|
8877
10436
|
Returns: import("./types").Json;
|
|
8878
10437
|
};
|
|
10438
|
+
get_offer_delivery_options: {
|
|
10439
|
+
Args: {
|
|
10440
|
+
p_code: string;
|
|
10441
|
+
};
|
|
10442
|
+
Returns: import("./types").Json;
|
|
10443
|
+
};
|
|
10444
|
+
get_offer_recipient_by_code: {
|
|
10445
|
+
Args: {
|
|
10446
|
+
p_code: string;
|
|
10447
|
+
};
|
|
10448
|
+
Returns: {
|
|
10449
|
+
campaign_id: string;
|
|
10450
|
+
clicked_at: string;
|
|
10451
|
+
customer_id: string;
|
|
10452
|
+
id: string;
|
|
10453
|
+
ordered_at: string;
|
|
10454
|
+
}[];
|
|
10455
|
+
};
|
|
8879
10456
|
get_or_assign_floriday_order_number: {
|
|
8880
10457
|
Args: {
|
|
8881
10458
|
p_floriday_id: string;
|
|
@@ -8928,12 +10505,53 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
|
|
|
8928
10505
|
Args: never;
|
|
8929
10506
|
Returns: boolean;
|
|
8930
10507
|
};
|
|
10508
|
+
is_superadmin: {
|
|
10509
|
+
Args: {
|
|
10510
|
+
_user_id: string;
|
|
10511
|
+
};
|
|
10512
|
+
Returns: boolean;
|
|
10513
|
+
};
|
|
10514
|
+
local_effective_price: {
|
|
10515
|
+
Args: {
|
|
10516
|
+
_customer_id: string;
|
|
10517
|
+
_on_date?: string;
|
|
10518
|
+
_product_id: string;
|
|
10519
|
+
_quantity?: number;
|
|
10520
|
+
};
|
|
10521
|
+
Returns: {
|
|
10522
|
+
currency: string;
|
|
10523
|
+
discount_type: string;
|
|
10524
|
+
discount_value: number;
|
|
10525
|
+
net_price: number;
|
|
10526
|
+
source: string;
|
|
10527
|
+
source_id: string;
|
|
10528
|
+
}[];
|
|
10529
|
+
};
|
|
10530
|
+
mark_offer_clicked: {
|
|
10531
|
+
Args: {
|
|
10532
|
+
p_code: string;
|
|
10533
|
+
};
|
|
10534
|
+
Returns: undefined;
|
|
10535
|
+
};
|
|
10536
|
+
mark_offer_ordered: {
|
|
10537
|
+
Args: {
|
|
10538
|
+
p_code: string;
|
|
10539
|
+
};
|
|
10540
|
+
Returns: undefined;
|
|
10541
|
+
};
|
|
8931
10542
|
next_order_number: {
|
|
8932
10543
|
Args: {
|
|
8933
10544
|
p_prefix: string;
|
|
8934
10545
|
};
|
|
8935
10546
|
Returns: string;
|
|
8936
10547
|
};
|
|
10548
|
+
next_order_number_for_date: {
|
|
10549
|
+
Args: {
|
|
10550
|
+
p_created_at?: string;
|
|
10551
|
+
p_prefix: string;
|
|
10552
|
+
};
|
|
10553
|
+
Returns: string;
|
|
10554
|
+
};
|
|
8937
10555
|
next_work_order_number: {
|
|
8938
10556
|
Args: {
|
|
8939
10557
|
p_parent_work_order_id?: string;
|
|
@@ -8941,16 +10559,41 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
|
|
|
8941
10559
|
};
|
|
8942
10560
|
Returns: string;
|
|
8943
10561
|
};
|
|
10562
|
+
normalize_order_source: {
|
|
10563
|
+
Args: {
|
|
10564
|
+
p_src: string;
|
|
10565
|
+
};
|
|
10566
|
+
Returns: string;
|
|
10567
|
+
};
|
|
8944
10568
|
normalize_vat: {
|
|
8945
10569
|
Args: {
|
|
8946
10570
|
v: string;
|
|
8947
10571
|
};
|
|
8948
10572
|
Returns: string;
|
|
8949
10573
|
};
|
|
10574
|
+
offer_recipient_matches: {
|
|
10575
|
+
Args: {
|
|
10576
|
+
_campaign_id: string;
|
|
10577
|
+
_customer_id: string;
|
|
10578
|
+
_recipient_id: string;
|
|
10579
|
+
};
|
|
10580
|
+
Returns: boolean;
|
|
10581
|
+
};
|
|
10582
|
+
order_number_prefix: {
|
|
10583
|
+
Args: {
|
|
10584
|
+
p_custom_fields?: import("./types").Json;
|
|
10585
|
+
p_order_source: string;
|
|
10586
|
+
};
|
|
10587
|
+
Returns: string;
|
|
10588
|
+
};
|
|
8950
10589
|
pickstation_get_orders_raw: {
|
|
8951
10590
|
Args: never;
|
|
8952
10591
|
Returns: import("./types").Json;
|
|
8953
10592
|
};
|
|
10593
|
+
pickstation_get_planning_context: {
|
|
10594
|
+
Args: never;
|
|
10595
|
+
Returns: import("./types").Json;
|
|
10596
|
+
};
|
|
8954
10597
|
pickstation_get_settings: {
|
|
8955
10598
|
Args: never;
|
|
8956
10599
|
Returns: import("./types").Json;
|
|
@@ -8965,6 +10608,26 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
|
|
|
8965
10608
|
};
|
|
8966
10609
|
Returns: undefined;
|
|
8967
10610
|
};
|
|
10611
|
+
pickstation_set_cart_status: {
|
|
10612
|
+
Args: {
|
|
10613
|
+
p_cart_index: number;
|
|
10614
|
+
p_order_id: string;
|
|
10615
|
+
p_order_source: string;
|
|
10616
|
+
p_status: string;
|
|
10617
|
+
};
|
|
10618
|
+
Returns: undefined;
|
|
10619
|
+
};
|
|
10620
|
+
promote_trade_item_key: {
|
|
10621
|
+
Args: {
|
|
10622
|
+
p_new: string;
|
|
10623
|
+
p_old: string;
|
|
10624
|
+
};
|
|
10625
|
+
Returns: undefined;
|
|
10626
|
+
};
|
|
10627
|
+
refresh_external_customers_grouped: {
|
|
10628
|
+
Args: never;
|
|
10629
|
+
Returns: undefined;
|
|
10630
|
+
};
|
|
8968
10631
|
refresh_floricode_derived_code_lists: {
|
|
8969
10632
|
Args: never;
|
|
8970
10633
|
Returns: {
|
|
@@ -8973,6 +10636,18 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
|
|
|
8973
10636
|
row_count: number;
|
|
8974
10637
|
}[];
|
|
8975
10638
|
};
|
|
10639
|
+
refresh_floricode_derived_for_product: {
|
|
10640
|
+
Args: {
|
|
10641
|
+
p_product_code: string;
|
|
10642
|
+
};
|
|
10643
|
+
Returns: number;
|
|
10644
|
+
};
|
|
10645
|
+
refresh_floricode_derived_for_products: {
|
|
10646
|
+
Args: {
|
|
10647
|
+
_product_ids: string[];
|
|
10648
|
+
};
|
|
10649
|
+
Returns: number;
|
|
10650
|
+
};
|
|
8976
10651
|
reset_floriday_sync_cursor: {
|
|
8977
10652
|
Args: {
|
|
8978
10653
|
p_connection_id: string;
|
|
@@ -8980,6 +10655,12 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
|
|
|
8980
10655
|
};
|
|
8981
10656
|
Returns: undefined;
|
|
8982
10657
|
};
|
|
10658
|
+
resolve_product_id_for_item: {
|
|
10659
|
+
Args: {
|
|
10660
|
+
p_product_name: string;
|
|
10661
|
+
};
|
|
10662
|
+
Returns: string;
|
|
10663
|
+
};
|
|
8983
10664
|
schedule_floriday_additional_services_sync: {
|
|
8984
10665
|
Args: {
|
|
8985
10666
|
p_apikey: string;
|