@flowselections/floriday-klanten-module 1.0.28 → 1.0.30

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.
Files changed (86) hide show
  1. package/dist-lib/components/klanten/BewerkKlant.d.ts +6 -1
  2. package/dist-lib/components/klanten/BewerkKlant.d.ts.map +1 -1
  3. package/dist-lib/components/klanten/BewerkKlant.js +9 -5
  4. package/dist-lib/components/klanten/DeliveryLocationsTab.d.ts.map +1 -1
  5. package/dist-lib/components/klanten/DeliveryLocationsTab.js +2 -1
  6. package/dist-lib/components/klanten/GroupedKlantDetail.d.ts.map +1 -1
  7. package/dist-lib/components/klanten/GroupedKlantDetail.js +4 -2
  8. package/dist-lib/components/klanten/ImportKlanten.d.ts.map +1 -1
  9. package/dist-lib/components/klanten/ImportKlanten.js +2 -1
  10. package/dist-lib/components/klanten/KlantBewerkenDialog.d.ts +12 -0
  11. package/dist-lib/components/klanten/KlantBewerkenDialog.d.ts.map +1 -0
  12. package/dist-lib/components/klanten/KlantBewerkenDialog.js +27 -0
  13. package/dist-lib/components/klanten/KlantDetail.d.ts.map +1 -1
  14. package/dist-lib/components/klanten/KlantDetail.js +5 -3
  15. package/dist-lib/components/klanten/KlantenOverzicht.d.ts.map +1 -1
  16. package/dist-lib/components/klanten/KlantenOverzicht.js +102 -16
  17. package/dist-lib/components/klanten/LocalDiscountFormDialog.d.ts.map +1 -1
  18. package/dist-lib/components/klanten/LocalDiscountFormDialog.js +2 -1
  19. package/dist-lib/components/klanten/LocalDiscountsTab.d.ts.map +1 -1
  20. package/dist-lib/components/klanten/LocalDiscountsTab.js +2 -1
  21. package/dist-lib/components/klanten/LogisticsStrategyCard.d.ts.map +1 -1
  22. package/dist-lib/components/klanten/LogisticsStrategyCard.js +2 -1
  23. package/dist-lib/components/klanten/NieuweKlant.d.ts.map +1 -1
  24. package/dist-lib/components/klanten/NieuweKlant.js +2 -1
  25. package/dist-lib/components/klanten/OvernemenTwinfieldKlant.d.ts +7 -1
  26. package/dist-lib/components/klanten/OvernemenTwinfieldKlant.d.ts.map +1 -1
  27. package/dist-lib/components/klanten/OvernemenTwinfieldKlant.js +16 -8
  28. package/dist-lib/components/klanten/RouteError.d.ts +6 -0
  29. package/dist-lib/components/klanten/RouteError.d.ts.map +1 -0
  30. package/dist-lib/components/klanten/RouteError.js +13 -0
  31. package/dist-lib/index.d.ts +1 -0
  32. package/dist-lib/index.d.ts.map +1 -1
  33. package/dist-lib/index.js +1 -0
  34. package/dist-lib/integrations/supabase/auth-middleware.d.ts +490 -0
  35. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  36. package/dist-lib/integrations/supabase/client.d.ts +490 -0
  37. package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
  38. package/dist-lib/integrations/supabase/client.server.d.ts +490 -0
  39. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  40. package/dist-lib/integrations/supabase/types.d.ts +490 -0
  41. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  42. package/dist-lib/lib/accounting/twinfield/worker.functions.d.ts +1470 -0
  43. package/dist-lib/lib/accounting/twinfield/worker.functions.d.ts.map +1 -1
  44. package/dist-lib/lib/accounting.functions.d.ts +1470 -0
  45. package/dist-lib/lib/accounting.functions.d.ts.map +1 -1
  46. package/dist-lib/lib/customer-analytics.functions.d.ts +490 -0
  47. package/dist-lib/lib/customer-analytics.functions.d.ts.map +1 -1
  48. package/dist-lib/lib/customer-notes.functions.d.ts +980 -0
  49. package/dist-lib/lib/customer-notes.functions.d.ts.map +1 -1
  50. package/dist-lib/lib/customer-revenue.functions.d.ts +20327 -0
  51. package/dist-lib/lib/customer-revenue.functions.d.ts.map +1 -0
  52. package/dist-lib/lib/customer-revenue.functions.js +124 -0
  53. package/dist-lib/lib/customers.functions.d.ts +4410 -0
  54. package/dist-lib/lib/customers.functions.d.ts.map +1 -1
  55. package/dist-lib/lib/customers.functions.js +39 -35
  56. package/dist-lib/lib/delivery-locations.functions.d.ts +1960 -0
  57. package/dist-lib/lib/delivery-locations.functions.d.ts.map +1 -1
  58. package/dist-lib/lib/errors.d.ts +7 -0
  59. package/dist-lib/lib/errors.d.ts.map +1 -0
  60. package/dist-lib/lib/errors.js +36 -0
  61. package/dist-lib/lib/external-customers.functions.d.ts +1961 -1
  62. package/dist-lib/lib/external-customers.functions.d.ts.map +1 -1
  63. package/dist-lib/lib/external-customers.functions.js +28 -12
  64. package/dist-lib/lib/floriday-assortment.functions.d.ts +490 -0
  65. package/dist-lib/lib/floriday-assortment.functions.d.ts.map +1 -1
  66. package/dist-lib/lib/floriday-discounts.functions.d.ts +980 -0
  67. package/dist-lib/lib/floriday-discounts.functions.d.ts.map +1 -1
  68. package/dist-lib/lib/floriday-trade-items.functions.d.ts +490 -0
  69. package/dist-lib/lib/floriday-trade-items.functions.d.ts.map +1 -1
  70. package/dist-lib/lib/local-discounts.functions.d.ts +3430 -0
  71. package/dist-lib/lib/local-discounts.functions.d.ts.map +1 -1
  72. package/dist-lib/lib/logistics-events.functions.d.ts +490 -0
  73. package/dist-lib/lib/logistics-events.functions.d.ts.map +1 -1
  74. package/dist-lib/lib/logistics-strategy.functions.d.ts +1960 -0
  75. package/dist-lib/lib/logistics-strategy.functions.d.ts.map +1 -1
  76. package/dist-lib/lib/overdue-invoices.functions.d.ts +490 -0
  77. package/dist-lib/lib/overdue-invoices.functions.d.ts.map +1 -1
  78. package/dist-lib/lib/price-groups-local.functions.d.ts +3430 -0
  79. package/dist-lib/lib/price-groups-local.functions.d.ts.map +1 -1
  80. package/dist-lib/lib/price-groups.functions.d.ts +490 -0
  81. package/dist-lib/lib/price-groups.functions.d.ts.map +1 -1
  82. package/dist-lib/lib/twinfield-adopt.functions.d.ts +980 -0
  83. package/dist-lib/lib/twinfield-adopt.functions.d.ts.map +1 -1
  84. package/dist-lib/lib/twinfield-ledger.functions.d.ts +490 -0
  85. package/dist-lib/lib/twinfield-ledger.functions.d.ts.map +1 -1
  86. package/package.json +2 -2
