@flowselections/logistiek-engine 1.0.24 → 1.0.26

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 (56) hide show
  1. package/README.md +24 -24
  2. package/dist-lib/components/ConsistentieCard.d.ts +2 -0
  3. package/dist-lib/components/ConsistentieCard.d.ts.map +1 -0
  4. package/dist-lib/components/ConsistentieCard.js +38 -0
  5. package/dist-lib/components/LogistiekEnginePage.d.ts.map +1 -1
  6. package/dist-lib/components/LogistiekEnginePage.js +8 -2
  7. package/dist-lib/components/ModulePromptsPage.d.ts.map +1 -1
  8. package/dist-lib/components/ModulePromptsPage.js +11 -3
  9. package/dist-lib/components/RegiePage.d.ts.map +1 -1
  10. package/dist-lib/components/RegiePage.js +3 -2
  11. package/dist-lib/index.d.ts +1 -0
  12. package/dist-lib/index.d.ts.map +1 -1
  13. package/dist-lib/index.js +1 -0
  14. package/dist-lib/integrations/supabase/auth-middleware.d.ts +1333 -775
  15. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  16. package/dist-lib/integrations/supabase/client.server.d.ts +1333 -775
  17. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  18. package/dist-lib/integrations/supabase/client.server.js +1 -1
  19. package/dist-lib/integrations/supabase/moduleClient.d.ts +1333 -775
  20. package/dist-lib/integrations/supabase/moduleClient.d.ts.map +1 -1
  21. package/dist-lib/integrations/supabase/types.d.ts +1346 -806
  22. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  23. package/dist-lib/lib/floridayDocuments.functions.d.ts +3510 -1836
  24. package/dist-lib/lib/floridayDocuments.functions.d.ts.map +1 -1
  25. package/dist-lib/lib/floridayPush.functions.d.ts +1333 -775
  26. package/dist-lib/lib/floridayPush.functions.d.ts.map +1 -1
  27. package/dist-lib/lib/handlers/logistics-tick.server.d.ts.map +1 -1
  28. package/dist-lib/lib/handlers/logistics-tick.server.js +11 -0
  29. package/dist-lib/lib/loadCarrierPlanner.d.ts +6 -0
  30. package/dist-lib/lib/loadCarrierPlanner.d.ts.map +1 -1
  31. package/dist-lib/lib/loadCarrierPlanner.js +3 -0
  32. package/dist-lib/lib/loadCarrierPlanning.functions.d.ts +5855 -3090
  33. package/dist-lib/lib/loadCarrierPlanning.functions.d.ts.map +1 -1
  34. package/dist-lib/lib/loadCarrierPlanning.server.d.ts.map +1 -1
  35. package/dist-lib/lib/loadCarrierPlanning.server.js +3 -0
  36. package/dist-lib/lib/logisticsPlanner.d.ts +2 -0
  37. package/dist-lib/lib/logisticsPlanner.d.ts.map +1 -1
  38. package/dist-lib/lib/logisticsPlanner.js +52 -13
  39. package/dist-lib/lib/logisticsRecalcJob.functions.d.ts +2340 -1224
  40. package/dist-lib/lib/logisticsRecalcJob.functions.d.ts.map +1 -1
  41. package/dist-lib/lib/logisticsRecalculate.functions.d.ts +1333 -775
  42. package/dist-lib/lib/logisticsRecalculate.functions.d.ts.map +1 -1
  43. package/dist-lib/lib/modulePrompts.d.ts +19 -3
  44. package/dist-lib/lib/modulePrompts.d.ts.map +1 -1
  45. package/dist-lib/lib/modulePrompts.js +1664 -1141
  46. package/dist-lib/lib/ruleEngineSchema.d.ts.map +1 -1
  47. package/dist-lib/lib/ruleEngineSchema.js +21 -4
  48. package/dist-lib/lib/ruleEngineWizard.d.ts.map +1 -1
  49. package/dist-lib/lib/ruleEngineWizard.js +3 -1
  50. package/package.json +1 -1
  51. package/dist-lib/components/rule-engine/FloridayConnectionBanner.d.ts +0 -2
  52. package/dist-lib/components/rule-engine/FloridayConnectionBanner.d.ts.map +0 -1
  53. package/dist-lib/components/rule-engine/FloridayConnectionBanner.js +0 -41
  54. package/dist-lib/integrations/supabase/client.d.ts +0 -20293
  55. package/dist-lib/integrations/supabase/client.d.ts.map +0 -1
  56. package/dist-lib/integrations/supabase/client.js +0 -13
@@ -2856,6 +2856,84 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
2856
2856
  };
2857
2857
  Relationships: [];
2858
2858
  };
