@flowselections/floriday-authenticatie-module 1.0.31 → 1.0.36

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 (54) hide show
  1. package/dist-lib/components/TemplatePage.d.ts +1 -1
  2. package/dist-lib/components/TemplatePage.d.ts.map +1 -1
  3. package/dist-lib/components/floriday/FlorydayConnectionPage.d.ts +1 -1
  4. package/dist-lib/components/floriday/FlorydayConnectionPage.d.ts.map +1 -1
  5. package/dist-lib/components/floriday/FlorydaySyncHealthBanner.d.ts +1 -1
  6. package/dist-lib/components/floriday/FlorydaySyncHealthBanner.d.ts.map +1 -1
  7. package/dist-lib/components/floriday/FlorydaySyncJobsCard.d.ts +1 -1
  8. package/dist-lib/components/floriday/FlorydaySyncJobsCard.d.ts.map +1 -1
  9. package/dist-lib/components/floriday/TokenHealthCard.d.ts +1 -1
  10. package/dist-lib/components/floriday/TokenHealthCard.d.ts.map +1 -1
  11. package/dist-lib/components/settings/FloricodeSettingsCard.d.ts +1 -1
  12. package/dist-lib/components/settings/FloricodeSettingsCard.d.ts.map +1 -1
  13. package/dist-lib/components/settings/FlorydaySettingsCard.d.ts +1 -1
  14. package/dist-lib/components/settings/FlorydaySettingsCard.d.ts.map +1 -1
  15. package/dist-lib/integrations/supabase/auth-middleware.d.ts +652 -221
  16. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  17. package/dist-lib/integrations/supabase/client.d.ts +652 -221
  18. package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
  19. package/dist-lib/integrations/supabase/client.server.d.ts +652 -221
  20. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  21. package/dist-lib/integrations/supabase/types.d.ts +653 -228
  22. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  23. package/dist-lib/integrations/supabase/types.js +1 -12
  24. package/dist-lib/lib/central-auth.server.d.ts +26 -1
  25. package/dist-lib/lib/central-auth.server.d.ts.map +1 -1
  26. package/dist-lib/lib/central-auth.server.js +69 -3
  27. package/dist-lib/lib/cron/index.d.ts +1 -0
  28. package/dist-lib/lib/cron/index.d.ts.map +1 -1
  29. package/dist-lib/lib/cron/index.js +1 -0
  30. package/dist-lib/lib/cron/process-stock-queue.d.ts +43 -0
  31. package/dist-lib/lib/cron/process-stock-queue.d.ts.map +1 -0
  32. package/dist-lib/lib/cron/process-stock-queue.js +218 -0
  33. package/dist-lib/lib/cron/refresh-floriday-tokens.d.ts.map +1 -1
  34. package/dist-lib/lib/cron/refresh-floriday-tokens.js +27 -148
  35. package/dist-lib/lib/error-page.js +30 -30
  36. package/dist-lib/lib/floricode.functions.d.ts +4557 -1540
  37. package/dist-lib/lib/floricode.functions.d.ts.map +1 -1
  38. package/dist-lib/lib/floriday-auction-letters.functions.d.ts +652 -221
  39. package/dist-lib/lib/floriday-auction-letters.functions.d.ts.map +1 -1
  40. package/dist-lib/lib/floriday-labels.functions.d.ts +652 -221
  41. package/dist-lib/lib/floriday-labels.functions.d.ts.map +1 -1
  42. package/dist-lib/lib/floriday-public.functions.d.ts +3912 -1362
  43. package/dist-lib/lib/floriday-public.functions.d.ts.map +1 -1
  44. package/dist-lib/lib/floriday-stickers.functions.d.ts +652 -221
  45. package/dist-lib/lib/floriday-stickers.functions.d.ts.map +1 -1
  46. package/dist-lib/lib/floriday-sync.functions.d.ts +20181 -6820
  47. package/dist-lib/lib/floriday-sync.functions.d.ts.map +1 -1
  48. package/dist-lib/lib/floriday-writes.functions.d.ts +3906 -1320
  49. package/dist-lib/lib/floriday-writes.functions.d.ts.map +1 -1
  50. package/dist-lib/lib/floriday.functions.d.ts +32289 -4066
  51. package/dist-lib/lib/floriday.functions.d.ts.map +1 -1
  52. package/dist-lib/lib/floriday.functions.js +111 -45
  53. package/package.json +483 -475
  54. package/dist-lib/assets/floriday-logo.png.asset.json +0 -11
@@ -334,7 +334,6 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
334
334
  active: boolean;
335
335
  api_key: string;
336
336
  created_at: string;
337
- created_by: string | null;
338
337
  id: string;
339
338
  label: string;
340
339
  provider_id: string;
@@ -344,7 +343,6 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
344
343
  active?: boolean;
345
344
  api_key: string;
346
345
  created_at?: string;
347
- created_by?: string | null;
348
346
  id?: string;
349
347
  label: string;
350
348
  provider_id: string;
@@ -354,7 +352,6 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
354
352
  active?: boolean;
355
353
  api_key?: string;
356
354
  created_at?: string;
357
- created_by?: string | null;
358
355
  id?: string;
359
356
  label?: string;
360
357
  provider_id?: string;
@@ -1626,13 +1623,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
1626
1623
  id?: string;
1627
1624
  user_id?: string | null;
1628
1625
  };
1629
- Relationships: [{
1630
- foreignKeyName: "customer_audit_log_customer_id_fkey";
1631
- columns: ["customer_id"];
1632
- isOneToOne: false;
1633
- referencedRelation: "customers";
1634
- referencedColumns: ["id"];
1635
- }];
1626
+ Relationships: [];
1636
1627
  };
1637
1628
  customer_contacts: {
1638
1629
  Row: {
@@ -1693,7 +1684,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
1693
1684
  city: string | null;
1694
1685
  country: string | null;
1695
1686
  created_at: string;
1696
- customer_id: string;
1687
+ customer_id: string | null;
1697
1688
  external_key: string | null;
1698
1689
  external_provider: string | null;
1699
1690
  floriday_location_id: string | null;
@@ -1717,7 +1708,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
1717
1708
  city?: string | null;
1718
1709
  country?: string | null;
1719
1710
  created_at?: string;
1720
- customer_id: string;
1711
+ customer_id?: string | null;
1721
1712
  external_key?: string | null;
1722
1713
  external_provider?: string | null;
1723
1714
  floriday_location_id?: string | null;
@@ -1741,7 +1732,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
1741
1732
  city?: string | null;
1742
1733
  country?: string | null;
1743
1734
  created_at?: string;
1744
- customer_id?: string;
1735
+ customer_id?: string | null;
1745
1736
  external_key?: string | null;
1746
1737
  external_provider?: string | null;
1747
1738
  floriday_location_id?: string | null;
@@ -3545,6 +3536,474 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
3545
3536
  referencedColumns: ["id"];
3546
3537
  }];
