@flowselections/floriday-afhandeling-module 1.0.73 → 1.0.76

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 (26) 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/integrations/supabase/previewAuthStorage.d.ts +11 -5
  6. package/dist-lib/integrations/supabase/previewAuthStorage.d.ts.map +1 -1
  7. package/dist-lib/integrations/supabase/previewAuthStorage.js +38 -21
  8. package/dist-lib/integrations/supabase/types.d.ts +1445 -15
  9. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  10. package/dist-lib/lib/cartAssignments.functions.d.ts.map +1 -1
  11. package/dist-lib/lib/cartAssignments.functions.js +12 -11
  12. package/dist-lib/lib/cartControl.functions.d.ts.map +1 -1
  13. package/dist-lib/lib/cartControl.functions.js +17 -16
  14. package/dist-lib/lib/cartSeqFout.d.ts +11 -0
  15. package/dist-lib/lib/cartSeqFout.d.ts.map +1 -0
  16. package/dist-lib/lib/cartSeqFout.js +18 -0
  17. package/dist-lib/lib/controleLijst.functions.d.ts +26 -0
  18. package/dist-lib/lib/controleLijst.functions.d.ts.map +1 -0
  19. package/dist-lib/lib/controleLijst.functions.js +55 -0
  20. package/dist-lib/lib/controleLijstPayload.d.ts +32 -0
  21. package/dist-lib/lib/controleLijstPayload.d.ts.map +1 -0
  22. package/dist-lib/lib/controleLijstPayload.js +92 -0
  23. package/dist-lib/lib/controleLijstPayload.test.d.ts +2 -0
  24. package/dist-lib/lib/controleLijstPayload.test.d.ts.map +1 -0
  25. package/dist-lib/lib/controleLijstPayload.test.js +34 -0
  26. package/package.json +1 -1
