@flowselections/floriday-klanten-module 1.0.12 → 1.0.14
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/ImportKlanten.d.ts +2 -0
- package/dist-lib/components/klanten/ImportKlanten.d.ts.map +1 -0
- package/dist-lib/components/klanten/ImportKlanten.js +406 -0
- 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/components/klanten/NieuweKlant.d.ts.map +1 -1
- package/dist-lib/components/klanten/NieuweKlant.js +10 -1
- package/dist-lib/index.d.ts +1 -0
- package/dist-lib/index.d.ts.map +1 -1
- package/dist-lib/index.js +1 -0
- package/dist-lib/integrations/supabase/auth-middleware.d.ts +1857 -32
- package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/client.d.ts +1857 -32
- package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/client.server.d.ts +1857 -32
- package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/types.d.ts +1873 -18
- package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
- package/dist-lib/lib/accounting.functions.d.ts +5790 -315
- package/dist-lib/lib/accounting.functions.d.ts.map +1 -1
- package/dist-lib/lib/customer-analytics.functions.d.ts +1857 -32
- package/dist-lib/lib/customer-analytics.functions.d.ts.map +1 -1
- package/dist-lib/lib/customer-schemas.d.ts +147 -0
- package/dist-lib/lib/customer-schemas.d.ts.map +1 -1
- package/dist-lib/lib/customer-schemas.js +64 -7
- package/dist-lib/lib/customers.functions.d.ts +24512 -182
- package/dist-lib/lib/customers.functions.d.ts.map +1 -1
- package/dist-lib/lib/customers.functions.js +76 -17
- package/dist-lib/lib/delivery-locations.functions.d.ts +7300 -0
- package/dist-lib/lib/delivery-locations.functions.d.ts.map +1 -1
- package/dist-lib/lib/external-customers.functions.d.ts +7300 -0
- package/dist-lib/lib/external-customers.functions.d.ts.map +1 -1
- package/dist-lib/lib/floriday-discounts.functions.d.ts +22716 -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 +79495 -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 +11355 -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 +9 -2
|
@@ -56,11 +56,15 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
|
|
|
56
56
|
Tables: {
|
|
57
57
|
afhandeling_settings: {
|
|
58
58
|
Row: {
|
|
59
|
+
auto_print_delivery_note: boolean;
|
|
60
|
+
auto_process_paused: boolean;
|
|
59
61
|
created_at: string;
|
|
62
|
+
extra_pick_days_with_stickers: number;
|
|
60
63
|
id: string;
|
|
61
64
|
max_workdays_earlier_pick: number;
|
|
62
65
|
pick_days_before_transport: number;
|
|
63
66
|
pick_distribution_enabled: boolean;
|
|
67
|
+
pick_weekdays: number[];
|
|
64
68
|
signup_mail_enabled: boolean;
|
|
65
69
|
signup_mail_lead_minutes: number;
|
|
66
70
|
signup_mail_purpose: string;
|
|
@@ -69,11 +73,15 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
|
|
|
69
73
|
user_id: string;
|
|
70
74
|
};
|
|
71
75
|
Insert: {
|
|
76
|
+
auto_print_delivery_note?: boolean;
|
|
77
|
+
auto_process_paused?: boolean;
|
|
72
78
|
created_at?: string;
|
|
79
|
+
extra_pick_days_with_stickers?: number;
|
|
73
80
|
id?: string;
|
|
74
81
|
max_workdays_earlier_pick?: number;
|
|
75
82
|
pick_days_before_transport?: number;
|
|
76
83
|
pick_distribution_enabled?: boolean;
|
|
84
|
+
pick_weekdays?: number[];
|
|
77
85
|
signup_mail_enabled?: boolean;
|
|
78
86
|
signup_mail_lead_minutes?: number;
|
|
79
87
|
signup_mail_purpose?: string;
|
|
@@ -82,11 +90,15 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
|
|
|
82
90
|
user_id: string;
|
|
83
91
|
};
|
|
84
92
|
Update: {
|
|
93
|
+
auto_print_delivery_note?: boolean;
|
|
94
|
+
auto_process_paused?: boolean;
|
|
85
95
|
created_at?: string;
|
|
96
|
+
extra_pick_days_with_stickers?: number;
|
|
86
97
|
id?: string;
|
|
87
98
|
max_workdays_earlier_pick?: number;
|
|
88
99
|
pick_days_before_transport?: number;
|
|
89
100
|
pick_distribution_enabled?: boolean;
|
|
101
|
+
pick_weekdays?: number[];
|
|
90
102
|
signup_mail_enabled?: boolean;
|
|
91
103
|
signup_mail_lead_minutes?: number;
|
|
92
104
|
signup_mail_purpose?: string;
|
|
@@ -312,6 +324,9 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
|
|
|
312
324
|
created_at: string;
|
|
313
325
|
extra_id: string;
|
|
314
326
|
id: string;
|
|
327
|
+
original_unit_price: number | null;
|
|
328
|
+
override_reason: string | null;
|
|
329
|
+
override_unit_price: number | null;
|
|
315
330
|
quantity: number;
|
|
316
331
|
total_price: number;
|
|
317
332
|
unit_price: number;
|
|
@@ -321,6 +336,9 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
|
|
|
321
336
|
created_at?: string;
|
|
322
337
|
extra_id: string;
|
|
323
338
|
id?: string;
|
|
339
|
+
original_unit_price?: number | null;
|
|
340
|
+
override_reason?: string | null;
|
|
341
|
+
override_unit_price?: number | null;
|
|
324
342
|
quantity?: number;
|
|
325
343
|
total_price?: number;
|
|
326
344
|
unit_price?: number;
|
|
@@ -330,6 +348,9 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
|
|
|
330
348
|
created_at?: string;
|
|
331
349
|
extra_id?: string;
|
|
332
350
|
id?: string;
|
|
351
|
+
original_unit_price?: number | null;
|
|
352
|
+
override_reason?: string | null;
|
|
353
|
+
override_unit_price?: number | null;
|
|
333
354
|
quantity?: number;
|
|
334
355
|
total_price?: number;
|
|
335
356
|
unit_price?: number;
|
|
@@ -350,11 +371,15 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
|
|
|
350
371
|
};
|
|
351
372
|
bookings: {
|
|
352
373
|
Row: {
|
|
374
|
+
archive_reason: string | null;
|
|
375
|
+
archived_at: string | null;
|
|
376
|
+
archived_by: string | null;
|
|
353
377
|
company_name: string | null;
|
|
354
378
|
conflict_checked_at: string | null;
|
|
355
379
|
conflict_reason: string | null;
|
|
356
380
|
created_at: string;
|
|
357
381
|
created_by_role: string | null;
|
|
382
|
+
customer_address: string | null;
|
|
358
383
|
customer_email: string | null;
|
|
359
384
|
customer_name: string | null;
|
|
360
385
|
end_time: string;
|
|
@@ -366,7 +391,12 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
|
|
|
366
391
|
invoiced_at: string | null;
|
|
367
392
|
notes: string | null;
|
|
368
393
|
number_of_people: number;
|
|
394
|
+
overridden_at: string | null;
|
|
395
|
+
overridden_by: string | null;
|
|
396
|
+
override_reason: string | null;
|
|
397
|
+
price_override: boolean;
|
|
369
398
|
room_id: string;
|
|
399
|
+
room_price_override: number | null;
|
|
370
400
|
start_time: string;
|
|
371
401
|
status: string;
|
|
372
402
|
total_excl_vat: number | null;
|
|
@@ -375,11 +405,15 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
|
|
|
375
405
|
vat_amount: number | null;
|
|
376
406
|
};
|
|
377
407
|
Insert: {
|
|
408
|
+
archive_reason?: string | null;
|
|
409
|
+
archived_at?: string | null;
|
|
410
|
+
archived_by?: string | null;
|
|
378
411
|
company_name?: string | null;
|
|
379
412
|
conflict_checked_at?: string | null;
|
|
380
413
|
conflict_reason?: string | null;
|
|
381
414
|
created_at?: string;
|
|
382
415
|
created_by_role?: string | null;
|
|
416
|
+
customer_address?: string | null;
|
|
383
417
|
customer_email?: string | null;
|
|
384
418
|
customer_name?: string | null;
|
|
385
419
|
end_time: string;
|
|
@@ -391,7 +425,12 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
|
|
|
391
425
|
invoiced_at?: string | null;
|
|
392
426
|
notes?: string | null;
|
|
393
427
|
number_of_people?: number;
|
|
428
|
+
overridden_at?: string | null;
|
|
429
|
+
overridden_by?: string | null;
|
|
430
|
+
override_reason?: string | null;
|
|
431
|
+
price_override?: boolean;
|
|
394
432
|
room_id: string;
|
|
433
|
+
room_price_override?: number | null;
|
|
395
434
|
start_time: string;
|
|
396
435
|
status?: string;
|
|
397
436
|
total_excl_vat?: number | null;
|
|
@@ -400,11 +439,15 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
|
|
|
400
439
|
vat_amount?: number | null;
|
|
401
440
|
};
|
|
402
441
|
Update: {
|
|
442
|
+
archive_reason?: string | null;
|
|
443
|
+
archived_at?: string | null;
|
|
444
|
+
archived_by?: string | null;
|
|
403
445
|
company_name?: string | null;
|
|
404
446
|
conflict_checked_at?: string | null;
|
|
405
447
|
conflict_reason?: string | null;
|
|
406
448
|
created_at?: string;
|
|
407
449
|
created_by_role?: string | null;
|
|
450
|
+
customer_address?: string | null;
|
|
408
451
|
customer_email?: string | null;
|
|
409
452
|
customer_name?: string | null;
|
|
410
453
|
end_time?: string;
|
|
@@ -416,7 +459,12 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
|
|
|
416
459
|
invoiced_at?: string | null;
|
|
417
460
|
notes?: string | null;
|
|
418
461
|
number_of_people?: number;
|
|
462
|
+
overridden_at?: string | null;
|
|
463
|
+
overridden_by?: string | null;
|
|
464
|
+
override_reason?: string | null;
|
|
465
|
+
price_override?: boolean;
|
|
419
466
|
room_id?: string;
|
|
467
|
+
room_price_override?: number | null;
|
|
420
468
|
start_time?: string;
|
|
421
469
|
status?: string;
|
|
422
470
|
total_excl_vat?: number | null;
|
|
@@ -498,6 +546,48 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
|
|
|
498
546
|
referencedColumns: ["id"];
|
|
499
547
|
}];
|
|
500
548
|
};
|
|
549
|
+
carrier_signup_dispatch_runs: {
|
|
550
|
+
Row: {
|
|
551
|
+
detail: import("../integrations/supabase/types").Json | null;
|
|
552
|
+
error: string | null;
|
|
553
|
+
finished_at: string | null;
|
|
554
|
+
groups: number;
|
|
555
|
+
id: string;
|
|
556
|
+
ok: boolean;
|
|
557
|
+
reason: string | null;
|
|
558
|
+
sent: number;
|
|
559
|
+
skipped: import("../integrations/supabase/types").Json;
|
|
560
|
+
started_at: string;
|
|
561
|
+
unassigned: import("../integrations/supabase/types").Json;
|
|
562
|
+
};
|
|
563
|
+
Insert: {
|
|
564
|
+
detail?: import("../integrations/supabase/types").Json | null;
|
|
565
|
+
error?: string | null;
|
|
566
|
+
finished_at?: string | null;
|
|
567
|
+
groups?: number;
|
|
568
|
+
id?: string;
|
|
569
|
+
ok?: boolean;
|
|
570
|
+
reason?: string | null;
|
|
571
|
+
sent?: number;
|
|
572
|
+
skipped?: import("../integrations/supabase/types").Json;
|
|
573
|
+
started_at?: string;
|
|
574
|
+
unassigned?: import("../integrations/supabase/types").Json;
|
|
575
|
+
};
|
|
576
|
+
Update: {
|
|
577
|
+
detail?: import("../integrations/supabase/types").Json | null;
|
|
578
|
+
error?: string | null;
|
|
579
|
+
finished_at?: string | null;
|
|
580
|
+
groups?: number;
|
|
581
|
+
id?: string;
|
|
582
|
+
ok?: boolean;
|
|
583
|
+
reason?: string | null;
|
|
584
|
+
sent?: number;
|
|
585
|
+
skipped?: import("../integrations/supabase/types").Json;
|
|
586
|
+
started_at?: string;
|
|
587
|
+
unassigned?: import("../integrations/supabase/types").Json;
|
|
588
|
+
};
|
|
589
|
+
Relationships: [];
|
|
590
|
+
};
|
|
501
591
|
carrier_signup_dispatches: {
|
|
502
592
|
Row: {
|
|
503
593
|
carrier_id: string;
|
|
@@ -549,6 +639,7 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
|
|
|
549
639
|
contact_person: string | null;
|
|
550
640
|
created_at: string;
|
|
551
641
|
delivery_days: number | null;
|
|
642
|
+
delivery_weekdays: number[];
|
|
552
643
|
email: string | null;
|
|
553
644
|
id: string;
|
|
554
645
|
is_default: boolean;
|
|
@@ -556,6 +647,7 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
|
|
|
556
647
|
notes: string | null;
|
|
557
648
|
phone: string | null;
|
|
558
649
|
pickup_moments: import("../integrations/supabase/types").Json;
|
|
650
|
+
pickup_weekdays: number[];
|
|
559
651
|
service_cities: string[];
|
|
560
652
|
service_countries: string[];
|
|
561
653
|
service_provinces: string[];
|
|
@@ -571,6 +663,7 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
|
|
|
571
663
|
contact_person?: string | null;
|
|
572
664
|
created_at?: string;
|
|
573
665
|
delivery_days?: number | null;
|
|
666
|
+
delivery_weekdays?: number[];
|
|
574
667
|
email?: string | null;
|
|
575
668
|
id?: string;
|
|
576
669
|
is_default?: boolean;
|
|
@@ -578,6 +671,7 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
|
|
|
578
671
|
notes?: string | null;
|
|
579
672
|
phone?: string | null;
|
|
580
673
|
pickup_moments?: import("../integrations/supabase/types").Json;
|
|
674
|
+
pickup_weekdays?: number[];
|
|
581
675
|
service_cities?: string[];
|
|
582
676
|
service_countries?: string[];
|
|
583
677
|
service_provinces?: string[];
|
|
@@ -593,6 +687,7 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
|
|
|
593
687
|
contact_person?: string | null;
|
|
594
688
|
created_at?: string;
|
|
595
689
|
delivery_days?: number | null;
|
|
690
|
+
delivery_weekdays?: number[];
|
|
596
691
|
email?: string | null;
|
|
597
692
|
id?: string;
|
|
598
693
|
is_default?: boolean;
|
|
@@ -600,6 +695,7 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
|
|
|
600
695
|
notes?: string | null;
|
|
601
696
|
phone?: string | null;
|
|
602
697
|
pickup_moments?: import("../integrations/supabase/types").Json;
|
|
698
|
+
pickup_weekdays?: number[];
|
|
603
699
|
service_cities?: string[];
|
|
604
700
|
service_countries?: string[];
|
|
605
701
|
service_provinces?: string[];
|
|
@@ -612,6 +708,180 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
|
|
|
612
708
|
};
|
|
613
709
|
Relationships: [];
|
|
614
710
|
};
|
|
711
|
+
cart_control_draft: {
|
|
712
|
+
Row: {
|
|
713
|
+
cart_states: import("../integrations/supabase/types").Json;
|
|
714
|
+
checked_keys: import("../integrations/supabase/types").Json;
|
|
715
|
+
draft_date: string;
|
|
716
|
+
form_state: import("../integrations/supabase/types").Json;
|
|
717
|
+
notes: string;
|
|
718
|
+
updated_at: string;
|
|
719
|
+
user_id: string;
|
|
720
|
+
};
|
|
721
|
+
Insert: {
|
|
722
|
+
cart_states?: import("../integrations/supabase/types").Json;
|
|
723
|
+
checked_keys?: import("../integrations/supabase/types").Json;
|
|
724
|
+
draft_date: string;
|
|
725
|
+
form_state?: import("../integrations/supabase/types").Json;
|
|
726
|
+
notes?: string;
|
|
727
|
+
updated_at?: string;
|
|
728
|
+
user_id: string;
|
|
729
|
+
};
|
|
730
|
+
Update: {
|
|
731
|
+
cart_states?: import("../integrations/supabase/types").Json;
|
|
732
|
+
checked_keys?: import("../integrations/supabase/types").Json;
|
|
733
|
+
draft_date?: string;
|
|
734
|
+
form_state?: import("../integrations/supabase/types").Json;
|
|
735
|
+
notes?: string;
|
|
736
|
+
updated_at?: string;
|
|
737
|
+
user_id?: string;
|
|
738
|
+
};
|
|
739
|
+
Relationships: [];
|
|
740
|
+
};
|
|
741
|
+
cart_control_items: {
|
|
742
|
+
Row: {
|
|
743
|
+
action: string;
|
|
744
|
+
block_reason: string | null;
|
|
745
|
+
carrier_name: string | null;
|
|
746
|
+
cart_index: number;
|
|
747
|
+
cart_number_id: string | null;
|
|
748
|
+
cart_number_label: string | null;
|
|
749
|
+
created_at: string;
|
|
750
|
+
customer_name: string | null;
|
|
751
|
+
delivery_date: string | null;
|
|
752
|
+
id: string;
|
|
753
|
+
new_pick_date: string | null;
|
|
754
|
+
order_id: string;
|
|
755
|
+
order_number: string | null;
|
|
756
|
+
order_source: string;
|
|
757
|
+
pickup_date: string | null;
|
|
758
|
+
session_id: string;
|
|
759
|
+
};
|
|
760
|
+
Insert: {
|
|
761
|
+
action: string;
|
|
762
|
+
block_reason?: string | null;
|
|
763
|
+
carrier_name?: string | null;
|
|
764
|
+
cart_index: number;
|
|
765
|
+
cart_number_id?: string | null;
|
|
766
|
+
cart_number_label?: string | null;
|
|
767
|
+
created_at?: string;
|
|
768
|
+
customer_name?: string | null;
|
|
769
|
+
delivery_date?: string | null;
|
|
770
|
+
id?: string;
|
|
771
|
+
new_pick_date?: string | null;
|
|
772
|
+
order_id: string;
|
|
773
|
+
order_number?: string | null;
|
|
774
|
+
order_source: string;
|
|
775
|
+
pickup_date?: string | null;
|
|
776
|
+
session_id: string;
|
|
777
|
+
};
|
|
778
|
+
Update: {
|
|
779
|
+
action?: string;
|
|
780
|
+
block_reason?: string | null;
|
|
781
|
+
carrier_name?: string | null;
|
|
782
|
+
cart_index?: number;
|
|
783
|
+
cart_number_id?: string | null;
|
|
784
|
+
cart_number_label?: string | null;
|
|
785
|
+
created_at?: string;
|
|
786
|
+
customer_name?: string | null;
|
|
787
|
+
delivery_date?: string | null;
|
|
788
|
+
id?: string;
|
|
789
|
+
new_pick_date?: string | null;
|
|
790
|
+
order_id?: string;
|
|
791
|
+
order_number?: string | null;
|
|
792
|
+
order_source?: string;
|
|
793
|
+
pickup_date?: string | null;
|
|
794
|
+
session_id?: string;
|
|
795
|
+
};
|
|
796
|
+
Relationships: [{
|
|
797
|
+
foreignKeyName: "cart_control_items_session_id_fkey";
|
|
798
|
+
columns: ["session_id"];
|
|
799
|
+
isOneToOne: false;
|
|
800
|
+
referencedRelation: "cart_control_sessions";
|
|
801
|
+
referencedColumns: ["id"];
|
|
802
|
+
}];
|
|
803
|
+
};
|
|
804
|
+
cart_control_sessions: {
|
|
805
|
+
Row: {
|
|
806
|
+
blocked_count: number;
|
|
807
|
+
checked_count: number;
|
|
808
|
+
control_date: string;
|
|
809
|
+
created_at: string;
|
|
810
|
+
id: string;
|
|
811
|
+
notes: string | null;
|
|
812
|
+
performed_at: string;
|
|
813
|
+
rescheduled_count: number;
|
|
814
|
+
stock_consumed_at: string | null;
|
|
815
|
+
total_carts: number;
|
|
816
|
+
updated_at: string;
|
|
817
|
+
user_id: string;
|
|
818
|
+
};
|
|
819
|
+
Insert: {
|
|
820
|
+
blocked_count?: number;
|
|
821
|
+
checked_count?: number;
|
|
822
|
+
control_date?: string;
|
|
823
|
+
created_at?: string;
|
|
824
|
+
id?: string;
|
|
825
|
+
notes?: string | null;
|
|
826
|
+
performed_at?: string;
|
|
827
|
+
rescheduled_count?: number;
|
|
828
|
+
stock_consumed_at?: string | null;
|
|
829
|
+
total_carts?: number;
|
|
830
|
+
updated_at?: string;
|
|
831
|
+
user_id: string;
|
|
832
|
+
};
|
|
833
|
+
Update: {
|
|
834
|
+
blocked_count?: number;
|
|
835
|
+
checked_count?: number;
|
|
836
|
+
control_date?: string;
|
|
837
|
+
created_at?: string;
|
|
838
|
+
id?: string;
|
|
839
|
+
notes?: string | null;
|
|
840
|
+
performed_at?: string;
|
|
841
|
+
rescheduled_count?: number;
|
|
842
|
+
stock_consumed_at?: string | null;
|
|
843
|
+
total_carts?: number;
|
|
844
|
+
updated_at?: string;
|
|
845
|
+
user_id?: string;
|
|
846
|
+
};
|
|
847
|
+
Relationships: [];
|
|
848
|
+
};
|
|
849
|
+
cart_numbers: {
|
|
850
|
+
Row: {
|
|
851
|
+
assigned_at: string;
|
|
852
|
+
cart_index: number;
|
|
853
|
+
cart_number: string;
|
|
854
|
+
day_seq: number;
|
|
855
|
+
id: string;
|
|
856
|
+
order_id: string;
|
|
857
|
+
order_source: string;
|
|
858
|
+
pick_date: string;
|
|
859
|
+
status: string;
|
|
860
|
+
};
|
|
861
|
+
Insert: {
|
|
862
|
+
assigned_at?: string;
|
|
863
|
+
cart_index: number;
|
|
864
|
+
cart_number: string;
|
|
865
|
+
day_seq: number;
|
|
866
|
+
id?: string;
|
|
867
|
+
order_id: string;
|
|
868
|
+
order_source: string;
|
|
869
|
+
pick_date: string;
|
|
870
|
+
status?: string;
|
|
871
|
+
};
|
|
872
|
+
Update: {
|
|
873
|
+
assigned_at?: string;
|
|
874
|
+
cart_index?: number;
|
|
875
|
+
cart_number?: string;
|
|
876
|
+
day_seq?: number;
|
|
877
|
+
id?: string;
|
|
878
|
+
order_id?: string;
|
|
879
|
+
order_source?: string;
|
|
880
|
+
pick_date?: string;
|
|
881
|
+
status?: string;
|
|
882
|
+
};
|
|
883
|
+
Relationships: [];
|
|
884
|
+
};
|
|
615
885
|
cart_pick_overrides: {
|
|
616
886
|
Row: {
|
|
617
887
|
cart_index: number;
|
|
@@ -651,6 +921,36 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
|
|
|
651
921
|
};
|
|
652
922
|
Relationships: [];
|
|
653
923
|
};
|
|
924
|
+
cart_replan_queue: {
|
|
925
|
+
Row: {
|
|
926
|
+
attempts: number;
|
|
927
|
+
last_error: string | null;
|
|
928
|
+
order_id: string;
|
|
929
|
+
processed_at: string | null;
|
|
930
|
+
requested_at: string;
|
|
931
|
+
};
|
|
932
|
+
Insert: {
|
|
933
|
+
attempts?: number;
|
|
934
|
+
last_error?: string | null;
|
|
935
|
+
order_id: string;
|
|
936
|
+
processed_at?: string | null;
|
|
937
|
+
requested_at?: string;
|
|
938
|
+
};
|
|
939
|
+
Update: {
|
|
940
|
+
attempts?: number;
|
|
941
|
+
last_error?: string | null;
|
|
942
|
+
order_id?: string;
|
|
943
|
+
processed_at?: string | null;
|
|
944
|
+
requested_at?: string;
|
|
945
|
+
};
|
|
946
|
+
Relationships: [{
|
|
947
|
+
foreignKeyName: "cart_replan_queue_order_id_fkey";
|
|
948
|
+
columns: ["order_id"];
|
|
949
|
+
isOneToOne: true;
|
|
950
|
+
referencedRelation: "orders";
|
|
951
|
+
referencedColumns: ["id"];
|
|
952
|
+
}];
|
|
953
|
+
};
|
|
654
954
|
collections: {
|
|
655
955
|
Row: {
|
|
656
956
|
created_at: string;
|
|
@@ -993,8 +1293,27 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
|
|
|
993
1293
|
customers: {
|
|
994
1294
|
Row: {
|
|
995
1295
|
address: string | null;
|
|
1296
|
+
address_line1: string | null;
|
|
1297
|
+
address_line2: string | null;
|
|
1298
|
+
address_type: string | null;
|
|
1299
|
+
attention_to: string | null;
|
|
1300
|
+
bank_account_holder: string | null;
|
|
1301
|
+
bank_account_number: string | null;
|
|
1302
|
+
bank_address_line1: string | null;
|
|
1303
|
+
bank_address_line2: string | null;
|
|
1304
|
+
bank_bic: string | null;
|
|
1305
|
+
bank_city: string | null;
|
|
1306
|
+
bank_country: string | null;
|
|
1307
|
+
bank_house_number: string | null;
|
|
1308
|
+
bank_iban: string | null;
|
|
1309
|
+
bank_name: string | null;
|
|
1310
|
+
bank_national_code: string | null;
|
|
1311
|
+
bank_postal_code: string | null;
|
|
1312
|
+
bank_state: string | null;
|
|
1313
|
+
billing_email: string | null;
|
|
996
1314
|
bio: string | null;
|
|
997
1315
|
city: string | null;
|
|
1316
|
+
coc_number: string | null;
|
|
998
1317
|
commercial_name: string | null;
|
|
999
1318
|
company_name: string;
|
|
1000
1319
|
connection_status: string;
|
|
@@ -1003,21 +1322,28 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
|
|
|
1003
1322
|
created_at: string;
|
|
1004
1323
|
custom_fields: import("../integrations/supabase/types").Json;
|
|
1005
1324
|
customer_class: string | null;
|
|
1325
|
+
customer_number: string | null;
|
|
1326
|
+
discount_days: number | null;
|
|
1327
|
+
discount_percentage: number | null;
|
|
1006
1328
|
email: string | null;
|
|
1007
1329
|
external_id: string | null;
|
|
1330
|
+
fax: string | null;
|
|
1008
1331
|
floriday_connection_id: string | null;
|
|
1009
1332
|
floriday_organization_id: string | null;
|
|
1010
1333
|
floriday_raw: import("../integrations/supabase/types").Json | null;
|
|
1011
1334
|
gln: string | null;
|
|
1012
1335
|
house_number: string | null;
|
|
1336
|
+
icp_country_code: string | null;
|
|
1013
1337
|
id: string;
|
|
1014
1338
|
is_active: boolean;
|
|
1339
|
+
language: string | null;
|
|
1015
1340
|
last_synced_at: string | null;
|
|
1016
1341
|
logo_url: string | null;
|
|
1017
1342
|
markets: string[];
|
|
1018
1343
|
notes: string | null;
|
|
1019
1344
|
organization_type: string | null;
|
|
1020
1345
|
payment_methods: string[];
|
|
1346
|
+
payment_term_days: number | null;
|
|
1021
1347
|
phone: string | null;
|
|
1022
1348
|
postal_code: string | null;
|
|
1023
1349
|
product_groups: string[];
|
|
@@ -1028,13 +1354,33 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
|
|
|
1028
1354
|
sync_status: string;
|
|
1029
1355
|
trade_forms: string[];
|
|
1030
1356
|
updated_at: string;
|
|
1357
|
+
vat_display: string | null;
|
|
1031
1358
|
vat_number: string | null;
|
|
1032
1359
|
website: string | null;
|
|
1033
1360
|
};
|
|
1034
1361
|
Insert: {
|
|
1035
1362
|
address?: string | null;
|
|
1363
|
+
address_line1?: string | null;
|
|
1364
|
+
address_line2?: string | null;
|
|
1365
|
+
address_type?: string | null;
|
|
1366
|
+
attention_to?: string | null;
|
|
1367
|
+
bank_account_holder?: string | null;
|
|
1368
|
+
bank_account_number?: string | null;
|
|
1369
|
+
bank_address_line1?: string | null;
|
|
1370
|
+
bank_address_line2?: string | null;
|
|
1371
|
+
bank_bic?: string | null;
|
|
1372
|
+
bank_city?: string | null;
|
|
1373
|
+
bank_country?: string | null;
|
|
1374
|
+
bank_house_number?: string | null;
|
|
1375
|
+
bank_iban?: string | null;
|
|
1376
|
+
bank_name?: string | null;
|
|
1377
|
+
bank_national_code?: string | null;
|
|
1378
|
+
bank_postal_code?: string | null;
|
|
1379
|
+
bank_state?: string | null;
|
|
1380
|
+
billing_email?: string | null;
|
|
1036
1381
|
bio?: string | null;
|
|
1037
1382
|
city?: string | null;
|
|
1383
|
+
coc_number?: string | null;
|
|
1038
1384
|
commercial_name?: string | null;
|
|
1039
1385
|
company_name: string;
|
|
1040
1386
|
connection_status?: string;
|
|
@@ -1043,21 +1389,28 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
|
|
|
1043
1389
|
created_at?: string;
|
|
1044
1390
|
custom_fields?: import("../integrations/supabase/types").Json;
|
|
1045
1391
|
customer_class?: string | null;
|
|
1392
|
+
customer_number?: string | null;
|
|
1393
|
+
discount_days?: number | null;
|
|
1394
|
+
discount_percentage?: number | null;
|
|
1046
1395
|
email?: string | null;
|
|
1047
1396
|
external_id?: string | null;
|
|
1397
|
+
fax?: string | null;
|
|
1048
1398
|
floriday_connection_id?: string | null;
|
|
1049
1399
|
floriday_organization_id?: string | null;
|
|
1050
1400
|
floriday_raw?: import("../integrations/supabase/types").Json | null;
|
|
1051
1401
|
gln?: string | null;
|
|
1052
1402
|
house_number?: string | null;
|
|
1403
|
+
icp_country_code?: string | null;
|
|
1053
1404
|
id?: string;
|
|
1054
1405
|
is_active?: boolean;
|
|
1406
|
+
language?: string | null;
|
|
1055
1407
|
last_synced_at?: string | null;
|
|
1056
1408
|
logo_url?: string | null;
|
|
1057
1409
|
markets?: string[];
|
|
1058
1410
|
notes?: string | null;
|
|
1059
1411
|
organization_type?: string | null;
|
|
1060
1412
|
payment_methods?: string[];
|
|
1413
|
+
payment_term_days?: number | null;
|
|
1061
1414
|
phone?: string | null;
|
|
1062
1415
|
postal_code?: string | null;
|
|
1063
1416
|
product_groups?: string[];
|
|
@@ -1068,13 +1421,33 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
|
|
|
1068
1421
|
sync_status?: string;
|
|
1069
1422
|
trade_forms?: string[];
|
|
1070
1423
|
updated_at?: string;
|
|
1424
|
+
vat_display?: string | null;
|
|
1071
1425
|
vat_number?: string | null;
|
|
1072
1426
|
website?: string | null;
|
|
1073
1427
|
};
|
|
1074
1428
|
Update: {
|
|
1075
1429
|
address?: string | null;
|
|
1430
|
+
address_line1?: string | null;
|
|
1431
|
+
address_line2?: string | null;
|
|
1432
|
+
address_type?: string | null;
|
|
1433
|
+
attention_to?: string | null;
|
|
1434
|
+
bank_account_holder?: string | null;
|
|
1435
|
+
bank_account_number?: string | null;
|
|
1436
|
+
bank_address_line1?: string | null;
|
|
1437
|
+
bank_address_line2?: string | null;
|
|
1438
|
+
bank_bic?: string | null;
|
|
1439
|
+
bank_city?: string | null;
|
|
1440
|
+
bank_country?: string | null;
|
|
1441
|
+
bank_house_number?: string | null;
|
|
1442
|
+
bank_iban?: string | null;
|
|
1443
|
+
bank_name?: string | null;
|
|
1444
|
+
bank_national_code?: string | null;
|
|
1445
|
+
bank_postal_code?: string | null;
|
|
1446
|
+
bank_state?: string | null;
|
|
1447
|
+
billing_email?: string | null;
|
|
1076
1448
|
bio?: string | null;
|
|
1077
1449
|
city?: string | null;
|
|
1450
|
+
coc_number?: string | null;
|
|
1078
1451
|
commercial_name?: string | null;
|
|
1079
1452
|
company_name?: string;
|
|
1080
1453
|
connection_status?: string;
|
|
@@ -1083,21 +1456,28 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
|
|
|
1083
1456
|
created_at?: string;
|
|
1084
1457
|
custom_fields?: import("../integrations/supabase/types").Json;
|
|
1085
1458
|
customer_class?: string | null;
|
|
1459
|
+
customer_number?: string | null;
|
|
1460
|
+
discount_days?: number | null;
|
|
1461
|
+
discount_percentage?: number | null;
|
|
1086
1462
|
email?: string | null;
|
|
1087
1463
|
external_id?: string | null;
|
|
1464
|
+
fax?: string | null;
|
|
1088
1465
|
floriday_connection_id?: string | null;
|
|
1089
1466
|
floriday_organization_id?: string | null;
|
|
1090
1467
|
floriday_raw?: import("../integrations/supabase/types").Json | null;
|
|
1091
1468
|
gln?: string | null;
|
|
1092
1469
|
house_number?: string | null;
|
|
1470
|
+
icp_country_code?: string | null;
|
|
1093
1471
|
id?: string;
|
|
1094
1472
|
is_active?: boolean;
|
|
1473
|
+
language?: string | null;
|
|
1095
1474
|
last_synced_at?: string | null;
|
|
1096
1475
|
logo_url?: string | null;
|
|
1097
1476
|
markets?: string[];
|
|
1098
1477
|
notes?: string | null;
|
|
1099
1478
|
organization_type?: string | null;
|
|
1100
1479
|
payment_methods?: string[];
|
|
1480
|
+
payment_term_days?: number | null;
|
|
1101
1481
|
phone?: string | null;
|
|
1102
1482
|
postal_code?: string | null;
|
|
1103
1483
|
product_groups?: string[];
|
|
@@ -1108,6 +1488,7 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
|
|
|
1108
1488
|
sync_status?: string;
|
|
1109
1489
|
trade_forms?: string[];
|
|
1110
1490
|
updated_at?: string;
|
|
1491
|
+
vat_display?: string | null;
|
|
1111
1492
|
vat_number?: string | null;
|
|
1112
1493
|
website?: string | null;
|
|
1113
1494
|
};
|
|
@@ -1284,6 +1665,54 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
|
|
|
1284
1665
|
referencedColumns: ["id"];
|
|
1285
1666
|
}];
|
|
1286
1667
|
};
|
|
1668
|
+
dashboard_critical_alerts: {
|
|
1669
|
+
Row: {
|
|
1670
|
+
alert_key: string;
|
|
1671
|
+
alert_type: string;
|
|
1672
|
+
created_at: string;
|
|
1673
|
+
description: string | null;
|
|
1674
|
+
id: string;
|
|
1675
|
+
metadata: import("../integrations/supabase/types").Json | null;
|
|
1676
|
+
priority: string;
|
|
1677
|
+
raised_at: string;
|
|
1678
|
+
related_cart_ids: string[] | null;
|
|
1679
|
+
resolved_at: string | null;
|
|
1680
|
+
title: string;
|
|
1681
|
+
updated_at: string;
|
|
1682
|
+
user_id: string;
|
|
1683
|
+
};
|
|
1684
|
+
Insert: {
|
|
1685
|
+
alert_key: string;
|
|
1686
|
+
alert_type: string;
|
|
1687
|
+
created_at?: string;
|
|
1688
|
+
description?: string | null;
|
|
1689
|
+
id?: string;
|
|
1690
|
+
metadata?: import("../integrations/supabase/types").Json | null;
|
|
1691
|
+
priority?: string;
|
|
1692
|
+
raised_at?: string;
|
|
1693
|
+
related_cart_ids?: string[] | null;
|
|
1694
|
+
resolved_at?: string | null;
|
|
1695
|
+
title: string;
|
|
1696
|
+
updated_at?: string;
|
|
1697
|
+
user_id: string;
|
|
1698
|
+
};
|
|
1699
|
+
Update: {
|
|
1700
|
+
alert_key?: string;
|
|
1701
|
+
alert_type?: string;
|
|
1702
|
+
created_at?: string;
|
|
1703
|
+
description?: string | null;
|
|
1704
|
+
id?: string;
|
|
1705
|
+
metadata?: import("../integrations/supabase/types").Json | null;
|
|
1706
|
+
priority?: string;
|
|
1707
|
+
raised_at?: string;
|
|
1708
|
+
related_cart_ids?: string[] | null;
|
|
1709
|
+
resolved_at?: string | null;
|
|
1710
|
+
title?: string;
|
|
1711
|
+
updated_at?: string;
|
|
1712
|
+
user_id?: string;
|
|
1713
|
+
};
|
|
1714
|
+
Relationships: [];
|
|
1715
|
+
};
|
|
1287
1716
|
dashboard_daily_reports: {
|
|
1288
1717
|
Row: {
|
|
1289
1718
|
created_at: string;
|
|
@@ -2728,34 +3157,52 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
|
|
|
2728
3157
|
Row: {
|
|
2729
3158
|
catalog_key: string | null;
|
|
2730
3159
|
catalog_url: string;
|
|
3160
|
+
client_id: string | null;
|
|
3161
|
+
client_secret_ciphertext: string | null;
|
|
3162
|
+
client_secret_last4: string | null;
|
|
2731
3163
|
created_at: string;
|
|
2732
3164
|
id: number;
|
|
2733
3165
|
last_meta: import("../integrations/supabase/types").Json | null;
|
|
2734
3166
|
last_test_at: string | null;
|
|
2735
3167
|
last_test_error: string | null;
|
|
2736
3168
|
last_test_ok: boolean | null;
|
|
3169
|
+
last_token_test_at: string | null;
|
|
3170
|
+
last_token_test_error: string | null;
|
|
3171
|
+
last_token_test_ok: boolean | null;
|
|
2737
3172
|
updated_at: string;
|
|
2738
3173
|
};
|
|
2739
3174
|
Insert: {
|
|
2740
3175
|
catalog_key?: string | null;
|
|
2741
3176
|
catalog_url?: string;
|
|
3177
|
+
client_id?: string | null;
|
|
3178
|
+
client_secret_ciphertext?: string | null;
|
|
3179
|
+
client_secret_last4?: string | null;
|
|
2742
3180
|
created_at?: string;
|
|
2743
3181
|
id?: number;
|
|
2744
3182
|
last_meta?: import("../integrations/supabase/types").Json | null;
|
|
2745
3183
|
last_test_at?: string | null;
|
|
2746
3184
|
last_test_error?: string | null;
|
|
2747
3185
|
last_test_ok?: boolean | null;
|
|
3186
|
+
last_token_test_at?: string | null;
|
|
3187
|
+
last_token_test_error?: string | null;
|
|
3188
|
+
last_token_test_ok?: boolean | null;
|
|
2748
3189
|
updated_at?: string;
|
|
2749
3190
|
};
|
|
2750
3191
|
Update: {
|
|
2751
3192
|
catalog_key?: string | null;
|
|
2752
3193
|
catalog_url?: string;
|
|
3194
|
+
client_id?: string | null;
|
|
3195
|
+
client_secret_ciphertext?: string | null;
|
|
3196
|
+
client_secret_last4?: string | null;
|
|
2753
3197
|
created_at?: string;
|
|
2754
3198
|
id?: number;
|
|
2755
3199
|
last_meta?: import("../integrations/supabase/types").Json | null;
|
|
2756
3200
|
last_test_at?: string | null;
|
|
2757
3201
|
last_test_error?: string | null;
|
|
2758
3202
|
last_test_ok?: boolean | null;
|
|
3203
|
+
last_token_test_at?: string | null;
|
|
3204
|
+
last_token_test_error?: string | null;
|
|
3205
|
+
last_token_test_ok?: boolean | null;
|
|
2759
3206
|
updated_at?: string;
|
|
2760
3207
|
};
|
|
2761
3208
|
Relationships: [];
|
|
@@ -2988,6 +3435,54 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
|
|
|
2988
3435
|
referencedColumns: ["id"];
|
|
2989
3436
|
}];
|
|
2990
3437
|
};
|
|
3438
|
+
floriday_auto_fulfillment_log: {
|
|
3439
|
+
Row: {
|
|
3440
|
+
attempts: number;
|
|
3441
|
+
connection_id: string;
|
|
3442
|
+
created_at: string;
|
|
3443
|
+
error: string | null;
|
|
3444
|
+
fulfillment_order_id: string | null;
|
|
3445
|
+
id: string;
|
|
3446
|
+
last_attempt_at: string | null;
|
|
3447
|
+
reason: string | null;
|
|
3448
|
+
sales_order_id: string;
|
|
3449
|
+
status: string;
|
|
3450
|
+
updated_at: string;
|
|
3451
|
+
};
|
|
3452
|
+
Insert: {
|
|
3453
|
+
attempts?: number;
|
|
3454
|
+
connection_id: string;
|
|
3455
|
+
created_at?: string;
|
|
3456
|
+
error?: string | null;
|
|
3457
|
+
fulfillment_order_id?: string | null;
|
|
3458
|
+
id?: string;
|
|
3459
|
+
last_attempt_at?: string | null;
|
|
3460
|
+
reason?: string | null;
|
|
3461
|
+
sales_order_id: string;
|
|
3462
|
+
status?: string;
|
|
3463
|
+
updated_at?: string;
|
|
3464
|
+
};
|
|
3465
|
+
Update: {
|
|
3466
|
+
attempts?: number;
|
|
3467
|
+
connection_id?: string;
|
|
3468
|
+
created_at?: string;
|
|
3469
|
+
error?: string | null;
|
|
3470
|
+
fulfillment_order_id?: string | null;
|
|
3471
|
+
id?: string;
|
|
3472
|
+
last_attempt_at?: string | null;
|
|
3473
|
+
reason?: string | null;
|
|
3474
|
+
sales_order_id?: string;
|
|
3475
|
+
status?: string;
|
|
3476
|
+
updated_at?: string;
|
|
3477
|
+
};
|
|
3478
|
+
Relationships: [{
|
|
3479
|
+
foreignKeyName: "floriday_auto_fulfillment_log_connection_id_fkey";
|
|
3480
|
+
columns: ["connection_id"];
|
|
3481
|
+
isOneToOne: false;
|
|
3482
|
+
referencedRelation: "floriday_connections";
|
|
3483
|
+
referencedColumns: ["id"];
|
|
3484
|
+
}];
|
|
3485
|
+
};
|
|
2991
3486
|
floriday_base_items_cache: {
|
|
2992
3487
|
Row: {
|
|
2993
3488
|
connection_id: string;
|
|
@@ -3402,29 +3897,74 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
|
|
|
3402
3897
|
referencedColumns: ["id"];
|
|
3403
3898
|
}];
|
|
3404
3899
|
};
|
|
3405
|
-
|
|
3900
|
+
floriday_continuous_stock_queue: {
|
|
3406
3901
|
Row: {
|
|
3902
|
+
attempts: number;
|
|
3407
3903
|
connection_id: string;
|
|
3408
|
-
|
|
3409
|
-
|
|
3410
|
-
|
|
3411
|
-
|
|
3412
|
-
|
|
3904
|
+
created_at: string;
|
|
3905
|
+
gateway_attempt_id: string | null;
|
|
3906
|
+
id: string;
|
|
3907
|
+
last_error: string | null;
|
|
3908
|
+
number_of_pieces: number;
|
|
3909
|
+
sent_at: string | null;
|
|
3910
|
+
status: string;
|
|
3911
|
+
trade_item_id: string;
|
|
3413
3912
|
updated_at: string;
|
|
3913
|
+
user_id: string;
|
|
3414
3914
|
};
|
|
3415
3915
|
Insert: {
|
|
3916
|
+
attempts?: number;
|
|
3416
3917
|
connection_id: string;
|
|
3417
|
-
|
|
3418
|
-
|
|
3419
|
-
|
|
3420
|
-
|
|
3421
|
-
|
|
3422
|
-
|
|
3423
|
-
|
|
3424
|
-
|
|
3425
|
-
|
|
3426
|
-
|
|
3427
|
-
|
|
3918
|
+
created_at?: string;
|
|
3919
|
+
gateway_attempt_id?: string | null;
|
|
3920
|
+
id?: string;
|
|
3921
|
+
last_error?: string | null;
|
|
3922
|
+
number_of_pieces?: number;
|
|
3923
|
+
sent_at?: string | null;
|
|
3924
|
+
status?: string;
|
|
3925
|
+
trade_item_id: string;
|
|
3926
|
+
updated_at?: string;
|
|
3927
|
+
user_id: string;
|
|
3928
|
+
};
|
|
3929
|
+
Update: {
|
|
3930
|
+
attempts?: number;
|
|
3931
|
+
connection_id?: string;
|
|
3932
|
+
created_at?: string;
|
|
3933
|
+
gateway_attempt_id?: string | null;
|
|
3934
|
+
id?: string;
|
|
3935
|
+
last_error?: string | null;
|
|
3936
|
+
number_of_pieces?: number;
|
|
3937
|
+
sent_at?: string | null;
|
|
3938
|
+
status?: string;
|
|
3939
|
+
trade_item_id?: string;
|
|
3940
|
+
updated_at?: string;
|
|
3941
|
+
user_id?: string;
|
|
3942
|
+
};
|
|
3943
|
+
Relationships: [];
|
|
3944
|
+
};
|
|
3945
|
+
floriday_contract_trade_item_groups_cache: {
|
|
3946
|
+
Row: {
|
|
3947
|
+
connection_id: string;
|
|
3948
|
+
data: import("../integrations/supabase/types").Json;
|
|
3949
|
+
fetched_at: string;
|
|
3950
|
+
floriday_id: string;
|
|
3951
|
+
is_deleted: boolean;
|
|
3952
|
+
sequence_number: number;
|
|
3953
|
+
updated_at: string;
|
|
3954
|
+
};
|
|
3955
|
+
Insert: {
|
|
3956
|
+
connection_id: string;
|
|
3957
|
+
data: import("../integrations/supabase/types").Json;
|
|
3958
|
+
fetched_at?: string;
|
|
3959
|
+
floriday_id: string;
|
|
3960
|
+
is_deleted?: boolean;
|
|
3961
|
+
sequence_number?: number;
|
|
3962
|
+
updated_at?: string;
|
|
3963
|
+
};
|
|
3964
|
+
Update: {
|
|
3965
|
+
connection_id?: string;
|
|
3966
|
+
data?: import("../integrations/supabase/types").Json;
|
|
3967
|
+
fetched_at?: string;
|
|
3428
3968
|
floriday_id?: string;
|
|
3429
3969
|
is_deleted?: boolean;
|
|
3430
3970
|
sequence_number?: number;
|
|
@@ -4047,6 +4587,24 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
|
|
|
4047
4587
|
referencedColumns: ["id"];
|
|
4048
4588
|
}];
|
|
4049
4589
|
};
|
|
4590
|
+
floriday_rate_limit_state: {
|
|
4591
|
+
Row: {
|
|
4592
|
+
bucket: string;
|
|
4593
|
+
last_refill_at: string;
|
|
4594
|
+
tokens: number;
|
|
4595
|
+
};
|
|
4596
|
+
Insert: {
|
|
4597
|
+
bucket: string;
|
|
4598
|
+
last_refill_at?: string;
|
|
4599
|
+
tokens: number;
|
|
4600
|
+
};
|
|
4601
|
+
Update: {
|
|
4602
|
+
bucket?: string;
|
|
4603
|
+
last_refill_at?: string;
|
|
4604
|
+
tokens?: number;
|
|
4605
|
+
};
|
|
4606
|
+
Relationships: [];
|
|
4607
|
+
};
|
|
4050
4608
|
floriday_resource_schemas: {
|
|
4051
4609
|
Row: {
|
|
4052
4610
|
enums: import("../integrations/supabase/types").Json;
|
|
@@ -4470,6 +5028,60 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
|
|
|
4470
5028
|
referencedColumns: ["id"];
|
|
4471
5029
|
}];
|
|
4472
5030
|
};
|
|
5031
|
+
flow_role_assignments: {
|
|
5032
|
+
Row: {
|
|
5033
|
+
created_at: string;
|
|
5034
|
+
id: string;
|
|
5035
|
+
role_id: string;
|
|
5036
|
+
user_id: string;
|
|
5037
|
+
};
|
|
5038
|
+
Insert: {
|
|
5039
|
+
created_at?: string;
|
|
5040
|
+
id?: string;
|
|
5041
|
+
role_id: string;
|
|
5042
|
+
user_id: string;
|
|
5043
|
+
};
|
|
5044
|
+
Update: {
|
|
5045
|
+
created_at?: string;
|
|
5046
|
+
id?: string;
|
|
5047
|
+
role_id?: string;
|
|
5048
|
+
user_id?: string;
|
|
5049
|
+
};
|
|
5050
|
+
Relationships: [{
|
|
5051
|
+
foreignKeyName: "flow_role_assignments_role_id_fkey";
|
|
5052
|
+
columns: ["role_id"];
|
|
5053
|
+
isOneToOne: false;
|
|
5054
|
+
referencedRelation: "flow_roles";
|
|
5055
|
+
referencedColumns: ["id"];
|
|
5056
|
+
}];
|
|
5057
|
+
};
|
|
5058
|
+
flow_roles: {
|
|
5059
|
+
Row: {
|
|
5060
|
+
created_at: string;
|
|
5061
|
+
description: string | null;
|
|
5062
|
+
id: string;
|
|
5063
|
+
module_access: string[];
|
|
5064
|
+
name: string;
|
|
5065
|
+
updated_at: string;
|
|
5066
|
+
};
|
|
5067
|
+
Insert: {
|
|
5068
|
+
created_at?: string;
|
|
5069
|
+
description?: string | null;
|
|
5070
|
+
id?: string;
|
|
5071
|
+
module_access?: string[];
|
|
5072
|
+
name: string;
|
|
5073
|
+
updated_at?: string;
|
|
5074
|
+
};
|
|
5075
|
+
Update: {
|
|
5076
|
+
created_at?: string;
|
|
5077
|
+
description?: string | null;
|
|
5078
|
+
id?: string;
|
|
5079
|
+
module_access?: string[];
|
|
5080
|
+
name?: string;
|
|
5081
|
+
updated_at?: string;
|
|
5082
|
+
};
|
|
5083
|
+
Relationships: [];
|
|
5084
|
+
};
|
|
4473
5085
|
imap_accounts: {
|
|
4474
5086
|
Row: {
|
|
4475
5087
|
created_at: string;
|
|
@@ -4791,6 +5403,204 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
|
|
|
4791
5403
|
};
|
|
4792
5404
|
Relationships: [];
|
|
4793
5405
|
};
|
|
5406
|
+
local_customer_agreements: {
|
|
5407
|
+
Row: {
|
|
5408
|
+
base_price: number | null;
|
|
5409
|
+
created_at: string;
|
|
5410
|
+
currency: string;
|
|
5411
|
+
customer_id: string;
|
|
5412
|
+
id: string;
|
|
5413
|
+
min_quantity: number;
|
|
5414
|
+
net_price: number;
|
|
5415
|
+
notes: string | null;
|
|
5416
|
+
product_category_id: string | null;
|
|
5417
|
+
product_id: string | null;
|
|
5418
|
+
updated_at: string;
|
|
5419
|
+
valid_from: string | null;
|
|
5420
|
+
valid_until: string | null;
|
|
5421
|
+
};
|
|
5422
|
+
Insert: {
|
|
5423
|
+
base_price?: number | null;
|
|
5424
|
+
created_at?: string;
|
|
5425
|
+
currency?: string;
|
|
5426
|
+
customer_id: string;
|
|
5427
|
+
id?: string;
|
|
5428
|
+
min_quantity?: number;
|
|
5429
|
+
net_price: number;
|
|
5430
|
+
notes?: string | null;
|
|
5431
|
+
product_category_id?: string | null;
|
|
5432
|
+
product_id?: string | null;
|
|
5433
|
+
updated_at?: string;
|
|
5434
|
+
valid_from?: string | null;
|
|
5435
|
+
valid_until?: string | null;
|
|
5436
|
+
};
|
|
5437
|
+
Update: {
|
|
5438
|
+
base_price?: number | null;
|
|
5439
|
+
created_at?: string;
|
|
5440
|
+
currency?: string;
|
|
5441
|
+
customer_id?: string;
|
|
5442
|
+
id?: string;
|
|
5443
|
+
min_quantity?: number;
|
|
5444
|
+
net_price?: number;
|
|
5445
|
+
notes?: string | null;
|
|
5446
|
+
product_category_id?: string | null;
|
|
5447
|
+
product_id?: string | null;
|
|
5448
|
+
updated_at?: string;
|
|
5449
|
+
valid_from?: string | null;
|
|
5450
|
+
valid_until?: string | null;
|
|
5451
|
+
};
|
|
5452
|
+
Relationships: [{
|
|
5453
|
+
foreignKeyName: "local_customer_agreements_customer_id_fkey";
|
|
5454
|
+
columns: ["customer_id"];
|
|
5455
|
+
isOneToOne: false;
|
|
5456
|
+
referencedRelation: "customers";
|
|
5457
|
+
referencedColumns: ["id"];
|
|
5458
|
+
}, {
|
|
5459
|
+
foreignKeyName: "local_customer_agreements_product_category_id_fkey";
|
|
5460
|
+
columns: ["product_category_id"];
|
|
5461
|
+
isOneToOne: false;
|
|
5462
|
+
referencedRelation: "product_categories";
|
|
5463
|
+
referencedColumns: ["id"];
|
|
5464
|
+
}, {
|
|
5465
|
+
foreignKeyName: "local_customer_agreements_product_id_fkey";
|
|
5466
|
+
columns: ["product_id"];
|
|
5467
|
+
isOneToOne: false;
|
|
5468
|
+
referencedRelation: "products";
|
|
5469
|
+
referencedColumns: ["id"];
|
|
5470
|
+
}];
|
|
5471
|
+
};
|
|
5472
|
+
local_customer_price_groups: {
|
|
5473
|
+
Row: {
|
|
5474
|
+
created_at: string;
|
|
5475
|
+
currency: string;
|
|
5476
|
+
customer_id: string;
|
|
5477
|
+
discount_type: string;
|
|
5478
|
+
discount_value: number;
|
|
5479
|
+
id: string;
|
|
5480
|
+
min_quantity: number;
|
|
5481
|
+
notes: string | null;
|
|
5482
|
+
product_category_id: string | null;
|
|
5483
|
+
product_id: string | null;
|
|
5484
|
+
updated_at: string;
|
|
5485
|
+
valid_from: string | null;
|
|
5486
|
+
valid_until: string | null;
|
|
5487
|
+
};
|
|
5488
|
+
Insert: {
|
|
5489
|
+
created_at?: string;
|
|
5490
|
+
currency?: string;
|
|
5491
|
+
customer_id: string;
|
|
5492
|
+
discount_type: string;
|
|
5493
|
+
discount_value: number;
|
|
5494
|
+
id?: string;
|
|
5495
|
+
min_quantity?: number;
|
|
5496
|
+
notes?: string | null;
|
|
5497
|
+
product_category_id?: string | null;
|
|
5498
|
+
product_id?: string | null;
|
|
5499
|
+
updated_at?: string;
|
|
5500
|
+
valid_from?: string | null;
|
|
5501
|
+
valid_until?: string | null;
|
|
5502
|
+
};
|
|
5503
|
+
Update: {
|
|
5504
|
+
created_at?: string;
|
|
5505
|
+
currency?: string;
|
|
5506
|
+
customer_id?: string;
|
|
5507
|
+
discount_type?: string;
|
|
5508
|
+
discount_value?: number;
|
|
5509
|
+
id?: string;
|
|
5510
|
+
min_quantity?: number;
|
|
5511
|
+
notes?: string | null;
|
|
5512
|
+
product_category_id?: string | null;
|
|
5513
|
+
product_id?: string | null;
|
|
5514
|
+
updated_at?: string;
|
|
5515
|
+
valid_from?: string | null;
|
|
5516
|
+
valid_until?: string | null;
|
|
5517
|
+
};
|
|
5518
|
+
Relationships: [{
|
|
5519
|
+
foreignKeyName: "local_customer_price_groups_customer_id_fkey";
|
|
5520
|
+
columns: ["customer_id"];
|
|
5521
|
+
isOneToOne: false;
|
|
5522
|
+
referencedRelation: "customers";
|
|
5523
|
+
referencedColumns: ["id"];
|
|
5524
|
+
}, {
|
|
5525
|
+
foreignKeyName: "local_customer_price_groups_product_category_id_fkey";
|
|
5526
|
+
columns: ["product_category_id"];
|
|
5527
|
+
isOneToOne: false;
|
|
5528
|
+
referencedRelation: "product_categories";
|
|
5529
|
+
referencedColumns: ["id"];
|
|
5530
|
+
}, {
|
|
5531
|
+
foreignKeyName: "local_customer_price_groups_product_id_fkey";
|
|
5532
|
+
columns: ["product_id"];
|
|
5533
|
+
isOneToOne: false;
|
|
5534
|
+
referencedRelation: "products";
|
|
5535
|
+
referencedColumns: ["id"];
|
|
5536
|
+
}];
|
|
5537
|
+
};
|
|
5538
|
+
local_customer_sales_strategies: {
|
|
5539
|
+
Row: {
|
|
5540
|
+
created_at: string;
|
|
5541
|
+
currency: string;
|
|
5542
|
+
customer_id: string;
|
|
5543
|
+
discount_type: string;
|
|
5544
|
+
discount_value: number;
|
|
5545
|
+
id: string;
|
|
5546
|
+
min_quantity: number;
|
|
5547
|
+
notes: string | null;
|
|
5548
|
+
product_category_id: string | null;
|
|
5549
|
+
product_id: string | null;
|
|
5550
|
+
updated_at: string;
|
|
5551
|
+
valid_from: string | null;
|
|
5552
|
+
valid_until: string | null;
|
|
5553
|
+
};
|
|
5554
|
+
Insert: {
|
|
5555
|
+
created_at?: string;
|
|
5556
|
+
currency?: string;
|
|
5557
|
+
customer_id: string;
|
|
5558
|
+
discount_type: string;
|
|
5559
|
+
discount_value: number;
|
|
5560
|
+
id?: string;
|
|
5561
|
+
min_quantity?: number;
|
|
5562
|
+
notes?: string | null;
|
|
5563
|
+
product_category_id?: string | null;
|
|
5564
|
+
product_id?: string | null;
|
|
5565
|
+
updated_at?: string;
|
|
5566
|
+
valid_from?: string | null;
|
|
5567
|
+
valid_until?: string | null;
|
|
5568
|
+
};
|
|
5569
|
+
Update: {
|
|
5570
|
+
created_at?: string;
|
|
5571
|
+
currency?: string;
|
|
5572
|
+
customer_id?: string;
|
|
5573
|
+
discount_type?: string;
|
|
5574
|
+
discount_value?: number;
|
|
5575
|
+
id?: string;
|
|
5576
|
+
min_quantity?: number;
|
|
5577
|
+
notes?: string | null;
|
|
5578
|
+
product_category_id?: string | null;
|
|
5579
|
+
product_id?: string | null;
|
|
5580
|
+
updated_at?: string;
|
|
5581
|
+
valid_from?: string | null;
|
|
5582
|
+
valid_until?: string | null;
|
|
5583
|
+
};
|
|
5584
|
+
Relationships: [{
|
|
5585
|
+
foreignKeyName: "local_customer_sales_strategies_customer_id_fkey";
|
|
5586
|
+
columns: ["customer_id"];
|
|
5587
|
+
isOneToOne: false;
|
|
5588
|
+
referencedRelation: "customers";
|
|
5589
|
+
referencedColumns: ["id"];
|
|
5590
|
+
}, {
|
|
5591
|
+
foreignKeyName: "local_customer_sales_strategies_product_category_id_fkey";
|
|
5592
|
+
columns: ["product_category_id"];
|
|
5593
|
+
isOneToOne: false;
|
|
5594
|
+
referencedRelation: "product_categories";
|
|
5595
|
+
referencedColumns: ["id"];
|
|
5596
|
+
}, {
|
|
5597
|
+
foreignKeyName: "local_customer_sales_strategies_product_id_fkey";
|
|
5598
|
+
columns: ["product_id"];
|
|
5599
|
+
isOneToOne: false;
|
|
5600
|
+
referencedRelation: "products";
|
|
5601
|
+
referencedColumns: ["id"];
|
|
5602
|
+
}];
|
|
5603
|
+
};
|
|
4794
5604
|
locations: {
|
|
4795
5605
|
Row: {
|
|
4796
5606
|
created_at: string;
|
|
@@ -4903,6 +5713,7 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
|
|
|
4903
5713
|
matched_customer_id: string | null;
|
|
4904
5714
|
message_id: string;
|
|
4905
5715
|
notes: string | null;
|
|
5716
|
+
order_number: string | null;
|
|
4906
5717
|
parsed_payload: import("../integrations/supabase/types").Json | null;
|
|
4907
5718
|
reviewed_at: string | null;
|
|
4908
5719
|
reviewed_by: string | null;
|
|
@@ -4918,6 +5729,7 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
|
|
|
4918
5729
|
matched_customer_id?: string | null;
|
|
4919
5730
|
message_id: string;
|
|
4920
5731
|
notes?: string | null;
|
|
5732
|
+
order_number?: string | null;
|
|
4921
5733
|
parsed_payload?: import("../integrations/supabase/types").Json | null;
|
|
4922
5734
|
reviewed_at?: string | null;
|
|
4923
5735
|
reviewed_by?: string | null;
|
|
@@ -4933,6 +5745,7 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
|
|
|
4933
5745
|
matched_customer_id?: string | null;
|
|
4934
5746
|
message_id?: string;
|
|
4935
5747
|
notes?: string | null;
|
|
5748
|
+
order_number?: string | null;
|
|
4936
5749
|
parsed_payload?: import("../integrations/supabase/types").Json | null;
|
|
4937
5750
|
reviewed_at?: string | null;
|
|
4938
5751
|
reviewed_by?: string | null;
|
|
@@ -5298,29 +6111,296 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
|
|
|
5298
6111
|
referencedColumns: ["id"];
|
|
5299
6112
|
}];
|
|
5300
6113
|
};
|
|
5301
|
-
|
|
6114
|
+
nmbrs_component_mapping: {
|
|
5302
6115
|
Row: {
|
|
5303
6116
|
created_at: string;
|
|
5304
6117
|
id: string;
|
|
5305
|
-
|
|
5306
|
-
|
|
5307
|
-
title: string;
|
|
6118
|
+
source_kind: string;
|
|
6119
|
+
source_value: string | null;
|
|
5308
6120
|
updated_at: string;
|
|
5309
|
-
|
|
6121
|
+
wage_code: string;
|
|
5310
6122
|
};
|
|
5311
6123
|
Insert: {
|
|
5312
6124
|
created_at?: string;
|
|
5313
6125
|
id?: string;
|
|
5314
|
-
|
|
5315
|
-
|
|
5316
|
-
title: string;
|
|
6126
|
+
source_kind: string;
|
|
6127
|
+
source_value?: string | null;
|
|
5317
6128
|
updated_at?: string;
|
|
5318
|
-
|
|
6129
|
+
wage_code: string;
|
|
5319
6130
|
};
|
|
5320
6131
|
Update: {
|
|
5321
6132
|
created_at?: string;
|
|
5322
6133
|
id?: string;
|
|
5323
|
-
|
|
6134
|
+
source_kind?: string;
|
|
6135
|
+
source_value?: string | null;
|
|
6136
|
+
updated_at?: string;
|
|
6137
|
+
wage_code?: string;
|
|
6138
|
+
};
|
|
6139
|
+
Relationships: [{
|
|
6140
|
+
foreignKeyName: "nmbrs_component_mapping_wage_code_fkey";
|
|
6141
|
+
columns: ["wage_code"];
|
|
6142
|
+
isOneToOne: false;
|
|
6143
|
+
referencedRelation: "nmbrs_wage_components";
|
|
6144
|
+
referencedColumns: ["code"];
|
|
6145
|
+
}];
|
|
6146
|
+
};
|
|
6147
|
+
nmbrs_employee_mapping: {
|
|
6148
|
+
Row: {
|
|
6149
|
+
active_from: string | null;
|
|
6150
|
+
active_to: string | null;
|
|
6151
|
+
contract_hours_per_week: number | null;
|
|
6152
|
+
created_at: string;
|
|
6153
|
+
hourly_wage: number | null;
|
|
6154
|
+
id: string;
|
|
6155
|
+
monteur_id: string;
|
|
6156
|
+
nmbrs_company_code: string | null;
|
|
6157
|
+
nmbrs_employee_number: string;
|
|
6158
|
+
updated_at: string;
|
|
6159
|
+
};
|
|
6160
|
+
Insert: {
|
|
6161
|
+
active_from?: string | null;
|
|
6162
|
+
active_to?: string | null;
|
|
6163
|
+
contract_hours_per_week?: number | null;
|
|
6164
|
+
created_at?: string;
|
|
6165
|
+
hourly_wage?: number | null;
|
|
6166
|
+
id?: string;
|
|
6167
|
+
monteur_id: string;
|
|
6168
|
+
nmbrs_company_code?: string | null;
|
|
6169
|
+
nmbrs_employee_number: string;
|
|
6170
|
+
updated_at?: string;
|
|
6171
|
+
};
|
|
6172
|
+
Update: {
|
|
6173
|
+
active_from?: string | null;
|
|
6174
|
+
active_to?: string | null;
|
|
6175
|
+
contract_hours_per_week?: number | null;
|
|
6176
|
+
created_at?: string;
|
|
6177
|
+
hourly_wage?: number | null;
|
|
6178
|
+
id?: string;
|
|
6179
|
+
monteur_id?: string;
|
|
6180
|
+
nmbrs_company_code?: string | null;
|
|
6181
|
+
nmbrs_employee_number?: string;
|
|
6182
|
+
updated_at?: string;
|
|
6183
|
+
};
|
|
6184
|
+
Relationships: [{
|
|
6185
|
+
foreignKeyName: "nmbrs_employee_mapping_monteur_id_fkey";
|
|
6186
|
+
columns: ["monteur_id"];
|
|
6187
|
+
isOneToOne: true;
|
|
6188
|
+
referencedRelation: "monteurs";
|
|
6189
|
+
referencedColumns: ["id"];
|
|
6190
|
+
}];
|
|
6191
|
+
};
|
|
6192
|
+
nmbrs_export_lines: {
|
|
6193
|
+
Row: {
|
|
6194
|
+
amount: number;
|
|
6195
|
+
created_at: string;
|
|
6196
|
+
entry_date: string;
|
|
6197
|
+
hours: number;
|
|
6198
|
+
id: string;
|
|
6199
|
+
monteur_id: string;
|
|
6200
|
+
nmbrs_employee_number: string | null;
|
|
6201
|
+
notes: string | null;
|
|
6202
|
+
run_id: string;
|
|
6203
|
+
source_kind: string | null;
|
|
6204
|
+
source_ref_id: string | null;
|
|
6205
|
+
updated_at: string;
|
|
6206
|
+
wage_code: string;
|
|
6207
|
+
};
|
|
6208
|
+
Insert: {
|
|
6209
|
+
amount?: number;
|
|
6210
|
+
created_at?: string;
|
|
6211
|
+
entry_date: string;
|
|
6212
|
+
hours?: number;
|
|
6213
|
+
id?: string;
|
|
6214
|
+
monteur_id: string;
|
|
6215
|
+
nmbrs_employee_number?: string | null;
|
|
6216
|
+
notes?: string | null;
|
|
6217
|
+
run_id: string;
|
|
6218
|
+
source_kind?: string | null;
|
|
6219
|
+
source_ref_id?: string | null;
|
|
6220
|
+
updated_at?: string;
|
|
6221
|
+
wage_code: string;
|
|
6222
|
+
};
|
|
6223
|
+
Update: {
|
|
6224
|
+
amount?: number;
|
|
6225
|
+
created_at?: string;
|
|
6226
|
+
entry_date?: string;
|
|
6227
|
+
hours?: number;
|
|
6228
|
+
id?: string;
|
|
6229
|
+
monteur_id?: string;
|
|
6230
|
+
nmbrs_employee_number?: string | null;
|
|
6231
|
+
notes?: string | null;
|
|
6232
|
+
run_id?: string;
|
|
6233
|
+
source_kind?: string | null;
|
|
6234
|
+
source_ref_id?: string | null;
|
|
6235
|
+
updated_at?: string;
|
|
6236
|
+
wage_code?: string;
|
|
6237
|
+
};
|
|
6238
|
+
Relationships: [{
|
|
6239
|
+
foreignKeyName: "nmbrs_export_lines_monteur_id_fkey";
|
|
6240
|
+
columns: ["monteur_id"];
|
|
6241
|
+
isOneToOne: false;
|
|
6242
|
+
referencedRelation: "monteurs";
|
|
6243
|
+
referencedColumns: ["id"];
|
|
6244
|
+
}, {
|
|
6245
|
+
foreignKeyName: "nmbrs_export_lines_run_id_fkey";
|
|
6246
|
+
columns: ["run_id"];
|
|
6247
|
+
isOneToOne: false;
|
|
6248
|
+
referencedRelation: "nmbrs_export_runs";
|
|
6249
|
+
referencedColumns: ["id"];
|
|
6250
|
+
}, {
|
|
6251
|
+
foreignKeyName: "nmbrs_export_lines_wage_code_fkey";
|
|
6252
|
+
columns: ["wage_code"];
|
|
6253
|
+
isOneToOne: false;
|
|
6254
|
+
referencedRelation: "nmbrs_wage_components";
|
|
6255
|
+
referencedColumns: ["code"];
|
|
6256
|
+
}];
|
|
6257
|
+
};
|
|
6258
|
+
nmbrs_export_runs: {
|
|
6259
|
+
Row: {
|
|
6260
|
+
created_at: string;
|
|
6261
|
+
file_name: string | null;
|
|
6262
|
+
generated_at: string;
|
|
6263
|
+
generated_by: string | null;
|
|
6264
|
+
id: string;
|
|
6265
|
+
notes: string | null;
|
|
6266
|
+
period_end: string;
|
|
6267
|
+
period_label: string;
|
|
6268
|
+
period_start: string;
|
|
6269
|
+
status: string;
|
|
6270
|
+
total_hours: number;
|
|
6271
|
+
total_lines: number;
|
|
6272
|
+
updated_at: string;
|
|
6273
|
+
};
|
|
6274
|
+
Insert: {
|
|
6275
|
+
created_at?: string;
|
|
6276
|
+
file_name?: string | null;
|
|
6277
|
+
generated_at?: string;
|
|
6278
|
+
generated_by?: string | null;
|
|
6279
|
+
id?: string;
|
|
6280
|
+
notes?: string | null;
|
|
6281
|
+
period_end: string;
|
|
6282
|
+
period_label: string;
|
|
6283
|
+
period_start: string;
|
|
6284
|
+
status?: string;
|
|
6285
|
+
total_hours?: number;
|
|
6286
|
+
total_lines?: number;
|
|
6287
|
+
updated_at?: string;
|
|
6288
|
+
};
|
|
6289
|
+
Update: {
|
|
6290
|
+
created_at?: string;
|
|
6291
|
+
file_name?: string | null;
|
|
6292
|
+
generated_at?: string;
|
|
6293
|
+
generated_by?: string | null;
|
|
6294
|
+
id?: string;
|
|
6295
|
+
notes?: string | null;
|
|
6296
|
+
period_end?: string;
|
|
6297
|
+
period_label?: string;
|
|
6298
|
+
period_start?: string;
|
|
6299
|
+
status?: string;
|
|
6300
|
+
total_hours?: number;
|
|
6301
|
+
total_lines?: number;
|
|
6302
|
+
updated_at?: string;
|
|
6303
|
+
};
|
|
6304
|
+
Relationships: [];
|
|
6305
|
+
};
|
|
6306
|
+
nmbrs_settings: {
|
|
6307
|
+
Row: {
|
|
6308
|
+
created_at: string;
|
|
6309
|
+
default_company_code: string | null;
|
|
6310
|
+
id: boolean;
|
|
6311
|
+
include_travel: boolean;
|
|
6312
|
+
overtime_threshold_daily: number;
|
|
6313
|
+
overtime_threshold_weekly: number;
|
|
6314
|
+
period_type: string;
|
|
6315
|
+
updated_at: string;
|
|
6316
|
+
updated_by: string | null;
|
|
6317
|
+
week_start_day: number;
|
|
6318
|
+
};
|
|
6319
|
+
Insert: {
|
|
6320
|
+
created_at?: string;
|
|
6321
|
+
default_company_code?: string | null;
|
|
6322
|
+
id?: boolean;
|
|
6323
|
+
include_travel?: boolean;
|
|
6324
|
+
overtime_threshold_daily?: number;
|
|
6325
|
+
overtime_threshold_weekly?: number;
|
|
6326
|
+
period_type?: string;
|
|
6327
|
+
updated_at?: string;
|
|
6328
|
+
updated_by?: string | null;
|
|
6329
|
+
week_start_day?: number;
|
|
6330
|
+
};
|
|
6331
|
+
Update: {
|
|
6332
|
+
created_at?: string;
|
|
6333
|
+
default_company_code?: string | null;
|
|
6334
|
+
id?: boolean;
|
|
6335
|
+
include_travel?: boolean;
|
|
6336
|
+
overtime_threshold_daily?: number;
|
|
6337
|
+
overtime_threshold_weekly?: number;
|
|
6338
|
+
period_type?: string;
|
|
6339
|
+
updated_at?: string;
|
|
6340
|
+
updated_by?: string | null;
|
|
6341
|
+
week_start_day?: number;
|
|
6342
|
+
};
|
|
6343
|
+
Relationships: [];
|
|
6344
|
+
};
|
|
6345
|
+
nmbrs_wage_components: {
|
|
6346
|
+
Row: {
|
|
6347
|
+
category: string;
|
|
6348
|
+
code: string;
|
|
6349
|
+
created_at: string;
|
|
6350
|
+
id: string;
|
|
6351
|
+
is_active: boolean;
|
|
6352
|
+
label: string;
|
|
6353
|
+
sort_order: number;
|
|
6354
|
+
unit: string;
|
|
6355
|
+
updated_at: string;
|
|
6356
|
+
};
|
|
6357
|
+
Insert: {
|
|
6358
|
+
category: string;
|
|
6359
|
+
code: string;
|
|
6360
|
+
created_at?: string;
|
|
6361
|
+
id?: string;
|
|
6362
|
+
is_active?: boolean;
|
|
6363
|
+
label: string;
|
|
6364
|
+
sort_order?: number;
|
|
6365
|
+
unit: string;
|
|
6366
|
+
updated_at?: string;
|
|
6367
|
+
};
|
|
6368
|
+
Update: {
|
|
6369
|
+
category?: string;
|
|
6370
|
+
code?: string;
|
|
6371
|
+
created_at?: string;
|
|
6372
|
+
id?: string;
|
|
6373
|
+
is_active?: boolean;
|
|
6374
|
+
label?: string;
|
|
6375
|
+
sort_order?: number;
|
|
6376
|
+
unit?: string;
|
|
6377
|
+
updated_at?: string;
|
|
6378
|
+
};
|
|
6379
|
+
Relationships: [];
|
|
6380
|
+
};
|
|
6381
|
+
notifications: {
|
|
6382
|
+
Row: {
|
|
6383
|
+
created_at: string;
|
|
6384
|
+
id: string;
|
|
6385
|
+
message: string | null;
|
|
6386
|
+
read: boolean;
|
|
6387
|
+
title: string;
|
|
6388
|
+
updated_at: string;
|
|
6389
|
+
user_id: string;
|
|
6390
|
+
};
|
|
6391
|
+
Insert: {
|
|
6392
|
+
created_at?: string;
|
|
6393
|
+
id?: string;
|
|
6394
|
+
message?: string | null;
|
|
6395
|
+
read?: boolean;
|
|
6396
|
+
title: string;
|
|
6397
|
+
updated_at?: string;
|
|
6398
|
+
user_id: string;
|
|
6399
|
+
};
|
|
6400
|
+
Update: {
|
|
6401
|
+
created_at?: string;
|
|
6402
|
+
id?: string;
|
|
6403
|
+
message?: string | null;
|
|
5324
6404
|
read?: boolean;
|
|
5325
6405
|
title?: string;
|
|
5326
6406
|
updated_at?: string;
|
|
@@ -5522,6 +6602,7 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
|
|
|
5522
6602
|
id: string;
|
|
5523
6603
|
items: import("../integrations/supabase/types").Json;
|
|
5524
6604
|
notes: string | null;
|
|
6605
|
+
order_number: string | null;
|
|
5525
6606
|
recipient_id: string;
|
|
5526
6607
|
total_amount: number;
|
|
5527
6608
|
};
|
|
@@ -5535,6 +6616,7 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
|
|
|
5535
6616
|
id?: string;
|
|
5536
6617
|
items?: import("../integrations/supabase/types").Json;
|
|
5537
6618
|
notes?: string | null;
|
|
6619
|
+
order_number?: string | null;
|
|
5538
6620
|
recipient_id: string;
|
|
5539
6621
|
total_amount?: number;
|
|
5540
6622
|
};
|
|
@@ -5548,6 +6630,7 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
|
|
|
5548
6630
|
id?: string;
|
|
5549
6631
|
items?: import("../integrations/supabase/types").Json;
|
|
5550
6632
|
notes?: string | null;
|
|
6633
|
+
order_number?: string | null;
|
|
5551
6634
|
recipient_id?: string;
|
|
5552
6635
|
total_amount?: number;
|
|
5553
6636
|
};
|
|
@@ -5707,6 +6790,9 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
|
|
|
5707
6790
|
crates_per_layer: number;
|
|
5708
6791
|
created_at: string;
|
|
5709
6792
|
id: string;
|
|
6793
|
+
layer_fraction: number;
|
|
6794
|
+
layer_share_pct: number;
|
|
6795
|
+
layers_per_cart: number;
|
|
5710
6796
|
order_item_id: string | null;
|
|
5711
6797
|
plants_per_crate: number;
|
|
5712
6798
|
product_id: string | null;
|
|
@@ -5718,6 +6804,9 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
|
|
|
5718
6804
|
crates_per_layer?: number;
|
|
5719
6805
|
created_at?: string;
|
|
5720
6806
|
id?: string;
|
|
6807
|
+
layer_fraction?: number;
|
|
6808
|
+
layer_share_pct?: number;
|
|
6809
|
+
layers_per_cart?: number;
|
|
5721
6810
|
order_item_id?: string | null;
|
|
5722
6811
|
plants_per_crate?: number;
|
|
5723
6812
|
product_id?: string | null;
|
|
@@ -5729,6 +6818,9 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
|
|
|
5729
6818
|
crates_per_layer?: number;
|
|
5730
6819
|
created_at?: string;
|
|
5731
6820
|
id?: string;
|
|
6821
|
+
layer_fraction?: number;
|
|
6822
|
+
layer_share_pct?: number;
|
|
6823
|
+
layers_per_cart?: number;
|
|
5732
6824
|
order_item_id?: string | null;
|
|
5733
6825
|
plants_per_crate?: number;
|
|
5734
6826
|
product_id?: string | null;
|
|
@@ -5756,33 +6848,45 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
|
|
|
5756
6848
|
};
|
|
5757
6849
|
order_carts: {
|
|
5758
6850
|
Row: {
|
|
6851
|
+
algorithm_version: number;
|
|
5759
6852
|
cart_number: number;
|
|
5760
6853
|
created_at: string;
|
|
5761
6854
|
id: string;
|
|
5762
6855
|
is_auto: boolean;
|
|
5763
6856
|
is_complete: boolean;
|
|
5764
6857
|
notes: string | null;
|
|
6858
|
+
occupancy_pct: number;
|
|
5765
6859
|
order_id: string;
|
|
6860
|
+
source: string;
|
|
6861
|
+
total_layers_used: number;
|
|
5766
6862
|
updated_at: string;
|
|
5767
6863
|
};
|
|
5768
6864
|
Insert: {
|
|
6865
|
+
algorithm_version?: number;
|
|
5769
6866
|
cart_number: number;
|
|
5770
6867
|
created_at?: string;
|
|
5771
6868
|
id?: string;
|
|
5772
6869
|
is_auto?: boolean;
|
|
5773
6870
|
is_complete?: boolean;
|
|
5774
6871
|
notes?: string | null;
|
|
6872
|
+
occupancy_pct?: number;
|
|
5775
6873
|
order_id: string;
|
|
6874
|
+
source?: string;
|
|
6875
|
+
total_layers_used?: number;
|
|
5776
6876
|
updated_at?: string;
|
|
5777
6877
|
};
|
|
5778
6878
|
Update: {
|
|
6879
|
+
algorithm_version?: number;
|
|
5779
6880
|
cart_number?: number;
|
|
5780
6881
|
created_at?: string;
|
|
5781
6882
|
id?: string;
|
|
5782
6883
|
is_auto?: boolean;
|
|
5783
6884
|
is_complete?: boolean;
|
|
5784
6885
|
notes?: string | null;
|
|
6886
|
+
occupancy_pct?: number;
|
|
5785
6887
|
order_id?: string;
|
|
6888
|
+
source?: string;
|
|
6889
|
+
total_layers_used?: number;
|
|
5786
6890
|
updated_at?: string;
|
|
5787
6891
|
};
|
|
5788
6892
|
Relationships: [{
|
|
@@ -5935,6 +7039,8 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
|
|
|
5935
7039
|
order_date: string;
|
|
5936
7040
|
order_number: string;
|
|
5937
7041
|
order_source: string;
|
|
7042
|
+
plan_locked_at: string | null;
|
|
7043
|
+
plan_locked_ref: string | null;
|
|
5938
7044
|
status: string;
|
|
5939
7045
|
total: string;
|
|
5940
7046
|
updated_at: string;
|
|
@@ -5951,6 +7057,8 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
|
|
|
5951
7057
|
order_date?: string;
|
|
5952
7058
|
order_number: string;
|
|
5953
7059
|
order_source?: string;
|
|
7060
|
+
plan_locked_at?: string | null;
|
|
7061
|
+
plan_locked_ref?: string | null;
|
|
5954
7062
|
status?: string;
|
|
5955
7063
|
total?: string;
|
|
5956
7064
|
updated_at?: string;
|
|
@@ -5967,6 +7075,8 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
|
|
|
5967
7075
|
order_date?: string;
|
|
5968
7076
|
order_number?: string;
|
|
5969
7077
|
order_source?: string;
|
|
7078
|
+
plan_locked_at?: string | null;
|
|
7079
|
+
plan_locked_ref?: string | null;
|
|
5970
7080
|
status?: string;
|
|
5971
7081
|
total?: string;
|
|
5972
7082
|
updated_at?: string;
|
|
@@ -6280,6 +7390,7 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
|
|
|
6280
7390
|
purchase_price: number | null;
|
|
6281
7391
|
quantity: number;
|
|
6282
7392
|
sale_price: number | null;
|
|
7393
|
+
trade_item_key: string | null;
|
|
6283
7394
|
unit: string;
|
|
6284
7395
|
updated_at: string;
|
|
6285
7396
|
weight: string | null;
|
|
@@ -6302,6 +7413,7 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
|
|
|
6302
7413
|
purchase_price?: number | null;
|
|
6303
7414
|
quantity?: number;
|
|
6304
7415
|
sale_price?: number | null;
|
|
7416
|
+
trade_item_key?: string | null;
|
|
6305
7417
|
unit?: string;
|
|
6306
7418
|
updated_at?: string;
|
|
6307
7419
|
weight?: string | null;
|
|
@@ -6324,6 +7436,7 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
|
|
|
6324
7436
|
purchase_price?: number | null;
|
|
6325
7437
|
quantity?: number;
|
|
6326
7438
|
sale_price?: number | null;
|
|
7439
|
+
trade_item_key?: string | null;
|
|
6327
7440
|
unit?: string;
|
|
6328
7441
|
updated_at?: string;
|
|
6329
7442
|
weight?: string | null;
|
|
@@ -6332,28 +7445,34 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
|
|
|
6332
7445
|
};
|
|
6333
7446
|
profiles: {
|
|
6334
7447
|
Row: {
|
|
7448
|
+
address: string | null;
|
|
6335
7449
|
created_at: string;
|
|
6336
7450
|
display_name: string | null;
|
|
6337
7451
|
email: string | null;
|
|
6338
7452
|
id: string;
|
|
7453
|
+
is_superadmin: boolean;
|
|
6339
7454
|
notification_preferences: import("../integrations/supabase/types").Json;
|
|
6340
7455
|
tenant_id: string | null;
|
|
6341
7456
|
updated_at: string;
|
|
6342
7457
|
};
|
|
6343
7458
|
Insert: {
|
|
7459
|
+
address?: string | null;
|
|
6344
7460
|
created_at?: string;
|
|
6345
7461
|
display_name?: string | null;
|
|
6346
7462
|
email?: string | null;
|
|
6347
7463
|
id: string;
|
|
7464
|
+
is_superadmin?: boolean;
|
|
6348
7465
|
notification_preferences?: import("../integrations/supabase/types").Json;
|
|
6349
7466
|
tenant_id?: string | null;
|
|
6350
7467
|
updated_at?: string;
|
|
6351
7468
|
};
|
|
6352
7469
|
Update: {
|
|
7470
|
+
address?: string | null;
|
|
6353
7471
|
created_at?: string;
|
|
6354
7472
|
display_name?: string | null;
|
|
6355
7473
|
email?: string | null;
|
|
6356
7474
|
id?: string;
|
|
7475
|
+
is_superadmin?: boolean;
|
|
6357
7476
|
notification_preferences?: import("../integrations/supabase/types").Json;
|
|
6358
7477
|
tenant_id?: string | null;
|
|
6359
7478
|
updated_at?: string;
|
|
@@ -7143,6 +8262,120 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
|
|
|
7143
8262
|
};
|
|
7144
8263
|
Relationships: [];
|
|
7145
8264
|
};
|
|
8265
|
+
sidebar_config: {
|
|
8266
|
+
Row: {
|
|
8267
|
+
id: string;
|
|
8268
|
+
module_order: string[];
|
|
8269
|
+
updated_at: string;
|
|
8270
|
+
};
|
|
8271
|
+
Insert: {
|
|
8272
|
+
id?: string;
|
|
8273
|
+
module_order?: string[];
|
|
8274
|
+
updated_at?: string;
|
|
8275
|
+
};
|
|
8276
|
+
Update: {
|
|
8277
|
+
id?: string;
|
|
8278
|
+
module_order?: string[];
|
|
8279
|
+
updated_at?: string;
|
|
8280
|
+
};
|
|
8281
|
+
Relationships: [];
|
|
8282
|
+
};
|
|
8283
|
+
stock_import_runs: {
|
|
8284
|
+
Row: {
|
|
8285
|
+
connection_id: string | null;
|
|
8286
|
+
created_at: string;
|
|
8287
|
+
created_rows: number;
|
|
8288
|
+
errors: import("../integrations/supabase/types").Json;
|
|
8289
|
+
filename: string | null;
|
|
8290
|
+
id: string;
|
|
8291
|
+
mutations: import("../integrations/supabase/types").Json;
|
|
8292
|
+
skipped_rows: number;
|
|
8293
|
+
total_rows: number;
|
|
8294
|
+
updated_rows: number;
|
|
8295
|
+
user_id: string;
|
|
8296
|
+
};
|
|
8297
|
+
Insert: {
|
|
8298
|
+
connection_id?: string | null;
|
|
8299
|
+
created_at?: string;
|
|
8300
|
+
created_rows?: number;
|
|
8301
|
+
errors?: import("../integrations/supabase/types").Json;
|
|
8302
|
+
filename?: string | null;
|
|
8303
|
+
id?: string;
|
|
8304
|
+
mutations?: import("../integrations/supabase/types").Json;
|
|
8305
|
+
skipped_rows?: number;
|
|
8306
|
+
total_rows?: number;
|
|
8307
|
+
updated_rows?: number;
|
|
8308
|
+
user_id: string;
|
|
8309
|
+
};
|
|
8310
|
+
Update: {
|
|
8311
|
+
connection_id?: string | null;
|
|
8312
|
+
created_at?: string;
|
|
8313
|
+
created_rows?: number;
|
|
8314
|
+
errors?: import("../integrations/supabase/types").Json;
|
|
8315
|
+
filename?: string | null;
|
|
8316
|
+
id?: string;
|
|
8317
|
+
mutations?: import("../integrations/supabase/types").Json;
|
|
8318
|
+
skipped_rows?: number;
|
|
8319
|
+
total_rows?: number;
|
|
8320
|
+
updated_rows?: number;
|
|
8321
|
+
user_id?: string;
|
|
8322
|
+
};
|
|
8323
|
+
Relationships: [];
|
|
8324
|
+
};
|
|
8325
|
+
stock_mutation_log: {
|
|
8326
|
+
Row: {
|
|
8327
|
+
connection_id: string | null;
|
|
8328
|
+
created_at: string;
|
|
8329
|
+
created_by: string | null;
|
|
8330
|
+
id: string;
|
|
8331
|
+
mutation_type: string;
|
|
8332
|
+
order_id: string | null;
|
|
8333
|
+
order_item_id: string | null;
|
|
8334
|
+
order_source: string | null;
|
|
8335
|
+
physical_after: number | null;
|
|
8336
|
+
physical_before: number | null;
|
|
8337
|
+
qty_delta: number;
|
|
8338
|
+
reason: string | null;
|
|
8339
|
+
reserved_after: number | null;
|
|
8340
|
+
reserved_before: number | null;
|
|
8341
|
+
trade_item_key: string | null;
|
|
8342
|
+
};
|
|
8343
|
+
Insert: {
|
|
8344
|
+
connection_id?: string | null;
|
|
8345
|
+
created_at?: string;
|
|
8346
|
+
created_by?: string | null;
|
|
8347
|
+
id?: string;
|
|
8348
|
+
mutation_type: string;
|
|
8349
|
+
order_id?: string | null;
|
|
8350
|
+
order_item_id?: string | null;
|
|
8351
|
+
order_source?: string | null;
|
|
8352
|
+
physical_after?: number | null;
|
|
8353
|
+
physical_before?: number | null;
|
|
8354
|
+
qty_delta: number;
|
|
8355
|
+
reason?: string | null;
|
|
8356
|
+
reserved_after?: number | null;
|
|
8357
|
+
reserved_before?: number | null;
|
|
8358
|
+
trade_item_key?: string | null;
|
|
8359
|
+
};
|
|
8360
|
+
Update: {
|
|
8361
|
+
connection_id?: string | null;
|
|
8362
|
+
created_at?: string;
|
|
8363
|
+
created_by?: string | null;
|
|
8364
|
+
id?: string;
|
|
8365
|
+
mutation_type?: string;
|
|
8366
|
+
order_id?: string | null;
|
|
8367
|
+
order_item_id?: string | null;
|
|
8368
|
+
order_source?: string | null;
|
|
8369
|
+
physical_after?: number | null;
|
|
8370
|
+
physical_before?: number | null;
|
|
8371
|
+
qty_delta?: number;
|
|
8372
|
+
reason?: string | null;
|
|
8373
|
+
reserved_after?: number | null;
|
|
8374
|
+
reserved_before?: number | null;
|
|
8375
|
+
trade_item_key?: string | null;
|
|
8376
|
+
};
|
|
8377
|
+
Relationships: [];
|
|
8378
|
+
};
|
|
7146
8379
|
supplier_products: {
|
|
7147
8380
|
Row: {
|
|
7148
8381
|
article_number: string | null;
|
|
@@ -7400,7 +8633,13 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
|
|
|
7400
8633
|
connection_id: string | null;
|
|
7401
8634
|
created_at: string;
|
|
7402
8635
|
data: import("../integrations/supabase/types").Json;
|
|
8636
|
+
floriday_id: string | null;
|
|
8637
|
+
floriday_link_error: string | null;
|
|
8638
|
+
floriday_link_status: string;
|
|
7403
8639
|
id: string;
|
|
8640
|
+
last_floriday_sync_at: string | null;
|
|
8641
|
+
missing_required_fields: string[];
|
|
8642
|
+
source: string;
|
|
7404
8643
|
updated_at: string;
|
|
7405
8644
|
user_id: string;
|
|
7406
8645
|
};
|
|
@@ -7408,7 +8647,13 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
|
|
|
7408
8647
|
connection_id?: string | null;
|
|
7409
8648
|
created_at?: string;
|
|
7410
8649
|
data?: import("../integrations/supabase/types").Json;
|
|
8650
|
+
floriday_id?: string | null;
|
|
8651
|
+
floriday_link_error?: string | null;
|
|
8652
|
+
floriday_link_status?: string;
|
|
7411
8653
|
id?: string;
|
|
8654
|
+
last_floriday_sync_at?: string | null;
|
|
8655
|
+
missing_required_fields?: string[];
|
|
8656
|
+
source?: string;
|
|
7412
8657
|
updated_at?: string;
|
|
7413
8658
|
user_id: string;
|
|
7414
8659
|
};
|
|
@@ -7416,7 +8661,13 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
|
|
|
7416
8661
|
connection_id?: string | null;
|
|
7417
8662
|
created_at?: string;
|
|
7418
8663
|
data?: import("../integrations/supabase/types").Json;
|
|
8664
|
+
floriday_id?: string | null;
|
|
8665
|
+
floriday_link_error?: string | null;
|
|
8666
|
+
floriday_link_status?: string;
|
|
7419
8667
|
id?: string;
|
|
8668
|
+
last_floriday_sync_at?: string | null;
|
|
8669
|
+
missing_required_fields?: string[];
|
|
8670
|
+
source?: string;
|
|
7420
8671
|
updated_at?: string;
|
|
7421
8672
|
user_id?: string;
|
|
7422
8673
|
};
|
|
@@ -7464,12 +8715,120 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
|
|
|
7464
8715
|
};
|
|
7465
8716
|
Relationships: [];
|
|
7466
8717
|
};
|
|
7467
|
-
|
|
8718
|
+
trade_item_supply_lines: {
|
|
7468
8719
|
Row: {
|
|
7469
|
-
|
|
7470
|
-
|
|
7471
|
-
|
|
7472
|
-
|
|
8720
|
+
available_quantity: number | null;
|
|
8721
|
+
connection_id: string;
|
|
8722
|
+
created_at: string;
|
|
8723
|
+
currency: string | null;
|
|
8724
|
+
endpoint_family: string | null;
|
|
8725
|
+
environment: string | null;
|
|
8726
|
+
id: string;
|
|
8727
|
+
last_error: string | null;
|
|
8728
|
+
last_status: number | null;
|
|
8729
|
+
packing_configuration_id: string | null;
|
|
8730
|
+
period_end: string | null;
|
|
8731
|
+
period_start: string | null;
|
|
8732
|
+
price_per_piece: number | null;
|
|
8733
|
+
sales_unit: string | null;
|
|
8734
|
+
supply_line_id: string | null;
|
|
8735
|
+
supply_type: string;
|
|
8736
|
+
trade_item_id: string;
|
|
8737
|
+
updated_at: string;
|
|
8738
|
+
user_id: string;
|
|
8739
|
+
week: number | null;
|
|
8740
|
+
year: number | null;
|
|
8741
|
+
};
|
|
8742
|
+
Insert: {
|
|
8743
|
+
available_quantity?: number | null;
|
|
8744
|
+
connection_id: string;
|
|
8745
|
+
created_at?: string;
|
|
8746
|
+
currency?: string | null;
|
|
8747
|
+
endpoint_family?: string | null;
|
|
8748
|
+
environment?: string | null;
|
|
8749
|
+
id?: string;
|
|
8750
|
+
last_error?: string | null;
|
|
8751
|
+
last_status?: number | null;
|
|
8752
|
+
packing_configuration_id?: string | null;
|
|
8753
|
+
period_end?: string | null;
|
|
8754
|
+
period_start?: string | null;
|
|
8755
|
+
price_per_piece?: number | null;
|
|
8756
|
+
sales_unit?: string | null;
|
|
8757
|
+
supply_line_id?: string | null;
|
|
8758
|
+
supply_type?: string;
|
|
8759
|
+
trade_item_id: string;
|
|
8760
|
+
updated_at?: string;
|
|
8761
|
+
user_id: string;
|
|
8762
|
+
week?: number | null;
|
|
8763
|
+
year?: number | null;
|
|
8764
|
+
};
|
|
8765
|
+
Update: {
|
|
8766
|
+
available_quantity?: number | null;
|
|
8767
|
+
connection_id?: string;
|
|
8768
|
+
created_at?: string;
|
|
8769
|
+
currency?: string | null;
|
|
8770
|
+
endpoint_family?: string | null;
|
|
8771
|
+
environment?: string | null;
|
|
8772
|
+
id?: string;
|
|
8773
|
+
last_error?: string | null;
|
|
8774
|
+
last_status?: number | null;
|
|
8775
|
+
packing_configuration_id?: string | null;
|
|
8776
|
+
period_end?: string | null;
|
|
8777
|
+
period_start?: string | null;
|
|
8778
|
+
price_per_piece?: number | null;
|
|
8779
|
+
sales_unit?: string | null;
|
|
8780
|
+
supply_line_id?: string | null;
|
|
8781
|
+
supply_type?: string;
|
|
8782
|
+
trade_item_id?: string;
|
|
8783
|
+
updated_at?: string;
|
|
8784
|
+
user_id?: string;
|
|
8785
|
+
week?: number | null;
|
|
8786
|
+
year?: number | null;
|
|
8787
|
+
};
|
|
8788
|
+
Relationships: [];
|
|
8789
|
+
};
|
|
8790
|
+
trade_item_warehouse_preferences: {
|
|
8791
|
+
Row: {
|
|
8792
|
+
connection_id: string;
|
|
8793
|
+
created_at: string;
|
|
8794
|
+
id: string;
|
|
8795
|
+
trade_item_id: string;
|
|
8796
|
+
updated_at: string;
|
|
8797
|
+
warehouse_id: string;
|
|
8798
|
+
warehouse_name: string | null;
|
|
8799
|
+
};
|
|
8800
|
+
Insert: {
|
|
8801
|
+
connection_id: string;
|
|
8802
|
+
created_at?: string;
|
|
8803
|
+
id?: string;
|
|
8804
|
+
trade_item_id: string;
|
|
8805
|
+
updated_at?: string;
|
|
8806
|
+
warehouse_id: string;
|
|
8807
|
+
warehouse_name?: string | null;
|
|
8808
|
+
};
|
|
8809
|
+
Update: {
|
|
8810
|
+
connection_id?: string;
|
|
8811
|
+
created_at?: string;
|
|
8812
|
+
id?: string;
|
|
8813
|
+
trade_item_id?: string;
|
|
8814
|
+
updated_at?: string;
|
|
8815
|
+
warehouse_id?: string;
|
|
8816
|
+
warehouse_name?: string | null;
|
|
8817
|
+
};
|
|
8818
|
+
Relationships: [{
|
|
8819
|
+
foreignKeyName: "trade_item_warehouse_preferences_connection_id_fkey";
|
|
8820
|
+
columns: ["connection_id"];
|
|
8821
|
+
isOneToOne: false;
|
|
8822
|
+
referencedRelation: "floriday_connections";
|
|
8823
|
+
referencedColumns: ["id"];
|
|
8824
|
+
}];
|
|
8825
|
+
};
|
|
8826
|
+
twinfield_connections: {
|
|
8827
|
+
Row: {
|
|
8828
|
+
access_token: string | null;
|
|
8829
|
+
client_id: string;
|
|
8830
|
+
client_secret: string | null;
|
|
8831
|
+
cluster_uri: string | null;
|
|
7473
8832
|
company_code: string | null;
|
|
7474
8833
|
company_name: string | null;
|
|
7475
8834
|
connected_at: string | null;
|
|
@@ -7783,6 +9142,10 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
|
|
|
7783
9142
|
default_invoice_type: string;
|
|
7784
9143
|
default_payment_term_days: number;
|
|
7785
9144
|
default_vat_code: string;
|
|
9145
|
+
invoice_enabled_ao: boolean;
|
|
9146
|
+
invoice_enabled_fo: boolean;
|
|
9147
|
+
invoice_enabled_ho: boolean;
|
|
9148
|
+
invoice_enabled_mo: boolean;
|
|
7786
9149
|
updated_at: string;
|
|
7787
9150
|
user_id: string;
|
|
7788
9151
|
};
|
|
@@ -7792,6 +9155,10 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
|
|
|
7792
9155
|
default_invoice_type?: string;
|
|
7793
9156
|
default_payment_term_days?: number;
|
|
7794
9157
|
default_vat_code?: string;
|
|
9158
|
+
invoice_enabled_ao?: boolean;
|
|
9159
|
+
invoice_enabled_fo?: boolean;
|
|
9160
|
+
invoice_enabled_ho?: boolean;
|
|
9161
|
+
invoice_enabled_mo?: boolean;
|
|
7795
9162
|
updated_at?: string;
|
|
7796
9163
|
user_id: string;
|
|
7797
9164
|
};
|
|
@@ -7801,6 +9168,10 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
|
|
|
7801
9168
|
default_invoice_type?: string;
|
|
7802
9169
|
default_payment_term_days?: number;
|
|
7803
9170
|
default_vat_code?: string;
|
|
9171
|
+
invoice_enabled_ao?: boolean;
|
|
9172
|
+
invoice_enabled_fo?: boolean;
|
|
9173
|
+
invoice_enabled_ho?: boolean;
|
|
9174
|
+
invoice_enabled_mo?: boolean;
|
|
7804
9175
|
updated_at?: string;
|
|
7805
9176
|
user_id?: string;
|
|
7806
9177
|
};
|
|
@@ -7808,6 +9179,7 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
|
|
|
7808
9179
|
};
|
|
7809
9180
|
twinfield_invoice_sync_logs: {
|
|
7810
9181
|
Row: {
|
|
9182
|
+
action_type: string | null;
|
|
7811
9183
|
created_at: string;
|
|
7812
9184
|
details: import("../integrations/supabase/types").Json | null;
|
|
7813
9185
|
duration_ms: number | null;
|
|
@@ -7820,6 +9192,7 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
|
|
|
7820
9192
|
user_id: string;
|
|
7821
9193
|
};
|
|
7822
9194
|
Insert: {
|
|
9195
|
+
action_type?: string | null;
|
|
7823
9196
|
created_at?: string;
|
|
7824
9197
|
details?: import("../integrations/supabase/types").Json | null;
|
|
7825
9198
|
duration_ms?: number | null;
|
|
@@ -7832,6 +9205,7 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
|
|
|
7832
9205
|
user_id: string;
|
|
7833
9206
|
};
|
|
7834
9207
|
Update: {
|
|
9208
|
+
action_type?: string | null;
|
|
7835
9209
|
created_at?: string;
|
|
7836
9210
|
details?: import("../integrations/supabase/types").Json | null;
|
|
7837
9211
|
duration_ms?: number | null;
|
|
@@ -8067,6 +9441,57 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
|
|
|
8067
9441
|
referencedColumns: ["id"];
|
|
8068
9442
|
}];
|
|
8069
9443
|
};
|
|
9444
|
+
twinfield_request_metrics: {
|
|
9445
|
+
Row: {
|
|
9446
|
+
bucket_hour: string;
|
|
9447
|
+
connection_id: string;
|
|
9448
|
+
error_count: number;
|
|
9449
|
+
rate_limited_count: number;
|
|
9450
|
+
request_count: number;
|
|
9451
|
+
updated_at: string;
|
|
9452
|
+
};
|
|
9453
|
+
Insert: {
|
|
9454
|
+
bucket_hour: string;
|
|
9455
|
+
connection_id: string;
|
|
9456
|
+
error_count?: number;
|
|
9457
|
+
rate_limited_count?: number;
|
|
9458
|
+
request_count?: number;
|
|
9459
|
+
updated_at?: string;
|
|
9460
|
+
};
|
|
9461
|
+
Update: {
|
|
9462
|
+
bucket_hour?: string;
|
|
9463
|
+
connection_id?: string;
|
|
9464
|
+
error_count?: number;
|
|
9465
|
+
rate_limited_count?: number;
|
|
9466
|
+
request_count?: number;
|
|
9467
|
+
updated_at?: string;
|
|
9468
|
+
};
|
|
9469
|
+
Relationships: [];
|
|
9470
|
+
};
|
|
9471
|
+
twinfield_session_cache: {
|
|
9472
|
+
Row: {
|
|
9473
|
+
cluster: string;
|
|
9474
|
+
created_at: string;
|
|
9475
|
+
expires_at: string;
|
|
9476
|
+
session_id: string;
|
|
9477
|
+
user_id: string;
|
|
9478
|
+
};
|
|
9479
|
+
Insert: {
|
|
9480
|
+
cluster: string;
|
|
9481
|
+
created_at?: string;
|
|
9482
|
+
expires_at: string;
|
|
9483
|
+
session_id: string;
|
|
9484
|
+
user_id: string;
|
|
9485
|
+
};
|
|
9486
|
+
Update: {
|
|
9487
|
+
cluster?: string;
|
|
9488
|
+
created_at?: string;
|
|
9489
|
+
expires_at?: string;
|
|
9490
|
+
session_id?: string;
|
|
9491
|
+
user_id?: string;
|
|
9492
|
+
};
|
|
9493
|
+
Relationships: [];
|
|
9494
|
+
};
|
|
8070
9495
|
twinfield_settings: {
|
|
8071
9496
|
Row: {
|
|
8072
9497
|
active_environment: string;
|
|
@@ -8648,6 +10073,44 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
|
|
|
8648
10073
|
};
|
|
8649
10074
|
Relationships: [];
|
|
8650
10075
|
};
|
|
10076
|
+
floriday_customer_discounts: {
|
|
10077
|
+
Row: {
|
|
10078
|
+
base_price: number | null;
|
|
10079
|
+
buyer_organization_id: string | null;
|
|
10080
|
+
currency: string | null;
|
|
10081
|
+
discount_type: string | null;
|
|
10082
|
+
discount_value: number | null;
|
|
10083
|
+
min_quantity: number | null;
|
|
10084
|
+
net_price: number | null;
|
|
10085
|
+
product_group_id: string | null;
|
|
10086
|
+
raw: import("../integrations/supabase/types").Json | null;
|
|
10087
|
+
source: string | null;
|
|
10088
|
+
source_id: string | null;
|
|
10089
|
+
trade_item_id: string | null;
|
|
10090
|
+
valid_from: string | null;
|
|
10091
|
+
valid_until: string | null;
|
|
10092
|
+
};
|
|
10093
|
+
Relationships: [];
|
|
10094
|
+
};
|
|
10095
|
+
local_customer_discounts: {
|
|
10096
|
+
Row: {
|
|
10097
|
+
base_price: number | null;
|
|
10098
|
+
currency: string | null;
|
|
10099
|
+
customer_id: string | null;
|
|
10100
|
+
discount_type: string | null;
|
|
10101
|
+
discount_value: number | null;
|
|
10102
|
+
min_quantity: number | null;
|
|
10103
|
+
net_price: number | null;
|
|
10104
|
+
product_category_id: string | null;
|
|
10105
|
+
product_id: string | null;
|
|
10106
|
+
product_name: string | null;
|
|
10107
|
+
source: string | null;
|
|
10108
|
+
source_id: string | null;
|
|
10109
|
+
valid_from: string | null;
|
|
10110
|
+
valid_until: string | null;
|
|
10111
|
+
};
|
|
10112
|
+
Relationships: [];
|
|
10113
|
+
};
|
|
8651
10114
|
manufacture_product_possible_stock_view: {
|
|
8652
10115
|
Row: {
|
|
8653
10116
|
component_count: number | null;
|
|
@@ -8932,6 +10395,68 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
|
|
|
8932
10395
|
};
|
|
8933
10396
|
Returns: number;
|
|
8934
10397
|
};
|
|
10398
|
+
afh_city_code: {
|
|
10399
|
+
Args: {
|
|
10400
|
+
_city: string;
|
|
10401
|
+
_country: string;
|
|
10402
|
+
};
|
|
10403
|
+
Returns: string;
|
|
10404
|
+
};
|
|
10405
|
+
afh_normalize_country: {
|
|
10406
|
+
Args: {
|
|
10407
|
+
_raw: string;
|
|
10408
|
+
};
|
|
10409
|
+
Returns: string;
|
|
10410
|
+
};
|
|
10411
|
+
afh_normalize_nl_province: {
|
|
10412
|
+
Args: {
|
|
10413
|
+
_raw: string;
|
|
10414
|
+
};
|
|
10415
|
+
Returns: string;
|
|
10416
|
+
};
|
|
10417
|
+
afh_subtract_workdays: {
|
|
10418
|
+
Args: {
|
|
10419
|
+
_date: string;
|
|
10420
|
+
_days: number;
|
|
10421
|
+
};
|
|
10422
|
+
Returns: string;
|
|
10423
|
+
};
|
|
10424
|
+
apply_stock_consumption: {
|
|
10425
|
+
Args: {
|
|
10426
|
+
p_order_id: string;
|
|
10427
|
+
p_order_item_id: string;
|
|
10428
|
+
p_qty: number;
|
|
10429
|
+
p_reason: string;
|
|
10430
|
+
p_source: string;
|
|
10431
|
+
p_trade_item_key: string;
|
|
10432
|
+
};
|
|
10433
|
+
Returns: undefined;
|
|
10434
|
+
};
|
|
10435
|
+
apply_stock_reservation: {
|
|
10436
|
+
Args: {
|
|
10437
|
+
p_order_id: string;
|
|
10438
|
+
p_order_item_id: string;
|
|
10439
|
+
p_qty: number;
|
|
10440
|
+
p_reason: string;
|
|
10441
|
+
p_source: string;
|
|
10442
|
+
p_trade_item_key: string;
|
|
10443
|
+
};
|
|
10444
|
+
Returns: undefined;
|
|
10445
|
+
};
|
|
10446
|
+
assign_cart_numbers: {
|
|
10447
|
+
Args: {
|
|
10448
|
+
p_carts: import("../integrations/supabase/types").Json;
|
|
10449
|
+
};
|
|
10450
|
+
Returns: {
|
|
10451
|
+
cart_index: number;
|
|
10452
|
+
cart_number: string;
|
|
10453
|
+
day_seq: number;
|
|
10454
|
+
order_id: string;
|
|
10455
|
+
order_source: string;
|
|
10456
|
+
pick_date: string;
|
|
10457
|
+
status: string;
|
|
10458
|
+
}[];
|
|
10459
|
+
};
|
|
8935
10460
|
assign_floriday_order_numbers: {
|
|
8936
10461
|
Args: {
|
|
8937
10462
|
p_ids: string[];
|
|
@@ -8941,13 +10466,75 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
|
|
|
8941
10466
|
order_number: string;
|
|
8942
10467
|
}[];
|
|
8943
10468
|
};
|
|
10469
|
+
autolink_product_to_floriday: {
|
|
10470
|
+
Args: {
|
|
10471
|
+
p_product_id: string;
|
|
10472
|
+
};
|
|
10473
|
+
Returns: string;
|
|
10474
|
+
};
|
|
10475
|
+
backfill_open_order_reservations: {
|
|
10476
|
+
Args: never;
|
|
10477
|
+
Returns: {
|
|
10478
|
+
processed_items: number;
|
|
10479
|
+
}[];
|
|
10480
|
+
};
|
|
8944
10481
|
call_exact_route: {
|
|
8945
10482
|
Args: {
|
|
8946
10483
|
path: string;
|
|
8947
10484
|
};
|
|
8948
10485
|
Returns: number;
|
|
8949
10486
|
};
|
|
10487
|
+
check_offer_product_available_stock: {
|
|
10488
|
+
Args: {
|
|
10489
|
+
p_campaign_product_id: string;
|
|
10490
|
+
p_code: string;
|
|
10491
|
+
p_needed_qty?: number;
|
|
10492
|
+
p_product_name?: string;
|
|
10493
|
+
};
|
|
10494
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
10495
|
+
};
|
|
10496
|
+
check_trade_item_available_stock: {
|
|
10497
|
+
Args: {
|
|
10498
|
+
p_connection_id?: string;
|
|
10499
|
+
p_context?: string;
|
|
10500
|
+
p_needed_qty?: number;
|
|
10501
|
+
p_order_id?: string;
|
|
10502
|
+
p_order_item_id?: string;
|
|
10503
|
+
p_owner_id?: string;
|
|
10504
|
+
p_product_name?: string;
|
|
10505
|
+
p_trade_item_key: string;
|
|
10506
|
+
};
|
|
10507
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
10508
|
+
};
|
|
8950
10509
|
cleanup_old_bookings: {
|
|
10510
|
+
Args: never;
|
|
10511
|
+
Returns: undefined;
|
|
10512
|
+
};
|
|
10513
|
+
consume_floriday_rate_limit: {
|
|
10514
|
+
Args: {
|
|
10515
|
+
p_bucket: string;
|
|
10516
|
+
p_capacity: number;
|
|
10517
|
+
p_cost?: number;
|
|
10518
|
+
p_refill_per_sec: number;
|
|
10519
|
+
};
|
|
10520
|
+
Returns: {
|
|
10521
|
+
granted: boolean;
|
|
10522
|
+
wait_ms: number;
|
|
10523
|
+
}[];
|
|
10524
|
+
};
|
|
10525
|
+
control_get_todays_carts: {
|
|
10526
|
+
Args: never;
|
|
10527
|
+
Returns: {
|
|
10528
|
+
cart_index: number;
|
|
10529
|
+
cart_number: string;
|
|
10530
|
+
cart_number_id: string;
|
|
10531
|
+
order_id: string;
|
|
10532
|
+
order_source: string;
|
|
10533
|
+
pick_date: string;
|
|
10534
|
+
status: string;
|
|
10535
|
+
}[];
|
|
10536
|
+
};
|
|
10537
|
+
count_distinct_regulatory_products: {
|
|
8951
10538
|
Args: never;
|
|
8952
10539
|
Returns: number;
|
|
8953
10540
|
};
|
|
@@ -8955,6 +10542,17 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
|
|
|
8955
10542
|
Args: never;
|
|
8956
10543
|
Returns: string;
|
|
8957
10544
|
};
|
|
10545
|
+
dashboard_alert_counts: {
|
|
10546
|
+
Args: never;
|
|
10547
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
10548
|
+
};
|
|
10549
|
+
dashboard_alert_rows: {
|
|
10550
|
+
Args: {
|
|
10551
|
+
check_id: string;
|
|
10552
|
+
row_limit?: number;
|
|
10553
|
+
};
|
|
10554
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
10555
|
+
};
|
|
8958
10556
|
dashboard_list_public_schema: {
|
|
8959
10557
|
Args: never;
|
|
8960
10558
|
Returns: {
|
|
@@ -8963,6 +10561,12 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
|
|
|
8963
10561
|
table_name: string;
|
|
8964
10562
|
}[];
|
|
8965
10563
|
};
|
|
10564
|
+
dispatch_carrier_signups_sql: {
|
|
10565
|
+
Args: {
|
|
10566
|
+
_catchup?: string;
|
|
10567
|
+
};
|
|
10568
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
10569
|
+
};
|
|
8966
10570
|
email_auth_decrypt: {
|
|
8967
10571
|
Args: {
|
|
8968
10572
|
cipher: string;
|
|
@@ -8998,6 +10602,18 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
|
|
|
8998
10602
|
status: string;
|
|
8999
10603
|
}[];
|
|
9000
10604
|
};
|
|
10605
|
+
enqueue_cart_replan_if_unlocked: {
|
|
10606
|
+
Args: {
|
|
10607
|
+
p_order_id: string;
|
|
10608
|
+
};
|
|
10609
|
+
Returns: undefined;
|
|
10610
|
+
};
|
|
10611
|
+
ensure_trade_item_stock_row: {
|
|
10612
|
+
Args: {
|
|
10613
|
+
p_key: string;
|
|
10614
|
+
};
|
|
10615
|
+
Returns: undefined;
|
|
10616
|
+
};
|
|
9001
10617
|
ensure_user_tenant: {
|
|
9002
10618
|
Args: never;
|
|
9003
10619
|
Returns: string;
|
|
@@ -9035,6 +10651,38 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
|
|
|
9035
10651
|
};
|
|
9036
10652
|
Returns: boolean;
|
|
9037
10653
|
};
|
|
10654
|
+
find_trade_item_key: {
|
|
10655
|
+
Args: {
|
|
10656
|
+
p_barcode: string;
|
|
10657
|
+
p_name: string;
|
|
10658
|
+
p_product_id: string;
|
|
10659
|
+
};
|
|
10660
|
+
Returns: string;
|
|
10661
|
+
};
|
|
10662
|
+
floriday_effective_price: {
|
|
10663
|
+
Args: {
|
|
10664
|
+
_buyer_id: string;
|
|
10665
|
+
_on_date?: string;
|
|
10666
|
+
_quantity?: number;
|
|
10667
|
+
_trade_item_id: string;
|
|
10668
|
+
};
|
|
10669
|
+
Returns: {
|
|
10670
|
+
base_price: number;
|
|
10671
|
+
currency: string;
|
|
10672
|
+
discount_type: string;
|
|
10673
|
+
discount_value: number;
|
|
10674
|
+
net_price: number;
|
|
10675
|
+
source: string;
|
|
10676
|
+
source_id: string;
|
|
10677
|
+
}[];
|
|
10678
|
+
};
|
|
10679
|
+
format_cart_number: {
|
|
10680
|
+
Args: {
|
|
10681
|
+
p_pick_date: string;
|
|
10682
|
+
p_seq: number;
|
|
10683
|
+
};
|
|
10684
|
+
Returns: string;
|
|
10685
|
+
};
|
|
9038
10686
|
get_active_floriday_connection_public: {
|
|
9039
10687
|
Args: never;
|
|
9040
10688
|
Returns: {
|
|
@@ -9048,6 +10696,13 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
|
|
|
9048
10696
|
preferred_warehouse_name: string;
|
|
9049
10697
|
}[];
|
|
9050
10698
|
};
|
|
10699
|
+
get_active_floriday_context: {
|
|
10700
|
+
Args: never;
|
|
10701
|
+
Returns: {
|
|
10702
|
+
connection_id: string;
|
|
10703
|
+
user_id: string;
|
|
10704
|
+
}[];
|
|
10705
|
+
};
|
|
9051
10706
|
get_active_twinfield_public: {
|
|
9052
10707
|
Args: never;
|
|
9053
10708
|
Returns: {
|
|
@@ -9059,6 +10714,13 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
|
|
|
9059
10714
|
office_code: string;
|
|
9060
10715
|
}[];
|
|
9061
10716
|
};
|
|
10717
|
+
get_floricode_record_counts: {
|
|
10718
|
+
Args: never;
|
|
10719
|
+
Returns: {
|
|
10720
|
+
count: number;
|
|
10721
|
+
resource: string;
|
|
10722
|
+
}[];
|
|
10723
|
+
};
|
|
9062
10724
|
get_floriday_agreements_active: {
|
|
9063
10725
|
Args: {
|
|
9064
10726
|
p_on_date?: string;
|
|
@@ -9150,6 +10812,24 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
|
|
|
9150
10812
|
};
|
|
9151
10813
|
Returns: import("../integrations/supabase/types").Json;
|
|
9152
10814
|
};
|
|
10815
|
+
get_offer_delivery_options: {
|
|
10816
|
+
Args: {
|
|
10817
|
+
p_code: string;
|
|
10818
|
+
};
|
|
10819
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
10820
|
+
};
|
|
10821
|
+
get_offer_recipient_by_code: {
|
|
10822
|
+
Args: {
|
|
10823
|
+
p_code: string;
|
|
10824
|
+
};
|
|
10825
|
+
Returns: {
|
|
10826
|
+
campaign_id: string;
|
|
10827
|
+
clicked_at: string;
|
|
10828
|
+
customer_id: string;
|
|
10829
|
+
id: string;
|
|
10830
|
+
ordered_at: string;
|
|
10831
|
+
}[];
|
|
10832
|
+
};
|
|
9153
10833
|
get_or_assign_floriday_order_number: {
|
|
9154
10834
|
Args: {
|
|
9155
10835
|
p_floriday_id: string;
|
|
@@ -9202,12 +10882,53 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
|
|
|
9202
10882
|
Args: never;
|
|
9203
10883
|
Returns: boolean;
|
|
9204
10884
|
};
|
|
10885
|
+
is_superadmin: {
|
|
10886
|
+
Args: {
|
|
10887
|
+
_user_id: string;
|
|
10888
|
+
};
|
|
10889
|
+
Returns: boolean;
|
|
10890
|
+
};
|
|
10891
|
+
local_effective_price: {
|
|
10892
|
+
Args: {
|
|
10893
|
+
_customer_id: string;
|
|
10894
|
+
_on_date?: string;
|
|
10895
|
+
_product_id: string;
|
|
10896
|
+
_quantity?: number;
|
|
10897
|
+
};
|
|
10898
|
+
Returns: {
|
|
10899
|
+
currency: string;
|
|
10900
|
+
discount_type: string;
|
|
10901
|
+
discount_value: number;
|
|
10902
|
+
net_price: number;
|
|
10903
|
+
source: string;
|
|
10904
|
+
source_id: string;
|
|
10905
|
+
}[];
|
|
10906
|
+
};
|
|
10907
|
+
mark_offer_clicked: {
|
|
10908
|
+
Args: {
|
|
10909
|
+
p_code: string;
|
|
10910
|
+
};
|
|
10911
|
+
Returns: undefined;
|
|
10912
|
+
};
|
|
10913
|
+
mark_offer_ordered: {
|
|
10914
|
+
Args: {
|
|
10915
|
+
p_code: string;
|
|
10916
|
+
};
|
|
10917
|
+
Returns: undefined;
|
|
10918
|
+
};
|
|
9205
10919
|
next_order_number: {
|
|
9206
10920
|
Args: {
|
|
9207
10921
|
p_prefix: string;
|
|
9208
10922
|
};
|
|
9209
10923
|
Returns: string;
|
|
9210
10924
|
};
|
|
10925
|
+
next_order_number_for_date: {
|
|
10926
|
+
Args: {
|
|
10927
|
+
p_created_at?: string;
|
|
10928
|
+
p_prefix: string;
|
|
10929
|
+
};
|
|
10930
|
+
Returns: string;
|
|
10931
|
+
};
|
|
9211
10932
|
next_work_order_number: {
|
|
9212
10933
|
Args: {
|
|
9213
10934
|
p_parent_work_order_id?: string;
|
|
@@ -9215,16 +10936,41 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
|
|
|
9215
10936
|
};
|
|
9216
10937
|
Returns: string;
|
|
9217
10938
|
};
|
|
10939
|
+
normalize_order_source: {
|
|
10940
|
+
Args: {
|
|
10941
|
+
p_src: string;
|
|
10942
|
+
};
|
|
10943
|
+
Returns: string;
|
|
10944
|
+
};
|
|
9218
10945
|
normalize_vat: {
|
|
9219
10946
|
Args: {
|
|
9220
10947
|
v: string;
|
|
9221
10948
|
};
|
|
9222
10949
|
Returns: string;
|
|
9223
10950
|
};
|
|
10951
|
+
offer_recipient_matches: {
|
|
10952
|
+
Args: {
|
|
10953
|
+
_campaign_id: string;
|
|
10954
|
+
_customer_id: string;
|
|
10955
|
+
_recipient_id: string;
|
|
10956
|
+
};
|
|
10957
|
+
Returns: boolean;
|
|
10958
|
+
};
|
|
10959
|
+
order_number_prefix: {
|
|
10960
|
+
Args: {
|
|
10961
|
+
p_custom_fields?: import("../integrations/supabase/types").Json;
|
|
10962
|
+
p_order_source: string;
|
|
10963
|
+
};
|
|
10964
|
+
Returns: string;
|
|
10965
|
+
};
|
|
9224
10966
|
pickstation_get_orders_raw: {
|
|
9225
10967
|
Args: never;
|
|
9226
10968
|
Returns: import("../integrations/supabase/types").Json;
|
|
9227
10969
|
};
|
|
10970
|
+
pickstation_get_planning_context: {
|
|
10971
|
+
Args: never;
|
|
10972
|
+
Returns: import("../integrations/supabase/types").Json;
|
|
10973
|
+
};
|
|
9228
10974
|
pickstation_get_settings: {
|
|
9229
10975
|
Args: never;
|
|
9230
10976
|
Returns: import("../integrations/supabase/types").Json;
|
|
@@ -9239,6 +10985,44 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
|
|
|
9239
10985
|
};
|
|
9240
10986
|
Returns: undefined;
|
|
9241
10987
|
};
|
|
10988
|
+
pickstation_set_cart_status: {
|
|
10989
|
+
Args: {
|
|
10990
|
+
p_cart_index: number;
|
|
10991
|
+
p_order_id: string;
|
|
10992
|
+
p_order_source: string;
|
|
10993
|
+
p_status: string;
|
|
10994
|
+
};
|
|
10995
|
+
Returns: undefined;
|
|
10996
|
+
};
|
|
10997
|
+
promote_trade_item_key: {
|
|
10998
|
+
Args: {
|
|
10999
|
+
p_new: string;
|
|
11000
|
+
p_old: string;
|
|
11001
|
+
};
|
|
11002
|
+
Returns: undefined;
|
|
11003
|
+
};
|
|
11004
|
+
recompute_order_status: {
|
|
11005
|
+
Args: {
|
|
11006
|
+
p_order_id: string;
|
|
11007
|
+
};
|
|
11008
|
+
Returns: undefined;
|
|
11009
|
+
};
|
|
11010
|
+
recompute_reserved_for_order: {
|
|
11011
|
+
Args: {
|
|
11012
|
+
p_order_id: string;
|
|
11013
|
+
};
|
|
11014
|
+
Returns: undefined;
|
|
11015
|
+
};
|
|
11016
|
+
recompute_reserved_stock: {
|
|
11017
|
+
Args: {
|
|
11018
|
+
p_trade_item_key: string;
|
|
11019
|
+
};
|
|
11020
|
+
Returns: undefined;
|
|
11021
|
+
};
|
|
11022
|
+
refresh_external_customers_grouped: {
|
|
11023
|
+
Args: never;
|
|
11024
|
+
Returns: undefined;
|
|
11025
|
+
};
|
|
9242
11026
|
refresh_floricode_derived_code_lists: {
|
|
9243
11027
|
Args: never;
|
|
9244
11028
|
Returns: {
|
|
@@ -9253,6 +11037,12 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
|
|
|
9253
11037
|
};
|
|
9254
11038
|
Returns: number;
|
|
9255
11039
|
};
|
|
11040
|
+
refresh_floricode_derived_for_products: {
|
|
11041
|
+
Args: {
|
|
11042
|
+
_product_ids: string[];
|
|
11043
|
+
};
|
|
11044
|
+
Returns: number;
|
|
11045
|
+
};
|
|
9256
11046
|
reset_floriday_sync_cursor: {
|
|
9257
11047
|
Args: {
|
|
9258
11048
|
p_connection_id: string;
|
|
@@ -9260,6 +11050,12 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
|
|
|
9260
11050
|
};
|
|
9261
11051
|
Returns: undefined;
|
|
9262
11052
|
};
|
|
11053
|
+
resolve_product_id_for_item: {
|
|
11054
|
+
Args: {
|
|
11055
|
+
p_product_name: string;
|
|
11056
|
+
};
|
|
11057
|
+
Returns: string;
|
|
11058
|
+
};
|
|
9263
11059
|
schedule_floriday_additional_services_sync: {
|
|
9264
11060
|
Args: {
|
|
9265
11061
|
p_apikey: string;
|
|
@@ -9537,6 +11333,24 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
|
|
|
9537
11333
|
};
|
|
9538
11334
|
Returns: string[];
|
|
9539
11335
|
};
|
|
11336
|
+
sync_cached_packing_from_product: {
|
|
11337
|
+
Args: {
|
|
11338
|
+
p_product_id: string;
|
|
11339
|
+
};
|
|
11340
|
+
Returns: undefined;
|
|
11341
|
+
};
|
|
11342
|
+
sync_order_cart_item_packing_from_product: {
|
|
11343
|
+
Args: {
|
|
11344
|
+
p_product_id: string;
|
|
11345
|
+
};
|
|
11346
|
+
Returns: undefined;
|
|
11347
|
+
};
|
|
11348
|
+
sync_product_packing_from_floriday_cache: {
|
|
11349
|
+
Args: {
|
|
11350
|
+
p_floriday_id: string;
|
|
11351
|
+
};
|
|
11352
|
+
Returns: undefined;
|
|
11353
|
+
};
|
|
9540
11354
|
twinfield_decrypt: {
|
|
9541
11355
|
Args: {
|
|
9542
11356
|
cipher: string;
|
|
@@ -9549,6 +11363,17 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
|
|
|
9549
11363
|
};
|
|
9550
11364
|
Returns: string;
|
|
9551
11365
|
};
|
|
11366
|
+
upsert_auto_fulfillment_log: {
|
|
11367
|
+
Args: {
|
|
11368
|
+
p_connection_id: string;
|
|
11369
|
+
p_error?: string;
|
|
11370
|
+
p_fulfillment_order_id?: string;
|
|
11371
|
+
p_reason?: string;
|
|
11372
|
+
p_sales_order_id: string;
|
|
11373
|
+
p_status: string;
|
|
11374
|
+
};
|
|
11375
|
+
Returns: undefined;
|
|
11376
|
+
};
|
|
9552
11377
|
};
|
|
9553
11378
|
Enums: {
|
|
9554
11379
|
app_role: "admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie" | "monteur";
|