3547
3538
  };
3539
+ exact_auth_call_budget: {
3540
+ Row: {
3541
+ account_key: string;
3542
+ day_count: number;
3543
+ day_date: string;
3544
+ division_code: number;
3545
+ environment: string;
3546
+ minute_count: number;
3547
+ minute_window: string;
3548
+ updated_at: string;
3549
+ };
3550
+ Insert: {
3551
+ account_key?: string;
3552
+ day_count?: number;
3553
+ day_date?: string;
3554
+ division_code?: number;
3555
+ environment: string;
3556
+ minute_count?: number;
3557
+ minute_window?: string;
3558
+ updated_at?: string;
3559
+ };
3560
+ Update: {
3561
+ account_key?: string;
3562
+ day_count?: number;
3563
+ day_date?: string;
3564
+ division_code?: number;
3565
+ environment?: string;
3566
+ minute_count?: number;
3567
+ minute_window?: string;
3568
+ updated_at?: string;
3569
+ };
3570
+ Relationships: [];
3571
+ };
3572
+ exact_auth_customers: {
3573
+ Row: {
3574
+ account_key: string;
3575
+ address_line1: string | null;
3576
+ chamber_of_commerce: string | null;
3577
+ city: string | null;
3578
+ code: string | null;
3579
+ country: string | null;
3580
+ created_at: string;
3581
+ currency: string | null;
3582
+ division_code: number | null;
3583
+ email: string | null;
3584
+ environment: Database["public"]["Enums"]["exact_env"];
3585
+ exact_id: string;
3586
+ exact_modified: string | null;
3587
+ exact_timestamp: number | null;
3588
+ id: string;
3589
+ is_active: boolean;
3590
+ name: string | null;
3591
+ phone: string | null;
3592
+ postcode: string | null;
3593
+ raw: import("./types.js").Json | null;
3594
+ status: string | null;
3595
+ updated_at: string;
3596
+ vat_number: string | null;
3597
+ website: string | null;
3598
+ };
3599
+ Insert: {
3600
+ account_key?: string;
3601
+ address_line1?: string | null;
3602
+ chamber_of_commerce?: string | null;
3603
+ city?: string | null;
3604
+ code?: string | null;
3605
+ country?: string | null;
3606
+ created_at?: string;
3607
+ currency?: string | null;
3608
+ division_code?: number | null;
3609
+ email?: string | null;
3610
+ environment: Database["public"]["Enums"]["exact_env"];
3611
+ exact_id: string;
3612
+ exact_modified?: string | null;
3613
+ exact_timestamp?: number | null;
3614
+ id?: string;
3615
+ is_active?: boolean;
3616
+ name?: string | null;
3617
+ phone?: string | null;
3618
+ postcode?: string | null;
3619
+ raw?: import("./types.js").Json | null;
3620
+ status?: string | null;
3621
+ updated_at?: string;
3622
+ vat_number?: string | null;
3623
+ website?: string | null;
3624
+ };
3625
+ Update: {
3626
+ account_key?: string;
3627
+ address_line1?: string | null;
3628
+ chamber_of_commerce?: string | null;
3629
+ city?: string | null;
3630
+ code?: string | null;
3631
+ country?: string | null;
3632
+ created_at?: string;
3633
+ currency?: string | null;
3634
+ division_code?: number | null;
3635
+ email?: string | null;
3636
+ environment?: Database["public"]["Enums"]["exact_env"];
3637
+ exact_id?: string;
3638
+ exact_modified?: string | null;
3639
+ exact_timestamp?: number | null;
3640
+ id?: string;
3641
+ is_active?: boolean;
3642
+ name?: string | null;
3643
+ phone?: string | null;
3644
+ postcode?: string | null;
3645
+ raw?: import("./types.js").Json | null;
3646
+ status?: string | null;
3647
+ updated_at?: string;
3648
+ vat_number?: string | null;
3649
+ website?: string | null;
3650
+ };
3651
+ Relationships: [];
3652
+ };
3653
+ exact_auth_divisions: {
3654
+ Row: {
3655
+ account_key: string;
3656
+ company_name: string | null;
3657
+ created_at: string;
3658
+ division_code: number | null;
3659
+ environment: Database["public"]["Enums"]["exact_env"];
3660
+ id: string;
3661
+ last_synced_at: string | null;
3662
+ updated_at: string;
3663
+ };
3664
+ Insert: {
3665
+ account_key?: string;
3666
+ company_name?: string | null;
3667
+ created_at?: string;
3668
+ division_code?: number | null;
3669
+ environment: Database["public"]["Enums"]["exact_env"];
3670
+ id?: string;
3671
+ last_synced_at?: string | null;
3672
+ updated_at?: string;
3673
+ };
3674
+ Update: {
3675
+ account_key?: string;
3676
+ company_name?: string | null;
3677
+ created_at?: string;
3678
+ division_code?: number | null;
3679
+ environment?: Database["public"]["Enums"]["exact_env"];
3680
+ id?: string;
3681
+ last_synced_at?: string | null;
3682
+ updated_at?: string;
3683
+ };
3684
+ Relationships: [];
3685
+ };
3686
+ exact_auth_invoice_lines: {
3687
+ Row: {
3688
+ account_key: string;
3689
+ amount_excl: number | null;
3690
+ created_at: string;
3691
+ description: string | null;
3692
+ discount: number | null;
3693
+ environment: Database["public"]["Enums"]["exact_env"];
3694
+ exact_id: string;
3695
+ exact_timestamp: number | null;
3696
+ id: string;
3697
+ invoice_exact_id: string;
3698
+ item_code: string | null;
3699
+ item_exact_id: string | null;
3700
+ line_number: number | null;
3701
+ quantity: number | null;
3702
+ raw: import("./types.js").Json | null;
3703
+ unit_price: number | null;
3704
+ updated_at: string;
3705
+ vat_amount: number | null;
3706
+ vat_code: string | null;
3707
+ };
3708
+ Insert: {
3709
+ account_key?: string;
3710
+ amount_excl?: number | null;
3711
+ created_at?: string;
3712
+ description?: string | null;
3713
+ discount?: number | null;
3714
+ environment: Database["public"]["Enums"]["exact_env"];
3715
+ exact_id: string;
3716
+ exact_timestamp?: number | null;
3717
+ id?: string;
3718
+ invoice_exact_id: string;
3719
+ item_code?: string | null;
3720
+ item_exact_id?: string | null;
3721
+ line_number?: number | null;
3722
+ quantity?: number | null;
3723
+ raw?: import("./types.js").Json | null;
3724
+ unit_price?: number | null;
3725
+ updated_at?: string;
3726
+ vat_amount?: number | null;
3727
+ vat_code?: string | null;
3728
+ };
3729
+ Update: {
3730
+ account_key?: string;
3731
+ amount_excl?: number | null;
3732
+ created_at?: string;
3733
+ description?: string | null;
3734
+ discount?: number | null;
3735
+ environment?: Database["public"]["Enums"]["exact_env"];
3736
+ exact_id?: string;
3737
+ exact_timestamp?: number | null;
3738
+ id?: string;
3739
+ invoice_exact_id?: string;
3740
+ item_code?: string | null;
3741
+ item_exact_id?: string | null;
3742
+ line_number?: number | null;
3743
+ quantity?: number | null;
3744
+ raw?: import("./types.js").Json | null;
3745
+ unit_price?: number | null;
3746
+ updated_at?: string;
3747
+ vat_amount?: number | null;
3748
+ vat_code?: string | null;
3749
+ };
3750
+ Relationships: [];
3751
+ };
3752
+ exact_auth_invoices: {
3753
+ Row: {
3754
+ account_key: string;
3755
+ amount_excl: number | null;
3756
+ amount_incl: number | null;
3757
+ amount_open: number | null;
3758
+ created_at: string;
3759
+ currency: string | null;
3760
+ customer_code: string | null;
3761
+ customer_exact_id: string | null;
3762
+ customer_name: string | null;
3763
+ description: string | null;
3764
+ division_code: number | null;
3765
+ due_date: string | null;
3766
+ environment: Database["public"]["Enums"]["exact_env"];
3767
+ exact_id: string;
3768
+ exact_modified: string | null;
3769
+ exact_timestamp: number | null;
3770
+ id: string;
3771
+ invoice_date: string | null;
3772
+ invoice_number: string | null;
3773
+ order_number: string | null;
3774
+ paid_at: string | null;
3775
+ payment_status: string;
3776
+ raw: import("./types.js").Json | null;
3777
+ receivable_synced_at: string | null;
3778
+ status_code: number | null;
3779
+ updated_at: string;
3780
+ };
3781
+ Insert: {
3782
+ account_key?: string;
3783
+ amount_excl?: number | null;
3784
+ amount_incl?: number | null;
3785
+ amount_open?: number | null;
3786
+ created_at?: string;
3787
+ currency?: string | null;
3788
+ customer_code?: string | null;
3789
+ customer_exact_id?: string | null;
3790
+ customer_name?: string | null;
3791
+ description?: string | null;
3792
+ division_code?: number | null;
3793
+ due_date?: string | null;
3794
+ environment: Database["public"]["Enums"]["exact_env"];
3795
+ exact_id: string;
3796
+ exact_modified?: string | null;
3797
+ exact_timestamp?: number | null;
3798
+ id?: string;
3799
+ invoice_date?: string | null;
3800
+ invoice_number?: string | null;
3801
+ order_number?: string | null;
3802
+ paid_at?: string | null;
3803
+ payment_status?: string;
3804
+ raw?: import("./types.js").Json | null;
3805
+ receivable_synced_at?: string | null;
3806
+ status_code?: number | null;
3807
+ updated_at?: string;
3808
+ };
3809
+ Update: {
3810
+ account_key?: string;
3811
+ amount_excl?: number | null;
3812
+ amount_incl?: number | null;
3813
+ amount_open?: number | null;
3814
+ created_at?: string;
3815
+ currency?: string | null;
3816
+ customer_code?: string | null;
3817
+ customer_exact_id?: string | null;
3818
+ customer_name?: string | null;
3819
+ description?: string | null;
3820
+ division_code?: number | null;
3821
+ due_date?: string | null;
3822
+ environment?: Database["public"]["Enums"]["exact_env"];
3823
+ exact_id?: string;
3824
+ exact_modified?: string | null;
3825
+ exact_timestamp?: number | null;
3826
+ id?: string;
3827
+ invoice_date?: string | null;
3828
+ invoice_number?: string | null;
3829
+ order_number?: string | null;
3830
+ paid_at?: string | null;
3831
+ payment_status?: string;
3832
+ raw?: import("./types.js").Json | null;
3833
+ receivable_synced_at?: string | null;
3834
+ status_code?: number | null;
3835
+ updated_at?: string;
3836
+ };
3837
+ Relationships: [];
3838
+ };
3839
+ exact_auth_items: {
3840
+ Row: {
3841
+ account_key: string;
3842
+ barcode: string | null;
3843
+ code: string | null;
3844
+ cost_price: number | null;
3845
+ created_at: string;
3846
+ description: string | null;
3847
+ division_code: number | null;
3848
+ environment: Database["public"]["Enums"]["exact_env"];
3849
+ exact_id: string;
3850
+ exact_modified: string | null;
3851
+ exact_timestamp: number | null;
3852
+ gl_account_code: string | null;
3853
+ id: string;
3854
+ is_active: boolean;
3855
+ is_sales_item: boolean | null;
3856
+ item_type: string | null;
3857
+ raw: import("./types.js").Json | null;
3858
+ sales_price: number | null;
3859
+ unit: string | null;
3860
+ updated_at: string;
3861
+ vat_code: string | null;
3862
+ };
3863
+ Insert: {
3864
+ account_key?: string;
3865
+ barcode?: string | null;
3866
+ code?: string | null;
3867
+ cost_price?: number | null;
3868
+ created_at?: string;
3869
+ description?: string | null;
3870
+ division_code?: number | null;
3871
+ environment: Database["public"]["Enums"]["exact_env"];
3872
+ exact_id: string;
3873
+ exact_modified?: string | null;
3874
+ exact_timestamp?: number | null;
3875
+ gl_account_code?: string | null;
3876
+ id?: string;
3877
+ is_active?: boolean;
3878
+ is_sales_item?: boolean | null;
3879
+ item_type?: string | null;
3880
+ raw?: import("./types.js").Json | null;
3881
+ sales_price?: number | null;
3882
+ unit?: string | null;
3883
+ updated_at?: string;
3884
+ vat_code?: string | null;
3885
+ };
3886
+ Update: {
3887
+ account_key?: string;
3888
+ barcode?: string | null;
3889
+ code?: string | null;
3890
+ cost_price?: number | null;
3891
+ created_at?: string;
3892
+ description?: string | null;
3893
+ division_code?: number | null;
3894
+ environment?: Database["public"]["Enums"]["exact_env"];
3895
+ exact_id?: string;
3896
+ exact_modified?: string | null;
3897
+ exact_timestamp?: number | null;
3898
+ gl_account_code?: string | null;
3899
+ id?: string;
3900
+ is_active?: boolean;
3901
+ is_sales_item?: boolean | null;
3902
+ item_type?: string | null;
3903
+ raw?: import("./types.js").Json | null;
3904
+ sales_price?: number | null;
3905
+ unit?: string | null;
3906
+ updated_at?: string;
3907
+ vat_code?: string | null;
3908
+ };
3909
+ Relationships: [];
3910
+ };
3911
+ exact_auth_sync_log: {
3912
+ Row: {
3913
+ account_key: string;
3914
+ calls_used: number;
3915
+ created_at: string;
3916
+ domain: string;
3917
+ environment: Database["public"]["Enums"]["exact_env"];
3918
+ error: string | null;
3919
+ finished_at: string | null;
3920
+ id: string;
3921
+ ok: boolean;
3922
+ records: number;
3923
+ started_at: string;
3924
+ };
3925
+ Insert: {
3926
+ account_key?: string;
3927
+ calls_used?: number;
3928
+ created_at?: string;
3929
+ domain: string;
3930
+ environment: Database["public"]["Enums"]["exact_env"];
3931
+ error?: string | null;
3932
+ finished_at?: string | null;
3933
+ id?: string;
3934
+ ok?: boolean;
3935
+ records?: number;
3936
+ started_at?: string;
3937
+ };
3938
+ Update: {
3939
+ account_key?: string;
3940
+ calls_used?: number;
3941
+ created_at?: string;
3942
+ domain?: string;
3943
+ environment?: Database["public"]["Enums"]["exact_env"];
3944
+ error?: string | null;
3945
+ finished_at?: string | null;
3946
+ id?: string;
3947
+ ok?: boolean;
3948
+ records?: number;
3949
+ started_at?: string;
3950
+ };
3951
+ Relationships: [];
3952
+ };
3953
+ exact_auth_sync_state: {
3954
+ Row: {
3955
+ account_key: string;
3956
+ created_at: string;
3957
+ cursor_timestamp: number;
3958
+ division_code: number | null;
3959
+ domain: string;
3960
+ duration_ms: number | null;
3961
+ environment: Database["public"]["Enums"]["exact_env"];
3962
+ initial_sync_done: boolean;
3963
+ last_error: string | null;
3964
+ last_run_at: string | null;
3965
+ last_success_at: string | null;
3966
+ locked_at: string | null;
3967
+ needs_initial_sync: boolean;
3968
+ record_count: number;
3969
+ updated_at: string;
3970
+ };
3971
+ Insert: {
3972
+ account_key?: string;
3973
+ created_at?: string;
3974
+ cursor_timestamp?: number;
3975
+ division_code?: number | null;
3976
+ domain: string;
3977
+ duration_ms?: number | null;
3978
+ environment: Database["public"]["Enums"]["exact_env"];
3979
+ initial_sync_done?: boolean;
3980
+ last_error?: string | null;
3981
+ last_run_at?: string | null;
3982
+ last_success_at?: string | null;
3983
+ locked_at?: string | null;
3984
+ needs_initial_sync?: boolean;
3985
+ record_count?: number;
3986
+ updated_at?: string;
3987
+ };
3988
+ Update: {
3989
+ account_key?: string;
3990
+ created_at?: string;
3991
+ cursor_timestamp?: number;
3992
+ division_code?: number | null;
3993
+ domain?: string;
3994
+ duration_ms?: number | null;
3995
+ environment?: Database["public"]["Enums"]["exact_env"];
3996
+ initial_sync_done?: boolean;
3997
+ last_error?: string | null;
3998
+ last_run_at?: string | null;
3999
+ last_success_at?: string | null;
4000
+ locked_at?: string | null;
4001
+ needs_initial_sync?: boolean;
4002
+ record_count?: number;
4003
+ updated_at?: string;
4004
+ };
4005
+ Relationships: [];
4006
+ };
3548
4007
  exact_bulk_operation_items: {
3549
4008
  Row: {
3550
4009
  attempts: number;
@@ -5236,12 +5695,17 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
5236
5695
  attempts: number;
5237
5696
  connection_id: string;
5238
5697
  created_at: string;
5698
+ desired_available: boolean | null;
5239
5699
  gateway_attempt_id: string | null;
5240
5700
  id: string;
5241
5701
  last_error: string | null;
5702
+ locked_at: string | null;
5703
+ locked_by: string | null;
5704
+ next_attempt_at: string;
5242
5705
  number_of_pieces: number;
5243
5706
  sent_at: string | null;
5244
5707
  status: string;
5708
+ superseded_by: string | null;
5245
5709
  trade_item_id: string;
5246
5710
  updated_at: string;
5247
5711
  user_id: string;
@@ -5250,12 +5714,17 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
5250
5714
  attempts?: number;
5251
5715
  connection_id: string;
5252
5716
  created_at?: string;
5717
+ desired_available?: boolean | null;
5253
5718
  gateway_attempt_id?: string | null;
5254
5719
  id?: string;
5255
5720
  last_error?: string | null;
5721
+ locked_at?: string | null;
5722
+ locked_by?: string | null;
5723
+ next_attempt_at?: string;
5256
5724
  number_of_pieces?: number;
5257
5725
  sent_at?: string | null;
5258
5726
  status?: string;
5727
+ superseded_by?: string | null;
5259
5728
  trade_item_id: string;
5260
5729
  updated_at?: string;
5261
5730
  user_id: string;
@@ -5264,12 +5733,17 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
5264
5733
  attempts?: number;
5265
5734
  connection_id?: string;
5266
5735
  created_at?: string;
5736
+ desired_available?: boolean | null;
5267
5737
  gateway_attempt_id?: string | null;
5268
5738
  id?: string;
5269
5739
  last_error?: string | null;
5740
+ locked_at?: string | null;
5741
+ locked_by?: string | null;
5742
+ next_attempt_at?: string;
5270
5743
  number_of_pieces?: number;
5271
5744
  sent_at?: string | null;
5272
5745
  status?: string;
5746
+ superseded_by?: string | null;
5273
5747
  trade_item_id?: string;
5274
5748
  updated_at?: string;
5275
5749
  user_id?: string;
@@ -6006,8 +6480,6 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
6006
6480
  Row: {
6007
6481
  buyer_organization_id: string | null;
6008
6482
  connection_id: string;
6009
- controlled_at: string | null;
6010
- controlled_by: string | null;
6011
6483
  created_at: string;
6012
6484
  data: import("./types.js").Json;
6013
6485
  floriday_id: string;
@@ -6019,8 +6491,6 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
6019
6491
  Insert: {
6020
6492
  buyer_organization_id?: string | null;
6021
6493
  connection_id: string;
6022
- controlled_at?: string | null;
6023
- controlled_by?: string | null;
6024
6494
  created_at?: string;
6025
6495
  data: import("./types.js").Json;
6026
6496
  floriday_id: string;
@@ -6032,8 +6502,6 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
6032
6502
  Update: {
6033
6503
  buyer_organization_id?: string | null;
6034
6504
  connection_id?: string;
6035
- controlled_at?: string | null;
6036
- controlled_by?: string | null;
6037
6505
  created_at?: string;
6038
6506
  data?: import("./types.js").Json;
6039
6507
  floriday_id?: string;
@@ -8635,6 +9103,8 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
8635
9103
  };
8636
9104
  logistics_tasks: {
8637
9105
  Row: {
9106
+ attempt_log: import("./types.js").Json;
9107
+ attempts: number;
8638
9108
  buffer_ref: string | null;
8639
9109
  claimed_at: string | null;
8640
9110
  claimed_by: string | null;
@@ -8644,6 +9114,8 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
8644
9114
  due_at: string | null;
8645
9115
  error: string | null;
8646
9116
  id: string;
9117
+ last_error: string | null;
9118
+ next_attempt_at: string | null;
8647
9119
  order_ref: string;
8648
9120
  owner_module: string;
8649
9121
  payload: import("./types.js").Json;
@@ -8664,6 +9136,8 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
8664
9136
  user_id: string;
8665
9137
  };
8666
9138
  Insert: {
9139
+ attempt_log?: import("./types.js").Json;
9140
+ attempts?: number;
8667
9141
  buffer_ref?: string | null;
8668
9142
  claimed_at?: string | null;
8669
9143
  claimed_by?: string | null;
@@ -8673,6 +9147,8 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
8673
9147
  due_at?: string | null;
8674
9148
  error?: string | null;
8675
9149
  id?: string;
9150
+ last_error?: string | null;
9151
+ next_attempt_at?: string | null;
8676
9152
  order_ref: string;
8677
9153
  owner_module: string;
8678
9154
  payload?: import("./types.js").Json;
@@ -8693,6 +9169,8 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
8693
9169
  user_id?: string;
8694
9170
  };
8695
9171
  Update: {
9172
+ attempt_log?: import("./types.js").Json;
9173
+ attempts?: number;
8696
9174
  buffer_ref?: string | null;
8697
9175
  claimed_at?: string | null;
8698
9176
  claimed_by?: string | null;
@@ -8702,6 +9180,8 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
8702
9180
  due_at?: string | null;
8703
9181
  error?: string | null;
8704
9182
  id?: string;
9183
+ last_error?: string | null;
9184
+ next_attempt_at?: string | null;
8705
9185
  order_ref?: string;
8706
9186
  owner_module?: string;
8707
9187
  payload?: import("./types.js").Json;
@@ -9274,60 +9754,39 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
9274
9754
  };
9275
9755
  manufacture_products: {
9276
9756
  Row: {
9277
- aantal_te_produceren: number;
9278
9757
  created_at: string;
9279
9758
  description: string | null;
9280
9759
  id: string;
9281
9760
  is_active: boolean;
9282
- location_id: string | null;
9283
9761
  name: string;
9284
- partij_nummer: string | null;
9285
- photos: import("./types.js").Json;
9286
9762
  produced_stock: number;
9287
9763
  product_code: string;
9288
9764
  tenant_id: string;
9289
- unit: string;
9290
9765
  updated_at: string;
9291
9766
  };
9292
9767
  Insert: {
9293
- aantal_te_produceren?: number;
9294
9768
  created_at?: string;
9295
9769
  description?: string | null;
9296
9770
  id?: string;
9297
9771
  is_active?: boolean;
9298
- location_id?: string | null;
9299
9772
  name: string;
9300
- partij_nummer?: string | null;
9301
- photos?: import("./types.js").Json;
9302
9773
  produced_stock?: number;
9303
9774
  product_code: string;
9304
9775
  tenant_id: string;
9305
- unit?: string;
9306
9776
  updated_at?: string;
9307
9777
  };
9308
9778
  Update: {
9309
- aantal_te_produceren?: number;
9310
9779
  created_at?: string;
9311
9780
  description?: string | null;
9312
9781
  id?: string;
9313
9782
  is_active?: boolean;
9314
- location_id?: string | null;
9315
9783
  name?: string;
9316
- partij_nummer?: string | null;
9317
- photos?: import("./types.js").Json;
9318
9784
  produced_stock?: number;
9319
9785
  product_code?: string;
9320
9786
  tenant_id?: string;
9321
- unit?: string;
9322
9787
  updated_at?: string;
9323
9788
  };
9324
- Relationships: [{
9325
- foreignKeyName: "manufacture_products_location_id_fkey";
9326
- columns: ["location_id"];
9327
- isOneToOne: false;
9328
- referencedRelation: "locations";
9329
- referencedColumns: ["id"];
9330
- }];
9789
+ Relationships: [];
9331
9790
  };
9332
9791
  module_permissions: {
9333
9792
  Row: {
@@ -10072,6 +10531,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
10072
10531
  };
10073
10532
  offer_settings: {
10074
10533
  Row: {
10534
+ brand_name: string | null;
10075
10535
  button_color: string;
10076
10536
  created_at: string;
10077
10537
  default_countries: string[];
@@ -10093,6 +10553,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
10093
10553
  updated_at: string;
10094
10554
  };
10095
10555
  Insert: {
10556
+ brand_name?: string | null;
10096
10557
  button_color?: string;
10097
10558
  created_at?: string;
10098
10559
  default_countries?: string[];
@@ -10114,6 +10575,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
10114
10575
  updated_at?: string;
10115
10576
  };
10116
10577
  Update: {
10578
+ brand_name?: string | null;
10117
10579
  button_color?: string;
10118
10580
  created_at?: string;
10119
10581
  default_countries?: string[];
@@ -12532,8 +12994,6 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
12532
12994
  crates_per_layer: number;
12533
12995
  created_at: string;
12534
12996
  custom_fields: import("./types.js").Json;
12535
- floriday_active: boolean;
12536
- floriday_payload: import("./types.js").Json;
12537
12997
  floriday_trade_item_id: string | null;
12538
12998
  id: string;
12539
12999
  image_url: string | null;
@@ -12551,8 +13011,6 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
12551
13011
  trade_item_key: string | null;
12552
13012
  unit: string;
12553
13013
  updated_at: string;
12554
- vat_code: string | null;
12555
- vat_rate: number | null;
12556
13014
  weight: string | null;
12557
13015
  };
12558
13016
  Insert: {
@@ -12562,8 +13020,6 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
12562
13020
  crates_per_layer?: number;
12563
13021
  created_at?: string;
12564
13022
  custom_fields?: import("./types.js").Json;
12565
- floriday_active?: boolean;
12566
- floriday_payload?: import("./types.js").Json;
12567
13023
  floriday_trade_item_id?: string | null;
12568
13024
  id?: string;
12569
13025
  image_url?: string | null;
@@ -12581,8 +13037,6 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
12581
13037
  trade_item_key?: string | null;
12582
13038
  unit?: string;
12583
13039
  updated_at?: string;
12584
- vat_code?: string | null;
12585
- vat_rate?: number | null;
12586
13040
  weight?: string | null;
12587
13041
  };
12588
13042
  Update: {
@@ -12592,8 +13046,6 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
12592
13046
  crates_per_layer?: number;
12593
13047
  created_at?: string;
12594
13048
  custom_fields?: import("./types.js").Json;
12595
- floriday_active?: boolean;
12596
- floriday_payload?: import("./types.js").Json;
12597
13049
  floriday_trade_item_id?: string | null;
12598
13050
  id?: string;
12599
13051
  image_url?: string | null;
@@ -12611,8 +13063,6 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
12611
13063
  trade_item_key?: string | null;
12612
13064
  unit?: string;
12613
13065
  updated_at?: string;
12614
- vat_code?: string | null;
12615
- vat_rate?: number | null;
12616
13066
  weight?: string | null;
12617
13067
  };
12618
13068
  Relationships: [];
@@ -13845,7 +14295,6 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
13845
14295
  order_id: string | null;
13846
14296
  order_item_id: string | null;
13847
14297
  order_source: string | null;
13848
- parent_trade_item_key: string | null;
13849
14298
  physical_after: number | null;
13850
14299
  physical_before: number | null;
13851
14300
  production_batch_id: string | null;
@@ -13864,7 +14313,6 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
13864
14313
  order_id?: string | null;
13865
14314
  order_item_id?: string | null;
13866
14315
  order_source?: string | null;
13867
- parent_trade_item_key?: string | null;
13868
14316
  physical_after?: number | null;
13869
14317
  physical_before?: number | null;
13870
14318
  production_batch_id?: string | null;
@@ -13883,7 +14331,6 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
13883
14331
  order_id?: string | null;
13884
14332
  order_item_id?: string | null;
13885
14333
  order_source?: string | null;
13886
- parent_trade_item_key?: string | null;
13887
14334
  physical_after?: number | null;
13888
14335
  physical_before?: number | null;
13889
14336
  production_batch_id?: string | null;
@@ -14449,10 +14896,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
14449
14896
  };
14450
14897
  twinfield_connections: {
14451
14898
  Row: {
14452
- access_token: string | null;
14453
- account_key: string | null;
14454
- client_id: string | null;
14455
- client_secret: string | null;
14899
+ account_key: string | null;
14456
14900
  cluster_uri: string | null;
14457
14901
  company_code: string | null;
14458
14902
  company_name: string | null;
@@ -14464,16 +14908,11 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
14464
14908
  label: string | null;
14465
14909
  office_code: string | null;
14466
14910
  redirect_uri: string | null;
14467
- refresh_token: string | null;
14468
- token_expires_at: string | null;
14469
14911
  updated_at: string;
14470
14912
  user_id: string;
14471
14913
  };
14472
14914
  Insert: {
14473
- access_token?: string | null;
14474
14915
  account_key?: string | null;
14475
- client_id?: string | null;
14476
- client_secret?: string | null;
14477
14916
  cluster_uri?: string | null;
14478
14917
  company_code?: string | null;
14479
14918
  company_name?: string | null;
@@ -14485,16 +14924,11 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
14485
14924
  label?: string | null;
14486
14925
  office_code?: string | null;
14487
14926
  redirect_uri?: string | null;
14488
- refresh_token?: string | null;
14489
- token_expires_at?: string | null;
14490
14927
  updated_at?: string;
14491
14928
  user_id: string;
14492
14929
  };
14493
14930
  Update: {
14494
- access_token?: string | null;
14495
14931
  account_key?: string | null;
14496
- client_id?: string | null;
14497
- client_secret?: string | null;
14498
14932
  cluster_uri?: string | null;
14499
14933
  company_code?: string | null;
14500
14934
  company_name?: string | null;
@@ -14506,53 +14940,6 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
14506
14940
  label?: string | null;
14507
14941
  office_code?: string | null;
14508
14942
  redirect_uri?: string | null;
14509
- refresh_token?: string | null;
14510
- token_expires_at?: string | null;
14511
- updated_at?: string;
14512
- user_id?: string;
14513
- };
14514
- Relationships: [];
14515
- };
14516
- twinfield_credentials: {
14517
- Row: {
14518
- administration_code: string | null;
14519
- client_id: string | null;
14520
- client_secret: string | null;
14521
- cluster: string | null;
14522
- connected_at: string | null;
14523
- created_at: string;
14524
- environment: string | null;
14525
- id: string;
14526
- redirect_uri: string | null;
14527
- refresh_token: string | null;
14528
- updated_at: string;
14529
- user_id: string;
14530
- };
14531
- Insert: {
14532
- administration_code?: string | null;
14533
- client_id?: string | null;
14534
- client_secret?: string | null;
14535
- cluster?: string | null;
14536
- connected_at?: string | null;
14537
- created_at?: string;
14538
- environment?: string | null;
14539
- id?: string;
14540
- redirect_uri?: string | null;
14541
- refresh_token?: string | null;
14542
- updated_at?: string;
14543
- user_id: string;
14544
- };
14545
- Update: {
14546
- administration_code?: string | null;
14547
- client_id?: string | null;
14548
- client_secret?: string | null;
14549
- cluster?: string | null;
14550
- connected_at?: string | null;
14551
- created_at?: string;
14552
- environment?: string | null;
14553
- id?: string;
14554
- redirect_uri?: string | null;
14555
- refresh_token?: string | null;
14556
14943
  updated_at?: string;
14557
14944
  user_id?: string;
14558
14945
  };
@@ -15128,30 +15515,6 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
15128
15515
  };
15129
15516
  Relationships: [];
15130
15517
  };
15131
- twinfield_oauth_state: {
15132
- Row: {
15133
- created_at: string;
15134
- environment: string;
15135
- nonce: string | null;
15136
- state: string;
15137
- user_id: string;
15138
- };
15139
- Insert: {
15140
- created_at?: string;
15141
- environment: string;
15142
- nonce?: string | null;
15143
- state: string;
15144
- user_id: string;
15145
- };
15146
- Update: {
15147
- created_at?: string;
15148
- environment?: string;
15149
- nonce?: string | null;
15150
- state?: string;
15151
- user_id?: string;
15152
- };
15153
- Relationships: [];
15154
- };
15155
15518
  twinfield_push_log: {
15156
15519
  Row: {
15157
15520
  created_at: string;
@@ -15195,7 +15558,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
15195
15558
  Row: {
15196
15559
  action: string;
15197
15560
  attempts: number;
15198
- connection_id: string;
15561
+ connection_id: string | null;
15199
15562
  created_at: string;
15200
15563
  customer_id: string | null;
15201
15564
  external_id: string | null;
@@ -15203,7 +15566,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
15203
15566
  idempotency_key: string;
15204
15567
  last_error: string | null;
15205
15568
  next_attempt_at: string;
15206
- office_code: string;
15569
+ office_code: string | null;
15207
15570
  payload: import("./types.js").Json;
15208
15571
  status: string;
15209
15572
  updated_at: string;
@@ -15211,7 +15574,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
15211
15574
  Insert: {
15212
15575
  action?: string;
15213
15576
  attempts?: number;
15214
- connection_id: string;
15577
+ connection_id?: string | null;
15215
15578
  created_at?: string;
15216
15579
  customer_id?: string | null;
15217
15580
  external_id?: string | null;
@@ -15219,7 +15582,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
15219
15582
  idempotency_key: string;
15220
15583
  last_error?: string | null;
15221
15584
  next_attempt_at?: string;
15222
- office_code: string;
15585
+ office_code?: string | null;
15223
15586
  payload: import("./types.js").Json;
15224
15587
  status?: string;
15225
15588
  updated_at?: string;
@@ -15227,7 +15590,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
15227
15590
  Update: {
15228
15591
  action?: string;
15229
15592
  attempts?: number;
15230
- connection_id?: string;
15593
+ connection_id?: string | null;
15231
15594
  created_at?: string;
15232
15595
  customer_id?: string | null;
15233
15596
  external_id?: string | null;
@@ -15235,7 +15598,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
15235
15598
  idempotency_key?: string;
15236
15599
  last_error?: string | null;
15237
15600
  next_attempt_at?: string;
15238
- office_code?: string;
15601
+ office_code?: string | null;
15239
15602
  payload?: import("./types.js").Json;
15240
15603
  status?: string;
15241
15604
  updated_at?: string;
@@ -15377,39 +15740,6 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
15377
15740
  referencedColumns: ["id"];
15378
15741
  }];
15379
15742
  };
15380
- twinfield_token_refresh_log: {
15381
- Row: {
15382
- attempted_at: string;
15383
- connection_id: string;
15384
- error: string | null;
15385
- expires_at: string | null;
15386
- id: string;
15387
- ok: boolean;
15388
- };
15389
- Insert: {
15390
- attempted_at?: string;
15391
- connection_id: string;
15392
- error?: string | null;
15393
- expires_at?: string | null;
15394
- id?: string;
15395
- ok: boolean;
15396
- };
15397
- Update: {
15398
- attempted_at?: string;
15399
- connection_id?: string;
15400
- error?: string | null;
15401
- expires_at?: string | null;
15402
- id?: string;
15403
- ok?: boolean;
15404
- };
15405
- Relationships: [{
15406
- foreignKeyName: "twinfield_token_refresh_log_connection_id_fkey";
15407
- columns: ["connection_id"];
15408
- isOneToOne: false;
15409
- referencedRelation: "twinfield_connections";
15410
- referencedColumns: ["id"];
15411
- }];
15412
- };
15413
15743
  uren_cao_profiles: {
15414
15744
  Row: {
15415
15745
  break_minutes: number | null;
@@ -17856,6 +18186,85 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
17856
18186
  };
17857
18187
  Returns: import("./types.js").Json;
17858
18188
  };
18189
+ claim_floriday_stock_queue: {
18190
+ Args: {
18191
+ p_limit?: number;
18192
+ p_worker?: string;
18193
+ };
18194
+ Returns: {
18195
+ attempts: number;
18196
+ connection_id: string;
18197
+ created_at: string;
18198
+ desired_available: boolean | null;
18199
+ gateway_attempt_id: string | null;
18200
+ id: string;
18201
+ last_error: string | null;
18202
+ locked_at: string | null;
18203
+ locked_by: string | null;
18204
+ next_attempt_at: string;
18205
+ number_of_pieces: number;
18206
+ sent_at: string | null;
18207
+ status: string;
18208
+ superseded_by: string | null;
18209
+ trade_item_id: string;
18210
+ updated_at: string;
18211
+ user_id: string;
18212
+ }[];
18213
+ SetofOptions: {
18214
+ from: "*";
18215
+ to: "floriday_continuous_stock_queue";
18216
+ isOneToOne: false;
18217
+ isSetofReturn: true;
18218
+ };
18219
+ };
18220
+ claim_logistics_tasks: {
18221
+ Args: {
18222
+ _limit?: number;
18223
+ _owner_module: string;
18224
+ _stale_minutes?: number;
18225
+ _task_type: string;
18226
+ _worker: string;
18227
+ };
18228
+ Returns: {
18229
+ attempt_log: import("./types.js").Json;
18230
+ attempts: number;
18231
+ buffer_ref: string | null;
18232
+ claimed_at: string | null;
18233
+ claimed_by: string | null;
18234
+ completed_at: string | null;
18235
+ created_at: string;
18236
+ depends_on: string[];
18237
+ due_at: string | null;
18238
+ error: string | null;
18239
+ id: string;
18240
+ last_error: string | null;
18241
+ next_attempt_at: string | null;
18242
+ order_ref: string;
18243
+ owner_module: string;
18244
+ payload: import("./types.js").Json;
18245
+ plan_run_id: string | null;
18246
+ planned_end: string | null;
18247
+ planned_start: string | null;
18248
+ priority: number;
18249
+ result: import("./types.js").Json | null;
18250
+ rule_config_id: string | null;
18251
+ rule_version: number | null;
18252
+ sequence: number;
18253
+ shadow: boolean;
18254
+ started_at: string | null;
18255
+ status: string;
18256
+ strategy_id: string | null;
18257
+ task_type: string;
18258
+ updated_at: string;
18259
+ user_id: string;
18260
+ }[];
18261
+ SetofOptions: {
18262
+ from: "*";
18263
+ to: "logistics_tasks";
18264
+ isOneToOne: false;
18265
+ isSetofReturn: true;
18266
+ };
18267
+ };
17859
18268
  claim_print_jobs: {
17860
18269
  Args: {
17861
18270
  _agent_id: string;
@@ -17893,32 +18302,6 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
17893
18302
  };
17894
18303
  };
17895
18304
  claim_twinfield_push_batch: {
17896
- Args: {
17897
- _limit?: number;
17898
- };
17899
- Returns: {
17900
- action: string;
17901
- attempts: number;
17902
- connection_id: string;
17903
- created_at: string;
17904
- customer_id: string | null;
17905
- external_id: string | null;
17906
- id: string;
17907
- idempotency_key: string;
17908
- last_error: string | null;
17909
- next_attempt_at: string;
17910
- office_code: string;
17911
- payload: import("./types.js").Json;
17912
- status: string;
17913
- updated_at: string;
17914
- }[];
17915
- SetofOptions: {
17916
- from: "*";
17917
- to: "twinfield_push_queue";
17918
- isOneToOne: false;
17919
- isSetofReturn: true;
17920
- };
17921
- } | {
17922
18305
  Args: {
17923
18306
  _customer_id?: string;
17924
18307
  _limit?: number;
@@ -17926,7 +18309,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
17926
18309
  Returns: {
17927
18310
  action: string;
17928
18311
  attempts: number;
17929
- connection_id: string;
18312
+ connection_id: string | null;
17930
18313
  created_at: string;
17931
18314
  customer_id: string | null;
17932
18315
  external_id: string | null;
@@ -17934,7 +18317,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
17934
18317
  idempotency_key: string;
17935
18318
  last_error: string | null;
17936
18319
  next_attempt_at: string;
17937
- office_code: string;
18320
+ office_code: string | null;
17938
18321
  payload: import("./types.js").Json;
17939
18322
  status: string;
17940
18323
  updated_at: string;
@@ -17946,10 +18329,24 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
17946
18329
  isSetofReturn: true;
17947
18330
  };
17948
18331
  };
18332
+ cleanup_floriday_stock_queue: {
18333
+ Args: never;
18334
+ Returns: undefined;
18335
+ };
17949
18336
  cleanup_old_bookings: {
17950
18337
  Args: never;
17951
18338
  Returns: undefined;
17952
18339
  };
18340
+ complete_floriday_stock_queue: {
18341
+ Args: {
18342
+ p_attempt_id?: string;
18343
+ p_error?: string;
18344
+ p_id: string;
18345
+ p_ok: boolean;
18346
+ p_permanent?: boolean;
18347
+ };
18348
+ Returns: undefined;
18349
+ };
17953
18350
  consume_bom_for_production: {
17954
18351
  Args: {
17955
18352
  p_connection_id: string;
@@ -18122,6 +18519,21 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
18122
18519
  Args: never;
18123
18520
  Returns: string;
18124
18521
  };
18522
+ exact_auth_consume_calls: {
18523
+ Args: {
18524
+ _account_key: string;
18525
+ _calls?: number;
18526
+ _day_limit?: number;
18527
+ _division_code: number;
18528
+ _environment: string;
18529
+ _minute_limit?: number;
18530
+ };
18531
+ Returns: import("./types.js").Json;
18532
+ };
18533
+ exact_auth_prune_sync_log: {
18534
+ Args: never;
18535
+ Returns: undefined;
18536
+ };
18125
18537
  exact_decrypt: {
18126
18538
  Args: {
18127
18539
  cipher: string;
@@ -18331,6 +18743,10 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
18331
18743
  };
18332
18744
  Returns: number;
18333
18745
  };
18746
+ get_offer_branding: {
18747
+ Args: never;
18748
+ Returns: import("./types.js").Json;
18749
+ };
18334
18750
  get_offer_by_link_code: {
18335
18751
  Args: {
18336
18752
  p_code: string;
@@ -18622,6 +19038,8 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
18622
19038
  p_worker?: string;
18623
19039
  };
18624
19040
  Returns: {
19041
+ attempt_log: import("./types.js").Json;
19042
+ attempts: number;
18625
19043
  buffer_ref: string | null;
18626
19044
  claimed_at: string | null;
18627
19045
  claimed_by: string | null;
@@ -18631,6 +19049,8 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
18631
19049
  due_at: string | null;
18632
19050
  error: string | null;
18633
19051
  id: string;
19052
+ last_error: string | null;
19053
+ next_attempt_at: string | null;
18634
19054
  order_ref: string;
18635
19055
  owner_module: string;
18636
19056
  payload: import("./types.js").Json;
@@ -18663,6 +19083,8 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
18663
19083
  p_worker?: string;
18664
19084
  };
18665
19085
  Returns: {
19086
+ attempt_log: import("./types.js").Json;
19087
+ attempts: number;
18666
19088
  buffer_ref: string | null;
18667
19089
  claimed_at: string | null;
18668
19090
  claimed_by: string | null;
@@ -18672,6 +19094,8 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
18672
19094
  due_at: string | null;
18673
19095
  error: string | null;
18674
19096
  id: string;
19097
+ last_error: string | null;
19098
+ next_attempt_at: string | null;
18675
19099
  order_ref: string;
18676
19100
  owner_module: string;
18677
19101
  payload: import("./types.js").Json;
@@ -18704,6 +19128,8 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
18704
19128
  p_task_id: string;
18705
19129
  };
18706
19130
  Returns: {
19131
+ attempt_log: import("./types.js").Json;
19132
+ attempts: number;
18707
19133
  buffer_ref: string | null;
18708
19134
  claimed_at: string | null;
18709
19135
  claimed_by: string | null;
@@ -18713,6 +19139,8 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
18713
19139
  due_at: string | null;
18714
19140
  error: string | null;
18715
19141
  id: string;
19142
+ last_error: string | null;
19143
+ next_attempt_at: string | null;
18716
19144
  order_ref: string;
18717
19145
  owner_module: string;
18718
19146
  payload: import("./types.js").Json;
@@ -18794,6 +19222,8 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
18794
19222
  p_task_id: string;
18795
19223
  };
18796
19224
  Returns: {
19225
+ attempt_log: import("./types.js").Json;
19226
+ attempts: number;
18797
19227
  buffer_ref: string | null;
18798
19228
  claimed_at: string | null;
18799
19229
  claimed_by: string | null;
@@ -18803,6 +19233,8 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
18803
19233
  due_at: string | null;
18804
19234
  error: string | null;
18805
19235
  id: string;
19236
+ last_error: string | null;
19237
+ next_attempt_at: string | null;
18806
19238
  order_ref: string;
18807
19239
  owner_module: string;
18808
19240
  payload: import("./types.js").Json;
@@ -19556,6 +19988,10 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
19556
19988
  Args: never;
19557
19989
  Returns: undefined;
19558
19990
  };
19991
+ run_logistics_tasks_dispatch: {
19992
+ Args: never;
19993
+ Returns: undefined;
19994
+ };
19559
19995
  run_twinfield_queue_tick: {
19560
19996
  Args: never;
19561
19997
  Returns: undefined;
@@ -19796,6 +20232,13 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
19796
20232
  };
19797
20233
  Returns: number;
19798
20234
  };
20235
+ schedule_floriday_stock_queue_process: {
20236
+ Args: {
20237
+ p_apikey: string;
20238
+ p_url: string;
20239
+ };
20240
+ Returns: number;
20241
+ };
19799
20242
  schedule_floriday_token_refresh: {
19800
20243
  Args: {
19801
20244
  p_apikey: string;
@@ -19943,18 +20386,6 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
19943
20386
  };
19944
20387
  Returns: boolean;
19945
20388
  };
19946
- twinfield_decrypt: {
19947
- Args: {
19948
- cipher: string;
19949
- };
19950
- Returns: string;
19951
- };
19952
- twinfield_encrypt: {
19953
- Args: {
19954
- plain: string;
19955
- };
19956
- Returns: string;
19957
- };
19958
20389
  twinfield_register_cron: {
19959
20390
  Args: {
19960
20391
  apikey?: string;
@@ -19997,7 +20428,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
19997
20428
  };
19998
20429
  Enums: {
19999
20430
  ai_import_status: "nieuw" | "verwerken" | "bevestigen" | "klaar" | "mislukt";
20000
- app_role: "admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie" | "monteur" | "planner" | "administratie" | "ai_admin";
20431
+ app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin";
20001
20432
  doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon";
20002
20433
  doc_orientation: "portrait" | "landscape";
20003
20434
  exact_env: "staging" | "live";