@flowselections/floriday-klanten-module 1.0.12 → 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 +4 -1
- package/dist-lib/components/klanten/KlantDetail.d.ts.map +1 -1
- package/dist-lib/components/klanten/KlantDetail.js +2 -1
- 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 +1497 -43
- package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/client.d.ts +1497 -43
- package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/client.server.d.ts +1497 -43
- package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/types.d.ts +1519 -39
- package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
- package/dist-lib/lib/accounting.functions.d.ts +4512 -150
- package/dist-lib/lib/accounting.functions.d.ts.map +1 -1
- package/dist-lib/lib/customer-analytics.functions.d.ts +1497 -43
- package/dist-lib/lib/customer-analytics.functions.d.ts.map +1 -1
- package/dist-lib/lib/customers.functions.d.ts +10178 -0
- package/dist-lib/lib/customers.functions.d.ts.map +1 -1
- package/dist-lib/lib/delivery-locations.functions.d.ts +5816 -0
- package/dist-lib/lib/delivery-locations.functions.d.ts.map +1 -1
- package/dist-lib/lib/external-customers.functions.d.ts +5816 -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: [];
|
|
@@ -3349,6 +3673,51 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
|
|
|
3349
3673
|
referencedColumns: ["id"];
|
|
3350
3674
|
}];
|
|
3351
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
|
+
};
|
|
3352
3721
|
floriday_contract_trade_item_groups_cache: {
|
|
3353
3722
|
Row: {
|
|
3354
3723
|
connection_id: string;
|
|
@@ -4417,50 +4786,104 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
|
|
|
4417
4786
|
referencedColumns: ["id"];
|
|
4418
4787
|
}];
|
|
4419
4788
|
};
|
|
4420
|
-
|
|
4789
|
+
flow_role_assignments: {
|
|
4421
4790
|
Row: {
|
|
4422
4791
|
created_at: string;
|
|
4423
|
-
email: string | null;
|
|
4424
|
-
host: string;
|
|
4425
4792
|
id: string;
|
|
4426
|
-
|
|
4427
|
-
|
|
4428
|
-
last_test_ok: boolean | null;
|
|
4429
|
-
last_tested_at: string | null;
|
|
4430
|
-
name: string;
|
|
4431
|
-
password: string | null;
|
|
4432
|
-
password_secret_name: string | null;
|
|
4433
|
-
port: number;
|
|
4434
|
-
updated_at: string;
|
|
4435
|
-
use_tls: boolean;
|
|
4436
|
-
username: string;
|
|
4793
|
+
role_id: string;
|
|
4794
|
+
user_id: string;
|
|
4437
4795
|
};
|
|
4438
4796
|
Insert: {
|
|
4439
4797
|
created_at?: string;
|
|
4440
|
-
email?: string | null;
|
|
4441
|
-
host: string;
|
|
4442
4798
|
id?: string;
|
|
4443
|
-
|
|
4444
|
-
|
|
4445
|
-
last_test_ok?: boolean | null;
|
|
4446
|
-
last_tested_at?: string | null;
|
|
4447
|
-
name: string;
|
|
4448
|
-
password?: string | null;
|
|
4449
|
-
password_secret_name?: string | null;
|
|
4450
|
-
port?: number;
|
|
4451
|
-
updated_at?: string;
|
|
4452
|
-
use_tls?: boolean;
|
|
4453
|
-
username: string;
|
|
4799
|
+
role_id: string;
|
|
4800
|
+
user_id: string;
|
|
4454
4801
|
};
|
|
4455
4802
|
Update: {
|
|
4456
4803
|
created_at?: string;
|
|
4457
|
-
email?: string | null;
|
|
4458
|
-
host?: string;
|
|
4459
4804
|
id?: string;
|
|
4460
|
-
|
|
4461
|
-
|
|
4462
|
-
|
|
4463
|
-
|
|
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;
|
|
4464
4887
|
name?: string;
|
|
4465
4888
|
password?: string | null;
|
|
4466
4889
|
password_secret_name?: string | null;
|
|
@@ -4738,6 +5161,204 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
|
|
|
4738
5161
|
};
|
|
4739
5162
|
Relationships: [];
|
|
4740
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
|
+
};
|
|
4741
5362
|
locations: {
|
|
4742
5363
|
Row: {
|
|
4743
5364
|
created_at: string;
|
|
@@ -4850,6 +5471,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
|
|
|
4850
5471
|
matched_customer_id: string | null;
|
|
4851
5472
|
message_id: string;
|
|
4852
5473
|
notes: string | null;
|
|
5474
|
+
order_number: string | null;
|
|
4853
5475
|
parsed_payload: import("./types").Json | null;
|
|
4854
5476
|
reviewed_at: string | null;
|
|
4855
5477
|
reviewed_by: string | null;
|
|
@@ -4865,6 +5487,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
|
|
|
4865
5487
|
matched_customer_id?: string | null;
|
|
4866
5488
|
message_id: string;
|
|
4867
5489
|
notes?: string | null;
|
|
5490
|
+
order_number?: string | null;
|
|
4868
5491
|
parsed_payload?: import("./types").Json | null;
|
|
4869
5492
|
reviewed_at?: string | null;
|
|
4870
5493
|
reviewed_by?: string | null;
|
|
@@ -4880,6 +5503,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
|
|
|
4880
5503
|
matched_customer_id?: string | null;
|
|
4881
5504
|
message_id?: string;
|
|
4882
5505
|
notes?: string | null;
|
|
5506
|
+
order_number?: string | null;
|
|
4883
5507
|
parsed_payload?: import("./types").Json | null;
|
|
4884
5508
|
reviewed_at?: string | null;
|
|
4885
5509
|
reviewed_by?: string | null;
|
|
@@ -5245,6 +5869,273 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
|
|
|
5245
5869
|
referencedColumns: ["id"];
|
|
5246
5870
|
}];
|
|
5247
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: {
|
|
6065
|
+
Row: {
|
|
6066
|
+
created_at: string;
|
|
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;
|
|
6073
|
+
updated_at: string;
|
|
6074
|
+
updated_by: string | null;
|
|
6075
|
+
week_start_day: number;
|
|
6076
|
+
};
|
|
6077
|
+
Insert: {
|
|
6078
|
+
created_at?: string;
|
|
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;
|
|
6085
|
+
updated_at?: string;
|
|
6086
|
+
updated_by?: string | null;
|
|
6087
|
+
week_start_day?: number;
|
|
6088
|
+
};
|
|
6089
|
+
Update: {
|
|
6090
|
+
created_at?: string;
|
|
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;
|
|
6097
|
+
updated_at?: string;
|
|
6098
|
+
updated_by?: string | null;
|
|
6099
|
+
week_start_day?: number;
|
|
6100
|
+
};
|
|
6101
|
+
Relationships: [];
|
|
6102
|
+
};
|
|
6103
|
+
nmbrs_wage_components: {
|
|
6104
|
+
Row: {
|
|
6105
|
+
category: string;
|
|
6106
|
+
code: string;
|
|
6107
|
+
created_at: string;
|
|
6108
|
+
id: string;
|
|
6109
|
+
is_active: boolean;
|
|
6110
|
+
label: string;
|
|
6111
|
+
sort_order: number;
|
|
6112
|
+
unit: string;
|
|
6113
|
+
updated_at: string;
|
|
6114
|
+
};
|
|
6115
|
+
Insert: {
|
|
6116
|
+
category: string;
|
|
6117
|
+
code: string;
|
|
6118
|
+
created_at?: string;
|
|
6119
|
+
id?: string;
|
|
6120
|
+
is_active?: boolean;
|
|
6121
|
+
label: string;
|
|
6122
|
+
sort_order?: number;
|
|
6123
|
+
unit: string;
|
|
6124
|
+
updated_at?: string;
|
|
6125
|
+
};
|
|
6126
|
+
Update: {
|
|
6127
|
+
category?: string;
|
|
6128
|
+
code?: string;
|
|
6129
|
+
created_at?: string;
|
|
6130
|
+
id?: string;
|
|
6131
|
+
is_active?: boolean;
|
|
6132
|
+
label?: string;
|
|
6133
|
+
sort_order?: number;
|
|
6134
|
+
unit?: string;
|
|
6135
|
+
updated_at?: string;
|
|
6136
|
+
};
|
|
6137
|
+
Relationships: [];
|
|
6138
|
+
};
|
|
5248
6139
|
notifications: {
|
|
5249
6140
|
Row: {
|
|
5250
6141
|
created_at: string;
|
|
@@ -5469,6 +6360,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
|
|
|
5469
6360
|
id: string;
|
|
5470
6361
|
items: import("./types").Json;
|
|
5471
6362
|
notes: string | null;
|
|
6363
|
+
order_number: string | null;
|
|
5472
6364
|
recipient_id: string;
|
|
5473
6365
|
total_amount: number;
|
|
5474
6366
|
};
|
|
@@ -5482,6 +6374,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
|
|
|
5482
6374
|
id?: string;
|
|
5483
6375
|
items?: import("./types").Json;
|
|
5484
6376
|
notes?: string | null;
|
|
6377
|
+
order_number?: string | null;
|
|
5485
6378
|
recipient_id: string;
|
|
5486
6379
|
total_amount?: number;
|
|
5487
6380
|
};
|
|
@@ -5495,6 +6388,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
|
|
|
5495
6388
|
id?: string;
|
|
5496
6389
|
items?: import("./types").Json;
|
|
5497
6390
|
notes?: string | null;
|
|
6391
|
+
order_number?: string | null;
|
|
5498
6392
|
recipient_id?: string;
|
|
5499
6393
|
total_amount?: number;
|
|
5500
6394
|
};
|
|
@@ -5654,6 +6548,9 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
|
|
|
5654
6548
|
crates_per_layer: number;
|
|
5655
6549
|
created_at: string;
|
|
5656
6550
|
id: string;
|
|
6551
|
+
layer_fraction: number;
|
|
6552
|
+
layer_share_pct: number;
|
|
6553
|
+
layers_per_cart: number;
|
|
5657
6554
|
order_item_id: string | null;
|
|
5658
6555
|
plants_per_crate: number;
|
|
5659
6556
|
product_id: string | null;
|
|
@@ -5665,6 +6562,9 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
|
|
|
5665
6562
|
crates_per_layer?: number;
|
|
5666
6563
|
created_at?: string;
|
|
5667
6564
|
id?: string;
|
|
6565
|
+
layer_fraction?: number;
|
|
6566
|
+
layer_share_pct?: number;
|
|
6567
|
+
layers_per_cart?: number;
|
|
5668
6568
|
order_item_id?: string | null;
|
|
5669
6569
|
plants_per_crate?: number;
|
|
5670
6570
|
product_id?: string | null;
|
|
@@ -5676,6 +6576,9 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
|
|
|
5676
6576
|
crates_per_layer?: number;
|
|
5677
6577
|
created_at?: string;
|
|
5678
6578
|
id?: string;
|
|
6579
|
+
layer_fraction?: number;
|
|
6580
|
+
layer_share_pct?: number;
|
|
6581
|
+
layers_per_cart?: number;
|
|
5679
6582
|
order_item_id?: string | null;
|
|
5680
6583
|
plants_per_crate?: number;
|
|
5681
6584
|
product_id?: string | null;
|
|
@@ -5703,33 +6606,45 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
|
|
|
5703
6606
|
};
|
|
5704
6607
|
order_carts: {
|
|
5705
6608
|
Row: {
|
|
6609
|
+
algorithm_version: number;
|
|
5706
6610
|
cart_number: number;
|
|
5707
6611
|
created_at: string;
|
|
5708
6612
|
id: string;
|
|
5709
6613
|
is_auto: boolean;
|
|
5710
6614
|
is_complete: boolean;
|
|
5711
6615
|
notes: string | null;
|
|
6616
|
+
occupancy_pct: number;
|
|
5712
6617
|
order_id: string;
|
|
6618
|
+
source: string;
|
|
6619
|
+
total_layers_used: number;
|
|
5713
6620
|
updated_at: string;
|
|
5714
6621
|
};
|
|
5715
6622
|
Insert: {
|
|
6623
|
+
algorithm_version?: number;
|
|
5716
6624
|
cart_number: number;
|
|
5717
6625
|
created_at?: string;
|
|
5718
6626
|
id?: string;
|
|
5719
6627
|
is_auto?: boolean;
|
|
5720
6628
|
is_complete?: boolean;
|
|
5721
6629
|
notes?: string | null;
|
|
6630
|
+
occupancy_pct?: number;
|
|
5722
6631
|
order_id: string;
|
|
6632
|
+
source?: string;
|
|
6633
|
+
total_layers_used?: number;
|
|
5723
6634
|
updated_at?: string;
|
|
5724
6635
|
};
|
|
5725
6636
|
Update: {
|
|
6637
|
+
algorithm_version?: number;
|
|
5726
6638
|
cart_number?: number;
|
|
5727
6639
|
created_at?: string;
|
|
5728
6640
|
id?: string;
|
|
5729
6641
|
is_auto?: boolean;
|
|
5730
6642
|
is_complete?: boolean;
|
|
5731
6643
|
notes?: string | null;
|
|
6644
|
+
occupancy_pct?: number;
|
|
5732
6645
|
order_id?: string;
|
|
6646
|
+
source?: string;
|
|
6647
|
+
total_layers_used?: number;
|
|
5733
6648
|
updated_at?: string;
|
|
5734
6649
|
};
|
|
5735
6650
|
Relationships: [{
|
|
@@ -6227,6 +7142,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
|
|
|
6227
7142
|
purchase_price: number | null;
|
|
6228
7143
|
quantity: number;
|
|
6229
7144
|
sale_price: number | null;
|
|
7145
|
+
trade_item_key: string | null;
|
|
6230
7146
|
unit: string;
|
|
6231
7147
|
updated_at: string;
|
|
6232
7148
|
weight: string | null;
|
|
@@ -6249,6 +7165,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
|
|
|
6249
7165
|
purchase_price?: number | null;
|
|
6250
7166
|
quantity?: number;
|
|
6251
7167
|
sale_price?: number | null;
|
|
7168
|
+
trade_item_key?: string | null;
|
|
6252
7169
|
unit?: string;
|
|
6253
7170
|
updated_at?: string;
|
|
6254
7171
|
weight?: string | null;
|
|
@@ -6271,6 +7188,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
|
|
|
6271
7188
|
purchase_price?: number | null;
|
|
6272
7189
|
quantity?: number;
|
|
6273
7190
|
sale_price?: number | null;
|
|
7191
|
+
trade_item_key?: string | null;
|
|
6274
7192
|
unit?: string;
|
|
6275
7193
|
updated_at?: string;
|
|
6276
7194
|
weight?: string | null;
|
|
@@ -6283,6 +7201,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
|
|
|
6283
7201
|
display_name: string | null;
|
|
6284
7202
|
email: string | null;
|
|
6285
7203
|
id: string;
|
|
7204
|
+
is_superadmin: boolean;
|
|
6286
7205
|
notification_preferences: import("./types").Json;
|
|
6287
7206
|
tenant_id: string | null;
|
|
6288
7207
|
updated_at: string;
|
|
@@ -6292,6 +7211,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
|
|
|
6292
7211
|
display_name?: string | null;
|
|
6293
7212
|
email?: string | null;
|
|
6294
7213
|
id: string;
|
|
7214
|
+
is_superadmin?: boolean;
|
|
6295
7215
|
notification_preferences?: import("./types").Json;
|
|
6296
7216
|
tenant_id?: string | null;
|
|
6297
7217
|
updated_at?: string;
|
|
@@ -6301,6 +7221,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
|
|
|
6301
7221
|
display_name?: string | null;
|
|
6302
7222
|
email?: string | null;
|
|
6303
7223
|
id?: string;
|
|
7224
|
+
is_superadmin?: boolean;
|
|
6304
7225
|
notification_preferences?: import("./types").Json;
|
|
6305
7226
|
tenant_id?: string | null;
|
|
6306
7227
|
updated_at?: string;
|
|
@@ -7073,20 +7994,134 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
|
|
|
7073
7994
|
description?: string | null;
|
|
7074
7995
|
hourly_rate?: number;
|
|
7075
7996
|
id?: string;
|
|
7076
|
-
image_url?: string | null;
|
|
7077
|
-
is_active?: boolean;
|
|
7078
|
-
name: string;
|
|
7997
|
+
image_url?: string | null;
|
|
7998
|
+
is_active?: boolean;
|
|
7999
|
+
name: string;
|
|
8000
|
+
};
|
|
8001
|
+
Update: {
|
|
8002
|
+
capacity?: number;
|
|
8003
|
+
color_code?: string | null;
|
|
8004
|
+
created_at?: string;
|
|
8005
|
+
description?: string | null;
|
|
8006
|
+
hourly_rate?: number;
|
|
8007
|
+
id?: string;
|
|
8008
|
+
image_url?: string | null;
|
|
8009
|
+
is_active?: boolean;
|
|
8010
|
+
name?: string;
|
|
8011
|
+
};
|
|
8012
|
+
Relationships: [];
|
|
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;
|
|
7079
8108
|
};
|
|
7080
8109
|
Update: {
|
|
7081
|
-
|
|
7082
|
-
color_code?: string | null;
|
|
8110
|
+
connection_id?: string | null;
|
|
7083
8111
|
created_at?: string;
|
|
7084
|
-
|
|
7085
|
-
hourly_rate?: number;
|
|
8112
|
+
created_by?: string | null;
|
|
7086
8113
|
id?: string;
|
|
7087
|
-
|
|
7088
|
-
|
|
7089
|
-
|
|
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;
|
|
7090
8125
|
};
|
|
7091
8126
|
Relationships: [];
|
|
7092
8127
|
};
|
|
@@ -7347,7 +8382,13 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
|
|
|
7347
8382
|
connection_id: string | null;
|
|
7348
8383
|
created_at: string;
|
|
7349
8384
|
data: import("./types").Json;
|
|
8385
|
+
floriday_id: string | null;
|
|
8386
|
+
floriday_link_error: string | null;
|
|
8387
|
+
floriday_link_status: string;
|
|
7350
8388
|
id: string;
|
|
8389
|
+
last_floriday_sync_at: string | null;
|
|
8390
|
+
missing_required_fields: string[];
|
|
8391
|
+
source: string;
|
|
7351
8392
|
updated_at: string;
|
|
7352
8393
|
user_id: string;
|
|
7353
8394
|
};
|
|
@@ -7355,7 +8396,13 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
|
|
|
7355
8396
|
connection_id?: string | null;
|
|
7356
8397
|
created_at?: string;
|
|
7357
8398
|
data?: import("./types").Json;
|
|
8399
|
+
floriday_id?: string | null;
|
|
8400
|
+
floriday_link_error?: string | null;
|
|
8401
|
+
floriday_link_status?: string;
|
|
7358
8402
|
id?: string;
|
|
8403
|
+
last_floriday_sync_at?: string | null;
|
|
8404
|
+
missing_required_fields?: string[];
|
|
8405
|
+
source?: string;
|
|
7359
8406
|
updated_at?: string;
|
|
7360
8407
|
user_id: string;
|
|
7361
8408
|
};
|
|
@@ -7363,7 +8410,13 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
|
|
|
7363
8410
|
connection_id?: string | null;
|
|
7364
8411
|
created_at?: string;
|
|
7365
8412
|
data?: import("./types").Json;
|
|
8413
|
+
floriday_id?: string | null;
|
|
8414
|
+
floriday_link_error?: string | null;
|
|
8415
|
+
floriday_link_status?: string;
|
|
7366
8416
|
id?: string;
|
|
8417
|
+
last_floriday_sync_at?: string | null;
|
|
8418
|
+
missing_required_fields?: string[];
|
|
8419
|
+
source?: string;
|
|
7367
8420
|
updated_at?: string;
|
|
7368
8421
|
user_id?: string;
|
|
7369
8422
|
};
|
|
@@ -7730,6 +8783,10 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
|
|
|
7730
8783
|
default_invoice_type: string;
|
|
7731
8784
|
default_payment_term_days: number;
|
|
7732
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;
|
|
7733
8790
|
updated_at: string;
|
|
7734
8791
|
user_id: string;
|
|
7735
8792
|
};
|
|
@@ -7739,6 +8796,10 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
|
|
|
7739
8796
|
default_invoice_type?: string;
|
|
7740
8797
|
default_payment_term_days?: number;
|
|
7741
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;
|
|
7742
8803
|
updated_at?: string;
|
|
7743
8804
|
user_id: string;
|
|
7744
8805
|
};
|
|
@@ -7748,6 +8809,10 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
|
|
|
7748
8809
|
default_invoice_type?: string;
|
|
7749
8810
|
default_payment_term_days?: number;
|
|
7750
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;
|
|
7751
8816
|
updated_at?: string;
|
|
7752
8817
|
user_id?: string;
|
|
7753
8818
|
};
|
|
@@ -7755,6 +8820,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
|
|
|
7755
8820
|
};
|
|
7756
8821
|
twinfield_invoice_sync_logs: {
|
|
7757
8822
|
Row: {
|
|
8823
|
+
action_type: string | null;
|
|
7758
8824
|
created_at: string;
|
|
7759
8825
|
details: import("./types").Json | null;
|
|
7760
8826
|
duration_ms: number | null;
|
|
@@ -7767,6 +8833,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
|
|
|
7767
8833
|
user_id: string;
|
|
7768
8834
|
};
|
|
7769
8835
|
Insert: {
|
|
8836
|
+
action_type?: string | null;
|
|
7770
8837
|
created_at?: string;
|
|
7771
8838
|
details?: import("./types").Json | null;
|
|
7772
8839
|
duration_ms?: number | null;
|
|
@@ -7779,6 +8846,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
|
|
|
7779
8846
|
user_id: string;
|
|
7780
8847
|
};
|
|
7781
8848
|
Update: {
|
|
8849
|
+
action_type?: string | null;
|
|
7782
8850
|
created_at?: string;
|
|
7783
8851
|
details?: import("./types").Json | null;
|
|
7784
8852
|
duration_ms?: number | null;
|
|
@@ -8014,6 +9082,57 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
|
|
|
8014
9082
|
referencedColumns: ["id"];
|
|
8015
9083
|
}];
|
|
8016
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
|
+
};
|
|
8017
9136
|
twinfield_settings: {
|
|
8018
9137
|
Row: {
|
|
8019
9138
|
active_environment: string;
|
|
@@ -8595,6 +9714,44 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
|
|
|
8595
9714
|
};
|
|
8596
9715
|
Relationships: [];
|
|
8597
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
|
+
};
|
|
8598
9755
|
manufacture_product_possible_stock_view: {
|
|
8599
9756
|
Row: {
|
|
8600
9757
|
component_count: number | null;
|
|
@@ -8879,6 +10036,68 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
|
|
|
8879
10036
|
};
|
|
8880
10037
|
Returns: number;
|
|
8881
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
|
+
};
|
|
8882
10101
|
assign_floriday_order_numbers: {
|
|
8883
10102
|
Args: {
|
|
8884
10103
|
p_ids: string[];
|
|
@@ -8888,20 +10107,81 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
|
|
|
8888
10107
|
order_number: string;
|
|
8889
10108
|
}[];
|
|
8890
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
|
+
};
|
|
8891
10122
|
call_exact_route: {
|
|
8892
10123
|
Args: {
|
|
8893
10124
|
path: string;
|
|
8894
10125
|
};
|
|
8895
10126
|
Returns: number;
|
|
8896
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
|
+
};
|
|
8897
10150
|
cleanup_old_bookings: {
|
|
8898
10151
|
Args: never;
|
|
8899
10152
|
Returns: number;
|
|
8900
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
|
+
};
|
|
8901
10170
|
current_monteur_id: {
|
|
8902
10171
|
Args: never;
|
|
8903
10172
|
Returns: string;
|
|
8904
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
|
+
};
|
|
8905
10185
|
dashboard_list_public_schema: {
|
|
8906
10186
|
Args: never;
|
|
8907
10187
|
Returns: {
|
|
@@ -8910,6 +10190,12 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
|
|
|
8910
10190
|
table_name: string;
|
|
8911
10191
|
}[];
|
|
8912
10192
|
};
|
|
10193
|
+
dispatch_carrier_signups_sql: {
|
|
10194
|
+
Args: {
|
|
10195
|
+
_catchup?: string;
|
|
10196
|
+
};
|
|
10197
|
+
Returns: import("./types").Json;
|
|
10198
|
+
};
|
|
8913
10199
|
email_auth_decrypt: {
|
|
8914
10200
|
Args: {
|
|
8915
10201
|
cipher: string;
|
|
@@ -8945,6 +10231,12 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
|
|
|
8945
10231
|
status: string;
|
|
8946
10232
|
}[];
|
|
8947
10233
|
};
|
|
10234
|
+
ensure_trade_item_stock_row: {
|
|
10235
|
+
Args: {
|
|
10236
|
+
p_key: string;
|
|
10237
|
+
};
|
|
10238
|
+
Returns: undefined;
|
|
10239
|
+
};
|
|
8948
10240
|
ensure_user_tenant: {
|
|
8949
10241
|
Args: never;
|
|
8950
10242
|
Returns: string;
|
|
@@ -8982,6 +10274,38 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
|
|
|
8982
10274
|
};
|
|
8983
10275
|
Returns: boolean;
|
|
8984
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
|
+
};
|
|
8985
10309
|
get_active_floriday_connection_public: {
|
|
8986
10310
|
Args: never;
|
|
8987
10311
|
Returns: {
|
|
@@ -8995,6 +10319,13 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
|
|
|
8995
10319
|
preferred_warehouse_name: string;
|
|
8996
10320
|
}[];
|
|
8997
10321
|
};
|
|
10322
|
+
get_active_floriday_context: {
|
|
10323
|
+
Args: never;
|
|
10324
|
+
Returns: {
|
|
10325
|
+
connection_id: string;
|
|
10326
|
+
user_id: string;
|
|
10327
|
+
}[];
|
|
10328
|
+
};
|
|
8998
10329
|
get_active_twinfield_public: {
|
|
8999
10330
|
Args: never;
|
|
9000
10331
|
Returns: {
|
|
@@ -9006,6 +10337,13 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
|
|
|
9006
10337
|
office_code: string;
|
|
9007
10338
|
}[];
|
|
9008
10339
|
};
|
|
10340
|
+
get_floricode_record_counts: {
|
|
10341
|
+
Args: never;
|
|
10342
|
+
Returns: {
|
|
10343
|
+
count: number;
|
|
10344
|
+
resource: string;
|
|
10345
|
+
}[];
|
|
10346
|
+
};
|
|
9009
10347
|
get_floriday_agreements_active: {
|
|
9010
10348
|
Args: {
|
|
9011
10349
|
p_on_date?: string;
|
|
@@ -9097,6 +10435,24 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
|
|
|
9097
10435
|
};
|
|
9098
10436
|
Returns: import("./types").Json;
|
|
9099
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
|
+
};
|
|
9100
10456
|
get_or_assign_floriday_order_number: {
|
|
9101
10457
|
Args: {
|
|
9102
10458
|
p_floriday_id: string;
|
|
@@ -9149,12 +10505,53 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
|
|
|
9149
10505
|
Args: never;
|
|
9150
10506
|
Returns: boolean;
|
|
9151
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
|
+
};
|
|
9152
10542
|
next_order_number: {
|
|
9153
10543
|
Args: {
|
|
9154
10544
|
p_prefix: string;
|
|
9155
10545
|
};
|
|
9156
10546
|
Returns: string;
|
|
9157
10547
|
};
|
|
10548
|
+
next_order_number_for_date: {
|
|
10549
|
+
Args: {
|
|
10550
|
+
p_created_at?: string;
|
|
10551
|
+
p_prefix: string;
|
|
10552
|
+
};
|
|
10553
|
+
Returns: string;
|
|
10554
|
+
};
|
|
9158
10555
|
next_work_order_number: {
|
|
9159
10556
|
Args: {
|
|
9160
10557
|
p_parent_work_order_id?: string;
|
|
@@ -9162,16 +10559,41 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
|
|
|
9162
10559
|
};
|
|
9163
10560
|
Returns: string;
|
|
9164
10561
|
};
|
|
10562
|
+
normalize_order_source: {
|
|
10563
|
+
Args: {
|
|
10564
|
+
p_src: string;
|
|
10565
|
+
};
|
|
10566
|
+
Returns: string;
|
|
10567
|
+
};
|
|
9165
10568
|
normalize_vat: {
|
|
9166
10569
|
Args: {
|
|
9167
10570
|
v: string;
|
|
9168
10571
|
};
|
|
9169
10572
|
Returns: string;
|
|
9170
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
|
+
};
|
|
9171
10589
|
pickstation_get_orders_raw: {
|
|
9172
10590
|
Args: never;
|
|
9173
10591
|
Returns: import("./types").Json;
|
|
9174
10592
|
};
|
|
10593
|
+
pickstation_get_planning_context: {
|
|
10594
|
+
Args: never;
|
|
10595
|
+
Returns: import("./types").Json;
|
|
10596
|
+
};
|
|
9175
10597
|
pickstation_get_settings: {
|
|
9176
10598
|
Args: never;
|
|
9177
10599
|
Returns: import("./types").Json;
|
|
@@ -9186,6 +10608,26 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
|
|
|
9186
10608
|
};
|
|
9187
10609
|
Returns: undefined;
|
|
9188
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
|
+
};
|
|
9189
10631
|
refresh_floricode_derived_code_lists: {
|
|
9190
10632
|
Args: never;
|
|
9191
10633
|
Returns: {
|
|
@@ -9200,6 +10642,12 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
|
|
|
9200
10642
|
};
|
|
9201
10643
|
Returns: number;
|
|
9202
10644
|
};
|
|
10645
|
+
refresh_floricode_derived_for_products: {
|
|
10646
|
+
Args: {
|
|
10647
|
+
_product_ids: string[];
|
|
10648
|
+
};
|
|
10649
|
+
Returns: number;
|
|
10650
|
+
};
|
|
9203
10651
|
reset_floriday_sync_cursor: {
|
|
9204
10652
|
Args: {
|
|
9205
10653
|
p_connection_id: string;
|
|
@@ -9207,6 +10655,12 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
|
|
|
9207
10655
|
};
|
|
9208
10656
|
Returns: undefined;
|
|
9209
10657
|
};
|
|
10658
|
+
resolve_product_id_for_item: {
|
|
10659
|
+
Args: {
|
|
10660
|
+
p_product_name: string;
|
|
10661
|
+
};
|
|
10662
|
+
Returns: string;
|
|
10663
|
+
};
|
|
9210
10664
|
schedule_floriday_additional_services_sync: {
|
|
9211
10665
|
Args: {
|
|
9212
10666
|
p_apikey: string;
|