@flowselections/floriday-afhandeling-module 1.0.41 → 1.0.42

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 (29) hide show
  1. package/dist-lib/components/afhandeling/ControleLijstPrint.js +54 -54
  2. package/dist-lib/components/afhandeling/ControlePage.d.ts.map +1 -1
  3. package/dist-lib/components/afhandeling/ControlePage.js +51 -9
  4. package/dist-lib/components/afhandeling/DagDetailDialog.js +1 -1
  5. package/dist-lib/components/afhandeling/VervoerdersPage.js +1 -1
  6. package/dist-lib/components/afhandeling/VerzetOrderDialog.js +1 -1
  7. package/dist-lib/components/pickstation/PakbonTemplate.js +70 -70
  8. package/dist-lib/hooks/usePickAgenda.d.ts +1 -1
  9. package/dist-lib/integrations/supabase/auth-middleware.d.ts +1256 -824
  10. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  11. package/dist-lib/integrations/supabase/client.server.d.ts +1256 -824
  12. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  13. package/dist-lib/integrations/supabase/client.server.js +1 -1
  14. package/dist-lib/integrations/supabase/moduleClient.d.ts +1256 -824
  15. package/dist-lib/integrations/supabase/moduleClient.d.ts.map +1 -1
  16. package/dist-lib/integrations/supabase/types.d.ts +1269 -853
  17. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  18. package/dist-lib/lib/afhandelingSettings.functions.d.ts +2189 -1321
  19. package/dist-lib/lib/afhandelingSettings.functions.d.ts.map +1 -1
  20. package/dist-lib/lib/carrierSignupMail.server.js +26 -26
  21. package/dist-lib/lib/carriers.functions.d.ts +5315 -3155
  22. package/dist-lib/lib/carriers.functions.d.ts.map +1 -1
  23. package/dist-lib/lib/cartAssignments.functions.d.ts +5315 -3155
  24. package/dist-lib/lib/cartAssignments.functions.d.ts.map +1 -1
  25. package/dist-lib/lib/cartControl.functions.d.ts +10545 -6245
  26. package/dist-lib/lib/cartControl.functions.d.ts.map +1 -1
  27. package/dist-lib/lib/floriday.functions.d.ts +1259 -825
  28. package/dist-lib/lib/floriday.functions.d.ts.map +1 -1
  29. package/package.json +1 -1
@@ -51,7 +51,9 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
51
51
  created_at?: string;
52
52
  extra_pick_days_with_stickers?: number;
53
53
  id?: string;
54
- max_workdays_earlier_pick?: number;
54
+ max_workdays_earlier_pick
55
+ /** Print de afleverbrief automatisch zodra hij beschikbaar is in de cache. */
56
+ ? /** Print de afleverbrief automatisch zodra hij beschikbaar is in de cache. */: number;
55
57
  pick_days_before_transport?: number;
56
58
  pick_distribution_enabled?: boolean;
57
59
  pick_weekdays?: number[];
@@ -2877,6 +2879,84 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
2877
2879
  };
2878
2880
  Relationships: [];
2879
2881
  };
2882
+ delivery_notes: {
2883
+ Row: {
2884
+ byte_size: number | null;
2885
+ connection_id: string | null;
2886
+ content_type: string;
2887
+ created_at: string;
2888
+ error_message: string | null;
2889
+ fetched_at: string | null;
2890
+ fulfillment_order_id: string | null;
2891
+ http_status: number | null;
2892
+ id: string;
2893
+ label_code: string | null;
2894
+ letter: string | null;
2895
+ load_carrier_index: number | null;
2896
+ load_carrier_type: string | null;
2897
+ order_id: string | null;
2898
+ order_number: string | null;
2899
+ packages: number | null;
2900
+ source: string;
2901
+ status: string;
2902
+ storage_bucket: string;
2903
+ storage_path: string | null;
2904
+ updated_at: string;
2905
+ };
2906
+ Insert: {
2907
+ byte_size?: number | null;
2908
+ connection_id?: string | null;
2909
+ content_type?: string;
2910
+ created_at?: string;
2911
+ error_message?: string | null;
2912
+ fetched_at?: string | null;
2913
+ fulfillment_order_id?: string | null;
2914
+ http_status?: number | null;
2915
+ id?: string;
2916
+ label_code?: string | null;
2917
+ letter?: string | null;
2918
+ load_carrier_index?: number | null;
2919
+ load_carrier_type?: string | null;
2920
+ order_id?: string | null;
2921
+ order_number?: string | null;
2922
+ packages?: number | null;
2923
+ source?: string;
2924
+ status?: string;
2925
+ storage_bucket?: string;
2926
+ storage_path?: string | null;
2927
+ updated_at?: string;
2928
+ };
2929
+ Update: {
2930
+ byte_size?: number | null;
2931
+ connection_id?: string | null;
2932
+ content_type?: string;
2933
+ created_at?: string;
2934
+ error_message?: string | null;
2935
+ fetched_at?: string | null;
2936
+ fulfillment_order_id?: string | null;
2937
+ http_status?: number | null;
2938
+ id?: string;
2939
+ label_code?: string | null;
2940
+ letter?: string | null;
2941
+ load_carrier_index?: number | null;
2942
+ load_carrier_type?: string | null;
2943
+ order_id?: string | null;
2944
+ order_number?: string | null;
2945
+ packages?: number | null;
2946
+ source?: string;
2947
+ status?: string;
2948
+ storage_bucket?: string;
2949
+ storage_path?: string | null;
2950
+ updated_at?: string;
2951
+ };
2952
+ Relationships: [{
2953
+ foreignKeyName: "delivery_notes_order_id_fkey";
2954
+ columns: ["order_id"];
2955
+ isOneToOne: false;
2956
+ referencedRelation: "orders";
2957
+ referencedColumns: ["id"];
2958
+ }];
2959
+ };
2880
2960
  document_bronregels: {
2881
2961
  Row: {
2882
2962
  bron: string;
@@ -5930,10 +6010,7 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
5930
6010
  };
5931
6011
  floriday_connections: {
5932
6012
  Row: {
5933
- access_token: string | null;
5934
6013
  api_key: string;
5935
- client_id: string;
5936
- client_secret: string;
5937
6014
  created_at: string;
5938
6015
  customers_endpoint: string | null;
5939
6016
  environment: string;
@@ -5948,10 +6025,7 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
5948
6025
  updated_at: string;
5949
6026
  };
5950
6027
  Insert: {
5951
- access_token?: string | null;
5952
6028
  api_key: string;
5953
- client_id: string;
5954
- client_secret: string;
5955
6029
  created_at?: string;
5956
6030
  customers_endpoint?: string | null;
5957
6031
  environment: string;
@@ -5966,10 +6040,7 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
5966
6040
  updated_at?: string;
5967
6041
  };
5968
6042
  Update: {
5969
- access_token?: string | null;
5970
6043
  api_key?: string;
5971
- client_id?: string;
5972
- client_secret?: string;
5973
6044
  created_at?: string;
5974
6045
  customers_endpoint?: string | null;
5975
6046
  environment?: string;
@@ -6053,6 +6124,7 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
6053
6124
  attempts: number;
6054
6125
  connection_id: string;
6055
6126
  created_at: string;
6127
+ dead_lettered_at: string | null;
6056
6128
  desired_available: boolean | null;
6057
6129
  gateway_attempt_id: string | null;
6058
6130
  id: string;
@@ -6061,9 +6133,13 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
6061
6133
  locked_by: string | null;
6062
6134
  next_attempt_at: string;
6063
6135
  number_of_pieces: number;
6136
+ product_id: string | null;
6064
6137
  sent_at: string | null;
6065
6138
  status: string;
6139
+ stock_mode: string | null;
6066
6140
  superseded_by: string | null;
6141
+ target_week: number | null;
6142
+ target_year: number | null;
6067
6143
  trade_item_id: string;
6068
6144
  updated_at: string;
6069
6145
  user_id: string;
@@ -6072,6 +6148,7 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
6072
6148
  attempts?: number;
6073
6149
  connection_id: string;
6074
6150
  created_at?: string;
6151
+ dead_lettered_at?: string | null;
6075
6152
  desired_available?: boolean | null;
6076
6153
  gateway_attempt_id?: string | null;
6077
6154
  id?: string;
@@ -6080,9 +6157,13 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
6080
6157
  locked_by?: string | null;
6081
6158
  next_attempt_at?: string;
6082
6159
  number_of_pieces?: number;
6160
+ product_id?: string | null;
6083
6161
  sent_at?: string | null;
6084
6162
  status?: string;
6163
+ stock_mode?: string | null;
6085
6164
  superseded_by?: string | null;
6165
+ target_week?: number | null;
6166
+ target_year?: number | null;
6086
6167
  trade_item_id: string;
6087
6168
  updated_at?: string;
6088
6169
  user_id: string;
@@ -6091,6 +6172,7 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
6091
6172
  attempts?: number;
6092
6173
  connection_id?: string;
6093
6174
  created_at?: string;
6175
+ dead_lettered_at?: string | null;
6094
6176
  desired_available?: boolean | null;
6095
6177
  gateway_attempt_id?: string | null;
6096
6178
  id?: string;
@@ -6099,9 +6181,13 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
6099
6181
  locked_by?: string | null;
6100
6182
  next_attempt_at?: string;
6101
6183
  number_of_pieces?: number;
6184
+ product_id?: string | null;
6102
6185
  sent_at?: string | null;
6103
6186
  status?: string;
6187
+ stock_mode?: string | null;
6104
6188
  superseded_by?: string | null;
6189
+ target_week?: number | null;
6190
+ target_year?: number | null;
6105
6191
  trade_item_id?: string;
6106
6192
  updated_at?: string;
6107
6193
  user_id?: string;
@@ -6510,6 +6596,87 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
6510
6596
  referencedColumns: ["id"];
6511
6597
  }];
6512
6598
  };
6599
+ floriday_inventory_settings: {
6600
+ Row: {
6601
+ buffer_quantity: number;
6602
+ connection_id: string;
6603
+ created_at: string;
6604
+ desired_availability: boolean;
6605
+ desired_quantity: number;
6606
+ fixed_quantity: number | null;
6607
+ floriday_trade_item_id: string | null;
6608
+ id: string;
6609
+ last_confirmed_at: string | null;
6610
+ last_enqueued_at: string | null;
6611
+ last_published_at: string | null;
6612
+ last_sync_error: string | null;
6613
+ manual_quantity: number | null;
6614
+ maximum_quantity: number | null;
6615
+ product_id: string;
6616
+ quantity_control: string;
6617
+ remote_available: boolean | null;
6618
+ remote_checked_at: string | null;
6619
+ remote_quantity: number | null;
6620
+ stock_mode: string;
6621
+ sync_status: string;
6622
+ updated_at: string;
6623
+ updated_by: string | null;
6624
+ user_id: string;
6625
+ };
6626
+ Insert: {
6627
+ buffer_quantity?: number;
6628
+ connection_id: string;
6629
+ created_at?: string;
6630
+ desired_availability?: boolean;
6631
+ desired_quantity?: number;
6632
+ fixed_quantity?: number | null;
6633
+ floriday_trade_item_id?: string | null;
6634
+ id?: string;
6635
+ last_confirmed_at?: string | null;
6636
+ last_enqueued_at?: string | null;
6637
+ last_published_at?: string | null;
6638
+ last_sync_error?: string | null;
6639
+ manual_quantity?: number | null;
6640
+ maximum_quantity?: number | null;
6641
+ product_id: string;
6642
+ quantity_control?: string;
6643
+ remote_available?: boolean | null;
6644
+ remote_checked_at?: string | null;
6645
+ remote_quantity?: number | null;
6646
+ stock_mode?: string;
6647
+ sync_status?: string;
6648
+ updated_at?: string;
6649
+ updated_by?: string | null;
6650
+ user_id: string;
6651
+ };
6652
+ Update: {
6653
+ buffer_quantity?: number;
6654
+ connection_id?: string;
6655
+ created_at?: string;
6656
+ desired_availability?: boolean;
6657
+ desired_quantity?: number;
6658
+ fixed_quantity?: number | null;
6659
+ floriday_trade_item_id?: string | null;
6660
+ id?: string;
6661
+ last_confirmed_at?: string | null;
6662
+ last_enqueued_at?: string | null;
6663
+ last_published_at?: string | null;
6664
+ last_sync_error?: string | null;
6665
+ manual_quantity?: number | null;
6666
+ maximum_quantity?: number | null;
6667
+ product_id?: string;
6668
+ quantity_control?: string;
6669
+ remote_available?: boolean | null;
6670
+ remote_checked_at?: string | null;
6671
+ remote_quantity?: number | null;
6672
+ stock_mode?: string;
6673
+ sync_status?: string;
6674
+ updated_at?: string;
6675
+ updated_by?: string | null;
6676
+ user_id?: string;
6677
+ };
6678
+ Relationships: [];
6679
+ };
6513
6680
  floriday_invoices_cache: {
6514
6681
  Row: {
6515
6682
  buyer_organization_id: string | null;
@@ -6798,6 +6965,39 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
6798
6965
  };
6799
6966
  Relationships: [];
6800
6967
  };
6968
+ floriday_sales_order_ingest: {
6969
+ Row: {
6970
+ connection_id: string;
6971
+ created_at: string;
6972
+ id: string;
6973
+ impact: import("../integrations/supabase/types").Json;
6974
+ order_status: string | null;
6975
+ order_version: number;
6976
+ processed_at: string;
6977
+ sales_order_id: string;
6978
+ };
6979
+ Insert: {
6980
+ connection_id: string;
6981
+ created_at?: string;
6982
+ id?: string;
6983
+ impact?: import("../integrations/supabase/types").Json;
6984
+ order_status?: string | null;
6985
+ order_version?: number;
6986
+ processed_at?: string;
6987
+ sales_order_id: string;
6988
+ };
6989
+ Update: {
6990
+ connection_id?: string;
6991
+ created_at?: string;
6992
+ id?: string;
6993
+ impact?: import("../integrations/supabase/types").Json;
6994
+ order_status?: string | null;
6995
+ order_version?: number;
6996
+ processed_at?: string;
6997
+ sales_order_id?: string;
6998
+ };
6999
+ Relationships: [];
7000
+ };
6801
7001
  floriday_sales_strategies_cache: {
6802
7002
  Row: {
6803
7003
  connection_id: string;
@@ -6897,6 +7097,39 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
6897
7097
  };
6898
7098
  Relationships: [];
6899
7099
  };
7100
+ floriday_sync_cursors: {
7101
+ Row: {
7102
+ connection_id: string;
7103
+ created_at: string;
7104
+ id: string;
7105
+ last_error: string | null;
7106
+ last_sync_at: string | null;
7107
+ resource_type: string;
7108
+ sequence_number: number;
7109
+ updated_at: string;
7110
+ };
7111
+ Insert: {
7112
+ connection_id: string;
7113
+ created_at?: string;
7114
+ id?: string;
7115
+ last_error?: string | null;
7116
+ last_sync_at?: string | null;
7117
+ resource_type: string;
7118
+ sequence_number?: number;
7119
+ updated_at?: string;
7120
+ };
7121
+ Update: {
7122
+ connection_id?: string;
7123
+ created_at?: string;
7124
+ id?: string;
7125
+ last_error?: string | null;
7126
+ last_sync_at?: string | null;
7127
+ resource_type?: string;
7128
+ sequence_number?: number;
7129
+ updated_at?: string;
7130
+ };
7131
+ Relationships: [];
7132
+ };
6900
7133
  floriday_sync_state: {
6901
7134
  Row: {
6902
7135
  connection_id: string;
@@ -7587,6 +7820,42 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
7587
7820
  };
7588
7821
  Relationships: [];
7589
7822
  };
7823
+ inventory_stock_snapshots: {
7824
+ Row: {
7825
+ connection_id: string;
7826
+ created_at: string;
7827
+ erp_available_quantity: number;
7828
+ floriday_desired_quantity: number;
7829
+ floriday_remote_quantity: number | null;
7830
+ granularity: string;
7831
+ id: string;
7832
+ snapshot_at: string;
7833
+ user_id: string | null;
7834
+ };
7835
+ Insert: {
7836
+ connection_id: string;
7837
+ created_at?: string;
7838
+ erp_available_quantity?: number;
7839
+ floriday_desired_quantity?: number;
7840
+ floriday_remote_quantity?: number | null;
7841
+ granularity?: string;
7842
+ id?: string;
7843
+ snapshot_at?: string;
7844
+ user_id?: string | null;
7845
+ };
7846
+ Update: {
7847
+ connection_id?: string;
7848
+ created_at?: string;
7849
+ erp_available_quantity?: number;
7850
+ floriday_desired_quantity?: number;
7851
+ floriday_remote_quantity?: number | null;
7852
+ granularity?: string;
7853
+ id?: string;
7854
+ snapshot_at?: string;
7855
+ user_id?: string | null;
7856
+ };
7857
+ Relationships: [];
7858
+ };
7590
7859
  invoice_items: {
7591
7860
  Row: {
7592
7861
  created_at: string;
@@ -8095,13 +8364,7 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
8095
8364
  segment?: import("../integrations/supabase/types").Database["public"]["Enums"]["itk_customer_segment"];
8096
8365
  updated_at?: string;
8097
8366
  };
8098
- Relationships: [{
8099
- foreignKeyName: "itk_customers_legacy_customer_id_fkey";
8100
- columns: ["legacy_customer_id"];
8101
- isOneToOne: false;
8102
- referencedRelation: "customers";
8103
- referencedColumns: ["id"];
8104
- }];
8367
+ Relationships: [];
8105
8368
  };
8106
8369
  itk_dynamic_fields: {
8107
8370
  Row: {
@@ -8133,6 +8396,180 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
8133
8396
  };
8134
8397
  Relationships: [];
8135
8398
  };