@@ -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;
@@ -3770,6 +3829,8 @@ export type Database = {
3770
3829
  orientatie: Database["public"]["Enums"]["doc_orientation"];
3771
3830
  page_settings: Json;
3772
3831
  papierformaat: string;
3832
+ standaard_sleutel: string | null;
3833
+ standaard_versie: number | null;
3773
3834
  systeem: boolean;
3774
3835
  thumbnail_url: string | null;
3775
3836
  updated_at: string;
@@ -3795,6 +3856,8 @@ export type Database = {
3795
3856
  orientatie?: Database["public"]["Enums"]["doc_orientation"];
3796
3857
  page_settings?: Json;
3797
3858
  papierformaat?: string;
3859
+ standaard_sleutel?: string | null;
3860
+ standaard_versie?: number | null;
3798
3861
  systeem?: boolean;
3799
3862
  thumbnail_url?: string | null;
3800
3863
  updated_at?: string;
@@ -3820,6 +3883,8 @@ export type Database = {
3820
3883
  orientatie?: Database["public"]["Enums"]["doc_orientation"];
3821
3884
  page_settings?: Json;
3822
3885
  papierformaat?: string;
3886
+ standaard_sleutel?: string | null;
3887
+ standaard_versie?: number | null;
3823
3888
  systeem?: boolean;
3824
3889
  thumbnail_url?: string | null;
3825
3890
  updated_at?: string;
@@ -5979,33 +6044,42 @@ export type Database = {
5979
6044
  };
5980
6045
  floricode_sync_state: {
5981
6046
  Row: {
6047
+ completed_at: string | null;
5982
6048
  cursor_skip: number;
5983
6049
  error_message: string | null;
5984
6050
  last_change_date_time: string | null;
5985
6051
  last_sequence_number: number;
5986
6052
  last_sync_at: string | null;
6053
+ pending_change_date_time: string | null;
5987
6054
  resource: string;
5988
6055
  status: string;
6056
+ total_count: number | null;
5989
6057
  updated_at: string;
5990
6058
  };
5991
6059
  Insert: {
6060
+ completed_at?: string | null;
5992
6061
  cursor_skip?: number;
5993
6062
  error_message?: string | null;
5994
6063
  last_change_date_time?: string | null;
5995
6064
  last_sequence_number?: number;
5996
6065
  last_sync_at?: string | null;
6066
+ pending_change_date_time?: string | null;
5997
6067
  resource: string;
5998
6068
  status?: string;
6069
+ total_count?: number | null;
5999
6070
  updated_at?: string;
6000
6071
  };
6001
6072
  Update: {
6073
+ completed_at?: string | null;
6002
6074
  cursor_skip?: number;
6003
6075
  error_message?: string | null;
6004
6076
  last_change_date_time?: string | null;
6005
6077
  last_sequence_number?: number;
6006
6078
  last_sync_at?: string | null;
6079
+ pending_change_date_time?: string | null;
6007
6080
  resource?: string;
6008
6081
  status?: string;
6082
+ total_count?: number | null;
6009
6083
  updated_at?: string;
6010
6084
  };
6011
6085
  Relationships: [];
@@ -6757,9 +6831,16 @@ export type Database = {
6757
6831
  id: string;
6758
6832
  is_active: boolean;
6759
6833
  label: string;
6834
+ organization_fetched_at: string | null;
6835
+ organization_id: string | null;
6836
+ organization_mailing_address: Json | null;
6760
6837
  organization_name: string | null;
6838
+ organization_physical_address: Json | null;
6761
6839
  preferred_warehouse_id: string | null;
6762
6840
  preferred_warehouse_name: string | null;
6841
+ read_only: boolean;
6842
+ read_only_changed_at: string | null;
6843
+ read_only_changed_by: string | null;
6763
6844
  token_expires_at: string | null;
6764
6845
  updated_at: string;
6765
6846
  };
@@ -6772,9 +6853,16 @@ export type Database = {
6772
6853
  id?: string;
6773
6854
  is_active?: boolean;
6774
6855
  label?: string;
6856
+ organization_fetched_at?: string | null;
6857
+ organization_id?: string | null;
6858
+ organization_mailing_address?: Json | null;
6775
6859
  organization_name?: string | null;
6860
+ organization_physical_address?: Json | null;
6776
6861
  preferred_warehouse_id?: string | null;
6777
6862
  preferred_warehouse_name?: string | null;
6863
+ read_only?: boolean;
6864
+ read_only_changed_at?: string | null;
6865
+ read_only_changed_by?: string | null;
6778
6866
  token_expires_at?: string | null;
6779
6867
  updated_at?: string;
6780
6868
  };
@@ -6787,9 +6875,16 @@ export type Database = {
6787
6875
  id?: string;
6788
6876
  is_active?: boolean;
6789
6877
  label?: string;
6878
+ organization_fetched_at?: string | null;
6879
+ organization_id?: string | null;
6880
+ organization_mailing_address?: Json | null;
6790
6881
  organization_name?: string | null;
6882
+ organization_physical_address?: Json | null;
6791
6883
  preferred_warehouse_id?: string | null;
6792
6884
  preferred_warehouse_name?: string | null;
6885
+ read_only?: boolean;
6886
+ read_only_changed_at?: string | null;
6887
+ read_only_changed_by?: string | null;
6793
6888
  token_expires_at?: string | null;
6794
6889
  updated_at?: string;
6795
6890
  };
@@ -7047,6 +7142,44 @@ export type Database = {
7047
7142
  }
7048
7143
  ];
7049
7144
  };
7145
+ floriday_customer_offers_cache: {
7146
+ Row: {
7147
+ connection_id: string;
7148
+ data: Json;
7149
+ fetched_at: string;
7150
+ floriday_id: string;
7151
+ is_deleted: boolean;
7152
+ sequence_number: number;
7153
+ updated_at: string;
7154
+ };
7155
+ Insert: {
7156
+ connection_id: string;
7157
+ data?: Json;
7158
+ fetched_at?: string;
7159
+ floriday_id: string;
7160
+ is_deleted?: boolean;
7161
+ sequence_number?: number;
7162
+ updated_at?: string;
7163
+ };
7164
+ Update: {
7165
+ connection_id?: string;
7166
+ data?: Json;
7167
+ fetched_at?: string;
7168
+ floriday_id?: string;
7169
+ is_deleted?: boolean;
7170
+ sequence_number?: number;
7171
+ updated_at?: string;
7172
+ };
7173
+ Relationships: [
7174
+ {
7175
+ foreignKeyName: "floriday_customer_offers_cache_connection_id_fkey";
7176
+ columns: ["connection_id"];
7177
+ isOneToOne: false;
7178
+ referencedRelation: "floriday_connections";
7179
+ referencedColumns: ["id"];
7180
+ }
7181
+ ];
7182
+ };
7050
7183
  floriday_customer_sticker_pdfs_cache: {
7051
7184
  Row: {
7052
7185
  byte_size: number | null;
@@ -7604,8 +7737,14 @@ export type Database = {
7604
7737
  created_at: string;
7605
7738
  desired_availability: boolean;
7606
7739
  desired_quantity: number;
7740
+ erp_leading: boolean | null;
7741
+ erp_leading_at: string | null;
7742
+ first_positive_published_at: string | null;
7607
7743
  fixed_quantity: number | null;
7744
+ floriday_offer_forms: Json | null;
7608
7745
  floriday_trade_item_id: string | null;
7746
+ follow_floriday_at: string | null;
7747
+ follow_floriday_result: string | null;
7609
7748
  id: string;
7610
7749
  last_confirmed_at: string | null;
7611
7750
  last_enqueued_at: string | null;
@@ -7636,8 +7775,14 @@ export type Database = {
7636
7775
  created_at?: string;
7637
7776
  desired_availability?: boolean;
7638
7777
  desired_quantity?: number;
7778
+ erp_leading?: boolean | null;
7779
+ erp_leading_at?: string | null;
7780
+ first_positive_published_at?: string | null;
7639
7781
  fixed_quantity?: number | null;
7782
+ floriday_offer_forms?: Json | null;
7640
7783
  floriday_trade_item_id?: string | null;
7784
+ follow_floriday_at?: string | null;
7785
+ follow_floriday_result?: string | null;
7641
7786
  id?: string;
7642
7787
  last_confirmed_at?: string | null;
7643
7788
  last_enqueued_at?: string | null;
@@ -7668,8 +7813,14 @@ export type Database = {
7668
7813
  created_at?: string;
7669
7814
  desired_availability?: boolean;
7670
7815
  desired_quantity?: number;
7816
+ erp_leading?: boolean | null;
7817
+ erp_leading_at?: string | null;
7818
+ first_positive_published_at?: string | null;
7671
7819
  fixed_quantity?: number | null;
7820
+ floriday_offer_forms?: Json | null;
7672
7821
  floriday_trade_item_id?: string | null;
7822
+ follow_floriday_at?: string | null;
7823
+ follow_floriday_result?: string | null;
7673
7824
  id?: string;
7674
7825
  last_confirmed_at?: string | null;
7675
7826
  last_enqueued_at?: string | null;
@@ -8058,6 +8209,53 @@ export type Database = {
8058
8209
  };
8059
8210
  Relationships: [];
8060
8211
  };
8212
+ floriday_packing_mismatches: {
8213
+ Row: {
8214
+ api_value: Json | null;
8215
+ cache_value: Json | null;
8216
+ connection_id: string;
8217
+ details: string | null;
8218
+ detected_at: string;
8219
+ entity: string;
8220
+ floriday_id: string;
8221
+ id: string;
8222
+ last_checked_at: string;
8223
+ resolved_at: string | null;
8224
+ };
8225
+ Insert: {
8226
+ api_value?: Json | null;
8227
+ cache_value?: Json | null;
8228
+ connection_id: string;
8229
+ details?: string | null;
8230
+ detected_at?: string;
8231
+ entity: string;
8232
+ floriday_id: string;
8233
+ id?: string;
8234
+ last_checked_at?: string;
8235
+ resolved_at?: string | null;
8236
+ };
8237
+ Update: {
8238
+ api_value?: Json | null;
8239
+ cache_value?: Json | null;
8240
+ connection_id?: string;
8241
+ details?: string | null;
8242
+ detected_at?: string;
8243
+ entity?: string;
8244
+ floriday_id?: string;
8245
+ id?: string;
8246
+ last_checked_at?: string;
8247
+ resolved_at?: string | null;
8248
+ };
8249
+ Relationships: [
8250
+ {
8251
+ foreignKeyName: "floriday_packing_mismatches_connection_id_fkey";
8252
+ columns: ["connection_id"];
8253
+ isOneToOne: false;
8254
+ referencedRelation: "floriday_connections";
8255
+ referencedColumns: ["id"];
8256
+ }
8257
+ ];
8258
+ };
8061
8259
  floriday_packings_cache: {
8062
8260
  Row: {
8063
8261
  connection_id: string;
@@ -8487,33 +8685,45 @@ export type Database = {
8487
8685
  };
8488
8686
  floriday_sync_state: {
8489
8687
  Row: {
8688
+ backfill_done_at: string | null;
8689
+ backfill_started_at: string | null;
8690
+ backfill_target_sequence: number | null;
8490
8691
  connection_id: string;
8491
8692
  entity_type: string;
8492
8693
  last_error: string | null;
8493
8694
  last_items_processed: number | null;
8494
8695
  last_max_sequence_seen: number | null;
8696
+ last_rate_limited_at: string | null;
8495
8697
  last_sequence_number: number;
8496
8698
  last_success_at: string | null;
8497
8699
  last_synced_at: string | null;
8498
8700
  updated_at: string;
8499
8701
  };
8500
8702
  Insert: {
8703
+ backfill_done_at?: string | null;
8704
+ backfill_started_at?: string | null;
8705
+ backfill_target_sequence?: number | null;
8501
8706
  connection_id: string;
8502
8707
  entity_type: string;
8503
8708
  last_error?: string | null;
8504
8709
  last_items_processed?: number | null;
8505
8710
  last_max_sequence_seen?: number | null;
8711
+ last_rate_limited_at?: string | null;
8506
8712
  last_sequence_number?: number;
8507
8713
  last_success_at?: string | null;
8508
8714
  last_synced_at?: string | null;
8509
8715
  updated_at?: string;
8510
8716
  };
8511
8717
  Update: {
8718
+ backfill_done_at?: string | null;
8719
+ backfill_started_at?: string | null;
8720
+ backfill_target_sequence?: number | null;
8512
8721
  connection_id?: string;
8513
8722
  entity_type?: string;
8514
8723
  last_error?: string | null;
8515
8724
  last_items_processed?: number | null;
8516
8725
  last_max_sequence_seen?: number | null;
8726
+ last_rate_limited_at?: string | null;
8517
8727
  last_sequence_number?: number;
8518
8728
  last_success_at?: string | null;
8519
8729
  last_synced_at?: string | null;
@@ -8529,6 +8739,116 @@ export type Database = {
8529
8739
  }
8530
8740
  ];
8531
8741
  };
8742
+ floriday_takeover_items: {
8743
+ Row: {
8744
+ created_at: string;
8745
+ created_product: boolean;
8746
+ id: string;
8747
+ new_price: number | null;
8748
+ new_stock: number | null;
8749
+ offer_forms: Json | null;
8750
+ old_erp_leading: boolean | null;
8751
+ old_offer_forms: Json | null;
8752
+ old_price: number | null;
8753
+ old_stock: number | null;
8754
+ price_source: string | null;
8755
+ product_id: string;
8756
+ run_id: string;
8757
+ stock_source: string | null;
8758
+ trade_item_id: string;
8759
+ undo_skipped_reason: string | null;
8760
+ undone: boolean;
8761
+ };
8762
+ Insert: {
8763
+ created_at?: string;
8764
+ created_product?: boolean;
8765
+ id?: string;
8766
+ new_price?: number | null;
8767
+ new_stock?: number | null;
8768
+ offer_forms?: Json | null;
8769
+ old_erp_leading?: boolean | null;
8770
+ old_offer_forms?: Json | null;
8771
+ old_price?: number | null;
8772
+ old_stock?: number | null;
8773
+ price_source?: string | null;
8774
+ product_id: string;
8775
+ run_id: string;
8776
+ stock_source?: string | null;
8777
+ trade_item_id: string;
8778
+ undo_skipped_reason?: string | null;
8779
+ undone?: boolean;
8780
+ };
8781
+ Update: {
8782
+ created_at?: string;
8783
+ created_product?: boolean;
8784
+ id?: string;
8785
+ new_price?: number | null;
8786
+ new_stock?: number | null;
8787
+ offer_forms?: Json | null;
8788
+ old_erp_leading?: boolean | null;
8789
+ old_offer_forms?: Json | null;
8790
+ old_price?: number | null;
8791
+ old_stock?: number | null;
8792
+ price_source?: string | null;
8793
+ product_id?: string;
8794
+ run_id?: string;
8795
+ stock_source?: string | null;
8796
+ trade_item_id?: string;
8797
+ undo_skipped_reason?: string | null;
8798
+ undone?: boolean;
8799
+ };
8800
+ Relationships: [
8801
+ {
8802
+ foreignKeyName: "floriday_takeover_items_run_id_fkey";
8803
+ columns: ["run_id"];
8804
+ isOneToOne: false;
8805
+ referencedRelation: "floriday_takeover_runs";
8806
+ referencedColumns: ["id"];
8807
+ }
8808
+ ];
8809
+ };
8810
+ floriday_takeover_runs: {
8811
+ Row: {
8812
+ connection_id: string;
8813
+ created_at: string;
8814
+ created_products: number;
8815
+ id: string;
8816
+ status: string;
8817
+ total_items: number;
8818
+ undo_skipped_items: number;
8819
+ undone_at: string | null;
8820
+ undone_items: number;
8821
+ updated_at: string;
8822
+ user_id: string;
8823
+ };
8824
+ Insert: {
8825
+ connection_id: string;
8826
+ created_at?: string;
8827
+ created_products?: number;
8828
+ id?: string;
8829
+ status?: string;
8830
+ total_items?: number;
8831
+ undo_skipped_items?: number;
8832
+ undone_at?: string | null;
8833
+ undone_items?: number;
8834
+ updated_at?: string;
8835
+ user_id: string;
8836
+ };
8837
+ Update: {
8838
+ connection_id?: string;
8839
+ created_at?: string;
8840
+ created_products?: number;
8841
+ id?: string;
8842
+ status?: string;
8843
+ total_items?: number;
8844
+ undo_skipped_items?: number;
8845
+ undone_at?: string | null;
8846
+ undone_items?: number;
8847
+ updated_at?: string;
8848
+ user_id?: string;
8849
+ };
8850
+ Relationships: [];
8851
+ };
8532
8852
  floriday_token_refresh_log: {
8533
8853
  Row: {
8534
8854
  attempted_at: string;
@@ -11174,6 +11494,36 @@ export type Database = {
11174
11494
  };
11175
11495
  Relationships: [];
11176
11496
  };
11497
+ layout_auto_acties: {
11498
+ Row: {
11499
+ actie: string;
11500
+ created_at: string;
11501
+ detail: string;
11502
+ documenttype: string | null;
11503
+ id: string;
11504
+ layout_id: string | null;
11505
+ printer_id: string | null;
11506
+ };
11507
+ Insert: {
11508
+ actie: string;
11509
+ created_at?: string;
11510
+ detail?: string;
11511
+ documenttype?: string | null;
11512
+ id?: string;
11513
+ layout_id?: string | null;
11514
+ printer_id?: string | null;
11515
+ };
11516
+ Update: {
11517
+ actie?: string;
11518
+ created_at?: string;
11519
+ detail?: string;
11520
+ documenttype?: string | null;
11521
+ id?: string;
11522
+ layout_id?: string | null;
11523
+ printer_id?: string | null;
11524
+ };
11525
+ Relationships: [];
11526
+ };
11177
11527
  layout_logos: {
11178
11528
  Row: {
11179
11529
  bestand_url: string;
@@ -11231,6 +11581,51 @@ export type Database = {
11231
11581
  };
11232
11582
  Relationships: [];
11233
11583
  };
11584
+ layout_standaarden: {
11585
+ Row: {
11586
+ breedte_mm: number;
11587
+ config: Json;
11588
+ created_at: string;
11589
+ documenttype: Database["public"]["Enums"]["doc_layout_type"];
11590
+ hoogte_mm: number;
11591
+ naam: string;
11592
+ omschrijving: string;
11593
+ page_settings: Json;
11594
+ papierformaat: string;
11595
+ sleutel: string;
11596
+ updated_at: string;
11597
+ versie: number;
11598
+ };
11599
+ Insert: {
11600
+ breedte_mm?: number;
11601
+ config?: Json;
11602
+ created_at?: string;
11603
+ documenttype: Database["public"]["Enums"]["doc_layout_type"];
11604
+ hoogte_mm?: number;
11605
+ naam: string;
11606
+ omschrijving?: string;
11607
+ page_settings?: Json;
11608
+ papierformaat?: string;
11609
+ sleutel: string;
11610
+ updated_at?: string;
11611
+ versie: number;
11612
+ };
11613
+ Update: {
11614
+ breedte_mm?: number;
11615
+ config?: Json;
11616
+ created_at?: string;
11617
+ documenttype?: Database["public"]["Enums"]["doc_layout_type"];
11618
+ hoogte_mm?: number;
11619
+ naam?: string;
11620
+ omschrijving?: string;
11621
+ page_settings?: Json;
11622
+ papierformaat?: string;
11623
+ sleutel?: string;
11624
+ updated_at?: string;
11625
+ versie?: number;
11626
+ };
11627
+ Relationships: [];
11628
+ };
11234
11629
  leave_requests: {
11235
11630
  Row: {
11236
11631
  cancellation_requested_at: string | null;
@@ -11804,6 +12199,36 @@ export type Database = {
11804
12199
  };
11805
12200
  Relationships: [];
11806
12201
  };
12202
+ logistics_belading_bevestigingen: {
12203
+ Row: {
12204
+ bevestigd_door: string | null;
12205
+ bevestigd_op: string;
12206
+ created_at: string;
12207
+ id: string;
12208
+ order_id: string;
12209
+ redenen: string[];
12210
+ verpakking_sleutel: string;
12211
+ };
12212
+ Insert: {
12213
+ bevestigd_door?: string | null;
12214
+ bevestigd_op?: string;
12215
+ created_at?: string;
12216
+ id?: string;
12217
+ order_id: string;
12218
+ redenen?: string[];
12219
+ verpakking_sleutel: string;
12220
+ };
12221
+ Update: {
12222
+ bevestigd_door?: string | null;
12223
+ bevestigd_op?: string;
12224
+ created_at?: string;
12225
+ id?: string;
12226
+ order_id?: string;
12227
+ redenen?: string[];
12228
+ verpakking_sleutel?: string;
12229
+ };
12230
+ Relationships: [];
12231
+ };
11807
12232
  logistics_capacity_alerts: {
11808
12233
  Row: {
11809
12234
  available_minutes: number;
@@ -13843,6 +14268,7 @@ export type Database = {
13843
14268
  bron_id: string;
13844
14269
  cart_id: string | null;
13845
14270
  created_at: string;
14271
+ eigen_sticker_id: string | null;
13846
14272
  fulfillment_order_id: string | null;
13847
14273
  handled_at: string | null;
13848
14274
  handled_error: string | null;
@@ -13869,6 +14295,7 @@ export type Database = {
13869
14295
  bron_id: string;
13870
14296
  cart_id?: string | null;
13871
14297
  created_at?: string;
14298
+ eigen_sticker_id?: string | null;
13872
14299
  fulfillment_order_id?: string | null;
13873
14300
  handled_at?: string | null;
13874
14301
  handled_error?: string | null;
@@ -13895,6 +14322,7 @@ export type Database = {
13895
14322
  bron_id?: string;
13896
14323
  cart_id?: string | null;
13897
14324
  created_at?: string;
14325
+ eigen_sticker_id?: string | null;
13898
14326
  fulfillment_order_id?: string | null;
13899
14327
  handled_at?: string | null;
13900
14328
  handled_error?: string | null;
@@ -14616,6 +15044,45 @@ export type Database = {
14616
15044
  };
14617
15045
  Relationships: [];
14618
15046
  };
15047
+ mailbox_ai_runs: {
15048
+ Row: {
15049
+ error: string | null;
15050
+ finished_at: string | null;
15051
+ id: string;
15052
+ input_tokens: number | null;
15053
+ is_test: boolean;
15054
+ message_id: string | null;
15055
+ ok: boolean | null;
15056
+ output_tokens: number | null;
15057
+ started_at: string;
15058
+ trigger: string;
15059
+ };
15060
+ Insert: {
15061
+ error?: string | null;
15062
+ finished_at?: string | null;
15063
+ id?: string;
15064
+ input_tokens?: number | null;
15065
+ is_test?: boolean;
15066
+ message_id?: string | null;
15067
+ ok?: boolean | null;
15068
+ output_tokens?: number | null;
15069
+ started_at?: string;
15070
+ trigger?: string;
15071
+ };
15072
+ Update: {
15073
+ error?: string | null;
15074
+ finished_at?: string | null;
15075
+ id?: string;
15076
+ input_tokens?: number | null;
15077
+ is_test?: boolean;
15078
+ message_id?: string | null;
15079
+ ok?: boolean | null;
15080
+ output_tokens?: number | null;
15081
+ started_at?: string;
15082
+ trigger?: string;
15083
+ };
15084
+ Relationships: [];
15085
+ };
14619
15086
  mailbox_ai_settings: {
14620
15087
  Row: {
14621
15088
  active_goal_key: string | null;
@@ -14649,6 +15116,78 @@ export type Database = {
14649
15116
  };
14650
15117
  Relationships: [];
14651
15118
  };
15119
+ mailbox_filter_settings: {
15120
+ Row: {
15121
+ analyze_unknown_with_signals: boolean;
15122
+ conf_green: number;
15123
+ conf_orange: number;
15124
+ created_at: string;
15125
+ domain_match: boolean;
15126
+ duplicate_days: number;
15127
+ id: string;
15128
+ max_agent_reparse: number;
15129
+ max_ai_per_day: number;
15130
+ max_ai_per_month: number;
15131
+ max_candidates: number;
15132
+ max_retries_per_run: number;
15133
+ max_retry_attempts: number;
15134
+ min_signals_unknown: number;
15135
+ negative_keywords: string[];
15136
+ order_keywords: string[];
15137
+ order_patterns: string[];
15138
+ singleton: boolean;
15139
+ skip_domains: string[];
15140
+ skip_senders: string[];
15141
+ updated_at: string;
15142
+ };
15143
+ Insert: {
15144
+ analyze_unknown_with_signals?: boolean;
15145
+ conf_green?: number;
15146
+ conf_orange?: number;
15147
+ created_at?: string;
15148
+ domain_match?: boolean;
15149
+ duplicate_days?: number;
15150
+ id?: string;
15151
+ max_agent_reparse?: number;
15152
+ max_ai_per_day?: number;
15153
+ max_ai_per_month?: number;
15154
+ max_candidates?: number;
15155
+ max_retries_per_run?: number;
15156
+ max_retry_attempts?: number;
15157
+ min_signals_unknown?: number;
15158
+ negative_keywords?: string[];
15159
+ order_keywords?: string[];
15160
+ order_patterns?: string[];
15161
+ singleton?: boolean;
15162
+ skip_domains?: string[];
15163
+ skip_senders?: string[];
15164
+ updated_at?: string;
15165
+ };
15166
+ Update: {
15167
+ analyze_unknown_with_signals?: boolean;
15168
+ conf_green?: number;
15169
+ conf_orange?: number;
15170
+ created_at?: string;
15171
+ domain_match?: boolean;
15172
+ duplicate_days?: number;
15173
+ id?: string;
15174
+ max_agent_reparse?: number;
15175
+ max_ai_per_day?: number;
15176
+ max_ai_per_month?: number;
15177
+ max_candidates?: number;
15178
+ max_retries_per_run?: number;
15179
+ max_retry_attempts?: number;
15180
+ min_signals_unknown?: number;
15181
+ negative_keywords?: string[];
15182
+ order_keywords?: string[];
15183
+ order_patterns?: string[];
15184
+ singleton?: boolean;
15185
+ skip_domains?: string[];
15186
+ skip_senders?: string[];
15187
+ updated_at?: string;
15188
+ };
15189
+ Relationships: [];
15190
+ };
14652
15191
  mailbox_ingest_runs: {
14653
15192
  Row: {
14654
15193
  connection_id: string | null;
@@ -14687,6 +15226,10 @@ export type Database = {
14687
15226
  };
14688
15227
  mailbox_messages: {
14689
15228
  Row: {
15229
+ analysis_count: number;
15230
+ analysis_note: string | null;
15231
+ analysis_started_at: string | null;
15232
+ analysis_state: string | null;
14690
15233
  attachments: Json;
14691
15234
  body_html: string | null;
14692
15235
  body_text: string | null;
@@ -14695,6 +15238,8 @@ export type Database = {
14695
15238
  created_at: string;
14696
15239
  error_message: string | null;
14697
15240
  external_id: string | null;
15241
+ filter_outcome: string | null;
15242
+ filter_reason: string | null;
14698
15243
  from_email: string | null;
14699
15244
  from_name: string | null;
14700
15245
  has_attachments: boolean;
@@ -14711,6 +15256,10 @@ export type Database = {
14711
15256
  updated_at: string;
14712
15257
  };
14713
15258
  Insert: {
15259
+ analysis_count?: number;
15260
+ analysis_note?: string | null;
15261
+ analysis_started_at?: string | null;
15262
+ analysis_state?: string | null;
14714
15263
  attachments?: Json;
14715
15264
  body_html?: string | null;
14716
15265
  body_text?: string | null;
@@ -14719,6 +15268,8 @@ export type Database = {
14719
15268
  created_at?: string;
14720
15269
  error_message?: string | null;
14721
15270
  external_id?: string | null;
15271
+ filter_outcome?: string | null;
15272
+ filter_reason?: string | null;
14722
15273
  from_email?: string | null;
14723
15274
  from_name?: string | null;
14724
15275
  has_attachments?: boolean;
@@ -14735,6 +15286,10 @@ export type Database = {
14735
15286
  updated_at?: string;
14736
15287
  };
14737
15288
  Update: {
15289
+ analysis_count?: number;
15290
+ analysis_note?: string | null;
15291
+ analysis_started_at?: string | null;
15292
+ analysis_state?: string | null;
14738
15293
  attachments?: Json;
14739
15294
  body_html?: string | null;
14740
15295
  body_text?: string | null;
@@ -14743,6 +15298,8 @@ export type Database = {
14743
15298
  created_at?: string;
14744
15299
  error_message?: string | null;
14745
15300
  external_id?: string | null;
15301
+ filter_outcome?: string | null;
15302
+ filter_reason?: string | null;
14746
15303
  from_email?: string | null;
14747
15304
  from_name?: string | null;
14748
15305
  has_attachments?: boolean;
@@ -14789,6 +15346,7 @@ export type Database = {
14789
15346
  confidence: number | null;
14790
15347
  created_at: string;
14791
15348
  created_order_id: string | null;
15349
+ customer_reference: string | null;
14792
15350
  delivery_date: string | null;
14793
15351
  id: string;
14794
15352
  matched_customer_id: string | null;
@@ -14807,6 +15365,7 @@ export type Database = {
14807
15365
  confidence?: number | null;
14808
15366
  created_at?: string;
14809
15367
  created_order_id?: string | null;
15368
+ customer_reference?: string | null;
14810
15369
  delivery_date?: string | null;
14811
15370
  id?: string;
14812
15371
  matched_customer_id?: string | null;
@@ -14825,6 +15384,7 @@ export type Database = {
14825
15384
  confidence?: number | null;
14826
15385
  created_at?: string;
14827
15386
  created_order_id?: string | null;
15387
+ customer_reference?: string | null;
14828
15388
  delivery_date?: string | null;
14829
15389
  id?: string;
14830
15390
  matched_customer_id?: string | null;
@@ -14961,43 +15521,85 @@ export type Database = {
14961
15521
  };
14962
15522
  mailbox_proposal_lines: {
14963
15523
  Row: {
15524
+ belading: Json | null;
15525
+ confidence: Json | null;
14964
15526
  created_at: string;
15527
+ currency: string | null;
14965
15528
  id: string;
14966
15529
  match_confidence: number | null;
15530
+ match_source: string | null;
15531
+ name_in_mail: string | null;
15532
+ pieces_per_unit: number | null;
14967
15533
  plant_type: string | null;
15534
+ plants: number | null;
15535
+ price_per: string | null;
14968
15536
  product_id: string | null;
14969
15537
  proposal_id: string;
15538
+ qty_in_mail: number | null;
14970
15539
  quantity: number | null;
15540
+ raw_code: string | null;
14971
15541
  raw_product_text: string | null;
14972
15542
  sort_order: number;
14973
15543
  unit: string | null;
15544
+ unit_kind: string | null;
15545
+ unit_price: number | null;
15546
+ unit_text: string | null;
14974
15547
  updated_at: string;
15548
+ warnings: string[] | null;
14975
15549
  };
14976
15550
  Insert: {
15551
+ belading?: Json | null;
15552
+ confidence?: Json | null;
14977
15553
  created_at?: string;
15554
+ currency?: string | null;
14978
15555
  id?: string;
14979
15556
  match_confidence?: number | null;
15557
+ match_source?: string | null;
15558
+ name_in_mail?: string | null;
15559
+ pieces_per_unit?: number | null;
14980
15560
  plant_type?: string | null;
15561
+ plants?: number | null;
15562
+ price_per?: string | null;
14981
15563
  product_id?: string | null;
14982
15564
  proposal_id: string;
15565
+ qty_in_mail?: number | null;
14983
15566
  quantity?: number | null;
15567
+ raw_code?: string | null;
14984
15568
  raw_product_text?: string | null;
14985
15569
  sort_order?: number;
14986
15570
  unit?: string | null;
15571
+ unit_kind?: string | null;
15572
+ unit_price?: number | null;
15573
+ unit_text?: string | null;
14987
15574
  updated_at?: string;
15575
+ warnings?: string[] | null;
14988
15576
  };
14989
15577
  Update: {
15578
+ belading?: Json | null;
15579
+ confidence?: Json | null;
14990
15580
  created_at?: string;
15581
+ currency?: string | null;
14991
15582
  id?: string;
14992
15583
  match_confidence?: number | null;
15584
+ match_source?: string | null;
15585
+ name_in_mail?: string | null;
15586
+ pieces_per_unit?: number | null;
14993
15587
  plant_type?: string | null;
15588
+ plants?: number | null;
15589
+ price_per?: string | null;
14994
15590
  product_id?: string | null;
14995
15591
  proposal_id?: string;
15592
+ qty_in_mail?: number | null;
14996
15593
  quantity?: number | null;
15594
+ raw_code?: string | null;
14997
15595
  raw_product_text?: string | null;
14998
15596
  sort_order?: number;
14999
15597
  unit?: string | null;
15598
+ unit_kind?: string | null;
15599
+ unit_price?: number | null;
15600
+ unit_text?: string | null;
15000
15601
  updated_at?: string;
15602
+ warnings?: string[] | null;
15001
15603
  };
15002
15604
  Relationships: [
15003
15605
  {
@@ -15071,6 +15673,51 @@ export type Database = {
15071
15673
  };
15072
15674
  Relationships: [];
15073
15675
  };
15676
+ mailbox_test_cases: {
15677
+ Row: {
15678
+ body_text: string;
15679
+ created_at: string;
15680
+ expected: Json;
15681
+ from_email: string;
15682
+ has_attachment: boolean;
15683
+ id: string;
15684
+ last_result: Json | null;
15685
+ last_run_at: string | null;
15686
+ name: string;
15687
+ sort_order: number;
15688
+ subject: string;
15689
+ updated_at: string;
15690
+ };
15691
+ Insert: {
15692
+ body_text?: string;
15693
+ created_at?: string;
15694
+ expected?: Json;
15695
+ from_email?: string;
15696
+ has_attachment?: boolean;
15697
+ id?: string;
15698
+ last_result?: Json | null;
15699
+ last_run_at?: string | null;
15700
+ name: string;
15701
+ sort_order?: number;
15702
+ subject?: string;
15703
+ updated_at?: string;
15704
+ };
15705
+ Update: {
15706
+ body_text?: string;
15707
+ created_at?: string;
15708
+ expected?: Json;
15709
+ from_email?: string;
15710
+ has_attachment?: boolean;
15711
+ id?: string;
15712
+ last_result?: Json | null;
15713
+ last_run_at?: string | null;
15714
+ name?: string;
15715
+ sort_order?: number;
15716
+ subject?: string;
15717
+ updated_at?: string;
15718
+ };
15719
+ Relationships: [];
15720
+ };
15074
15721
  manufacture_product_components: {
15075
15722
  Row: {
15076
15723
  component_type: string;
@@ -15135,7 +15782,7 @@ export type Database = {
15135
15782
  name: string;
15136
15783
  produced_stock: number;
15137
15784
  product_code: string;
15138
- tenant_id: string;
15785
+ tenant_id: string | null;
15139
15786
  updated_at: string;
15140
15787
  };
15141
15788
  Insert: {
@@ -15146,7 +15793,7 @@ export type Database = {
15146
15793
  name: string;
15147
15794
  produced_stock?: number;
15148
15795
  product_code: string;
15149
- tenant_id: string;
15796
+ tenant_id?: string | null;
15150
15797
  updated_at?: string;
15151
15798
  };
15152
15799
  Update: {
@@ -15157,7 +15804,7 @@ export type Database = {
15157
15804
  name?: string;
15158
15805
  produced_stock?: number;
15159
15806
  product_code?: string;
15160
- tenant_id?: string;
15807
+ tenant_id?: string | null;
15161
15808
  updated_at?: string;
15162
15809
  };
15163
15810
  Relationships: [];
@@ -16193,10 +16840,12 @@ export type Database = {
16193
16840
  id: string;
16194
16841
  items: Json;
16195
16842
  notes: string | null;
16843
+ order_creation_attempts: number;
16196
16844
  order_creation_error: string | null;
16197
16845
  order_creation_failed_at: string | null;
16198
16846
  order_id: string | null;
16199
16847
  order_number: string | null;
16848
+ order_retry_payload: Json | null;
16200
16849
  recipient_id: string;
16201
16850
  total_amount: number;
16202
16851
  };
@@ -16210,10 +16859,12 @@ export type Database = {
16210
16859
  id?: string;
16211
16860
  items?: Json;
16212
16861
  notes?: string | null;
16862
+ order_creation_attempts?: number;
16213
16863
  order_creation_error?: string | null;
16214
16864
  order_creation_failed_at?: string | null;
16215
16865
  order_id?: string | null;
16216
16866
  order_number?: string | null;
16867
+ order_retry_payload?: Json | null;
16217
16868
  recipient_id: string;
16218
16869
  total_amount?: number;
16219
16870
  };
@@ -16227,10 +16878,12 @@ export type Database = {
16227
16878
  id?: string;
16228
16879
  items?: Json;
16229
16880
  notes?: string | null;
16881
+ order_creation_attempts?: number;
16230
16882
  order_creation_error?: string | null;
16231
16883
  order_creation_failed_at?: string | null;
16232
16884
  order_id?: string | null;
16233
16885
  order_number?: string | null;
16886
+ order_retry_payload?: Json | null;
16234
16887
  recipient_id?: string;
16235
16888
  total_amount?: number;
16236
16889
  };
@@ -16946,6 +17599,7 @@ export type Database = {
16946
17599
  created_at: string;
16947
17600
  id: string;
16948
17601
  layers_per_cart: number | null;
17602
+ needs_sticker: boolean;
16949
17603
  order_id: string;
16950
17604
  packing_locked_at: string | null;
16951
17605
  packing_locked_by: string | null;
@@ -16965,6 +17619,7 @@ export type Database = {
16965
17619
  created_at?: string;
16966
17620
  id?: string;
16967
17621
  layers_per_cart?: number | null;
17622
+ needs_sticker?: boolean;
16968
17623
  order_id: string;
16969
17624
  packing_locked_at?: string | null;
16970
17625
  packing_locked_by?: string | null;
@@ -16984,6 +17639,7 @@ export type Database = {
16984
17639
  created_at?: string;
16985
17640
  id?: string;
16986
17641
  layers_per_cart?: number | null;
17642
+ needs_sticker?: boolean;
16987
17643
  order_id?: string;
16988
17644
  packing_locked_at?: string | null;
16989
17645
  packing_locked_by?: string | null;
@@ -20440,7 +21096,7 @@ export type Database = {
20440
21096
  parent_trade_item_floriday_id: string | null;
20441
21097
  quantity: number;
20442
21098
  sort_order: number;
20443
- tenant_id: string;
21099
+ tenant_id: string | null;
20444
21100
  unit: string;
20445
21101
  updated_at: string;
20446
21102
  };
@@ -20453,7 +21109,7 @@ export type Database = {
20453
21109
  parent_trade_item_floriday_id?: string | null;
20454
21110
  quantity?: number;
20455
21111
  sort_order?: number;
20456
- tenant_id: string;
21112
+ tenant_id?: string | null;
20457
21113
  unit?: string;
20458
21114
  updated_at?: string;
20459
21115
  };
@@ -20466,7 +21122,7 @@ export type Database = {
20466
21122
  parent_trade_item_floriday_id?: string | null;
20467
21123
  quantity?: number;
20468
21124
  sort_order?: number;
20469
- tenant_id?: string;
21125
+ tenant_id?: string | null;
20470
21126
  unit?: string;
20471
21127
  updated_at?: string;
20472
21128
  };
@@ -20499,7 +21155,7 @@ export type Database = {
20499
21155
  parent_trade_item_floriday_id: string | null;
20500
21156
  quantity: number;
20501
21157
  sort_order: number;
20502
- tenant_id: string;
21158
+ tenant_id: string | null;
20503
21159
  unit: string;
20504
21160
  updated_at: string;
20505
21161
  };
@@ -20514,7 +21170,7 @@ export type Database = {
20514
21170
  parent_trade_item_floriday_id?: string | null;
20515
21171
  quantity?: number;
20516
21172
  sort_order?: number;
20517
- tenant_id: string;
21173
+ tenant_id?: string | null;
20518
21174
  unit?: string;
20519
21175
  updated_at?: string;
20520
21176
  };
@@ -20529,7 +21185,7 @@ export type Database = {
20529
21185
  parent_trade_item_floriday_id?: string | null;
20530
21186
  quantity?: number;
20531
21187
  sort_order?: number;
20532
- tenant_id?: string;
21188
+ tenant_id?: string | null;
20533
21189
  unit?: string;
20534
21190
  updated_at?: string;
20535
21191
  };
@@ -20709,7 +21365,7 @@ export type Database = {
20709
21365
  id: string;
20710
21366
  is_active: boolean;
20711
21367
  name: string;
20712
- tenant_id: string;
21368
+ tenant_id: string | null;
20713
21369
  updated_at: string;
20714
21370
  };
20715
21371
  Insert: {
@@ -20720,7 +21376,7 @@ export type Database = {
20720
21376
  id?: string;
20721
21377
  is_active?: boolean;
20722
21378
  name: string;
20723
- tenant_id: string;
21379
+ tenant_id?: string | null;
20724
21380
  updated_at?: string;
20725
21381
  };
20726
21382
  Update: {
@@ -20731,7 +21387,7 @@ export type Database = {
20731
21387
  id?: string;
20732
21388
  is_active?: boolean;
20733
21389
  name?: string;
20734
- tenant_id?: string;
21390
+ tenant_id?: string | null;
20735
21391
  updated_at?: string;
20736
21392
  };
20737
21393
  Relationships: [
@@ -20766,7 +21422,7 @@ export type Database = {
20766
21422
  packages_per_layer: number | null;
20767
21423
  packing_configuration_id: string;
20768
21424
  product_id: string | null;
20769
- tenant_id: string;
21425
+ tenant_id: string | null;
20770
21426
  trade_item_floriday_id: string | null;
20771
21427
  units_per_package: number | null;
20772
21428
  updated_at: string;
@@ -20785,7 +21441,7 @@ export type Database = {
20785
21441
  packages_per_layer?: number | null;
20786
21442
  packing_configuration_id?: string;
20787
21443
  product_id?: string | null;
20788
- tenant_id: string;
21444
+ tenant_id?: string | null;
20789
21445
  trade_item_floriday_id?: string | null;
20790
21446
  units_per_package?: number | null;
20791
21447
  updated_at?: string;
@@ -20804,7 +21460,7 @@ export type Database = {
20804
21460
  packages_per_layer?: number | null;
20805
21461
  packing_configuration_id?: string;
20806
21462
  product_id?: string | null;
20807
- tenant_id?: string;
21463
+ tenant_id?: string | null;
20808
21464
  trade_item_floriday_id?: string | null;
20809
21465
  units_per_package?: number | null;
20810
21466
  updated_at?: string;
@@ -20866,6 +21522,85 @@ export type Database = {
20866
21522
  };
20867
21523
  Relationships: [];
20868
21524
  };
21525
+ product_packings: {
21526
+ Row: {
21527
+ created_at: string;
21528
+ custom_package_id: string | null;
21529
+ customer_organization_ids: string[];
21530
+ floriday_packing_id: string | null;
21531
+ fust_type_id: string | null;
21532
+ id: string;
21533
+ is_primary: boolean;
21534
+ layers_per_load_carrier: number | null;
21535
+ load_carrier: string | null;
21536
+ packages_per_layer: number | null;
21537
+ pieces_per_package: number | null;
21538
+ product_id: string;
21539
+ sort_order: number;
21540
+ source: string;
21541
+ updated_at: string;
21542
+ vbn_package_code: number | null;
21543
+ };
21544
+ Insert: {
21545
+ created_at?: string;
21546
+ custom_package_id?: string | null;
21547
+ customer_organization_ids?: string[];
21548
+ floriday_packing_id?: string | null;
21549
+ fust_type_id?: string | null;
21550
+ id?: string;
21551
+ is_primary?: boolean;
21552
+ layers_per_load_carrier?: number | null;
21553
+ load_carrier?: string | null;
21554
+ packages_per_layer?: number | null;
21555
+ pieces_per_package?: number | null;
21556
+ product_id: string;
21557
+ sort_order?: number;
21558
+ source?: string;
21559
+ updated_at?: string;
21560
+ vbn_package_code?: number | null;
21561
+ };
21562
+ Update: {
21563
+ created_at?: string;
21564
+ custom_package_id?: string | null;
21565
+ customer_organization_ids?: string[];
21566
+ floriday_packing_id?: string | null;
21567
+ fust_type_id?: string | null;
21568
+ id?: string;
21569
+ is_primary?: boolean;
21570
+ layers_per_load_carrier?: number | null;
21571
+ load_carrier?: string | null;
21572
+ packages_per_layer?: number | null;
21573
+ pieces_per_package?: number | null;
21574
+ product_id?: string;
21575
+ sort_order?: number;
21576
+ source?: string;
21577
+ updated_at?: string;
21578
+ vbn_package_code?: number | null;
21579
+ };
21580
+ Relationships: [
21581
+ {
21582
+ foreignKeyName: "product_packings_fust_type_id_fkey";
21583
+ columns: ["fust_type_id"];
21584
+ isOneToOne: false;
21585
+ referencedRelation: "fust_types";
21586
+ referencedColumns: ["id"];
21587
+ },
21588
+ {
21589
+ foreignKeyName: "product_packings_product_id_fkey";
21590
+ columns: ["product_id"];
21591
+ isOneToOne: false;
21592
+ referencedRelation: "logistics_product_dimensions";
21593
+ referencedColumns: ["product_id"];
21594
+ },
21595
+ {
21596
+ foreignKeyName: "product_packings_product_id_fkey";
21597
+ columns: ["product_id"];
21598
+ isOneToOne: false;
21599
+ referencedRelation: "products";
21600
+ referencedColumns: ["id"];
21601
+ }
21602
+ ];
21603
+ };
20869
21604
  product_suppliers: {
20870
21605
  Row: {
20871
21606
  created_at: string;
@@ -20984,6 +21719,69 @@ export type Database = {
20984
21719
  }
20985
21720
  ];
20986
21721
  };
21722
+ productontwerp_import_map: {
21723
+ Row: {
21724
+ created_at: string;
21725
+ entity_type: string;
21726
+ id: string;
21727
+ imported_at: string;
21728
+ match_method: string | null;
21729
+ source_id: string;
21730
+ source_shell_id: string;
21731
+ target_id: string;
21732
+ updated_at: string;
21733
+ };
21734
+ Insert: {
21735
+ created_at?: string;
21736
+ entity_type: string;
21737
+ id?: string;
21738
+ imported_at?: string;
21739
+ match_method?: string | null;
21740
+ source_id: string;
21741
+ source_shell_id: string;
21742
+ target_id: string;
21743
+ updated_at?: string;
21744
+ };
21745
+ Update: {
21746
+ created_at?: string;
21747
+ entity_type?: string;
21748
+ id?: string;
21749
+ imported_at?: string;
21750
+ match_method?: string | null;
21751
+ source_id?: string;
21752
+ source_shell_id?: string;
21753
+ target_id?: string;
21754
+ updated_at?: string;
21755
+ };
21756
+ Relationships: [];
21757
+ };
21758
+ productontwerp_structure_codes: {
21759
+ Row: {
21760
+ code: string;
21761
+ created_at: string;
21762
+ entity_id: string;
21763
+ entity_type: string;
21764
+ id: string;
21765
+ updated_at: string;
21766
+ };
21767
+ Insert: {
21768
+ code: string;
21769
+ created_at?: string;
21770
+ entity_id: string;
21771
+ entity_type: string;
21772
+ id?: string;
21773
+ updated_at?: string;
21774
+ };
21775
+ Update: {
21776
+ code?: string;
21777
+ created_at?: string;
21778
+ entity_id?: string;
21779
+ entity_type?: string;
21780
+ id?: string;
21781
+ updated_at?: string;
21782
+ };
21783
+ Relationships: [];
21784
+ };
20987
21785
  products: {
20988
21786
  Row: {
20989
21787
  article_number: string | null;
@@ -24004,6 +24802,10 @@ export type Database = {
24004
24802
  superseded_at: string | null;
24005
24803
  updated_at: string;
24006
24804
  user_id: string;
24805
+ write_enabled: boolean;
24806
+ write_enabled_at: string | null;
24807
+ write_enabled_by: string | null;
24808
+ write_enabled_reason: string | null;
24007
24809
  };
24008
24810
  Insert: {
24009
24811
  account_key?: string | null;
@@ -24030,6 +24832,10 @@ export type Database = {
24030
24832
  superseded_at?: string | null;
24031
24833
  updated_at?: string;
24032
24834
  user_id: string;
24835
+ write_enabled?: boolean;
24836
+ write_enabled_at?: string | null;
24837
+ write_enabled_by?: string | null;
24838
+ write_enabled_reason?: string | null;
24033
24839
  };
24034
24840
  Update: {
24035
24841
  account_key?: string | null;
@@ -24056,6 +24862,10 @@ export type Database = {
24056
24862
  superseded_at?: string | null;
24057
24863
  updated_at?: string;
24058
24864
  user_id?: string;
24865
+ write_enabled?: boolean;
24866
+ write_enabled_at?: string | null;
24867
+ write_enabled_by?: string | null;
24868
+ write_enabled_reason?: string | null;
24059
24869
  };
24060
24870
  Relationships: [];
24061
24871
  };
@@ -24944,6 +25754,21 @@ export type Database = {
24944
25754
  };
24945
25755
  Relationships: [];
24946
25756
  };
25757
+ twinfield_schema_upgrades: {
25758
+ Row: {
25759
+ applied_at: string;
25760
+ key: string;
25761
+ };
25762
+ Insert: {
25763
+ applied_at?: string;
25764
+ key: string;
25765
+ };
25766
+ Update: {
25767
+ applied_at?: string;
25768
+ key?: string;
25769
+ };
25770
+ Relationships: [];
25771
+ };
24947
25772
  twinfield_session_cache: {
24948
25773
  Row: {
24949
25774
  cluster: string;
@@ -28810,6 +29635,10 @@ export type Database = {
28810
29635
  };
28811
29636
  };
28812
29637
  Functions: {
29638
+ _arm_offer_order_retry: {
29639
+ Args: never;
29640
+ Returns: undefined;
29641
+ };
28813
29642
  _floriday_queue_cleanup_batch: {
28814
29643
  Args: {
28815
29644
  p_days: number;
@@ -28837,6 +29666,10 @@ export type Database = {
28837
29666
  };
28838
29667
  Returns: string[][];
28839
29668
  };
29669
+ _layout_is_beheerder: {
29670
+ Args: never;
29671
+ Returns: boolean;
29672
+ };
28840
29673
  _migrate_rewrite_stock_key: {
28841
29674
  Args: {
28842
29675
  _from_key: string;
@@ -28948,6 +29781,15 @@ export type Database = {
28948
29781
  };
28949
29782
  Returns: Json;
28950
29783
  };
29784
+ afh_resolve_cart_id: {
29785
+ Args: {
29786
+ p_cart_index: number;
29787
+ p_given: string;
29788
+ p_order: string;
29789
+ p_source: string;
29790
+ };
29791
+ Returns: string;
29792
+ };
28951
29793
  afh_signup_config: {
28952
29794
  Args: never;
28953
29795
  Returns: Json;
@@ -29052,6 +29894,26 @@ export type Database = {
29052
29894
  Args: never;
29053
29895
  Returns: Json;
29054
29896
  };
29897
+ ai_is_admin: {
29898
+ Args: {
29899
+ _uid: string;
29900
+ };
29901
+ Returns: boolean;
29902
+ };
29903
+ ai_register_consumers: {
29904
+ Args: {
29905
+ _full_list?: boolean;
29906
+ _modules: Json;
29907
+ _source?: string;
29908
+ };
29909
+ Returns: Json;
29910
+ };
29911
+ ai_register_runtime_consumer: {
29912
+ Args: {
29913
+ _module_key: string;
29914
+ };
29915
+ Returns: boolean;
29916
+ };
29055
29917
  ai_usage_by_module: {
29056
29918
  Args: {
29057
29919
  _from: string;
@@ -29759,6 +30621,8 @@ export type Database = {
29759
30621
  cart_index: number;
29760
30622
  cart_number: string;
29761
30623
  cart_number_id: string;
30624
+ country_code: string;
30625
+ crates_on_cart: number;
29762
30626
  order_id: string;
29763
30627
  order_number: string;
29764
30628
  order_source: string;
@@ -30117,6 +30981,30 @@ export type Database = {
30117
30981
  };
30118
30982
  Returns: boolean;
30119
30983
  };
30984
+ floricode_sync_cron_schedule: {
30985
+ Args: {
30986
+ p_apikey: string;
30987
+ p_schedule: string;
30988
+ p_url: string;
30989
+ };
30990
+ Returns: number;
30991
+ };
30992
+ floricode_sync_cron_set_schedule: {
30993
+ Args: {
30994
+ p_schedule: string;
30995
+ };
30996
+ Returns: boolean;
30997
+ };
30998
+ floricode_sync_cron_status: {
30999
+ Args: never;
31000
+ Returns: {
31001
+ active: boolean;
31002
+ last_run_at: string;
31003
+ last_run_status: string;
31004
+ schedule: string;
31005
+ scheduled: boolean;
31006
+ }[];
31007
+ };
30120
31008
  floriday_adopt_connection: {
30121
31009
  Args: {
30122
31010
  p_new: string;
@@ -30140,6 +31028,18 @@ export type Database = {
30140
31028
  Args: never;
30141
31029
  Returns: undefined;
30142
31030
  };
31031
+ floriday_customer_candidates: {
31032
+ Args: never;
31033
+ Returns: {
31034
+ in_cache: boolean;
31035
+ organization_id: string;
31036
+ reason: string;
31037
+ }[];
31038
+ };
31039
+ floriday_customer_promotion_preview: {
31040
+ Args: never;
31041
+ Returns: Json;
31042
+ };
30143
31043
  floriday_default_owner: {
30144
31044
  Args: {
30145
31045
  p_connection_id: string;
@@ -30176,16 +31076,70 @@ export type Database = {
30176
31076
  source_id: string;
30177
31077
  }[];
30178
31078
  };
31079
+ floriday_eigen_organisatie: {
31080
+ Args: never;
31081
+ Returns: {
31082
+ adres: string;
31083
+ gln: string;
31084
+ land: string;
31085
+ naam: string;
31086
+ opgehaald_op: string;
31087
+ organisatie_id: string;
31088
+ plaats: string;
31089
+ postcode: string;
31090
+ }[];
31091
+ };
31092
+ floriday_erp_leading_preview: {
31093
+ Args: {
31094
+ p_connection_id: string;
31095
+ p_product_ids: string[];
31096
+ p_stock_mode?: string;
31097
+ };
31098
+ Returns: {
31099
+ blocker: string;
31100
+ desired_available: boolean;
31101
+ desired_quantity: number;
31102
+ horizon_weeks: number;
31103
+ offer_forms: Json;
31104
+ product_id: string;
31105
+ product_name: string;
31106
+ sale_price: number;
31107
+ stock_mode: string;
31108
+ trade_item_id: string;
31109
+ weeks: Json;
31110
+ }[];
31111
+ };
30179
31112
  floriday_fill_publish_horizon: {
30180
31113
  Args: never;
30181
31114
  Returns: number;
30182
31115
  };
31116
+ floriday_follow_apply: {
31117
+ Args: {
31118
+ p_connection_id: string;
31119
+ p_items: Json;
31120
+ };
31121
+ Returns: Json;
31122
+ };
30183
31123
  floriday_ingest_sales_orders: {
30184
31124
  Args: {
30185
31125
  p_limit?: number;
30186
31126
  };
30187
31127
  Returns: number;
30188
31128
  };
31129
+ floriday_leading_summary: {
31130
+ Args: {
31131
+ p_connection_id: string;
31132
+ };
31133
+ Returns: Json;
31134
+ };
31135
+ floriday_make_erp_leading: {
31136
+ Args: {
31137
+ p_connection_id: string;
31138
+ p_product_ids: string[];
31139
+ p_stock_mode?: string;
31140
+ };
31141
+ Returns: Json;
31142
+ };
30189
31143
  floriday_network_status: {
30190
31144
  Args: {
30191
31145
  p_organization_id: string;
@@ -30197,6 +31151,12 @@ export type Database = {
30197
31151
  synced_at: string;
30198
31152
  }[];
30199
31153
  };
31154
+ floriday_norm_offer_forms: {
31155
+ Args: {
31156
+ p: Json;
31157
+ };
31158
+ Returns: Json;
31159
+ };
30200
31160
  floriday_orphan_settings_count: {
30201
31161
  Args: never;
30202
31162
  Returns: number;
@@ -30225,10 +31185,34 @@ export type Database = {
30225
31185
  };
30226
31186
  Returns: number;
30227
31187
  };
31188
+ floriday_takeover_apply: {
31189
+ Args: {
31190
+ p_connection_id: string;
31191
+ p_items: Json;
31192
+ };
31193
+ Returns: Json;
31194
+ };
31195
+ floriday_takeover_fetch_state: {
31196
+ Args: {
31197
+ p_connection_id: string;
31198
+ p_entity?: string;
31199
+ };
31200
+ Returns: string;
31201
+ };
31202
+ floriday_takeover_undo: {
31203
+ Args: {
31204
+ p_run_id: string;
31205
+ };
31206
+ Returns: Json;
31207
+ };
30228
31208
  floriday_today_announce_summary: {
30229
31209
  Args: never;
30230
31210
  Returns: Json;
30231
31211
  };
31212
+ floriday_write_mode: {
31213
+ Args: never;
31214
+ Returns: Json;
31215
+ };
30232
31216
  format_cart_number: {
30233
31217
  Args: {
30234
31218
  p_pick_date: string;
@@ -31087,6 +32071,29 @@ export type Database = {
31087
32071
  };
31088
32072
  Returns: boolean;
31089
32073
  };
32074
+ klanten_auto_promote_status: {
32075
+ Args: never;
32076
+ Returns: Json;
32077
+ };
32078
+ klanten_install_check: {
32079
+ Args: never;
32080
+ Returns: Json;
32081
+ };
32082
+ klanten_promote_round: {
32083
+ Args: never;
32084
+ Returns: Json;
32085
+ };
32086
+ klanten_refresh_grouped_if_stale: {
32087
+ Args: never;
32088
+ Returns: boolean;
32089
+ };
32090
+ klanten_set_auto_promote: {
32091
+ Args: {
32092
+ p_kind: string;
32093
+ p_on: boolean;
32094
+ };
32095
+ Returns: Json;
32096
+ };
31090
32097
  layout_print_document: {
31091
32098
  Args: {
31092
32099
  _documentnaam: string;
@@ -31113,6 +32120,18 @@ export type Database = {
31113
32120
  status: string;
31114
32121
  }[];
31115
32122
  };
32123
+ layout_standaard_overnemen: {
32124
+ Args: {
32125
+ _layout_id: string;
32126
+ };
32127
+ Returns: Json;
32128
+ };
32129
+ layout_versie_terugzetten: {
32130
+ Args: {
32131
+ _versie_id: string;
32132
+ };
32133
+ Returns: number;
32134
+ };
31116
32135
  layout_verwijzing_omzetten: {
31117
32136
  Args: {
31118
32137
  _nieuw: string;
@@ -31126,6 +32145,17 @@ export type Database = {
31126
32145
  Args: never;
31127
32146
  Returns: Json;
31128
32147
  };
32148
+ layout_voor_document: {
32149
+ Args: {
32150
+ p_documenttype: string;
32151
+ p_order_id: string;
32152
+ };
32153
+ Returns: Json;
32154
+ };
32155
+ layout_zorg_systeemlayouts: {
32156
+ Args: never;
32157
+ Returns: number;
32158
+ };
31129
32159
  list_medewerkers: {
31130
32160
  Args: never;
31131
32161
  Returns: {
@@ -31217,6 +32247,14 @@ export type Database = {
31217
32247
  };
31218
32248
  Returns: string;
31219
32249
  };
32250
+ log_offer_event_by_code: {
32251
+ Args: {
32252
+ p_code: string;
32253
+ p_event_type: string;
32254
+ p_metadata?: Json;
32255
+ };
32256
+ Returns: boolean;
32257
+ };
31220
32258
  logistics_active_layout_method: {
31221
32259
  Args: never;
31222
32260
  Returns: string;
@@ -31400,6 +32438,14 @@ export type Database = {
31400
32438
  Args: never;
31401
32439
  Returns: number;
31402
32440
  };
32441
+ logistics_belading_bevestig: {
32442
+ Args: {
32443
+ p_order_id: string;
32444
+ p_redenen?: string[];
32445
+ p_sleutel: string;
32446
+ };
32447
+ Returns: Json;
32448
+ };
31403
32449
  logistics_belading_verstuurder: {
31404
32450
  Args: never;
31405
32451
  Returns: string;
@@ -31640,6 +32686,12 @@ export type Database = {
31640
32686
  };
31641
32687
  Returns: boolean;
31642
32688
  };
32689
+ logistics_cart_has_packing_slip: {
32690
+ Args: {
32691
+ p_cart_id: string;
32692
+ };
32693
+ Returns: boolean;
32694
+ };
31643
32695
  logistics_cart_ids_frozen: {
31644
32696
  Args: {
31645
32697
  p_cart_ids: string[];
@@ -31780,6 +32832,16 @@ export type Database = {
31780
32832
  order_uuid: string;
31781
32833
  }[];
31782
32834
  };
32835
+ logistics_cart_seq_dubbel: {
32836
+ Args: {
32837
+ p_order_uuid?: string;
32838
+ };
32839
+ Returns: {
32840
+ cart_ids: string[];
32841
+ cart_index: number;
32842
+ order_uuid: string;
32843
+ }[];
32844
+ };
31783
32845
  logistics_cart_slip_plan: {
31784
32846
  Args: {
31785
32847
  p_order_id: string;
@@ -32198,6 +33260,14 @@ export type Database = {
32198
33260
  p_delivery_date: string;
32199
33261
  p_delivery_location: string;
32200
33262
  p_moment_key?: string;
33263
+ p_own_transport?: boolean;
33264
+ };
33265
+ Returns: Json;
33266
+ };
33267
+ logistics_document_for_order: {
33268
+ Args: {
33269
+ p_documenttype: string;
33270
+ p_order_id: string;
32201
33271
  };
32202
33272
  Returns: Json;
32203
33273
  };
@@ -32214,6 +33284,10 @@ export type Database = {
32214
33284
  };
32215
33285
  Returns: Json;
32216
33286
  };
33287
+ logistics_document_selection_status: {
33288
+ Args: never;
33289
+ Returns: Json;
33290
+ };
32217
33291
  logistics_document_station: {
32218
33292
  Args: {
32219
33293
  _document_code: string;
@@ -32284,6 +33358,10 @@ export type Database = {
32284
33358
  };
32285
33359
  Returns: Json;
32286
33360
  };
33361
+ logistics_ensure_runtime_defaults: {
33362
+ Args: never;
33363
+ Returns: undefined;
33364
+ };
32287
33365
  logistics_ensure_shipping_notes: {
32288
33366
  Args: {
32289
33367
  p_limit?: number;
@@ -32452,6 +33530,10 @@ export type Database = {
32452
33530
  Args: never;
32453
33531
  Returns: Json;
32454
33532
  };
33533
+ logistics_floriday_is_read_only: {
33534
+ Args: never;
33535
+ Returns: boolean;
33536
+ };
32455
33537
  logistics_floriday_layout_id: {
32456
33538
  Args: {
32457
33539
  p_documenttype: string;
@@ -32492,6 +33574,13 @@ export type Database = {
32492
33574
  };
32493
33575
  Returns: number;
32494
33576
  };
33577
+ logistics_floriday_push_hold_read_only: {
33578
+ Args: {
33579
+ _id: string;
33580
+ _revision: number;
33581
+ };
33582
+ Returns: string;
33583
+ };
32495
33584
  logistics_floriday_queue_push: {
32496
33585
  Args: {
32497
33586
  _order_ref: string;
@@ -32500,6 +33589,16 @@ export type Database = {
32500
33589
  };
32501
33590
  Returns: string;
32502
33591
  };
33592
+ logistics_floriday_release_read_only: {
33593
+ Args: never;
33594
+ Returns: Json;
33595
+ };
33596
+ logistics_floriday_shipping_document: {
33597
+ Args: {
33598
+ p_order_id: string;
33599
+ };
33600
+ Returns: Json;
33601
+ };
32503
33602
  logistics_floriday_status_updates_enabled: {
32504
33603
  Args: never;
32505
33604
  Returns: boolean;
@@ -32651,6 +33750,12 @@ export type Database = {
32651
33750
  };
32652
33751
  Returns: string;
32653
33752
  };
33753
+ logistics_nl_date: {
33754
+ Args: {
33755
+ p_day: string;
33756
+ };
33757
+ Returns: string;
33758
+ };
32654
33759
  logistics_nl_moment: {
32655
33760
  Args: {
32656
33761
  p_at: string;
@@ -32863,6 +33968,12 @@ export type Database = {
32863
33968
  };
32864
33969
  Returns: boolean;
32865
33970
  };
33971
+ logistics_order_is_shipped_status: {
33972
+ Args: {
33973
+ p_status: string;
33974
+ };
33975
+ Returns: boolean;
33976
+ };
32866
33977
  logistics_order_is_topick: {
32867
33978
  Args: {
32868
33979
  p_order_id: string;
@@ -33001,6 +34112,40 @@ export type Database = {
33001
34112
  Args: never;
33002
34113
  Returns: Json;
33003
34114
  };
34115
+ logistics_own_sticker_count: {
34116
+ Args: {
34117
+ p_ppc_product: number;
34118
+ p_ppc_regel: number;
34119
+ p_quantity: number;
34120
+ p_unit: string;
34121
+ };
34122
+ Returns: number;
34123
+ };
34124
+ logistics_own_sticker_sync: {
34125
+ Args: {
34126
+ p_limit?: number;
34127
+ };
34128
+ Returns: Json;
34129
+ };
34130
+ logistics_own_transport_departure: {
34131
+ Args: {
34132
+ p_delivery_date: string;
34133
+ p_pickup_at: string;
34134
+ };
34135
+ Returns: Json;
34136
+ };
34137
+ logistics_own_traysticker_payload: {
34138
+ Args: {
34139
+ p_id: string;
34140
+ };
34141
+ Returns: Json;
34142
+ };
34143
+ logistics_own_traysticker_sync: {
34144
+ Args: {
34145
+ p_limit?: number;
34146
+ };
34147
+ Returns: Json;
34148
+ };
33004
34149
  logistics_packing_autofix: {
33005
34150
  Args: {
33006
34151
  p_limit?: number;
@@ -33301,6 +34446,15 @@ export type Database = {
33301
34446
  Args: never;
33302
34447
  Returns: number;
33303
34448
  };
34449
+ logistics_plan_queue_dubbel: {
34450
+ Args: never;
34451
+ Returns: {
34452
+ nieuwste: string;
34453
+ open_opdrachten: number;
34454
+ order_id: string;
34455
+ oudste: string;
34456
+ }[];
34457
+ };
33304
34458
  logistics_plan_queue_list: {
33305
34459
  Args: {
33306
34460
  p_limit?: number;
@@ -33342,6 +34496,13 @@ export type Database = {
33342
34496
  };
33343
34497
  Returns: number;
33344
34498
  };
34499
+ logistics_plan_retry_later: {
34500
+ Args: {
34501
+ p_id: string;
34502
+ p_seconds?: number;
34503
+ };
34504
+ Returns: undefined;
34505
+ };
33345
34506
  logistics_plan_setting: {
33346
34507
  Args: {
33347
34508
  p_default: number;
@@ -33546,6 +34707,12 @@ export type Database = {
33546
34707
  };
33547
34708
  Returns: Json;
33548
34709
  };
34710
+ logistics_register_tick_apikey: {
34711
+ Args: {
34712
+ p_key: string;
34713
+ };
34714
+ Returns: Json;
34715
+ };
33549
34716
  logistics_replan_all: {
33550
34717
  Args: {
33551
34718
  p_reason?: string;
@@ -33817,6 +34984,10 @@ export type Database = {
33817
34984
  peer_order_id: string;
33818
34985
  }[];
33819
34986
  };
34987
+ logistics_shell_base_url: {
34988
+ Args: never;
34989
+ Returns: string;
34990
+ };
33820
34991
  logistics_shift_to_workday: {
33821
34992
  Args: {
33822
34993
  p_days: string[];
@@ -33896,6 +35067,12 @@ export type Database = {
33896
35067
  };
33897
35068
  Returns: boolean;
33898
35069
  };
35070
+ logistics_slip_is_herprint: {
35071
+ Args: {
35072
+ p_slip_job_id: string;
35073
+ };
35074
+ Returns: boolean;
35075
+ };
33899
35076
  logistics_slip_note_claim: {
33900
35077
  Args: {
33901
35078
  _lease_seconds?: number;
@@ -33969,6 +35146,12 @@ export type Database = {
33969
35146
  };
33970
35147
  Returns: undefined;
33971
35148
  };
35149
+ logistics_slip_note_hold_read_only: {
35150
+ Args: {
35151
+ _id: string;
35152
+ };
35153
+ Returns: undefined;
35154
+ };
33972
35155
  logistics_slip_note_keep_waiting: {
33973
35156
  Args: {
33974
35157
  _class?: string;
@@ -33987,6 +35170,12 @@ export type Database = {
33987
35170
  };
33988
35171
  Returns: Json;
33989
35172
  };
35173
+ logistics_slip_note_skip_herprint: {
35174
+ Args: {
35175
+ _id: string;
35176
+ };
35177
+ Returns: undefined;
35178
+ };
33990
35179
  logistics_status_after_shipping: {
33991
35180
  Args: {
33992
35181
  p_status: string;
@@ -34101,6 +35290,12 @@ export type Database = {
34101
35290
  Args: never;
34102
35291
  Returns: Json;
34103
35292
  };
35293
+ logistics_sync_stock_alert_email_status: {
35294
+ Args: {
35295
+ p_limit?: number;
35296
+ };
35297
+ Returns: Json;
35298
+ };
34104
35299
  logistics_sync_task_carriers: {
34105
35300
  Args: {
34106
35301
  p_order_ref?: string;
@@ -34342,6 +35537,15 @@ export type Database = {
34342
35537
  };
34343
35538
  Returns: Json;
34344
35539
  };
35540
+ logistics_tray_plants: {
35541
+ Args: {
35542
+ p_fust: number;
35543
+ p_fusten: number;
35544
+ p_ppc: number;
35545
+ p_regel_totaal: number;
35546
+ };
35547
+ Returns: number;
35548
+ };
34345
35549
  logistics_try_uuid: {
34346
35550
  Args: {
34347
35551
  p: string;
@@ -34389,6 +35593,12 @@ export type Database = {
34389
35593
  };
34390
35594
  Returns: boolean;
34391
35595
  };
35596
+ logistics_verkoop_order_link: {
35597
+ Args: {
35598
+ p_order_id: string;
35599
+ };
35600
+ Returns: string;
35601
+ };
34392
35602
  logistics_working_hours_status: {
34393
35603
  Args: never;
34394
35604
  Returns: Json;
@@ -34405,6 +35615,14 @@ export type Database = {
34405
35615
  };
34406
35616
  Returns: number;
34407
35617
  };
35618
+ mailbox_claim_analysis: {
35619
+ Args: {
35620
+ p_force?: boolean;
35621
+ p_message_id: string;
35622
+ p_trigger?: string;
35623
+ };
35624
+ Returns: Json;
35625
+ };
34408
35626
  mark_offer_clicked: {
34409
35627
  Args: {
34410
35628
  p_code: string;
@@ -35332,6 +36550,13 @@ export type Database = {
35332
36550
  };
35333
36551
  Returns: Json;
35334
36552
  };
36553
+ pickstation_document_for_order: {
36554
+ Args: {
36555
+ p_queue_item_id: string;
36556
+ p_slug: string;
36557
+ };
36558
+ Returns: Json;
36559
+ };
35335
36560
  pickstation_get_orders_raw: {
35336
36561
  Args: never;
35337
36562
  Returns: Json;
@@ -35698,6 +36923,34 @@ export type Database = {
35698
36923
  };
35699
36924
  Returns: Record<string, unknown>;
35700
36925
  };
36926
+ product_packings_derive: {
36927
+ Args: {
36928
+ p_product_id: string;
36929
+ };
36930
+ Returns: undefined;
36931
+ };
36932
+ product_packings_replace: {
36933
+ Args: {
36934
+ p_packings: Json;
36935
+ p_product_id: string;
36936
+ p_source: string;
36937
+ };
36938
+ Returns: number;
36939
+ };
36940
+ product_packings_sync_from_floriday: {
36941
+ Args: {
36942
+ p_connection_id: string;
36943
+ p_only_existing?: boolean;
36944
+ p_product_ids: string[];
36945
+ };
36946
+ Returns: Json;
36947
+ };
36948
+ product_primary_pieces: {
36949
+ Args: {
36950
+ p_product_id: string;
36951
+ };
36952
+ Returns: number;
36953
+ };
35701
36954
  product_set_depth_above: {
35702
36955
  Args: {
35703
36956
  p_path?: string[];
@@ -35735,6 +36988,60 @@ export type Database = {
35735
36988
  };
35736
36989
  Returns: string;
35737
36990
  };
36991
+ productontwerp_can_write: {
36992
+ Args: never;
36993
+ Returns: boolean;
36994
+ };
36995
+ productontwerp_create_missing_products: {
36996
+ Args: {
36997
+ p_items: Json;
36998
+ p_run_id: string;
36999
+ };
37000
+ Returns: Json;
37001
+ };
37002
+ productontwerp_export: {
37003
+ Args: never;
37004
+ Returns: Json;
37005
+ };
37006
+ productontwerp_import: {
37007
+ Args: {
37008
+ p_dry_run: boolean;
37009
+ p_payload: Json;
37010
+ };
37011
+ Returns: Json;
37012
+ };
37013
+ productontwerp_nl_error: {
37014
+ Args: {
37015
+ p_detail: string;
37016
+ p_msg: string;
37017
+ p_state: string;
37018
+ };
37019
+ Returns: string;
37020
+ };
37021
+ productontwerp_product_ref: {
37022
+ Args: {
37023
+ p_id: string;
37024
+ };
37025
+ Returns: Json;
37026
+ };
37027
+ productontwerp_queue_count: {
37028
+ Args: never;
37029
+ Returns: number;
37030
+ };
37031
+ productontwerp_rollback_created_products: {
37032
+ Args: {
37033
+ p_run_id: string;
37034
+ };
37035
+ Returns: Json;
37036
+ };
37037
+ productontwerp_unique_group_name: {
37038
+ Args: {
37039
+ p_article: string;
37040
+ p_base: string;
37041
+ p_used: string[];
37042
+ };
37043
+ Returns: string;
37044
+ };
35738
37045
  promote_floriday_customer: {
35739
37046
  Args: {
35740
37047
  _org_id: string;
@@ -35900,6 +37207,13 @@ export type Database = {
35900
37207
  };
35901
37208
  Returns: undefined;
35902
37209
  };
37210
+ record_offer_order_failure: {
37211
+ Args: {
37212
+ p_error: string;
37213
+ p_offer_order_id: string;
37214
+ };
37215
+ Returns: undefined;
37216
+ };
35903
37217
  refresh_external_customers_grouped: {
35904
37218
  Args: never;
35905
37219
  Returns: undefined;
@@ -36036,6 +37350,10 @@ export type Database = {
36036
37350
  };
36037
37351
  Returns: string;
36038
37352
  };
37353
+ retry_offer_orders: {
37354
+ Args: never;
37355
+ Returns: number;
37356
+ };
36039
37357
  retry_twinfield_push: {
36040
37358
  Args: {
36041
37359
  _customer_id: string;
@@ -36075,6 +37393,10 @@ export type Database = {
36075
37393
  Args: never;
36076
37394
  Returns: undefined;
36077
37395
  };
37396
+ run_floriday_follow: {
37397
+ Args: never;
37398
+ Returns: undefined;
37399
+ };
36078
37400
  run_floriday_stock_queue_process: {
36079
37401
  Args: never;
36080
37402
  Returns: undefined;
@@ -36189,6 +37511,18 @@ export type Database = {
36189
37511
  };
36190
37512
  Returns: Json;
36191
37513
  };
37514
+ scan_kar_logs: {
37515
+ Args: {
37516
+ p_cart_ids: string[];
37517
+ };
37518
+ Returns: {
37519
+ created_at: string;
37520
+ kar_id: string;
37521
+ medewerker_naam: string;
37522
+ message: string;
37523
+ result: string;
37524
+ }[];
37525
+ };
36192
37526
  scan_kar_regels: {
36193
37527
  Args: {
36194
37528
  p_cart_id: string;
@@ -36206,6 +37540,7 @@ export type Database = {
36206
37540
  scan_log_code: {
36207
37541
  Args: {
36208
37542
  p_code: string;
37543
+ p_kar_id?: string;
36209
37544
  p_latency_ms?: number;
36210
37545
  p_medewerker?: string;
36211
37546
  p_message?: string;
@@ -36440,6 +37775,13 @@ export type Database = {
36440
37775
  };
36441
37776
  Returns: number;
36442
37777
  };
37778
+ schedule_floriday_customer_offers_sync: {
37779
+ Args: {
37780
+ p_apikey: string;
37781
+ p_url: string;
37782
+ };
37783
+ Returns: number;
37784
+ };
36443
37785
  schedule_floriday_customer_organizations_sync: {
36444
37786
  Args: {
36445
37787
  p_apikey: string;
@@ -36645,6 +37987,12 @@ export type Database = {
36645
37987
  };
36646
37988
  Returns: undefined;
36647
37989
  };
37990
+ set_primary_delivery_location: {
37991
+ Args: {
37992
+ p_location_id: string;
37993
+ };
37994
+ Returns: undefined;
37995
+ };
36648
37996
  set_product_stock: {
36649
37997
  Args: {
36650
37998
  p_incoming_stock?: number;
@@ -36896,6 +38244,12 @@ export type Database = {
36896
38244
  };
36897
38245
  Returns: boolean;
36898
38246
  };
38247
+ twinfield_cancel_queue_item: {
38248
+ Args: {
38249
+ p_id: string;
38250
+ };
38251
+ Returns: boolean;
38252
+ };
36899
38253
  twinfield_connection_offices: {
36900
38254
  Args: never;
36901
38255
  Returns: {
@@ -36925,6 +38279,19 @@ export type Database = {
36925
38279
  };
36926
38280
  Returns: Json;
36927
38281
  };
38282
+ twinfield_gated_queue: {
38283
+ Args: {
38284
+ p_connection_id: string;
38285
+ };
38286
+ Returns: {
38287
+ action: string;
38288
+ created_at: string;
38289
+ customer_id: string;
38290
+ id: string;
38291
+ payload: Json;
38292
+ status: string;
38293
+ }[];
38294
+ };
36928
38295
  twinfield_handle_administration_change: {
36929
38296
  Args: {
36930
38297
  _administration_code: string;
@@ -36932,6 +38299,10 @@ export type Database = {
36932
38299
  };
36933
38300
  Returns: undefined;
36934
38301
  };
38302
+ twinfield_is_admin: {
38303
+ Args: never;
38304
+ Returns: boolean;
38305
+ };
36935
38306
  twinfield_prune_push_queue: {
36936
38307
  Args: never;
36937
38308
  Returns: number;
@@ -36943,6 +38314,13 @@ export type Database = {
36943
38314
  };
36944
38315
  Returns: Json;
36945
38316
  };
38317
+ twinfield_set_write_enabled: {
38318
+ Args: {
38319
+ p_connection_id: string;
38320
+ p_enabled: boolean;
38321
+ };
38322
+ Returns: Json;
38323
+ };
36946
38324
  twinfield_sync_apply: {
36947
38325
  Args: {
36948
38326
  _base: Json;
@@ -36979,6 +38357,12 @@ export type Database = {
36979
38357
  };
36980
38358
  Returns: Json;
36981
38359
  };
38360
+ twinfield_write_allowed: {
38361
+ Args: {
38362
+ p_connection_id: string;
38363
+ };
38364
+ Returns: boolean;
38365
+ };
36982
38366
  upsert_auto_fulfillment_log: {
36983
38367
  Args: {
36984
38368
  p_connection_id: string;
@@ -37493,6 +38877,24 @@ export type Database = {
37493
38877
  };
37494
38878
  Returns: number;
37495
38879
  };
38880
+ verkoop_create_order: {
38881
+ Args: {
38882
+ p_accept_late_signup?: boolean;
38883
+ p_accepted_by?: string;
38884
+ p_carrier_id: string;
38885
+ p_customer_id: string;
38886
+ p_customer_reference?: string;
38887
+ p_delivery_date: string;
38888
+ p_delivery_location_id: string;
38889
+ p_lines: Json;
38890
+ p_moment_key?: string;
38891
+ p_notes?: string;
38892
+ p_own_transport?: boolean;
38893
+ p_source: string;
38894
+ p_source_id: string;
38895
+ };
38896
+ Returns: Json;
38897
+ };
37496
38898
  vervang_printer: {
37497
38899
  Args: {
37498
38900
  _nieuw: string;
@@ -37506,6 +38908,15 @@ export type Database = {
37506
38908
  };
37507
38909
  Returns: Json;
37508
38910
  };
38911
+ voorraad_alert_floriday_not_updated: {
38912
+ Args: {
38913
+ p_key: string;
38914
+ p_order_id: string;
38915
+ p_order_item_id: string;
38916
+ p_qty: number;
38917
+ };
38918
+ Returns: undefined;
38919
+ };
37509
38920
  voorraad_can_write: {
37510
38921
  Args: never;
37511
38922
  Returns: boolean;
@@ -37528,6 +38939,12 @@ export type Database = {
37528
38939
  };
37529
38940
  Returns: string[];
37530
38941
  };
38942
+ voorraad_floriday_leads_key: {
38943
+ Args: {
38944
+ p_key: string;
38945
+ };
38946
+ Returns: boolean;
38947
+ };
37531
38948
  voorraad_hook_base_url: {
37532
38949
  Args: never;
37533
38950
  Returns: string;
@@ -37545,10 +38962,23 @@ export type Database = {
37545
38962
  };
37546
38963
  Returns: undefined;
37547
38964
  };
38965
+ voorraad_mark_floriday_sold_before_switch: {
38966
+ Args: {
38967
+ p_product_id: string;
38968
+ };
38969
+ Returns: number;
38970
+ };
37548
38971
  voorraad_production_enabled: {
37549
38972
  Args: never;
37550
38973
  Returns: boolean;
37551
38974
  };
38975
+ voorraad_schema_ddl: {
38976
+ Args: {
38977
+ p_functions: string[];
38978
+ p_tables: string[];
38979
+ };
38980
+ Returns: string;
38981
+ };
37552
38982
  voorraad_week_is_past: {
37553
38983
  Args: {
37554
38984
  p_week: number;