@@ -7,12 +7,31 @@ const listInput = z.object({
7
7
  search: z.string().trim().max(255).optional().default(""),
8
8
  providers: z.array(z.string()).optional(),
9
9
  status: z.enum(["all", "active"]).optional().default("all"),
10
- limit: z.number().int().min(1).max(2000).optional().default(1000),
10
+ /** Optioneel plafond; standaard onbeperkt (alle klanten). */
11
+ limit: z.number().int().min(1).optional(),
11
12
  });
12
13
  async function admin() {
13
14
  const { supabaseAdmin } = await import("../integrations/supabase/client.server");
14
15
  return supabaseAdmin;
15
16
  }
17
+ /** Postgres levert nooit meer dan 1000 rijen per aanvraag; lees in blokken door. */
18
+ const PAGE = 1000;
19
+ async function fetchAllRows(build, label, max) {
20
+ const out = [];
21
+ for (let offset = 0;; offset += PAGE) {
22
+ const size = max ? Math.min(PAGE, max - out.length) : PAGE;
23
+ if (size <= 0)
24
+ break;
25
+ const { data, error } = await build().range(offset, offset + size - 1);
26
+ if (error)
27
+ throw new Error(`${label}: ${error.message}`);
28
+ const chunk = (data ?? []);
29
+ out.push(...chunk);
30
+ if (chunk.length < size)
31
+ break;
32
+ }
33
+ return out;
34
+ }
16
35
  export const listExternalProviders = createServerFn({ method: "GET" })