8399
+ itk_handover_rechten: {
8400
+ Row: {
8401
+ created_at: string;
8402
+ id: string;
8403
+ module_id: string;
8404
+ rol: import("../integrations/supabase/types").Database["public"]["Enums"]["app_role"] | null;
8405
+ updated_at: string;
8406
+ user_id: string | null;
8407
+ };
8408
+ Insert: {
8409
+ created_at?: string;
8410
+ id?: string;
8411
+ module_id: string;
8412
+ rol?: import("../integrations/supabase/types").Database["public"]["Enums"]["app_role"] | null;
8413
+ updated_at?: string;
8414
+ user_id?: string | null;
8415
+ };
8416
+ Update: {
8417
+ created_at?: string;
8418
+ id?: string;
8419
+ module_id?: string;
8420
+ rol?: import("../integrations/supabase/types").Database["public"]["Enums"]["app_role"] | null;
8421
+ updated_at?: string;
8422
+ user_id?: string | null;
8423
+ };
8424
+ Relationships: [];
8425
+ };
8426
+ itk_handover_tokens: {
8427
+ Row: {
8428
+ aangemaakt_door: string | null;
8429
+ created_at: string;
8430
+ id: string;
8431
+ is_actief: boolean;
8432
+ laatst_gebruikt_op: string | null;
8433
+ label: string;
8434
+ module_id: string;
8435
+ token_hash: string;
8436
+ updated_at: string;
8437
+ verloopt_op: string | null;
8438
+ };
8439
+ Insert: {
8440
+ aangemaakt_door?: string | null;
8441
+ created_at?: string;
8442
+ id?: string;
8443
+ is_actief?: boolean;
8444
+ laatst_gebruikt_op?: string | null;
8445
+ label?: string;
8446
+ module_id: string;
8447
+ token_hash: string;
8448
+ updated_at?: string;
8449
+ verloopt_op?: string | null;
8450
+ };
8451
+ Update: {
8452
+ aangemaakt_door?: string | null;
8453
+ created_at?: string;
8454
+ id?: string;
8455
+ is_actief?: boolean;
8456
+ laatst_gebruikt_op?: string | null;
8457
+ label?: string;
8458
+ module_id?: string;
8459
+ token_hash?: string;
8460
+ updated_at?: string;
8461
+ verloopt_op?: string | null;
8462
+ };
8463
+ Relationships: [];
8464
+ };
8465
+ itk_module_handovers: {
8466
+ Row: {
8467
+ bevindingen: string | null;
8468
+ bezit_tabellen: string[];
8469
+ conflicten_snapshot: import("../integrations/supabase/types").Json;
8470
+ contractfuncties: string[];
8471
+ created_at: string;
8472
+ eigenaar_module_id: string | null;
8473
+ gepubliceerd_door: string | null;
8474
+ gepubliceerd_op: string;
8475
+ herzieningstermijn_dagen: number;
8476
+ id: string;
8477
+ inhoud_md: string;
8478
+ is_actueel: boolean;
8479
+ module_id: string;
8480
+ module_titel: string;
8481
+ ontbrekende_contracten: string[];
8482
+ samenvatting: string | null;
8483
+ updated_at: string;
8484
+ versie: number;
8485
+ };
8486
+ Insert: {
8487
+ bevindingen?: string | null;
8488
+ bezit_tabellen?: string[];
8489
+ conflicten_snapshot?: import("../integrations/supabase/types").Json;
8490
+ contractfuncties?: string[];
8491
+ created_at?: string;
8492
+ eigenaar_module_id?: string | null;
8493
+ gepubliceerd_door?: string | null;
8494
+ gepubliceerd_op?: string;
8495
+ herzieningstermijn_dagen?: number;
8496
+ id?: string;
8497
+ inhoud_md: string;
8498
+ is_actueel?: boolean;
8499
+ module_id: string;
8500
+ module_titel: string;
8501
+ ontbrekende_contracten?: string[];
8502
+ samenvatting?: string | null;
8503
+ updated_at?: string;
8504
+ versie?: number;
8505
+ };
8506
+ Update: {
8507
+ bevindingen?: string | null;
8508
+ bezit_tabellen?: string[];
8509
+ conflicten_snapshot?: import("../integrations/supabase/types").Json;
8510
+ contractfuncties?: string[];
8511
+ created_at?: string;
8512
+ eigenaar_module_id?: string | null;
8513
+ gepubliceerd_door?: string | null;
8514
+ gepubliceerd_op?: string;
8515
+ herzieningstermijn_dagen?: number;
8516
+ id?: string;
8517
+ inhoud_md?: string;
8518
+ is_actueel?: boolean;
8519
+ module_id?: string;
8520
+ module_titel?: string;
8521
+ ontbrekende_contracten?: string[];
8522
+ samenvatting?: string | null;
8523
+ updated_at?: string;
8524
+ versie?: number;
8525
+ };
8526
+ Relationships: [];
8527
+ };
8528
+ itk_module_instructies: {
8529
+ Row: {
8530
+ created_at: string;
8531
+ eigenaar_module_id: string;
8532
+ gepubliceerd_door: string | null;
8533
+ gepubliceerd_op: string;
8534
+ id: string;
8535
+ inhoud_md: string;
8536
+ is_actueel: boolean;
8537
+ sleutel: string;
8538
+ titel: string;
8539
+ toelichting: string | null;
8540
+ updated_at: string;
8541
+ versie: number;
8542
+ };
8543
+ Insert: {
8544
+ created_at?: string;
8545
+ eigenaar_module_id?: string;
8546
+ gepubliceerd_door?: string | null;
8547
+ gepubliceerd_op?: string;
8548
+ id?: string;
8549
+ inhoud_md: string;
8550
+ is_actueel?: boolean;
8551
+ sleutel: string;
8552
+ titel: string;
8553
+ toelichting?: string | null;
8554
+ updated_at?: string;
8555
+ versie?: number;
8556
+ };
8557
+ Update: {
8558
+ created_at?: string;
8559
+ eigenaar_module_id?: string;
8560
+ gepubliceerd_door?: string | null;
8561
+ gepubliceerd_op?: string;
8562
+ id?: string;
8563
+ inhoud_md?: string;
8564
+ is_actueel?: boolean;
8565
+ sleutel?: string;
8566
+ titel?: string;
8567
+ toelichting?: string | null;
8568
+ updated_at?: string;
8569
+ versie?: number;
8570
+ };
8571
+ Relationships: [];
8572
+ };
8136
8573
  itk_offerte_events: {
8137
8574
  Row: {
8138
8575
  created_at: string;
@@ -8991,6 +9428,27 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
8991
9428
  };
8992
9429
  Relationships: [];
8993
9430
  };
9431
+ logistics_cart_barcode: {
9432
+ Row: {
9433
+ barcode: string;
9434
+ cart_id: string;
9435
+ created_at: string;
9436
+ order_id: string | null;
9437
+ };
9438
+ Insert: {
9439
+ barcode: string;
9440
+ cart_id: string;
9441
+ created_at?: string;
9442
+ order_id?: string | null;
9443
+ };
9444
+ Update: {
9445
+ barcode?: string;
9446
+ cart_id?: string;
9447
+ created_at?: string;
9448
+ order_id?: string | null;
9449
+ };
9450
+ Relationships: [];
9451
+ };
8994
9452
  logistics_decisions: {
8995
9453
  Row: {
8996
9454
  created_at: string;
@@ -9819,6 +10277,36 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
9819
10277
  referencedColumns: ["id"];
9820
10278
  }];
9821
10279
  };
10280
+ logistics_shipping_note_scan: {
10281
+ Row: {
10282
+ barcode: string;
10283
+ cart_id: string;
10284
+ id: string;
10285
+ is_reprint: boolean;
10286
+ order_id: string | null;
10287
+ print_job_id: string | null;
10288
+ scanned_at: string;
10289
+ };
10290
+ Insert: {
10291
+ barcode: string;
10292
+ cart_id: string;
10293
+ id?: string;
10294
+ is_reprint?: boolean;
10295
+ order_id?: string | null;
10296
+ print_job_id?: string | null;
10297
+ scanned_at?: string;
10298
+ };
10299
+ Update: {
10300
+ barcode?: string;
10301
+ cart_id?: string;
10302
+ id?: string;
10303
+ is_reprint?: boolean;
10304
+ order_id?: string | null;
10305
+ print_job_id?: string | null;
10306
+ scanned_at?: string;
10307
+ };
10308
+ Relationships: [];
10309
+ };
9822
10310
  logistics_staff_planning: {
9823
10311
  Row: {
9824
10312
  created_at: string;
@@ -11912,10 +12400,12 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
11912
12400
  boxes: number | null;
11913
12401
  cart_id: string;
11914
12402
  crates: number;
12403
+ crates_in_layer: number | null;
11915
12404
  crates_per_layer: number;
11916
12405
  created_at: string;
11917
12406
  id: string;
11918
12407
  layer_fraction: number;
12408
+ layer_index: number | null;
11919
12409
  layer_share_pct: number;
11920
12410
  layers_per_cart: number;
11921
12411
  order_item_id: string | null;
@@ -11928,10 +12418,12 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
11928
12418
  boxes?: number | null;
11929
12419
  cart_id: string;
11930
12420
  crates: number;
12421
+ crates_in_layer?: number | null;
11931
12422
  crates_per_layer?: number;
11932
12423
  created_at?: string;
11933
12424
  id?: string;
11934
12425
  layer_fraction?: number;
12426
+ layer_index?: number | null;
11935
12427
  layer_share_pct?: number;
11936
12428
  layers_per_cart?: number;
11937
12429
  order_item_id?: string | null;
@@ -11944,10 +12436,12 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
11944
12436
  boxes?: number | null;
11945
12437
  cart_id?: string;
11946
12438
  crates?: number;
12439
+ crates_in_layer?: number | null;
11947
12440
  crates_per_layer?: number;
11948
12441
  created_at?: string;
11949
12442
  id?: string;
11950
12443
  layer_fraction?: number;
12444
+ layer_index?: number | null;
11951
12445
  layer_share_pct?: number;
11952
12446
  layers_per_cart?: number;
11953
12447
  order_item_id?: string | null;
@@ -11987,6 +12481,7 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
11987
12481
  id: string;
11988
12482
  is_auto: boolean;
11989
12483
  is_complete: boolean;
12484
+ layout_method: string | null;
11990
12485
  max_layers: number | null;
11991
12486
  moved_at: string | null;
11992
12487
  moved_from_moment_id: string | null;
@@ -12011,6 +12506,7 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
12011
12506
  id?: string;
12012
12507
  is_auto?: boolean;
12013
12508
  is_complete?: boolean;
12509
+ layout_method?: string | null;
12014
12510
  max_layers?: number | null;
12015
12511
  moved_at?: string | null;
12016
12512
  moved_from_moment_id?: string | null;
@@ -12035,6 +12531,7 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
12035
12531
  id?: string;
12036
12532
  is_auto?: boolean;
12037
12533
  is_complete?: boolean;
12534
+ layout_method?: string | null;
12038
12535
  max_layers?: number | null;
12039
12536
  moved_at?: string | null;
12040
12537
  moved_from_moment_id?: string | null;
@@ -12640,6 +13137,7 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
12640
13137
  print_job_id: string | null;
12641
13138
  printed_at: string | null;
12642
13139
  printed_by: string | null;
13140
+ printed_cart_ids: import("../integrations/supabase/types").Json;
12643
13141
  printer_id: string | null;
12644
13142
  priority: number;
12645
13143
  reference: string | null;
@@ -12674,6 +13172,7 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
12674
13172
  print_job_id?: string | null;
12675
13173
  printed_at?: string | null;
12676
13174
  printed_by?: string | null;
13175
+ printed_cart_ids?: import("../integrations/supabase/types").Json;
12677
13176
  printer_id?: string | null;
12678
13177
  priority?: number;
12679
13178
  reference?: string | null;
@@ -12708,6 +13207,7 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
12708
13207
  print_job_id?: string | null;
12709
13208
  printed_at?: string | null;
12710
13209
  printed_by?: string | null;
13210
+ printed_cart_ids?: import("../integrations/supabase/types").Json;
12711
13211
  printer_id?: string | null;
12712
13212
  priority?: number;
12713
13213
  reference?: string | null;
@@ -13507,6 +14007,12 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
13507
14007
  isOneToOne: false;
13508
14008
  referencedRelation: "planning_items";
13509
14009
  referencedColumns: ["id"];
14010
+ }, {
14011
+ foreignKeyName: "planning_item_assistants_planning_item_id_fkey";
14012
+ columns: ["planning_item_id"];
14013
+ isOneToOne: false;
14014
+ referencedRelation: "planning_overview";
14015
+ referencedColumns: ["id"];
13510
14016
  }];
13511
14017
  };
13512
14018
  planning_items: {
@@ -14616,6 +15122,7 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
14616
15122
  created_at: string;
14617
15123
  custom_fields: import("../integrations/supabase/types").Json;
14618
15124
  floriday_trade_item_id: string | null;
15125
+ fust_type_id: string | null;
14619
15126
  id: string;
14620
15127
  image_url: string | null;
14621
15128
  incoming_quantity: number;
@@ -14623,6 +15130,7 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
14623
15130
  layers_per_cart: number;
14624
15131
  location: string;
14625
15132
  min_quantity: number;
15133
+ plant_height_cm: number | null;
14626
15134
  plants_per_crate: number;
14627
15135
  product: string;
14628
15136
  product_type: string;
@@ -14642,6 +15150,7 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
14642
15150
  created_at?: string;
14643
15151
  custom_fields?: import("../integrations/supabase/types").Json;
14644
15152
  floriday_trade_item_id?: string | null;
15153
+ fust_type_id?: string | null;
14645
15154
  id?: string;
14646
15155
  image_url?: string | null;
14647
15156
  incoming_quantity?: number;
@@ -14649,6 +15158,7 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
14649
15158
  layers_per_cart?: number;
14650
15159
  location: string;
14651
15160
  min_quantity?: number;
15161
+ plant_height_cm?: number | null;
14652
15162
  plants_per_crate?: number;
14653
15163
  product: string;
14654
15164
  product_type?: string;
@@ -14668,6 +15178,7 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
14668
15178
  created_at?: string;
14669
15179
  custom_fields?: import("../integrations/supabase/types").Json;
14670
15180
  floriday_trade_item_id?: string | null;
15181
+ fust_type_id?: string | null;
14671
15182
  id?: string;
14672
15183
  image_url?: string | null;
14673
15184
  incoming_quantity?: number;
@@ -14675,6 +15186,7 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
14675
15186
  layers_per_cart?: number;
14676
15187
  location?: string;
14677
15188
  min_quantity?: number;
15189
+ plant_height_cm?: number | null;
14678
15190
  plants_per_crate?: number;
14679
15191
  product?: string;
14680
15192
  product_type?: string;
@@ -14686,7 +15198,13 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
14686
15198
  updated_at?: string;
14687
15199
  weight?: string | null;
14688
15200
  };
14689
- Relationships: [];
15201
+ Relationships: [{
15202
+ foreignKeyName: "products_fust_type_id_fkey";
15203
+ columns: ["fust_type_id"];
15204
+ isOneToOne: false;
15205
+ referencedRelation: "fust_types";
15206
+ referencedColumns: ["id"];
15207
+ }];
14690
15208
  };
14691
15209
  profile_modules: {
14692
15210
  Row: {
@@ -15084,450 +15602,6 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
15084
15602
  referencedColumns: ["id"];
15085
15603
  }];
15086
15604
  };