2859
+ delivery_notes: {
2860
+ Row: {
2861
+ byte_size: number | null;
2862
+ connection_id: string | null;
2863
+ content_type: string;
2864
+ created_at: string;
2865
+ error_message: string | null;
2866
+ fetched_at: string | null;
2867
+ fulfillment_order_id: string | null;
2868
+ http_status: number | null;
2869
+ id: string;
2870
+ label_code: string | null;
2871
+ letter: string | null;
2872
+ load_carrier_index: number | null;
2873
+ load_carrier_type: string | null;
2874
+ order_id: string | null;
2875
+ order_number: string | null;
2876
+ packages: number | null;
2877
+ source: string;
2878
+ status: string;
2879
+ storage_bucket: string;
2880
+ storage_path: string | null;
2881
+ updated_at: string;
2882
+ };
2883
+ Insert: {
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
+ Update: {
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
+ Relationships: [{
2930
+ foreignKeyName: "delivery_notes_order_id_fkey";
2931
+ columns: ["order_id"];
2932
+ isOneToOne: false;
2933
+ referencedRelation: "orders";
2934
+ referencedColumns: ["id"];
2935
+ }];
2936
+ };
2859
2937
  document_bronregels: {
2860
2938
  Row: {
2861
2939
  bron: string;
@@ -5909,10 +5987,7 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
5909
5987
  };
5910
5988
  floriday_connections: {
5911
5989
  Row: {
5912
- access_token: string | null;
5913
5990
  api_key: string;
5914
- client_id: string;
5915
- client_secret: string;
5916
5991
  created_at: string;
5917
5992
  customers_endpoint: string | null;
5918
5993
  environment: string;
@@ -5927,10 +6002,7 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
5927
6002
  updated_at: string;
5928
6003
  };
5929
6004
  Insert: {
5930
- access_token?: string | null;
5931
6005
  api_key: string;
5932
- client_id: string;
5933
- client_secret: string;
5934
6006
  created_at?: string;
5935
6007
  customers_endpoint?: string | null;
5936
6008
  environment: string;
@@ -5945,10 +6017,7 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
5945
6017
  updated_at?: string;
5946
6018
  };
5947
6019
  Update: {
5948
- access_token?: string | null;
5949
6020
  api_key?: string;
5950
- client_id?: string;
5951
- client_secret?: string;
5952
6021
  created_at?: string;
5953
6022
  customers_endpoint?: string | null;
5954
6023
  environment?: string;
@@ -6032,6 +6101,7 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
6032
6101
  attempts: number;
6033
6102
  connection_id: string;
6034
6103
  created_at: string;
6104
+ dead_lettered_at: string | null;
6035
6105
  desired_available: boolean | null;
6036
6106
  gateway_attempt_id: string | null;
6037
6107
  id: string;
@@ -6040,9 +6110,13 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
6040
6110
  locked_by: string | null;
6041
6111
  next_attempt_at: string;
6042
6112
  number_of_pieces: number;
6113
+ product_id: string | null;
6043
6114
  sent_at: string | null;
6044
6115
  status: string;
6116
+ stock_mode: string | null;
6045
6117
  superseded_by: string | null;
6118
+ target_week: number | null;
6119
+ target_year: number | null;
6046
6120
  trade_item_id: string;
6047
6121
  updated_at: string;
6048
6122
  user_id: string;
@@ -6051,6 +6125,7 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
6051
6125
  attempts?: number;
6052
6126
  connection_id: string;
6053
6127
  created_at?: string;
6128
+ dead_lettered_at?: string | null;
6054
6129
  desired_available?: boolean | null;
6055
6130
  gateway_attempt_id?: string | null;
6056
6131
  id?: string;
@@ -6059,9 +6134,13 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
6059
6134
  locked_by?: string | null;
6060
6135
  next_attempt_at?: string;
6061
6136
  number_of_pieces?: number;
6137
+ product_id?: string | null;
6062
6138
  sent_at?: string | null;
6063
6139
  status?: string;
6140
+ stock_mode?: string | null;
6064
6141
  superseded_by?: string | null;
6142
+ target_week?: number | null;
6143
+ target_year?: number | null;
6065
6144
  trade_item_id: string;
6066
6145
  updated_at?: string;
6067
6146
  user_id: string;
@@ -6070,6 +6149,7 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
6070
6149
  attempts?: number;
6071
6150
  connection_id?: string;
6072
6151
  created_at?: string;
6152
+ dead_lettered_at?: string | null;
6073
6153
  desired_available?: boolean | null;
6074
6154
  gateway_attempt_id?: string | null;
6075
6155
  id?: string;
@@ -6078,9 +6158,13 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
6078
6158
  locked_by?: string | null;
6079
6159
  next_attempt_at?: string;
6080
6160
  number_of_pieces?: number;
6161
+ product_id?: string | null;
6081
6162
  sent_at?: string | null;
6082
6163
  status?: string;
6164
+ stock_mode?: string | null;
6083
6165
  superseded_by?: string | null;
6166
+ target_week?: number | null;
6167
+ target_year?: number | null;
6084
6168
  trade_item_id?: string;
6085
6169
  updated_at?: string;
6086
6170
  user_id?: string;
@@ -6489,6 +6573,87 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
6489
6573
  referencedColumns: ["id"];
6490
6574
  }];
6491
6575
  };
6576
+ floriday_inventory_settings: {
6577
+ Row: {
6578
+ buffer_quantity: number;
6579
+ connection_id: string;
6580
+ created_at: string;
6581
+ desired_availability: boolean;
6582
+ desired_quantity: number;
6583
+ fixed_quantity: number | null;
6584
+ floriday_trade_item_id: string | null;
6585
+ id: string;
6586
+ last_confirmed_at: string | null;
6587
+ last_enqueued_at: string | null;
6588
+ last_published_at: string | null;
6589
+ last_sync_error: string | null;
6590
+ manual_quantity: number | null;
6591
+ maximum_quantity: number | null;
6592
+ product_id: string;
6593
+ quantity_control: string;
6594
+ remote_available: boolean | null;
6595
+ remote_checked_at: string | null;
6596
+ remote_quantity: number | null;
6597
+ stock_mode: string;
6598
+ sync_status: string;
6599
+ updated_at: string;
6600
+ updated_by: string | null;
6601
+ user_id: string;
6602
+ };
6603
+ Insert: {
6604
+ buffer_quantity?: number;
6605
+ connection_id: string;
6606
+ created_at?: string;
6607
+ desired_availability?: boolean;
6608
+ desired_quantity?: number;
6609
+ fixed_quantity?: number | null;
6610
+ floriday_trade_item_id?: string | null;
6611
+ id?: string;
6612
+ last_confirmed_at?: string | null;
6613
+ last_enqueued_at?: string | null;
6614
+ last_published_at?: string | null;
6615
+ last_sync_error?: string | null;
6616
+ manual_quantity?: number | null;
6617
+ maximum_quantity?: number | null;
6618
+ product_id: string;
6619
+ quantity_control?: string;
6620
+ remote_available?: boolean | null;
6621
+ remote_checked_at?: string | null;
6622
+ remote_quantity?: number | null;
6623
+ stock_mode?: string;
6624
+ sync_status?: string;
6625
+ updated_at?: string;
6626
+ updated_by?: string | null;
6627
+ user_id: string;
6628
+ };
6629
+ Update: {
6630
+ buffer_quantity?: number;
6631
+ connection_id?: string;
6632
+ created_at?: string;
6633
+ desired_availability?: boolean;
6634
+ desired_quantity?: number;
6635
+ fixed_quantity?: number | null;
6636
+ floriday_trade_item_id?: string | null;
6637
+ id?: string;
6638
+ last_confirmed_at?: string | null;
6639
+ last_enqueued_at?: string | null;
6640
+ last_published_at?: string | null;
6641
+ last_sync_error?: string | null;
6642
+ manual_quantity?: number | null;
6643
+ maximum_quantity?: number | null;
6644
+ product_id?: string;
6645
+ quantity_control?: string;
6646
+ remote_available?: boolean | null;
6647
+ remote_checked_at?: string | null;
6648
+ remote_quantity?: number | null;
6649
+ stock_mode?: string;
6650
+ sync_status?: string;
6651
+ updated_at?: string;
6652
+ updated_by?: string | null;
6653
+ user_id?: string;
6654
+ };
6655
+ Relationships: [];
6656
+ };
6492
6657
  floriday_invoices_cache: {
6493
6658
  Row: {
6494
6659
  buyer_organization_id: string | null;
@@ -6777,6 +6942,39 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
6777
6942
  };
6778
6943
  Relationships: [];
6779
6944
  };
6945
+ floriday_sales_order_ingest: {
6946
+ Row: {
6947
+ connection_id: string;
6948
+ created_at: string;
6949
+ id: string;
6950
+ impact: import("../integrations/supabase/types").Json;
6951
+ order_status: string | null;
6952
+ order_version: number;
6953
+ processed_at: string;
6954
+ sales_order_id: string;
6955
+ };
6956
+ Insert: {
6957
+ connection_id: string;
6958
+ created_at?: string;
6959
+ id?: string;
6960
+ impact?: import("../integrations/supabase/types").Json;
6961
+ order_status?: string | null;
6962
+ order_version?: number;
6963
+ processed_at?: string;
6964
+ sales_order_id: string;
6965
+ };
6966
+ Update: {
6967
+ connection_id?: string;
6968
+ created_at?: string;
6969
+ id?: string;
6970
+ impact?: import("../integrations/supabase/types").Json;
6971
+ order_status?: string | null;
6972
+ order_version?: number;
6973
+ processed_at?: string;
6974
+ sales_order_id?: string;
6975
+ };
6976
+ Relationships: [];
6977
+ };
6780
6978
  floriday_sales_strategies_cache: {
6781
6979
  Row: {
6782
6980
  connection_id: string;
@@ -6876,6 +7074,39 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
6876
7074
  };
6877
7075
  Relationships: [];
6878
7076
  };
7077
+ floriday_sync_cursors: {
7078
+ Row: {
7079
+ connection_id: string;
7080
+ created_at: string;
7081
+ id: string;
7082
+ last_error: string | null;
7083
+ last_sync_at: string | null;
7084
+ resource_type: string;
7085
+ sequence_number: number;
7086
+ updated_at: string;
7087
+ };
7088
+ Insert: {
7089
+ connection_id: string;
7090
+ created_at?: string;
7091
+ id?: string;
7092
+ last_error?: string | null;
7093
+ last_sync_at?: string | null;
7094
+ resource_type: string;
7095
+ sequence_number?: number;
7096
+ updated_at?: string;
7097
+ };
7098
+ Update: {
7099
+ connection_id?: string;
7100
+ created_at?: string;
7101
+ id?: string;
7102
+ last_error?: string | null;
7103
+ last_sync_at?: string | null;
7104
+ resource_type?: string;
7105
+ sequence_number?: number;
7106
+ updated_at?: string;
7107
+ };
7108
+ Relationships: [];
7109
+ };
6879
7110
  floriday_sync_state: {
6880
7111
  Row: {
6881
7112
  connection_id: string;
@@ -7566,6 +7797,42 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
7566
7797
  };
7567
7798
  Relationships: [];
7568
7799
  };
7800
+ inventory_stock_snapshots: {
7801
+ Row: {
7802
+ connection_id: string;
7803
+ created_at: string;
7804
+ erp_available_quantity: number;
7805
+ floriday_desired_quantity: number;
7806
+ floriday_remote_quantity: number | null;
7807
+ granularity: string;
7808
+ id: string;
7809
+ snapshot_at: string;
7810
+ user_id: string | null;
7811
+ };
7812
+ Insert: {
7813
+ connection_id: string;
7814
+ created_at?: string;
7815
+ erp_available_quantity?: number;
7816
+ floriday_desired_quantity?: number;
7817
+ floriday_remote_quantity?: number | null;
7818
+ granularity?: string;
7819
+ id?: string;
7820
+ snapshot_at?: string;
7821
+ user_id?: string | null;
7822
+ };
7823
+ Update: {
7824
+ connection_id?: string;
7825
+ created_at?: string;
7826
+ erp_available_quantity?: number;
7827
+ floriday_desired_quantity?: number;
7828
+ floriday_remote_quantity?: number | null;
7829
+ granularity?: string;
7830
+ id?: string;
7831
+ snapshot_at?: string;
7832
+ user_id?: string | null;
7833
+ };
7834
+ Relationships: [];
7835
+ };
7569
7836
  invoice_items: {
7570
7837
  Row: {
7571
7838
  created_at: string;
@@ -8074,13 +8341,7 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
8074
8341
  segment?: import("../integrations/supabase/types").Database["public"]["Enums"]["itk_customer_segment"];
8075
8342
  updated_at?: string;
8076
8343
  };
8077
- Relationships: [{
8078
- foreignKeyName: "itk_customers_legacy_customer_id_fkey";
8079
- columns: ["legacy_customer_id"];
8080
- isOneToOne: false;
8081
- referencedRelation: "customers";
8082
- referencedColumns: ["id"];
8083
- }];
8344
+ Relationships: [];
8084
8345
  };
8085
8346
  itk_dynamic_fields: {
8086
8347
  Row: {
@@ -8112,104 +8373,278 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
8112
8373
  };
8113
8374
  Relationships: [];
8114
8375
  };
8115
- itk_offerte_events: {
8376
+ itk_handover_rechten: {
8116
8377
  Row: {
8117
8378
  created_at: string;
8118
- event_type: string;
8119
8379
  id: string;
8120
- metadata: import("../integrations/supabase/types").Json;
8121
- offerte_id: string;
8122
- omschrijving: string | null;
8380
+ module_id: string;
8381
+ rol: import("../integrations/supabase/types").Database["public"]["Enums"]["app_role"] | null;
8382
+ updated_at: string;
8123
8383
  user_id: string | null;
8124
8384
  };
8125
8385
  Insert: {
8126
8386
  created_at?: string;
8127
- event_type: string;
8128
8387
  id?: string;
8129
- metadata?: import("../integrations/supabase/types").Json;
8130
- offerte_id: string;
8131
- omschrijving?: string | null;
8388
+ module_id: string;
8389
+ rol?: import("../integrations/supabase/types").Database["public"]["Enums"]["app_role"] | null;
8390
+ updated_at?: string;
8132
8391
  user_id?: string | null;
8133
8392
  };
8134
8393
  Update: {
8135
8394
  created_at?: string;
8136
- event_type?: string;
8137
8395
  id?: string;
8138
- metadata?: import("../integrations/supabase/types").Json;
8139
- offerte_id?: string;
8140
- omschrijving?: string | null;
8396
+ module_id?: string;
8397
+ rol?: import("../integrations/supabase/types").Database["public"]["Enums"]["app_role"] | null;
8398
+ updated_at?: string;
8141
8399
  user_id?: string | null;
8142
8400
  };
8143
- Relationships: [{
8144
- foreignKeyName: "itk_offerte_events_offerte_id_fkey";
8145
- columns: ["offerte_id"];
8146
- isOneToOne: false;
8147
- referencedRelation: "itk_offertes";
8148
- referencedColumns: ["id"];
8149
- }];
8401
+ Relationships: [];
8150
8402
  };
8151
- itk_offerte_regels: {
8403
+ itk_handover_tokens: {
8152
8404
  Row: {
8405
+ aangemaakt_door: string | null;
8153
8406
  created_at: string;
8154
8407
  id: string;
8155
- line_total_cents: number;
8156
- offerte_id: string;
8157
- omschrijving: string;
8158
- package_id: string | null;
8159
- quantity: number;
8160
- sort_order: number;
8161
- source: string;
8162
- unit_price_cents: number;
8408
+ is_actief: boolean;
8409
+ laatst_gebruikt_op: string | null;
8410
+ label: string;
8411
+ module_id: string;
8412
+ token_hash: string;
8163
8413
  updated_at: string;
8414
+ verloopt_op: string | null;
8164
8415
  };
8165
8416
  Insert: {
8417
+ aangemaakt_door?: string | null;
8166
8418
  created_at?: string;
8167
8419
  id?: string;
8168
- line_total_cents?: number;
8169
- offerte_id: string;
8170
- omschrijving?: string;
8171
- package_id?: string | null;
8172
- quantity?: number;
8173
- sort_order?: number;
8174
- source?: string;
8175
- unit_price_cents?: number;
8420
+ is_actief?: boolean;
8421
+ laatst_gebruikt_op?: string | null;
8422
+ label?: string;
8423
+ module_id: string;
8424
+ token_hash: string;
8176
8425
  updated_at?: string;
8426
+ verloopt_op?: string | null;
8177
8427
  };
8178
8428
  Update: {
8429
+ aangemaakt_door?: string | null;
8179
8430
  created_at?: string;
8180
8431
  id?: string;
8181
- line_total_cents?: number;
8182
- offerte_id?: string;
8183
- omschrijving?: string;
8184
- package_id?: string | null;
8185
- quantity?: number;
8186
- sort_order?: number;
8187
- source?: string;
8188
- unit_price_cents?: number;
8432
+ is_actief?: boolean;
8433
+ laatst_gebruikt_op?: string | null;
8434
+ label?: string;
8435
+ module_id?: string;
8436
+ token_hash?: string;
8189
8437
  updated_at?: string;
8438
+ verloopt_op?: string | null;
8190
8439
  };
8191
- Relationships: [{
8192
- foreignKeyName: "itk_offerte_regels_offerte_id_fkey";
8193
- columns: ["offerte_id"];
8194
- isOneToOne: false;
8195
- referencedRelation: "itk_offertes";
8196
- referencedColumns: ["id"];
8197
- }, {
8198
- foreignKeyName: "itk_offerte_regels_package_id_fkey";
8199
- columns: ["package_id"];
8200
- isOneToOne: false;
8201
- referencedRelation: "werkbon_packages";
8202
- referencedColumns: ["id"];
8203
- }];
8440
+ Relationships: [];
8204
8441
  };
8205
- itk_offerte_settings: {
8442
+ itk_module_handovers: {
8206
8443
  Row: {
8207
- auto_convert_binnen_mandaat: boolean;
8444
+ bevindingen: string | null;
8445
+ bezit_tabellen: string[];
8446
+ conflicten_snapshot: import("../integrations/supabase/types").Json;
8447
+ contractfuncties: string[];
8208
8448
  created_at: string;
8209
- default_geldigheid_dagen: number;
8210
- default_vat_rate: number;
8449
+ eigenaar_module_id: string | null;
8450
+ gepubliceerd_door: string | null;
8451
+ gepubliceerd_op: string;
8452
+ herzieningstermijn_dagen: number;
8211
8453
  id: string;
8212
- singleton: boolean;
8454
+ inhoud_md: string;
8455
+ is_actueel: boolean;
8456
+ module_id: string;
8457
+ module_titel: string;
8458
+ ontbrekende_contracten: string[];
8459
+ samenvatting: string | null;
8460
+ updated_at: string;
8461
+ versie: number;
8462
+ };
8463
+ Insert: {
8464
+ bevindingen?: string | null;
8465
+ bezit_tabellen?: string[];
8466
+ conflicten_snapshot?: import("../integrations/supabase/types").Json;
8467
+ contractfuncties?: string[];
8468
+ created_at?: string;
8469
+ eigenaar_module_id?: string | null;
8470
+ gepubliceerd_door?: string | null;
8471
+ gepubliceerd_op?: string;
8472
+ herzieningstermijn_dagen?: number;
8473
+ id?: string;
8474
+ inhoud_md: string;
8475
+ is_actueel?: boolean;
8476
+ module_id: string;
8477
+ module_titel: string;
8478
+ ontbrekende_contracten?: string[];
8479
+ samenvatting?: string | null;
8480
+ updated_at?: string;
8481
+ versie?: number;
8482
+ };
8483
+ Update: {
8484
+ bevindingen?: string | null;
8485
+ bezit_tabellen?: string[];
8486
+ conflicten_snapshot?: import("../integrations/supabase/types").Json;
8487
+ contractfuncties?: string[];
8488
+ created_at?: string;
8489
+ eigenaar_module_id?: string | null;
8490
+ gepubliceerd_door?: string | null;
8491
+ gepubliceerd_op?: string;
8492
+ herzieningstermijn_dagen?: number;
8493
+ id?: string;
8494
+ inhoud_md?: string;
8495
+ is_actueel?: boolean;
8496
+ module_id?: string;
8497
+ module_titel?: string;
8498
+ ontbrekende_contracten?: string[];
8499
+ samenvatting?: string | null;
8500
+ updated_at?: string;
8501
+ versie?: number;
8502
+ };
8503
+ Relationships: [];
8504
+ };
8505
+ itk_module_instructies: {
8506
+ Row: {
8507
+ created_at: string;
8508
+ eigenaar_module_id: string;
8509
+ gepubliceerd_door: string | null;
8510
+ gepubliceerd_op: string;
8511
+ id: string;
8512
+ inhoud_md: string;
8513
+ is_actueel: boolean;
8514
+ sleutel: string;
8515
+ titel: string;
8516
+ toelichting: string | null;
8517
+ updated_at: string;
8518
+ versie: number;
8519
+ };
8520
+ Insert: {
8521
+ created_at?: string;
8522
+ eigenaar_module_id?: string;
8523
+ gepubliceerd_door?: string | null;
8524
+ gepubliceerd_op?: string;
8525
+ id?: string;
8526
+ inhoud_md: string;
8527
+ is_actueel?: boolean;
8528
+ sleutel: string;
8529
+ titel: string;
8530
+ toelichting?: string | null;
8531
+ updated_at?: string;
8532
+ versie?: number;
8533
+ };
8534
+ Update: {
8535
+ created_at?: string;
8536
+ eigenaar_module_id?: string;
8537
+ gepubliceerd_door?: string | null;
8538
+ gepubliceerd_op?: string;
8539
+ id?: string;
8540
+ inhoud_md?: string;
8541
+ is_actueel?: boolean;
8542
+ sleutel?: string;
8543
+ titel?: string;
8544
+ toelichting?: string | null;
8545
+ updated_at?: string;
8546
+ versie?: number;
8547
+ };
8548
+ Relationships: [];
8549
+ };
8550
+ itk_offerte_events: {
8551
+ Row: {
8552
+ created_at: string;
8553
+ event_type: string;
8554
+ id: string;
8555
+ metadata: import("../integrations/supabase/types").Json;
8556
+ offerte_id: string;
8557
+ omschrijving: string | null;
8558
+ user_id: string | null;
8559
+ };
8560
+ Insert: {
8561
+ created_at?: string;
8562
+ event_type: string;
8563
+ id?: string;
8564
+ metadata?: import("../integrations/supabase/types").Json;
8565
+ offerte_id: string;
8566
+ omschrijving?: string | null;
8567
+ user_id?: string | null;
8568
+ };
8569
+ Update: {
8570
+ created_at?: string;
8571
+ event_type?: string;
8572
+ id?: string;
8573
+ metadata?: import("../integrations/supabase/types").Json;
8574
+ offerte_id?: string;
8575
+ omschrijving?: string | null;
8576
+ user_id?: string | null;
8577
+ };
8578
+ Relationships: [{
8579
+ foreignKeyName: "itk_offerte_events_offerte_id_fkey";
8580
+ columns: ["offerte_id"];
8581
+ isOneToOne: false;
8582
+ referencedRelation: "itk_offertes";
8583
+ referencedColumns: ["id"];
8584
+ }];
8585
+ };
8586
+ itk_offerte_regels: {
8587
+ Row: {
8588
+ created_at: string;
8589
+ id: string;
8590
+ line_total_cents: number;
8591
+ offerte_id: string;
8592
+ omschrijving: string;
8593
+ package_id: string | null;
8594
+ quantity: number;
8595
+ sort_order: number;
8596
+ source: string;
8597
+ unit_price_cents: number;
8598
+ updated_at: string;
8599
+ };
8600
+ Insert: {
8601
+ created_at?: string;
8602
+ id?: string;
8603
+ line_total_cents?: number;
8604
+ offerte_id: string;
8605
+ omschrijving?: string;
8606
+ package_id?: string | null;
8607
+ quantity?: number;
8608
+ sort_order?: number;
8609
+ source?: string;
8610
+ unit_price_cents?: number;
8611
+ updated_at?: string;
8612
+ };
8613
+ Update: {
8614
+ created_at?: string;
8615
+ id?: string;
8616
+ line_total_cents?: number;
8617
+ offerte_id?: string;
8618
+ omschrijving?: string;
8619
+ package_id?: string | null;
8620
+ quantity?: number;
8621
+ sort_order?: number;
8622
+ source?: string;
8623
+ unit_price_cents?: number;
8624
+ updated_at?: string;
8625
+ };
8626
+ Relationships: [{
8627
+ foreignKeyName: "itk_offerte_regels_offerte_id_fkey";
8628
+ columns: ["offerte_id"];
8629
+ isOneToOne: false;
8630
+ referencedRelation: "itk_offertes";
8631
+ referencedColumns: ["id"];
8632
+ }, {
8633
+ foreignKeyName: "itk_offerte_regels_package_id_fkey";
8634
+ columns: ["package_id"];
8635
+ isOneToOne: false;
8636
+ referencedRelation: "werkbon_packages";
8637
+ referencedColumns: ["id"];
8638
+ }];
8639
+ };
8640
+ itk_offerte_settings: {
8641
+ Row: {
8642
+ auto_convert_binnen_mandaat: boolean;
8643
+ created_at: string;
8644
+ default_geldigheid_dagen: number;
8645
+ default_vat_rate: number;
8646
+ id: string;
8647
+ singleton: boolean;
8213
8648
  updated_at: string;
8214
8649
  };
8215
8650
  Insert: {
@@ -8970,6 +9405,27 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
8970
9405
  };
8971
9406
  Relationships: [];
8972
9407
  };
9408
+ logistics_cart_barcode: {
9409
+ Row: {
9410
+ barcode: string;
9411
+ cart_id: string;
9412
+ created_at: string;
9413
+ order_id: string | null;
9414
+ };
9415
+ Insert: {
9416
+ barcode: string;
9417
+ cart_id: string;
9418
+ created_at?: string;
9419
+ order_id?: string | null;
9420
+ };
9421
+ Update: {
9422
+ barcode?: string;
9423
+ cart_id?: string;
9424
+ created_at?: string;
9425
+ order_id?: string | null;
9426
+ };
9427
+ Relationships: [];
9428
+ };
8973
9429
  logistics_decisions: {
8974
9430
  Row: {
8975
9431
  created_at: string;
@@ -9798,6 +10254,36 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
9798
10254
  referencedColumns: ["id"];
9799
10255
  }];
9800
10256
  };
10257
+ logistics_shipping_note_scan: {
10258
+ Row: {
10259
+ barcode: string;
10260
+ cart_id: string;
10261
+ id: string;
10262
+ is_reprint: boolean;
10263
+ order_id: string | null;
10264
+ print_job_id: string | null;
10265
+ scanned_at: string;
10266
+ };
10267
+ Insert: {
10268
+ barcode: string;
10269
+ cart_id: string;
10270
+ id?: string;
10271
+ is_reprint?: boolean;
10272
+ order_id?: string | null;
10273
+ print_job_id?: string | null;
10274
+ scanned_at?: string;
10275
+ };
10276
+ Update: {
10277
+ barcode?: string;
10278
+ cart_id?: string;
10279
+ id?: string;
10280
+ is_reprint?: boolean;
10281
+ order_id?: string | null;
10282
+ print_job_id?: string | null;
10283
+ scanned_at?: string;
10284
+ };
10285
+ Relationships: [];
10286
+ };
9801
10287
  logistics_staff_planning: {
9802
10288
  Row: {
9803
10289
  created_at: string;
@@ -12619,6 +13105,7 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
12619
13105
  print_job_id: string | null;
12620
13106
  printed_at: string | null;
12621
13107
  printed_by: string | null;
13108
+ printed_cart_ids: import("../integrations/supabase/types").Json;
12622
13109
  printer_id: string | null;
12623
13110
  priority: number;
12624
13111
  reference: string | null;
@@ -12653,6 +13140,7 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
12653
13140
  print_job_id?: string | null;
12654
13141
  printed_at?: string | null;
12655
13142
  printed_by?: string | null;
13143
+ printed_cart_ids?: import("../integrations/supabase/types").Json;
12656
13144
  printer_id?: string | null;
12657
13145
  priority?: number;
12658
13146
  reference?: string | null;
@@ -12687,6 +13175,7 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
12687
13175
  print_job_id?: string | null;
12688
13176
  printed_at?: string | null;
12689
13177
  printed_by?: string | null;
13178
+ printed_cart_ids?: import("../integrations/supabase/types").Json;
12690
13179
  printer_id?: string | null;
12691
13180
  priority?: number;
12692
13181
  reference?: string | null;
@@ -13486,6 +13975,12 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
13486
13975
  isOneToOne: false;
13487
13976
  referencedRelation: "planning_items";
13488
13977
  referencedColumns: ["id"];
13978
+ }, {
13979
+ foreignKeyName: "planning_item_assistants_planning_item_id_fkey";
13980
+ columns: ["planning_item_id"];
13981
+ isOneToOne: false;
13982
+ referencedRelation: "planning_overview";
13983
+ referencedColumns: ["id"];
13489
13984
  }];
13490
13985
  };
13491
13986
  planning_items: {
@@ -13664,6 +14159,9 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
13664
14159
  is_herprint: boolean;
13665
14160
  kopieen: number;
13666
14161
  layout_id: string | null;
14162
+ lokaal_opgeslagen_op: string | null;
14163
+ lokale_pdf_fout: string | null;
14164
+ lokale_pdf_status: string | null;
13667
14165
  opgepakt_op: string | null;
13668
14166
  paginas: number;
13669
14167
  payload: import("../integrations/supabase/types").Json;
@@ -13672,6 +14170,7 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
13672
14170
  pogingen: number;
13673
14171
  printer_id: string | null;
13674
14172
  render_html: string | null;
14173
+ resultaat_pdf_base64: string | null;
13675
14174
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
13676
14175
  updated_at: string;
13677
14176
  volgende_poging: string | null;
@@ -13696,6 +14195,9 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
13696
14195
  is_herprint?: boolean;
13697
14196
  kopieen?: number;
13698
14197
  layout_id?: string | null;
14198
+ lokaal_opgeslagen_op?: string | null;
14199
+ lokale_pdf_fout?: string | null;
14200
+ lokale_pdf_status?: string | null;
13699
14201
  opgepakt_op?: string | null;
13700
14202
  paginas?: number;
13701
14203
  payload?: import("../integrations/supabase/types").Json;
@@ -13704,6 +14206,7 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
13704
14206
  pogingen?: number;
13705
14207
  printer_id?: string | null;
13706
14208
  render_html?: string | null;
14209
+ resultaat_pdf_base64?: string | null;
13707
14210
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
13708
14211
  updated_at?: string;
13709
14212
  volgende_poging?: string | null;
@@ -13728,6 +14231,9 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
13728
14231
  is_herprint?: boolean;
13729
14232
  kopieen?: number;
13730
14233
  layout_id?: string | null;
14234
+ lokaal_opgeslagen_op?: string | null;
14235
+ lokale_pdf_fout?: string | null;
14236
+ lokale_pdf_status?: string | null;
13731
14237
  opgepakt_op?: string | null;
13732
14238
  paginas?: number;
13733
14239
  payload?: import("../integrations/supabase/types").Json;
@@ -13736,6 +14242,7 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
13736
14242
  pogingen?: number;
13737
14243
  printer_id?: string | null;
13738
14244
  render_html?: string | null;
14245
+ resultaat_pdf_base64?: string | null;
13739
14246
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
13740
14247
  updated_at?: string;
13741
14248
  volgende_poging?: string | null;
@@ -14126,6 +14633,7 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
14126
14633
  ondersteunde_laden: import("../integrations/supabase/types").Json | null;
14127
14634
  online: boolean;
14128
14635
  papierformaat: string;
14636
+ pdf_map: string | null;
14129
14637
  poort: number | null;
14130
14638
  soort: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
14131
14639
  systeemnaam: string;
@@ -14151,6 +14659,7 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
14151
14659
  ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
14152
14660
  online?: boolean;
14153
14661
  papierformaat?: string;
14662
+ pdf_map?: string | null;
14154
14663
  poort?: number | null;
14155
14664
  soort?: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
14156
14665
  systeemnaam?: string;
@@ -14176,6 +14685,7 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
14176
14685
  ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
14177
14686
  online?: boolean;
14178
14687
  papierformaat?: string;
14688
+ pdf_map?: string | null;
14179
14689
  poort?: number | null;
14180
14690
  soort?: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
14181
14691
  systeemnaam?: string;
@@ -15048,539 +15558,95 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
15048
15558
  referencedColumns: ["id"];
15049
15559
  }];
15050
15560
  };
15051
- quote_activities: {
15561
+ reception_notifications: {
15052
15562
  Row: {
15563
+ booking_id: string | null;
15053
15564
  created_at: string;
15054
- event_type: string;
15055
15565
  id: string;
15056
- metadata: import("../integrations/supabase/types").Json;
15057
- quote_id: string;
15058
- user_id: string | null;
15566
+ is_read: boolean;
15567
+ message: string;
15568
+ recipient_email: string | null;
15569
+ title: string;
15570
+ type: string;
15059
15571
  };
15060
15572
  Insert: {
15573
+ booking_id?: string | null;
15061
15574
  created_at?: string;
15062
- event_type: string;
15063
15575
  id?: string;
15064
- metadata?: import("../integrations/supabase/types").Json;
15065
- quote_id: string;
15066
- user_id?: string | null;
15576
+ is_read?: boolean;
15577
+ message: string;
15578
+ recipient_email?: string | null;
15579
+ title: string;
15580
+ type: string;
15067
15581
  };
15068
15582
  Update: {
15583
+ booking_id?: string | null;
15069
15584
  created_at?: string;
15070
- event_type?: string;
15071
15585
  id?: string;
15072
- metadata?: import("../integrations/supabase/types").Json;
15073
- quote_id?: string;
15074
- user_id?: string | null;
15586
+ is_read?: boolean;
15587
+ message?: string;
15588
+ recipient_email?: string | null;
15589
+ title?: string;
15590
+ type?: string;
15075
15591
  };
15076
15592
  Relationships: [{
15077
- foreignKeyName: "quote_activities_quote_id_fkey";
15078
- columns: ["quote_id"];
15593
+ foreignKeyName: "reception_notifications_booking_id_fkey";
15594
+ columns: ["booking_id"];
15079
15595
  isOneToOne: false;
15080
- referencedRelation: "quotes";
15596
+ referencedRelation: "bookings";
15081
15597
  referencedColumns: ["id"];
15082
15598
  }];
15083
15599
  };
15084
- quote_attachments: {
15600
+ role_assignments: {
15085
15601
  Row: {
15086
15602
  created_at: string;
15087
- file_name: string;
15088
- file_size: number | null;
15089
- file_url: string;
15090
15603
  id: string;
15091
- mime_type: string | null;
15092
- quote_id: string;
15604
+ role_id: string;
15605
+ user_id: string;
15093
15606
  };
15094
15607
  Insert: {
15095
15608
  created_at?: string;
15096
- file_name: string;
15097
- file_size?: number | null;
15098
- file_url: string;
15099
15609
  id?: string;
15100
- mime_type?: string | null;
15101
- quote_id: string;
15610
+ role_id: string;
15611
+ user_id: string;
15102
15612
  };
15103
15613
  Update: {
15104
15614
  created_at?: string;
15105
- file_name?: string;
15106
- file_size?: number | null;
15107
- file_url?: string;
15108
15615
  id?: string;
15109
- mime_type?: string | null;
15110
- quote_id?: string;
15616
+ role_id?: string;
15617
+ user_id?: string;
15111
15618
  };
15112
15619
  Relationships: [{
15113
- foreignKeyName: "quote_attachments_quote_id_fkey";
15114
- columns: ["quote_id"];
15620
+ foreignKeyName: "role_assignments_role_id_fkey";
15621
+ columns: ["role_id"];
15115
15622
  isOneToOne: false;
15116
- referencedRelation: "quotes";
15623
+ referencedRelation: "roles";
15117
15624
  referencedColumns: ["id"];
15118
15625
  }];
15119
15626
  };
15120
- quote_field_options: {
15627
+ role_permissions: {
15121
15628
  Row: {
15122
- created_at: string;
15123
- field_id: string;
15629
+ can_edit: boolean;
15630
+ can_view: boolean;
15631
+ feature_id: string;
15124
15632
  id: string;
15125
- label: string;
15126
- sort_order: number;
15127
- value: string;
15633
+ module_id: string;
15634
+ role_id: string;
15635
+ updated_at: string;
15128
15636
  };
15129
15637
  Insert: {
15130
- created_at?: string;
15131
- field_id: string;
15638
+ can_edit?: boolean;
15639
+ can_view?: boolean;
15640
+ feature_id?: string;
15132
15641
  id?: string;
15133
- label: string;
15134
- sort_order?: number;
15135
- value: string;
15642
+ module_id: string;
15643
+ role_id: string;
15644
+ updated_at?: string;
15136
15645
  };
15137
15646
  Update: {
15138
- created_at?: string;
15139
- field_id?: string;
15140
- id?: string;
15141
- label?: string;
15142
- sort_order?: number;
15143
- value?: string;
15144
- };
15145
- Relationships: [{
15146
- foreignKeyName: "quote_field_options_field_id_fkey";
15147
- columns: ["field_id"];
15148
- isOneToOne: false;
15149
- referencedRelation: "quote_field_settings";
15150
- referencedColumns: ["id"];
15151
- }];
15152
- };
15153
- quote_field_settings: {
15154
- Row: {
15155
- created_at: string;
15156
- default_value: string | null;
15157
- field_key: string;
15158
- field_type: string;
15159
- id: string;
15160
- is_system: boolean;
15161
- label: string;
15162
- required: boolean;
15163
- sort_order: number;
15164
- updated_at: string;
15165
- visible: boolean;
15166
- };
15167
- Insert: {
15168
- created_at?: string;
15169
- default_value?: string | null;
15170
- field_key: string;
15171
- field_type: string;
15172
- id?: string;
15173
- is_system?: boolean;
15174
- label: string;
15175
- required?: boolean;
15176
- sort_order?: number;
15177
- updated_at?: string;
15178
- visible?: boolean;
15179
- };
15180
- Update: {
15181
- created_at?: string;
15182
- default_value?: string | null;
15183
- field_key?: string;
15184
- field_type?: string;
15185
- id?: string;
15186
- is_system?: boolean;
15187
- label?: string;
15188
- required?: boolean;
15189
- sort_order?: number;
15190
- updated_at?: string;
15191
- visible?: boolean;
15192
- };
15193
- Relationships: [];
15194
- };
15195
- quote_items: {
15196
- Row: {
15197
- category: string | null;
15198
- created_at: string;
15199
- description: string;
15200
- id: string;
15201
- line_total: number;
15202
- module_id: string | null;
15203
- name: string | null;
15204
- quantity: number;
15205
- quote_id: string;
15206
- sort_order: number;
15207
- unit_price: number;
15208
- };
15209
- Insert: {
15210
- category?: string | null;
15211
- created_at?: string;
15212
- description?: string;
15213
- id?: string;
15214
- line_total?: number;
15215
- module_id?: string | null;
15216
- name?: string | null;
15217
- quantity?: number;
15218
- quote_id: string;
15219
- sort_order?: number;
15220
- unit_price?: number;
15221
- };
15222
- Update: {
15223
- category?: string | null;
15224
- created_at?: string;
15225
- description?: string;
15226
- id?: string;
15227
- line_total?: number;
15228
- module_id?: string | null;
15229
- name?: string | null;
15230
- quantity?: number;
15231
- quote_id?: string;
15232
- sort_order?: number;
15233
- unit_price?: number;
15234
- };
15235
- Relationships: [{
15236
- foreignKeyName: "quote_items_module_id_fkey";
15237
- columns: ["module_id"];
15238
- isOneToOne: false;
15239
- referencedRelation: "quote_modules";
15240
- referencedColumns: ["id"];
15241
- }, {
15242
- foreignKeyName: "quote_items_quote_id_fkey";
15243
- columns: ["quote_id"];
15244
- isOneToOne: false;
15245
- referencedRelation: "quotes";
15246
- referencedColumns: ["id"];
15247
- }];
15248
- };
15249
- quote_modules: {
15250
- Row: {
15251
- category: string | null;
15252
- created_at: string;
15253
- description: string | null;
15254
- id: string;
15255
- is_active: boolean;
15256
- name: string;
15257
- price: number;
15258
- sort_order: number;
15259
- updated_at: string;
15260
- };
15261
- Insert: {
15262
- category?: string | null;
15263
- created_at?: string;
15264
- description?: string | null;
15265
- id?: string;
15266
- is_active?: boolean;
15267
- name: string;
15268
- price?: number;
15269
- sort_order?: number;
15270
- updated_at?: string;
15271
- };
15272
- Update: {
15273
- category?: string | null;
15274
- created_at?: string;
15275
- description?: string | null;
15276
- id?: string;
15277
- is_active?: boolean;
15278
- name?: string;
15279
- price?: number;
15280
- sort_order?: number;
15281
- updated_at?: string;
15282
- };
15283
- Relationships: [];
15284
- };
15285
- quote_templates: {
15286
- Row: {
15287
- created_at: string;
15288
- description: string | null;
15289
- field_values: import("../integrations/supabase/types").Json;
15290
- id: string;
15291
- is_default: boolean;
15292
- items: import("../integrations/supabase/types").Json;
15293
- name: string;
15294
- updated_at: string;
15295
- vat_rate: number;
15296
- };
15297
- Insert: {
15298
- created_at?: string;
15299
- description?: string | null;
15300
- field_values?: import("../integrations/supabase/types").Json;
15301
- id?: string;
15302
- is_default?: boolean;
15303
- items?: import("../integrations/supabase/types").Json;
15304
- name: string;
15305
- updated_at?: string;
15306
- vat_rate?: number;
15307
- };
15308
- Update: {
15309
- created_at?: string;
15310
- description?: string | null;
15311
- field_values?: import("../integrations/supabase/types").Json;
15312
- id?: string;
15313
- is_default?: boolean;
15314
- items?: import("../integrations/supabase/types").Json;
15315
- name?: string;
15316
- updated_at?: string;
15317
- vat_rate?: number;
15318
- };
15319
- Relationships: [];
15320
- };
15321
- quote_terms: {
15322
- Row: {
15323
- content: string | null;
15324
- created_at: string;
15325
- file_url: string | null;
15326
- id: string;
15327
- is_active: boolean;
15328
- name: string;
15329
- published_at: string | null;
15330
- updated_at: string;
15331
- version: string;
15332
- };
15333
- Insert: {
15334
- content?: string | null;
15335
- created_at?: string;
15336
- file_url?: string | null;
15337
- id?: string;
15338
- is_active?: boolean;
15339
- name: string;
15340
- published_at?: string | null;
15341
- updated_at?: string;
15342
- version?: string;
15343
- };
15344
- Update: {
15345
- content?: string | null;
15346
- created_at?: string;
15347
- file_url?: string | null;
15348
- id?: string;
15349
- is_active?: boolean;
15350
- name?: string;
15351
- published_at?: string | null;
15352
- updated_at?: string;
15353
- version?: string;
15354
- };
15355
- Relationships: [];
15356
- };
15357
- quotes: {
15358
- Row: {
15359
- accepted_at: string | null;
15360
- archived_at: string | null;
15361
- contact_id: string | null;
15362
- created_at: string;
15363
- customer_id: string | null;
15364
- discount: number;
15365
- expires_at: string | null;
15366
- field_values: import("../integrations/supabase/types").Json;
15367
- id: string;
15368
- notes: string | null;
15369
- owner_id: string | null;
15370
- personal_message: string | null;
15371
- project_id: string | null;
15372
- prospect_id: string | null;
15373
- public_token: string;
15374
- quote_number: string | null;
15375
- recipient_email: string | null;
15376
- recipient_name: string | null;
15377
- rejected_at: string | null;
15378
- sent_at: string | null;
15379
- status: string;
15380
- subtotal: number;
15381
- template_id: string | null;
15382
- terms_id: string | null;
15383
- title: string;
15384
- total: number;
15385
- updated_at: string;
15386
- valid_until: string | null;
15387
- vat_amount: number;
15388
- vat_rate: number;
15389
- viewed_at: string | null;
15390
- };
15391
- Insert: {
15392
- accepted_at?: string | null;
15393
- archived_at?: string | null;
15394
- contact_id?: string | null;
15395
- created_at?: string;
15396
- customer_id?: string | null;
15397
- discount?: number;
15398
- expires_at?: string | null;
15399
- field_values?: import("../integrations/supabase/types").Json;
15400
- id?: string;
15401
- notes?: string | null;
15402
- owner_id?: string | null;
15403
- personal_message?: string | null;
15404
- project_id?: string | null;
15405
- prospect_id?: string | null;
15406
- public_token?: string;
15407
- quote_number?: string | null;
15408
- recipient_email?: string | null;
15409
- recipient_name?: string | null;
15410
- rejected_at?: string | null;
15411
- sent_at?: string | null;
15412
- status?: string;
15413
- subtotal?: number;
15414
- template_id?: string | null;
15415
- terms_id?: string | null;
15416
- title?: string;
15417
- total?: number;
15418
- updated_at?: string;
15419
- valid_until?: string | null;
15420
- vat_amount?: number;
15421
- vat_rate?: number;
15422
- viewed_at?: string | null;
15423
- };
15424
- Update: {
15425
- accepted_at?: string | null;
15426
- archived_at?: string | null;
15427
- contact_id?: string | null;
15428
- created_at?: string;
15429
- customer_id?: string | null;
15430
- discount?: number;
15431
- expires_at?: string | null;
15432
- field_values?: import("../integrations/supabase/types").Json;
15433
- id?: string;
15434
- notes?: string | null;
15435
- owner_id?: string | null;
15436
- personal_message?: string | null;
15437
- project_id?: string | null;
15438
- prospect_id?: string | null;
15439
- public_token?: string;
15440
- quote_number?: string | null;
15441
- recipient_email?: string | null;
15442
- recipient_name?: string | null;
15443
- rejected_at?: string | null;
15444
- sent_at?: string | null;
15445
- status?: string;
15446
- subtotal?: number;
15447
- template_id?: string | null;
15448
- terms_id?: string | null;
15449
- title?: string;
15450
- total?: number;
15451
- updated_at?: string;
15452
- valid_until?: string | null;
15453
- vat_amount?: number;
15454
- vat_rate?: number;
15455
- viewed_at?: string | null;
15456
- };
15457
- Relationships: [{
15458
- foreignKeyName: "quotes_contact_id_fkey";
15459
- columns: ["contact_id"];
15460
- isOneToOne: false;
15461
- referencedRelation: "customer_contacts";
15462
- referencedColumns: ["id"];
15463
- }, {
15464
- foreignKeyName: "quotes_customer_id_fkey";
15465
- columns: ["customer_id"];
15466
- isOneToOne: false;
15467
- referencedRelation: "customers";
15468
- referencedColumns: ["id"];
15469
- }, {
15470
- foreignKeyName: "quotes_project_id_fkey";
15471
- columns: ["project_id"];
15472
- isOneToOne: false;
15473
- referencedRelation: "projects";
15474
- referencedColumns: ["id"];
15475
- }, {
15476
- foreignKeyName: "quotes_prospect_id_fkey";
15477
- columns: ["prospect_id"];
15478
- isOneToOne: false;
15479
- referencedRelation: "prospects";
15480
- referencedColumns: ["id"];
15481
- }, {
15482
- foreignKeyName: "quotes_template_id_fkey";
15483
- columns: ["template_id"];
15484
- isOneToOne: false;
15485
- referencedRelation: "quote_templates";
15486
- referencedColumns: ["id"];
15487
- }, {
15488
- foreignKeyName: "quotes_terms_id_fkey";
15489
- columns: ["terms_id"];
15490
- isOneToOne: false;
15491
- referencedRelation: "quote_terms";
15492
- referencedColumns: ["id"];
15493
- }];
15494
- };
15495
- reception_notifications: {
15496
- Row: {
15497
- booking_id: string | null;
15498
- created_at: string;
15499
- id: string;
15500
- is_read: boolean;
15501
- message: string;
15502
- recipient_email: string | null;
15503
- title: string;
15504
- type: string;
15505
- };
15506
- Insert: {
15507
- booking_id?: string | null;
15508
- created_at?: string;
15509
- id?: string;
15510
- is_read?: boolean;
15511
- message: string;
15512
- recipient_email?: string | null;
15513
- title: string;
15514
- type: string;
15515
- };
15516
- Update: {
15517
- booking_id?: string | null;
15518
- created_at?: string;
15519
- id?: string;
15520
- is_read?: boolean;
15521
- message?: string;
15522
- recipient_email?: string | null;
15523
- title?: string;
15524
- type?: string;
15525
- };
15526
- Relationships: [{
15527
- foreignKeyName: "reception_notifications_booking_id_fkey";
15528
- columns: ["booking_id"];
15529
- isOneToOne: false;
15530
- referencedRelation: "bookings";
15531
- referencedColumns: ["id"];
15532
- }];
15533
- };
15534
- role_assignments: {
15535
- Row: {
15536
- created_at: string;
15537
- id: string;
15538
- role_id: string;
15539
- user_id: string;
15540
- };
15541
- Insert: {
15542
- created_at?: string;
15543
- id?: string;
15544
- role_id: string;
15545
- user_id: string;
15546
- };
15547
- Update: {
15548
- created_at?: string;
15549
- id?: string;
15550
- role_id?: string;
15551
- user_id?: string;
15552
- };
15553
- Relationships: [{
15554
- foreignKeyName: "role_assignments_role_id_fkey";
15555
- columns: ["role_id"];
15556
- isOneToOne: false;
15557
- referencedRelation: "roles";
15558
- referencedColumns: ["id"];
15559
- }];
15560
- };
15561
- role_permissions: {
15562
- Row: {
15563
- can_edit: boolean;
15564
- can_view: boolean;
15565
- feature_id: string;
15566
- id: string;
15567
- module_id: string;
15568
- role_id: string;
15569
- updated_at: string;
15570
- };
15571
- Insert: {
15572
- can_edit?: boolean;
15573
- can_view?: boolean;
15574
- feature_id?: string;
15575
- id?: string;
15576
- module_id: string;
15577
- role_id: string;
15578
- updated_at?: string;
15579
- };
15580
- Update: {
15581
- can_edit?: boolean;
15582
- can_view?: boolean;
15583
- feature_id?: string;
15647
+ can_edit?: boolean;
15648
+ can_view?: boolean;
15649
+ feature_id?: string;
15584
15650
  id?: string;
15585
15651
  module_id?: string;
15586
15652
  role_id?: string;
@@ -16613,7 +16679,7 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
16613
16679
  foreignKeyName: "time_logs_work_order_id_fkey";
16614
16680
  columns: ["work_order_id"];
16615
16681
  isOneToOne: false;
16616
- referencedRelation: "work_orders";
16682
+ referencedRelation: "werkbonnen";
16617
16683
  referencedColumns: ["id"];
16618
16684
  }];
16619
16685
  };
@@ -16745,6 +16811,7 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
16745
16811
  };
16746
16812
  trade_item_stock: {
16747
16813
  Row: {
16814
+ change_source: string;
16748
16815
  connection_id: string;
16749
16816
  created_at: string;
16750
16817
  id: string;
@@ -16758,6 +16825,7 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
16758
16825
  user_id: string;
16759
16826
  };
16760
16827
  Insert: {
16828
+ change_source?: string;
16761
16829
  connection_id: string;
16762
16830
  created_at?: string;
16763
16831
  id?: string;
@@ -16771,6 +16839,7 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
16771
16839
  user_id: string;
16772
16840
  };
16773
16841
  Update: {
16842
+ change_source?: string;
16774
16843
  connection_id?: string;
16775
16844
  created_at?: string;
16776
16845
  id?: string;
@@ -17867,229 +17936,79 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
17867
17936
  monteur_id: string;
17868
17937
  note: string | null;
17869
17938
  source: string;
17870
- travel_km: number;
17871
- updated_at: string;
17872
- werkbon_id: string | null;
17873
- };
17874
- Insert: {
17875
- created_at?: string;
17876
- created_by?: string | null;
17877
- entry_date: string;
17878
- hours?: number;
17879
- id?: string;
17880
- kind?: string;
17881
- monteur_id: string;
17882
- note?: string | null;
17883
- source?: string;
17884
- travel_km?: number;
17885
- updated_at?: string;
17886
- werkbon_id?: string | null;
17887
- };
17888
- Update: {
17889
- created_at?: string;
17890
- created_by?: string | null;
17891
- entry_date?: string;
17892
- hours?: number;
17893
- id?: string;
17894
- kind?: string;
17895
- monteur_id?: string;
17896
- note?: string | null;
17897
- source?: string;
17898
- travel_km?: number;
17899
- updated_at?: string;
17900
- werkbon_id?: string | null;
17901
- };
17902
- Relationships: [{
17903
- foreignKeyName: "uren_entries_werkbon_id_fkey";
17904
- columns: ["werkbon_id"];
17905
- isOneToOne: false;
17906
- referencedRelation: "werkbonnen";
17907
- referencedColumns: ["id"];
17908
- }];
17909
- };
17910
- uren_exports: {
17911
- Row: {
17912
- created_at: string;
17913
- created_by: string | null;
17914
- file_name: string | null;
17915
- id: string;
17916
- monteur_ids: string[];
17917
- period_end: string;
17918
- period_start: string;
17919
- row_count: number;
17920
- };
17921
- Insert: {
17922
- created_at?: string;
17923
- created_by?: string | null;
17924
- file_name?: string | null;
17925
- id?: string;
17926
- monteur_ids?: string[];
17927
- period_end: string;
17928
- period_start: string;
17929
- row_count?: number;
17930
- };
17931
- Update: {
17932
- created_at?: string;
17933
- created_by?: string | null;
17934
- file_name?: string | null;
17935
- id?: string;
17936
- monteur_ids?: string[];
17937
- period_end?: string;
17938
- period_start?: string;
17939
- row_count?: number;
17940
- };
17941
- Relationships: [];
17942
- };
17943
- uren_offerte_regels: {
17944
- Row: {
17945
- created_at: string;
17946
- description: string;
17947
- duration_minutes: number;
17948
- id: string;
17949
- offerte_id: string;
17950
- package_id: string | null;
17951
- quantity: number;
17952
- sort_order: number;
17953
- total_cents: number;
17954
- unit_price_cents: number;
17955
- };
17956
- Insert: {
17957
- created_at?: string;
17958
- description: string;
17959
- duration_minutes?: number;
17960
- id?: string;
17961
- offerte_id: string;
17962
- package_id?: string | null;
17963
- quantity?: number;
17964
- sort_order?: number;
17965
- total_cents?: number;
17966
- unit_price_cents?: number;
17967
- };
17968
- Update: {
17969
- created_at?: string;
17970
- description?: string;
17971
- duration_minutes?: number;
17972
- id?: string;
17973
- offerte_id?: string;
17974
- package_id?: string | null;
17975
- quantity?: number;
17976
- sort_order?: number;
17977
- total_cents?: number;
17978
- unit_price_cents?: number;
17979
- };
17980
- Relationships: [{
17981
- foreignKeyName: "uren_offerte_regels_offerte_id_fkey";
17982
- columns: ["offerte_id"];
17983
- isOneToOne: false;
17984
- referencedRelation: "uren_offertes";
17985
- referencedColumns: ["id"];
17986
- }, {
17987
- foreignKeyName: "uren_offerte_regels_package_id_fkey";
17988
- columns: ["package_id"];
17989
- isOneToOne: false;
17990
- referencedRelation: "werkbon_packages";
17991
- referencedColumns: ["id"];
17992
- }];
17993
- };
17994
- uren_offerte_velden: {
17995
- Row: {
17996
- created_at: string;
17997
- field_type: string;
17998
- id: string;
17999
- key: string;
18000
- label: string;
18001
- options: string[];
18002
- required: boolean;
18003
- sort_order: number;
18004
- updated_at: string;
18005
- };
18006
- Insert: {
18007
- created_at?: string;
18008
- field_type?: string;
18009
- id?: string;
18010
- key: string;
18011
- label: string;
18012
- options?: string[];
18013
- required?: boolean;
18014
- sort_order?: number;
18015
- updated_at?: string;
18016
- };
18017
- Update: {
18018
- created_at?: string;
18019
- field_type?: string;
18020
- id?: string;
18021
- key?: string;
18022
- label?: string;
18023
- options?: string[];
18024
- required?: boolean;
18025
- sort_order?: number;
18026
- updated_at?: string;
18027
- };
18028
- Relationships: [];
18029
- };
18030
- uren_offertes: {
18031
- Row: {
18032
- created_at: string;
18033
- created_by: string | null;
18034
- customer_id: string | null;
18035
- customer_name: string | null;
18036
- dynamic_fields: import("../integrations/supabase/types").Json;
18037
- estimated_minutes: number;
18038
- id: string;
18039
- note: string | null;
18040
- quote_number: string | null;
18041
- status: string;
18042
- title: string;
18043
- total_excl_cents: number;
18044
- total_incl_cents: number;
17939
+ travel_km: number;
18045
17940
  updated_at: string;
18046
- valid_until: string | null;
18047
- vat_percentage: number;
17941
+ werkbon_id: string | null;
18048
17942
  };
18049
17943
  Insert: {
18050
17944
  created_at?: string;
18051
17945
  created_by?: string | null;
18052
- customer_id?: string | null;
18053
- customer_name?: string | null;
18054
- dynamic_fields?: import("../integrations/supabase/types").Json;
18055
- estimated_minutes?: number;
17946
+ entry_date: string;
17947
+ hours?: number;
18056
17948
  id?: string;
17949
+ kind?: string;
17950
+ monteur_id: string;
18057
17951
  note?: string | null;
18058
- quote_number?: string | null;
18059
- status?: string;
18060
- title?: string;
18061
- total_excl_cents?: number;
18062
- total_incl_cents?: number;
17952
+ source?: string;
17953
+ travel_km?: number;
18063
17954
  updated_at?: string;
18064
- valid_until?: string | null;
18065
- vat_percentage?: number;
17955
+ werkbon_id?: string | null;
18066
17956
  };
18067
17957
  Update: {
18068
17958
  created_at?: string;
18069
17959
  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;
17960
+ entry_date?: string;
17961
+ hours?: number;
18074
17962
  id?: string;
17963
+ kind?: string;
17964
+ monteur_id?: string;
18075
17965
  note?: string | null;
18076
- quote_number?: string | null;
18077
- status?: string;
18078
- title?: string;
18079
- total_excl_cents?: number;
18080
- total_incl_cents?: number;
17966
+ source?: string;
17967
+ travel_km?: number;
18081
17968
  updated_at?: string;
18082
- valid_until?: string | null;
18083
- vat_percentage?: number;
17969
+ werkbon_id?: string | null;
18084
17970
  };
18085
17971
  Relationships: [{
18086
- foreignKeyName: "uren_offertes_customer_id_fkey";
18087
- columns: ["customer_id"];
17972
+ foreignKeyName: "uren_entries_werkbon_id_fkey";
17973
+ columns: ["werkbon_id"];
18088
17974
  isOneToOne: false;
18089
- referencedRelation: "itk_customers";
17975
+ referencedRelation: "werkbonnen";
18090
17976
  referencedColumns: ["id"];
18091
17977
  }];
18092
17978
  };
17979
+ uren_exports: {
17980
+ Row: {
17981
+ created_at: string;
17982
+ created_by: string | null;
17983
+ file_name: string | null;
17984
+ id: string;
17985
+ monteur_ids: string[];
17986
+ period_end: string;
17987
+ period_start: string;
17988
+ row_count: number;
17989
+ };
17990
+ Insert: {
17991
+ created_at?: string;
17992
+ created_by?: string | null;
17993
+ file_name?: string | null;
17994
+ id?: string;
17995
+ monteur_ids?: string[];
17996
+ period_end: string;
17997
+ period_start: string;
17998
+ row_count?: number;
17999
+ };
18000
+ Update: {
18001
+ created_at?: string;
18002
+ created_by?: string | null;
18003
+ file_name?: string | null;
18004
+ id?: string;
18005
+ monteur_ids?: string[];
18006
+ period_end?: string;
18007
+ period_start?: string;
18008
+ row_count?: number;
18009
+ };
18010
+ Relationships: [];
18011
+ };
18093
18012
  uren_settings: {
18094
18013
  Row: {
18095
18014
  break_minutes: number;
@@ -19776,6 +19695,37 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
19776
19695
  };
19777
19696
  Relationships: [];
19778
19697
  };
19698
+ planning_overview: {
19699
+ Row: {
19700
+ assigned_monteur_id: string | null;
19701
+ assistants: import("../integrations/supabase/types").Json | null;
19702
+ budget_mandate_cents: number | null;
19703
+ created_at: string | null;
19704
+ created_by: string | null;
19705
+ customer_id: string | null;
19706
+ customer_name: string | null;
19707
+ duration_minutes: number | null;
19708
+ end_at: string | null;
19709
+ id: string | null;
19710
+ needs_detail_review: boolean | null;
19711
+ notes: string | null;
19712
+ project_number: string | null;
19713
+ review_reasons: string[] | null;
19714
+ start_at: string | null;
19715
+ status: import("../integrations/supabase/types").Database["public"]["Enums"]["planning_item_status"] | null;
19716
+ updated_at: string | null;
19717
+ viewer_role: string | null;
19718
+ werkbon_id: string | null;
19719
+ work_address: string | null;
19720
+ };
19721
+ Relationships: [{
19722
+ foreignKeyName: "planning_items_werkbon_id_fkey";
19723
+ columns: ["werkbon_id"];
19724
+ isOneToOne: false;
19725
+ referencedRelation: "werkbonnen";
19726
+ referencedColumns: ["id"];
19727
+ }];
19728
+ };
19779
19729
  product_group_stock_view: {
19780
19730
  Row: {
19781
19731
  item_count: number | null;
@@ -20371,6 +20321,18 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
20371
20321
  Args: never;
20372
20322
  Returns: number;
20373
20323
  };
20324
+ calculate_floriday_desired_stock: {
20325
+ Args: {
20326
+ p_connection_id: string;
20327
+ p_product_id: string;
20328
+ };
20329
+ Returns: {
20330
+ desired_availability: boolean;
20331
+ desired_quantity: number;
20332
+ erp_available: number;
20333
+ stock_mode: string;
20334
+ }[];
20335
+ };
20374
20336
  calculate_layer_stock: {
20375
20337
  Args: {
20376
20338
  p_product_id: string;
@@ -20432,6 +20394,9 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
20432
20394
  is_herprint: boolean;
20433
20395
  kopieen: number;
20434
20396
  layout_id: string | null;
20397
+ lokaal_opgeslagen_op: string | null;
20398
+ lokale_pdf_fout: string | null;
20399
+ lokale_pdf_status: string | null;
20435
20400
  opgepakt_op: string | null;
20436
20401
  paginas: number;
20437
20402
  payload: import("../integrations/supabase/types").Json;
@@ -20440,6 +20405,7 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
20440
20405
  pogingen: number;
20441
20406
  printer_id: string | null;
20442
20407
  render_html: string | null;
20408
+ resultaat_pdf_base64: string | null;
20443
20409
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
20444
20410
  updated_at: string;
20445
20411
  volgende_poging: string | null;
@@ -20461,6 +20427,7 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
20461
20427
  attempts: number;
20462
20428
  connection_id: string;
20463
20429
  created_at: string;
20430
+ dead_lettered_at: string | null;
20464
20431
  desired_available: boolean | null;
20465
20432
  gateway_attempt_id: string | null;
20466
20433
  id: string;
@@ -20469,9 +20436,13 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
20469
20436
  locked_by: string | null;
20470
20437
  next_attempt_at: string;
20471
20438
  number_of_pieces: number;
20439
+ product_id: string | null;
20472
20440
  sent_at: string | null;
20473
20441
  status: string;
20442
+ stock_mode: string | null;
20474
20443
  superseded_by: string | null;
20444
+ target_week: number | null;
20445
+ target_year: number | null;
20475
20446
  trade_item_id: string;
20476
20447
  updated_at: string;
20477
20448
  user_id: string;
@@ -20531,6 +20502,53 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
20531
20502
  isSetofReturn: true;
20532
20503
  };
20533
20504
  };
20505
+ claim_pdf_print_jobs: {
20506
+ Args: {
20507
+ _max?: number;
20508
+ };
20509
+ Returns: {
20510
+ agent_id: string | null;
20511
+ bron_job_id: string | null;
20512
+ created_at: string;
20513
+ documentnaam: string;
20514
+ documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
20515
+ extern_job_id: string | null;
20516
+ foutmelding: string | null;
20517
+ gebruiker_id: string | null;
20518
+ gebruiker_naam: string;
20519
+ gebruikte_bron: string | null;
20520
+ gebruikte_layout_id: string | null;
20521
+ gestart_op: string | null;
20522
+ herkomst: string | null;
20523
+ id: string;
20524
+ idempotentie_sleutel: string | null;
20525
+ is_herprint: boolean;
20526
+ kopieen: number;
20527
+ layout_id: string | null;
20528
+ lokaal_opgeslagen_op: string | null;
20529
+ lokale_pdf_fout: string | null;
20530
+ lokale_pdf_status: string | null;
20531
+ opgepakt_op: string | null;
20532
+ paginas: number;
20533
+ payload: import("../integrations/supabase/types").Json;
20534
+ pdf_base64: string | null;
20535
+ pdf_url: string | null;
20536
+ pogingen: number;
20537
+ printer_id: string | null;
20538
+ render_html: string | null;
20539
+ resultaat_pdf_base64: string | null;
20540
+ status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
20541
+ updated_at: string;
20542
+ volgende_poging: string | null;
20543
+ voltooid_op: string | null;
20544
+ }[];
20545
+ SetofOptions: {
20546
+ from: "*";
20547
+ to: "print_jobs";
20548
+ isOneToOne: false;
20549
+ isSetofReturn: true;
20550
+ };
20551
+ };
20534
20552
  claim_print_jobs: {
20535
20553
  Args: {
20536
20554
  _agent_id: string;
@@ -20555,6 +20573,9 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
20555
20573
  is_herprint: boolean;
20556
20574
  kopieen: number;
20557
20575
  layout_id: string | null;
20576
+ lokaal_opgeslagen_op: string | null;
20577
+ lokale_pdf_fout: string | null;
20578
+ lokale_pdf_status: string | null;
20558
20579
  opgepakt_op: string | null;
20559
20580
  paginas: number;
20560
20581
  payload: import("../integrations/supabase/types").Json;
@@ -20563,6 +20584,7 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
20563
20584
  pogingen: number;
20564
20585
  printer_id: string | null;
20565
20586
  render_html: string | null;
20587
+ resultaat_pdf_base64: string | null;
20566
20588
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
20567
20589
  updated_at: string;
20568
20590
  volgende_poging: string | null;
@@ -20703,6 +20725,8 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
20703
20725
  order_id: string;
20704
20726
  order_source: string;
20705
20727
  pick_date: string;
20728
+ printed_at: string;
20729
+ printed_today: boolean;
20706
20730
  status: string;
20707
20731
  }[];
20708
20732
  };
@@ -20899,6 +20923,24 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
20899
20923
  };
20900
20924
  Returns: string;
20901
20925
  };
20926
+ floriday_capture_stock_snapshot: {
20927
+ Args: never;
20928
+ Returns: number;
20929
+ };
20930
+ floriday_cleanup_stock_queue_v2: {
20931
+ Args: never;
20932
+ Returns: undefined;
20933
+ };
20934
+ floriday_compact_stock_snapshots: {
20935
+ Args: never;
20936
+ Returns: undefined;
20937
+ };
20938
+ floriday_default_owner: {
20939
+ Args: {
20940
+ p_connection_id: string;
20941
+ };
20942
+ Returns: string;
20943
+ };
20902
20944
  floriday_effective_price: {
20903
20945
  Args: {
20904
20946
  _buyer_id: string;
@@ -20916,6 +20958,34 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
20916
20958
  source_id: string;
20917
20959
  }[];
20918
20960
  };
20961
+ floriday_fill_publish_horizon: {
20962
+ Args: never;
20963
+ Returns: number;
20964
+ };
20965
+ floriday_ingest_sales_orders: {
20966
+ Args: {
20967
+ p_limit?: number;
20968
+ };
20969
+ Returns: number;
20970
+ };
20971
+ floriday_publish_horizon_weeks: {
20972
+ Args: never;
20973
+ Returns: number;
20974
+ };
20975
+ floriday_recompute_inventory: {
20976
+ Args: {
20977
+ p_connection_id: string;
20978
+ p_force?: boolean;
20979
+ p_product_id: string;
20980
+ };
20981
+ Returns: undefined;
20982
+ };
20983
+ floriday_requeue_dead_letters: {
20984
+ Args: {
20985
+ p_connection_id?: string;
20986
+ };
20987
+ Returns: number;
20988
+ };
20919
20989
  format_cart_number: {
20920
20990
  Args: {
20921
20991
  p_pick_date: string;
@@ -21132,6 +21202,131 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
21132
21202
  Args: never;
21133
21203
  Returns: string;
21134
21204
  };
21205
+ handover_get: {
21206
+ Args: {
21207
+ _module_id: string;
21208
+ };
21209
+ Returns: import("../integrations/supabase/types").Json;
21210
+ };
21211
+ handover_kern_naam: {
21212
+ Args: {
21213
+ _naam: string;
21214
+ };
21215
+ Returns: string;
21216
+ };
21217
+ handover_ketenmodel: {
21218
+ Args: never;
21219
+ Returns: import("../integrations/supabase/types").Json;
21220
+ };
21221
+ handover_kruisconflicten: {
21222
+ Args: never;
21223
+ Returns: import("../integrations/supabase/types").Json;
21224
+ };
21225
+ handover_list: {
21226
+ Args: never;
21227
+ Returns: import("../integrations/supabase/types").Json;
21228
+ };
21229
+ handover_mag_schrijven: {
21230
+ Args: {
21231
+ _module_id: string;
21232
+ };
21233
+ Returns: boolean;
21234
+ };
21235
+ handover_norm_naam: {
21236
+ Args: {
21237
+ _naam: string;
21238
+ };
21239
+ Returns: string;
21240
+ };
21241
+ handover_publish: {
21242
+ Args: {
21243
+ _bevindingen?: string;
21244
+ _bezit_tabellen?: string[];
21245
+ _conflicten_snapshot?: import("../integrations/supabase/types").Json;
21246
+ _contractfuncties?: string[];
21247
+ _inhoud_md: string;
21248
+ _module_id: string;
21249
+ _module_titel: string;
21250
+ _ontbrekende_contracten?: string[];
21251
+ _samenvatting?: string;
21252
+ };
21253
+ Returns: number;
21254
+ };
21255
+ handover_publish_via_token: {
21256
+ Args: {
21257
+ _bevindingen?: string;
21258
+ _bezit_tabellen?: string[];
21259
+ _conflicten_snapshot?: import("../integrations/supabase/types").Json;
21260
+ _contractfuncties?: string[];
21261
+ _inhoud_md: string;
21262
+ _module_id: string;
21263
+ _module_titel: string;
21264
+ _ontbrekende_contracten?: string[];
21265
+ _samenvatting?: string;
21266
+ _token_hash: string;
21267
+ };
21268
+ Returns: number;
21269
+ };
21270
+ handover_status: {
21271
+ Args: never;
21272
+ Returns: import("../integrations/supabase/types").Json;
21273
+ };
21274
+ handover_synonym_kern: {
21275
+ Args: {
21276
+ _naam: string;
21277
+ };
21278
+ Returns: string;
21279
+ };
21280
+ handover_token_intrekken: {
21281
+ Args: {
21282
+ _id: string;
21283
+ };
21284
+ Returns: boolean;
21285
+ };
21286
+ handover_token_lijst: {
21287
+ Args: never;
21288
+ Returns: import("../integrations/supabase/types").Json;
21289
+ };
21290
+ handover_token_maken: {
21291
+ Args: {
21292
+ _label?: string;
21293
+ _module_id: string;
21294
+ };
21295
+ Returns: string;
21296
+ };
21297
+ handover_update: {
21298
+ Args: {
21299
+ _bezit_tabellen?: string[];
21300
+ _contractfuncties?: string[];
21301
+ _herzieningstermijn_dagen?: number;
21302
+ _inhoud_md?: string;
21303
+ _module_id: string;
21304
+ _module_titel?: string;
21305
+ _samenvatting?: string;
21306
+ _versie: number;
21307
+ };
21308
+ Returns: boolean;
21309
+ } | {
21310
+ Args: {
21311
+ _bevindingen?: string;
21312
+ _bezit_tabellen?: string[];
21313
+ _contractfuncties?: string[];
21314
+ _herzieningstermijn_dagen?: number;
21315
+ _inhoud_md?: string;
21316
+ _module_id: string;
21317
+ _module_titel?: string;
21318
+ _ontbrekende_contracten?: string[];
21319
+ _samenvatting?: string;
21320
+ _versie: number;
21321
+ };
21322
+ Returns: boolean;
21323
+ };
21324
+ handover_versies: {
21325
+ Args: {
21326
+ _module_id: string;
21327
+ };
21328
+ Returns: import("../integrations/supabase/types").Json;
21329
+ };
21135
21330
  has_module_permission: {
21136
21331
  Args: {
21137
21332
  _min: string;
@@ -21151,6 +21346,25 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
21151
21346
  Args: never;
21152
21347
  Returns: boolean;
21153
21348
  };
21349
+ instructie_get: {
21350
+ Args: {
21351
+ _sleutel: string;
21352
+ };
21353
+ Returns: import("../integrations/supabase/types").Json;
21354
+ };
21355
+ instructie_list: {
21356
+ Args: never;
21357
+ Returns: import("../integrations/supabase/types").Json;
21358
+ };
21359
+ instructie_publish: {
21360
+ Args: {
21361
+ _inhoud_md: string;
21362
+ _sleutel: string;
21363
+ _titel: string;
21364
+ _toelichting?: string;
21365
+ };
21366
+ Returns: number;
21367
+ };
21154
21368
  invoice_create_from_source: {
21155
21369
  Args: {
21156
21370
  _payload?: import("../integrations/supabase/types").Json;
@@ -21375,6 +21589,12 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
21375
21589
  };
21376
21590
  Returns: boolean;
21377
21591
  };
21592
+ logistics_barcode_lookup: {
21593
+ Args: {
21594
+ p_barcode: string;
21595
+ };
21596
+ Returns: import("../integrations/supabase/types").Json;
21597
+ };
21378
21598
  logistics_buffer_criteria: {
21379
21599
  Args: {
21380
21600
  p_settings: import("../integrations/supabase/types").Json;
@@ -21411,6 +21631,10 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
21411
21631
  };
21412
21632
  Returns: number;
21413
21633
  };
21634
+ logistics_cancel_orphan_tasks: {
21635
+ Args: never;
21636
+ Returns: number;
21637
+ };
21414
21638
  logistics_capacity_day_check: {
21415
21639
  Args: {
21416
21640
  p_from?: string;
@@ -21431,6 +21655,41 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
21431
21655
  };
21432
21656
  Returns: number;
21433
21657
  };
21658
+ logistics_cart_barcode_value: {
21659
+ Args: {
21660
+ _cart_id: string;
21661
+ };
21662
+ Returns: string;
21663
+ };
21664
+ logistics_cart_index: {
21665
+ Args: {
21666
+ p_from?: string;
21667
+ p_to?: string;
21668
+ };
21669
+ Returns: {
21670
+ cart_id: string;
21671
+ cart_index: number;
21672
+ cart_label: string;
21673
+ delivery_date: string;
21674
+ is_announced: boolean;
21675
+ is_controlled: boolean;
21676
+ is_printed: boolean;
21677
+ is_shared: boolean;
21678
+ order_number: string;
21679
+ order_source: string;
21680
+ order_uuid: string;
21681
+ pick_date: string;
21682
+ printed_at: string;
21683
+ shifted: boolean;
21684
+ task_status: string;
21685
+ }[];
21686
+ };
21687
+ logistics_cart_slip_plan: {
21688
+ Args: {
21689
+ p_order_id: string;
21690
+ };
21691
+ Returns: import("../integrations/supabase/types").Json;
21692
+ };
21434
21693
  logistics_check_order_allowed: {
21435
21694
  Args: {
21436
21695
  p_lines: import("../integrations/supabase/types").Json;
@@ -21579,6 +21838,21 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
21579
21838
  isSetofReturn: false;
21580
21839
  };
21581
21840
  };
21841
+ logistics_consistency_check: {
21842
+ Args: never;
21843
+ Returns: {
21844
+ agenda_carts: number;
21845
+ announced_carts: number;
21846
+ control_carts: number;
21847
+ delivery_carts: number;
21848
+ ok: boolean;
21849
+ orphan_tasks: number;
21850
+ pick_date: string;
21851
+ raw_carts: number;
21852
+ sales_carts: number;
21853
+ station_carts: number;
21854
+ }[];
21855
+ };
21582
21856
  logistics_delay_customer_email: {
21583
21857
  Args: {
21584
21858
  p_customer: string;
@@ -21592,12 +21866,35 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
21592
21866
  subject: string;
21593
21867
  }[];
21594
21868
  };
21869
+ logistics_delivery_agenda: {
21870
+ Args: {
21871
+ p_from?: string;
21872
+ p_to?: string;
21873
+ };
21874
+ Returns: {
21875
+ announced_count: number;
21876
+ cart_count: number;
21877
+ controlled_count: number;
21878
+ delivery_date: string;
21879
+ order_count: number;
21880
+ orders: import("../integrations/supabase/types").Json;
21881
+ plant_count: number;
21882
+ printed_count: number;
21883
+ }[];
21884
+ };
21595
21885
  logistics_document_layout: {
21596
21886
  Args: {
21597
21887
  _document_code: string;
21598
21888
  };
21599
21889
  Returns: import("../integrations/supabase/types").Json;
21600
21890
  };
21891
+ logistics_document_layout_v2: {
21892
+ Args: {
21893
+ _document_code: string;
21894
+ _is_partial?: boolean;
21895
+ };
21896
+ Returns: import("../integrations/supabase/types").Json;
21897
+ };
21601
21898
  logistics_document_station: {
21602
21899
  Args: {
21603
21900
  _document_code: string;
@@ -21623,6 +21920,12 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
21623
21920
  };
21624
21921
  Returns: import("../integrations/supabase/types").Json;
21625
21922
  };
21923
+ logistics_ensure_cart_barcode: {
21924
+ Args: {
21925
+ _cart_id: string;
21926
+ };
21927
+ Returns: string;
21928
+ };
21626
21929
  logistics_fail_task: {
21627
21930
  Args: {
21628
21931
  p_error: string;
@@ -21668,6 +21971,16 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
21668
21971
  isSetofReturn: false;
21669
21972
  };
21670
21973
  };
21974
+ logistics_floriday_cart_plan: {
21975
+ Args: {
21976
+ p_order_id: string;
21977
+ };
21978
+ Returns: {
21979
+ carrier_type: string;
21980
+ idx: number;
21981
+ packages: number;
21982
+ }[];
21983
+ };
21671
21984
  logistics_floriday_claim_pushes: {
21672
21985
  Args: {
21673
21986
  _lease_seconds?: number;
@@ -21772,6 +22085,25 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
21772
22085
  };
21773
22086
  Returns: number;
21774
22087
  };
22088
+ logistics_order_overview: {
22089
+ Args: {
22090
+ p_from?: string;
22091
+ p_to?: string;
22092
+ };
22093
+ Returns: {
22094
+ cart_count: number;
22095
+ customer_name: string;
22096
+ delivery_date: string;
22097
+ order_number: string;
22098
+ order_source: string;
22099
+ order_uuid: string;
22100
+ pick_date: string;
22101
+ plant_count: number;
22102
+ printed_at: string;
22103
+ shifted: boolean;
22104
+ status: string;
22105
+ }[];
22106
+ };
21775
22107
  logistics_order_pick_day: {
21776
22108
  Args: {
21777
22109
  p_order_ref: string;
@@ -21784,6 +22116,22 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
21784
22116
  };
21785
22117
  Returns: string;
21786
22118
  };
22119
+ logistics_pick_agenda: {
22120
+ Args: {
22121
+ p_from?: string;
22122
+ p_to?: string;
22123
+ };
22124
+ Returns: {
22125
+ cart_count: number;
22126
+ in_preparation: number;
22127
+ order_count: number;
22128
+ orders: import("../integrations/supabase/types").Json;
22129
+ pick_date: string;
22130
+ plant_count: number;
22131
+ ready: number;
22132
+ shifted_count: number;
22133
+ }[];
22134
+ };
21787
22135
  logistics_pick_email_purpose: {
21788
22136
  Args: never;
21789
22137
  Returns: string;
@@ -21838,6 +22186,13 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
21838
22186
  };
21839
22187
  Returns: undefined;
21840
22188
  };
22189
+ logistics_plan_floriday_order: {
22190
+ Args: {
22191
+ p_buffer_id?: string;
22192
+ p_order_id: string;
22193
+ };
22194
+ Returns: number;
22195
+ };
21841
22196
  logistics_plan_impact_orders: {
21842
22197
  Args: {
21843
22198
  p_order_id: string;
@@ -22031,6 +22386,14 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
22031
22386
  };
22032
22387
  Returns: string;
22033
22388
  };
22389
+ logistics_shipping_note_from_barcode: {
22390
+ Args: {
22391
+ p_allow_reprint?: boolean;
22392
+ p_barcode: string;
22393
+ p_station_id?: string;
22394
+ };
22395
+ Returns: import("../integrations/supabase/types").Json;
22396
+ };
22034
22397
  logistics_supersede_stale_tasks: {
22035
22398
  Args: {
22036
22399
  p_keep: string[];
@@ -22252,6 +22615,7 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
22252
22615
  print_job_id: string | null;
22253
22616
  printed_at: string | null;
22254
22617
  printed_by: string | null;
22618
+ printed_cart_ids: import("../integrations/supabase/types").Json;
22255
22619
  printer_id: string | null;
22256
22620
  priority: number;
22257
22621
  reference: string | null;
@@ -22301,6 +22665,7 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
22301
22665
  print_job_id: string | null;
22302
22666
  printed_at: string | null;
22303
22667
  printed_by: string | null;
22668
+ printed_cart_ids: import("../integrations/supabase/types").Json;
22304
22669
  printer_id: string | null;
22305
22670
  priority: number;
22306
22671
  reference: string | null;
@@ -22355,6 +22720,56 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
22355
22720
  print_job_id: string | null;
22356
22721
  printed_at: string | null;
22357
22722
  printed_by: string | null;
22723
+ printed_cart_ids: import("../integrations/supabase/types").Json;
22724
+ printer_id: string | null;
22725
+ priority: number;
22726
+ reference: string | null;
22727
+ route: string | null;
22728
+ screen_id: string | null;
22729
+ station_id: string | null;
22730
+ status_id: string | null;
22731
+ updated_at: string;
22732
+ warnings: import("../integrations/supabase/types").Json;
22733
+ };
22734
+ SetofOptions: {
22735
+ from: "*";
22736
+ to: "pick_queue";
22737
+ isOneToOne: true;
22738
+ isSetofReturn: false;
22739
+ };
22740
+ };
22741
+ pick_complete_print_cart: {
22742
+ Args: {
22743
+ _cart_id: string;
22744
+ _printer_id: string;
22745
+ _queue_item_id: string;
22746
+ _session_id: string;
22747
+ };
22748
+ Returns: {
22749
+ announced_at: string;
22750
+ assigned_user_id: string | null;
22751
+ barcode: string | null;
22752
+ cancelled_at: string | null;
22753
+ cart_count: number;
22754
+ completed_at: string | null;
22755
+ country_code: string | null;
22756
+ created_at: string;
22757
+ customer_name: string | null;
22758
+ delivery_address: string | null;
22759
+ document_number: string | null;
22760
+ document_type_id: string | null;
22761
+ due_at: string | null;
22762
+ id: string;
22763
+ is_urgent: boolean;
22764
+ line_count: number;
22765
+ order_number: string | null;
22766
+ order_type: string | null;
22767
+ payload: import("../integrations/supabase/types").Json;
22768
+ print_count: number;
22769
+ print_job_id: string | null;
22770
+ printed_at: string | null;
22771
+ printed_by: string | null;
22772
+ printed_cart_ids: import("../integrations/supabase/types").Json;
22358
22773
  printer_id: string | null;
22359
22774
  priority: number;
22360
22775
  reference: string | null;
@@ -22398,6 +22813,15 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
22398
22813
  _session_id?: string;
22399
22814
  };
22400
22815
  Returns: string;
22816
+ } | {
22817
+ Args: {
22818
+ _cart_id: string;
22819
+ _is_herprint: boolean;
22820
+ _printer_id: string;
22821
+ _queue_item_id: string;
22822
+ _session_id: string;
22823
+ };
22824
+ Returns: string;
22401
22825
  };
22402
22826
  pick_order_context: {
22403
22827
  Args: {
@@ -22478,6 +22902,54 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
22478
22902
  print_job_id: string | null;
22479
22903
  printed_at: string | null;
22480
22904
  printed_by: string | null;
22905
+ printed_cart_ids: import("../integrations/supabase/types").Json;
22906
+ printer_id: string | null;
22907
+ priority: number;
22908
+ reference: string | null;
22909
+ route: string | null;
22910
+ screen_id: string | null;
22911
+ station_id: string | null;
22912
+ status_id: string | null;
22913
+ updated_at: string;
22914
+ warnings: import("../integrations/supabase/types").Json;
22915
+ };
22916
+ SetofOptions: {
22917
+ from: "*";
22918
+ to: "pick_queue";
22919
+ isOneToOne: true;
22920
+ isSetofReturn: false;
22921
+ };
22922
+ } | {
22923
+ Args: {
22924
+ _cart_id?: string;
22925
+ _queue_item_id: string;
22926
+ _session_id: string;
22927
+ };
22928
+ Returns: {
22929
+ announced_at: string;
22930
+ assigned_user_id: string | null;
22931
+ barcode: string | null;
22932
+ cancelled_at: string | null;
22933
+ cart_count: number;
22934
+ completed_at: string | null;
22935
+ country_code: string | null;
22936
+ created_at: string;
22937
+ customer_name: string | null;
22938
+ delivery_address: string | null;
22939
+ document_number: string | null;
22940
+ document_type_id: string | null;
22941
+ due_at: string | null;
22942
+ id: string;
22943
+ is_urgent: boolean;
22944
+ line_count: number;
22945
+ order_number: string | null;
22946
+ order_type: string | null;
22947
+ payload: import("../integrations/supabase/types").Json;
22948
+ print_count: number;
22949
+ print_job_id: string | null;
22950
+ printed_at: string | null;
22951
+ printed_by: string | null;
22952
+ printed_cart_ids: import("../integrations/supabase/types").Json;
22481
22953
  printer_id: string | null;
22482
22954
  priority: number;
22483
22955
  reference: string | null;
@@ -22590,6 +23062,66 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
22590
23062
  };
22591
23063
  Returns: undefined;
22592
23064
  };
23065
+ planning_cancel_item: {
23066
+ Args: {
23067
+ _id: string;
23068
+ };
23069
+ Returns: undefined;
23070
+ };
23071
+ planning_list: {
23072
+ Args: {
23073
+ _from: string;
23074
+ _to: string;
23075
+ };
23076
+ Returns: {
23077
+ assigned_monteur_id: string | null;
23078
+ assistants: import("../integrations/supabase/types").Json | null;
23079
+ budget_mandate_cents: number | null;
23080
+ created_at: string | null;
23081
+ created_by: string | null;
23082
+ customer_id: string | null;
23083
+ customer_name: string | null;
23084
+ duration_minutes: number | null;
23085
+ end_at: string | null;
23086
+ id: string | null;
23087
+ needs_detail_review: boolean | null;
23088
+ notes: string | null;
23089
+ project_number: string | null;
23090
+ review_reasons: string[] | null;
23091
+ start_at: string | null;
23092
+ status: import("../integrations/supabase/types").Database["public"]["Enums"]["planning_item_status"] | null;
23093
+ updated_at: string | null;
23094
+ viewer_role: string | null;
23095
+ werkbon_id: string | null;
23096
+ work_address: string | null;
23097
+ }[];
23098
+ SetofOptions: {
23099
+ from: "*";
23100
+ to: "planning_overview";
23101
+ isOneToOne: false;
23102
+ isSetofReturn: true;
23103
+ };
23104
+ };
23105
+ planning_set_assistants: {
23106
+ Args: {
23107
+ _monteur_ids: string[];
23108
+ _planning_item_id: string;
23109
+ };
23110
+ Returns: undefined;
23111
+ };
23112
+ planning_upsert_item: {
23113
+ Args: {
23114
+ _assigned_monteur_id: string;
23115
+ _end_at: string;
23116
+ _notes?: string;
23117
+ _start_at: string;
23118
+ _werkbon_id: string;
23119
+ };
23120
+ Returns: {
23121
+ action: string;
23122
+ id: string;
23123
+ }[];
23124
+ };
22593
23125
  print_preview_toestaan: {
22594
23126
  Args: {
22595
23127
  _max?: number;
@@ -22762,6 +23294,12 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
22762
23294
  };
22763
23295
  Returns: string;
22764
23296
  };
23297
+ resolve_print_job_printer_id: {
23298
+ Args: {
23299
+ _job: import("../integrations/supabase/types").Database["public"]["Tables"]["print_jobs"]["Row"];
23300
+ };
23301
+ Returns: string;
23302
+ };
22765
23303
  resolve_product_id_for_item: {
22766
23304
  Args: {
22767
23305
  p_product_name: string;
@@ -23165,6 +23703,26 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
23165
23703
  };
23166
23704
  Returns: string[];
23167
23705
  };
23706
+ start_time_log_at: {
23707
+ Args: {
23708
+ p_clicked_at?: string;
23709
+ p_employee_id: string;
23710
+ p_start_lat?: number;
23711
+ p_start_lng?: number;
23712
+ p_type: string;
23713
+ p_work_order_id?: string;
23714
+ };
23715
+ Returns: import("../integrations/supabase/types").Json;
23716
+ };
23717
+ stop_time_log: {
23718
+ Args: {
23719
+ p_employee_id: string;
23720
+ p_end_lat?: number;
23721
+ p_end_lng?: number;
23722
+ p_end_time: string;
23723
+ };
23724
+ Returns: import("../integrations/supabase/types").Json;
23725
+ };
23168
23726
  switch_time_log: {
23169
23727
  Args: {
23170
23728
  p_employee_id: string;
@@ -23353,7 +23911,7 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
23353
23911
  };
23354
23912
  CompositeTypes: { [_ in never]: never; };
23355
23913
  }, {
23356
- PostgrestVersion: "14.17";
23914
+ PostgrestVersion: "14.5";
23357
23915
  }>;
23358
23916
  userId: string;
23359
23917
  claims: import("@supabase/auth-js").User;