17
36
  .middleware([requireSupabaseAuth])
18
37
  .handler(async () => {
@@ -44,17 +63,14 @@ export const listExternalCustomers = createServerFn({ method: "POST" })
44
63
  if (requested.length === 0) {
45
64
  return { customers: [], providers, last_fetched_at: null };
46
65
  }
47
- let q = sb
48
- .from("external_customers_grouped")
49
- .select(GROUPED_COLS)
50
- .overlaps("providers", requested)
51
- .limit(data.limit);
52
- if (data.status === "active")
53
- q = q.eq("is_active", true);
54
- const { data: rows, error } = await q;
55
- if (error)
56
- throw new Error(`external_customers_grouped: ${error.message}`);
57
- let customers = (rows ?? []);
66
+ const build = () => {
67
+ const q = sb
68
+ .from("external_customers_grouped")
69
+ .select(GROUPED_COLS)
70
+ .overlaps("providers", requested);
71
+ return data.status === "active" ? q.eq("is_active", true) : q;
72
+ };
73
+ let customers = await fetchAllRows(build, "external_customers_grouped", data.limit);
58
74
  if (data.search) {
59
75
  const s = data.search.toLowerCase();
60
76
  customers = customers.filter((c) => [c.display_name, c.commercial_name, c.email, c.city, c.contact_person, c.gln, c.vat_number]
@@ -3563,6 +3563,474 @@ export declare const listFloridayCustomerAssortment: import("@tanstack/start-cli
3563
3563
  referencedColumns: ["id"];
3564
3564
  }];
3565
3565
  };
3566
+ exact_auth_call_budget: {
3567
+ Row: {
3568
+ account_key: string;
3569
+ day_count: number;
3570
+ day_date: string;
3571
+ division_code: number;
3572
+ environment: string;
3573
+ minute_count: number;
3574
+ minute_window: string;
3575
+ updated_at: string;
3576
+ };
3577
+ Insert: {
3578
+ account_key?: string;
3579
+ day_count?: number;
3580
+ day_date?: string;
3581
+ division_code?: number;
3582
+ environment: string;
3583
+ minute_count?: number;
3584
+ minute_window?: string;
3585
+ updated_at?: string;
3586
+ };
3587
+ Update: {
3588
+ account_key?: string;
3589
+ day_count?: number;
3590
+ day_date?: string;
3591
+ division_code?: number;
3592
+ environment?: string;
3593
+ minute_count?: number;
3594
+ minute_window?: string;
3595
+ updated_at?: string;
3596
+ };
3597
+ Relationships: [];
3598
+ };
3599
+ exact_auth_customers: {
3600
+ Row: {
3601
+ account_key: string;
3602
+ address_line1: string | null;
3603
+ chamber_of_commerce: string | null;
3604
+ city: string | null;
3605
+ code: string | null;
3606
+ country: string | null;
3607
+ created_at: string;
3608
+ currency: string | null;
3609
+ division_code: number | null;
3610
+ email: string | null;
3611
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3612
+ exact_id: string;
3613
+ exact_modified: string | null;
3614
+ exact_timestamp: number | null;
3615
+ id: string;
3616
+ is_active: boolean;
3617
+ name: string | null;
3618
+ phone: string | null;
3619
+ postcode: string | null;
3620
+ raw: import("../integrations/supabase/types").Json | null;
3621
+ status: string | null;
3622
+ updated_at: string;
3623
+ vat_number: string | null;
3624
+ website: string | null;
3625
+ };
3626
+ Insert: {
3627
+ account_key?: string;
3628
+ address_line1?: string | null;
3629
+ chamber_of_commerce?: string | null;
3630
+ city?: string | null;
3631
+ code?: string | null;
3632
+ country?: string | null;
3633
+ created_at?: string;
3634
+ currency?: string | null;
3635
+ division_code?: number | null;
3636
+ email?: string | null;
3637
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3638
+ exact_id: string;
3639
+ exact_modified?: string | null;
3640
+ exact_timestamp?: number | null;
3641
+ id?: string;
3642
+ is_active?: boolean;
3643
+ name?: string | null;
3644
+ phone?: string | null;
3645
+ postcode?: string | null;
3646
+ raw?: import("../integrations/supabase/types").Json | null;
3647
+ status?: string | null;
3648
+ updated_at?: string;
3649
+ vat_number?: string | null;
3650
+ website?: string | null;
3651
+ };
3652
+ Update: {
3653
+ account_key?: string;
3654
+ address_line1?: string | null;
3655
+ chamber_of_commerce?: string | null;
3656
+ city?: string | null;
3657
+ code?: string | null;
3658
+ country?: string | null;
3659
+ created_at?: string;
3660
+ currency?: string | null;
3661
+ division_code?: number | null;
3662
+ email?: string | null;
3663
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3664
+ exact_id?: string;
3665
+ exact_modified?: string | null;
3666
+ exact_timestamp?: number | null;
3667
+ id?: string;
3668
+ is_active?: boolean;
3669
+ name?: string | null;
3670
+ phone?: string | null;
3671
+ postcode?: string | null;
3672
+ raw?: import("../integrations/supabase/types").Json | null;
3673
+ status?: string | null;
3674
+ updated_at?: string;
3675
+ vat_number?: string | null;
3676
+ website?: string | null;
3677
+ };
3678
+ Relationships: [];
3679
+ };
3680
+ exact_auth_divisions: {
3681
+ Row: {
3682
+ account_key: string;
3683
+ company_name: string | null;
3684
+ created_at: string;
3685
+ division_code: number | null;
3686
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3687
+ id: string;
3688
+ last_synced_at: string | null;
3689
+ updated_at: string;
3690
+ };
3691
+ Insert: {
3692
+ account_key?: string;
3693
+ company_name?: string | null;
3694
+ created_at?: string;
3695
+ division_code?: number | null;
3696
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3697
+ id?: string;
3698
+ last_synced_at?: string | null;
3699
+ updated_at?: string;
3700
+ };
3701
+ Update: {
3702
+ account_key?: string;
3703
+ company_name?: string | null;
3704
+ created_at?: string;
3705
+ division_code?: number | null;
3706
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3707
+ id?: string;
3708
+ last_synced_at?: string | null;
3709
+ updated_at?: string;
3710
+ };
3711
+ Relationships: [];
3712
+ };
3713
+ exact_auth_invoice_lines: {
3714
+ Row: {
3715
+ account_key: string;
3716
+ amount_excl: number | null;
3717
+ created_at: string;
3718
+ description: string | null;
3719
+ discount: number | null;
3720
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3721
+ exact_id: string;
3722
+ exact_timestamp: number | null;
3723
+ id: string;
3724
+ invoice_exact_id: string;
3725
+ item_code: string | null;
3726
+ item_exact_id: string | null;
3727
+ line_number: number | null;
3728
+ quantity: number | null;
3729
+ raw: import("../integrations/supabase/types").Json | null;
3730
+ unit_price: number | null;
3731
+ updated_at: string;
3732
+ vat_amount: number | null;
3733
+ vat_code: string | null;
3734
+ };
3735
+ Insert: {
3736
+ account_key?: string;
3737
+ amount_excl?: number | null;
3738
+ created_at?: string;
3739
+ description?: string | null;
3740
+ discount?: number | null;
3741
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3742
+ exact_id: string;
3743
+ exact_timestamp?: number | null;
3744
+ id?: string;
3745
+ invoice_exact_id: string;
3746
+ item_code?: string | null;
3747
+ item_exact_id?: string | null;
3748
+ line_number?: number | null;
3749
+ quantity?: number | null;
3750
+ raw?: import("../integrations/supabase/types").Json | null;
3751
+ unit_price?: number | null;
3752
+ updated_at?: string;
3753
+ vat_amount?: number | null;
3754
+ vat_code?: string | null;
3755
+ };
3756
+ Update: {
3757
+ account_key?: string;
3758
+ amount_excl?: number | null;
3759
+ created_at?: string;
3760
+ description?: string | null;
3761
+ discount?: number | null;
3762
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3763
+ exact_id?: string;
3764
+ exact_timestamp?: number | null;
3765
+ id?: string;
3766
+ invoice_exact_id?: string;
3767
+ item_code?: string | null;
3768
+ item_exact_id?: string | null;
3769
+ line_number?: number | null;
3770
+ quantity?: number | null;
3771
+ raw?: import("../integrations/supabase/types").Json | null;
3772
+ unit_price?: number | null;
3773
+ updated_at?: string;
3774
+ vat_amount?: number | null;
3775
+ vat_code?: string | null;
3776
+ };
3777
+ Relationships: [];
3778
+ };
3779
+ exact_auth_invoices: {
3780
+ Row: {
3781
+ account_key: string;
3782
+ amount_excl: number | null;
3783
+ amount_incl: number | null;
3784
+ amount_open: number | null;
3785
+ created_at: string;
3786
+ currency: string | null;
3787
+ customer_code: string | null;
3788
+ customer_exact_id: string | null;
3789
+ customer_name: string | null;
3790
+ description: string | null;
3791
+ division_code: number | null;
3792
+ due_date: string | null;
3793
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3794
+ exact_id: string;
3795
+ exact_modified: string | null;
3796
+ exact_timestamp: number | null;
3797
+ id: string;
3798
+ invoice_date: string | null;
3799
+ invoice_number: string | null;
3800
+ order_number: string | null;
3801
+ paid_at: string | null;
3802
+ payment_status: string;
3803
+ raw: import("../integrations/supabase/types").Json | null;
3804
+ receivable_synced_at: string | null;
3805
+ status_code: number | null;
3806
+ updated_at: string;
3807
+ };
3808
+ Insert: {
3809
+ account_key?: string;
3810
+ amount_excl?: number | null;
3811
+ amount_incl?: number | null;
3812
+ amount_open?: number | null;
3813
+ created_at?: string;
3814
+ currency?: string | null;
3815
+ customer_code?: string | null;
3816
+ customer_exact_id?: string | null;
3817
+ customer_name?: string | null;
3818
+ description?: string | null;
3819
+ division_code?: number | null;
3820
+ due_date?: string | null;
3821
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3822
+ exact_id: string;
3823
+ exact_modified?: string | null;
3824
+ exact_timestamp?: number | null;
3825
+ id?: string;
3826
+ invoice_date?: string | null;
3827
+ invoice_number?: string | null;
3828
+ order_number?: string | null;
3829
+ paid_at?: string | null;
3830
+ payment_status?: string;
3831
+ raw?: import("../integrations/supabase/types").Json | null;
3832
+ receivable_synced_at?: string | null;
3833
+ status_code?: number | null;
3834
+ updated_at?: string;
3835
+ };
3836
+ Update: {
3837
+ account_key?: string;
3838
+ amount_excl?: number | null;
3839
+ amount_incl?: number | null;
3840
+ amount_open?: number | null;
3841
+ created_at?: string;
3842
+ currency?: string | null;
3843
+ customer_code?: string | null;
3844
+ customer_exact_id?: string | null;
3845
+ customer_name?: string | null;
3846
+ description?: string | null;
3847
+ division_code?: number | null;
3848
+ due_date?: string | null;
3849
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3850
+ exact_id?: string;
3851
+ exact_modified?: string | null;
3852
+ exact_timestamp?: number | null;
3853
+ id?: string;
3854
+ invoice_date?: string | null;
3855
+ invoice_number?: string | null;
3856
+ order_number?: string | null;
3857
+ paid_at?: string | null;
3858
+ payment_status?: string;
3859
+ raw?: import("../integrations/supabase/types").Json | null;
3860
+ receivable_synced_at?: string | null;
3861
+ status_code?: number | null;
3862
+ updated_at?: string;
3863
+ };
3864
+ Relationships: [];
3865
+ };
3866
+ exact_auth_items: {
3867
+ Row: {
3868
+ account_key: string;
3869
+ barcode: string | null;
3870
+ code: string | null;
3871
+ cost_price: number | null;
3872
+ created_at: string;
3873
+ description: string | null;
3874
+ division_code: number | null;
3875
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3876
+ exact_id: string;
3877
+ exact_modified: string | null;
3878
+ exact_timestamp: number | null;
3879
+ gl_account_code: string | null;
3880
+ id: string;
3881
+ is_active: boolean;
3882
+ is_sales_item: boolean | null;
3883
+ item_type: string | null;
3884
+ raw: import("../integrations/supabase/types").Json | null;
3885
+ sales_price: number | null;
3886
+ unit: string | null;
3887
+ updated_at: string;
3888
+ vat_code: string | null;
3889
+ };
3890
+ Insert: {
3891
+ account_key?: string;
3892
+ barcode?: string | null;
3893
+ code?: string | null;
3894
+ cost_price?: number | null;
3895
+ created_at?: string;
3896
+ description?: string | null;
3897
+ division_code?: number | null;
3898
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3899
+ exact_id: string;
3900
+ exact_modified?: string | null;
3901
+ exact_timestamp?: number | null;
3902
+ gl_account_code?: string | null;
3903
+ id?: string;
3904
+ is_active?: boolean;
3905
+ is_sales_item?: boolean | null;
3906
+ item_type?: string | null;
3907
+ raw?: import("../integrations/supabase/types").Json | null;
3908
+ sales_price?: number | null;
3909
+ unit?: string | null;
3910
+ updated_at?: string;
3911
+ vat_code?: string | null;
3912
+ };
3913
+ Update: {
3914
+ account_key?: string;
3915
+ barcode?: string | null;
3916
+ code?: string | null;
3917
+ cost_price?: number | null;
3918
+ created_at?: string;
3919
+ description?: string | null;
3920
+ division_code?: number | null;
3921
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3922
+ exact_id?: string;
3923
+ exact_modified?: string | null;
3924
+ exact_timestamp?: number | null;
3925
+ gl_account_code?: string | null;
3926
+ id?: string;
3927
+ is_active?: boolean;
3928
+ is_sales_item?: boolean | null;
3929
+ item_type?: string | null;
3930
+ raw?: import("../integrations/supabase/types").Json | null;
3931
+ sales_price?: number | null;
3932
+ unit?: string | null;
3933
+ updated_at?: string;
3934
+ vat_code?: string | null;
3935
+ };
3936
+ Relationships: [];
3937
+ };
3938
+ exact_auth_sync_log: {
3939
+ Row: {
3940
+ account_key: string;
3941
+ calls_used: number;
3942
+ created_at: string;
3943
+ domain: string;
3944
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3945
+ error: string | null;
3946
+ finished_at: string | null;
3947
+ id: string;
3948
+ ok: boolean;
3949
+ records: number;
3950
+ started_at: string;
3951
+ };
3952
+ Insert: {
3953
+ account_key?: string;
3954
+ calls_used?: number;
3955
+ created_at?: string;
3956
+ domain: string;
3957
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3958
+ error?: string | null;
3959
+ finished_at?: string | null;
3960
+ id?: string;
3961
+ ok?: boolean;
3962
+ records?: number;
3963
+ started_at?: string;
3964
+ };
3965
+ Update: {
3966
+ account_key?: string;
3967
+ calls_used?: number;
3968
+ created_at?: string;
3969
+ domain?: string;
3970
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3971
+ error?: string | null;
3972
+ finished_at?: string | null;
3973
+ id?: string;
3974
+ ok?: boolean;
3975
+ records?: number;
3976
+ started_at?: string;
3977
+ };
3978
+ Relationships: [];
3979
+ };
3980
+ exact_auth_sync_state: {
3981
+ Row: {
3982
+ account_key: string;
3983
+ created_at: string;
3984
+ cursor_timestamp: number;
3985
+ division_code: number | null;
3986
+ domain: string;
3987
+ duration_ms: number | null;
3988
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
3989
+ initial_sync_done: boolean;
3990
+ last_error: string | null;
3991
+ last_run_at: string | null;
3992
+ last_success_at: string | null;
3993
+ locked_at: string | null;
3994
+ needs_initial_sync: boolean;
3995
+ record_count: number;
3996
+ updated_at: string;
3997
+ };
3998
+ Insert: {
3999
+ account_key?: string;
4000
+ created_at?: string;
4001
+ cursor_timestamp?: number;
4002
+ division_code?: number | null;
4003
+ domain: string;
4004
+ duration_ms?: number | null;
4005
+ environment: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
4006
+ initial_sync_done?: boolean;
4007
+ last_error?: string | null;
4008
+ last_run_at?: string | null;
4009
+ last_success_at?: string | null;
4010
+ locked_at?: string | null;
4011
+ needs_initial_sync?: boolean;
4012
+ record_count?: number;
4013
+ updated_at?: string;
4014
+ };
4015
+ Update: {
4016
+ account_key?: string;
4017
+ created_at?: string;
4018
+ cursor_timestamp?: number;
4019
+ division_code?: number | null;
4020
+ domain?: string;
4021
+ duration_ms?: number | null;
4022
+ environment?: import("../integrations/supabase/types").Database["public"]["Enums"]["exact_env"];
4023
+ initial_sync_done?: boolean;
4024
+ last_error?: string | null;
4025
+ last_run_at?: string | null;
4026
+ last_success_at?: string | null;
4027
+ locked_at?: string | null;
4028
+ needs_initial_sync?: boolean;
4029
+ record_count?: number;
4030
+ updated_at?: string;
4031
+ };
4032
+ Relationships: [];
4033
+ };
3566
4034
  exact_bulk_operation_items: {
3567
4035
  Row: {
3568
4036
  attempts: number;
@@ -10063,6 +10531,7 @@ export declare const listFloridayCustomerAssortment: import("@tanstack/start-cli
10063
10531
  };
10064
10532
  offer_settings: {
10065
10533
  Row: {
10534
+ brand_name: string | null;
10066
10535
  button_color: string;
10067
10536
  created_at: string;
10068
10537
  default_countries: string[];
@@ -10084,6 +10553,7 @@ export declare const listFloridayCustomerAssortment: import("@tanstack/start-cli
10084
10553
  updated_at: string;
10085
10554
  };
10086
10555
  Insert: {
10556
+ brand_name?: string | null;
10087
10557
  button_color?: string;
10088
10558
  created_at?: string;
10089
10559
  default_countries?: string[];
@@ -10105,6 +10575,7 @@ export declare const listFloridayCustomerAssortment: import("@tanstack/start-cli
10105
10575
  updated_at?: string;
10106
10576
  };
10107
10577
  Update: {
10578
+ brand_name?: string | null;
10108
10579
  button_color?: string;
10109
10580
  created_at?: string;
10110
10581
  default_countries?: string[];
@@ -17955,6 +18426,21 @@ export declare const listFloridayCustomerAssortment: import("@tanstack/start-cli
17955
18426
  Args: never;
17956
18427
  Returns: string;
17957
18428
  };
18429
+ exact_auth_consume_calls: {
18430
+ Args: {
18431
+ _account_key: string;
18432
+ _calls?: number;
18433
+ _day_limit?: number;
18434
+ _division_code: number;
18435
+ _environment: string;
18436
+ _minute_limit?: number;
18437
+ };
18438
+ Returns: import("../integrations/supabase/types").Json;
18439
+ };
18440
+ exact_auth_prune_sync_log: {
18441
+ Args: never;
18442
+ Returns: undefined;
18443
+ };
17958
18444
  exact_decrypt: {
17959
18445
  Args: {
17960
18446
  cipher: string;
@@ -18164,6 +18650,10 @@ export declare const listFloridayCustomerAssortment: import("@tanstack/start-cli
18164
18650
  };
18165
18651
  Returns: number;
18166
18652
  };
18653
+ get_offer_branding: {
18654
+ Args: never;
18655
+ Returns: import("../integrations/supabase/types").Json;
18656
+ };
18167
18657
  get_offer_by_link_code: {
18168
18658
  Args: {
18169
18659
  p_code: string;