15087
- quote_activities: {
15088
- Row: {
15089
- created_at: string;
15090
- event_type: string;
15091
- id: string;
15092
- metadata: import("../integrations/supabase/types").Json;
15093
- quote_id: string;
15094
- user_id: string | null;
15095
- };
15096
- Insert: {
15097
- created_at?: string;
15098
- event_type: string;
15099
- id?: string;
15100
- metadata?: import("../integrations/supabase/types").Json;
15101
- quote_id: string;
15102
- user_id?: string | null;
15103
- };
15104
- Update: {
15105
- created_at?: string;
15106
- event_type?: string;
15107
- id?: string;
15108
- metadata?: import("../integrations/supabase/types").Json;
15109
- quote_id?: string;
15110
- user_id?: string | null;
15111
- };
15112
- Relationships: [{
15113
- foreignKeyName: "quote_activities_quote_id_fkey";
15114
- columns: ["quote_id"];
15115
- isOneToOne: false;
15116
- referencedRelation: "quotes";
15117
- referencedColumns: ["id"];
15118
- }];
15119
- };
15120
- quote_attachments: {
15121
- Row: {
15122
- created_at: string;
15123
- file_name: string;
15124
- file_size: number | null;
15125
- file_url: string;
15126
- id: string;
15127
- mime_type: string | null;
15128
- quote_id: string;
15129
- };
15130
- Insert: {
15131
- created_at?: string;
15132
- file_name: string;
15133
- file_size?: number | null;
15134
- file_url: string;
15135
- id?: string;
15136
- mime_type?: string | null;
15137
- quote_id: string;
15138
- };
15139
- Update: {
15140
- created_at?: string;
15141
- file_name?: string;
15142
- file_size?: number | null;
15143
- file_url?: string;
15144
- id?: string;
15145
- mime_type?: string | null;
15146
- quote_id?: string;
15147
- };
15148
- Relationships: [{
15149
- foreignKeyName: "quote_attachments_quote_id_fkey";
15150
- columns: ["quote_id"];
15151
- isOneToOne: false;
15152
- referencedRelation: "quotes";
15153
- referencedColumns: ["id"];
15154
- }];
15155
- };
15156
- quote_field_options: {
15157
- Row: {
15158
- created_at: string;
15159
- field_id: string;
15160
- id: string;
15161
- label: string;
15162
- sort_order: number;
15163
- value: string;
15164
- };
15165
- Insert: {
15166
- created_at?: string;
15167
- field_id: string;
15168
- id?: string;
15169
- label: string;
15170
- sort_order?: number;
15171
- value: string;
15172
- };
15173
- Update: {
15174
- created_at?: string;
15175
- field_id?: string;
15176
- id?: string;
15177
- label?: string;
15178
- sort_order?: number;
15179
- value?: string;
15180
- };
15181
- Relationships: [{
15182
- foreignKeyName: "quote_field_options_field_id_fkey";
15183
- columns: ["field_id"];
15184
- isOneToOne: false;
15185
- referencedRelation: "quote_field_settings";
15186
- referencedColumns: ["id"];
15187
- }];
15188
- };
15189
- quote_field_settings: {
15190
- Row: {
15191
- created_at: string;
15192
- default_value: string | null;
15193
- field_key: string;
15194
- field_type: string;
15195
- id: string;
15196
- is_system: boolean;
15197
- label: string;
15198
- required: boolean;
15199
- sort_order: number;
15200
- updated_at: string;
15201
- visible: boolean;
15202
- };
15203
- Insert: {
15204
- created_at?: string;
15205
- default_value?: string | null;
15206
- field_key: string;
15207
- field_type: string;
15208
- id?: string;
15209
- is_system?: boolean;
15210
- label: string;
15211
- required?: boolean;
15212
- sort_order?: number;
15213
- updated_at?: string;
15214
- visible?: boolean;
15215
- };
15216
- Update: {
15217
- created_at?: string;
15218
- default_value?: string | null;
15219
- field_key?: string;
15220
- field_type?: string;
15221
- id?: string;
15222
- is_system?: boolean;
15223
- label?: string;
15224
- required?: boolean;
15225
- sort_order?: number;
15226
- updated_at?: string;
15227
- visible?: boolean;
15228
- };
15229
- Relationships: [];
15230
- };
15231
- quote_items: {
15232
- Row: {
15233
- category: string | null;
15234
- created_at: string;
15235
- description: string;
15236
- id: string;
15237
- line_total: number;
15238
- module_id: string | null;
15239
- name: string | null;
15240
- quantity: number;
15241
- quote_id: string;
15242
- sort_order: number;
15243
- unit_price: number;
15244
- };
15245
- Insert: {
15246
- category?: string | null;
15247
- created_at?: string;
15248
- description?: string;
15249
- id?: string;
15250
- line_total?: number;
15251
- module_id?: string | null;
15252
- name?: string | null;
15253
- quantity?: number;
15254
- quote_id: string;
15255
- sort_order?: number;
15256
- unit_price?: number;
15257
- };
15258
- Update: {
15259
- category?: string | null;
15260
- created_at?: string;
15261
- description?: string;
15262
- id?: string;
15263
- line_total?: number;
15264
- module_id?: string | null;
15265
- name?: string | null;
15266
- quantity?: number;
15267
- quote_id?: string;
15268
- sort_order?: number;
15269
- unit_price?: number;
15270
- };
15271
- Relationships: [{
15272
- foreignKeyName: "quote_items_module_id_fkey";
15273
- columns: ["module_id"];
15274
- isOneToOne: false;
15275
- referencedRelation: "quote_modules";
15276
- referencedColumns: ["id"];
15277
- }, {
15278
- foreignKeyName: "quote_items_quote_id_fkey";
15279
- columns: ["quote_id"];
15280
- isOneToOne: false;
15281
- referencedRelation: "quotes";
15282
- referencedColumns: ["id"];
15283
- }];
15284
- };
15285
- quote_modules: {
15286
- Row: {
15287
- category: string | null;
15288
- created_at: string;
15289
- description: string | null;
15290
- id: string;
15291
- is_active: boolean;
15292
- name: string;
15293
- price: number;
15294
- sort_order: number;
15295
- updated_at: string;
15296
- };
15297
- Insert: {
15298
- category?: string | null;
15299
- created_at?: string;
15300
- description?: string | null;
15301
- id?: string;
15302
- is_active?: boolean;
15303
- name: string;
15304
- price?: number;
15305
- sort_order?: number;
15306
- updated_at?: string;
15307
- };
15308
- Update: {
15309
- category?: string | null;
15310
- created_at?: string;
15311
- description?: string | null;
15312
- id?: string;
15313
- is_active?: boolean;
15314
- name?: string;
15315
- price?: number;
15316
- sort_order?: number;
15317
- updated_at?: string;
15318
- };
15319
- Relationships: [];
15320
- };
15321
- quote_templates: {
15322
- Row: {
15323
- created_at: string;
15324
- description: string | null;
15325
- field_values: import("../integrations/supabase/types").Json;
15326
- id: string;
15327
- is_default: boolean;
15328
- items: import("../integrations/supabase/types").Json;
15329
- name: string;
15330
- updated_at: string;
15331
- vat_rate: number;
15332
- };
15333
- Insert: {
15334
- created_at?: string;
15335
- description?: string | null;
15336
- field_values?: import("../integrations/supabase/types").Json;
15337
- id?: string;
15338
- is_default?: boolean;
15339
- items?: import("../integrations/supabase/types").Json;
15340
- name: string;
15341
- updated_at?: string;
15342
- vat_rate?: number;
15343
- };
15344
- Update: {
15345
- created_at?: string;
15346
- description?: string | null;
15347
- field_values?: import("../integrations/supabase/types").Json;
15348
- id?: string;
15349
- is_default?: boolean;
15350
- items?: import("../integrations/supabase/types").Json;
15351
- name?: string;
15352
- updated_at?: string;
15353
- vat_rate?: number;
15354
- };
15355
- Relationships: [];
15356
- };
15357
- quote_terms: {
15358
- Row: {
15359
- content: string | null;
15360
- created_at: string;
15361
- file_url: string | null;
15362
- id: string;
15363
- is_active: boolean;
15364
- name: string;
15365
- published_at: string | null;
15366
- updated_at: string;
15367
- version: string;
15368
- };
15369
- Insert: {
15370
- content?: string | null;
15371
- created_at?: string;
15372
- file_url?: string | null;
15373
- id?: string;
15374
- is_active?: boolean;
15375
- name: string;
15376
- published_at?: string | null;
15377
- updated_at?: string;
15378
- version?: string;
15379
- };
15380
- Update: {
15381
- content?: string | null;
15382
- created_at?: string;
15383
- file_url?: string | null;
15384
- id?: string;
15385
- is_active?: boolean;
15386
- name?: string;
15387
- published_at?: string | null;
15388
- updated_at?: string;
15389
- version?: string;
15390
- };
15391
- Relationships: [];
15392
- };
15393
- quotes: {
15394
- Row: {
15395
- accepted_at: string | null;
15396
- archived_at: string | null;
15397
- contact_id: string | null;
15398
- created_at: string;
15399
- customer_id: string | null;
15400
- discount: number;
15401
- expires_at: string | null;
15402
- field_values: import("../integrations/supabase/types").Json;
15403
- id: string;
15404
- notes: string | null;
15405
- owner_id: string | null;
15406
- personal_message: string | null;
15407
- project_id: string | null;
15408
- prospect_id: string | null;
15409
- public_token: string;
15410
- quote_number: string | null;
15411
- recipient_email: string | null;
15412
- recipient_name: string | null;
15413
- rejected_at: string | null;
15414
- sent_at: string | null;
15415
- status: string;
15416
- subtotal: number;
15417
- template_id: string | null;
15418
- terms_id: string | null;
15419
- title: string;
15420
- total: number;
15421
- updated_at: string;
15422
- valid_until: string | null;
15423
- vat_amount: number;
15424
- vat_rate: number;
15425
- viewed_at: string | null;
15426
- };
15427
- Insert: {
15428
- accepted_at?: string | null;
15429
- archived_at?: string | null;
15430
- contact_id?: string | null;
15431
- created_at?: string;
15432
- customer_id?: string | null;
15433
- discount?: number;
15434
- expires_at?: string | null;
15435
- field_values?: import("../integrations/supabase/types").Json;
15436
- id?: string;
15437
- notes?: string | null;
15438
- owner_id?: string | null;
15439
- personal_message?: string | null;
15440
- project_id?: string | null;
15441
- prospect_id?: string | null;
15442
- public_token?: string;
15443
- quote_number?: string | null;
15444
- recipient_email?: string | null;
15445
- recipient_name?: string | null;
15446
- rejected_at?: string | null;
15447
- sent_at?: string | null;
15448
- status?: string;
15449
- subtotal?: number;
15450
- template_id?: string | null;
15451
- terms_id?: string | null;
15452
- title?: string;
15453
- total?: number;
15454
- updated_at?: string;
15455
- valid_until?: string | null;
15456
- vat_amount?: number;
15457
- vat_rate?: number;
15458
- viewed_at?: string | null;
15459
- };
15460
- Update: {
15461
- accepted_at?: string | null;
15462
- archived_at?: string | null;
15463
- contact_id?: string | null;
15464
- created_at?: string;
15465
- customer_id?: string | null;
15466
- discount?: number;
15467
- expires_at?: string | null;
15468
- field_values?: import("../integrations/supabase/types").Json;
15469
- id?: string;
15470
- notes?: string | null;
15471
- owner_id?: string | null;
15472
- personal_message?: string | null;
15473
- project_id?: string | null;
15474
- prospect_id?: string | null;
15475
- public_token?: string;
15476
- quote_number?: string | null;
15477
- recipient_email?: string | null;
15478
- recipient_name?: string | null;
15479
- rejected_at?: string | null;
15480
- sent_at?: string | null;
15481
- status?: string;
15482
- subtotal?: number;
15483
- template_id?: string | null;
15484
- terms_id?: string | null;
15485
- title?: string;
15486
- total?: number;
15487
- updated_at?: string;
15488
- valid_until?: string | null;
15489
- vat_amount?: number;
15490
- vat_rate?: number;
15491
- viewed_at?: string | null;
15492
- };
15493
- Relationships: [{
15494
- foreignKeyName: "quotes_contact_id_fkey";
15495
- columns: ["contact_id"];
15496
- isOneToOne: false;
15497
- referencedRelation: "customer_contacts";
15498
- referencedColumns: ["id"];
15499
- }, {
15500
- foreignKeyName: "quotes_customer_id_fkey";
15501
- columns: ["customer_id"];
15502
- isOneToOne: false;
15503
- referencedRelation: "customers";
15504
- referencedColumns: ["id"];
15505
- }, {
15506
- foreignKeyName: "quotes_project_id_fkey";
15507
- columns: ["project_id"];
15508
- isOneToOne: false;
15509
- referencedRelation: "projects";
15510
- referencedColumns: ["id"];
15511
- }, {
15512
- foreignKeyName: "quotes_prospect_id_fkey";
15513
- columns: ["prospect_id"];
15514
- isOneToOne: false;
15515
- referencedRelation: "prospects";
15516
- referencedColumns: ["id"];
15517
- }, {
15518
- foreignKeyName: "quotes_template_id_fkey";
15519
- columns: ["template_id"];
15520
- isOneToOne: false;
15521
- referencedRelation: "quote_templates";
15522
- referencedColumns: ["id"];
15523
- }, {
15524
- foreignKeyName: "quotes_terms_id_fkey";
15525
- columns: ["terms_id"];
15526
- isOneToOne: false;
15527
- referencedRelation: "quote_terms";
15528
- referencedColumns: ["id"];
15529
- }];
15530
- };
15531
15605
  reception_notifications: {
15532
15606
  Row: {
15533
15607
  booking_id: string | null;
@@ -16649,7 +16723,7 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
16649
16723
  foreignKeyName: "time_logs_work_order_id_fkey";
16650
16724
  columns: ["work_order_id"];
16651
16725
  isOneToOne: false;
16652
- referencedRelation: "work_orders";
16726
+ referencedRelation: "werkbonnen";
16653
16727
  referencedColumns: ["id"];
16654
16728
  }];
16655
16729
  };
@@ -16781,6 +16855,7 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
16781
16855
  };
16782
16856
  trade_item_stock: {
16783
16857
  Row: {
16858
+ change_source: string;
16784
16859
  connection_id: string;
16785
16860
  created_at: string;
16786
16861
  id: string;
@@ -16794,6 +16869,7 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
16794
16869
  user_id: string;
16795
16870
  };
16796
16871
  Insert: {
16872
+ change_source?: string;
16797
16873
  connection_id: string;
16798
16874
  created_at?: string;
16799
16875
  id?: string;
@@ -16807,6 +16883,7 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
16807
16883
  user_id: string;
16808
16884
  };
16809
16885
  Update: {
16886
+ change_source?: string;
16810
16887
  connection_id?: string;
16811
16888
  created_at?: string;
16812
16889
  id?: string;
@@ -17976,156 +18053,6 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
17976
18053
  };
17977
18054
  Relationships: [];
17978
18055
  };
17979
- uren_offerte_regels: {
17980
- Row: {
17981
- created_at: string;
17982
- description: string;
17983
- duration_minutes: number;
17984
- id: string;
17985
- offerte_id: string;
17986
- package_id: string | null;
17987
- quantity: number;
17988
- sort_order: number;
17989
- total_cents: number;
17990
- unit_price_cents: number;
17991
- };
17992
- Insert: {
17993
- created_at?: string;
17994
- description: string;
17995
- duration_minutes?: number;
17996
- id?: string;
17997
- offerte_id: string;
17998
- package_id?: string | null;
17999
- quantity?: number;
18000
- sort_order?: number;
18001
- total_cents?: number;
18002
- unit_price_cents?: number;
18003
- };
18004
- Update: {
18005
- created_at?: string;
18006
- description?: string;
18007
- duration_minutes?: number;
18008
- id?: string;
18009
- offerte_id?: string;
18010
- package_id?: string | null;
18011
- quantity?: number;
18012
- sort_order?: number;
18013
- total_cents?: number;
18014
- unit_price_cents?: number;
18015
- };
18016
- Relationships: [{
18017
- foreignKeyName: "uren_offerte_regels_offerte_id_fkey";
18018
- columns: ["offerte_id"];
18019
- isOneToOne: false;
18020
- referencedRelation: "uren_offertes";
18021
- referencedColumns: ["id"];
18022
- }, {
18023
- foreignKeyName: "uren_offerte_regels_package_id_fkey";
18024
- columns: ["package_id"];
18025
- isOneToOne: false;
18026
- referencedRelation: "werkbon_packages";
18027
- referencedColumns: ["id"];
18028
- }];
18029
- };
18030
- uren_offerte_velden: {
18031
- Row: {
18032
- created_at: string;
18033
- field_type: string;
18034
- id: string;
18035
- key: string;
18036
- label: string;
18037
- options: string[];
18038
- required: boolean;
18039
- sort_order: number;
18040
- updated_at: string;
18041
- };
18042
- Insert: {
18043
- created_at?: string;
18044
- field_type?: string;
18045
- id?: string;
18046
- key: string;
18047
- label: string;
18048
- options?: string[];
18049
- required?: boolean;
18050
- sort_order?: number;
18051
- updated_at?: string;
18052
- };
18053
- Update: {
18054
- created_at?: string;
18055
- field_type?: string;
18056
- id?: string;
18057
- key?: string;
18058
- label?: string;
18059
- options?: string[];
18060
- required?: boolean;
18061
- sort_order?: number;
18062
- updated_at?: string;
18063
- };
18064
- Relationships: [];
18065
- };
18066
- uren_offertes: {
18067
- Row: {
18068
- created_at: string;
18069
- created_by: string | null;
18070
- customer_id: string | null;
18071
- customer_name: string | null;
18072
- dynamic_fields: import("../integrations/supabase/types").Json;
18073
- estimated_minutes: number;
18074
- id: string;
18075
- note: string | null;
18076
- quote_number: string | null;
18077
- status: string;
18078
- title: string;
18079
- total_excl_cents: number;
18080
- total_incl_cents: number;
18081
- updated_at: string;
18082
- valid_until: string | null;
18083
- vat_percentage: number;
18084
- };
18085
- Insert: {
18086
- created_at?: string;
18087
- created_by?: string | null;
18088
- customer_id?: string | null;
18089
- customer_name?: string | null;
18090
- dynamic_fields?: import("../integrations/supabase/types").Json;
18091
- estimated_minutes?: number;
18092
- id?: string;
18093
- note?: string | null;
18094
- quote_number?: string | null;
18095
- status?: string;
18096
- title?: string;
18097
- total_excl_cents?: number;
18098
- total_incl_cents?: number;
18099
- updated_at?: string;
18100
- valid_until?: string | null;
18101
- vat_percentage?: number;
18102
- };
18103
- Update: {
18104
- created_at?: string;
18105
- created_by?: string | null;
18106
- customer_id?: string | null;
18107
- customer_name?: string | null;
18108
- dynamic_fields?: import("../integrations/supabase/types").Json;
18109
- estimated_minutes?: number;
18110
- id?: string;
18111
- note?: string | null;
18112
- quote_number?: string | null;
18113
- status?: string;
18114
- title?: string;
18115
- total_excl_cents?: number;
18116
- total_incl_cents?: number;
18117
- updated_at?: string;
18118
- valid_until?: string | null;
18119
- vat_percentage?: number;
18120
- };
18121
- Relationships: [{
18122
- foreignKeyName: "uren_offertes_customer_id_fkey";
18123
- columns: ["customer_id"];
18124
- isOneToOne: false;
18125
- referencedRelation: "itk_customers";
18126
- referencedColumns: ["id"];
18127
- }];
18128
- };
18129
18056
  uren_settings: {
18130
18057
  Row: {
18131
18058
  break_minutes: number;
@@ -19812,6 +19739,37 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
19812
19739
  };
19813
19740
  Relationships: [];
19814
19741
  };
