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