@flowselections/floriday-afhandeling-module 1.0.73 → 1.0.78

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/afhandeling/ControleLijstPrint.d.ts.map +1 -1
  2. package/dist-lib/components/afhandeling/ControleLijstPrint.js +5 -2
  3. package/dist-lib/components/afhandeling/ControlePage.d.ts.map +1 -1
  4. package/dist-lib/components/afhandeling/ControlePage.js +17 -6
  5. package/dist-lib/components/afhandeling/DeliveryLocationPicker.d.ts +6 -0
  6. package/dist-lib/components/afhandeling/DeliveryLocationPicker.d.ts.map +1 -0
  7. package/dist-lib/components/afhandeling/DeliveryLocationPicker.js +29 -0
  8. package/dist-lib/components/afhandeling/SignupAutoSendBlock.d.ts +5 -0
  9. package/dist-lib/components/afhandeling/SignupAutoSendBlock.d.ts.map +1 -0
  10. package/dist-lib/components/afhandeling/SignupAutoSendBlock.js +37 -0
  11. package/dist-lib/components/afhandeling/VervoerderForm.d.ts.map +1 -1
  12. package/dist-lib/components/afhandeling/VervoerderForm.js +15 -4
  13. package/dist-lib/components/afhandeling/VervoerdersPage.d.ts.map +1 -1
  14. package/dist-lib/components/afhandeling/VervoerdersPage.js +24 -4
  15. package/dist-lib/components/settings/AfhandelingSettingsCard.d.ts.map +1 -1
  16. package/dist-lib/components/settings/AfhandelingSettingsCard.js +2 -1
  17. package/dist-lib/components/settings/VervoerdersSettingsCard.js +4 -4
  18. package/dist-lib/integrations/supabase/previewAuthStorage.d.ts +11 -5
  19. package/dist-lib/integrations/supabase/previewAuthStorage.d.ts.map +1 -1
  20. package/dist-lib/integrations/supabase/previewAuthStorage.js +38 -21
  21. package/dist-lib/integrations/supabase/types.d.ts +1660 -40
  22. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  23. package/dist-lib/lib/carrierReadiness.d.ts +26 -0
  24. package/dist-lib/lib/carrierReadiness.d.ts.map +1 -0
  25. package/dist-lib/lib/carrierReadiness.js +32 -0
  26. package/dist-lib/lib/carrierSignup.functions.d.ts +57 -0
  27. package/dist-lib/lib/carrierSignup.functions.d.ts.map +1 -1
  28. package/dist-lib/lib/carrierSignup.functions.js +43 -0
  29. package/dist-lib/lib/carriers.functions.d.ts +43 -1
  30. package/dist-lib/lib/carriers.functions.d.ts.map +1 -1
  31. package/dist-lib/lib/carriers.functions.js +80 -21
  32. package/dist-lib/lib/cartAssignments.functions.d.ts.map +1 -1
  33. package/dist-lib/lib/cartAssignments.functions.js +12 -11
  34. package/dist-lib/lib/cartControl.functions.d.ts.map +1 -1
  35. package/dist-lib/lib/cartControl.functions.js +17 -16
  36. package/dist-lib/lib/cartSeqFout.d.ts +11 -0
  37. package/dist-lib/lib/cartSeqFout.d.ts.map +1 -0
  38. package/dist-lib/lib/cartSeqFout.js +18 -0
  39. package/dist-lib/lib/controleLijst.functions.d.ts +26 -0
  40. package/dist-lib/lib/controleLijst.functions.d.ts.map +1 -0
  41. package/dist-lib/lib/controleLijst.functions.js +55 -0
  42. package/dist-lib/lib/controleLijstPayload.d.ts +32 -0
  43. package/dist-lib/lib/controleLijstPayload.d.ts.map +1 -0
  44. package/dist-lib/lib/controleLijstPayload.js +92 -0
  45. package/dist-lib/lib/controleLijstPayload.test.d.ts +2 -0
  46. package/dist-lib/lib/controleLijstPayload.test.d.ts.map +1 -0
  47. package/dist-lib/lib/controleLijstPayload.test.js +34 -0
  48. package/dist-lib/lib/floridayFulfilled.d.ts.map +1 -1
  49. package/dist-lib/lib/floridayFulfilled.js +2 -0
  50. package/dist-lib/lib/signupMailText.d.ts +2 -0
  51. package/dist-lib/lib/signupMailText.d.ts.map +1 -1
  52. package/dist-lib/lib/signupMailText.js +25 -0
  53. package/package.json +3 -2
  54. package/schema/90_afhandeling.sql +1591 -0