19742
+ planning_overview: {
19743
+ Row: {
19744
+ assigned_monteur_id: string | null;
19745
+ assistants: import("../integrations/supabase/types").Json | null;
19746
+ budget_mandate_cents: number | null;
19747
+ created_at: string | null;
19748
+ created_by: string | null;
19749
+ customer_id: string | null;
19750
+ customer_name: string | null;
19751
+ duration_minutes: number | null;
19752
+ end_at: string | null;
19753
+ id: string | null;
19754
+ needs_detail_review: boolean | null;
19755
+ notes: string | null;
19756
+ project_number: string | null;
19757
+ review_reasons: string[] | null;
19758
+ start_at: string | null;
19759
+ status: import("../integrations/supabase/types").Database["public"]["Enums"]["planning_item_status"] | null;
19760
+ updated_at: string | null;
19761
+ viewer_role: string | null;
19762
+ werkbon_id: string | null;
19763
+ work_address: string | null;
19764
+ };
19765
+ Relationships: [{
19766
+ foreignKeyName: "planning_items_werkbon_id_fkey";
19767
+ columns: ["werkbon_id"];
19768
+ isOneToOne: false;
19769
+ referencedRelation: "werkbonnen";
19770
+ referencedColumns: ["id"];
19771
+ }];
19772
+ };
19815
19773
  product_group_stock_view: {
19816
19774
  Row: {
19817
19775
  item_count: number | null;
@@ -20407,6 +20365,18 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
20407
20365
  Args: never;
20408
20366
  Returns: number;
20409
20367
  };
20368
+ calculate_floriday_desired_stock: {
20369
+ Args: {
20370
+ p_connection_id: string;
20371
+ p_product_id: string;
20372
+ };
20373
+ Returns: {
20374
+ desired_availability: boolean;
20375
+ desired_quantity: number;
20376
+ erp_available: number;
20377
+ stock_mode: string;
20378
+ }[];
20379
+ };
20410
20380
  calculate_layer_stock: {
20411
20381
  Args: {
20412
20382
  p_product_id: string;
@@ -20501,6 +20471,7 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
20501
20471
  attempts: number;
20502
20472
  connection_id: string;
20503
20473
  created_at: string;
20474
+ dead_lettered_at: string | null;
20504
20475
  desired_available: boolean | null;
20505
20476
  gateway_attempt_id: string | null;
20506
20477
  id: string;
@@ -20509,9 +20480,13 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
20509
20480
  locked_by: string | null;
20510
20481
  next_attempt_at: string;
20511
20482
  number_of_pieces: number;
20483
+ product_id: string | null;
20512
20484
  sent_at: string | null;
20513
20485
  status: string;
20486
+ stock_mode: string | null;
20514
20487
  superseded_by: string | null;
20488
+ target_week: number | null;
20489
+ target_year: number | null;
20515
20490
  trade_item_id: string;
20516
20491
  updated_at: string;
20517
20492
  user_id: string;
@@ -20992,6 +20967,24 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
20992
20967
  };
20993
20968
  Returns: string;
20994
20969
  };
20970
+ floriday_capture_stock_snapshot: {
20971
+ Args: never;
20972
+ Returns: number;
20973
+ };
20974
+ floriday_cleanup_stock_queue_v2: {
20975
+ Args: never;
20976
+ Returns: undefined;
20977
+ };
20978
+ floriday_compact_stock_snapshots: {
20979
+ Args: never;
20980
+ Returns: undefined;
20981
+ };
20982
+ floriday_default_owner: {
20983
+ Args: {
20984
+ p_connection_id: string;
20985
+ };
20986
+ Returns: string;
20987
+ };
20995
20988
  floriday_effective_price: {
20996
20989
  Args: {
20997
20990
  _buyer_id: string;
@@ -21009,6 +21002,34 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
21009
21002
  source_id: string;
21010
21003
  }[];
21011
21004
  };
21005
+ floriday_fill_publish_horizon: {
21006
+ Args: never;
21007
+ Returns: number;
21008
+ };
21009
+ floriday_ingest_sales_orders: {
21010
+ Args: {
21011
+ p_limit?: number;
21012
+ };
21013
+ Returns: number;
21014
+ };
21015
+ floriday_publish_horizon_weeks: {
21016
+ Args: never;
21017
+ Returns: number;
21018
+ };
21019
+ floriday_recompute_inventory: {
21020
+ Args: {
21021
+ p_connection_id: string;
21022
+ p_force?: boolean;
21023
+ p_product_id: string;
21024
+ };
21025
+ Returns: undefined;
21026
+ };
21027
+ floriday_requeue_dead_letters: {
21028
+ Args: {
21029
+ p_connection_id?: string;
21030
+ };
21031
+ Returns: number;
21032
+ };
21012
21033
  format_cart_number: {
21013
21034
  Args: {
21014
21035
  p_pick_date: string;
@@ -21225,6 +21246,131 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
21225
21246
  Args: never;
21226
21247
  Returns: string;
21227
21248
  };
21249
+ handover_get: {
21250
+ Args: {
21251
+ _module_id: string;
21252
+ };
21253
+ Returns: import("../integrations/supabase/types").Json;
21254
+ };
21255
+ handover_kern_naam: {
21256
+ Args: {
21257
+ _naam: string;
21258
+ };
21259
+ Returns: string;
21260
+ };
21261
+ handover_ketenmodel: {
21262
+ Args: never;
21263
+ Returns: import("../integrations/supabase/types").Json;
21264
+ };
21265
+ handover_kruisconflicten: {
21266
+ Args: never;
21267
+ Returns: import("../integrations/supabase/types").Json;
21268
+ };
21269
+ handover_list: {
21270
+ Args: never;
21271
+ Returns: import("../integrations/supabase/types").Json;
21272
+ };
21273
+ handover_mag_schrijven: {
21274
+ Args: {
21275
+ _module_id: string;
21276
+ };
21277
+ Returns: boolean;
21278
+ };
21279
+ handover_norm_naam: {
21280
+ Args: {
21281
+ _naam: string;
21282
+ };
21283
+ Returns: string;
21284
+ };
21285
+ handover_publish: {
21286
+ Args: {
21287
+ _bevindingen?: string;
21288
+ _bezit_tabellen?: string[];
21289
+ _conflicten_snapshot?: import("../integrations/supabase/types").Json;
21290
+ _contractfuncties?: string[];
21291
+ _inhoud_md: string;
21292
+ _module_id: string;
21293
+ _module_titel: string;
21294
+ _ontbrekende_contracten?: string[];
21295
+ _samenvatting?: string;
21296
+ };
21297
+ Returns: number;
21298
+ };
21299
+ handover_publish_via_token: {
21300
+ Args: {
21301
+ _bevindingen?: string;
21302
+ _bezit_tabellen?: string[];
21303
+ _conflicten_snapshot?: import("../integrations/supabase/types").Json;
21304
+ _contractfuncties?: string[];
21305
+ _inhoud_md: string;
21306
+ _module_id: string;
21307
+ _module_titel: string;
21308
+ _ontbrekende_contracten?: string[];
21309
+ _samenvatting?: string;
21310
+ _token_hash: string;
21311
+ };
21312
+ Returns: number;
21313
+ };
21314
+ handover_status: {
21315
+ Args: never;
21316
+ Returns: import("../integrations/supabase/types").Json;
21317
+ };
21318
+ handover_synonym_kern: {
21319
+ Args: {
21320
+ _naam: string;
21321
+ };
21322
+ Returns: string;
21323
+ };
21324
+ handover_token_intrekken: {
21325
+ Args: {
21326
+ _id: string;
21327
+ };
21328
+ Returns: boolean;
21329
+ };
21330
+ handover_token_lijst: {
21331
+ Args: never;
21332
+ Returns: import("../integrations/supabase/types").Json;
21333
+ };
21334
+ handover_token_maken: {
21335
+ Args: {
21336
+ _label?: string;
21337
+ _module_id: string;
21338
+ };
21339
+ Returns: string;
21340
+ };
21341
+ handover_update: {
21342
+ Args: {
21343
+ _bezit_tabellen?: string[];
21344
+ _contractfuncties?: string[];
21345
+ _herzieningstermijn_dagen?: number;
21346
+ _inhoud_md?: string;
21347
+ _module_id: string;
21348
+ _module_titel?: string;
21349
+ _samenvatting?: string;
21350
+ _versie: number;
21351
+ };
21352
+ Returns: boolean;
21353
+ } | {
21354
+ Args: {
21355
+ _bevindingen?: string;
21356
+ _bezit_tabellen?: string[];
21357
+ _contractfuncties?: string[];
21358
+ _herzieningstermijn_dagen?: number;
21359
+ _inhoud_md?: string;
21360
+ _module_id: string;
21361
+ _module_titel?: string;
21362
+ _ontbrekende_contracten?: string[];
21363
+ _samenvatting?: string;
21364
+ _versie: number;
21365
+ };
21366
+ Returns: boolean;
21367
+ };
21368
+ handover_versies: {
21369
+ Args: {
21370
+ _module_id: string;
21371
+ };
21372
+ Returns: import("../integrations/supabase/types").Json;
21373
+ };
21228
21374
  has_module_permission: {
21229
21375
  Args: {
21230
21376
  _min: string;
@@ -21244,6 +21390,25 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
21244
21390
  Args: never;
21245
21391
  Returns: boolean;
21246
21392
  };
21393
+ instructie_get: {
21394
+ Args: {
21395
+ _sleutel: string;
21396
+ };
21397
+ Returns: import("../integrations/supabase/types").Json;
21398
+ };
21399
+ instructie_list: {
21400
+ Args: never;
21401
+ Returns: import("../integrations/supabase/types").Json;
21402
+ };
21403
+ instructie_publish: {
21404
+ Args: {
21405
+ _inhoud_md: string;
21406
+ _sleutel: string;
21407
+ _titel: string;
21408
+ _toelichting?: string;
21409
+ };
21410
+ Returns: number;
21411
+ };
21247
21412
  invoice_create_from_source: {
21248
21413
  Args: {
21249
21414
  _payload?: import("../integrations/supabase/types").Json;
@@ -21468,6 +21633,12 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
21468
21633
  };
21469
21634
  Returns: boolean;
21470
21635
  };
21636
+ logistics_barcode_lookup: {
21637
+ Args: {
21638
+ p_barcode: string;
21639
+ };
21640
+ Returns: import("../integrations/supabase/types").Json;
21641
+ };
21471
21642
  logistics_buffer_criteria: {
21472
21643
  Args: {
21473
21644
  p_settings: import("../integrations/supabase/types").Json;
@@ -21528,6 +21699,12 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
21528
21699
  };
21529
21700
  Returns: number;
21530
21701
  };
21702
+ logistics_cart_barcode_value: {
21703
+ Args: {
21704
+ _cart_id: string;
21705
+ };
21706
+ Returns: string;
21707
+ };
21531
21708
  logistics_cart_index: {
21532
21709
  Args: {
21533
21710
  p_from?: string;
@@ -21537,6 +21714,10 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
21537
21714
  cart_id: string;
21538
21715
  cart_index: number;
21539
21716
  cart_label: string;
21717
+ delivery_date: string;
21718
+ is_announced: boolean;
21719
+ is_controlled: boolean;
21720
+ is_printed: boolean;
21540
21721
  is_shared: boolean;
21541
21722
  order_number: string;
21542
21723
  order_source: string;
@@ -21547,6 +21728,12 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
21547
21728
  task_status: string;
21548
21729
  }[];
21549
21730
  };
21731
+ logistics_cart_slip_plan: {
21732
+ Args: {
21733
+ p_order_id: string;
21734
+ };
21735
+ Returns: import("../integrations/supabase/types").Json;
21736
+ };
21550
21737
  logistics_check_order_allowed: {
21551
21738
  Args: {
21552
21739
  p_lines: import("../integrations/supabase/types").Json;
@@ -21699,11 +21886,15 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
21699
21886
  Args: never;
21700
21887
  Returns: {
21701
21888
  agenda_carts: number;
21889
+ announced_carts: number;
21702
21890
  control_carts: number;
21891
+ delivery_carts: number;
21703
21892
  ok: boolean;
21704
21893
  orphan_tasks: number;
21705
21894
  pick_date: string;
21706
21895
  raw_carts: number;
21896
+ sales_carts: number;
21897
+ station_carts: number;
21707
21898
  }[];
21708
21899
  };
21709
21900
  logistics_delay_customer_email: {
@@ -21719,12 +21910,35 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
21719
21910
  subject: string;
21720
21911
  }[];
21721
21912
  };
21913
+ logistics_delivery_agenda: {
21914
+ Args: {
21915
+ p_from?: string;
21916
+ p_to?: string;
21917
+ };
21918
+ Returns: {
21919
+ announced_count: number;
21920
+ cart_count: number;
21921
+ controlled_count: number;
21922
+ delivery_date: string;
21923
+ order_count: number;
21924
+ orders: import("../integrations/supabase/types").Json;
21925
+ plant_count: number;
21926
+ printed_count: number;
21927
+ }[];
21928
+ };
21722
21929
  logistics_document_layout: {
21723
21930
  Args: {
21724
21931
  _document_code: string;
21725
21932
  };
21726
21933
  Returns: import("../integrations/supabase/types").Json;
21727
21934
  };
21935
+ logistics_document_layout_v2: {
21936
+ Args: {
21937
+ _document_code: string;
21938
+ _is_partial?: boolean;
21939
+ };
21940
+ Returns: import("../integrations/supabase/types").Json;
21941
+ };
21728
21942
  logistics_document_station: {
21729
21943
  Args: {
21730
21944
  _document_code: string;
@@ -21750,6 +21964,12 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
21750
21964
  };
21751
21965
  Returns: import("../integrations/supabase/types").Json;
21752
21966
  };
21967
+ logistics_ensure_cart_barcode: {
21968
+ Args: {
21969
+ _cart_id: string;
21970
+ };
21971
+ Returns: string;
21972
+ };
21753
21973
  logistics_fail_task: {
21754
21974
  Args: {
21755
21975
  p_error: string;
@@ -21795,6 +22015,16 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
21795
22015
  isSetofReturn: false;
21796
22016
  };
21797
22017
  };
22018
+ logistics_floriday_cart_plan: {
22019
+ Args: {
22020
+ p_order_id: string;
22021
+ };
22022
+ Returns: {
22023
+ carrier_type: string;
22024
+ idx: number;
22025
+ packages: number;
22026
+ }[];
22027
+ };
21798
22028
  logistics_floriday_claim_pushes: {
21799
22029
  Args: {
21800
22030
  _lease_seconds?: number;
@@ -22000,6 +22230,13 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
22000
22230
  };
22001
22231
  Returns: undefined;
22002
22232
  };
22233
+ logistics_plan_floriday_order: {
22234
+ Args: {
22235
+ p_buffer_id?: string;
22236
+ p_order_id: string;
22237
+ };
22238
+ Returns: number;
22239
+ };
22003
22240
  logistics_plan_impact_orders: {
22004
22241
  Args: {
22005
22242
  p_order_id: string;
@@ -22193,6 +22430,14 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
22193
22430
  };
22194
22431
  Returns: string;
22195
22432
  };
22433
+ logistics_shipping_note_from_barcode: {
22434
+ Args: {
22435
+ p_allow_reprint?: boolean;
22436
+ p_barcode: string;
22437
+ p_station_id?: string;
22438
+ };
22439
+ Returns: import("../integrations/supabase/types").Json;
22440
+ };
22196
22441
  logistics_supersede_stale_tasks: {
22197
22442
  Args: {
22198
22443
  p_keep: string[];
@@ -22414,6 +22659,7 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
22414
22659
  print_job_id: string | null;
22415
22660
  printed_at: string | null;
22416
22661
  printed_by: string | null;
22662
+ printed_cart_ids: import("../integrations/supabase/types").Json;
22417
22663
  printer_id: string | null;
22418
22664
  priority: number;
22419
22665
  reference: string | null;
@@ -22463,6 +22709,7 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
22463
22709
  print_job_id: string | null;
22464
22710
  printed_at: string | null;
22465
22711
  printed_by: string | null;
22712
+ printed_cart_ids: import("../integrations/supabase/types").Json;
22466
22713
  printer_id: string | null;
22467
22714
  priority: number;
22468
22715
  reference: string | null;
@@ -22517,6 +22764,56 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
22517
22764
  print_job_id: string | null;
22518
22765
  printed_at: string | null;
22519
22766
  printed_by: string | null;
22767
+ printed_cart_ids: import("../integrations/supabase/types").Json;
22768
+ printer_id: string | null;
22769
+ priority: number;
22770
+ reference: string | null;
22771
+ route: string | null;
22772
+ screen_id: string | null;
22773
+ station_id: string | null;
22774
+ status_id: string | null;
22775
+ updated_at: string;
22776
+ warnings: import("../integrations/supabase/types").Json;
22777
+ };
22778
+ SetofOptions: {
22779
+ from: "*";
22780
+ to: "pick_queue";
22781
+ isOneToOne: true;
22782
+ isSetofReturn: false;
22783
+ };
22784
+ };
22785
+ pick_complete_print_cart: {
22786
+ Args: {
22787
+ _cart_id: string;
22788
+ _printer_id: string;
22789
+ _queue_item_id: string;
22790
+ _session_id: string;
22791
+ };
22792
+ Returns: {
22793
+ announced_at: string;
22794
+ assigned_user_id: string | null;
22795
+ barcode: string | null;
22796
+ cancelled_at: string | null;
22797
+ cart_count: number;
22798
+ completed_at: string | null;
22799
+ country_code: string | null;
22800
+ created_at: string;
22801
+ customer_name: string | null;
22802
+ delivery_address: string | null;
22803
+ document_number: string | null;
22804
+ document_type_id: string | null;
22805
+ due_at: string | null;
22806
+ id: string;
22807
+ is_urgent: boolean;
22808
+ line_count: number;
22809
+ order_number: string | null;
22810
+ order_type: string | null;
22811
+ payload: import("../integrations/supabase/types").Json;
22812
+ print_count: number;
22813
+ print_job_id: string | null;
22814
+ printed_at: string | null;
22815
+ printed_by: string | null;
22816
+ printed_cart_ids: import("../integrations/supabase/types").Json;
22520
22817
  printer_id: string | null;
22521
22818
  priority: number;
22522
22819
  reference: string | null;
@@ -22560,6 +22857,15 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
22560
22857
  _session_id?: string;
22561
22858
  };
22562
22859
  Returns: string;
22860
+ } | {
22861
+ Args: {
22862
+ _cart_id: string;
22863
+ _is_herprint: boolean;
22864
+ _printer_id: string;
22865
+ _queue_item_id: string;
22866
+ _session_id: string;
22867
+ };
22868
+ Returns: string;
22563
22869
  };
22564
22870
  pick_order_context: {
22565
22871
  Args: {
@@ -22640,6 +22946,54 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
22640
22946
  print_job_id: string | null;
22641
22947
  printed_at: string | null;
22642
22948
  printed_by: string | null;
22949
+ printed_cart_ids: import("../integrations/supabase/types").Json;
22950
+ printer_id: string | null;
22951
+ priority: number;
22952
+ reference: string | null;
22953
+ route: string | null;
22954
+ screen_id: string | null;
22955
+ station_id: string | null;
22956
+ status_id: string | null;
22957
+ updated_at: string;
22958
+ warnings: import("../integrations/supabase/types").Json;
22959
+ };
22960
+ SetofOptions: {
22961
+ from: "*";
22962
+ to: "pick_queue";
22963
+ isOneToOne: true;
22964
+ isSetofReturn: false;
22965
+ };
22966
+ } | {
22967
+ Args: {
22968
+ _cart_id?: string;
22969
+ _queue_item_id: string;
22970
+ _session_id: string;
22971
+ };
22972
+ Returns: {
22973
+ announced_at: string;
22974
+ assigned_user_id: string | null;
22975
+ barcode: string | null;
22976
+ cancelled_at: string | null;
22977
+ cart_count: number;
22978
+ completed_at: string | null;
22979
+ country_code: string | null;
22980
+ created_at: string;
22981
+ customer_name: string | null;
22982
+ delivery_address: string | null;
22983
+ document_number: string | null;
22984
+ document_type_id: string | null;
22985
+ due_at: string | null;
22986
+ id: string;
22987
+ is_urgent: boolean;
22988
+ line_count: number;
22989
+ order_number: string | null;
22990
+ order_type: string | null;
22991
+ payload: import("../integrations/supabase/types").Json;
22992
+ print_count: number;
22993
+ print_job_id: string | null;
22994
+ printed_at: string | null;
22995
+ printed_by: string | null;
22996
+ printed_cart_ids: import("../integrations/supabase/types").Json;
22643
22997
  printer_id: string | null;
22644
22998
  priority: number;
22645
22999
  reference: string | null;
@@ -22752,6 +23106,66 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
22752
23106
  };
22753
23107
  Returns: undefined;
22754
23108
  };
23109
+ planning_cancel_item: {
23110
+ Args: {
23111
+ _id: string;
23112
+ };
23113
+ Returns: undefined;
23114
+ };
23115
+ planning_list: {
23116
+ Args: {
23117
+ _from: string;
23118
+ _to: string;
23119
+ };
23120
+ Returns: {
23121
+ assigned_monteur_id: string | null;
23122
+ assistants: import("../integrations/supabase/types").Json | null;
23123
+ budget_mandate_cents: number | null;
23124
+ created_at: string | null;
23125
+ created_by: string | null;
23126
+ customer_id: string | null;
23127
+ customer_name: string | null;
23128
+ duration_minutes: number | null;
23129
+ end_at: string | null;
23130
+ id: string | null;
23131
+ needs_detail_review: boolean | null;
23132
+ notes: string | null;
23133
+ project_number: string | null;
23134
+ review_reasons: string[] | null;
23135
+ start_at: string | null;
23136
+ status: import("../integrations/supabase/types").Database["public"]["Enums"]["planning_item_status"] | null;
23137
+ updated_at: string | null;
23138
+ viewer_role: string | null;
23139
+ werkbon_id: string | null;
23140
+ work_address: string | null;
23141
+ }[];
23142
+ SetofOptions: {
23143
+ from: "*";
23144
+ to: "planning_overview";
23145
+ isOneToOne: false;
23146
+ isSetofReturn: true;
23147
+ };
23148
+ };
23149
+ planning_set_assistants: {
23150
+ Args: {
23151
+ _monteur_ids: string[];
23152
+ _planning_item_id: string;
23153
+ };
23154
+ Returns: undefined;
23155
+ };
23156
+ planning_upsert_item: {
23157
+ Args: {
23158
+ _assigned_monteur_id: string;
23159
+ _end_at: string;
23160
+ _notes?: string;
23161
+ _start_at: string;
23162
+ _werkbon_id: string;
23163
+ };
23164
+ Returns: {
23165
+ action: string;
23166
+ id: string;
23167
+ }[];
23168
+ };
22755
23169
  print_preview_toestaan: {
22756
23170
  Args: {
22757
23171
  _max?: number;
@@ -23333,6 +23747,26 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
23333
23747
  };
23334
23748
  Returns: string[];
23335
23749
  };
23750
+ start_time_log_at: {
23751
+ Args: {
23752
+ p_clicked_at?: string;
23753
+ p_employee_id: string;
23754
+ p_start_lat?: number;
23755
+ p_start_lng?: number;
23756
+ p_type: string;
23757
+ p_work_order_id?: string;
23758
+ };
23759
+ Returns: import("../integrations/supabase/types").Json;
23760
+ };
23761
+ stop_time_log: {
23762
+ Args: {
23763
+ p_employee_id: string;
23764
+ p_end_lat?: number;
23765
+ p_end_lng?: number;
23766
+ p_end_time: string;
23767
+ };
23768
+ Returns: import("../integrations/supabase/types").Json;
23769
+ };
23336
23770
  switch_time_log: {
23337
23771
  Args: {
23338
23772
  p_employee_id: string;
@@ -23553,7 +23987,9 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
23553
23987
  created_at?: string;
23554
23988
  extra_pick_days_with_stickers?: number;
23555
23989
  id?: string;
23556
- max_workdays_earlier_pick?: number;
23990
+ max_workdays_earlier_pick
23991
+ /** Print de afleverbrief automatisch zodra hij beschikbaar is in de cache. */
23992
+ ? /** Print de afleverbrief automatisch zodra hij beschikbaar is in de cache. */: number;
23557
23993
  pick_days_before_transport?: number;
23558
23994
  pick_distribution_enabled?: boolean;
23559
23995
  pick_weekdays?: number[];
@@ -26379,6 +26815,84 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
26379
26815
  };
26380
26816
  Relationships: [];
26381
26817
  };
26818
+ delivery_notes: {
26819
+ Row: {
26820
+ byte_size: number | null;
26821
+ connection_id: string | null;
26822
+ content_type: string;
26823
+ created_at: string;
26824
+ error_message: string | null;
26825
+ fetched_at: string | null;
26826
+ fulfillment_order_id: string | null;
26827
+ http_status: number | null;
26828
+ id: string;
26829
+ label_code: string | null;
26830
+ letter: string | null;
26831
+ load_carrier_index: number | null;
26832
+ load_carrier_type: string | null;
26833
+ order_id: string | null;
26834
+ order_number: string | null;
26835
+ packages: number | null;
26836
+ source: string;
26837
+ status: string;
26838
+ storage_bucket: string;
26839
+ storage_path: string | null;
26840
+ updated_at: string;
26841
+ };
26842
+ Insert: {
26843
+ byte_size?: number | null;
26844
+ connection_id?: string | null;
26845
+ content_type?: string;
26846
+ created_at?: string;
26847
+ error_message?: string | null;
26848
+ fetched_at?: string | null;
26849
+ fulfillment_order_id?: string | null;
26850
+ http_status?: number | null;
26851
+ id?: string;
26852
+ label_code?: string | null;
26853
+ letter?: string | null;
26854
+ load_carrier_index?: number | null;
26855
+ load_carrier_type?: string | null;
26856
+ order_id?: string | null;
26857
+ order_number?: string | null;
26858
+ packages?: number | null;
26859
+ source?: string;
26860
+ status?: string;
26861
+ storage_bucket?: string;
26862
+ storage_path?: string | null;
26863
+ updated_at?: string;
26864
+ };
26865
+ Update: {
26866
+ byte_size?: number | null;
26867
+ connection_id?: string | null;
26868
+ content_type?: string;
26869
+ created_at?: string;
26870
+ error_message?: string | null;
26871
+ fetched_at?: string | null;
26872
+ fulfillment_order_id?: string | null;
26873
+ http_status?: number | null;
26874
+ id?: string;
26875
+ label_code?: string | null;
26876
+ letter?: string | null;
26877
+ load_carrier_index?: number | null;
26878
+ load_carrier_type?: string | null;
26879
+ order_id?: string | null;
26880
+ order_number?: string | null;
26881
+ packages?: number | null;
26882
+ source?: string;
26883
+ status?: string;
26884
+ storage_bucket?: string;
26885
+ storage_path?: string | null;
26886
+ updated_at?: string;
26887
+ };
26888
+ Relationships: [{
26889
+ foreignKeyName: "delivery_notes_order_id_fkey";
26890
+ columns: ["order_id"];
26891
+ isOneToOne: false;
26892
+ referencedRelation: "orders";
26893
+ referencedColumns: ["id"];
26894
+ }];
26895
+ };
26382
26896
  document_bronregels: {
26383
26897
  Row: {
26384
26898
  bron: string;
@@ -29432,10 +29946,7 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
29432
29946
  };
29433
29947
  floriday_connections: {
29434
29948
  Row: {
29435
- access_token: string | null;
29436
29949
  api_key: string;
29437
- client_id: string;
29438
- client_secret: string;
29439
29950
  created_at: string;
29440
29951
  customers_endpoint: string | null;
29441
29952
  environment: string;
@@ -29450,10 +29961,7 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
29450
29961
  updated_at: string;
29451
29962
  };
29452
29963
  Insert: {
29453
- access_token?: string | null;
29454
29964
  api_key: string;
29455
- client_id: string;
29456
- client_secret: string;
29457
29965
  created_at?: string;
29458
29966
  customers_endpoint?: string | null;
29459
29967
  environment: string;
@@ -29468,10 +29976,7 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
29468
29976
  updated_at?: string;
29469
29977
  };
29470
29978
  Update: {
29471
- access_token?: string | null;
29472
29979
  api_key?: string;
29473
- client_id?: string;
29474
- client_secret?: string;
29475
29980
  created_at?: string;
29476
29981
  customers_endpoint?: string | null;
29477
29982
  environment?: string;
@@ -29555,6 +30060,7 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
29555
30060
  attempts: number;
29556
30061
  connection_id: string;
29557
30062
  created_at: string;
30063
+ dead_lettered_at: string | null;
29558
30064
  desired_available: boolean | null;
29559
30065
  gateway_attempt_id: string | null;
29560
30066
  id: string;
@@ -29563,9 +30069,13 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
29563
30069
  locked_by: string | null;
29564
30070
  next_attempt_at: string;
29565
30071
  number_of_pieces: number;
30072
+ product_id: string | null;
29566
30073
  sent_at: string | null;
29567
30074
  status: string;
30075
+ stock_mode: string | null;
29568
30076
  superseded_by: string | null;
30077
+ target_week: number | null;
30078
+ target_year: number | null;
29569
30079
  trade_item_id: string;
29570
30080
  updated_at: string;
29571
30081
  user_id: string;
@@ -29574,6 +30084,7 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
29574
30084
  attempts?: number;
29575
30085
  connection_id: string;
29576
30086
  created_at?: string;
30087
+ dead_lettered_at?: string | null;
29577
30088
  desired_available?: boolean | null;
29578
30089
  gateway_attempt_id?: string | null;
29579
30090
  id?: string;
@@ -29582,9 +30093,13 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
29582
30093
  locked_by?: string | null;
29583
30094
  next_attempt_at?: string;
29584
30095
  number_of_pieces?: number;
30096
+ product_id?: string | null;
29585
30097
  sent_at?: string | null;
29586
30098
  status?: string;
30099
+ stock_mode?: string | null;
29587
30100
  superseded_by?: string | null;
30101
+ target_week?: number | null;
30102
+ target_year?: number | null;
29588
30103
  trade_item_id: string;
29589
30104
  updated_at?: string;
29590
30105
  user_id: string;
@@ -29593,6 +30108,7 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
29593
30108
  attempts?: number;
29594
30109
  connection_id?: string;
29595
30110
  created_at?: string;
30111
+ dead_lettered_at?: string | null;
29596
30112
  desired_available?: boolean | null;
29597
30113
  gateway_attempt_id?: string | null;
29598
30114
  id?: string;
@@ -29601,9 +30117,13 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
29601
30117
  locked_by?: string | null;
29602
30118
  next_attempt_at?: string;
29603
30119
  number_of_pieces?: number;
30120
+ product_id?: string | null;
29604
30121
  sent_at?: string | null;
29605
30122
  status?: string;
30123
+ stock_mode?: string | null;
29606
30124
  superseded_by?: string | null;
30125
+ target_week?: number | null;
30126
+ target_year?: number | null;
29607
30127
  trade_item_id?: string;
29608
30128
  updated_at?: string;
29609
30129
  user_id?: string;
@@ -30012,6 +30532,87 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
30012
30532
  referencedColumns: ["id"];
30013
30533
  }];
30014
30534
  };
30535
+ floriday_inventory_settings: {
30536
+ Row: {
30537
+ buffer_quantity: number;
30538
+ connection_id: string;
30539
+ created_at: string;
30540
+ desired_availability: boolean;
30541
+ desired_quantity: number;
30542
+ fixed_quantity: number | null;
30543
+ floriday_trade_item_id: string | null;
30544
+ id: string;
30545
+ last_confirmed_at: string | null;
30546
+ last_enqueued_at: string | null;
30547
+ last_published_at: string | null;
30548
+ last_sync_error: string | null;
30549
+ manual_quantity: number | null;
30550
+ maximum_quantity: number | null;
30551
+ product_id: string;
30552
+ quantity_control: string;
30553
+ remote_available: boolean | null;
30554
+ remote_checked_at: string | null;
30555
+ remote_quantity: number | null;
30556
+ stock_mode: string;
30557
+ sync_status: string;
30558
+ updated_at: string;
30559
+ updated_by: string | null;
30560
+ user_id: string;
30561
+ };
30562
+ Insert: {
30563
+ buffer_quantity?: number;
30564
+ connection_id: string;
30565
+ created_at?: string;
30566
+ desired_availability?: boolean;
30567
+ desired_quantity?: number;
30568
+ fixed_quantity?: number | null;
30569
+ floriday_trade_item_id?: string | null;
30570
+ id?: string;
30571
+ last_confirmed_at?: string | null;
30572
+ last_enqueued_at?: string | null;
30573
+ last_published_at?: string | null;
30574
+ last_sync_error?: string | null;
30575
+ manual_quantity?: number | null;
30576
+ maximum_quantity?: number | null;
30577
+ product_id: string;
30578
+ quantity_control?: string;
30579
+ remote_available?: boolean | null;
30580
+ remote_checked_at?: string | null;
30581
+ remote_quantity?: number | null;
30582
+ stock_mode?: string;
30583
+ sync_status?: string;
30584
+ updated_at?: string;
30585
+ updated_by?: string | null;
30586
+ user_id: string;
30587
+ };
30588
+ Update: {
30589
+ buffer_quantity?: number;
30590
+ connection_id?: string;
30591
+ created_at?: string;
30592
+ desired_availability?: boolean;
30593
+ desired_quantity?: number;
30594
+ fixed_quantity?: number | null;
30595
+ floriday_trade_item_id?: string | null;
30596
+ id?: string;
30597
+ last_confirmed_at?: string | null;
30598
+ last_enqueued_at?: string | null;
30599
+ last_published_at?: string | null;
30600
+ last_sync_error?: string | null;
30601
+ manual_quantity?: number | null;
30602
+ maximum_quantity?: number | null;
30603
+ product_id?: string;
30604
+ quantity_control?: string;
30605
+ remote_available?: boolean | null;
30606
+ remote_checked_at?: string | null;
30607
+ remote_quantity?: number | null;
30608
+ stock_mode?: string;
30609
+ sync_status?: string;
30610
+ updated_at?: string;
30611
+ updated_by?: string | null;
30612
+ user_id?: string;
30613
+ };
30614
+ Relationships: [];
30615
+ };
30015
30616
  floriday_invoices_cache: {
30016
30617
  Row: {
30017
30618
  buyer_organization_id: string | null;
@@ -30300,6 +30901,39 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
30300
30901
  };
30301
30902
  Relationships: [];
30302
30903
  };
30904
+ floriday_sales_order_ingest: {
30905
+ Row: {
30906
+ connection_id: string;
30907
+ created_at: string;
30908
+ id: string;
30909
+ impact: import("../integrations/supabase/types").Json;
30910
+ order_status: string | null;
30911
+ order_version: number;
30912
+ processed_at: string;
30913
+ sales_order_id: string;
30914
+ };
30915
+ Insert: {
30916
+ connection_id: string;
30917
+ created_at?: string;
30918
+ id?: string;
30919
+ impact?: import("../integrations/supabase/types").Json;
30920
+ order_status?: string | null;
30921
+ order_version?: number;
30922
+ processed_at?: string;
30923
+ sales_order_id: string;
30924
+ };
30925
+ Update: {
30926
+ connection_id?: string;
30927
+ created_at?: string;
30928
+ id?: string;
30929
+ impact?: import("../integrations/supabase/types").Json;
30930
+ order_status?: string | null;
30931
+ order_version?: number;
30932
+ processed_at?: string;
30933
+ sales_order_id?: string;
30934
+ };
30935
+ Relationships: [];
30936
+ };
30303
30937
  floriday_sales_strategies_cache: {
30304
30938
  Row: {
30305
30939
  connection_id: string;
@@ -30399,6 +31033,39 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
30399
31033
  };
30400
31034
  Relationships: [];
30401
31035
  };
31036
+ floriday_sync_cursors: {
31037
+ Row: {
31038
+ connection_id: string;
31039
+ created_at: string;
31040
+ id: string;
31041
+ last_error: string | null;
31042
+ last_sync_at: string | null;
31043
+ resource_type: string;
31044
+ sequence_number: number;
31045
+ updated_at: string;
31046
+ };
31047
+ Insert: {
31048
+ connection_id: string;
31049
+ created_at?: string;
31050
+ id?: string;
31051
+ last_error?: string | null;
31052
+ last_sync_at?: string | null;
31053
+ resource_type: string;
31054
+ sequence_number?: number;
31055
+ updated_at?: string;
31056
+ };
31057
+ Update: {
31058
+ connection_id?: string;
31059
+ created_at?: string;
31060
+ id?: string;
31061
+ last_error?: string | null;
31062
+ last_sync_at?: string | null;
31063
+ resource_type?: string;
31064
+ sequence_number?: number;
31065
+ updated_at?: string;
31066
+ };
31067
+ Relationships: [];
31068
+ };
30402
31069
  floriday_sync_state: {
30403
31070
  Row: {
30404
31071
  connection_id: string;
@@ -31089,6 +31756,42 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
31089
31756
  };
31090
31757
  Relationships: [];
31091
31758
  };
31759
+ inventory_stock_snapshots: {
31760
+ Row: {
31761
+ connection_id: string;
31762
+ created_at: string;
31763
+ erp_available_quantity: number;
31764
+ floriday_desired_quantity: number;
31765
+ floriday_remote_quantity: number | null;
31766
+ granularity: string;
31767
+ id: string;
31768
+ snapshot_at: string;
31769
+ user_id: string | null;
31770
+ };
31771
+ Insert: {
31772
+ connection_id: string;
31773
+ created_at?: string;
31774
+ erp_available_quantity?: number;
31775
+ floriday_desired_quantity?: number;
31776
+ floriday_remote_quantity?: number | null;
31777
+ granularity?: string;
31778
+ id?: string;
31779
+ snapshot_at?: string;
31780
+ user_id?: string | null;
31781
+ };
31782
+ Update: {
31783
+ connection_id?: string;
31784
+ created_at?: string;
31785
+ erp_available_quantity?: number;
31786
+ floriday_desired_quantity?: number;
31787
+ floriday_remote_quantity?: number | null;
31788
+ granularity?: string;
31789
+ id?: string;
31790
+ snapshot_at?: string;
31791
+ user_id?: string | null;
31792
+ };
31793
+ Relationships: [];
31794
+ };
31092
31795
  invoice_items: {
31093
31796
  Row: {
31094
31797
  created_at: string;
@@ -31597,13 +32300,7 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
31597
32300
  segment?: import("../integrations/supabase/types").Database["public"]["Enums"]["itk_customer_segment"];
31598
32301
  updated_at?: string;
31599
32302
  };
31600
- Relationships: [{
31601
- foreignKeyName: "itk_customers_legacy_customer_id_fkey";
31602
- columns: ["legacy_customer_id"];
31603
- isOneToOne: false;
31604
- referencedRelation: "customers";
31605
- referencedColumns: ["id"];
31606
- }];
32303
+ Relationships: [];
31607
32304
  };
31608
32305
  itk_dynamic_fields: {
31609
32306
  Row: {
@@ -31635,6 +32332,180 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
31635
32332
  };
31636
32333
  Relationships: [];
31637
32334
  };
32335
+ itk_handover_rechten: {
32336
+ Row: {
32337
+ created_at: string;
32338
+ id: string;
32339
+ module_id: string;
32340
+ rol: import("../integrations/supabase/types").Database["public"]["Enums"]["app_role"] | null;
32341
+ updated_at: string;
32342
+ user_id: string | null;
32343
+ };
32344
+ Insert: {
32345
+ created_at?: string;
32346
+ id?: string;
32347
+ module_id: string;
32348
+ rol?: import("../integrations/supabase/types").Database["public"]["Enums"]["app_role"] | null;
32349
+ updated_at?: string;
32350
+ user_id?: string | null;
32351
+ };
32352
+ Update: {
32353
+ created_at?: string;
32354
+ id?: string;
32355
+ module_id?: string;
32356
+ rol?: import("../integrations/supabase/types").Database["public"]["Enums"]["app_role"] | null;
32357
+ updated_at?: string;
32358
+ user_id?: string | null;
32359
+ };
32360
+ Relationships: [];
32361
+ };
32362
+ itk_handover_tokens: {
32363
+ Row: {
32364
+ aangemaakt_door: string | null;
32365
+ created_at: string;
32366
+ id: string;
32367
+ is_actief: boolean;
32368
+ laatst_gebruikt_op: string | null;
32369
+ label: string;
32370
+ module_id: string;
32371
+ token_hash: string;
32372
+ updated_at: string;
32373
+ verloopt_op: string | null;
32374
+ };
32375
+ Insert: {
32376
+ aangemaakt_door?: string | null;
32377
+ created_at?: string;
32378
+ id?: string;
32379
+ is_actief?: boolean;
32380
+ laatst_gebruikt_op?: string | null;
32381
+ label?: string;
32382
+ module_id: string;
32383
+ token_hash: string;
32384
+ updated_at?: string;
32385
+ verloopt_op?: string | null;
32386
+ };
32387
+ Update: {
32388
+ aangemaakt_door?: string | null;
32389
+ created_at?: string;
32390
+ id?: string;
32391
+ is_actief?: boolean;
32392
+ laatst_gebruikt_op?: string | null;
32393
+ label?: string;
32394
+ module_id?: string;
32395
+ token_hash?: string;
32396
+ updated_at?: string;
32397
+ verloopt_op?: string | null;
32398
+ };
32399
+ Relationships: [];
32400
+ };
32401
+ itk_module_handovers: {
32402
+ Row: {
32403
+ bevindingen: string | null;
32404
+ bezit_tabellen: string[];
32405
+ conflicten_snapshot: import("../integrations/supabase/types").Json;
32406
+ contractfuncties: string[];
32407
+ created_at: string;
32408
+ eigenaar_module_id: string | null;
32409
+ gepubliceerd_door: string | null;
32410
+ gepubliceerd_op: string;
32411
+ herzieningstermijn_dagen: number;
32412
+ id: string;
32413
+ inhoud_md: string;
32414
+ is_actueel: boolean;
32415
+ module_id: string;
32416
+ module_titel: string;
32417
+ ontbrekende_contracten: string[];
32418
+ samenvatting: string | null;
32419
+ updated_at: string;
32420
+ versie: number;
32421
+ };
32422
+ Insert: {
32423
+ bevindingen?: string | null;
32424
+ bezit_tabellen?: string[];
32425
+ conflicten_snapshot?: import("../integrations/supabase/types").Json;
32426
+ contractfuncties?: string[];
32427
+ created_at?: string;
32428
+ eigenaar_module_id?: string | null;
32429
+ gepubliceerd_door?: string | null;
32430
+ gepubliceerd_op?: string;
32431
+ herzieningstermijn_dagen?: number;
32432
+ id?: string;
32433
+ inhoud_md: string;
32434
+ is_actueel?: boolean;
32435
+ module_id: string;
32436
+ module_titel: string;
32437
+ ontbrekende_contracten?: string[];
32438
+ samenvatting?: string | null;
32439
+ updated_at?: string;
32440
+ versie?: number;
32441
+ };
32442
+ Update: {
32443
+ bevindingen?: string | null;
32444
+ bezit_tabellen?: string[];
32445
+ conflicten_snapshot?: import("../integrations/supabase/types").Json;
32446
+ contractfuncties?: string[];
32447
+ created_at?: string;
32448
+ eigenaar_module_id?: string | null;
32449
+ gepubliceerd_door?: string | null;
32450
+ gepubliceerd_op?: string;
32451
+ herzieningstermijn_dagen?: number;
32452
+ id?: string;
32453
+ inhoud_md?: string;
32454
+ is_actueel?: boolean;
32455
+ module_id?: string;
32456
+ module_titel?: string;
32457
+ ontbrekende_contracten?: string[];
32458
+ samenvatting?: string | null;
32459
+ updated_at?: string;
32460
+ versie?: number;
32461
+ };
32462
+ Relationships: [];
32463
+ };
32464
+ itk_module_instructies: {
32465
+ Row: {
32466
+ created_at: string;
32467
+ eigenaar_module_id: string;
32468
+ gepubliceerd_door: string | null;
32469
+ gepubliceerd_op: string;
32470
+ id: string;
32471
+ inhoud_md: string;
32472
+ is_actueel: boolean;
32473
+ sleutel: string;
32474
+ titel: string;
32475
+ toelichting: string | null;
32476
+ updated_at: string;
32477
+ versie: number;
32478
+ };
32479
+ Insert: {
32480
+ created_at?: string;
32481
+ eigenaar_module_id?: string;
32482
+ gepubliceerd_door?: string | null;
32483
+ gepubliceerd_op?: string;
32484
+ id?: string;
32485
+ inhoud_md: string;
32486
+ is_actueel?: boolean;
32487
+ sleutel: string;
32488
+ titel: string;
32489
+ toelichting?: string | null;
32490
+ updated_at?: string;
32491
+ versie?: number;
32492
+ };
32493
+ Update: {
32494
+ created_at?: string;
32495
+ eigenaar_module_id?: string;
32496
+ gepubliceerd_door?: string | null;
32497
+ gepubliceerd_op?: string;
32498
+ id?: string;
32499
+ inhoud_md?: string;
32500
+ is_actueel?: boolean;
32501
+ sleutel?: string;
32502
+ titel?: string;
32503
+ toelichting?: string | null;
32504
+ updated_at?: string;
32505
+ versie?: number;
32506
+ };
32507
+ Relationships: [];
32508
+ };
31638
32509
  itk_offerte_events: {
31639
32510
  Row: {
31640
32511
  created_at: string;
@@ -32493,6 +33364,27 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
32493
33364
  };
32494
33365
  Relationships: [];
32495
33366
  };
33367
+ logistics_cart_barcode: {
33368
+ Row: {
33369
+ barcode: string;
33370
+ cart_id: string;
33371
+ created_at: string;
33372
+ order_id: string | null;
33373
+ };
33374
+ Insert: {
33375
+ barcode: string;
33376
+ cart_id: string;
33377
+ created_at?: string;
33378
+ order_id?: string | null;
33379
+ };
33380
+ Update: {
33381
+ barcode?: string;
33382
+ cart_id?: string;
33383
+ created_at?: string;
33384
+ order_id?: string | null;
33385
+ };
33386
+ Relationships: [];
33387
+ };
32496
33388
  logistics_decisions: {
32497
33389
  Row: {
32498
33390
  created_at: string;
@@ -33321,6 +34213,36 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
33321
34213
  referencedColumns: ["id"];
33322
34214
  }];
33323
34215
  };
34216
+ logistics_shipping_note_scan: {
34217
+ Row: {
34218
+ barcode: string;
34219
+ cart_id: string;
34220
+ id: string;
34221
+ is_reprint: boolean;
34222
+ order_id: string | null;
34223
+ print_job_id: string | null;
34224
+ scanned_at: string;
34225
+ };
34226
+ Insert: {
34227
+ barcode: string;
34228
+ cart_id: string;
34229
+ id?: string;
34230
+ is_reprint?: boolean;
34231
+ order_id?: string | null;
34232
+ print_job_id?: string | null;
34233
+ scanned_at?: string;
34234
+ };
34235
+ Update: {
34236
+ barcode?: string;
34237
+ cart_id?: string;
34238
+ id?: string;
34239
+ is_reprint?: boolean;
34240
+ order_id?: string | null;
34241
+ print_job_id?: string | null;
34242
+ scanned_at?: string;
34243
+ };
34244
+ Relationships: [];
34245
+ };
33324
34246
  logistics_staff_planning: {
33325
34247
  Row: {
33326
34248
  created_at: string;
@@ -35414,10 +36336,12 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
35414
36336
  boxes: number | null;
35415
36337
  cart_id: string;
35416
36338
  crates: number;
36339
+ crates_in_layer: number | null;
35417
36340
  crates_per_layer: number;
35418
36341
  created_at: string;
35419
36342
  id: string;
35420
36343
  layer_fraction: number;
36344
+ layer_index: number | null;
35421
36345
  layer_share_pct: number;
35422
36346
  layers_per_cart: number;
35423
36347
  order_item_id: string | null;
@@ -35430,10 +36354,12 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
35430
36354
  boxes?: number | null;
35431
36355
  cart_id: string;
35432
36356
  crates: number;
36357
+ crates_in_layer?: number | null;
35433
36358
  crates_per_layer?: number;
35434
36359
  created_at?: string;
35435
36360
  id?: string;
35436
36361
  layer_fraction?: number;
36362
+ layer_index?: number | null;
35437
36363
  layer_share_pct?: number;
35438
36364
  layers_per_cart?: number;
35439
36365
  order_item_id?: string | null;
@@ -35446,10 +36372,12 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
35446
36372
  boxes?: number | null;
35447
36373
  cart_id?: string;
35448
36374
  crates?: number;
36375
+ crates_in_layer?: number | null;
35449
36376
  crates_per_layer?: number;
35450
36377
  created_at?: string;
35451
36378
  id?: string;
35452
36379
  layer_fraction?: number;
36380
+ layer_index?: number | null;
35453
36381
  layer_share_pct?: number;
35454
36382
  layers_per_cart?: number;
35455
36383
  order_item_id?: string | null;
@@ -35489,6 +36417,7 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
35489
36417
  id: string;
35490
36418
  is_auto: boolean;
35491
36419
  is_complete: boolean;
36420
+ layout_method: string | null;
35492
36421
  max_layers: number | null;
35493
36422
  moved_at: string | null;
35494
36423
  moved_from_moment_id: string | null;
@@ -35513,6 +36442,7 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
35513
36442
  id?: string;
35514
36443
  is_auto?: boolean;
35515
36444
  is_complete?: boolean;
36445
+ layout_method?: string | null;
35516
36446
  max_layers?: number | null;
35517
36447
  moved_at?: string | null;
35518
36448
  moved_from_moment_id?: string | null;
@@ -35537,6 +36467,7 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
35537
36467
  id?: string;
35538
36468
  is_auto?: boolean;
35539
36469
  is_complete?: boolean;
36470
+ layout_method?: string | null;
35540
36471
  max_layers?: number | null;
35541
36472
  moved_at?: string | null;
35542
36473
  moved_from_moment_id?: string | null;
@@ -36142,6 +37073,7 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
36142
37073
  print_job_id: string | null;
36143
37074
  printed_at: string | null;
36144
37075
  printed_by: string | null;
37076
+ printed_cart_ids: import("../integrations/supabase/types").Json;
36145
37077
  printer_id: string | null;
36146
37078
  priority: number;
36147
37079
  reference: string | null;
@@ -36176,6 +37108,7 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
36176
37108
  print_job_id?: string | null;
36177
37109
  printed_at?: string | null;
36178
37110
  printed_by?: string | null;
37111
+ printed_cart_ids?: import("../integrations/supabase/types").Json;
36179
37112
  printer_id?: string | null;
36180
37113
  priority?: number;
36181
37114
  reference?: string | null;
@@ -36210,6 +37143,7 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
36210
37143
  print_job_id?: string | null;
36211
37144
  printed_at?: string | null;
36212
37145
  printed_by?: string | null;
37146
+ printed_cart_ids?: import("../integrations/supabase/types").Json;
36213
37147
  printer_id?: string | null;
36214
37148
  priority?: number;
36215
37149
  reference?: string | null;
@@ -37009,6 +37943,12 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
37009
37943
  isOneToOne: false;
37010
37944
  referencedRelation: "planning_items";
37011
37945
  referencedColumns: ["id"];
37946
+ }, {
37947
+ foreignKeyName: "planning_item_assistants_planning_item_id_fkey";
37948
+ columns: ["planning_item_id"];
37949
+ isOneToOne: false;
37950
+ referencedRelation: "planning_overview";
37951
+ referencedColumns: ["id"];
37012
37952
  }];
37013
37953
  };
37014
37954
  planning_items: {
@@ -38118,6 +39058,7 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
38118
39058
  created_at: string;
38119
39059
  custom_fields: import("../integrations/supabase/types").Json;
38120
39060
  floriday_trade_item_id: string | null;
39061
+ fust_type_id: string | null;
38121
39062
  id: string;
38122
39063
  image_url: string | null;
38123
39064
  incoming_quantity: number;
@@ -38125,6 +39066,7 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
38125
39066
  layers_per_cart: number;
38126
39067
  location: string;
38127
39068
  min_quantity: number;
39069
+ plant_height_cm: number | null;
38128
39070
  plants_per_crate: number;
38129
39071
  product: string;
38130
39072
  product_type: string;
@@ -38144,6 +39086,7 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
38144
39086
  created_at?: string;
38145
39087
  custom_fields?: import("../integrations/supabase/types").Json;
38146
39088
  floriday_trade_item_id?: string | null;
39089
+ fust_type_id?: string | null;
38147
39090
  id?: string;
38148
39091
  image_url?: string | null;
38149
39092
  incoming_quantity?: number;
@@ -38151,6 +39094,7 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
38151
39094
  layers_per_cart?: number;
38152
39095
  location: string;
38153
39096
  min_quantity?: number;
39097
+ plant_height_cm?: number | null;
38154
39098
  plants_per_crate?: number;
38155
39099
  product: string;
38156
39100
  product_type?: string;
@@ -38170,6 +39114,7 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
38170
39114
  created_at?: string;
38171
39115
  custom_fields?: import("../integrations/supabase/types").Json;
38172
39116
  floriday_trade_item_id?: string | null;
39117
+ fust_type_id?: string | null;
38173
39118
  id?: string;
38174
39119
  image_url?: string | null;
38175
39120
  incoming_quantity?: number;
@@ -38177,6 +39122,7 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
38177
39122
  layers_per_cart?: number;
38178
39123
  location?: string;
38179
39124
  min_quantity?: number;
39125
+ plant_height_cm?: number | null;
38180
39126
  plants_per_crate?: number;
38181
39127
  product?: string;
38182
39128
  product_type?: string;
@@ -38188,7 +39134,13 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
38188
39134
  updated_at?: string;
38189
39135
  weight?: string | null;
38190
39136
  };
38191
- Relationships: [];
39137
+ Relationships: [{
39138
+ foreignKeyName: "products_fust_type_id_fkey";
39139
+ columns: ["fust_type_id"];
39140
+ isOneToOne: false;
39141
+ referencedRelation: "fust_types";
39142
+ referencedColumns: ["id"];
39143
+ }];
38192
39144
  };
38193
39145
  profile_modules: {
38194
39146
  Row: {
@@ -38586,450 +39538,6 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
38586
39538
  referencedColumns: ["id"];
38587
39539
  }];
38588
39540
  };
38589
- quote_activities: {
38590
- Row: {
38591
- created_at: string;
38592
- event_type: string;
38593
- id: string;
38594
- metadata: import("../integrations/supabase/types").Json;
38595
- quote_id: string;
38596
- user_id: string | null;
38597
- };
38598
- Insert: {
38599
- created_at?: string;
38600
- event_type: string;
38601
- id?: string;
38602
- metadata?: import("../integrations/supabase/types").Json;
38603
- quote_id: string;
38604
- user_id?: string | null;
38605
- };
38606
- Update: {
38607
- created_at?: string;
38608
- event_type?: string;
38609
- id?: string;
38610
- metadata?: import("../integrations/supabase/types").Json;
38611
- quote_id?: string;
38612
- user_id?: string | null;
38613
- };
38614
- Relationships: [{
38615
- foreignKeyName: "quote_activities_quote_id_fkey";
38616
- columns: ["quote_id"];
38617
- isOneToOne: false;
38618
- referencedRelation: "quotes";
38619
- referencedColumns: ["id"];
38620
- }];
38621
- };
38622
- quote_attachments: {
38623
- Row: {
38624
- created_at: string;
38625
- file_name: string;
38626
- file_size: number | null;
38627
- file_url: string;
38628
- id: string;
38629
- mime_type: string | null;
38630
- quote_id: string;
38631
- };
38632
- Insert: {
38633
- created_at?: string;
38634
- file_name: string;
38635
- file_size?: number | null;
38636
- file_url: string;
38637
- id?: string;
38638
- mime_type?: string | null;
38639
- quote_id: string;
38640
- };
38641
- Update: {
38642
- created_at?: string;
38643
- file_name?: string;
38644
- file_size?: number | null;
38645
- file_url?: string;
38646
- id?: string;
38647
- mime_type?: string | null;
38648
- quote_id?: string;
38649
- };
38650
- Relationships: [{
38651
- foreignKeyName: "quote_attachments_quote_id_fkey";
38652
- columns: ["quote_id"];
38653
- isOneToOne: false;
38654
- referencedRelation: "quotes";
38655
- referencedColumns: ["id"];
38656
- }];
38657
- };
38658
- quote_field_options: {
38659
- Row: {
38660
- created_at: string;
38661
- field_id: string;
38662
- id: string;
38663
- label: string;
38664
- sort_order: number;
38665
- value: string;
38666
- };
38667
- Insert: {
38668
- created_at?: string;
38669
- field_id: string;
38670
- id?: string;
38671
- label: string;
38672
- sort_order?: number;
38673
- value: string;
38674
- };
38675
- Update: {
38676
- created_at?: string;
38677
- field_id?: string;
38678
- id?: string;
38679
- label?: string;
38680
- sort_order?: number;
38681
- value?: string;
38682
- };
38683
- Relationships: [{
38684
- foreignKeyName: "quote_field_options_field_id_fkey";
38685
- columns: ["field_id"];
38686
- isOneToOne: false;
38687
- referencedRelation: "quote_field_settings";
38688
- referencedColumns: ["id"];
38689
- }];
38690
- };
38691
- quote_field_settings: {
38692
- Row: {
38693
- created_at: string;
38694
- default_value: string | null;
38695
- field_key: string;
38696
- field_type: string;
38697
- id: string;
38698
- is_system: boolean;
38699
- label: string;
38700
- required: boolean;
38701
- sort_order: number;
38702
- updated_at: string;
38703
- visible: boolean;
38704
- };
38705
- Insert: {
38706
- created_at?: string;
38707
- default_value?: string | null;
38708
- field_key: string;
38709
- field_type: string;
38710
- id?: string;
38711
- is_system?: boolean;
38712
- label: string;
38713
- required?: boolean;
38714
- sort_order?: number;
38715
- updated_at?: string;
38716
- visible?: boolean;
38717
- };
38718
- Update: {
38719
- created_at?: string;
38720
- default_value?: string | null;
38721
- field_key?: string;
38722
- field_type?: string;
38723
- id?: string;
38724
- is_system?: boolean;
38725
- label?: string;
38726
- required?: boolean;
38727
- sort_order?: number;
38728
- updated_at?: string;
38729
- visible?: boolean;
38730
- };
38731
- Relationships: [];
38732
- };
38733
- quote_items: {
38734
- Row: {
38735
- category: string | null;
38736
- created_at: string;
38737
- description: string;
38738
- id: string;
38739
- line_total: number;
38740
- module_id: string | null;
38741
- name: string | null;
38742
- quantity: number;
38743
- quote_id: string;
38744
- sort_order: number;
38745
- unit_price: number;
38746
- };
38747
- Insert: {
38748
- category?: string | null;
38749
- created_at?: string;
38750
- description?: string;
38751
- id?: string;
38752
- line_total?: number;
38753
- module_id?: string | null;
38754
- name?: string | null;
38755
- quantity?: number;
38756
- quote_id: string;
38757
- sort_order?: number;
38758
- unit_price?: number;
38759
- };
38760
- Update: {
38761
- category?: string | null;
38762
- created_at?: string;
38763
- description?: string;
38764
- id?: string;
38765
- line_total?: number;
38766
- module_id?: string | null;
38767
- name?: string | null;
38768
- quantity?: number;
38769
- quote_id?: string;
38770
- sort_order?: number;
38771
- unit_price?: number;
38772
- };
38773
- Relationships: [{
38774
- foreignKeyName: "quote_items_module_id_fkey";
38775
- columns: ["module_id"];
38776
- isOneToOne: false;
38777
- referencedRelation: "quote_modules";
38778
- referencedColumns: ["id"];
38779
- }, {
38780
- foreignKeyName: "quote_items_quote_id_fkey";
38781
- columns: ["quote_id"];
38782
- isOneToOne: false;
38783
- referencedRelation: "quotes";
38784
- referencedColumns: ["id"];
38785
- }];
38786
- };
38787
- quote_modules: {
38788
- Row: {
38789
- category: string | null;
38790
- created_at: string;
38791
- description: string | null;
38792
- id: string;
38793
- is_active: boolean;
38794
- name: string;
38795
- price: number;
38796
- sort_order: number;
38797
- updated_at: string;
38798
- };
38799
- Insert: {
38800
- category?: string | null;
38801
- created_at?: string;
38802
- description?: string | null;
38803
- id?: string;
38804
- is_active?: boolean;
38805
- name: string;
38806
- price?: number;
38807
- sort_order?: number;
38808
- updated_at?: string;
38809
- };
38810
- Update: {
38811
- category?: string | null;
38812
- created_at?: string;
38813
- description?: string | null;
38814
- id?: string;
38815
- is_active?: boolean;
38816
- name?: string;
38817
- price?: number;
38818
- sort_order?: number;
38819
- updated_at?: string;
38820
- };
38821
- Relationships: [];
38822
- };
38823
- quote_templates: {
38824
- Row: {
38825
- created_at: string;
38826
- description: string | null;
38827
- field_values: import("../integrations/supabase/types").Json;
38828
- id: string;
38829
- is_default: boolean;
38830
- items: import("../integrations/supabase/types").Json;
38831
- name: string;
38832
- updated_at: string;
38833
- vat_rate: number;
38834
- };
38835
- Insert: {
38836
- created_at?: string;
38837
- description?: string | null;
38838
- field_values?: import("../integrations/supabase/types").Json;
38839
- id?: string;
38840
- is_default?: boolean;
38841
- items?: import("../integrations/supabase/types").Json;
38842
- name: string;
38843
- updated_at?: string;
38844
- vat_rate?: number;
38845
- };
38846
- Update: {
38847
- created_at?: string;
38848
- description?: string | null;
38849
- field_values?: import("../integrations/supabase/types").Json;
38850
- id?: string;
38851
- is_default?: boolean;
38852
- items?: import("../integrations/supabase/types").Json;
38853
- name?: string;
38854
- updated_at?: string;
38855
- vat_rate?: number;
38856
- };
38857
- Relationships: [];
38858
- };
38859
- quote_terms: {
38860
- Row: {
38861
- content: string | null;
38862
- created_at: string;
38863
- file_url: string | null;
38864
- id: string;
38865
- is_active: boolean;
38866
- name: string;
38867
- published_at: string | null;
38868
- updated_at: string;
38869
- version: string;
38870
- };
38871
- Insert: {
38872
- content?: string | null;
38873
- created_at?: string;
38874
- file_url?: string | null;
38875
- id?: string;
38876
- is_active?: boolean;
38877
- name: string;
38878
- published_at?: string | null;
38879
- updated_at?: string;
38880
- version?: string;
38881
- };
38882
- Update: {
38883
- content?: string | null;
38884
- created_at?: string;
38885
- file_url?: string | null;
38886
- id?: string;
38887
- is_active?: boolean;
38888
- name?: string;
38889
- published_at?: string | null;
38890
- updated_at?: string;
38891
- version?: string;
38892
- };
38893
- Relationships: [];
38894
- };
38895
- quotes: {
38896
- Row: {
38897
- accepted_at: string | null;
38898
- archived_at: string | null;
38899
- contact_id: string | null;
38900
- created_at: string;
38901
- customer_id: string | null;
38902
- discount: number;
38903
- expires_at: string | null;
38904
- field_values: import("../integrations/supabase/types").Json;
38905
- id: string;
38906
- notes: string | null;
38907
- owner_id: string | null;
38908
- personal_message: string | null;
38909
- project_id: string | null;
38910
- prospect_id: string | null;
38911
- public_token: string;
38912
- quote_number: string | null;
38913
- recipient_email: string | null;
38914
- recipient_name: string | null;
38915
- rejected_at: string | null;
38916
- sent_at: string | null;
38917
- status: string;
38918
- subtotal: number;
38919
- template_id: string | null;
38920
- terms_id: string | null;
38921
- title: string;
38922
- total: number;
38923
- updated_at: string;
38924
- valid_until: string | null;
38925
- vat_amount: number;
38926
- vat_rate: number;
38927
- viewed_at: string | null;
38928
- };
38929
- Insert: {
38930
- accepted_at?: string | null;
38931
- archived_at?: string | null;
38932
- contact_id?: string | null;
38933
- created_at?: string;
38934
- customer_id?: string | null;
38935
- discount?: number;
38936
- expires_at?: string | null;
38937
- field_values?: import("../integrations/supabase/types").Json;
38938
- id?: string;
38939
- notes?: string | null;
38940
- owner_id?: string | null;
38941
- personal_message?: string | null;
38942
- project_id?: string | null;
38943
- prospect_id?: string | null;
38944
- public_token?: string;
38945
- quote_number?: string | null;
38946
- recipient_email?: string | null;
38947
- recipient_name?: string | null;
38948
- rejected_at?: string | null;
38949
- sent_at?: string | null;
38950
- status?: string;
38951
- subtotal?: number;
38952
- template_id?: string | null;
38953
- terms_id?: string | null;
38954
- title?: string;
38955
- total?: number;
38956
- updated_at?: string;
38957
- valid_until?: string | null;
38958
- vat_amount?: number;
38959
- vat_rate?: number;
38960
- viewed_at?: string | null;
38961
- };
38962
- Update: {
38963
- accepted_at?: string | null;
38964
- archived_at?: string | null;
38965
- contact_id?: string | null;
38966
- created_at?: string;
38967
- customer_id?: string | null;
38968
- discount?: number;
38969
- expires_at?: string | null;
38970
- field_values?: import("../integrations/supabase/types").Json;
38971
- id?: string;
38972
- notes?: string | null;
38973
- owner_id?: string | null;
38974
- personal_message?: string | null;
38975
- project_id?: string | null;
38976
- prospect_id?: string | null;
38977
- public_token?: string;
38978
- quote_number?: string | null;
38979
- recipient_email?: string | null;
38980
- recipient_name?: string | null;
38981
- rejected_at?: string | null;
38982
- sent_at?: string | null;
38983
- status?: string;
38984
- subtotal?: number;
38985
- template_id?: string | null;
38986
- terms_id?: string | null;
38987
- title?: string;
38988
- total?: number;
38989
- updated_at?: string;
38990
- valid_until?: string | null;
38991
- vat_amount?: number;
38992
- vat_rate?: number;
38993
- viewed_at?: string | null;
38994
- };
38995
- Relationships: [{
38996
- foreignKeyName: "quotes_contact_id_fkey";
38997
- columns: ["contact_id"];
38998
- isOneToOne: false;
38999
- referencedRelation: "customer_contacts";
39000
- referencedColumns: ["id"];
39001
- }, {
39002
- foreignKeyName: "quotes_customer_id_fkey";
39003
- columns: ["customer_id"];
39004
- isOneToOne: false;
39005
- referencedRelation: "customers";
39006
- referencedColumns: ["id"];
39007
- }, {
39008
- foreignKeyName: "quotes_project_id_fkey";
39009
- columns: ["project_id"];
39010
- isOneToOne: false;
39011
- referencedRelation: "projects";
39012
- referencedColumns: ["id"];
39013
- }, {
39014
- foreignKeyName: "quotes_prospect_id_fkey";
39015
- columns: ["prospect_id"];
39016
- isOneToOne: false;
39017
- referencedRelation: "prospects";
39018
- referencedColumns: ["id"];
39019
- }, {
39020
- foreignKeyName: "quotes_template_id_fkey";
39021
- columns: ["template_id"];
39022
- isOneToOne: false;
39023
- referencedRelation: "quote_templates";
39024
- referencedColumns: ["id"];
39025
- }, {
39026
- foreignKeyName: "quotes_terms_id_fkey";
39027
- columns: ["terms_id"];
39028
- isOneToOne: false;
39029
- referencedRelation: "quote_terms";
39030
- referencedColumns: ["id"];
39031
- }];
39032
- };
39033
39541
  reception_notifications: {
39034
39542
  Row: {
39035
39543
  booking_id: string | null;
@@ -40151,7 +40659,7 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
40151
40659
  foreignKeyName: "time_logs_work_order_id_fkey";
40152
40660
  columns: ["work_order_id"];
40153
40661
  isOneToOne: false;
40154
- referencedRelation: "work_orders";
40662
+ referencedRelation: "werkbonnen";
40155
40663
  referencedColumns: ["id"];
40156
40664
  }];