@@ -606,24 +606,36 @@ export type Database = {
606
606
  ai_modules: {
607
607
  Row: {
608
608
  ai_enabled: boolean;
609
+ ai_source: string;
609
610
  created_at: string;
611
+ declared_ai: boolean;
610
612
  id: string;
613
+ is_in_use: boolean;
614
+ last_declared_at: string | null;
611
615
  module_key: string;
612
616
  module_name: string;
613
617
  updated_at: string;
614
618
  };
615
619
  Insert: {
616
620
  ai_enabled?: boolean;
621
+ ai_source?: string;
617
622
  created_at?: string;
623
+ declared_ai?: boolean;
618
624
  id?: string;
625
+ is_in_use?: boolean;
626
+ last_declared_at?: string | null;
619
627
  module_key: string;
620
628
  module_name: string;
621
629
  updated_at?: string;
622
630
  };
623
631
  Update: {
624
632
  ai_enabled?: boolean;
633
+ ai_source?: string;
625
634
  created_at?: string;
635
+ declared_ai?: boolean;
626
636
  id?: string;
637
+ is_in_use?: boolean;
638
+ last_declared_at?: string | null;
627
639
  module_key?: string;
628
640
  module_name?: string;
629
641
  updated_at?: string;
@@ -1519,6 +1531,7 @@ export type Database = {
1519
1531
  cart_numbers: {
1520
1532
  Row: {
1521
1533
  assigned_at: string;
1534
+ cart_id: string | null;
1522
1535
  cart_index: number;
1523
1536
  cart_number: string;
1524
1537
  day_seq: number | null;
@@ -1532,6 +1545,7 @@ export type Database = {
1532
1545
  };
1533
1546
  Insert: {
1534
1547
  assigned_at?: string;
1548
+ cart_id?: string | null;
1535
1549
  cart_index: number;
1536
1550
  cart_number: string;
1537
1551
  day_seq?: number | null;
@@ -1545,6 +1559,7 @@ export type Database = {
1545
1559
  };
1546
1560
  Update: {
1547
1561
  assigned_at?: string;
1562
+ cart_id?: string | null;
1548
1563
  cart_index?: number;
1549
1564
  cart_number?: string;
1550
1565
  day_seq?: number | null;
@@ -2235,6 +2250,50 @@ export type Database = {
2235
2250
  }
2236
2251
  ];
2237
2252
  };
2253
+ customer_match_suggestions: {
2254
+ Row: {
2255
+ created_at: string;
2256
+ customer_id: string;
2257
+ decided_at: string | null;
2258
+ decided_by: string | null;
2259
+ floriday_organization_id: string;
2260
+ id: string;
2261
+ reason: string;
2262
+ status: string;
2263
+ updated_at: string;
2264
+ };
2265
+ Insert: {
2266
+ created_at?: string;
2267
+ customer_id: string;
2268
+ decided_at?: string | null;
2269
+ decided_by?: string | null;
2270
+ floriday_organization_id: string;
2271
+ id?: string;
2272
+ reason: string;
2273
+ status?: string;
2274
+ updated_at?: string;
2275
+ };
2276
+ Update: {
2277
+ created_at?: string;
2278
+ customer_id?: string;
2279
+ decided_at?: string | null;
2280
+ decided_by?: string | null;
2281
+ floriday_organization_id?: string;
2282
+ id?: string;
2283
+ reason?: string;
2284
+ status?: string;
2285
+ updated_at?: string;
2286
+ };
2287
+ Relationships: [
2288
+ {
2289
+ foreignKeyName: "customer_match_suggestions_customer_id_fkey";
2290
+ columns: ["customer_id"];
2291
+ isOneToOne: false;
2292
+ referencedRelation: "customers";
2293
+ referencedColumns: ["id"];
2294
+ }
2295
+ ];
2296
+ };
2238
2297
  customer_notes: {
2239
2298
  Row: {
2240
2299
  created_at: string;
@@ -2595,6 +2654,7 @@ export type Database = {
2595
2654
  custom_fields: Json;
2596
2655
  customer_class: string | null;
2597
2656
  customer_number: string | null;
2657
+ default_carrier_id: string | null;
2598
2658
  discount_days: number | null;
2599
2659
  discount_percentage: number | null;
2600
2660
  discount_surcharge: string;
@@ -2687,6 +2747,7 @@ export type Database = {
2687
2747
  custom_fields?: Json;
2688
2748
  customer_class?: string | null;
2689
2749
  customer_number?: string | null;
2750
+ default_carrier_id?: string | null;
2690
2751
  discount_days?: number | null;
2691
2752
  discount_percentage?: number | null;
2692
2753
  discount_surcharge?: string;
@@ -2779,6 +2840,7 @@ export type Database = {
2779
2840
  custom_fields?: Json;
2780
2841
  customer_class?: string | null;
2781
2842
  customer_number?: string | null;
2843
+ default_carrier_id?: string | null;
2782
2844
  discount_days?: number | null;
2783
2845
  discount_percentage?: number | null;
2784
2846
  discount_surcharge?: string;
@@ -2832,7 +2894,15 @@ export type Database = {
2832
2894
  vat_number?: string | null;
2833
2895
  website?: string | null;
2834
2896
  };
2835
- Relationships: [];
2897
+ Relationships: [
2898
+ {
2899
+ foreignKeyName: "customers_default_carrier_id_fkey";
2900
+ columns: ["default_carrier_id"];
2901
+ isOneToOne: false;
2902
+ referencedRelation: "carriers";
2903
+ referencedColumns: ["id"];
2904
+ }
2905
+ ];
2836
2906
  };
2837
2907
  dashboard_ai_conversations: {
2838
2908
  Row: {
@@ -3770,6 +3840,8 @@ export type Database = {
3770
3840
  orientatie: Database["public"]["Enums"]["doc_orientation"];
3771
3841
  page_settings: Json;
3772
3842
  papierformaat: string;
3843
+ standaard_sleutel: string | null;
3844
+ standaard_versie: number | null;
3773
3845
  systeem: boolean;
3774
3846
  thumbnail_url: string | null;
3775
3847
  updated_at: string;
@@ -3795,6 +3867,8 @@ export type Database = {
3795
3867
  orientatie?: Database["public"]["Enums"]["doc_orientation"];
3796
3868
  page_settings?: Json;
3797
3869
  papierformaat?: string;
3870
+ standaard_sleutel?: string | null;
3871
+ standaard_versie?: number | null;
3798
3872
  systeem?: boolean;
3799
3873
  thumbnail_url?: string | null;
3800
3874
  updated_at?: string;
@@ -3820,6 +3894,8 @@ export type Database = {
3820
3894
  orientatie?: Database["public"]["Enums"]["doc_orientation"];
3821
3895
  page_settings?: Json;
3822
3896
  papierformaat?: string;
3897
+ standaard_sleutel?: string | null;
3898
+ standaard_versie?: number | null;
3823
3899
  systeem?: boolean;
3824
3900
  thumbnail_url?: string | null;
3825
3901
  updated_at?: string;
@@ -5979,33 +6055,42 @@ export type Database = {
5979
6055
  };
5980
6056
  floricode_sync_state: {
5981
6057
  Row: {
6058
+ completed_at: string | null;
5982
6059
  cursor_skip: number;
5983
6060
  error_message: string | null;
5984
6061
  last_change_date_time: string | null;
5985
6062
  last_sequence_number: number;
5986
6063
  last_sync_at: string | null;
6064
+ pending_change_date_time: string | null;
5987
6065
  resource: string;
5988
6066
  status: string;
6067
+ total_count: number | null;
5989
6068
  updated_at: string;
5990
6069
  };
5991
6070
  Insert: {
6071
+ completed_at?: string | null;
5992
6072
  cursor_skip?: number;
5993
6073
  error_message?: string | null;
5994
6074
  last_change_date_time?: string | null;
5995
6075
  last_sequence_number?: number;
5996
6076
  last_sync_at?: string | null;
6077
+ pending_change_date_time?: string | null;
5997
6078
  resource: string;
5998
6079
  status?: string;
6080
+ total_count?: number | null;
5999
6081
  updated_at?: string;
6000
6082
  };
6001
6083
  Update: {
6084
+ completed_at?: string | null;
6002
6085
  cursor_skip?: number;
6003
6086
  error_message?: string | null;
6004
6087
  last_change_date_time?: string | null;
6005
6088
  last_sequence_number?: number;
6006
6089
  last_sync_at?: string | null;
6090
+ pending_change_date_time?: string | null;
6007
6091
  resource?: string;
6008
6092
  status?: string;
6093
+ total_count?: number | null;
6009
6094
  updated_at?: string;
6010
6095
  };
6011
6096
  Relationships: [];
@@ -6757,9 +6842,16 @@ export type Database = {
6757
6842
  id: string;
6758
6843
  is_active: boolean;
6759
6844
  label: string;
6845
+ organization_fetched_at: string | null;
6846
+ organization_id: string | null;
6847
+ organization_mailing_address: Json | null;
6760
6848
  organization_name: string | null;
6849
+ organization_physical_address: Json | null;
6761
6850
  preferred_warehouse_id: string | null;
6762
6851
  preferred_warehouse_name: string | null;
6852
+ read_only: boolean;
6853
+ read_only_changed_at: string | null;
6854
+ read_only_changed_by: string | null;
6763
6855
  token_expires_at: string | null;
6764
6856
  updated_at: string;
6765
6857
  };
@@ -6772,9 +6864,16 @@ export type Database = {
6772
6864
  id?: string;
6773
6865
  is_active?: boolean;
6774
6866
  label?: string;
6867
+ organization_fetched_at?: string | null;
6868
+ organization_id?: string | null;
6869
+ organization_mailing_address?: Json | null;
6775
6870
  organization_name?: string | null;
6871
+ organization_physical_address?: Json | null;
6776
6872
  preferred_warehouse_id?: string | null;
6777
6873
  preferred_warehouse_name?: string | null;
6874
+ read_only?: boolean;
6875
+ read_only_changed_at?: string | null;
6876
+ read_only_changed_by?: string | null;
6778
6877
  token_expires_at?: string | null;
6779
6878
  updated_at?: string;
6780
6879
  };
@@ -6787,9 +6886,16 @@ export type Database = {
6787
6886
  id?: string;
6788
6887
  is_active?: boolean;
6789
6888
  label?: string;
6889
+ organization_fetched_at?: string | null;
6890
+ organization_id?: string | null;
6891
+ organization_mailing_address?: Json | null;
6790
6892
  organization_name?: string | null;
6893
+ organization_physical_address?: Json | null;
6791
6894
  preferred_warehouse_id?: string | null;
6792
6895
  preferred_warehouse_name?: string | null;
6896
+ read_only?: boolean;
6897
+ read_only_changed_at?: string | null;
6898
+ read_only_changed_by?: string | null;
6793
6899
  token_expires_at?: string | null;
6794
6900
  updated_at?: string;
6795
6901
  };
@@ -7047,6 +7153,44 @@ export type Database = {
7047
7153
  }
7048
7154
  ];
7049
7155
  };
7156
+ floriday_customer_offers_cache: {
7157
+ Row: {
7158
+ connection_id: string;
7159
+ data: Json;
7160
+ fetched_at: string;
7161
+ floriday_id: string;
7162
+ is_deleted: boolean;
7163
+ sequence_number: number;
7164
+ updated_at: string;
7165
+ };
7166
+ Insert: {
7167
+ connection_id: string;
7168
+ data?: Json;
7169
+ fetched_at?: string;
7170
+ floriday_id: string;
7171
+ is_deleted?: boolean;
7172
+ sequence_number?: number;
7173
+ updated_at?: string;
7174
+ };
7175
+ Update: {
7176
+ connection_id?: string;
7177
+ data?: Json;
7178
+ fetched_at?: string;
7179
+ floriday_id?: string;
7180
+ is_deleted?: boolean;
7181
+ sequence_number?: number;
7182
+ updated_at?: string;
7183
+ };
7184
+ Relationships: [
7185
+ {
7186
+ foreignKeyName: "floriday_customer_offers_cache_connection_id_fkey";
7187
+ columns: ["connection_id"];
7188
+ isOneToOne: false;
7189
+ referencedRelation: "floriday_connections";
7190
+ referencedColumns: ["id"];
7191
+ }
7192
+ ];
7193
+ };
7050
7194
  floriday_customer_sticker_pdfs_cache: {
7051
7195
  Row: {
7052
7196
  byte_size: number | null;
@@ -7146,16 +7290,22 @@ export type Database = {
7146
7290
  connection_id: string;
7147
7291
  created_at: string;
7148
7292
  data: Json;
7293
+ delivery_date_time: string | null;
7149
7294
  fetched_at: string;
7150
7295
  floriday_id: string;
7296
+ has_file: boolean | null;
7151
7297
  id: string;
7152
7298
  is_deleted: boolean;
7299
+ is_handled: boolean | null;
7300
+ last_requested_on: string | null;
7301
+ number_of_copies: number | null;
7153
7302
  quantity: number | null;
7154
7303
  sales_order_id: string | null;
7155
7304
  sequence_number: number;
7156
7305
  should_be_printed: boolean | null;
7157
7306
  status: string | null;
7158
7307
  sticker_height_mm: number | null;
7308
+ sticker_provided_by: string | null;
7159
7309
  sticker_type: string | null;
7160
7310
  sticker_width_mm: number | null;
7161
7311
  trade_item_id: string | null;
@@ -7165,16 +7315,22 @@ export type Database = {
7165
7315
  connection_id: string;
7166
7316
  created_at?: string;
7167
7317
  data?: Json;
7318
+ delivery_date_time?: string | null;
7168
7319
  fetched_at?: string;
7169
7320
  floriday_id: string;
7321
+ has_file?: boolean | null;
7170
7322
  id?: string;
7171
7323
  is_deleted?: boolean;
7324
+ is_handled?: boolean | null;
7325
+ last_requested_on?: string | null;
7326
+ number_of_copies?: number | null;
7172
7327
  quantity?: number | null;
7173
7328
  sales_order_id?: string | null;
7174
7329
  sequence_number?: number;
7175
7330
  should_be_printed?: boolean | null;
7176
7331
  status?: string | null;
7177
7332
  sticker_height_mm?: number | null;
7333
+ sticker_provided_by?: string | null;
7178
7334
  sticker_type?: string | null;
7179
7335
  sticker_width_mm?: number | null;
7180
7336
  trade_item_id?: string | null;
@@ -7184,16 +7340,22 @@ export type Database = {
7184
7340
  connection_id?: string;
7185
7341
  created_at?: string;
7186
7342
  data?: Json;
7343
+ delivery_date_time?: string | null;
7187
7344
  fetched_at?: string;
7188
7345
  floriday_id?: string;
7346
+ has_file?: boolean | null;
7189
7347
  id?: string;
7190
7348
  is_deleted?: boolean;
7349
+ is_handled?: boolean | null;
7350
+ last_requested_on?: string | null;
7351
+ number_of_copies?: number | null;
7191
7352
  quantity?: number | null;
7192
7353
  sales_order_id?: string | null;
7193
7354
  sequence_number?: number;
7194
7355
  should_be_printed?: boolean | null;
7195
7356
  status?: string | null;
7196
7357
  sticker_height_mm?: number | null;
7358
+ sticker_provided_by?: string | null;
7197
7359
  sticker_type?: string | null;
7198
7360
  sticker_width_mm?: number | null;
7199
7361
  trade_item_id?: string | null;
@@ -7604,8 +7766,14 @@ export type Database = {
7604
7766
  created_at: string;
7605
7767
  desired_availability: boolean;
7606
7768
  desired_quantity: number;
7769
+ erp_leading: boolean | null;
7770
+ erp_leading_at: string | null;
7771
+ first_positive_published_at: string | null;
7607
7772
  fixed_quantity: number | null;
7773
+ floriday_offer_forms: Json | null;
7608
7774
  floriday_trade_item_id: string | null;
7775
+ follow_floriday_at: string | null;
7776
+ follow_floriday_result: string | null;
7609
7777
  id: string;
7610
7778
  last_confirmed_at: string | null;
7611
7779
  last_enqueued_at: string | null;
@@ -7636,8 +7804,14 @@ export type Database = {
7636
7804
  created_at?: string;
7637
7805
  desired_availability?: boolean;
7638
7806
  desired_quantity?: number;
7807
+ erp_leading?: boolean | null;
7808
+ erp_leading_at?: string | null;
7809
+ first_positive_published_at?: string | null;
7639
7810
  fixed_quantity?: number | null;
7811
+ floriday_offer_forms?: Json | null;
7640
7812
  floriday_trade_item_id?: string | null;
7813
+ follow_floriday_at?: string | null;
7814
+ follow_floriday_result?: string | null;
7641
7815
  id?: string;
7642
7816
  last_confirmed_at?: string | null;
7643
7817
  last_enqueued_at?: string | null;
@@ -7668,8 +7842,14 @@ export type Database = {
7668
7842
  created_at?: string;
7669
7843
  desired_availability?: boolean;
7670
7844
  desired_quantity?: number;
7845
+ erp_leading?: boolean | null;
7846
+ erp_leading_at?: string | null;
7847
+ first_positive_published_at?: string | null;
7671
7848
  fixed_quantity?: number | null;
7849
+ floriday_offer_forms?: Json | null;
7672
7850
  floriday_trade_item_id?: string | null;
7851
+ follow_floriday_at?: string | null;
7852
+ follow_floriday_result?: string | null;
7673
7853
  id?: string;
7674
7854
  last_confirmed_at?: string | null;
7675
7855
  last_enqueued_at?: string | null;
@@ -8058,6 +8238,59 @@ export type Database = {
8058
8238
  };
8059
8239
  Relationships: [];
8060
8240
  };
8241
+ floriday_packing_mismatches: {
8242
+ Row: {
8243
+ api_value: Json | null;
8244
+ cache_is_deleted: boolean;
8245
+ cache_value: Json | null;
8246
+ check_outcome: string;
8247
+ connection_id: string;
8248
+ details: string | null;
8249
+ detected_at: string;
8250
+ entity: string;
8251
+ floriday_id: string;
8252
+ id: string;
8253
+ last_checked_at: string;
8254
+ resolved_at: string | null;
8255
+ };
8256
+ Insert: {
8257
+ api_value?: Json | null;
8258
+ cache_is_deleted?: boolean;
8259
+ cache_value?: Json | null;
8260
+ check_outcome?: string;
8261
+ connection_id: string;
8262
+ details?: string | null;
8263
+ detected_at?: string;
8264
+ entity: string;
8265
+ floriday_id: string;
8266
+ id?: string;
8267
+ last_checked_at?: string;
8268
+ resolved_at?: string | null;
8269
+ };
8270
+ Update: {
8271
+ api_value?: Json | null;
8272
+ cache_is_deleted?: boolean;
8273
+ cache_value?: Json | null;
8274
+ check_outcome?: string;
8275
+ connection_id?: string;
8276
+ details?: string | null;
8277
+ detected_at?: string;
8278
+ entity?: string;
8279
+ floriday_id?: string;
8280
+ id?: string;
8281
+ last_checked_at?: string;
8282
+ resolved_at?: string | null;
8283
+ };
8284
+ Relationships: [
8285
+ {
8286
+ foreignKeyName: "floriday_packing_mismatches_connection_id_fkey";
8287
+ columns: ["connection_id"];
8288
+ isOneToOne: false;
8289
+ referencedRelation: "floriday_connections";
8290
+ referencedColumns: ["id"];
8291
+ }
8292
+ ];
8293
+ };
8061
8294
  floriday_packings_cache: {
8062
8295
  Row: {
8063
8296
  connection_id: string;
@@ -8487,33 +8720,45 @@ export type Database = {
8487
8720
  };
8488
8721
  floriday_sync_state: {
8489
8722
  Row: {
8723
+ backfill_done_at: string | null;
8724
+ backfill_started_at: string | null;
8725
+ backfill_target_sequence: number | null;
8490
8726
  connection_id: string;
8491
8727
  entity_type: string;
8492
8728
  last_error: string | null;
8493
8729
  last_items_processed: number | null;
8494
8730
  last_max_sequence_seen: number | null;
8731
+ last_rate_limited_at: string | null;
8495
8732
  last_sequence_number: number;
8496
8733
  last_success_at: string | null;
8497
8734
  last_synced_at: string | null;
8498
8735
  updated_at: string;
8499
8736
  };
8500
8737
  Insert: {
8738
+ backfill_done_at?: string | null;
8739
+ backfill_started_at?: string | null;
8740
+ backfill_target_sequence?: number | null;
8501
8741
  connection_id: string;
8502
8742
  entity_type: string;
8503
8743
  last_error?: string | null;
8504
8744
  last_items_processed?: number | null;
8505
8745
  last_max_sequence_seen?: number | null;
8746
+ last_rate_limited_at?: string | null;
8506
8747
  last_sequence_number?: number;
8507
8748
  last_success_at?: string | null;
8508
8749
  last_synced_at?: string | null;
8509
8750
  updated_at?: string;
8510
8751
  };
8511
8752
  Update: {
8753
+ backfill_done_at?: string | null;
8754
+ backfill_started_at?: string | null;
8755
+ backfill_target_sequence?: number | null;
8512
8756
  connection_id?: string;
8513
8757
  entity_type?: string;
8514
8758
  last_error?: string | null;
8515
8759
  last_items_processed?: number | null;
8516
8760
  last_max_sequence_seen?: number | null;
8761
+ last_rate_limited_at?: string | null;
8517
8762
  last_sequence_number?: number;
8518
8763
  last_success_at?: string | null;
8519
8764
  last_synced_at?: string | null;
@@ -8529,6 +8774,116 @@ export type Database = {
8529
8774
  }
8530
8775
  ];
8531
8776
  };
8777
+ floriday_takeover_items: {
8778
+ Row: {
8779
+ created_at: string;
8780
+ created_product: boolean;
8781
+ id: string;
8782
+ new_price: number | null;
8783
+ new_stock: number | null;
8784
+ offer_forms: Json | null;
8785
+ old_erp_leading: boolean | null;
8786
+ old_offer_forms: Json | null;
8787
+ old_price: number | null;
8788
+ old_stock: number | null;
8789
+ price_source: string | null;
8790
+ product_id: string;
8791
+ run_id: string;
8792
+ stock_source: string | null;
8793
+ trade_item_id: string;
8794
+ undo_skipped_reason: string | null;
8795
+ undone: boolean;
8796
+ };
8797
+ Insert: {
8798
+ created_at?: string;
8799
+ created_product?: boolean;
8800
+ id?: string;
8801
+ new_price?: number | null;
8802
+ new_stock?: number | null;
8803
+ offer_forms?: Json | null;
8804
+ old_erp_leading?: boolean | null;
8805
+ old_offer_forms?: Json | null;
8806
+ old_price?: number | null;
8807
+ old_stock?: number | null;
8808
+ price_source?: string | null;
8809
+ product_id: string;
8810
+ run_id: string;
8811
+ stock_source?: string | null;
8812
+ trade_item_id: string;
8813
+ undo_skipped_reason?: string | null;
8814
+ undone?: boolean;
8815
+ };
8816
+ Update: {
8817
+ created_at?: string;
8818
+ created_product?: boolean;
8819
+ id?: string;
8820
+ new_price?: number | null;
8821
+ new_stock?: number | null;
8822
+ offer_forms?: Json | null;
8823
+ old_erp_leading?: boolean | null;
8824
+ old_offer_forms?: Json | null;
8825
+ old_price?: number | null;
8826
+ old_stock?: number | null;
8827
+ price_source?: string | null;
8828
+ product_id?: string;
8829
+ run_id?: string;
8830
+ stock_source?: string | null;
8831
+ trade_item_id?: string;
8832
+ undo_skipped_reason?: string | null;
8833
+ undone?: boolean;
8834
+ };
8835
+ Relationships: [
8836
+ {
8837
+ foreignKeyName: "floriday_takeover_items_run_id_fkey";
8838
+ columns: ["run_id"];
8839
+ isOneToOne: false;
8840
+ referencedRelation: "floriday_takeover_runs";
8841
+ referencedColumns: ["id"];
8842
+ }
8843
+ ];
8844
+ };
8845
+ floriday_takeover_runs: {
8846
+ Row: {
8847
+ connection_id: string;
8848
+ created_at: string;
8849
+ created_products: number;
8850
+ id: string;
8851
+ status: string;
8852
+ total_items: number;
8853
+ undo_skipped_items: number;
8854
+ undone_at: string | null;
8855
+ undone_items: number;
8856
+ updated_at: string;
8857
+ user_id: string;
8858
+ };
8859
+ Insert: {
8860
+ connection_id: string;
8861
+ created_at?: string;
8862
+ created_products?: number;
8863
+ id?: string;
8864
+ status?: string;
8865
+ total_items?: number;
8866
+ undo_skipped_items?: number;
8867
+ undone_at?: string | null;
8868
+ undone_items?: number;
8869
+ updated_at?: string;
8870
+ user_id: string;
8871
+ };
8872
+ Update: {
8873
+ connection_id?: string;
8874
+ created_at?: string;
8875
+ created_products?: number;
8876
+ id?: string;
8877
+ status?: string;
8878
+ total_items?: number;
8879
+ undo_skipped_items?: number;
8880
+ undone_at?: string | null;
8881
+ undone_items?: number;
8882
+ updated_at?: string;
8883
+ user_id?: string;
8884
+ };
8885
+ Relationships: [];
8886
+ };
8532
8887
  floriday_token_refresh_log: {
8533
8888
  Row: {
8534
8889
  attempted_at: string;
@@ -11174,6 +11529,36 @@ export type Database = {
11174
11529
  };
11175
11530
  Relationships: [];
11176
11531
  };
11532
+ layout_auto_acties: {
11533
+ Row: {
11534
+ actie: string;
11535
+ created_at: string;
11536
+ detail: string;
11537
+ documenttype: string | null;
11538
+ id: string;
11539
+ layout_id: string | null;
11540
+ printer_id: string | null;
11541
+ };
11542
+ Insert: {
11543
+ actie: string;
11544
+ created_at?: string;
11545
+ detail?: string;
11546
+ documenttype?: string | null;
11547
+ id?: string;
11548
+ layout_id?: string | null;
11549
+ printer_id?: string | null;
11550
+ };
11551
+ Update: {
11552
+ actie?: string;
11553
+ created_at?: string;
11554
+ detail?: string;
11555
+ documenttype?: string | null;
11556
+ id?: string;
11557
+ layout_id?: string | null;
11558
+ printer_id?: string | null;
11559
+ };
11560
+ Relationships: [];
11561
+ };
11177
11562
  layout_logos: {
11178
11563
  Row: {
11179
11564
  bestand_url: string;
@@ -11231,6 +11616,51 @@ export type Database = {
11231
11616
  };
11232
11617
  Relationships: [];
11233
11618
  };
11619
+ layout_standaarden: {
11620
+ Row: {
11621
+ breedte_mm: number;
11622
+ config: Json;
11623
+ created_at: string;
11624
+ documenttype: Database["public"]["Enums"]["doc_layout_type"];
11625
+ hoogte_mm: number;
11626
+ naam: string;
11627
+ omschrijving: string;
11628
+ page_settings: Json;
11629
+ papierformaat: string;
11630
+ sleutel: string;
11631
+ updated_at: string;
11632
+ versie: number;
11633
+ };
11634
+ Insert: {
11635
+ breedte_mm?: number;
11636
+ config?: Json;
11637
+ created_at?: string;
11638
+ documenttype: Database["public"]["Enums"]["doc_layout_type"];
11639
+ hoogte_mm?: number;
11640
+ naam: string;
11641
+ omschrijving?: string;
11642
+ page_settings?: Json;
11643
+ papierformaat?: string;
11644
+ sleutel: string;
11645
+ updated_at?: string;
11646
+ versie: number;
11647
+ };
11648
+ Update: {
11649
+ breedte_mm?: number;
11650
+ config?: Json;
11651
+ created_at?: string;
11652
+ documenttype?: Database["public"]["Enums"]["doc_layout_type"];
11653
+ hoogte_mm?: number;
11654
+ naam?: string;
11655
+ omschrijving?: string;
11656
+ page_settings?: Json;
11657
+ papierformaat?: string;
11658
+ sleutel?: string;
11659
+ updated_at?: string;
11660
+ versie?: number;
11661
+ };
11662
+ Relationships: [];
11663
+ };
11234
11664
  leave_requests: {
11235
11665
  Row: {
11236
11666
  cancellation_requested_at: string | null;
@@ -11804,6 +12234,36 @@ export type Database = {
11804
12234
  };
11805
12235
  Relationships: [];
11806
12236
  };
12237
+ logistics_belading_bevestigingen: {
12238
+ Row: {
12239
+ bevestigd_door: string | null;
12240
+ bevestigd_op: string;
12241
+ created_at: string;
12242
+ id: string;
12243
+ order_id: string;
12244
+ redenen: string[];
12245
+ verpakking_sleutel: string;
12246
+ };
12247
+ Insert: {
12248
+ bevestigd_door?: string | null;
12249
+ bevestigd_op?: string;
12250
+ created_at?: string;
12251
+ id?: string;
12252
+ order_id: string;
12253
+ redenen?: string[];
12254
+ verpakking_sleutel: string;
12255
+ };
12256
+ Update: {
12257
+ bevestigd_door?: string | null;
12258
+ bevestigd_op?: string;
12259
+ created_at?: string;
12260
+ id?: string;
12261
+ order_id?: string;
12262
+ redenen?: string[];
12263
+ verpakking_sleutel?: string;
12264
+ };
12265
+ Relationships: [];
12266
+ };
11807
12267
  logistics_capacity_alerts: {
11808
12268
  Row: {
11809
12269
  available_minutes: number;
@@ -13843,6 +14303,7 @@ export type Database = {
13843
14303
  bron_id: string;
13844
14304
  cart_id: string | null;
13845
14305
  created_at: string;
14306
+ eigen_sticker_id: string | null;
13846
14307
  fulfillment_order_id: string | null;
13847
14308
  handled_at: string | null;
13848
14309
  handled_error: string | null;
@@ -13869,6 +14330,7 @@ export type Database = {
13869
14330
  bron_id: string;
13870
14331
  cart_id?: string | null;
13871
14332
  created_at?: string;
14333
+ eigen_sticker_id?: string | null;
13872
14334
  fulfillment_order_id?: string | null;
13873
14335
  handled_at?: string | null;
13874
14336
  handled_error?: string | null;
@@ -13895,6 +14357,7 @@ export type Database = {
13895
14357
  bron_id?: string;
13896
14358
  cart_id?: string | null;
13897
14359
  created_at?: string;
14360
+ eigen_sticker_id?: string | null;
13898
14361
  fulfillment_order_id?: string | null;
13899
14362
  handled_at?: string | null;
13900
14363
  handled_error?: string | null;
@@ -14616,6 +15079,45 @@ export type Database = {
14616
15079
  };
14617
15080
  Relationships: [];
14618
15081
  };
15082
+ mailbox_ai_runs: {
15083
+ Row: {
15084
+ error: string | null;
15085
+ finished_at: string | null;
15086
+ id: string;
15087
+ input_tokens: number | null;
15088
+ is_test: boolean;
15089
+ message_id: string | null;
15090
+ ok: boolean | null;
15091
+ output_tokens: number | null;
15092
+ started_at: string;
15093
+ trigger: string;
15094
+ };
15095
+ Insert: {
15096
+ error?: string | null;
15097
+ finished_at?: string | null;
15098
+ id?: string;
15099
+ input_tokens?: number | null;
15100
+ is_test?: boolean;
15101
+ message_id?: string | null;
15102
+ ok?: boolean | null;
15103
+ output_tokens?: number | null;
15104
+ started_at?: string;
15105
+ trigger?: string;
15106
+ };
15107
+ Update: {
15108
+ error?: string | null;
15109
+ finished_at?: string | null;
15110
+ id?: string;
15111
+ input_tokens?: number | null;
15112
+ is_test?: boolean;
15113
+ message_id?: string | null;
15114
+ ok?: boolean | null;
15115
+ output_tokens?: number | null;
15116
+ started_at?: string;
15117
+ trigger?: string;
15118
+ };
15119
+ Relationships: [];
15120
+ };
14619
15121
  mailbox_ai_settings: {
14620
15122
  Row: {
14621
15123
  active_goal_key: string | null;
@@ -14649,6 +15151,78 @@ export type Database = {
14649
15151
  };
14650
15152
  Relationships: [];
14651
15153
  };
15154
+ mailbox_filter_settings: {
15155
+ Row: {
15156
+ analyze_unknown_with_signals: boolean;
15157
+ conf_green: number;
15158
+ conf_orange: number;
15159
+ created_at: string;
15160
+ domain_match: boolean;
15161
+ duplicate_days: number;
15162
+ id: string;
15163
+ max_agent_reparse: number;
15164
+ max_ai_per_day: number;
15165
+ max_ai_per_month: number;
15166
+ max_candidates: number;
15167
+ max_retries_per_run: number;
15168
+ max_retry_attempts: number;
15169
+ min_signals_unknown: number;
15170
+ negative_keywords: string[];
15171
+ order_keywords: string[];
15172
+ order_patterns: string[];
15173
+ singleton: boolean;
15174
+ skip_domains: string[];
15175
+ skip_senders: string[];
15176
+ updated_at: string;
15177
+ };
15178
+ Insert: {
15179
+ analyze_unknown_with_signals?: boolean;
15180
+ conf_green?: number;
15181
+ conf_orange?: number;
15182
+ created_at?: string;
15183
+ domain_match?: boolean;
15184
+ duplicate_days?: number;
15185
+ id?: string;
15186
+ max_agent_reparse?: number;
15187
+ max_ai_per_day?: number;
15188
+ max_ai_per_month?: number;
15189
+ max_candidates?: number;
15190
+ max_retries_per_run?: number;
15191
+ max_retry_attempts?: number;
15192
+ min_signals_unknown?: number;
15193
+ negative_keywords?: string[];
15194
+ order_keywords?: string[];
15195
+ order_patterns?: string[];
15196
+ singleton?: boolean;
15197
+ skip_domains?: string[];
15198
+ skip_senders?: string[];
15199
+ updated_at?: string;
15200
+ };
15201
+ Update: {
15202
+ analyze_unknown_with_signals?: boolean;
15203
+ conf_green?: number;
15204
+ conf_orange?: number;
15205
+ created_at?: string;
15206
+ domain_match?: boolean;
15207
+ duplicate_days?: number;
15208
+ id?: string;
15209
+ max_agent_reparse?: number;
15210
+ max_ai_per_day?: number;
15211
+ max_ai_per_month?: number;
15212
+ max_candidates?: number;
15213
+ max_retries_per_run?: number;
15214
+ max_retry_attempts?: number;
15215
+ min_signals_unknown?: number;
15216
+ negative_keywords?: string[];
15217
+ order_keywords?: string[];
15218
+ order_patterns?: string[];
15219
+ singleton?: boolean;
15220
+ skip_domains?: string[];
15221
+ skip_senders?: string[];
15222
+ updated_at?: string;
15223
+ };
15224
+ Relationships: [];
15225
+ };
14652
15226
  mailbox_ingest_runs: {
14653
15227
  Row: {
14654
15228
  connection_id: string | null;
@@ -14687,6 +15261,10 @@ export type Database = {
14687
15261
  };
14688
15262
  mailbox_messages: {
14689
15263
  Row: {
15264
+ analysis_count: number;
15265
+ analysis_note: string | null;
15266
+ analysis_started_at: string | null;
15267
+ analysis_state: string | null;
14690
15268
  attachments: Json;
14691
15269
  body_html: string | null;
14692
15270
  body_text: string | null;
@@ -14695,6 +15273,8 @@ export type Database = {
14695
15273
  created_at: string;
14696
15274
  error_message: string | null;
14697
15275
  external_id: string | null;
15276
+ filter_outcome: string | null;
15277
+ filter_reason: string | null;
14698
15278
  from_email: string | null;
14699
15279
  from_name: string | null;
14700
15280
  has_attachments: boolean;
@@ -14711,6 +15291,10 @@ export type Database = {
14711
15291
  updated_at: string;
14712
15292
  };
14713
15293
  Insert: {
15294
+ analysis_count?: number;
15295
+ analysis_note?: string | null;
15296
+ analysis_started_at?: string | null;
15297
+ analysis_state?: string | null;
14714
15298
  attachments?: Json;
14715
15299
  body_html?: string | null;
14716
15300
  body_text?: string | null;
@@ -14719,6 +15303,8 @@ export type Database = {
14719
15303
  created_at?: string;
14720
15304
  error_message?: string | null;
14721
15305
  external_id?: string | null;
15306
+ filter_outcome?: string | null;
15307
+ filter_reason?: string | null;
14722
15308
  from_email?: string | null;
14723
15309
  from_name?: string | null;
14724
15310
  has_attachments?: boolean;
@@ -14735,6 +15321,10 @@ export type Database = {
14735
15321
  updated_at?: string;
14736
15322
  };
14737
15323
  Update: {
15324
+ analysis_count?: number;
15325
+ analysis_note?: string | null;
15326
+ analysis_started_at?: string | null;
15327
+ analysis_state?: string | null;
14738
15328
  attachments?: Json;
14739
15329
  body_html?: string | null;
14740
15330
  body_text?: string | null;
@@ -14743,6 +15333,8 @@ export type Database = {
14743
15333
  created_at?: string;
14744
15334
  error_message?: string | null;
14745
15335
  external_id?: string | null;
15336
+ filter_outcome?: string | null;
15337
+ filter_reason?: string | null;
14746
15338
  from_email?: string | null;
14747
15339
  from_name?: string | null;
14748
15340
  has_attachments?: boolean;
@@ -14789,6 +15381,7 @@ export type Database = {
14789
15381
  confidence: number | null;
14790
15382
  created_at: string;
14791
15383
  created_order_id: string | null;
15384
+ customer_reference: string | null;
14792
15385
  delivery_date: string | null;
14793
15386
  id: string;
14794
15387
  matched_customer_id: string | null;
@@ -14807,6 +15400,7 @@ export type Database = {
14807
15400
  confidence?: number | null;
14808
15401
  created_at?: string;
14809
15402
  created_order_id?: string | null;
15403
+ customer_reference?: string | null;
14810
15404
  delivery_date?: string | null;
14811
15405
  id?: string;
14812
15406
  matched_customer_id?: string | null;
@@ -14825,6 +15419,7 @@ export type Database = {
14825
15419
  confidence?: number | null;
14826
15420
  created_at?: string;
14827
15421
  created_order_id?: string | null;
15422
+ customer_reference?: string | null;
14828
15423
  delivery_date?: string | null;
14829
15424
  id?: string;
14830
15425
  matched_customer_id?: string | null;
@@ -14961,43 +15556,85 @@ export type Database = {
14961
15556
  };
14962
15557
  mailbox_proposal_lines: {
14963
15558
  Row: {
15559
+ belading: Json | null;
15560
+ confidence: Json | null;
14964
15561
  created_at: string;
15562
+ currency: string | null;
14965
15563
  id: string;
14966
15564
  match_confidence: number | null;
15565
+ match_source: string | null;
15566
+ name_in_mail: string | null;
15567
+ pieces_per_unit: number | null;
14967
15568
  plant_type: string | null;
15569
+ plants: number | null;
15570
+ price_per: string | null;
14968
15571
  product_id: string | null;
14969
15572
  proposal_id: string;
15573
+ qty_in_mail: number | null;
14970
15574
  quantity: number | null;
15575
+ raw_code: string | null;
14971
15576
  raw_product_text: string | null;
14972
15577
  sort_order: number;
14973
15578
  unit: string | null;
15579
+ unit_kind: string | null;
15580
+ unit_price: number | null;
15581
+ unit_text: string | null;
14974
15582
  updated_at: string;
15583
+ warnings: string[] | null;
14975
15584
  };
14976
15585
  Insert: {
15586
+ belading?: Json | null;
15587
+ confidence?: Json | null;
14977
15588
  created_at?: string;
15589
+ currency?: string | null;
14978
15590
  id?: string;
14979
15591
  match_confidence?: number | null;
15592
+ match_source?: string | null;
15593
+ name_in_mail?: string | null;
15594
+ pieces_per_unit?: number | null;
14980
15595
  plant_type?: string | null;
15596
+ plants?: number | null;
15597
+ price_per?: string | null;
14981
15598
  product_id?: string | null;
14982
15599
  proposal_id: string;
15600
+ qty_in_mail?: number | null;
14983
15601
  quantity?: number | null;
15602
+ raw_code?: string | null;
14984
15603
  raw_product_text?: string | null;
14985
15604
  sort_order?: number;
14986
15605
  unit?: string | null;
15606
+ unit_kind?: string | null;
15607
+ unit_price?: number | null;
15608
+ unit_text?: string | null;
14987
15609
  updated_at?: string;
15610
+ warnings?: string[] | null;
14988
15611
  };
14989
15612
  Update: {
15613
+ belading?: Json | null;
15614
+ confidence?: Json | null;
14990
15615
  created_at?: string;
15616
+ currency?: string | null;
14991
15617
  id?: string;
14992
15618
  match_confidence?: number | null;
15619
+ match_source?: string | null;
15620
+ name_in_mail?: string | null;
15621
+ pieces_per_unit?: number | null;
14993
15622
  plant_type?: string | null;
15623
+ plants?: number | null;
15624
+ price_per?: string | null;
14994
15625
  product_id?: string | null;
14995
15626
  proposal_id?: string;
15627
+ qty_in_mail?: number | null;
14996
15628
  quantity?: number | null;
15629
+ raw_code?: string | null;
14997
15630
  raw_product_text?: string | null;
14998
15631
  sort_order?: number;
14999
15632
  unit?: string | null;
15633
+ unit_kind?: string | null;
15634
+ unit_price?: number | null;
15635
+ unit_text?: string | null;
15000
15636
  updated_at?: string;
15637
+ warnings?: string[] | null;
15001
15638
  };
15002
15639
  Relationships: [
15003
15640
  {
@@ -15071,6 +15708,51 @@ export type Database = {
15071
15708
  };
15072
15709
  Relationships: [];
15073
15710
  };
15711
+ mailbox_test_cases: {
15712
+ Row: {
15713
+ body_text: string;
15714
+ created_at: string;
15715
+ expected: Json;
15716
+ from_email: string;
15717
+ has_attachment: boolean;
15718
+ id: string;
15719
+ last_result: Json | null;
15720
+ last_run_at: string | null;
15721
+ name: string;
15722
+ sort_order: number;
15723
+ subject: string;
15724
+ updated_at: string;
15725
+ };
15726
+ Insert: {
15727
+ body_text?: string;
15728
+ created_at?: string;
15729
+ expected?: Json;
15730
+ from_email?: string;
15731
+ has_attachment?: boolean;
15732
+ id?: string;
15733
+ last_result?: Json | null;
15734
+ last_run_at?: string | null;
15735
+ name: string;
15736
+ sort_order?: number;
15737
+ subject?: string;
15738
+ updated_at?: string;
15739
+ };
15740
+ Update: {
15741
+ body_text?: string;
15742
+ created_at?: string;
15743
+ expected?: Json;
15744
+ from_email?: string;
15745
+ has_attachment?: boolean;
15746
+ id?: string;
15747
+ last_result?: Json | null;
15748
+ last_run_at?: string | null;
15749
+ name?: string;
15750
+ sort_order?: number;
15751
+ subject?: string;
15752
+ updated_at?: string;
15753
+ };
15754
+ Relationships: [];
15755
+ };
15074
15756
  manufacture_product_components: {
15075
15757
  Row: {
15076
15758
  component_type: string;
@@ -15135,7 +15817,7 @@ export type Database = {
15135
15817
  name: string;
15136
15818
  produced_stock: number;
15137
15819
  product_code: string;
15138
- tenant_id: string;
15820
+ tenant_id: string | null;
15139
15821
  updated_at: string;
15140
15822
  };
15141
15823
  Insert: {
@@ -15146,7 +15828,7 @@ export type Database = {
15146
15828
  name: string;
15147
15829
  produced_stock?: number;
15148
15830
  product_code: string;
15149
- tenant_id: string;
15831
+ tenant_id?: string | null;
15150
15832
  updated_at?: string;
15151
15833
  };
15152
15834
  Update: {
@@ -15157,7 +15839,7 @@ export type Database = {
15157
15839
  name?: string;
15158
15840
  produced_stock?: number;
15159
15841
  product_code?: string;
15160
- tenant_id?: string;
15842
+ tenant_id?: string | null;
15161
15843
  updated_at?: string;
15162
15844
  };
15163
15845
  Relationships: [];
@@ -16193,10 +16875,12 @@ export type Database = {
16193
16875
  id: string;
16194
16876
  items: Json;
16195
16877
  notes: string | null;
16878
+ order_creation_attempts: number;
16196
16879
  order_creation_error: string | null;
16197
16880
  order_creation_failed_at: string | null;
16198
16881
  order_id: string | null;
16199
16882
  order_number: string | null;
16883
+ order_retry_payload: Json | null;
16200
16884
  recipient_id: string;
16201
16885
  total_amount: number;
16202
16886
  };
@@ -16210,10 +16894,12 @@ export type Database = {
16210
16894
  id?: string;
16211
16895
  items?: Json;
16212
16896
  notes?: string | null;
16897
+ order_creation_attempts?: number;
16213
16898
  order_creation_error?: string | null;
16214
16899
  order_creation_failed_at?: string | null;
16215
16900
  order_id?: string | null;
16216
16901
  order_number?: string | null;
16902
+ order_retry_payload?: Json | null;
16217
16903
  recipient_id: string;
16218
16904
  total_amount?: number;
16219
16905
  };
@@ -16227,10 +16913,12 @@ export type Database = {
16227
16913
  id?: string;
16228
16914
  items?: Json;
16229
16915
  notes?: string | null;
16916
+ order_creation_attempts?: number;
16230
16917
  order_creation_error?: string | null;
16231
16918
  order_creation_failed_at?: string | null;
16232
16919
  order_id?: string | null;
16233
16920
  order_number?: string | null;
16921
+ order_retry_payload?: Json | null;
16234
16922
  recipient_id?: string;
16235
16923
  total_amount?: number;
16236
16924
  };
@@ -16946,57 +17634,72 @@ export type Database = {
16946
17634
  created_at: string;
16947
17635
  id: string;
16948
17636
  layers_per_cart: number | null;
17637
+ load_carrier_type: string | null;
17638
+ needs_sticker: boolean;
16949
17639
  order_id: string;
16950
17640
  packing_locked_at: string | null;
16951
17641
  packing_locked_by: string | null;
17642
+ packing_source: string | null;
16952
17643
  plants_per_crate: number | null;
16953
17644
  product_id: string | null;
16954
17645
  product_name: string;
16955
17646
  quantity: number;
17647
+ quantity_crates: number | null;
16956
17648
  quarantine_reason: string | null;
16957
17649
  quarantined_at: string | null;
16958
17650
  quarantined_into_order_id: string | null;
16959
17651
  source_line_key: string | null;
16960
17652
  unit: string;
16961
17653
  unit_price: number | null;
17654
+ vbn_package_code: string | null;
16962
17655
  };
16963
17656
  Insert: {
16964
17657
  crates_per_layer?: number | null;
16965
17658
  created_at?: string;
16966
17659
  id?: string;
16967
17660
  layers_per_cart?: number | null;
17661
+ load_carrier_type?: string | null;
17662
+ needs_sticker?: boolean;
16968
17663
  order_id: string;
16969
17664
  packing_locked_at?: string | null;
16970
17665
  packing_locked_by?: string | null;
17666
+ packing_source?: string | null;
16971
17667
  plants_per_crate?: number | null;
16972
17668
  product_id?: string | null;
16973
17669
  product_name: string;
16974
17670
  quantity?: number;
17671
+ quantity_crates?: number | null;
16975
17672
  quarantine_reason?: string | null;
16976
17673
  quarantined_at?: string | null;
16977
17674
  quarantined_into_order_id?: string | null;
16978
17675
  source_line_key?: string | null;
16979
17676
  unit?: string;
16980
17677
  unit_price?: number | null;
17678
+ vbn_package_code?: string | null;
16981
17679
  };
16982
17680
  Update: {
16983
17681
  crates_per_layer?: number | null;
16984
17682
  created_at?: string;
16985
17683
  id?: string;
16986
17684
  layers_per_cart?: number | null;
17685
+ load_carrier_type?: string | null;
17686
+ needs_sticker?: boolean;
16987
17687
  order_id?: string;
16988
17688
  packing_locked_at?: string | null;
16989
17689
  packing_locked_by?: string | null;
17690
+ packing_source?: string | null;
16990
17691
  plants_per_crate?: number | null;
16991
17692
  product_id?: string | null;
16992
17693
  product_name?: string;
16993
17694
  quantity?: number;
17695
+ quantity_crates?: number | null;
16994
17696
  quarantine_reason?: string | null;
16995
17697
  quarantined_at?: string | null;
16996
17698
  quarantined_into_order_id?: string | null;
16997
17699
  source_line_key?: string | null;
16998
17700
  unit?: string;
16999
17701
  unit_price?: number | null;
17702
+ vbn_package_code?: string | null;
17000
17703
  };
17001
17704
  Relationships: [
17002
17705
  {
@@ -20440,7 +21143,7 @@ export type Database = {
20440
21143
  parent_trade_item_floriday_id: string | null;
20441
21144
  quantity: number;
20442
21145
  sort_order: number;
20443
- tenant_id: string;
21146
+ tenant_id: string | null;
20444
21147
  unit: string;
20445
21148
  updated_at: string;
20446
21149
  };
@@ -20453,7 +21156,7 @@ export type Database = {
20453
21156
  parent_trade_item_floriday_id?: string | null;
20454
21157
  quantity?: number;
20455
21158
  sort_order?: number;
20456
- tenant_id: string;
21159
+ tenant_id?: string | null;
20457
21160
  unit?: string;
20458
21161
  updated_at?: string;
20459
21162
  };
@@ -20466,7 +21169,7 @@ export type Database = {
20466
21169
  parent_trade_item_floriday_id?: string | null;
20467
21170
  quantity?: number;
20468
21171
  sort_order?: number;
20469
- tenant_id?: string;
21172
+ tenant_id?: string | null;
20470
21173
  unit?: string;
20471
21174
  updated_at?: string;
20472
21175
  };
@@ -20499,7 +21202,7 @@ export type Database = {
20499
21202
  parent_trade_item_floriday_id: string | null;
20500
21203
  quantity: number;
20501
21204
  sort_order: number;
20502
- tenant_id: string;
21205
+ tenant_id: string | null;
20503
21206
  unit: string;
20504
21207
  updated_at: string;
20505
21208
  };
@@ -20514,7 +21217,7 @@ export type Database = {
20514
21217
  parent_trade_item_floriday_id?: string | null;
20515
21218
  quantity?: number;
20516
21219
  sort_order?: number;
20517
- tenant_id: string;
21220
+ tenant_id?: string | null;
20518
21221
  unit?: string;
20519
21222
  updated_at?: string;
20520
21223
  };
@@ -20529,7 +21232,7 @@ export type Database = {
20529
21232
  parent_trade_item_floriday_id?: string | null;
20530
21233
  quantity?: number;
20531
21234
  sort_order?: number;
20532
- tenant_id?: string;
21235
+ tenant_id?: string | null;
20533
21236
  unit?: string;
20534
21237
  updated_at?: string;
20535
21238
  };
@@ -20709,7 +21412,7 @@ export type Database = {
20709
21412
  id: string;
20710
21413
  is_active: boolean;
20711
21414
  name: string;
20712
- tenant_id: string;
21415
+ tenant_id: string | null;
20713
21416
  updated_at: string;
20714
21417
  };
20715
21418
  Insert: {
@@ -20720,7 +21423,7 @@ export type Database = {
20720
21423
  id?: string;
20721
21424
  is_active?: boolean;
20722
21425
  name: string;
20723
- tenant_id: string;
21426
+ tenant_id?: string | null;
20724
21427
  updated_at?: string;
20725
21428
  };
20726
21429
  Update: {
@@ -20731,7 +21434,7 @@ export type Database = {
20731
21434
  id?: string;
20732
21435
  is_active?: boolean;
20733
21436
  name?: string;
20734
- tenant_id?: string;
21437
+ tenant_id?: string | null;
20735
21438
  updated_at?: string;
20736
21439
  };
20737
21440
  Relationships: [
@@ -20766,7 +21469,7 @@ export type Database = {
20766
21469
  packages_per_layer: number | null;
20767
21470
  packing_configuration_id: string;
20768
21471
  product_id: string | null;
20769
- tenant_id: string;
21472
+ tenant_id: string | null;
20770
21473
  trade_item_floriday_id: string | null;
20771
21474
  units_per_package: number | null;
20772
21475
  updated_at: string;
@@ -20785,7 +21488,7 @@ export type Database = {
20785
21488
  packages_per_layer?: number | null;
20786
21489
  packing_configuration_id?: string;
20787
21490
  product_id?: string | null;
20788
- tenant_id: string;
21491
+ tenant_id?: string | null;
20789
21492
  trade_item_floriday_id?: string | null;
20790
21493
  units_per_package?: number | null;
20791
21494
  updated_at?: string;
@@ -20804,7 +21507,7 @@ export type Database = {
20804
21507
  packages_per_layer?: number | null;
20805
21508
  packing_configuration_id?: string;
20806
21509
  product_id?: string | null;
20807
- tenant_id?: string;
21510
+ tenant_id?: string | null;
20808
21511
  trade_item_floriday_id?: string | null;
20809
21512
  units_per_package?: number | null;
20810
21513
  updated_at?: string;
@@ -20866,6 +21569,85 @@ export type Database = {
20866
21569
  };
20867
21570
  Relationships: [];
20868
21571
  };
21572
+ product_packings: {
21573
+ Row: {
21574
+ created_at: string;
21575
+ custom_package_id: string | null;
21576
+ customer_organization_ids: string[];
21577
+ floriday_packing_id: string | null;
21578
+ fust_type_id: string | null;
21579
+ id: string;
21580
+ is_primary: boolean;
21581
+ layers_per_load_carrier: number | null;
21582
+ load_carrier: string | null;
21583
+ packages_per_layer: number | null;
21584
+ pieces_per_package: number | null;
21585
+ product_id: string;
21586
+ sort_order: number;
21587
+ source: string;
21588
+ updated_at: string;
21589
+ vbn_package_code: number | null;
21590
+ };
21591
+ Insert: {
21592
+ created_at?: string;
21593
+ custom_package_id?: string | null;
21594
+ customer_organization_ids?: string[];
21595
+ floriday_packing_id?: string | null;
21596
+ fust_type_id?: string | null;
21597
+ id?: string;
21598
+ is_primary?: boolean;
21599
+ layers_per_load_carrier?: number | null;
21600
+ load_carrier?: string | null;
21601
+ packages_per_layer?: number | null;
21602
+ pieces_per_package?: number | null;
21603
+ product_id: string;
21604
+ sort_order?: number;
21605
+ source?: string;
21606
+ updated_at?: string;
21607
+ vbn_package_code?: number | null;
21608
+ };
21609
+ Update: {
21610
+ created_at?: string;
21611
+ custom_package_id?: string | null;
21612
+ customer_organization_ids?: string[];
21613
+ floriday_packing_id?: string | null;
21614
+ fust_type_id?: string | null;
21615
+ id?: string;
21616
+ is_primary?: boolean;
21617
+ layers_per_load_carrier?: number | null;
21618
+ load_carrier?: string | null;
21619
+ packages_per_layer?: number | null;
21620
+ pieces_per_package?: number | null;
21621
+ product_id?: string;
21622
+ sort_order?: number;
21623
+ source?: string;
21624
+ updated_at?: string;
21625
+ vbn_package_code?: number | null;
21626
+ };
21627
+ Relationships: [
21628
+ {
21629
+ foreignKeyName: "product_packings_fust_type_id_fkey";
21630
+ columns: ["fust_type_id"];
21631
+ isOneToOne: false;
21632
+ referencedRelation: "fust_types";
21633
+ referencedColumns: ["id"];
21634
+ },
21635
+ {
21636
+ foreignKeyName: "product_packings_product_id_fkey";
21637
+ columns: ["product_id"];
21638
+ isOneToOne: false;
21639
+ referencedRelation: "logistics_product_dimensions";
21640
+ referencedColumns: ["product_id"];
21641
+ },
21642
+ {
21643
+ foreignKeyName: "product_packings_product_id_fkey";
21644
+ columns: ["product_id"];
21645
+ isOneToOne: false;
21646
+ referencedRelation: "products";
21647
+ referencedColumns: ["id"];
21648
+ }
21649
+ ];
21650
+ };
20869
21651
  product_suppliers: {
20870
21652
  Row: {
20871
21653
  created_at: string;
@@ -20984,6 +21766,69 @@ export type Database = {
20984
21766
  }
20985
21767
  ];
20986
21768
  };
21769
+ productontwerp_import_map: {
21770
+ Row: {
21771
+ created_at: string;
21772
+ entity_type: string;
21773
+ id: string;
21774
+ imported_at: string;
21775
+ match_method: string | null;
21776
+ source_id: string;
21777
+ source_shell_id: string;
21778
+ target_id: string;
21779
+ updated_at: string;
21780
+ };
21781
+ Insert: {
21782
+ created_at?: string;
21783
+ entity_type: string;
21784
+ id?: string;
21785
+ imported_at?: string;
21786
+ match_method?: string | null;
21787
+ source_id: string;
21788
+ source_shell_id: string;
21789
+ target_id: string;
21790
+ updated_at?: string;
21791
+ };
21792
+ Update: {
21793
+ created_at?: string;
21794
+ entity_type?: string;
21795
+ id?: string;
21796
+ imported_at?: string;
21797
+ match_method?: string | null;
21798
+ source_id?: string;
21799
+ source_shell_id?: string;
21800
+ target_id?: string;
21801
+ updated_at?: string;
21802
+ };
21803
+ Relationships: [];
21804
+ };
21805
+ productontwerp_structure_codes: {
21806
+ Row: {
21807
+ code: string;
21808
+ created_at: string;
21809
+ entity_id: string;
21810
+ entity_type: string;
21811
+ id: string;
21812
+ updated_at: string;
21813
+ };
21814
+ Insert: {
21815
+ code: string;
21816
+ created_at?: string;
21817
+ entity_id: string;
21818
+ entity_type: string;
21819
+ id?: string;
21820
+ updated_at?: string;
21821
+ };
21822
+ Update: {
21823
+ code?: string;
21824
+ created_at?: string;
21825
+ entity_id?: string;
21826
+ entity_type?: string;
21827
+ id?: string;
21828
+ updated_at?: string;
21829
+ };
21830
+ Relationships: [];
21831
+ };
20987
21832
  products: {
20988
21833
  Row: {
20989
21834
  article_number: string | null;
@@ -23978,16 +24823,56 @@ export type Database = {
23978
24823
  }
23979
24824
  ];
23980
24825
  };
24826
+ twinfield_connection_label_log: {
24827
+ Row: {
24828
+ changed_at: string;
24829
+ changed_by: string | null;
24830
+ changed_by_role: string | null;
24831
+ connection_id: string;
24832
+ field: string;
24833
+ id: string;
24834
+ new_value: string | null;
24835
+ note: string | null;
24836
+ office_code: string | null;
24837
+ old_value: string | null;
24838
+ };
24839
+ Insert: {
24840
+ changed_at?: string;
24841
+ changed_by?: string | null;
24842
+ changed_by_role?: string | null;
24843
+ connection_id: string;
24844
+ field: string;
24845
+ id?: string;
24846
+ new_value?: string | null;
24847
+ note?: string | null;
24848
+ office_code?: string | null;
24849
+ old_value?: string | null;
24850
+ };
24851
+ Update: {
24852
+ changed_at?: string;
24853
+ changed_by?: string | null;
24854
+ changed_by_role?: string | null;
24855
+ connection_id?: string;
24856
+ field?: string;
24857
+ id?: string;
24858
+ new_value?: string | null;
24859
+ note?: string | null;
24860
+ office_code?: string | null;
24861
+ old_value?: string | null;
24862
+ };
24863
+ Relationships: [];
24864
+ };
23981
24865
  twinfield_connections: {
23982
24866
  Row: {
23983
24867
  account_key: string | null;
24868
+ central_environment: string | null;
23984
24869
  cluster_uri: string | null;
23985
24870
  company_code: string | null;
23986
24871
  company_name: string | null;
23987
24872
  connected_at: string | null;
23988
24873
  created_at: string;
23989
24874
  disconnected_at: string | null;
23990
- environment: string;
24875
+ environment: string | null;
23991
24876
  granted_scopes: string[] | null;
23992
24877
  id: string;
23993
24878
  initial_sync_completed_at: string | null;
@@ -23996,24 +24881,33 @@ export type Database = {
23996
24881
  initial_sync_started_at: string | null;
23997
24882
  is_active: boolean;
23998
24883
  label: string | null;
24884
+ label_set_at: string | null;
24885
+ label_set_by: string | null;
24886
+ label_source: string | null;
23999
24887
  missing_scopes: string[] | null;
24000
24888
  office_code: string | null;
24889
+ organisation_code: string | null;
24001
24890
  redirect_uri: string | null;
24002
24891
  scope_checked_at: string | null;
24003
24892
  scope_state: string | null;
24004
24893
  superseded_at: string | null;
24005
24894
  updated_at: string;
24006
24895
  user_id: string;
24896
+ write_enabled: boolean;
24897
+ write_enabled_at: string | null;
24898
+ write_enabled_by: string | null;
24899
+ write_enabled_reason: string | null;
24007
24900
  };
24008
24901
  Insert: {
24009
24902
  account_key?: string | null;
24903
+ central_environment?: string | null;
24010
24904
  cluster_uri?: string | null;
24011
24905
  company_code?: string | null;
24012
24906
  company_name?: string | null;
24013
24907
  connected_at?: string | null;
24014
24908
  created_at?: string;
24015
24909
  disconnected_at?: string | null;
24016
- environment: string;
24910
+ environment?: string | null;
24017
24911
  granted_scopes?: string[] | null;
24018
24912
  id?: string;
24019
24913
  initial_sync_completed_at?: string | null;
@@ -24022,24 +24916,33 @@ export type Database = {
24022
24916
  initial_sync_started_at?: string | null;
24023
24917
  is_active?: boolean;
24024
24918
  label?: string | null;
24919
+ label_set_at?: string | null;
24920
+ label_set_by?: string | null;
24921
+ label_source?: string | null;
24025
24922
  missing_scopes?: string[] | null;
24026
24923
  office_code?: string | null;
24924
+ organisation_code?: string | null;
24027
24925
  redirect_uri?: string | null;
24028
24926
  scope_checked_at?: string | null;
24029
24927
  scope_state?: string | null;
24030
24928
  superseded_at?: string | null;
24031
24929
  updated_at?: string;
24032
24930
  user_id: string;
24931
+ write_enabled?: boolean;
24932
+ write_enabled_at?: string | null;
24933
+ write_enabled_by?: string | null;
24934
+ write_enabled_reason?: string | null;
24033
24935
  };
24034
24936
  Update: {
24035
24937
  account_key?: string | null;
24938
+ central_environment?: string | null;
24036
24939
  cluster_uri?: string | null;
24037
24940
  company_code?: string | null;
24038
24941
  company_name?: string | null;
24039
24942
  connected_at?: string | null;
24040
24943
  created_at?: string;
24041
24944
  disconnected_at?: string | null;
24042
- environment?: string;
24945
+ environment?: string | null;
24043
24946
  granted_scopes?: string[] | null;
24044
24947
  id?: string;
24045
24948
  initial_sync_completed_at?: string | null;
@@ -24048,14 +24951,22 @@ export type Database = {
24048
24951
  initial_sync_started_at?: string | null;
24049
24952
  is_active?: boolean;
24050
24953
  label?: string | null;
24954
+ label_set_at?: string | null;
24955
+ label_set_by?: string | null;
24956
+ label_source?: string | null;
24051
24957
  missing_scopes?: string[] | null;
24052
24958
  office_code?: string | null;
24959
+ organisation_code?: string | null;
24053
24960
  redirect_uri?: string | null;
24054
24961
  scope_checked_at?: string | null;
24055
24962
  scope_state?: string | null;
24056
24963
  superseded_at?: string | null;
24057
24964
  updated_at?: string;
24058
24965
  user_id?: string;
24966
+ write_enabled?: boolean;
24967
+ write_enabled_at?: string | null;
24968
+ write_enabled_by?: string | null;
24969
+ write_enabled_reason?: string | null;
24059
24970
  };
24060
24971
  Relationships: [];
24061
24972
  };
@@ -24944,6 +25855,21 @@ export type Database = {
24944
25855
  };
24945
25856
  Relationships: [];
24946
25857
  };
25858
+ twinfield_schema_upgrades: {
25859
+ Row: {
25860
+ applied_at: string;
25861
+ key: string;
25862
+ };
25863
+ Insert: {
25864
+ applied_at?: string;
25865
+ key: string;
25866
+ };
25867
+ Update: {
25868
+ applied_at?: string;
25869
+ key?: string;
25870
+ };
25871
+ Relationships: [];
25872
+ };
24947
25873
  twinfield_session_cache: {
24948
25874
  Row: {
24949
25875
  cluster: string;
@@ -24970,7 +25896,7 @@ export type Database = {
24970
25896
  };
24971
25897
  twinfield_settings: {
24972
25898
  Row: {
24973
- active_environment: string;
25899
+ active_environment: string | null;
24974
25900
  cron_registered_at: string | null;
24975
25901
  cron_registration_error: string | null;
24976
25902
  cron_schedules: Json;
@@ -24980,7 +25906,7 @@ export type Database = {
24980
25906
  updated_at: string;
24981
25907
  };
24982
25908
  Insert: {
24983
- active_environment?: string;
25909
+ active_environment?: string | null;
24984
25910
  cron_registered_at?: string | null;
24985
25911
  cron_registration_error?: string | null;
24986
25912
  cron_schedules?: Json;
@@ -24990,7 +25916,7 @@ export type Database = {
24990
25916
  updated_at?: string;
24991
25917
  };
24992
25918
  Update: {
24993
- active_environment?: string;
25919
+ active_environment?: string | null;
24994
25920
  cron_registered_at?: string | null;
24995
25921
  cron_registration_error?: string | null;
24996
25922
  cron_schedules?: Json;
@@ -28810,6 +29736,10 @@ export type Database = {
28810
29736
  };
28811
29737
  };
28812
29738
  Functions: {
29739
+ _arm_offer_order_retry: {
29740
+ Args: never;
29741
+ Returns: undefined;
29742
+ };
28813
29743
  _floriday_queue_cleanup_batch: {
28814
29744
  Args: {
28815
29745
  p_days: number;
@@ -28837,6 +29767,10 @@ export type Database = {
28837
29767
  };
28838
29768
  Returns: string[][];
28839
29769
  };
29770
+ _layout_is_beheerder: {
29771
+ Args: never;
29772
+ Returns: boolean;
29773
+ };
28840
29774
  _migrate_rewrite_stock_key: {
28841
29775
  Args: {
28842
29776
  _from_key: string;
@@ -28948,6 +29882,15 @@ export type Database = {
28948
29882
  };
28949
29883
  Returns: Json;
28950
29884
  };
29885
+ afh_resolve_cart_id: {
29886
+ Args: {
29887
+ p_cart_index: number;
29888
+ p_given: string;
29889
+ p_order: string;
29890
+ p_source: string;
29891
+ };
29892
+ Returns: string;
29893
+ };
28951
29894
  afh_signup_config: {
28952
29895
  Args: never;
28953
29896
  Returns: Json;
@@ -29052,6 +29995,26 @@ export type Database = {
29052
29995
  Args: never;
29053
29996
  Returns: Json;
29054
29997
  };
29998
+ ai_is_admin: {
29999
+ Args: {
30000
+ _uid: string;
30001
+ };
30002
+ Returns: boolean;
30003
+ };
30004
+ ai_register_consumers: {
30005
+ Args: {
30006
+ _full_list?: boolean;
30007
+ _modules: Json;
30008
+ _source?: string;
30009
+ };
30010
+ Returns: Json;
30011
+ };
30012
+ ai_register_runtime_consumer: {
30013
+ Args: {
30014
+ _module_key: string;
30015
+ };
30016
+ Returns: boolean;
30017
+ };
29055
30018
  ai_usage_by_module: {
29056
30019
  Args: {
29057
30020
  _from: string;
@@ -29759,6 +30722,8 @@ export type Database = {
29759
30722
  cart_index: number;
29760
30723
  cart_number: string;
29761
30724
  cart_number_id: string;
30725
+ country_code: string;
30726
+ crates_on_cart: number;
29762
30727
  order_id: string;
29763
30728
  order_number: string;
29764
30729
  order_source: string;
@@ -30117,6 +31082,30 @@ export type Database = {
30117
31082
  };
30118
31083
  Returns: boolean;
30119
31084
  };
31085
+ floricode_sync_cron_schedule: {
31086
+ Args: {
31087
+ p_apikey: string;
31088
+ p_schedule: string;
31089
+ p_url: string;
31090
+ };
31091
+ Returns: number;
31092
+ };
31093
+ floricode_sync_cron_set_schedule: {
31094
+ Args: {
31095
+ p_schedule: string;
31096
+ };
31097
+ Returns: boolean;
31098
+ };
31099
+ floricode_sync_cron_status: {
31100
+ Args: never;
31101
+ Returns: {
31102
+ active: boolean;
31103
+ last_run_at: string;
31104
+ last_run_status: string;
31105
+ schedule: string;
31106
+ scheduled: boolean;
31107
+ }[];
31108
+ };
30120
31109
  floriday_adopt_connection: {
30121
31110
  Args: {
30122
31111
  p_new: string;
@@ -30128,6 +31117,14 @@ export type Database = {
30128
31117
  Args: never;
30129
31118
  Returns: Json;
30130
31119
  };
31120
+ floriday_background_jobs_status: {
31121
+ Args: never;
31122
+ Returns: {
31123
+ active: boolean;
31124
+ jobname: string;
31125
+ schedule: string;
31126
+ }[];
31127
+ };
30131
31128
  floriday_capture_stock_snapshot: {
30132
31129
  Args: never;
30133
31130
  Returns: number;
@@ -30140,6 +31137,18 @@ export type Database = {
30140
31137
  Args: never;
30141
31138
  Returns: undefined;
30142
31139
  };
31140
+ floriday_customer_candidates: {
31141
+ Args: never;
31142
+ Returns: {
31143
+ in_cache: boolean;
31144
+ organization_id: string;
31145
+ reason: string;
31146
+ }[];
31147
+ };
31148
+ floriday_customer_promotion_preview: {
31149
+ Args: never;
31150
+ Returns: Json;
31151
+ };
30143
31152
  floriday_default_owner: {
30144
31153
  Args: {
30145
31154
  p_connection_id: string;
@@ -30176,16 +31185,74 @@ export type Database = {
30176
31185
  source_id: string;
30177
31186
  }[];
30178
31187
  };
31188
+ floriday_eigen_organisatie: {
31189
+ Args: never;
31190
+ Returns: {
31191
+ adres: string;
31192
+ gln: string;
31193
+ land: string;
31194
+ naam: string;
31195
+ opgehaald_op: string;
31196
+ organisatie_id: string;
31197
+ plaats: string;
31198
+ postcode: string;
31199
+ }[];
31200
+ };
31201
+ floriday_erp_leading_preview: {
31202
+ Args: {
31203
+ p_connection_id: string;
31204
+ p_product_ids: string[];
31205
+ p_stock_mode?: string;
31206
+ };
31207
+ Returns: {
31208
+ blocker: string;
31209
+ desired_available: boolean;
31210
+ desired_quantity: number;
31211
+ horizon_weeks: number;
31212
+ offer_forms: Json;
31213
+ product_id: string;
31214
+ product_name: string;
31215
+ sale_price: number;
31216
+ stock_mode: string;
31217
+ trade_item_id: string;
31218
+ weeks: Json;
31219
+ }[];
31220
+ };
30179
31221
  floriday_fill_publish_horizon: {
30180
31222
  Args: never;
30181
31223
  Returns: number;
30182
31224
  };
31225
+ floriday_follow_apply: {
31226
+ Args: {
31227
+ p_connection_id: string;
31228
+ p_items: Json;
31229
+ };
31230
+ Returns: Json;
31231
+ };
30183
31232
  floriday_ingest_sales_orders: {
30184
31233
  Args: {
30185
31234
  p_limit?: number;
30186
31235
  };
30187
31236
  Returns: number;
30188
31237
  };
31238
+ floriday_leading_summary: {
31239
+ Args: {
31240
+ p_connection_id: string;
31241
+ };
31242
+ Returns: Json;
31243
+ };
31244
+ floriday_legacy_packing_sync_present: {
31245
+ Args: never;
31246
+ Returns: Json;
31247
+ };
31248
+ floriday_make_erp_leading: {
31249
+ Args: {
31250
+ p_connection_id: string;
31251
+ p_product_ids: string[];
31252
+ p_stock_mode?: string;
31253
+ };
31254
+ Returns: Json;
31255
+ };
30189
31256
  floriday_network_status: {
30190
31257
  Args: {
30191
31258
  p_organization_id: string;
@@ -30197,6 +31264,12 @@ export type Database = {
30197
31264
  synced_at: string;
30198
31265
  }[];
30199
31266
  };
31267
+ floriday_norm_offer_forms: {
31268
+ Args: {
31269
+ p: Json;
31270
+ };
31271
+ Returns: Json;
31272
+ };
30200
31273
  floriday_orphan_settings_count: {
30201
31274
  Args: never;
30202
31275
  Returns: number;
@@ -30225,10 +31298,34 @@ export type Database = {
30225
31298
  };
30226
31299
  Returns: number;
30227
31300
  };
31301
+ floriday_takeover_apply: {
31302
+ Args: {
31303
+ p_connection_id: string;
31304
+ p_items: Json;
31305
+ };
31306
+ Returns: Json;
31307
+ };
31308
+ floriday_takeover_fetch_state: {
31309
+ Args: {
31310
+ p_connection_id: string;
31311
+ p_entity?: string;
31312
+ };
31313
+ Returns: string;
31314
+ };
31315
+ floriday_takeover_undo: {
31316
+ Args: {
31317
+ p_run_id: string;
31318
+ };
31319
+ Returns: Json;
31320
+ };
30228
31321
  floriday_today_announce_summary: {
30229
31322
  Args: never;
30230
31323
  Returns: Json;
30231
31324
  };
31325
+ floriday_write_mode: {
31326
+ Args: never;
31327
+ Returns: Json;
31328
+ };
30232
31329
  format_cart_number: {
30233
31330
  Args: {
30234
31331
  p_pick_date: string;
@@ -31087,6 +32184,29 @@ export type Database = {
31087
32184
  };
31088
32185
  Returns: boolean;
31089
32186
  };
32187
+ klanten_auto_promote_status: {
32188
+ Args: never;
32189
+ Returns: Json;
32190
+ };
32191
+ klanten_install_check: {
32192
+ Args: never;
32193
+ Returns: Json;
32194
+ };
32195
+ klanten_promote_round: {
32196
+ Args: never;
32197
+ Returns: Json;
32198
+ };
32199
+ klanten_refresh_grouped_if_stale: {
32200
+ Args: never;
32201
+ Returns: boolean;
32202
+ };
32203
+ klanten_set_auto_promote: {
32204
+ Args: {
32205
+ p_kind: string;
32206
+ p_on: boolean;
32207
+ };
32208
+ Returns: Json;
32209
+ };
31090
32210
  layout_print_document: {
31091
32211
  Args: {
31092
32212
  _documentnaam: string;
@@ -31113,6 +32233,18 @@ export type Database = {
31113
32233
  status: string;
31114
32234
  }[];
31115
32235
  };
32236
+ layout_standaard_overnemen: {
32237
+ Args: {
32238
+ _layout_id: string;
32239
+ };
32240
+ Returns: Json;
32241
+ };
32242
+ layout_versie_terugzetten: {
32243
+ Args: {
32244
+ _versie_id: string;
32245
+ };
32246
+ Returns: number;
32247
+ };
31116
32248
  layout_verwijzing_omzetten: {
31117
32249
  Args: {
31118
32250
  _nieuw: string;
@@ -31126,6 +32258,17 @@ export type Database = {
31126
32258
  Args: never;
31127
32259
  Returns: Json;
31128
32260
  };
32261
+ layout_voor_document: {
32262
+ Args: {
32263
+ p_documenttype: string;
32264
+ p_order_id: string;
32265
+ };
32266
+ Returns: Json;
32267
+ };
32268
+ layout_zorg_systeemlayouts: {
32269
+ Args: never;
32270
+ Returns: number;
32271
+ };
31129
32272
  list_medewerkers: {
31130
32273
  Args: never;
31131
32274
  Returns: {
@@ -31217,6 +32360,14 @@ export type Database = {
31217
32360
  };
31218
32361
  Returns: string;
31219
32362
  };
32363
+ log_offer_event_by_code: {
32364
+ Args: {
32365
+ p_code: string;
32366
+ p_event_type: string;
32367
+ p_metadata?: Json;
32368
+ };
32369
+ Returns: boolean;
32370
+ };
31220
32371
  logistics_active_layout_method: {
31221
32372
  Args: never;
31222
32373
  Returns: string;
@@ -31400,6 +32551,14 @@ export type Database = {
31400
32551
  Args: never;
31401
32552
  Returns: number;
31402
32553
  };
32554
+ logistics_belading_bevestig: {
32555
+ Args: {
32556
+ p_order_id: string;
32557
+ p_redenen?: string[];
32558
+ p_sleutel: string;
32559
+ };
32560
+ Returns: Json;
32561
+ };
31403
32562
  logistics_belading_verstuurder: {
31404
32563
  Args: never;
31405
32564
  Returns: string;
@@ -31640,6 +32799,12 @@ export type Database = {
31640
32799
  };
31641
32800
  Returns: boolean;
31642
32801
  };
32802
+ logistics_cart_has_packing_slip: {
32803
+ Args: {
32804
+ p_cart_id: string;
32805
+ };
32806
+ Returns: boolean;
32807
+ };
31643
32808
  logistics_cart_ids_frozen: {
31644
32809
  Args: {
31645
32810
  p_cart_ids: string[];
@@ -31780,6 +32945,16 @@ export type Database = {
31780
32945
  order_uuid: string;
31781
32946
  }[];
31782
32947
  };
32948
+ logistics_cart_seq_dubbel: {
32949
+ Args: {
32950
+ p_order_uuid?: string;
32951
+ };
32952
+ Returns: {
32953
+ cart_ids: string[];
32954
+ cart_index: number;
32955
+ order_uuid: string;
32956
+ }[];
32957
+ };
31783
32958
  logistics_cart_slip_plan: {
31784
32959
  Args: {
31785
32960
  p_order_id: string;
@@ -32198,6 +33373,14 @@ export type Database = {
32198
33373
  p_delivery_date: string;
32199
33374
  p_delivery_location: string;
32200
33375
  p_moment_key?: string;
33376
+ p_own_transport?: boolean;
33377
+ };
33378
+ Returns: Json;
33379
+ };
33380
+ logistics_document_for_order: {
33381
+ Args: {
33382
+ p_documenttype: string;
33383
+ p_order_id: string;
32201
33384
  };
32202
33385
  Returns: Json;
32203
33386
  };
@@ -32214,6 +33397,10 @@ export type Database = {
32214
33397
  };
32215
33398
  Returns: Json;
32216
33399
  };
33400
+ logistics_document_selection_status: {
33401
+ Args: never;
33402
+ Returns: Json;
33403
+ };
32217
33404
  logistics_document_station: {
32218
33405
  Args: {
32219
33406
  _document_code: string;
@@ -32284,6 +33471,10 @@ export type Database = {
32284
33471
  };
32285
33472
  Returns: Json;
32286
33473
  };
33474
+ logistics_ensure_runtime_defaults: {
33475
+ Args: never;
33476
+ Returns: undefined;
33477
+ };
32287
33478
  logistics_ensure_shipping_notes: {
32288
33479
  Args: {
32289
33480
  p_limit?: number;
@@ -32452,6 +33643,10 @@ export type Database = {
32452
33643
  Args: never;
32453
33644
  Returns: Json;
32454
33645
  };
33646
+ logistics_floriday_is_read_only: {
33647
+ Args: never;
33648
+ Returns: boolean;
33649
+ };
32455
33650
  logistics_floriday_layout_id: {
32456
33651
  Args: {
32457
33652
  p_documenttype: string;
@@ -32492,6 +33687,13 @@ export type Database = {
32492
33687
  };
32493
33688
  Returns: number;
32494
33689
  };
33690
+ logistics_floriday_push_hold_read_only: {
33691
+ Args: {
33692
+ _id: string;
33693
+ _revision: number;
33694
+ };
33695
+ Returns: string;
33696
+ };
32495
33697
  logistics_floriday_queue_push: {
32496
33698
  Args: {
32497
33699
  _order_ref: string;
@@ -32500,6 +33702,16 @@ export type Database = {
32500
33702
  };
32501
33703
  Returns: string;
32502
33704
  };
33705
+ logistics_floriday_release_read_only: {
33706
+ Args: never;
33707
+ Returns: Json;
33708
+ };
33709
+ logistics_floriday_shipping_document: {
33710
+ Args: {
33711
+ p_order_id: string;
33712
+ };
33713
+ Returns: Json;
33714
+ };
32503
33715
  logistics_floriday_status_updates_enabled: {
32504
33716
  Args: never;
32505
33717
  Returns: boolean;
@@ -32651,6 +33863,12 @@ export type Database = {
32651
33863
  };
32652
33864
  Returns: string;
32653
33865
  };
33866
+ logistics_nl_date: {
33867
+ Args: {
33868
+ p_day: string;
33869
+ };
33870
+ Returns: string;
33871
+ };
32654
33872
  logistics_nl_moment: {
32655
33873
  Args: {
32656
33874
  p_at: string;
@@ -32863,6 +34081,12 @@ export type Database = {
32863
34081
  };
32864
34082
  Returns: boolean;
32865
34083
  };
34084
+ logistics_order_is_shipped_status: {
34085
+ Args: {
34086
+ p_status: string;
34087
+ };
34088
+ Returns: boolean;
34089
+ };
32866
34090
  logistics_order_is_topick: {
32867
34091
  Args: {
32868
34092
  p_order_id: string;
@@ -33001,6 +34225,40 @@ export type Database = {
33001
34225
  Args: never;
33002
34226
  Returns: Json;
33003
34227
  };
34228
+ logistics_own_sticker_count: {
34229
+ Args: {
34230
+ p_ppc_product: number;
34231
+ p_ppc_regel: number;
34232
+ p_quantity: number;
34233
+ p_unit: string;
34234
+ };
34235
+ Returns: number;
34236
+ };
34237
+ logistics_own_sticker_sync: {
34238
+ Args: {
34239
+ p_limit?: number;
34240
+ };
34241
+ Returns: Json;
34242
+ };
34243
+ logistics_own_transport_departure: {
34244
+ Args: {
34245
+ p_delivery_date: string;
34246
+ p_pickup_at: string;
34247
+ };
34248
+ Returns: Json;
34249
+ };
34250
+ logistics_own_traysticker_payload: {
34251
+ Args: {
34252
+ p_id: string;
34253
+ };
34254
+ Returns: Json;
34255
+ };
34256
+ logistics_own_traysticker_sync: {
34257
+ Args: {
34258
+ p_limit?: number;
34259
+ };
34260
+ Returns: Json;
34261
+ };
33004
34262
  logistics_packing_autofix: {
33005
34263
  Args: {
33006
34264
  p_limit?: number;
@@ -33301,6 +34559,15 @@ export type Database = {
33301
34559
  Args: never;
33302
34560
  Returns: number;
33303
34561
  };
34562
+ logistics_plan_queue_dubbel: {
34563
+ Args: never;
34564
+ Returns: {
34565
+ nieuwste: string;
34566
+ open_opdrachten: number;
34567
+ order_id: string;
34568
+ oudste: string;
34569
+ }[];
34570
+ };
33304
34571
  logistics_plan_queue_list: {
33305
34572
  Args: {
33306
34573
  p_limit?: number;
@@ -33342,6 +34609,13 @@ export type Database = {
33342
34609
  };
33343
34610
  Returns: number;
33344
34611
  };
34612
+ logistics_plan_retry_later: {
34613
+ Args: {
34614
+ p_id: string;
34615
+ p_seconds?: number;
34616
+ };
34617
+ Returns: undefined;
34618
+ };
33345
34619
  logistics_plan_setting: {
33346
34620
  Args: {
33347
34621
  p_default: number;
@@ -33546,6 +34820,12 @@ export type Database = {
33546
34820
  };
33547
34821
  Returns: Json;
33548
34822
  };
34823
+ logistics_register_tick_apikey: {
34824
+ Args: {
34825
+ p_key: string;
34826
+ };
34827
+ Returns: Json;
34828
+ };
33549
34829
  logistics_replan_all: {
33550
34830
  Args: {
33551
34831
  p_reason?: string;
@@ -33817,6 +35097,10 @@ export type Database = {
33817
35097
  peer_order_id: string;
33818
35098
  }[];
33819
35099
  };
35100
+ logistics_shell_base_url: {
35101
+ Args: never;
35102
+ Returns: string;
35103
+ };
33820
35104
  logistics_shift_to_workday: {
33821
35105
  Args: {
33822
35106
  p_days: string[];
@@ -33896,6 +35180,12 @@ export type Database = {
33896
35180
  };
33897
35181
  Returns: boolean;
33898
35182
  };
35183
+ logistics_slip_is_herprint: {
35184
+ Args: {
35185
+ p_slip_job_id: string;
35186
+ };
35187
+ Returns: boolean;
35188
+ };
33899
35189
  logistics_slip_note_claim: {
33900
35190
  Args: {
33901
35191
  _lease_seconds?: number;
@@ -33969,6 +35259,12 @@ export type Database = {
33969
35259
  };
33970
35260
  Returns: undefined;
33971
35261
  };
35262
+ logistics_slip_note_hold_read_only: {
35263
+ Args: {
35264
+ _id: string;
35265
+ };
35266
+ Returns: undefined;
35267
+ };
33972
35268
  logistics_slip_note_keep_waiting: {
33973
35269
  Args: {
33974
35270
  _class?: string;
@@ -33987,6 +35283,12 @@ export type Database = {
33987
35283
  };
33988
35284
  Returns: Json;
33989
35285
  };
35286
+ logistics_slip_note_skip_herprint: {
35287
+ Args: {
35288
+ _id: string;
35289
+ };
35290
+ Returns: undefined;
35291
+ };
33990
35292
  logistics_status_after_shipping: {
33991
35293
  Args: {
33992
35294
  p_status: string;
@@ -34101,6 +35403,12 @@ export type Database = {
34101
35403
  Args: never;
34102
35404
  Returns: Json;
34103
35405
  };
35406
+ logistics_sync_stock_alert_email_status: {
35407
+ Args: {
35408
+ p_limit?: number;
35409
+ };
35410
+ Returns: Json;
35411
+ };
34104
35412
  logistics_sync_task_carriers: {
34105
35413
  Args: {
34106
35414
  p_order_ref?: string;
@@ -34342,6 +35650,15 @@ export type Database = {
34342
35650
  };
34343
35651
  Returns: Json;
34344
35652
  };
35653
+ logistics_tray_plants: {
35654
+ Args: {
35655
+ p_fust: number;
35656
+ p_fusten: number;
35657
+ p_ppc: number;
35658
+ p_regel_totaal: number;
35659
+ };
35660
+ Returns: number;
35661
+ };
34345
35662
  logistics_try_uuid: {
34346
35663
  Args: {
34347
35664
  p: string;
@@ -34389,6 +35706,12 @@ export type Database = {
34389
35706
  };
34390
35707
  Returns: boolean;
34391
35708
  };
35709
+ logistics_verkoop_order_link: {
35710
+ Args: {
35711
+ p_order_id: string;
35712
+ };
35713
+ Returns: string;
35714
+ };
34392
35715
  logistics_working_hours_status: {
34393
35716
  Args: never;
34394
35717
  Returns: Json;
@@ -34405,6 +35728,14 @@ export type Database = {
34405
35728
  };
34406
35729
  Returns: number;
34407
35730
  };
35731
+ mailbox_claim_analysis: {
35732
+ Args: {
35733
+ p_force?: boolean;
35734
+ p_message_id: string;
35735
+ p_trigger?: string;
35736
+ };
35737
+ Returns: Json;
35738
+ };
34408
35739
  mark_offer_clicked: {
34409
35740
  Args: {
34410
35741
  p_code: string;
@@ -35332,6 +36663,13 @@ export type Database = {
35332
36663
  };
35333
36664
  Returns: Json;
35334
36665
  };
36666
+ pickstation_document_for_order: {
36667
+ Args: {
36668
+ p_queue_item_id: string;
36669
+ p_slug: string;
36670
+ };
36671
+ Returns: Json;
36672
+ };
35335
36673
  pickstation_get_orders_raw: {
35336
36674
  Args: never;
35337
36675
  Returns: Json;
@@ -35698,6 +37036,34 @@ export type Database = {
35698
37036
  };
35699
37037
  Returns: Record<string, unknown>;
35700
37038
  };
37039
+ product_packings_derive: {
37040
+ Args: {
37041
+ p_product_id: string;
37042
+ };
37043
+ Returns: undefined;
37044
+ };
37045
+ product_packings_replace: {
37046
+ Args: {
37047
+ p_packings: Json;
37048
+ p_product_id: string;
37049
+ p_source: string;
37050
+ };
37051
+ Returns: number;
37052
+ };
37053
+ product_packings_sync_from_floriday: {
37054
+ Args: {
37055
+ p_connection_id: string;
37056
+ p_only_existing?: boolean;
37057
+ p_product_ids: string[];
37058
+ };
37059
+ Returns: Json;
37060
+ };
37061
+ product_primary_pieces: {
37062
+ Args: {
37063
+ p_product_id: string;
37064
+ };
37065
+ Returns: number;
37066
+ };
35701
37067
  product_set_depth_above: {
35702
37068
  Args: {
35703
37069
  p_path?: string[];
@@ -35735,6 +37101,60 @@ export type Database = {
35735
37101
  };
35736
37102
  Returns: string;
35737
37103
  };
37104
+ productontwerp_can_write: {
37105
+ Args: never;
37106
+ Returns: boolean;
37107
+ };
37108
+ productontwerp_create_missing_products: {
37109
+ Args: {
37110
+ p_items: Json;
37111
+ p_run_id: string;
37112
+ };
37113
+ Returns: Json;
37114
+ };
37115
+ productontwerp_export: {
37116
+ Args: never;
37117
+ Returns: Json;
37118
+ };
37119
+ productontwerp_import: {
37120
+ Args: {
37121
+ p_dry_run: boolean;
37122
+ p_payload: Json;
37123
+ };
37124
+ Returns: Json;
37125
+ };
37126
+ productontwerp_nl_error: {
37127
+ Args: {
37128
+ p_detail: string;
37129
+ p_msg: string;
37130
+ p_state: string;
37131
+ };
37132
+ Returns: string;
37133
+ };
37134
+ productontwerp_product_ref: {
37135
+ Args: {
37136
+ p_id: string;
37137
+ };
37138
+ Returns: Json;
37139
+ };
37140
+ productontwerp_queue_count: {
37141
+ Args: never;
37142
+ Returns: number;
37143
+ };
37144
+ productontwerp_rollback_created_products: {
37145
+ Args: {
37146
+ p_run_id: string;
37147
+ };
37148
+ Returns: Json;
37149
+ };
37150
+ productontwerp_unique_group_name: {
37151
+ Args: {
37152
+ p_article: string;
37153
+ p_base: string;
37154
+ p_used: string[];
37155
+ };
37156
+ Returns: string;
37157
+ };
35738
37158
  promote_floriday_customer: {
35739
37159
  Args: {
35740
37160
  _org_id: string;
@@ -35900,6 +37320,13 @@ export type Database = {
35900
37320
  };
35901
37321
  Returns: undefined;
35902
37322
  };
37323
+ record_offer_order_failure: {
37324
+ Args: {
37325
+ p_error: string;
37326
+ p_offer_order_id: string;
37327
+ };
37328
+ Returns: undefined;
37329
+ };
35903
37330
  refresh_external_customers_grouped: {
35904
37331
  Args: never;
35905
37332
  Returns: undefined;
@@ -36036,6 +37463,10 @@ export type Database = {
36036
37463
  };
36037
37464
  Returns: string;
36038
37465
  };
37466
+ retry_offer_orders: {
37467
+ Args: never;
37468
+ Returns: number;
37469
+ };
36039
37470
  retry_twinfield_push: {
36040
37471
  Args: {
36041
37472
  _customer_id: string;
@@ -36075,6 +37506,10 @@ export type Database = {
36075
37506
  Args: never;
36076
37507
  Returns: undefined;
36077
37508
  };
37509
+ run_floriday_follow: {
37510
+ Args: never;
37511
+ Returns: undefined;
37512
+ };
36078
37513
  run_floriday_stock_queue_process: {
36079
37514
  Args: never;
36080
37515
  Returns: undefined;
@@ -36189,6 +37624,18 @@ export type Database = {
36189
37624
  };
36190
37625
  Returns: Json;
36191
37626
  };
37627
+ scan_kar_logs: {
37628
+ Args: {
37629
+ p_cart_ids: string[];
37630
+ };
37631
+ Returns: {
37632
+ created_at: string;
37633
+ kar_id: string;
37634
+ medewerker_naam: string;
37635
+ message: string;
37636
+ result: string;
37637
+ }[];
37638
+ };
36192
37639
  scan_kar_regels: {
36193
37640
  Args: {
36194
37641
  p_cart_id: string;
@@ -36206,6 +37653,7 @@ export type Database = {
36206
37653
  scan_log_code: {
36207
37654
  Args: {
36208
37655
  p_code: string;
37656
+ p_kar_id?: string;
36209
37657
  p_latency_ms?: number;
36210
37658
  p_medewerker?: string;
36211
37659
  p_message?: string;
@@ -36440,6 +37888,13 @@ export type Database = {
36440
37888
  };
36441
37889
  Returns: number;
36442
37890
  };
37891
+ schedule_floriday_customer_offers_sync: {
37892
+ Args: {
37893
+ p_apikey: string;
37894
+ p_url: string;
37895
+ };
37896
+ Returns: number;
37897
+ };
36443
37898
  schedule_floriday_customer_organizations_sync: {
36444
37899
  Args: {
36445
37900
  p_apikey: string;
@@ -36645,6 +38100,12 @@ export type Database = {
36645
38100
  };
36646
38101
  Returns: undefined;
36647
38102
  };
38103
+ set_primary_delivery_location: {
38104
+ Args: {
38105
+ p_location_id: string;
38106
+ };
38107
+ Returns: undefined;
38108
+ };
36648
38109
  set_product_stock: {
36649
38110
  Args: {
36650
38111
  p_incoming_stock?: number;
@@ -36826,12 +38287,6 @@ export type Database = {
36826
38287
  Args: never;
36827
38288
  Returns: undefined;
36828
38289
  };
36829
- sync_cached_packing_from_product: {
36830
- Args: {
36831
- p_product_id: string;
36832
- };
36833
- Returns: undefined;
36834
- };
36835
38290
  sync_floriday_prices_into_price_groups: {
36836
38291
  Args: never;
36837
38292
  Returns: number;
@@ -36842,12 +38297,6 @@ export type Database = {
36842
38297
  };
36843
38298
  Returns: undefined;
36844
38299
  };
36845
- sync_order_cart_item_packing_from_product: {
36846
- Args: {
36847
- p_product_id: string;
36848
- };
36849
- Returns: undefined;
36850
- };
36851
38300
  sync_order_item_fusten: {
36852
38301
  Args: {
36853
38302
  _order_item_id: string;
@@ -36860,12 +38309,6 @@ export type Database = {
36860
38309
  };
36861
38310
  Returns: undefined;
36862
38311
  };
36863
- sync_product_packing_from_floriday_cache: {
36864
- Args: {
36865
- p_floriday_id: string;
36866
- };
36867
- Returns: undefined;
36868
- };
36869
38312
  sync_sick_time_off: {
36870
38313
  Args: {
36871
38314
  _period_id: string;
@@ -36896,12 +38339,48 @@ export type Database = {
36896
38339
  };
36897
38340
  Returns: boolean;
36898
38341
  };
38342
+ twinfield_auth_install_check: {
38343
+ Args: never;
38344
+ Returns: {
38345
+ object_kind: string;
38346
+ object_name: string;
38347
+ present: boolean;
38348
+ schema_version: string;
38349
+ }[];
38350
+ };
38351
+ twinfield_cancel_queue_item: {
38352
+ Args: {
38353
+ p_id: string;
38354
+ };
38355
+ Returns: boolean;
38356
+ };
36899
38357
  twinfield_connection_offices: {
36900
38358
  Args: never;
36901
38359
  Returns: {
38360
+ company_name: string;
38361
+ connection_id: string;
38362
+ environment: string;
38363
+ in_shell_omgeving: boolean;
38364
+ is_active: boolean;
38365
+ label_source: string;
38366
+ office_code: string;
38367
+ }[];
38368
+ };
38369
+ twinfield_connection_usage: {
38370
+ Args: never;
38371
+ Returns: {
38372
+ archived: boolean;
38373
+ company_name: string;
38374
+ connected_at: string;
36902
38375
  connection_id: string;
38376
+ environment: string;
38377
+ gebruikt_door_facturatie: boolean;
38378
+ in_shell_omgeving: boolean;
36903
38379
  is_active: boolean;
38380
+ label_source: string;
38381
+ leest: boolean;
36904
38382
  office_code: string;
38383
+ user_id: string;
36905
38384
  }[];
36906
38385
  };
36907
38386
  twinfield_cron_lock_acquire: {
@@ -36925,6 +38404,19 @@ export type Database = {
36925
38404
  };
36926
38405
  Returns: Json;
36927
38406
  };
38407
+ twinfield_gated_queue: {
38408
+ Args: {
38409
+ p_connection_id: string;
38410
+ };
38411
+ Returns: {
38412
+ action: string;
38413
+ created_at: string;
38414
+ customer_id: string;
38415
+ id: string;
38416
+ payload: Json;
38417
+ status: string;
38418
+ }[];
38419
+ };
36928
38420
  twinfield_handle_administration_change: {
36929
38421
  Args: {
36930
38422
  _administration_code: string;
@@ -36932,10 +38424,28 @@ export type Database = {
36932
38424
  };
36933
38425
  Returns: undefined;
36934
38426
  };
38427
+ twinfield_is_admin: {
38428
+ Args: never;
38429
+ Returns: boolean;
38430
+ };
38431
+ twinfield_mark_label_pending: {
38432
+ Args: {
38433
+ p_connection_id: string;
38434
+ };
38435
+ Returns: boolean;
38436
+ };
36935
38437
  twinfield_prune_push_queue: {
36936
38438
  Args: never;
36937
38439
  Returns: number;
36938
38440
  };
38441
+ twinfield_record_central_facts: {
38442
+ Args: {
38443
+ p_central_environment: string;
38444
+ p_connection_id: string;
38445
+ p_organisation_code: string;
38446
+ };
38447
+ Returns: Json;
38448
+ };
36939
38449
  twinfield_register_cron: {
36940
38450
  Args: {
36941
38451
  apikey?: string;
@@ -36943,6 +38453,21 @@ export type Database = {
36943
38453
  };
36944
38454
  Returns: Json;
36945
38455
  };
38456
+ twinfield_set_connection_label: {
38457
+ Args: {
38458
+ p_also_shell?: boolean;
38459
+ p_connection_id: string;
38460
+ p_environment: string;
38461
+ };
38462
+ Returns: Json;
38463
+ };
38464
+ twinfield_set_write_enabled: {
38465
+ Args: {
38466
+ p_connection_id: string;
38467
+ p_enabled: boolean;
38468
+ };
38469
+ Returns: Json;
38470
+ };
36946
38471
  twinfield_sync_apply: {
36947
38472
  Args: {
36948
38473
  _base: Json;
@@ -36979,6 +38504,12 @@ export type Database = {
36979
38504
  };
36980
38505
  Returns: Json;
36981
38506
  };
38507
+ twinfield_write_allowed: {
38508
+ Args: {
38509
+ p_connection_id: string;
38510
+ };
38511
+ Returns: boolean;
38512
+ };
36982
38513
  upsert_auto_fulfillment_log: {
36983
38514
  Args: {
36984
38515
  p_connection_id: string;
@@ -37493,6 +39024,67 @@ export type Database = {
37493
39024
  };
37494
39025
  Returns: number;
37495
39026
  };
39027
+ verkoop_create_order: {
39028
+ Args: {
39029
+ p_accept_late_signup?: boolean;
39030
+ p_accepted_by?: string;
39031
+ p_carrier_id: string;
39032
+ p_customer_id: string;
39033
+ p_customer_reference?: string;
39034
+ p_delivery_date: string;
39035
+ p_delivery_location_id: string;
39036
+ p_lines: Json;
39037
+ p_moment_key?: string;
39038
+ p_notes?: string;
39039
+ p_own_transport?: boolean;
39040
+ p_source: string;
39041
+ p_source_id: string;
39042
+ };
39043
+ Returns: Json;
39044
+ };
39045
+ verkoop_insert_manual_order: {
39046
+ Args: {
39047
+ p_idempotency_key: string;
39048
+ p_items: Json;
39049
+ p_order: Json;
39050
+ };
39051
+ Returns: Json;
39052
+ };
39053
+ verkoop_packing_drift_apply: {
39054
+ Args: {
39055
+ p_order_ids: string[];
39056
+ };
39057
+ Returns: {
39058
+ lines_updated: number;
39059
+ order_id: string;
39060
+ order_number: string;
39061
+ replan_event: string;
39062
+ }[];
39063
+ };
39064
+ verkoop_packing_drift_report: {
39065
+ Args: never;
39066
+ Returns: {
39067
+ afgesloten: boolean;
39068
+ cache_match: string;
39069
+ cur_crates_per_layer: number;
39070
+ cur_layers_per_cart: number;
39071
+ cur_load_carrier_type: string;
39072
+ cur_packing_source: string;
39073
+ cur_plants_per_crate: number;
39074
+ cur_vbn_package_code: string;
39075
+ fd_crates_per_layer: number;
39076
+ fd_layers_per_cart: number;
39077
+ fd_load_carrier_type: string;
39078
+ fd_plants_per_crate: number;
39079
+ fd_vbn_package_code: string;
39080
+ order_id: string;
39081
+ order_item_id: string;
39082
+ order_number: string;
39083
+ order_status: string;
39084
+ sales_order_id: string;
39085
+ vastgezet: boolean;
39086
+ }[];
39087
+ };
37496
39088
  vervang_printer: {
37497
39089
  Args: {
37498
39090
  _nieuw: string;
@@ -37506,6 +39098,15 @@ export type Database = {
37506
39098
  };
37507
39099
  Returns: Json;
37508
39100
  };
39101
+ voorraad_alert_floriday_not_updated: {
39102
+ Args: {
39103
+ p_key: string;
39104
+ p_order_id: string;
39105
+ p_order_item_id: string;
39106
+ p_qty: number;
39107
+ };
39108
+ Returns: undefined;
39109
+ };
37509
39110
  voorraad_can_write: {
37510
39111
  Args: never;
37511
39112
  Returns: boolean;
@@ -37528,6 +39129,12 @@ export type Database = {
37528
39129
  };
37529
39130
  Returns: string[];
37530
39131
  };
39132
+ voorraad_floriday_leads_key: {
39133
+ Args: {
39134
+ p_key: string;
39135
+ };
39136
+ Returns: boolean;
39137
+ };
37531
39138
  voorraad_hook_base_url: {
37532
39139
  Args: never;
37533
39140
  Returns: string;
@@ -37545,10 +39152,23 @@ export type Database = {
37545
39152
  };
37546
39153
  Returns: undefined;
37547
39154
  };
39155
+ voorraad_mark_floriday_sold_before_switch: {
39156
+ Args: {
39157
+ p_product_id: string;
39158
+ };
39159
+ Returns: number;
39160
+ };
37548
39161
  voorraad_production_enabled: {
37549
39162
  Args: never;
37550
39163
  Returns: boolean;
37551
39164
  };
39165
+ voorraad_schema_ddl: {
39166
+ Args: {
39167
+ p_functions: string[];
39168
+ p_tables: string[];
39169
+ };
39170
+ Returns: string;
39171
+ };
37552
39172
  voorraad_week_is_past: {
37553
39173
  Args: {
37554
39174
  p_week: number;