40157
40665
  };
@@ -40283,6 +40791,7 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
40283
40791
  };
40284
40792
  trade_item_stock: {
40285
40793
  Row: {
40794
+ change_source: string;
40286
40795
  connection_id: string;
40287
40796
  created_at: string;
40288
40797
  id: string;
@@ -40296,6 +40805,7 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
40296
40805
  user_id: string;
40297
40806
  };
40298
40807
  Insert: {
40808
+ change_source?: string;
40299
40809
  connection_id: string;
40300
40810
  created_at?: string;
40301
40811
  id?: string;
@@ -40309,6 +40819,7 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
40309
40819
  user_id: string;
40310
40820
  };
40311
40821
  Update: {
40822
+ change_source?: string;
40312
40823
  connection_id?: string;
40313
40824
  created_at?: string;
40314
40825
  id?: string;
@@ -41478,156 +41989,6 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
41478
41989
  };
41479
41990
  Relationships: [];
41480
41991
  };
41481
- uren_offerte_regels: {
41482
- Row: {
41483
- created_at: string;
41484
- description: string;
41485
- duration_minutes: number;
41486
- id: string;
41487
- offerte_id: string;
41488
- package_id: string | null;
41489
- quantity: number;
41490
- sort_order: number;
41491
- total_cents: number;
41492
- unit_price_cents: number;
41493
- };
41494
- Insert: {
41495
- created_at?: string;
41496
- description: string;
41497
- duration_minutes?: number;
41498
- id?: string;
41499
- offerte_id: string;
41500
- package_id?: string | null;
41501
- quantity?: number;
41502
- sort_order?: number;
41503
- total_cents?: number;
41504
- unit_price_cents?: number;
41505
- };
41506
- Update: {
41507
- created_at?: string;
41508
- description?: string;
41509
- duration_minutes?: number;
41510
- id?: string;
41511
- offerte_id?: string;
41512
- package_id?: string | null;
41513
- quantity?: number;
41514
- sort_order?: number;
41515
- total_cents?: number;
41516
- unit_price_cents?: number;
41517
- };
41518
- Relationships: [{
41519
- foreignKeyName: "uren_offerte_regels_offerte_id_fkey";
41520
- columns: ["offerte_id"];
41521
- isOneToOne: false;
41522
- referencedRelation: "uren_offertes";
41523
- referencedColumns: ["id"];
41524
- }, {
41525
- foreignKeyName: "uren_offerte_regels_package_id_fkey";
41526
- columns: ["package_id"];
41527
- isOneToOne: false;
41528
- referencedRelation: "werkbon_packages";
41529
- referencedColumns: ["id"];
41530
- }];
41531
- };
41532
- uren_offerte_velden: {
41533
- Row: {
41534
- created_at: string;
41535
- field_type: string;
41536
- id: string;
41537
- key: string;
41538
- label: string;
41539
- options: string[];
41540
- required: boolean;
41541
- sort_order: number;
41542
- updated_at: string;
41543
- };
41544
- Insert: {
41545
- created_at?: string;
41546
- field_type?: string;
41547
- id?: string;
41548
- key: string;
41549
- label: string;
41550
- options?: string[];
41551
- required?: boolean;
41552
- sort_order?: number;
41553
- updated_at?: string;
41554
- };
41555
- Update: {
41556
- created_at?: string;
41557
- field_type?: string;
41558
- id?: string;
41559
- key?: string;
41560
- label?: string;
41561
- options?: string[];
41562
- required?: boolean;
41563
- sort_order?: number;
41564
- updated_at?: string;
41565
- };
41566
- Relationships: [];
41567
- };
41568
- uren_offertes: {
41569
- Row: {
41570
- created_at: string;
41571
- created_by: string | null;
41572
- customer_id: string | null;
41573
- customer_name: string | null;
41574
- dynamic_fields: import("../integrations/supabase/types").Json;
41575
- estimated_minutes: number;
41576
- id: string;
41577
- note: string | null;
41578
- quote_number: string | null;
41579
- status: string;
41580
- title: string;
41581
- total_excl_cents: number;
41582
- total_incl_cents: number;
41583
- updated_at: string;
41584
- valid_until: string | null;
41585
- vat_percentage: number;
41586
- };
41587
- Insert: {
41588
- created_at?: string;
41589
- created_by?: string | null;
41590
- customer_id?: string | null;
41591
- customer_name?: string | null;
41592
- dynamic_fields?: import("../integrations/supabase/types").Json;
41593
- estimated_minutes?: number;
41594
- id?: string;
41595
- note?: string | null;
41596
- quote_number?: string | null;
41597
- status?: string;
41598
- title?: string;
41599
- total_excl_cents?: number;
41600
- total_incl_cents?: number;
41601
- updated_at?: string;
41602
- valid_until?: string | null;
41603
- vat_percentage?: number;
41604
- };
41605
- Update: {
41606
- created_at?: string;
41607
- created_by?: string | null;
41608
- customer_id?: string | null;
41609
- customer_name?: string | null;
41610
- dynamic_fields?: import("../integrations/supabase/types").Json;
41611
- estimated_minutes?: number;
41612
- id?: string;
41613
- note?: string | null;
41614
- quote_number?: string | null;
41615
- status?: string;
41616
- title?: string;
41617
- total_excl_cents?: number;
41618
- total_incl_cents?: number;
41619
- updated_at?: string;
41620
- valid_until?: string | null;
41621
- vat_percentage?: number;
41622
- };
41623
- Relationships: [{
41624
- foreignKeyName: "uren_offertes_customer_id_fkey";
41625
- columns: ["customer_id"];
41626
- isOneToOne: false;
41627
- referencedRelation: "itk_customers";
41628
- referencedColumns: ["id"];
41629
- }];
41630
- };
41631
41992
  uren_settings: {
41632
41993
  Row: {
41633
41994
  break_minutes: number;
@@ -43314,6 +43675,37 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
43314
43675
  };
43315
43676
  Relationships: [];
43316
43677
  };
43678
+ planning_overview: {
43679
+ Row: {
43680
+ assigned_monteur_id: string | null;
43681
+ assistants: import("../integrations/supabase/types").Json | null;
43682
+ budget_mandate_cents: number | null;
43683
+ created_at: string | null;
43684
+ created_by: string | null;
43685
+ customer_id: string | null;
43686
+ customer_name: string | null;
43687
+ duration_minutes: number | null;
43688
+ end_at: string | null;
43689
+ id: string | null;
43690
+ needs_detail_review: boolean | null;
43691
+ notes: string | null;
43692
+ project_number: string | null;
43693
+ review_reasons: string[] | null;
43694
+ start_at: string | null;
43695
+ status: import("../integrations/supabase/types").Database["public"]["Enums"]["planning_item_status"] | null;
43696
+ updated_at: string | null;
43697
+ viewer_role: string | null;
43698
+ werkbon_id: string | null;
43699
+ work_address: string | null;
43700
+ };
43701
+ Relationships: [{
43702
+ foreignKeyName: "planning_items_werkbon_id_fkey";
43703
+ columns: ["werkbon_id"];
43704
+ isOneToOne: false;
43705
+ referencedRelation: "werkbonnen";
43706
+ referencedColumns: ["id"];
43707
+ }];
43708
+ };
43317
43709
  product_group_stock_view: {
43318
43710
  Row: {
43319
43711
  item_count: number | null;
@@ -43909,6 +44301,18 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
43909
44301
  Args: never;
43910
44302
  Returns: number;
43911
44303
  };
44304
+ calculate_floriday_desired_stock: {
44305
+ Args: {
44306
+ p_connection_id: string;
44307
+ p_product_id: string;
44308
+ };
44309
+ Returns: {
44310
+ desired_availability: boolean;
44311
+ desired_quantity: number;
44312
+ erp_available: number;
44313
+ stock_mode: string;
44314
+ }[];
44315
+ };
43912
44316
  calculate_layer_stock: {
43913
44317
  Args: {
43914
44318
  p_product_id: string;
@@ -44003,6 +44407,7 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
44003
44407
  attempts: number;
44004
44408
  connection_id: string;
44005
44409
  created_at: string;
44410
+ dead_lettered_at: string | null;
44006
44411
  desired_available: boolean | null;
44007
44412
  gateway_attempt_id: string | null;
44008
44413
  id: string;
@@ -44011,9 +44416,13 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
44011
44416
  locked_by: string | null;
44012
44417
  next_attempt_at: string;
44013
44418
  number_of_pieces: number;
44419
+ product_id: string | null;
44014
44420
  sent_at: string | null;
44015
44421
  status: string;
44422
+ stock_mode: string | null;
44016
44423
  superseded_by: string | null;
44424
+ target_week: number | null;
44425
+ target_year: number | null;
44017
44426
  trade_item_id: string;
44018
44427
  updated_at: string;
44019
44428
  user_id: string;
@@ -44494,6 +44903,24 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
44494
44903
  };
44495
44904
  Returns: string;
44496
44905
  };
44906
+ floriday_capture_stock_snapshot: {
44907
+ Args: never;
44908
+ Returns: number;
44909
+ };
44910
+ floriday_cleanup_stock_queue_v2: {
44911
+ Args: never;
44912
+ Returns: undefined;
44913
+ };
44914
+ floriday_compact_stock_snapshots: {
44915
+ Args: never;
44916
+ Returns: undefined;
44917
+ };
44918
+ floriday_default_owner: {
44919
+ Args: {
44920
+ p_connection_id: string;
44921
+ };
44922
+ Returns: string;
44923
+ };
44497
44924
  floriday_effective_price: {
44498
44925
  Args: {
44499
44926
  _buyer_id: string;
@@ -44511,6 +44938,34 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
44511
44938
  source_id: string;
44512
44939
  }[];
44513
44940
  };
44941
+ floriday_fill_publish_horizon: {
44942
+ Args: never;
44943
+ Returns: number;
44944
+ };
44945
+ floriday_ingest_sales_orders: {
44946
+ Args: {
44947
+ p_limit?: number;
44948
+ };
44949
+ Returns: number;
44950
+ };
44951
+ floriday_publish_horizon_weeks: {
44952
+ Args: never;
44953
+ Returns: number;
44954
+ };
44955
+ floriday_recompute_inventory: {
44956
+ Args: {
44957
+ p_connection_id: string;
44958
+ p_force?: boolean;
44959
+ p_product_id: string;
44960
+ };
44961
+ Returns: undefined;
44962
+ };
44963
+ floriday_requeue_dead_letters: {
44964
+ Args: {
44965
+ p_connection_id?: string;
44966
+ };
44967
+ Returns: number;
44968
+ };
44514
44969
  format_cart_number: {
44515
44970
  Args: {
44516
44971
  p_pick_date: string;
@@ -44727,6 +45182,131 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
44727
45182
  Args: never;
44728
45183
  Returns: string;
44729
45184
  };
45185
+ handover_get: {
45186
+ Args: {
45187
+ _module_id: string;
45188
+ };
45189
+ Returns: import("../integrations/supabase/types").Json;
45190
+ };
45191
+ handover_kern_naam: {
45192
+ Args: {
45193
+ _naam: string;
45194
+ };
45195
+ Returns: string;
45196
+ };
45197
+ handover_ketenmodel: {
45198
+ Args: never;
45199
+ Returns: import("../integrations/supabase/types").Json;
45200
+ };
45201
+ handover_kruisconflicten: {
45202
+ Args: never;
45203
+ Returns: import("../integrations/supabase/types").Json;
45204
+ };
45205
+ handover_list: {
45206
+ Args: never;
45207
+ Returns: import("../integrations/supabase/types").Json;
45208
+ };
45209
+ handover_mag_schrijven: {
45210
+ Args: {
45211
+ _module_id: string;
45212
+ };
45213
+ Returns: boolean;
45214
+ };
45215
+ handover_norm_naam: {
45216
+ Args: {
45217
+ _naam: string;
45218
+ };
45219
+ Returns: string;
45220
+ };
45221
+ handover_publish: {
45222
+ Args: {
45223
+ _bevindingen?: string;
45224
+ _bezit_tabellen?: string[];
45225
+ _conflicten_snapshot?: import("../integrations/supabase/types").Json;
45226
+ _contractfuncties?: string[];
45227
+ _inhoud_md: string;
45228
+ _module_id: string;
45229
+ _module_titel: string;
45230
+ _ontbrekende_contracten?: string[];
45231
+ _samenvatting?: string;
45232
+ };
45233
+ Returns: number;
45234
+ };
45235
+ handover_publish_via_token: {
45236
+ Args: {
45237
+ _bevindingen?: string;
45238
+ _bezit_tabellen?: string[];
45239
+ _conflicten_snapshot?: import("../integrations/supabase/types").Json;
45240
+ _contractfuncties?: string[];
45241
+ _inhoud_md: string;
45242
+ _module_id: string;
45243
+ _module_titel: string;
45244
+ _ontbrekende_contracten?: string[];
45245
+ _samenvatting?: string;
45246
+ _token_hash: string;
45247
+ };
45248
+ Returns: number;
45249
+ };
45250
+ handover_status: {
45251
+ Args: never;
45252
+ Returns: import("../integrations/supabase/types").Json;
45253
+ };
45254
+ handover_synonym_kern: {
45255
+ Args: {
45256
+ _naam: string;
45257
+ };
45258
+ Returns: string;
45259
+ };
45260
+ handover_token_intrekken: {
45261
+ Args: {
45262
+ _id: string;
45263
+ };
45264
+ Returns: boolean;
45265
+ };
45266
+ handover_token_lijst: {
45267
+ Args: never;
45268
+ Returns: import("../integrations/supabase/types").Json;
45269
+ };
45270
+ handover_token_maken: {
45271
+ Args: {
45272
+ _label?: string;
45273
+ _module_id: string;
45274
+ };
45275
+ Returns: string;
45276
+ };
45277
+ handover_update: {
45278
+ Args: {
45279
+ _bezit_tabellen?: string[];
45280
+ _contractfuncties?: string[];
45281
+ _herzieningstermijn_dagen?: number;
45282
+ _inhoud_md?: string;
45283
+ _module_id: string;
45284
+ _module_titel?: string;
45285
+ _samenvatting?: string;
45286
+ _versie: number;
45287
+ };
45288
+ Returns: boolean;
45289
+ } | {
45290
+ Args: {
45291
+ _bevindingen?: string;
45292
+ _bezit_tabellen?: string[];
45293
+ _contractfuncties?: string[];
45294
+ _herzieningstermijn_dagen?: number;
45295
+ _inhoud_md?: string;
45296
+ _module_id: string;
45297
+ _module_titel?: string;
45298
+ _ontbrekende_contracten?: string[];
45299
+ _samenvatting?: string;
45300
+ _versie: number;
45301
+ };
45302
+ Returns: boolean;
45303
+ };
45304
+ handover_versies: {
45305
+ Args: {
45306
+ _module_id: string;
45307
+ };
45308
+ Returns: import("../integrations/supabase/types").Json;
45309
+ };
44730
45310
  has_module_permission: {
44731
45311
  Args: {
44732
45312
  _min: string;
@@ -44746,6 +45326,25 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
44746
45326
  Args: never;
44747
45327
  Returns: boolean;
44748
45328
  };
45329
+ instructie_get: {
45330
+ Args: {
45331
+ _sleutel: string;
45332
+ };
45333
+ Returns: import("../integrations/supabase/types").Json;
45334
+ };
45335
+ instructie_list: {
45336
+ Args: never;
45337
+ Returns: import("../integrations/supabase/types").Json;
45338
+ };
45339
+ instructie_publish: {
45340
+ Args: {
45341
+ _inhoud_md: string;
45342
+ _sleutel: string;
45343
+ _titel: string;
45344
+ _toelichting?: string;
45345
+ };
45346
+ Returns: number;
45347
+ };
44749
45348
  invoice_create_from_source: {
44750
45349
  Args: {
44751
45350
  _payload?: import("../integrations/supabase/types").Json;
@@ -44970,6 +45569,12 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
44970
45569
  };
44971
45570
  Returns: boolean;
44972
45571
  };
45572
+ logistics_barcode_lookup: {
45573
+ Args: {
45574
+ p_barcode: string;
45575
+ };
45576
+ Returns: import("../integrations/supabase/types").Json;
45577
+ };
44973
45578
  logistics_buffer_criteria: {
44974
45579
  Args: {
44975
45580
  p_settings: import("../integrations/supabase/types").Json;
@@ -45030,6 +45635,12 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
45030
45635
  };
45031
45636
  Returns: number;
45032
45637
  };
45638
+ logistics_cart_barcode_value: {
45639
+ Args: {
45640
+ _cart_id: string;
45641
+ };
45642
+ Returns: string;
45643
+ };
45033
45644
  logistics_cart_index: {
45034
45645
  Args: {
45035
45646
  p_from?: string;
@@ -45039,6 +45650,10 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
45039
45650
  cart_id: string;
45040
45651
  cart_index: number;
45041
45652
  cart_label: string;
45653
+ delivery_date: string;
45654
+ is_announced: boolean;
45655
+ is_controlled: boolean;
45656
+ is_printed: boolean;
45042
45657
  is_shared: boolean;
45043
45658
  order_number: string;
45044
45659
  order_source: string;
@@ -45049,6 +45664,12 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
45049
45664
  task_status: string;
45050
45665
  }[];
45051
45666
  };
45667
+ logistics_cart_slip_plan: {
45668
+ Args: {
45669
+ p_order_id: string;
45670
+ };
45671
+ Returns: import("../integrations/supabase/types").Json;
45672
+ };
45052
45673
  logistics_check_order_allowed: {
45053
45674
  Args: {
45054
45675
  p_lines: import("../integrations/supabase/types").Json;
@@ -45197,106 +45818,149 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
45197
45818
  isSetofReturn: false;
45198
45819
  };
45199
45820
  };
45200
- logistics_consistency_check: {
45201
- Args: never;
45202
- Returns: {
45203
- agenda_carts: number;
45204
- control_carts: number;
45205
- ok: boolean;
45206
- orphan_tasks: number;
45207
- pick_date: string;
45208
- raw_carts: number;
45209
- }[];
45210
- };
45211
- logistics_delay_customer_email: {
45821
+ logistics_consistency_check: {
45822
+ Args: never;
45823
+ Returns: {
45824
+ agenda_carts: number;
45825
+ announced_carts: number;
45826
+ control_carts: number;
45827
+ delivery_carts: number;
45828
+ ok: boolean;
45829
+ orphan_tasks: number;
45830
+ pick_date: string;
45831
+ raw_carts: number;
45832
+ sales_carts: number;
45833
+ station_carts: number;
45834
+ }[];
45835
+ };
45836
+ logistics_delay_customer_email: {
45837
+ Args: {
45838
+ p_customer: string;
45839
+ p_lang: string;
45840
+ p_new_date: string;
45841
+ p_order: string;
45842
+ p_partial?: boolean;
45843
+ };
45844
+ Returns: {
45845
+ body: string;
45846
+ subject: string;
45847
+ }[];
45848
+ };
45849
+ logistics_delivery_agenda: {
45850
+ Args: {
45851
+ p_from?: string;
45852
+ p_to?: string;
45853
+ };
45854
+ Returns: {
45855
+ announced_count: number;
45856
+ cart_count: number;
45857
+ controlled_count: number;
45858
+ delivery_date: string;
45859
+ order_count: number;
45860
+ orders: import("../integrations/supabase/types").Json;
45861
+ plant_count: number;
45862
+ printed_count: number;
45863
+ }[];
45864
+ };
45865
+ logistics_document_layout: {
45866
+ Args: {
45867
+ _document_code: string;
45868
+ };
45869
+ Returns: import("../integrations/supabase/types").Json;
45870
+ };
45871
+ logistics_document_layout_v2: {
45872
+ Args: {
45873
+ _document_code: string;
45874
+ _is_partial?: boolean;
45875
+ };
45876
+ Returns: import("../integrations/supabase/types").Json;
45877
+ };
45878
+ logistics_document_station: {
45879
+ Args: {
45880
+ _document_code: string;
45881
+ };
45882
+ Returns: string;
45883
+ };
45884
+ logistics_document_type_map: {
45885
+ Args: {
45886
+ _document_code: string;
45887
+ };
45888
+ Returns: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"][];
45889
+ };
45890
+ logistics_emit_event: {
45891
+ Args: {
45892
+ p_event_type: string;
45893
+ p_idempotency_key?: string;
45894
+ p_order_ref: string;
45895
+ p_payload?: import("../integrations/supabase/types").Json;
45896
+ p_priority?: number;
45897
+ p_shadow?: boolean;
45898
+ p_source_module: string;
45899
+ p_strategy_id?: string;
45900
+ };
45901
+ Returns: import("../integrations/supabase/types").Json;
45902
+ };
45903
+ logistics_ensure_cart_barcode: {
45904
+ Args: {
45905
+ _cart_id: string;
45906
+ };
45907
+ Returns: string;
45908
+ };
45909
+ logistics_fail_task: {
45910
+ Args: {
45911
+ p_error: string;
45912
+ p_task_id: string;
45913
+ };
45914
+ Returns: {
45915
+ attempt_log: import("../integrations/supabase/types").Json;
45916
+ attempts: number;
45917
+ buffer_ref: string | null;
45918
+ claimed_at: string | null;
45919
+ claimed_by: string | null;
45920
+ completed_at: string | null;
45921
+ created_at: string;
45922
+ depends_on: string[];
45923
+ due_at: string | null;
45924
+ error: string | null;
45925
+ id: string;
45926
+ last_error: string | null;
45927
+ next_attempt_at: string | null;
45928
+ order_ref: string;
45929
+ owner_module: string;
45930
+ payload: import("../integrations/supabase/types").Json;
45931
+ plan_run_id: string | null;
45932
+ planned_end: string | null;
45933
+ planned_start: string | null;
45934
+ priority: number;
45935
+ result: import("../integrations/supabase/types").Json | null;
45936
+ rule_config_id: string | null;
45937
+ rule_version: number | null;
45938
+ sequence: number;
45939
+ shadow: boolean;
45940
+ started_at: string | null;
45941
+ status: string;
45942
+ strategy_id: string | null;
45943
+ task_type: string;
45944
+ updated_at: string;
45945
+ user_id: string;
45946
+ };
45947
+ SetofOptions: {
45948
+ from: "*";
45949
+ to: "logistics_tasks";
45950
+ isOneToOne: true;
45951
+ isSetofReturn: false;
45952
+ };
45953
+ };
45954
+ logistics_floriday_cart_plan: {
45212
45955
  Args: {
45213
- p_customer: string;
45214
- p_lang: string;
45215
- p_new_date: string;
45216
- p_order: string;
45217
- p_partial?: boolean;
45956
+ p_order_id: string;
45218
45957
  };
45219
45958
  Returns: {
45220
- body: string;
45221
- subject: string;
45959
+ carrier_type: string;
45960
+ idx: number;
45961
+ packages: number;
45222
45962
  }[];
45223
45963
  };
45224
- logistics_document_layout: {
45225
- Args: {
45226
- _document_code: string;
45227
- };
45228
- Returns: import("../integrations/supabase/types").Json;
45229
- };
45230
- logistics_document_station: {
45231
- Args: {
45232
- _document_code: string;
45233
- };
45234
- Returns: string;
45235
- };
45236
- logistics_document_type_map: {
45237
- Args: {
45238
- _document_code: string;
45239
- };
45240
- Returns: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"][];
45241
- };
45242
- logistics_emit_event: {
45243
- Args: {
45244
- p_event_type: string;
45245
- p_idempotency_key?: string;
45246
- p_order_ref: string;
45247
- p_payload?: import("../integrations/supabase/types").Json;
45248
- p_priority?: number;
45249
- p_shadow?: boolean;
45250
- p_source_module: string;
45251
- p_strategy_id?: string;
45252
- };
45253
- Returns: import("../integrations/supabase/types").Json;
45254
- };
45255
- logistics_fail_task: {
45256
- Args: {
45257
- p_error: string;
45258
- p_task_id: string;
45259
- };
45260
- Returns: {
45261
- attempt_log: import("../integrations/supabase/types").Json;
45262
- attempts: number;
45263
- buffer_ref: string | null;
45264
- claimed_at: string | null;
45265
- claimed_by: string | null;
45266
- completed_at: string | null;
45267
- created_at: string;
45268
- depends_on: string[];
45269
- due_at: string | null;
45270
- error: string | null;
45271
- id: string;
45272
- last_error: string | null;
45273
- next_attempt_at: string | null;
45274
- order_ref: string;
45275
- owner_module: string;
45276
- payload: import("../integrations/supabase/types").Json;
45277
- plan_run_id: string | null;
45278
- planned_end: string | null;
45279
- planned_start: string | null;
45280
- priority: number;
45281
- result: import("../integrations/supabase/types").Json | null;
45282
- rule_config_id: string | null;
45283
- rule_version: number | null;
45284
- sequence: number;
45285
- shadow: boolean;
45286
- started_at: string | null;
45287
- status: string;
45288
- strategy_id: string | null;
45289
- task_type: string;
45290
- updated_at: string;
45291
- user_id: string;
45292
- };
45293
- SetofOptions: {
45294
- from: "*";
45295
- to: "logistics_tasks";
45296
- isOneToOne: true;
45297
- isSetofReturn: false;
45298
- };
45299
- };
45300
45964
  logistics_floriday_claim_pushes: {
45301
45965
  Args: {
45302
45966
  _lease_seconds?: number;
@@ -45502,6 +46166,13 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
45502
46166
  };
45503
46167
  Returns: undefined;
45504
46168
  };
46169
+ logistics_plan_floriday_order: {
46170
+ Args: {
46171
+ p_buffer_id?: string;
46172
+ p_order_id: string;
46173
+ };
46174
+ Returns: number;
46175
+ };
45505
46176
  logistics_plan_impact_orders: {
45506
46177
  Args: {
45507
46178
  p_order_id: string;
@@ -45695,6 +46366,14 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
45695
46366
  };
45696
46367
  Returns: string;
45697
46368
  };
46369
+ logistics_shipping_note_from_barcode: {
46370
+ Args: {
46371
+ p_allow_reprint?: boolean;
46372
+ p_barcode: string;
46373
+ p_station_id?: string;
46374
+ };
46375
+ Returns: import("../integrations/supabase/types").Json;
46376
+ };
45698
46377
  logistics_supersede_stale_tasks: {
45699
46378
  Args: {
45700
46379
  p_keep: string[];
@@ -45916,6 +46595,7 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
45916
46595
  print_job_id: string | null;
45917
46596
  printed_at: string | null;
45918
46597
  printed_by: string | null;
46598
+ printed_cart_ids: import("../integrations/supabase/types").Json;
45919
46599
  printer_id: string | null;
45920
46600
  priority: number;
45921
46601
  reference: string | null;
@@ -45965,6 +46645,7 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
45965
46645
  print_job_id: string | null;
45966
46646
  printed_at: string | null;
45967
46647
  printed_by: string | null;
46648
+ printed_cart_ids: import("../integrations/supabase/types").Json;
45968
46649
  printer_id: string | null;
45969
46650
  priority: number;
45970
46651
  reference: string | null;
@@ -46019,6 +46700,56 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
46019
46700
  print_job_id: string | null;
46020
46701
  printed_at: string | null;
46021
46702
  printed_by: string | null;
46703
+ printed_cart_ids: import("../integrations/supabase/types").Json;
46704
+ printer_id: string | null;
46705
+ priority: number;
46706
+ reference: string | null;
46707
+ route: string | null;
46708
+ screen_id: string | null;
46709
+ station_id: string | null;
46710
+ status_id: string | null;
46711
+ updated_at: string;
46712
+ warnings: import("../integrations/supabase/types").Json;
46713
+ };
46714
+ SetofOptions: {
46715
+ from: "*";
46716
+ to: "pick_queue";
46717
+ isOneToOne: true;
46718
+ isSetofReturn: false;
46719
+ };
46720
+ };
46721
+ pick_complete_print_cart: {
46722
+ Args: {
46723
+ _cart_id: string;
46724
+ _printer_id: string;
46725
+ _queue_item_id: string;
46726
+ _session_id: string;
46727
+ };
46728
+ Returns: {
46729
+ announced_at: string;
46730
+ assigned_user_id: string | null;
46731
+ barcode: string | null;
46732
+ cancelled_at: string | null;
46733
+ cart_count: number;
46734
+ completed_at: string | null;
46735
+ country_code: string | null;
46736
+ created_at: string;
46737
+ customer_name: string | null;
46738
+ delivery_address: string | null;
46739
+ document_number: string | null;
46740
+ document_type_id: string | null;
46741
+ due_at: string | null;
46742
+ id: string;
46743
+ is_urgent: boolean;
46744
+ line_count: number;
46745
+ order_number: string | null;
46746
+ order_type: string | null;
46747
+ payload: import("../integrations/supabase/types").Json;
46748
+ print_count: number;
46749
+ print_job_id: string | null;
46750
+ printed_at: string | null;
46751
+ printed_by: string | null;
46752
+ printed_cart_ids: import("../integrations/supabase/types").Json;
46022
46753
  printer_id: string | null;
46023
46754
  priority: number;
46024
46755
  reference: string | null;
@@ -46062,6 +46793,15 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
46062
46793
  _session_id?: string;
46063
46794
  };
46064
46795
  Returns: string;
46796
+ } | {
46797
+ Args: {
46798
+ _cart_id: string;
46799
+ _is_herprint: boolean;
46800
+ _printer_id: string;
46801
+ _queue_item_id: string;
46802
+ _session_id: string;
46803
+ };
46804
+ Returns: string;
46065
46805
  };
46066
46806
  pick_order_context: {
46067
46807
  Args: {
@@ -46142,6 +46882,54 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
46142
46882
  print_job_id: string | null;
46143
46883
  printed_at: string | null;
46144
46884
  printed_by: string | null;
46885
+ printed_cart_ids: import("../integrations/supabase/types").Json;
46886
+ printer_id: string | null;
46887
+ priority: number;
46888
+ reference: string | null;
46889
+ route: string | null;
46890
+ screen_id: string | null;
46891
+ station_id: string | null;
46892
+ status_id: string | null;
46893
+ updated_at: string;
46894
+ warnings: import("../integrations/supabase/types").Json;
46895
+ };
46896
+ SetofOptions: {
46897
+ from: "*";
46898
+ to: "pick_queue";
46899
+ isOneToOne: true;
46900
+ isSetofReturn: false;
46901
+ };
46902
+ } | {
46903
+ Args: {
46904
+ _cart_id?: string;
46905
+ _queue_item_id: string;
46906
+ _session_id: string;
46907
+ };
46908
+ Returns: {
46909
+ announced_at: string;
46910
+ assigned_user_id: string | null;
46911
+ barcode: string | null;
46912
+ cancelled_at: string | null;
46913
+ cart_count: number;
46914
+ completed_at: string | null;
46915
+ country_code: string | null;
46916
+ created_at: string;
46917
+ customer_name: string | null;
46918
+ delivery_address: string | null;
46919
+ document_number: string | null;
46920
+ document_type_id: string | null;
46921
+ due_at: string | null;
46922
+ id: string;
46923
+ is_urgent: boolean;
46924
+ line_count: number;
46925
+ order_number: string | null;
46926
+ order_type: string | null;
46927
+ payload: import("../integrations/supabase/types").Json;
46928
+ print_count: number;
46929
+ print_job_id: string | null;
46930
+ printed_at: string | null;
46931
+ printed_by: string | null;
46932
+ printed_cart_ids: import("../integrations/supabase/types").Json;
46145
46933
  printer_id: string | null;
46146
46934
  priority: number;
46147
46935
  reference: string | null;
@@ -46254,6 +47042,66 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
46254
47042
  };
46255
47043
  Returns: undefined;
46256
47044
  };
47045
+ planning_cancel_item: {
47046
+ Args: {
47047
+ _id: string;
47048
+ };
47049
+ Returns: undefined;
47050
+ };
47051
+ planning_list: {
47052
+ Args: {
47053
+ _from: string;
47054
+ _to: string;
47055
+ };
47056
+ Returns: {
47057
+ assigned_monteur_id: string | null;
47058
+ assistants: import("../integrations/supabase/types").Json | null;
47059
+ budget_mandate_cents: number | null;
47060
+ created_at: string | null;
47061
+ created_by: string | null;
47062
+ customer_id: string | null;
47063
+ customer_name: string | null;
47064
+ duration_minutes: number | null;
47065
+ end_at: string | null;
47066
+ id: string | null;
47067
+ needs_detail_review: boolean | null;
47068
+ notes: string | null;
47069
+ project_number: string | null;
47070
+ review_reasons: string[] | null;
47071
+ start_at: string | null;
47072
+ status: import("../integrations/supabase/types").Database["public"]["Enums"]["planning_item_status"] | null;
47073
+ updated_at: string | null;
47074
+ viewer_role: string | null;
47075
+ werkbon_id: string | null;
47076
+ work_address: string | null;
47077
+ }[];
47078
+ SetofOptions: {
47079
+ from: "*";
47080
+ to: "planning_overview";
47081
+ isOneToOne: false;
47082
+ isSetofReturn: true;
47083
+ };
47084
+ };
47085
+ planning_set_assistants: {
47086
+ Args: {
47087
+ _monteur_ids: string[];
47088
+ _planning_item_id: string;
47089
+ };
47090
+ Returns: undefined;
47091
+ };
47092
+ planning_upsert_item: {
47093
+ Args: {
47094
+ _assigned_monteur_id: string;
47095
+ _end_at: string;
47096
+ _notes?: string;
47097
+ _start_at: string;
47098
+ _werkbon_id: string;
47099
+ };
47100
+ Returns: {
47101
+ action: string;
47102
+ id: string;
47103
+ }[];
47104
+ };
46257
47105
  print_preview_toestaan: {
46258
47106
  Args: {
46259
47107
  _max?: number;
@@ -46835,6 +47683,26 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
46835
47683
  };
46836
47684
  Returns: string[];
46837
47685
  };
47686
+ start_time_log_at: {
47687
+ Args: {
47688
+ p_clicked_at?: string;
47689
+ p_employee_id: string;
47690
+ p_start_lat?: number;
47691
+ p_start_lng?: number;
47692
+ p_type: string;
47693
+ p_work_order_id?: string;
47694
+ };
47695
+ Returns: import("../integrations/supabase/types").Json;
47696
+ };
47697
+ stop_time_log: {
47698
+ Args: {
47699
+ p_employee_id: string;
47700
+ p_end_lat?: number;
47701
+ p_end_lng?: number;
47702
+ p_end_time: string;
47703
+ };
47704
+ Returns: import("../integrations/supabase/types").Json;
47705
+ };
46838
47706
  switch_time_log: {
46839
47707
  Args: {
46840
47708
  p_employee_id: string;