@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
@@ -2852,6 +2852,84 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
2852
2852
  };
2853
2853
  Relationships: [];
2854
2854
  };
2855
+ delivery_notes: {
2856
+ Row: {
2857
+ byte_size: number | null;
2858
+ connection_id: string | null;
2859
+ content_type: string;
2860
+ created_at: string;
2861
+ error_message: string | null;
2862
+ fetched_at: string | null;
2863
+ fulfillment_order_id: string | null;
2864
+ http_status: number | null;
2865
+ id: string;
2866
+ label_code: string | null;
2867
+ letter: string | null;
2868
+ load_carrier_index: number | null;
2869
+ load_carrier_type: string | null;
2870
+ order_id: string | null;
2871
+ order_number: string | null;
2872
+ packages: number | null;
2873
+ source: string;
2874
+ status: string;
2875
+ storage_bucket: string;
2876
+ storage_path: string | null;
2877
+ updated_at: string;
2878
+ };
2879
+ Insert: {
2880
+ byte_size?: number | null;
2881
+ connection_id?: string | null;
2882
+ content_type?: string;
2883
+ created_at?: string;
2884
+ error_message?: string | null;
2885
+ fetched_at?: string | null;
2886
+ fulfillment_order_id?: string | null;
2887
+ http_status?: number | null;
2888
+ id?: string;
2889
+ label_code?: string | null;
2890
+ letter?: string | null;
2891
+ load_carrier_index?: number | null;
2892
+ load_carrier_type?: string | null;
2893
+ order_id?: string | null;
2894
+ order_number?: string | null;
2895
+ packages?: number | null;
2896
+ source?: string;
2897
+ status?: string;
2898
+ storage_bucket?: string;
2899
+ storage_path?: string | null;
2900
+ updated_at?: string;
2901
+ };
2902
+ Update: {
2903
+ byte_size?: number | null;
2904
+ connection_id?: string | null;
2905
+ content_type?: string;
2906
+ created_at?: string;
2907
+ error_message?: string | null;
2908
+ fetched_at?: string | null;
2909
+ fulfillment_order_id?: string | null;
2910
+ http_status?: number | null;
2911
+ id?: string;
2912
+ label_code?: string | null;
2913
+ letter?: string | null;
2914
+ load_carrier_index?: number | null;
2915
+ load_carrier_type?: string | null;
2916
+ order_id?: string | null;
2917
+ order_number?: string | null;
2918
+ packages?: number | null;
2919
+ source?: string;
2920
+ status?: string;
2921
+ storage_bucket?: string;
2922
+ storage_path?: string | null;
2923
+ updated_at?: string;
2924
+ };
2925
+ Relationships: [{
2926
+ foreignKeyName: "delivery_notes_order_id_fkey";
2927
+ columns: ["order_id"];
2928
+ isOneToOne: false;
2929
+ referencedRelation: "orders";
2930
+ referencedColumns: ["id"];
2931
+ }];
2932
+ };
2855
2933
  document_bronregels: {
2856
2934
  Row: {
2857
2935
  bron: string;
@@ -5905,10 +5983,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
5905
5983
  };
5906
5984
  floriday_connections: {
5907
5985
  Row: {
5908
- access_token: string | null;
5909
5986
  api_key: string;
5910
- client_id: string;
5911
- client_secret: string;
5912
5987
  created_at: string;
5913
5988
  customers_endpoint: string | null;
5914
5989
  environment: string;
@@ -5923,10 +5998,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
5923
5998
  updated_at: string;
5924
5999
  };
5925
6000
  Insert: {
5926
- access_token?: string | null;
5927
6001
  api_key: string;
5928
- client_id: string;
5929
- client_secret: string;
5930
6002
  created_at?: string;
5931
6003
  customers_endpoint?: string | null;
5932
6004
  environment: string;
@@ -5941,10 +6013,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
5941
6013
  updated_at?: string;
5942
6014
  };
5943
6015
  Update: {
5944
- access_token?: string | null;
5945
6016
  api_key?: string;
5946
- client_id?: string;
5947
- client_secret?: string;
5948
6017
  created_at?: string;
5949
6018
  customers_endpoint?: string | null;
5950
6019
  environment?: string;
@@ -6028,6 +6097,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
6028
6097
  attempts: number;
6029
6098
  connection_id: string;
6030
6099
  created_at: string;
6100
+ dead_lettered_at: string | null;
6031
6101
  desired_available: boolean | null;
6032
6102
  gateway_attempt_id: string | null;
6033
6103
  id: string;
@@ -6036,9 +6106,13 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
6036
6106
  locked_by: string | null;
6037
6107
  next_attempt_at: string;
6038
6108
  number_of_pieces: number;
6109
+ product_id: string | null;
6039
6110
  sent_at: string | null;
6040
6111
  status: string;
6112
+ stock_mode: string | null;
6041
6113
  superseded_by: string | null;
6114
+ target_week: number | null;
6115
+ target_year: number | null;
6042
6116
  trade_item_id: string;
6043
6117
  updated_at: string;
6044
6118
  user_id: string;
@@ -6047,6 +6121,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
6047
6121
  attempts?: number;
6048
6122
  connection_id: string;
6049
6123
  created_at?: string;
6124
+ dead_lettered_at?: string | null;
6050
6125
  desired_available?: boolean | null;
6051
6126
  gateway_attempt_id?: string | null;
6052
6127
  id?: string;
@@ -6055,9 +6130,13 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
6055
6130
  locked_by?: string | null;
6056
6131
  next_attempt_at?: string;
6057
6132
  number_of_pieces?: number;
6133
+ product_id?: string | null;
6058
6134
  sent_at?: string | null;
6059
6135
  status?: string;
6136
+ stock_mode?: string | null;
6060
6137
  superseded_by?: string | null;
6138
+ target_week?: number | null;
6139
+ target_year?: number | null;
6061
6140
  trade_item_id: string;
6062
6141
  updated_at?: string;
6063
6142
  user_id: string;
@@ -6066,6 +6145,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
6066
6145
  attempts?: number;
6067
6146
  connection_id?: string;
6068
6147
  created_at?: string;
6148
+ dead_lettered_at?: string | null;
6069
6149
  desired_available?: boolean | null;
6070
6150
  gateway_attempt_id?: string | null;
6071
6151
  id?: string;
@@ -6074,9 +6154,13 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
6074
6154
  locked_by?: string | null;
6075
6155
  next_attempt_at?: string;
6076
6156
  number_of_pieces?: number;
6157
+ product_id?: string | null;
6077
6158
  sent_at?: string | null;
6078
6159
  status?: string;
6160
+ stock_mode?: string | null;
6079
6161
  superseded_by?: string | null;
6162
+ target_week?: number | null;
6163
+ target_year?: number | null;
6080
6164
  trade_item_id?: string;
6081
6165
  updated_at?: string;
6082
6166
  user_id?: string;
@@ -6485,6 +6569,87 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
6485
6569
  referencedColumns: ["id"];
6486
6570
  }];
6487
6571
  };
6572
+ floriday_inventory_settings: {
6573
+ Row: {
6574
+ buffer_quantity: number;
6575
+ connection_id: string;
6576
+ created_at: string;
6577
+ desired_availability: boolean;
6578
+ desired_quantity: number;
6579
+ fixed_quantity: number | null;
6580
+ floriday_trade_item_id: string | null;
6581
+ id: string;
6582
+ last_confirmed_at: string | null;
6583
+ last_enqueued_at: string | null;
6584
+ last_published_at: string | null;
6585
+ last_sync_error: string | null;
6586
+ manual_quantity: number | null;
6587
+ maximum_quantity: number | null;
6588
+ product_id: string;
6589
+ quantity_control: string;
6590
+ remote_available: boolean | null;
6591
+ remote_checked_at: string | null;
6592
+ remote_quantity: number | null;
6593
+ stock_mode: string;
6594
+ sync_status: string;
6595
+ updated_at: string;
6596
+ updated_by: string | null;
6597
+ user_id: string;
6598
+ };
6599
+ Insert: {
6600
+ buffer_quantity?: number;
6601
+ connection_id: string;
6602
+ created_at?: string;
6603
+ desired_availability?: boolean;
6604
+ desired_quantity?: number;
6605
+ fixed_quantity?: number | null;
6606
+ floriday_trade_item_id?: string | null;
6607
+ id?: string;
6608
+ last_confirmed_at?: string | null;
6609
+ last_enqueued_at?: string | null;
6610
+ last_published_at?: string | null;
6611
+ last_sync_error?: string | null;
6612
+ manual_quantity?: number | null;
6613
+ maximum_quantity?: number | null;
6614
+ product_id: string;
6615
+ quantity_control?: string;
6616
+ remote_available?: boolean | null;
6617
+ remote_checked_at?: string | null;
6618
+ remote_quantity?: number | null;
6619
+ stock_mode?: string;
6620
+ sync_status?: string;
6621
+ updated_at?: string;
6622
+ updated_by?: string | null;
6623
+ user_id: string;
6624
+ };
6625
+ Update: {
6626
+ buffer_quantity?: number;
6627
+ connection_id?: string;
6628
+ created_at?: string;
6629
+ desired_availability?: boolean;
6630
+ desired_quantity?: number;
6631
+ fixed_quantity?: number | null;
6632
+ floriday_trade_item_id?: string | null;
6633
+ id?: string;
6634
+ last_confirmed_at?: string | null;
6635
+ last_enqueued_at?: string | null;
6636
+ last_published_at?: string | null;
6637
+ last_sync_error?: string | null;
6638
+ manual_quantity?: number | null;
6639
+ maximum_quantity?: number | null;
6640
+ product_id?: string;
6641
+ quantity_control?: string;
6642
+ remote_available?: boolean | null;
6643
+ remote_checked_at?: string | null;
6644
+ remote_quantity?: number | null;
6645
+ stock_mode?: string;
6646
+ sync_status?: string;
6647
+ updated_at?: string;
6648
+ updated_by?: string | null;
6649
+ user_id?: string;
6650
+ };
6651
+ Relationships: [];
6652
+ };
6488
6653
  floriday_invoices_cache: {
6489
6654
  Row: {
6490
6655
  buyer_organization_id: string | null;
@@ -6773,6 +6938,39 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
6773
6938
  };
6774
6939
  Relationships: [];
6775
6940
  };
6941
+ floriday_sales_order_ingest: {
6942
+ Row: {
6943
+ connection_id: string;
6944
+ created_at: string;
6945
+ id: string;
6946
+ impact: import("./types").Json;
6947
+ order_status: string | null;
6948
+ order_version: number;
6949
+ processed_at: string;
6950
+ sales_order_id: string;
6951
+ };
6952
+ Insert: {
6953
+ connection_id: string;
6954
+ created_at?: string;
6955
+ id?: string;
6956
+ impact?: import("./types").Json;
6957
+ order_status?: string | null;
6958
+ order_version?: number;
6959
+ processed_at?: string;
6960
+ sales_order_id: string;
6961
+ };
6962
+ Update: {
6963
+ connection_id?: string;
6964
+ created_at?: string;
6965
+ id?: string;
6966
+ impact?: import("./types").Json;
6967
+ order_status?: string | null;
6968
+ order_version?: number;
6969
+ processed_at?: string;
6970
+ sales_order_id?: string;
6971
+ };
6972
+ Relationships: [];
6973
+ };
6776
6974
  floriday_sales_strategies_cache: {
6777
6975
  Row: {
6778
6976
  connection_id: string;
@@ -6872,6 +7070,39 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
6872
7070
  };
6873
7071
  Relationships: [];
6874
7072
  };
7073
+ floriday_sync_cursors: {
7074
+ Row: {
7075
+ connection_id: string;
7076
+ created_at: string;
7077
+ id: string;
7078
+ last_error: string | null;
7079
+ last_sync_at: string | null;
7080
+ resource_type: string;
7081
+ sequence_number: number;
7082
+ updated_at: string;
7083
+ };
7084
+ Insert: {
7085
+ connection_id: string;
7086
+ created_at?: string;
7087
+ id?: string;
7088
+ last_error?: string | null;
7089
+ last_sync_at?: string | null;
7090
+ resource_type: string;
7091
+ sequence_number?: number;
7092
+ updated_at?: string;
7093
+ };
7094
+ Update: {
7095
+ connection_id?: string;
7096
+ created_at?: string;
7097
+ id?: string;
7098
+ last_error?: string | null;
7099
+ last_sync_at?: string | null;
7100
+ resource_type?: string;
7101
+ sequence_number?: number;
7102
+ updated_at?: string;
7103
+ };
7104
+ Relationships: [];
7105
+ };
6875
7106
  floriday_sync_state: {
6876
7107
  Row: {
6877
7108
  connection_id: string;
@@ -7562,6 +7793,42 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
7562
7793
  };
7563
7794
  Relationships: [];
7564
7795
  };
7796
+ inventory_stock_snapshots: {
7797
+ Row: {
7798
+ connection_id: string;
7799
+ created_at: string;
7800
+ erp_available_quantity: number;
7801
+ floriday_desired_quantity: number;
7802
+ floriday_remote_quantity: number | null;
7803
+ granularity: string;
7804
+ id: string;
7805
+ snapshot_at: string;
7806
+ user_id: string | null;
7807
+ };
7808
+ Insert: {
7809
+ connection_id: string;
7810
+ created_at?: string;
7811
+ erp_available_quantity?: number;
7812
+ floriday_desired_quantity?: number;
7813
+ floriday_remote_quantity?: number | null;
7814
+ granularity?: string;
7815
+ id?: string;
7816
+ snapshot_at?: string;
7817
+ user_id?: string | null;
7818
+ };
7819
+ Update: {
7820
+ connection_id?: string;
7821
+ created_at?: string;
7822
+ erp_available_quantity?: number;
7823
+ floriday_desired_quantity?: number;
7824
+ floriday_remote_quantity?: number | null;
7825
+ granularity?: string;
7826
+ id?: string;
7827
+ snapshot_at?: string;
7828
+ user_id?: string | null;
7829
+ };
7830
+ Relationships: [];
7831
+ };
7565
7832
  invoice_items: {
7566
7833
  Row: {
7567
7834
  created_at: string;
@@ -8070,13 +8337,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
8070
8337
  segment?: Database["public"]["Enums"]["itk_customer_segment"];
8071
8338
  updated_at?: string;
8072
8339
  };
8073
- Relationships: [{
8074
- foreignKeyName: "itk_customers_legacy_customer_id_fkey";
8075
- columns: ["legacy_customer_id"];
8076
- isOneToOne: false;
8077
- referencedRelation: "customers";
8078
- referencedColumns: ["id"];
8079
- }];
8340
+ Relationships: [];
8080
8341
  };
8081
8342
  itk_dynamic_fields: {
8082
8343
  Row: {
@@ -8108,104 +8369,278 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
8108
8369
  };
8109
8370
  Relationships: [];
8110
8371
  };
8111
- itk_offerte_events: {
8372
+ itk_handover_rechten: {
8112
8373
  Row: {
8113
8374
  created_at: string;
8114
- event_type: string;
8115
8375
  id: string;
8116
- metadata: import("./types").Json;
8117
- offerte_id: string;
8118
- omschrijving: string | null;
8376
+ module_id: string;
8377
+ rol: Database["public"]["Enums"]["app_role"] | null;
8378
+ updated_at: string;
8119
8379
  user_id: string | null;
8120
8380
  };
8121
8381
  Insert: {
8122
8382
  created_at?: string;
8123
- event_type: string;
8124
8383
  id?: string;
8125
- metadata?: import("./types").Json;
8126
- offerte_id: string;
8127
- omschrijving?: string | null;
8384
+ module_id: string;
8385
+ rol?: Database["public"]["Enums"]["app_role"] | null;
8386
+ updated_at?: string;
8128
8387
  user_id?: string | null;
8129
8388
  };
8130
8389
  Update: {
8131
8390
  created_at?: string;
8132
- event_type?: string;
8133
8391
  id?: string;
8134
- metadata?: import("./types").Json;
8135
- offerte_id?: string;
8136
- omschrijving?: string | null;
8392
+ module_id?: string;
8393
+ rol?: Database["public"]["Enums"]["app_role"] | null;
8394
+ updated_at?: string;
8137
8395
  user_id?: string | null;
8138
8396
  };
8139
- Relationships: [{
8140
- foreignKeyName: "itk_offerte_events_offerte_id_fkey";
8141
- columns: ["offerte_id"];
8142
- isOneToOne: false;
8143
- referencedRelation: "itk_offertes";
8144
- referencedColumns: ["id"];
8145
- }];
8397
+ Relationships: [];
8146
8398
  };
8147
- itk_offerte_regels: {
8399
+ itk_handover_tokens: {
8148
8400
  Row: {
8401
+ aangemaakt_door: string | null;
8149
8402
  created_at: string;
8150
8403
  id: string;
8151
- line_total_cents: number;
8152
- offerte_id: string;
8153
- omschrijving: string;
8154
- package_id: string | null;
8155
- quantity: number;
8156
- sort_order: number;
8157
- source: string;
8158
- unit_price_cents: number;
8404
+ is_actief: boolean;
8405
+ laatst_gebruikt_op: string | null;
8406
+ label: string;
8407
+ module_id: string;
8408
+ token_hash: string;
8159
8409
  updated_at: string;
8410
+ verloopt_op: string | null;
8160
8411
  };
8161
8412
  Insert: {
8413
+ aangemaakt_door?: string | null;
8162
8414
  created_at?: string;
8163
8415
  id?: string;
8164
- line_total_cents?: number;
8165
- offerte_id: string;
8166
- omschrijving?: string;
8167
- package_id?: string | null;
8168
- quantity?: number;
8169
- sort_order?: number;
8170
- source?: string;
8171
- unit_price_cents?: number;
8416
+ is_actief?: boolean;
8417
+ laatst_gebruikt_op?: string | null;
8418
+ label?: string;
8419
+ module_id: string;
8420
+ token_hash: string;
8172
8421
  updated_at?: string;
8422
+ verloopt_op?: string | null;
8173
8423
  };
8174
8424
  Update: {
8425
+ aangemaakt_door?: string | null;
8175
8426
  created_at?: string;
8176
8427
  id?: string;
8177
- line_total_cents?: number;
8178
- offerte_id?: string;
8179
- omschrijving?: string;
8180
- package_id?: string | null;
8181
- quantity?: number;
8182
- sort_order?: number;
8183
- source?: string;
8184
- unit_price_cents?: number;
8428
+ is_actief?: boolean;
8429
+ laatst_gebruikt_op?: string | null;
8430
+ label?: string;
8431
+ module_id?: string;
8432
+ token_hash?: string;
8185
8433
  updated_at?: string;
8434
+ verloopt_op?: string | null;
8186
8435
  };
8187
- Relationships: [{
8188
- foreignKeyName: "itk_offerte_regels_offerte_id_fkey";
8189
- columns: ["offerte_id"];
8190
- isOneToOne: false;
8191
- referencedRelation: "itk_offertes";
8192
- referencedColumns: ["id"];
8193
- }, {
8194
- foreignKeyName: "itk_offerte_regels_package_id_fkey";
8195
- columns: ["package_id"];
8196
- isOneToOne: false;
8197
- referencedRelation: "werkbon_packages";
8198
- referencedColumns: ["id"];
8199
- }];
8436
+ Relationships: [];
8200
8437
  };
8201
- itk_offerte_settings: {
8438
+ itk_module_handovers: {
8202
8439
  Row: {
8203
- auto_convert_binnen_mandaat: boolean;
8440
+ bevindingen: string | null;
8441
+ bezit_tabellen: string[];
8442
+ conflicten_snapshot: import("./types").Json;
8443
+ contractfuncties: string[];
8204
8444
  created_at: string;
8205
- default_geldigheid_dagen: number;
8206
- default_vat_rate: number;
8445
+ eigenaar_module_id: string | null;
8446
+ gepubliceerd_door: string | null;
8447
+ gepubliceerd_op: string;
8448
+ herzieningstermijn_dagen: number;
8207
8449
  id: string;
8208
- singleton: boolean;
8450
+ inhoud_md: string;
8451
+ is_actueel: boolean;
8452
+ module_id: string;
8453
+ module_titel: string;
8454
+ ontbrekende_contracten: string[];
8455
+ samenvatting: string | null;
8456
+ updated_at: string;
8457
+ versie: number;
8458
+ };
8459
+ Insert: {
8460
+ bevindingen?: string | null;
8461
+ bezit_tabellen?: string[];
8462
+ conflicten_snapshot?: import("./types").Json;
8463
+ contractfuncties?: string[];
8464
+ created_at?: string;
8465
+ eigenaar_module_id?: string | null;
8466
+ gepubliceerd_door?: string | null;
8467
+ gepubliceerd_op?: string;
8468
+ herzieningstermijn_dagen?: number;
8469
+ id?: string;
8470
+ inhoud_md: string;
8471
+ is_actueel?: boolean;
8472
+ module_id: string;
8473
+ module_titel: string;
8474
+ ontbrekende_contracten?: string[];
8475
+ samenvatting?: string | null;
8476
+ updated_at?: string;
8477
+ versie?: number;
8478
+ };
8479
+ Update: {
8480
+ bevindingen?: string | null;
8481
+ bezit_tabellen?: string[];
8482
+ conflicten_snapshot?: import("./types").Json;
8483
+ contractfuncties?: string[];
8484
+ created_at?: string;
8485
+ eigenaar_module_id?: string | null;
8486
+ gepubliceerd_door?: string | null;
8487
+ gepubliceerd_op?: string;
8488
+ herzieningstermijn_dagen?: number;
8489
+ id?: string;
8490
+ inhoud_md?: string;
8491
+ is_actueel?: boolean;
8492
+ module_id?: string;
8493
+ module_titel?: string;
8494
+ ontbrekende_contracten?: string[];
8495
+ samenvatting?: string | null;
8496
+ updated_at?: string;
8497
+ versie?: number;
8498
+ };
8499
+ Relationships: [];
8500
+ };
8501
+ itk_module_instructies: {
8502
+ Row: {
8503
+ created_at: string;
8504
+ eigenaar_module_id: string;
8505
+ gepubliceerd_door: string | null;
8506
+ gepubliceerd_op: string;
8507
+ id: string;
8508
+ inhoud_md: string;
8509
+ is_actueel: boolean;
8510
+ sleutel: string;
8511
+ titel: string;
8512
+ toelichting: string | null;
8513
+ updated_at: string;
8514
+ versie: number;
8515
+ };
8516
+ Insert: {
8517
+ created_at?: string;
8518
+ eigenaar_module_id?: string;
8519
+ gepubliceerd_door?: string | null;
8520
+ gepubliceerd_op?: string;
8521
+ id?: string;
8522
+ inhoud_md: string;
8523
+ is_actueel?: boolean;
8524
+ sleutel: string;
8525
+ titel: string;
8526
+ toelichting?: string | null;
8527
+ updated_at?: string;
8528
+ versie?: number;
8529
+ };
8530
+ Update: {
8531
+ created_at?: string;
8532
+ eigenaar_module_id?: string;
8533
+ gepubliceerd_door?: string | null;
8534
+ gepubliceerd_op?: string;
8535
+ id?: string;
8536
+ inhoud_md?: string;
8537
+ is_actueel?: boolean;
8538
+ sleutel?: string;
8539
+ titel?: string;
8540
+ toelichting?: string | null;
8541
+ updated_at?: string;
8542
+ versie?: number;
8543
+ };
8544
+ Relationships: [];
8545
+ };
8546
+ itk_offerte_events: {
8547
+ Row: {
8548
+ created_at: string;
8549
+ event_type: string;
8550
+ id: string;
8551
+ metadata: import("./types").Json;
8552
+ offerte_id: string;
8553
+ omschrijving: string | null;
8554
+ user_id: string | null;
8555
+ };
8556
+ Insert: {
8557
+ created_at?: string;
8558
+ event_type: string;
8559
+ id?: string;
8560
+ metadata?: import("./types").Json;
8561
+ offerte_id: string;
8562
+ omschrijving?: string | null;
8563
+ user_id?: string | null;
8564
+ };
8565
+ Update: {
8566
+ created_at?: string;
8567
+ event_type?: string;
8568
+ id?: string;
8569
+ metadata?: import("./types").Json;
8570
+ offerte_id?: string;
8571
+ omschrijving?: string | null;
8572
+ user_id?: string | null;
8573
+ };
8574
+ Relationships: [{
8575
+ foreignKeyName: "itk_offerte_events_offerte_id_fkey";
8576
+ columns: ["offerte_id"];
8577
+ isOneToOne: false;
8578
+ referencedRelation: "itk_offertes";
8579
+ referencedColumns: ["id"];
8580
+ }];
8581
+ };
8582
+ itk_offerte_regels: {
8583
+ Row: {
8584
+ created_at: string;
8585
+ id: string;
8586
+ line_total_cents: number;
8587
+ offerte_id: string;
8588
+ omschrijving: string;
8589
+ package_id: string | null;
8590
+ quantity: number;
8591
+ sort_order: number;
8592
+ source: string;
8593
+ unit_price_cents: number;
8594
+ updated_at: string;
8595
+ };
8596
+ Insert: {
8597
+ created_at?: string;
8598
+ id?: string;
8599
+ line_total_cents?: number;
8600
+ offerte_id: string;
8601
+ omschrijving?: string;
8602
+ package_id?: string | null;
8603
+ quantity?: number;
8604
+ sort_order?: number;
8605
+ source?: string;
8606
+ unit_price_cents?: number;
8607
+ updated_at?: string;
8608
+ };
8609
+ Update: {
8610
+ created_at?: string;
8611
+ id?: string;
8612
+ line_total_cents?: number;
8613
+ offerte_id?: string;
8614
+ omschrijving?: string;
8615
+ package_id?: string | null;
8616
+ quantity?: number;
8617
+ sort_order?: number;
8618
+ source?: string;
8619
+ unit_price_cents?: number;
8620
+ updated_at?: string;
8621
+ };
8622
+ Relationships: [{
8623
+ foreignKeyName: "itk_offerte_regels_offerte_id_fkey";
8624
+ columns: ["offerte_id"];
8625
+ isOneToOne: false;
8626
+ referencedRelation: "itk_offertes";
8627
+ referencedColumns: ["id"];
8628
+ }, {
8629
+ foreignKeyName: "itk_offerte_regels_package_id_fkey";
8630
+ columns: ["package_id"];
8631
+ isOneToOne: false;
8632
+ referencedRelation: "werkbon_packages";
8633
+ referencedColumns: ["id"];
8634
+ }];
8635
+ };
8636
+ itk_offerte_settings: {
8637
+ Row: {
8638
+ auto_convert_binnen_mandaat: boolean;
8639
+ created_at: string;
8640
+ default_geldigheid_dagen: number;
8641
+ default_vat_rate: number;
8642
+ id: string;
8643
+ singleton: boolean;
8209
8644
  updated_at: string;
8210
8645
  };
8211
8646
  Insert: {
@@ -8966,6 +9401,27 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
8966
9401
  };
8967
9402
  Relationships: [];
8968
9403
  };
9404
+ logistics_cart_barcode: {
9405
+ Row: {
9406
+ barcode: string;
9407
+ cart_id: string;
9408
+ created_at: string;
9409
+ order_id: string | null;
9410
+ };
9411
+ Insert: {
9412
+ barcode: string;
9413
+ cart_id: string;
9414
+ created_at?: string;
9415
+ order_id?: string | null;
9416
+ };
9417
+ Update: {
9418
+ barcode?: string;
9419
+ cart_id?: string;
9420
+ created_at?: string;
9421
+ order_id?: string | null;
9422
+ };
9423
+ Relationships: [];
9424
+ };
8969
9425
  logistics_decisions: {
8970
9426
  Row: {
8971
9427
  created_at: string;
@@ -9794,6 +10250,36 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
9794
10250
  referencedColumns: ["id"];
9795
10251
  }];
9796
10252
  };
10253
+ logistics_shipping_note_scan: {
10254
+ Row: {
10255
+ barcode: string;
10256
+ cart_id: string;
10257
+ id: string;
10258
+ is_reprint: boolean;
10259
+ order_id: string | null;
10260
+ print_job_id: string | null;
10261
+ scanned_at: string;
10262
+ };
10263
+ Insert: {
10264
+ barcode: string;
10265
+ cart_id: string;
10266
+ id?: string;
10267
+ is_reprint?: boolean;
10268
+ order_id?: string | null;
10269
+ print_job_id?: string | null;
10270
+ scanned_at?: string;
10271
+ };
10272
+ Update: {
10273
+ barcode?: string;
10274
+ cart_id?: string;
10275
+ id?: string;
10276
+ is_reprint?: boolean;
10277
+ order_id?: string | null;
10278
+ print_job_id?: string | null;
10279
+ scanned_at?: string;
10280
+ };
10281
+ Relationships: [];
10282
+ };
9797
10283
  logistics_staff_planning: {
9798
10284
  Row: {
9799
10285
  created_at: string;
@@ -12615,6 +13101,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
12615
13101
  print_job_id: string | null;
12616
13102
  printed_at: string | null;
12617
13103
  printed_by: string | null;
13104
+ printed_cart_ids: import("./types").Json;
12618
13105
  printer_id: string | null;
12619
13106
  priority: number;
12620
13107
  reference: string | null;
@@ -12649,6 +13136,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
12649
13136
  print_job_id?: string | null;
12650
13137
  printed_at?: string | null;
12651
13138
  printed_by?: string | null;
13139
+ printed_cart_ids?: import("./types").Json;
12652
13140
  printer_id?: string | null;
12653
13141
  priority?: number;
12654
13142
  reference?: string | null;
@@ -12683,6 +13171,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
12683
13171
  print_job_id?: string | null;
12684
13172
  printed_at?: string | null;
12685
13173
  printed_by?: string | null;
13174
+ printed_cart_ids?: import("./types").Json;
12686
13175
  printer_id?: string | null;
12687
13176
  priority?: number;
12688
13177
  reference?: string | null;
@@ -13482,6 +13971,12 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
13482
13971
  isOneToOne: false;
13483
13972
  referencedRelation: "planning_items";
13484
13973
  referencedColumns: ["id"];
13974
+ }, {
13975
+ foreignKeyName: "planning_item_assistants_planning_item_id_fkey";
13976
+ columns: ["planning_item_id"];
13977
+ isOneToOne: false;
13978
+ referencedRelation: "planning_overview";
13979
+ referencedColumns: ["id"];
13485
13980
  }];
13486
13981
  };
13487
13982
  planning_items: {
@@ -13660,6 +14155,9 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
13660
14155
  is_herprint: boolean;
13661
14156
  kopieen: number;
13662
14157
  layout_id: string | null;
14158
+ lokaal_opgeslagen_op: string | null;
14159
+ lokale_pdf_fout: string | null;
14160
+ lokale_pdf_status: string | null;
13663
14161
  opgepakt_op: string | null;
13664
14162
  paginas: number;
13665
14163
  payload: import("./types").Json;
@@ -13668,6 +14166,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
13668
14166
  pogingen: number;
13669
14167
  printer_id: string | null;
13670
14168
  render_html: string | null;
14169
+ resultaat_pdf_base64: string | null;
13671
14170
  status: Database["public"]["Enums"]["print_job_status"];
13672
14171
  updated_at: string;
13673
14172
  volgende_poging: string | null;
@@ -13692,6 +14191,9 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
13692
14191
  is_herprint?: boolean;
13693
14192
  kopieen?: number;
13694
14193
  layout_id?: string | null;
14194
+ lokaal_opgeslagen_op?: string | null;
14195
+ lokale_pdf_fout?: string | null;
14196
+ lokale_pdf_status?: string | null;
13695
14197
  opgepakt_op?: string | null;
13696
14198
  paginas?: number;
13697
14199
  payload?: import("./types").Json;
@@ -13700,6 +14202,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
13700
14202
  pogingen?: number;
13701
14203
  printer_id?: string | null;
13702
14204
  render_html?: string | null;
14205
+ resultaat_pdf_base64?: string | null;
13703
14206
  status?: Database["public"]["Enums"]["print_job_status"];
13704
14207
  updated_at?: string;
13705
14208
  volgende_poging?: string | null;
@@ -13724,6 +14227,9 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
13724
14227
  is_herprint?: boolean;
13725
14228
  kopieen?: number;
13726
14229
  layout_id?: string | null;
14230
+ lokaal_opgeslagen_op?: string | null;
14231
+ lokale_pdf_fout?: string | null;
14232
+ lokale_pdf_status?: string | null;
13727
14233
  opgepakt_op?: string | null;
13728
14234
  paginas?: number;
13729
14235
  payload?: import("./types").Json;
@@ -13732,6 +14238,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
13732
14238
  pogingen?: number;
13733
14239
  printer_id?: string | null;
13734
14240
  render_html?: string | null;
14241
+ resultaat_pdf_base64?: string | null;
13735
14242
  status?: Database["public"]["Enums"]["print_job_status"];
13736
14243
  updated_at?: string;
13737
14244
  volgende_poging?: string | null;
@@ -14122,6 +14629,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
14122
14629
  ondersteunde_laden: import("./types").Json | null;
14123
14630
  online: boolean;
14124
14631
  papierformaat: string;
14632
+ pdf_map: string | null;
14125
14633
  poort: number | null;
14126
14634
  soort: Database["public"]["Enums"]["printer_kind"];
14127
14635
  systeemnaam: string;
@@ -14147,6 +14655,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
14147
14655
  ondersteunde_laden?: import("./types").Json | null;
14148
14656
  online?: boolean;
14149
14657
  papierformaat?: string;
14658
+ pdf_map?: string | null;
14150
14659
  poort?: number | null;
14151
14660
  soort?: Database["public"]["Enums"]["printer_kind"];
14152
14661
  systeemnaam?: string;
@@ -14172,6 +14681,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
14172
14681
  ondersteunde_laden?: import("./types").Json | null;
14173
14682
  online?: boolean;
14174
14683
  papierformaat?: string;
14684
+ pdf_map?: string | null;
14175
14685
  poort?: number | null;
14176
14686
  soort?: Database["public"]["Enums"]["printer_kind"];
14177
14687
  systeemnaam?: string;
@@ -15044,539 +15554,95 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
15044
15554
  referencedColumns: ["id"];
15045
15555
  }];
15046
15556
  };
15047
- quote_activities: {
15557
+ reception_notifications: {
15048
15558
  Row: {
15559
+ booking_id: string | null;
15049
15560
  created_at: string;
15050
- event_type: string;
15051
15561
  id: string;
15052
- metadata: import("./types").Json;
15053
- quote_id: string;
15054
- user_id: string | null;
15562
+ is_read: boolean;
15563
+ message: string;
15564
+ recipient_email: string | null;
15565
+ title: string;
15566
+ type: string;
15055
15567
  };
15056
15568
  Insert: {
15569
+ booking_id?: string | null;
15057
15570
  created_at?: string;
15058
- event_type: string;
15059
15571
  id?: string;
15060
- metadata?: import("./types").Json;
15061
- quote_id: string;
15062
- user_id?: string | null;
15572
+ is_read?: boolean;
15573
+ message: string;
15574
+ recipient_email?: string | null;
15575
+ title: string;
15576
+ type: string;
15063
15577
  };
15064
15578
  Update: {
15579
+ booking_id?: string | null;
15065
15580
  created_at?: string;
15066
- event_type?: string;
15067
15581
  id?: string;
15068
- metadata?: import("./types").Json;
15069
- quote_id?: string;
15070
- user_id?: string | null;
15582
+ is_read?: boolean;
15583
+ message?: string;
15584
+ recipient_email?: string | null;
15585
+ title?: string;
15586
+ type?: string;
15071
15587
  };
15072
15588
  Relationships: [{
15073
- foreignKeyName: "quote_activities_quote_id_fkey";
15074
- columns: ["quote_id"];
15589
+ foreignKeyName: "reception_notifications_booking_id_fkey";
15590
+ columns: ["booking_id"];
15075
15591
  isOneToOne: false;
15076
- referencedRelation: "quotes";
15592
+ referencedRelation: "bookings";
15077
15593
  referencedColumns: ["id"];
15078
15594
  }];
15079
15595
  };
15080
- quote_attachments: {
15596
+ role_assignments: {
15081
15597
  Row: {
15082
15598
  created_at: string;
15083
- file_name: string;
15084
- file_size: number | null;
15085
- file_url: string;
15086
15599
  id: string;
15087
- mime_type: string | null;
15088
- quote_id: string;
15600
+ role_id: string;
15601
+ user_id: string;
15089
15602
  };
15090
15603
  Insert: {
15091
15604
  created_at?: string;
15092
- file_name: string;
15093
- file_size?: number | null;
15094
- file_url: string;
15095
15605
  id?: string;
15096
- mime_type?: string | null;
15097
- quote_id: string;
15606
+ role_id: string;
15607
+ user_id: string;
15098
15608
  };
15099
15609
  Update: {
15100
15610
  created_at?: string;
15101
- file_name?: string;
15102
- file_size?: number | null;
15103
- file_url?: string;
15104
15611
  id?: string;
15105
- mime_type?: string | null;
15106
- quote_id?: string;
15612
+ role_id?: string;
15613
+ user_id?: string;
15107
15614
  };
15108
15615
  Relationships: [{
15109
- foreignKeyName: "quote_attachments_quote_id_fkey";
15110
- columns: ["quote_id"];
15616
+ foreignKeyName: "role_assignments_role_id_fkey";
15617
+ columns: ["role_id"];
15111
15618
  isOneToOne: false;
15112
- referencedRelation: "quotes";
15619
+ referencedRelation: "roles";
15113
15620
  referencedColumns: ["id"];
15114
15621
  }];
15115
15622
  };
15116
- quote_field_options: {
15623
+ role_permissions: {
15117
15624
  Row: {
15118
- created_at: string;
15119
- field_id: string;
15625
+ can_edit: boolean;
15626
+ can_view: boolean;
15627
+ feature_id: string;
15120
15628
  id: string;
15121
- label: string;
15122
- sort_order: number;
15123
- value: string;
15629
+ module_id: string;
15630
+ role_id: string;
15631
+ updated_at: string;
15124
15632
  };
15125
15633
  Insert: {
15126
- created_at?: string;
15127
- field_id: string;
15634
+ can_edit?: boolean;
15635
+ can_view?: boolean;
15636
+ feature_id?: string;
15128
15637
  id?: string;
15129
- label: string;
15130
- sort_order?: number;
15131
- value: string;
15638
+ module_id: string;
15639
+ role_id: string;
15640
+ updated_at?: string;
15132
15641
  };
15133
15642
  Update: {
15134
- created_at?: string;
15135
- field_id?: string;
15136
- id?: string;
15137
- label?: string;
15138
- sort_order?: number;
15139
- value?: string;
15140
- };
15141
- Relationships: [{
15142
- foreignKeyName: "quote_field_options_field_id_fkey";
15143
- columns: ["field_id"];
15144
- isOneToOne: false;
15145
- referencedRelation: "quote_field_settings";
15146
- referencedColumns: ["id"];
15147
- }];
15148
- };
15149
- quote_field_settings: {
15150
- Row: {
15151
- created_at: string;
15152
- default_value: string | null;
15153
- field_key: string;
15154
- field_type: string;
15155
- id: string;
15156
- is_system: boolean;
15157
- label: string;
15158
- required: boolean;
15159
- sort_order: number;
15160
- updated_at: string;
15161
- visible: boolean;
15162
- };
15163
- Insert: {
15164
- created_at?: string;
15165
- default_value?: string | null;
15166
- field_key: string;
15167
- field_type: string;
15168
- id?: string;
15169
- is_system?: boolean;
15170
- label: string;
15171
- required?: boolean;
15172
- sort_order?: number;
15173
- updated_at?: string;
15174
- visible?: boolean;
15175
- };
15176
- Update: {
15177
- created_at?: string;
15178
- default_value?: string | null;
15179
- field_key?: string;
15180
- field_type?: string;
15181
- id?: string;
15182
- is_system?: boolean;
15183
- label?: string;
15184
- required?: boolean;
15185
- sort_order?: number;
15186
- updated_at?: string;
15187
- visible?: boolean;
15188
- };
15189
- Relationships: [];
15190
- };
15191
- quote_items: {
15192
- Row: {
15193
- category: string | null;
15194
- created_at: string;
15195
- description: string;
15196
- id: string;
15197
- line_total: number;
15198
- module_id: string | null;
15199
- name: string | null;
15200
- quantity: number;
15201
- quote_id: string;
15202
- sort_order: number;
15203
- unit_price: number;
15204
- };
15205
- Insert: {
15206
- category?: string | null;
15207
- created_at?: string;
15208
- description?: string;
15209
- id?: string;
15210
- line_total?: number;
15211
- module_id?: string | null;
15212
- name?: string | null;
15213
- quantity?: number;
15214
- quote_id: string;
15215
- sort_order?: number;
15216
- unit_price?: number;
15217
- };
15218
- Update: {
15219
- category?: string | null;
15220
- created_at?: string;
15221
- description?: string;
15222
- id?: string;
15223
- line_total?: number;
15224
- module_id?: string | null;
15225
- name?: string | null;
15226
- quantity?: number;
15227
- quote_id?: string;
15228
- sort_order?: number;
15229
- unit_price?: number;
15230
- };
15231
- Relationships: [{
15232
- foreignKeyName: "quote_items_module_id_fkey";
15233
- columns: ["module_id"];
15234
- isOneToOne: false;
15235
- referencedRelation: "quote_modules";
15236
- referencedColumns: ["id"];
15237
- }, {
15238
- foreignKeyName: "quote_items_quote_id_fkey";
15239
- columns: ["quote_id"];
15240
- isOneToOne: false;
15241
- referencedRelation: "quotes";
15242
- referencedColumns: ["id"];
15243
- }];
15244
- };
15245
- quote_modules: {
15246
- Row: {
15247
- category: string | null;
15248
- created_at: string;
15249
- description: string | null;
15250
- id: string;
15251
- is_active: boolean;
15252
- name: string;
15253
- price: number;
15254
- sort_order: number;
15255
- updated_at: string;
15256
- };
15257
- Insert: {
15258
- category?: string | null;
15259
- created_at?: string;
15260
- description?: string | null;
15261
- id?: string;
15262
- is_active?: boolean;
15263
- name: string;
15264
- price?: number;
15265
- sort_order?: number;
15266
- updated_at?: string;
15267
- };
15268
- Update: {
15269
- category?: string | null;
15270
- created_at?: string;
15271
- description?: string | null;
15272
- id?: string;
15273
- is_active?: boolean;
15274
- name?: string;
15275
- price?: number;
15276
- sort_order?: number;
15277
- updated_at?: string;
15278
- };
15279
- Relationships: [];
15280
- };
15281
- quote_templates: {
15282
- Row: {
15283
- created_at: string;
15284
- description: string | null;
15285
- field_values: import("./types").Json;
15286
- id: string;
15287
- is_default: boolean;
15288
- items: import("./types").Json;
15289
- name: string;
15290
- updated_at: string;
15291
- vat_rate: number;
15292
- };
15293
- Insert: {
15294
- created_at?: string;
15295
- description?: string | null;
15296
- field_values?: import("./types").Json;
15297
- id?: string;
15298
- is_default?: boolean;
15299
- items?: import("./types").Json;
15300
- name: string;
15301
- updated_at?: string;
15302
- vat_rate?: number;
15303
- };
15304
- Update: {
15305
- created_at?: string;
15306
- description?: string | null;
15307
- field_values?: import("./types").Json;
15308
- id?: string;
15309
- is_default?: boolean;
15310
- items?: import("./types").Json;
15311
- name?: string;
15312
- updated_at?: string;
15313
- vat_rate?: number;
15314
- };
15315
- Relationships: [];
15316
- };
15317
- quote_terms: {
15318
- Row: {
15319
- content: string | null;
15320
- created_at: string;
15321
- file_url: string | null;
15322
- id: string;
15323
- is_active: boolean;
15324
- name: string;
15325
- published_at: string | null;
15326
- updated_at: string;
15327
- version: string;
15328
- };
15329
- Insert: {
15330
- content?: string | null;
15331
- created_at?: string;
15332
- file_url?: string | null;
15333
- id?: string;
15334
- is_active?: boolean;
15335
- name: string;
15336
- published_at?: string | null;
15337
- updated_at?: string;
15338
- version?: string;
15339
- };
15340
- Update: {
15341
- content?: string | null;
15342
- created_at?: string;
15343
- file_url?: string | null;
15344
- id?: string;
15345
- is_active?: boolean;
15346
- name?: string;
15347
- published_at?: string | null;
15348
- updated_at?: string;
15349
- version?: string;
15350
- };
15351
- Relationships: [];
15352
- };
15353
- quotes: {
15354
- Row: {
15355
- accepted_at: string | null;
15356
- archived_at: string | null;
15357
- contact_id: string | null;
15358
- created_at: string;
15359
- customer_id: string | null;
15360
- discount: number;
15361
- expires_at: string | null;
15362
- field_values: import("./types").Json;
15363
- id: string;
15364
- notes: string | null;
15365
- owner_id: string | null;
15366
- personal_message: string | null;
15367
- project_id: string | null;
15368
- prospect_id: string | null;
15369
- public_token: string;
15370
- quote_number: string | null;
15371
- recipient_email: string | null;
15372
- recipient_name: string | null;
15373
- rejected_at: string | null;
15374
- sent_at: string | null;
15375
- status: string;
15376
- subtotal: number;
15377
- template_id: string | null;
15378
- terms_id: string | null;
15379
- title: string;
15380
- total: number;
15381
- updated_at: string;
15382
- valid_until: string | null;
15383
- vat_amount: number;
15384
- vat_rate: number;
15385
- viewed_at: string | null;
15386
- };
15387
- Insert: {
15388
- accepted_at?: string | null;
15389
- archived_at?: string | null;
15390
- contact_id?: string | null;
15391
- created_at?: string;
15392
- customer_id?: string | null;
15393
- discount?: number;
15394
- expires_at?: string | null;
15395
- field_values?: import("./types").Json;
15396
- id?: string;
15397
- notes?: string | null;
15398
- owner_id?: string | null;
15399
- personal_message?: string | null;
15400
- project_id?: string | null;
15401
- prospect_id?: string | null;
15402
- public_token?: string;
15403
- quote_number?: string | null;
15404
- recipient_email?: string | null;
15405
- recipient_name?: string | null;
15406
- rejected_at?: string | null;
15407
- sent_at?: string | null;
15408
- status?: string;
15409
- subtotal?: number;
15410
- template_id?: string | null;
15411
- terms_id?: string | null;
15412
- title?: string;
15413
- total?: number;
15414
- updated_at?: string;
15415
- valid_until?: string | null;
15416
- vat_amount?: number;
15417
- vat_rate?: number;
15418
- viewed_at?: string | null;
15419
- };
15420
- Update: {
15421
- accepted_at?: string | null;
15422
- archived_at?: string | null;
15423
- contact_id?: string | null;
15424
- created_at?: string;
15425
- customer_id?: string | null;
15426
- discount?: number;
15427
- expires_at?: string | null;
15428
- field_values?: import("./types").Json;
15429
- id?: string;
15430
- notes?: string | null;
15431
- owner_id?: string | null;
15432
- personal_message?: string | null;
15433
- project_id?: string | null;
15434
- prospect_id?: string | null;
15435
- public_token?: string;
15436
- quote_number?: string | null;
15437
- recipient_email?: string | null;
15438
- recipient_name?: string | null;
15439
- rejected_at?: string | null;
15440
- sent_at?: string | null;
15441
- status?: string;
15442
- subtotal?: number;
15443
- template_id?: string | null;
15444
- terms_id?: string | null;
15445
- title?: string;
15446
- total?: number;
15447
- updated_at?: string;
15448
- valid_until?: string | null;
15449
- vat_amount?: number;
15450
- vat_rate?: number;
15451
- viewed_at?: string | null;
15452
- };
15453
- Relationships: [{
15454
- foreignKeyName: "quotes_contact_id_fkey";
15455
- columns: ["contact_id"];
15456
- isOneToOne: false;
15457
- referencedRelation: "customer_contacts";
15458
- referencedColumns: ["id"];
15459
- }, {
15460
- foreignKeyName: "quotes_customer_id_fkey";
15461
- columns: ["customer_id"];
15462
- isOneToOne: false;
15463
- referencedRelation: "customers";
15464
- referencedColumns: ["id"];
15465
- }, {
15466
- foreignKeyName: "quotes_project_id_fkey";
15467
- columns: ["project_id"];
15468
- isOneToOne: false;
15469
- referencedRelation: "projects";
15470
- referencedColumns: ["id"];
15471
- }, {
15472
- foreignKeyName: "quotes_prospect_id_fkey";
15473
- columns: ["prospect_id"];
15474
- isOneToOne: false;
15475
- referencedRelation: "prospects";
15476
- referencedColumns: ["id"];
15477
- }, {
15478
- foreignKeyName: "quotes_template_id_fkey";
15479
- columns: ["template_id"];
15480
- isOneToOne: false;
15481
- referencedRelation: "quote_templates";
15482
- referencedColumns: ["id"];
15483
- }, {
15484
- foreignKeyName: "quotes_terms_id_fkey";
15485
- columns: ["terms_id"];
15486
- isOneToOne: false;
15487
- referencedRelation: "quote_terms";
15488
- referencedColumns: ["id"];
15489
- }];
15490
- };
15491
- reception_notifications: {
15492
- Row: {
15493
- booking_id: string | null;
15494
- created_at: string;
15495
- id: string;
15496
- is_read: boolean;
15497
- message: string;
15498
- recipient_email: string | null;
15499
- title: string;
15500
- type: string;
15501
- };
15502
- Insert: {
15503
- booking_id?: string | null;
15504
- created_at?: string;
15505
- id?: string;
15506
- is_read?: boolean;
15507
- message: string;
15508
- recipient_email?: string | null;
15509
- title: string;
15510
- type: string;
15511
- };
15512
- Update: {
15513
- booking_id?: string | null;
15514
- created_at?: string;
15515
- id?: string;
15516
- is_read?: boolean;
15517
- message?: string;
15518
- recipient_email?: string | null;
15519
- title?: string;
15520
- type?: string;
15521
- };
15522
- Relationships: [{
15523
- foreignKeyName: "reception_notifications_booking_id_fkey";
15524
- columns: ["booking_id"];
15525
- isOneToOne: false;
15526
- referencedRelation: "bookings";
15527
- referencedColumns: ["id"];
15528
- }];
15529
- };
15530
- role_assignments: {
15531
- Row: {
15532
- created_at: string;
15533
- id: string;
15534
- role_id: string;
15535
- user_id: string;
15536
- };
15537
- Insert: {
15538
- created_at?: string;
15539
- id?: string;
15540
- role_id: string;
15541
- user_id: string;
15542
- };
15543
- Update: {
15544
- created_at?: string;
15545
- id?: string;
15546
- role_id?: string;
15547
- user_id?: string;
15548
- };
15549
- Relationships: [{
15550
- foreignKeyName: "role_assignments_role_id_fkey";
15551
- columns: ["role_id"];
15552
- isOneToOne: false;
15553
- referencedRelation: "roles";
15554
- referencedColumns: ["id"];
15555
- }];
15556
- };
15557
- role_permissions: {
15558
- Row: {
15559
- can_edit: boolean;
15560
- can_view: boolean;
15561
- feature_id: string;
15562
- id: string;
15563
- module_id: string;
15564
- role_id: string;
15565
- updated_at: string;
15566
- };
15567
- Insert: {
15568
- can_edit?: boolean;
15569
- can_view?: boolean;
15570
- feature_id?: string;
15571
- id?: string;
15572
- module_id: string;
15573
- role_id: string;
15574
- updated_at?: string;
15575
- };
15576
- Update: {
15577
- can_edit?: boolean;
15578
- can_view?: boolean;
15579
- feature_id?: string;
15643
+ can_edit?: boolean;
15644
+ can_view?: boolean;
15645
+ feature_id?: string;
15580
15646
  id?: string;
15581
15647
  module_id?: string;
15582
15648
  role_id?: string;
@@ -16609,7 +16675,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
16609
16675
  foreignKeyName: "time_logs_work_order_id_fkey";
16610
16676
  columns: ["work_order_id"];
16611
16677
  isOneToOne: false;
16612
- referencedRelation: "work_orders";
16678
+ referencedRelation: "werkbonnen";
16613
16679
  referencedColumns: ["id"];
16614
16680
  }];
16615
16681
  };
@@ -16741,6 +16807,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
16741
16807
  };
16742
16808
  trade_item_stock: {
16743
16809
  Row: {
16810
+ change_source: string;
16744
16811
  connection_id: string;
16745
16812
  created_at: string;
16746
16813
  id: string;
@@ -16754,6 +16821,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
16754
16821
  user_id: string;
16755
16822
  };
16756
16823
  Insert: {
16824
+ change_source?: string;
16757
16825
  connection_id: string;
16758
16826
  created_at?: string;
16759
16827
  id?: string;
@@ -16767,6 +16835,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
16767
16835
  user_id: string;
16768
16836
  };
16769
16837
  Update: {
16838
+ change_source?: string;
16770
16839
  connection_id?: string;
16771
16840
  created_at?: string;
16772
16841
  id?: string;
@@ -17863,229 +17932,79 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
17863
17932
  monteur_id: string;
17864
17933
  note: string | null;
17865
17934
  source: string;
17866
- travel_km: number;
17867
- updated_at: string;
17868
- werkbon_id: string | null;
17869
- };
17870
- Insert: {
17871
- created_at?: string;
17872
- created_by?: string | null;
17873
- entry_date: string;
17874
- hours?: number;
17875
- id?: string;
17876
- kind?: string;
17877
- monteur_id: string;
17878
- note?: string | null;
17879
- source?: string;
17880
- travel_km?: number;
17881
- updated_at?: string;
17882
- werkbon_id?: string | null;
17883
- };
17884
- Update: {
17885
- created_at?: string;
17886
- created_by?: string | null;
17887
- entry_date?: string;
17888
- hours?: number;
17889
- id?: string;
17890
- kind?: string;
17891
- monteur_id?: string;
17892
- note?: string | null;
17893
- source?: string;
17894
- travel_km?: number;
17895
- updated_at?: string;
17896
- werkbon_id?: string | null;
17897
- };
17898
- Relationships: [{
17899
- foreignKeyName: "uren_entries_werkbon_id_fkey";
17900
- columns: ["werkbon_id"];
17901
- isOneToOne: false;
17902
- referencedRelation: "werkbonnen";
17903
- referencedColumns: ["id"];
17904
- }];
17905
- };
17906
- uren_exports: {
17907
- Row: {
17908
- created_at: string;
17909
- created_by: string | null;
17910
- file_name: string | null;
17911
- id: string;
17912
- monteur_ids: string[];
17913
- period_end: string;
17914
- period_start: string;
17915
- row_count: number;
17916
- };
17917
- Insert: {
17918
- created_at?: string;
17919
- created_by?: string | null;
17920
- file_name?: string | null;
17921
- id?: string;
17922
- monteur_ids?: string[];
17923
- period_end: string;
17924
- period_start: string;
17925
- row_count?: number;
17926
- };
17927
- Update: {
17928
- created_at?: string;
17929
- created_by?: string | null;
17930
- file_name?: string | null;
17931
- id?: string;
17932
- monteur_ids?: string[];
17933
- period_end?: string;
17934
- period_start?: string;
17935
- row_count?: number;
17936
- };
17937
- Relationships: [];
17938
- };
17939
- uren_offerte_regels: {
17940
- Row: {
17941
- created_at: string;
17942
- description: string;
17943
- duration_minutes: number;
17944
- id: string;
17945
- offerte_id: string;
17946
- package_id: string | null;
17947
- quantity: number;
17948
- sort_order: number;
17949
- total_cents: number;
17950
- unit_price_cents: number;
17951
- };
17952
- Insert: {
17953
- created_at?: string;
17954
- description: string;
17955
- duration_minutes?: number;
17956
- id?: string;
17957
- offerte_id: string;
17958
- package_id?: string | null;
17959
- quantity?: number;
17960
- sort_order?: number;
17961
- total_cents?: number;
17962
- unit_price_cents?: number;
17963
- };
17964
- Update: {
17965
- created_at?: string;
17966
- description?: string;
17967
- duration_minutes?: number;
17968
- id?: string;
17969
- offerte_id?: string;
17970
- package_id?: string | null;
17971
- quantity?: number;
17972
- sort_order?: number;
17973
- total_cents?: number;
17974
- unit_price_cents?: number;
17975
- };
17976
- Relationships: [{
17977
- foreignKeyName: "uren_offerte_regels_offerte_id_fkey";
17978
- columns: ["offerte_id"];
17979
- isOneToOne: false;
17980
- referencedRelation: "uren_offertes";
17981
- referencedColumns: ["id"];
17982
- }, {
17983
- foreignKeyName: "uren_offerte_regels_package_id_fkey";
17984
- columns: ["package_id"];
17985
- isOneToOne: false;
17986
- referencedRelation: "werkbon_packages";
17987
- referencedColumns: ["id"];
17988
- }];
17989
- };
17990
- uren_offerte_velden: {
17991
- Row: {
17992
- created_at: string;
17993
- field_type: string;
17994
- id: string;
17995
- key: string;
17996
- label: string;
17997
- options: string[];
17998
- required: boolean;
17999
- sort_order: number;
18000
- updated_at: string;
18001
- };
18002
- Insert: {
18003
- created_at?: string;
18004
- field_type?: string;
18005
- id?: string;
18006
- key: string;
18007
- label: string;
18008
- options?: string[];
18009
- required?: boolean;
18010
- sort_order?: number;
18011
- updated_at?: string;
18012
- };
18013
- Update: {
18014
- created_at?: string;
18015
- field_type?: string;
18016
- id?: string;
18017
- key?: string;
18018
- label?: string;
18019
- options?: string[];
18020
- required?: boolean;
18021
- sort_order?: number;
18022
- updated_at?: string;
18023
- };
18024
- Relationships: [];
18025
- };
18026
- uren_offertes: {
18027
- Row: {
18028
- created_at: string;
18029
- created_by: string | null;
18030
- customer_id: string | null;
18031
- customer_name: string | null;
18032
- dynamic_fields: import("./types").Json;
18033
- estimated_minutes: number;
18034
- id: string;
18035
- note: string | null;
18036
- quote_number: string | null;
18037
- status: string;
18038
- title: string;
18039
- total_excl_cents: number;
18040
- total_incl_cents: number;
17935
+ travel_km: number;
18041
17936
  updated_at: string;
18042
- valid_until: string | null;
18043
- vat_percentage: number;
17937
+ werkbon_id: string | null;
18044
17938
  };
18045
17939
  Insert: {
18046
17940
  created_at?: string;
18047
17941
  created_by?: string | null;
18048
- customer_id?: string | null;
18049
- customer_name?: string | null;
18050
- dynamic_fields?: import("./types").Json;
18051
- estimated_minutes?: number;
17942
+ entry_date: string;
17943
+ hours?: number;
18052
17944
  id?: string;
17945
+ kind?: string;
17946
+ monteur_id: string;
18053
17947
  note?: string | null;
18054
- quote_number?: string | null;
18055
- status?: string;
18056
- title?: string;
18057
- total_excl_cents?: number;
18058
- total_incl_cents?: number;
17948
+ source?: string;
17949
+ travel_km?: number;
18059
17950
  updated_at?: string;
18060
- valid_until?: string | null;
18061
- vat_percentage?: number;
17951
+ werkbon_id?: string | null;
18062
17952
  };
18063
17953
  Update: {
18064
17954
  created_at?: string;
18065
17955
  created_by?: string | null;
18066
- customer_id?: string | null;
18067
- customer_name?: string | null;
18068
- dynamic_fields?: import("./types").Json;
18069
- estimated_minutes?: number;
17956
+ entry_date?: string;
17957
+ hours?: number;
18070
17958
  id?: string;
17959
+ kind?: string;
17960
+ monteur_id?: string;
18071
17961
  note?: string | null;
18072
- quote_number?: string | null;
18073
- status?: string;
18074
- title?: string;
18075
- total_excl_cents?: number;
18076
- total_incl_cents?: number;
17962
+ source?: string;
17963
+ travel_km?: number;
18077
17964
  updated_at?: string;
18078
- valid_until?: string | null;
18079
- vat_percentage?: number;
17965
+ werkbon_id?: string | null;
18080
17966
  };
18081
17967
  Relationships: [{
18082
- foreignKeyName: "uren_offertes_customer_id_fkey";
18083
- columns: ["customer_id"];
17968
+ foreignKeyName: "uren_entries_werkbon_id_fkey";
17969
+ columns: ["werkbon_id"];
18084
17970
  isOneToOne: false;
18085
- referencedRelation: "itk_customers";
17971
+ referencedRelation: "werkbonnen";
18086
17972
  referencedColumns: ["id"];
18087
17973
  }];
18088
17974
  };
17975
+ uren_exports: {
17976
+ Row: {
17977
+ created_at: string;
17978
+ created_by: string | null;
17979
+ file_name: string | null;
17980
+ id: string;
17981
+ monteur_ids: string[];
17982
+ period_end: string;
17983
+ period_start: string;
17984
+ row_count: number;
17985
+ };
17986
+ Insert: {
17987
+ created_at?: string;
17988
+ created_by?: string | null;
17989
+ file_name?: string | null;
17990
+ id?: string;
17991
+ monteur_ids?: string[];
17992
+ period_end: string;
17993
+ period_start: string;
17994
+ row_count?: number;
17995
+ };
17996
+ Update: {
17997
+ created_at?: string;
17998
+ created_by?: string | null;
17999
+ file_name?: string | null;
18000
+ id?: string;
18001
+ monteur_ids?: string[];
18002
+ period_end?: string;
18003
+ period_start?: string;
18004
+ row_count?: number;
18005
+ };
18006
+ Relationships: [];
18007
+ };
18089
18008
  uren_settings: {
18090
18009
  Row: {
18091
18010
  break_minutes: number;
@@ -19772,6 +19691,37 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
19772
19691
  };
19773
19692
  Relationships: [];
19774
19693
  };
19694
+ planning_overview: {
19695
+ Row: {
19696
+ assigned_monteur_id: string | null;
19697
+ assistants: import("./types").Json | null;
19698
+ budget_mandate_cents: number | null;
19699
+ created_at: string | null;
19700
+ created_by: string | null;
19701
+ customer_id: string | null;
19702
+ customer_name: string | null;
19703
+ duration_minutes: number | null;
19704
+ end_at: string | null;
19705
+ id: string | null;
19706
+ needs_detail_review: boolean | null;
19707
+ notes: string | null;
19708
+ project_number: string | null;
19709
+ review_reasons: string[] | null;
19710
+ start_at: string | null;
19711
+ status: Database["public"]["Enums"]["planning_item_status"] | null;
19712
+ updated_at: string | null;
19713
+ viewer_role: string | null;
19714
+ werkbon_id: string | null;
19715
+ work_address: string | null;
19716
+ };
19717
+ Relationships: [{
19718
+ foreignKeyName: "planning_items_werkbon_id_fkey";
19719
+ columns: ["werkbon_id"];
19720
+ isOneToOne: false;
19721
+ referencedRelation: "werkbonnen";
19722
+ referencedColumns: ["id"];
19723
+ }];
19724
+ };
19775
19725
  product_group_stock_view: {
19776
19726
  Row: {
19777
19727
  item_count: number | null;
@@ -20367,6 +20317,18 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
20367
20317
  Args: never;
20368
20318
  Returns: number;
20369
20319
  };
20320
+ calculate_floriday_desired_stock: {
20321
+ Args: {
20322
+ p_connection_id: string;
20323
+ p_product_id: string;
20324
+ };
20325
+ Returns: {
20326
+ desired_availability: boolean;
20327
+ desired_quantity: number;
20328
+ erp_available: number;
20329
+ stock_mode: string;
20330
+ }[];
20331
+ };
20370
20332
  calculate_layer_stock: {
20371
20333
  Args: {
20372
20334
  p_product_id: string;
@@ -20428,6 +20390,9 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
20428
20390
  is_herprint: boolean;
20429
20391
  kopieen: number;
20430
20392
  layout_id: string | null;
20393
+ lokaal_opgeslagen_op: string | null;
20394
+ lokale_pdf_fout: string | null;
20395
+ lokale_pdf_status: string | null;
20431
20396
  opgepakt_op: string | null;
20432
20397
  paginas: number;
20433
20398
  payload: import("./types").Json;
@@ -20436,6 +20401,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
20436
20401
  pogingen: number;
20437
20402
  printer_id: string | null;
20438
20403
  render_html: string | null;
20404
+ resultaat_pdf_base64: string | null;
20439
20405
  status: Database["public"]["Enums"]["print_job_status"];
20440
20406
  updated_at: string;
20441
20407
  volgende_poging: string | null;
@@ -20457,6 +20423,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
20457
20423
  attempts: number;
20458
20424
  connection_id: string;
20459
20425
  created_at: string;
20426
+ dead_lettered_at: string | null;
20460
20427
  desired_available: boolean | null;
20461
20428
  gateway_attempt_id: string | null;
20462
20429
  id: string;
@@ -20465,9 +20432,13 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
20465
20432
  locked_by: string | null;
20466
20433
  next_attempt_at: string;
20467
20434
  number_of_pieces: number;
20435
+ product_id: string | null;
20468
20436
  sent_at: string | null;
20469
20437
  status: string;
20438
+ stock_mode: string | null;
20470
20439
  superseded_by: string | null;
20440
+ target_week: number | null;
20441
+ target_year: number | null;
20471
20442
  trade_item_id: string;
20472
20443
  updated_at: string;
20473
20444
  user_id: string;
@@ -20527,6 +20498,53 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
20527
20498
  isSetofReturn: true;
20528
20499
  };
20529
20500
  };
20501
+ claim_pdf_print_jobs: {
20502
+ Args: {
20503
+ _max?: number;
20504
+ };
20505
+ Returns: {
20506
+ agent_id: string | null;
20507
+ bron_job_id: string | null;
20508
+ created_at: string;
20509
+ documentnaam: string;
20510
+ documenttype: Database["public"]["Enums"]["doc_layout_type"];
20511
+ extern_job_id: string | null;
20512
+ foutmelding: string | null;
20513
+ gebruiker_id: string | null;
20514
+ gebruiker_naam: string;
20515
+ gebruikte_bron: string | null;
20516
+ gebruikte_layout_id: string | null;
20517
+ gestart_op: string | null;
20518
+ herkomst: string | null;
20519
+ id: string;
20520
+ idempotentie_sleutel: string | null;
20521
+ is_herprint: boolean;
20522
+ kopieen: number;
20523
+ layout_id: string | null;
20524
+ lokaal_opgeslagen_op: string | null;
20525
+ lokale_pdf_fout: string | null;
20526
+ lokale_pdf_status: string | null;
20527
+ opgepakt_op: string | null;
20528
+ paginas: number;
20529
+ payload: import("./types").Json;
20530
+ pdf_base64: string | null;
20531
+ pdf_url: string | null;
20532
+ pogingen: number;
20533
+ printer_id: string | null;
20534
+ render_html: string | null;
20535
+ resultaat_pdf_base64: string | null;
20536
+ status: Database["public"]["Enums"]["print_job_status"];
20537
+ updated_at: string;
20538
+ volgende_poging: string | null;
20539
+ voltooid_op: string | null;
20540
+ }[];
20541
+ SetofOptions: {
20542
+ from: "*";
20543
+ to: "print_jobs";
20544
+ isOneToOne: false;
20545
+ isSetofReturn: true;
20546
+ };
20547
+ };
20530
20548
  claim_print_jobs: {
20531
20549
  Args: {
20532
20550
  _agent_id: string;
@@ -20551,6 +20569,9 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
20551
20569
  is_herprint: boolean;
20552
20570
  kopieen: number;
20553
20571
  layout_id: string | null;
20572
+ lokaal_opgeslagen_op: string | null;
20573
+ lokale_pdf_fout: string | null;
20574
+ lokale_pdf_status: string | null;
20554
20575
  opgepakt_op: string | null;
20555
20576
  paginas: number;
20556
20577
  payload: import("./types").Json;
@@ -20559,6 +20580,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
20559
20580
  pogingen: number;
20560
20581
  printer_id: string | null;
20561
20582
  render_html: string | null;
20583
+ resultaat_pdf_base64: string | null;
20562
20584
  status: Database["public"]["Enums"]["print_job_status"];
20563
20585
  updated_at: string;
20564
20586
  volgende_poging: string | null;
@@ -20699,6 +20721,8 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
20699
20721
  order_id: string;
20700
20722
  order_source: string;
20701
20723
  pick_date: string;
20724
+ printed_at: string;
20725
+ printed_today: boolean;
20702
20726
  status: string;
20703
20727
  }[];
20704
20728
  };
@@ -20895,6 +20919,24 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
20895
20919
  };
20896
20920
  Returns: string;
20897
20921
  };
20922
+ floriday_capture_stock_snapshot: {
20923
+ Args: never;
20924
+ Returns: number;
20925
+ };
20926
+ floriday_cleanup_stock_queue_v2: {
20927
+ Args: never;
20928
+ Returns: undefined;
20929
+ };
20930
+ floriday_compact_stock_snapshots: {
20931
+ Args: never;
20932
+ Returns: undefined;
20933
+ };
20934
+ floriday_default_owner: {
20935
+ Args: {
20936
+ p_connection_id: string;
20937
+ };
20938
+ Returns: string;
20939
+ };
20898
20940
  floriday_effective_price: {
20899
20941
  Args: {
20900
20942
  _buyer_id: string;
@@ -20912,6 +20954,34 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
20912
20954
  source_id: string;
20913
20955
  }[];
20914
20956
  };
20957
+ floriday_fill_publish_horizon: {
20958
+ Args: never;
20959
+ Returns: number;
20960
+ };
20961
+ floriday_ingest_sales_orders: {
20962
+ Args: {
20963
+ p_limit?: number;
20964
+ };
20965
+ Returns: number;
20966
+ };
20967
+ floriday_publish_horizon_weeks: {
20968
+ Args: never;
20969
+ Returns: number;
20970
+ };
20971
+ floriday_recompute_inventory: {
20972
+ Args: {
20973
+ p_connection_id: string;
20974
+ p_force?: boolean;
20975
+ p_product_id: string;
20976
+ };
20977
+ Returns: undefined;
20978
+ };
20979
+ floriday_requeue_dead_letters: {
20980
+ Args: {
20981
+ p_connection_id?: string;
20982
+ };
20983
+ Returns: number;
20984
+ };
20915
20985
  format_cart_number: {
20916
20986
  Args: {
20917
20987
  p_pick_date: string;
@@ -21128,6 +21198,131 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
21128
21198
  Args: never;
21129
21199
  Returns: string;
21130
21200
  };
21201
+ handover_get: {
21202
+ Args: {
21203
+ _module_id: string;
21204
+ };
21205
+ Returns: import("./types").Json;
21206
+ };
21207
+ handover_kern_naam: {
21208
+ Args: {
21209
+ _naam: string;
21210
+ };
21211
+ Returns: string;
21212
+ };
21213
+ handover_ketenmodel: {
21214
+ Args: never;
21215
+ Returns: import("./types").Json;
21216
+ };
21217
+ handover_kruisconflicten: {
21218
+ Args: never;
21219
+ Returns: import("./types").Json;
21220
+ };
21221
+ handover_list: {
21222
+ Args: never;
21223
+ Returns: import("./types").Json;
21224
+ };
21225
+ handover_mag_schrijven: {
21226
+ Args: {
21227
+ _module_id: string;
21228
+ };
21229
+ Returns: boolean;
21230
+ };
21231
+ handover_norm_naam: {
21232
+ Args: {
21233
+ _naam: string;
21234
+ };
21235
+ Returns: string;
21236
+ };
21237
+ handover_publish: {
21238
+ Args: {
21239
+ _bevindingen?: string;
21240
+ _bezit_tabellen?: string[];
21241
+ _conflicten_snapshot?: import("./types").Json;
21242
+ _contractfuncties?: string[];
21243
+ _inhoud_md: string;
21244
+ _module_id: string;
21245
+ _module_titel: string;
21246
+ _ontbrekende_contracten?: string[];
21247
+ _samenvatting?: string;
21248
+ };
21249
+ Returns: number;
21250
+ };
21251
+ handover_publish_via_token: {
21252
+ Args: {
21253
+ _bevindingen?: string;
21254
+ _bezit_tabellen?: string[];
21255
+ _conflicten_snapshot?: import("./types").Json;
21256
+ _contractfuncties?: string[];
21257
+ _inhoud_md: string;
21258
+ _module_id: string;
21259
+ _module_titel: string;
21260
+ _ontbrekende_contracten?: string[];
21261
+ _samenvatting?: string;
21262
+ _token_hash: string;
21263
+ };
21264
+ Returns: number;
21265
+ };
21266
+ handover_status: {
21267
+ Args: never;
21268
+ Returns: import("./types").Json;
21269
+ };
21270
+ handover_synonym_kern: {
21271
+ Args: {
21272
+ _naam: string;
21273
+ };
21274
+ Returns: string;
21275
+ };
21276
+ handover_token_intrekken: {
21277
+ Args: {
21278
+ _id: string;
21279
+ };
21280
+ Returns: boolean;
21281
+ };
21282
+ handover_token_lijst: {
21283
+ Args: never;
21284
+ Returns: import("./types").Json;
21285
+ };
21286
+ handover_token_maken: {
21287
+ Args: {
21288
+ _label?: string;
21289
+ _module_id: string;
21290
+ };
21291
+ Returns: string;
21292
+ };
21293
+ handover_update: {
21294
+ Args: {
21295
+ _bezit_tabellen?: string[];
21296
+ _contractfuncties?: string[];
21297
+ _herzieningstermijn_dagen?: number;
21298
+ _inhoud_md?: string;
21299
+ _module_id: string;
21300
+ _module_titel?: string;
21301
+ _samenvatting?: string;
21302
+ _versie: number;
21303
+ };
21304
+ Returns: boolean;
21305
+ } | {
21306
+ Args: {
21307
+ _bevindingen?: string;
21308
+ _bezit_tabellen?: string[];
21309
+ _contractfuncties?: string[];
21310
+ _herzieningstermijn_dagen?: number;
21311
+ _inhoud_md?: string;
21312
+ _module_id: string;
21313
+ _module_titel?: string;
21314
+ _ontbrekende_contracten?: string[];
21315
+ _samenvatting?: string;
21316
+ _versie: number;
21317
+ };
21318
+ Returns: boolean;
21319
+ };
21320
+ handover_versies: {
21321
+ Args: {
21322
+ _module_id: string;
21323
+ };
21324
+ Returns: import("./types").Json;
21325
+ };
21131
21326
  has_module_permission: {
21132
21327
  Args: {
21133
21328
  _min: string;
@@ -21147,6 +21342,25 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
21147
21342
  Args: never;
21148
21343
  Returns: boolean;
21149
21344
  };
21345
+ instructie_get: {
21346
+ Args: {
21347
+ _sleutel: string;
21348
+ };
21349
+ Returns: import("./types").Json;
21350
+ };
21351
+ instructie_list: {
21352
+ Args: never;
21353
+ Returns: import("./types").Json;
21354
+ };
21355
+ instructie_publish: {
21356
+ Args: {
21357
+ _inhoud_md: string;
21358
+ _sleutel: string;
21359
+ _titel: string;
21360
+ _toelichting?: string;
21361
+ };
21362
+ Returns: number;
21363
+ };
21150
21364
  invoice_create_from_source: {
21151
21365
  Args: {
21152
21366
  _payload?: import("./types").Json;
@@ -21371,6 +21585,12 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
21371
21585
  };
21372
21586
  Returns: boolean;
21373
21587
  };
21588
+ logistics_barcode_lookup: {
21589
+ Args: {
21590
+ p_barcode: string;
21591
+ };
21592
+ Returns: import("./types").Json;
21593
+ };
21374
21594
  logistics_buffer_criteria: {
21375
21595
  Args: {
21376
21596
  p_settings: import("./types").Json;
@@ -21407,6 +21627,10 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
21407
21627
  };
21408
21628
  Returns: number;
21409
21629
  };
21630
+ logistics_cancel_orphan_tasks: {
21631
+ Args: never;
21632
+ Returns: number;
21633
+ };
21410
21634
  logistics_capacity_day_check: {
21411
21635
  Args: {
21412
21636
  p_from?: string;
@@ -21427,6 +21651,41 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
21427
21651
  };
21428
21652
  Returns: number;
21429
21653
  };
21654
+ logistics_cart_barcode_value: {
21655
+ Args: {
21656
+ _cart_id: string;
21657
+ };
21658
+ Returns: string;
21659
+ };
21660
+ logistics_cart_index: {
21661
+ Args: {
21662
+ p_from?: string;
21663
+ p_to?: string;
21664
+ };
21665
+ Returns: {
21666
+ cart_id: string;
21667
+ cart_index: number;
21668
+ cart_label: string;
21669
+ delivery_date: string;
21670
+ is_announced: boolean;
21671
+ is_controlled: boolean;
21672
+ is_printed: boolean;
21673
+ is_shared: boolean;
21674
+ order_number: string;
21675
+ order_source: string;
21676
+ order_uuid: string;
21677
+ pick_date: string;
21678
+ printed_at: string;
21679
+ shifted: boolean;
21680
+ task_status: string;
21681
+ }[];
21682
+ };
21683
+ logistics_cart_slip_plan: {
21684
+ Args: {
21685
+ p_order_id: string;
21686
+ };
21687
+ Returns: import("./types").Json;
21688
+ };
21430
21689
  logistics_check_order_allowed: {
21431
21690
  Args: {
21432
21691
  p_lines: import("./types").Json;
@@ -21575,6 +21834,21 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
21575
21834
  isSetofReturn: false;
21576
21835
  };
21577
21836
  };
21837
+ logistics_consistency_check: {
21838
+ Args: never;
21839
+ Returns: {
21840
+ agenda_carts: number;
21841
+ announced_carts: number;
21842
+ control_carts: number;
21843
+ delivery_carts: number;
21844
+ ok: boolean;
21845
+ orphan_tasks: number;
21846
+ pick_date: string;
21847
+ raw_carts: number;
21848
+ sales_carts: number;
21849
+ station_carts: number;
21850
+ }[];
21851
+ };
21578
21852
  logistics_delay_customer_email: {
21579
21853
  Args: {
21580
21854
  p_customer: string;
@@ -21588,12 +21862,35 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
21588
21862
  subject: string;
21589
21863
  }[];
21590
21864
  };
21865
+ logistics_delivery_agenda: {
21866
+ Args: {
21867
+ p_from?: string;
21868
+ p_to?: string;
21869
+ };
21870
+ Returns: {
21871
+ announced_count: number;
21872
+ cart_count: number;
21873
+ controlled_count: number;
21874
+ delivery_date: string;
21875
+ order_count: number;
21876
+ orders: import("./types").Json;
21877
+ plant_count: number;
21878
+ printed_count: number;
21879
+ }[];
21880
+ };
21591
21881
  logistics_document_layout: {
21592
21882
  Args: {
21593
21883
  _document_code: string;
21594
21884
  };
21595
21885
  Returns: import("./types").Json;
21596
21886
  };
21887
+ logistics_document_layout_v2: {
21888
+ Args: {
21889
+ _document_code: string;
21890
+ _is_partial?: boolean;
21891
+ };
21892
+ Returns: import("./types").Json;
21893
+ };
21597
21894
  logistics_document_station: {
21598
21895
  Args: {
21599
21896
  _document_code: string;
@@ -21619,6 +21916,12 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
21619
21916
  };
21620
21917
  Returns: import("./types").Json;
21621
21918
  };
21919
+ logistics_ensure_cart_barcode: {
21920
+ Args: {
21921
+ _cart_id: string;
21922
+ };
21923
+ Returns: string;
21924
+ };
21622
21925
  logistics_fail_task: {
21623
21926
  Args: {
21624
21927
  p_error: string;
@@ -21664,6 +21967,16 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
21664
21967
  isSetofReturn: false;
21665
21968
  };
21666
21969
  };
21970
+ logistics_floriday_cart_plan: {
21971
+ Args: {
21972
+ p_order_id: string;
21973
+ };
21974
+ Returns: {
21975
+ carrier_type: string;
21976
+ idx: number;
21977
+ packages: number;
21978
+ }[];
21979
+ };
21667
21980
  logistics_floriday_claim_pushes: {
21668
21981
  Args: {
21669
21982
  _lease_seconds?: number;
@@ -21768,6 +22081,25 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
21768
22081
  };
21769
22082
  Returns: number;
21770
22083
  };
22084
+ logistics_order_overview: {
22085
+ Args: {
22086
+ p_from?: string;
22087
+ p_to?: string;
22088
+ };
22089
+ Returns: {
22090
+ cart_count: number;
22091
+ customer_name: string;
22092
+ delivery_date: string;
22093
+ order_number: string;
22094
+ order_source: string;
22095
+ order_uuid: string;
22096
+ pick_date: string;
22097
+ plant_count: number;
22098
+ printed_at: string;
22099
+ shifted: boolean;
22100
+ status: string;
22101
+ }[];
22102
+ };
21771
22103
  logistics_order_pick_day: {
21772
22104
  Args: {
21773
22105
  p_order_ref: string;
@@ -21780,6 +22112,22 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
21780
22112
  };
21781
22113
  Returns: string;
21782
22114
  };
22115
+ logistics_pick_agenda: {
22116
+ Args: {
22117
+ p_from?: string;
22118
+ p_to?: string;
22119
+ };
22120
+ Returns: {
22121
+ cart_count: number;
22122
+ in_preparation: number;
22123
+ order_count: number;
22124
+ orders: import("./types").Json;
22125
+ pick_date: string;
22126
+ plant_count: number;
22127
+ ready: number;
22128
+ shifted_count: number;
22129
+ }[];
22130
+ };
21783
22131
  logistics_pick_email_purpose: {
21784
22132
  Args: never;
21785
22133
  Returns: string;
@@ -21834,6 +22182,13 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
21834
22182
  };
21835
22183
  Returns: undefined;
21836
22184
  };
22185
+ logistics_plan_floriday_order: {
22186
+ Args: {
22187
+ p_buffer_id?: string;
22188
+ p_order_id: string;
22189
+ };
22190
+ Returns: number;
22191
+ };
21837
22192
  logistics_plan_impact_orders: {
21838
22193
  Args: {
21839
22194
  p_order_id: string;
@@ -22027,6 +22382,14 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
22027
22382
  };
22028
22383
  Returns: string;
22029
22384
  };
22385
+ logistics_shipping_note_from_barcode: {
22386
+ Args: {
22387
+ p_allow_reprint?: boolean;
22388
+ p_barcode: string;
22389
+ p_station_id?: string;
22390
+ };
22391
+ Returns: import("./types").Json;
22392
+ };
22030
22393
  logistics_supersede_stale_tasks: {
22031
22394
  Args: {
22032
22395
  p_keep: string[];
@@ -22248,6 +22611,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
22248
22611
  print_job_id: string | null;
22249
22612
  printed_at: string | null;
22250
22613
  printed_by: string | null;
22614
+ printed_cart_ids: import("./types").Json;
22251
22615
  printer_id: string | null;
22252
22616
  priority: number;
22253
22617
  reference: string | null;
@@ -22297,6 +22661,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
22297
22661
  print_job_id: string | null;
22298
22662
  printed_at: string | null;
22299
22663
  printed_by: string | null;
22664
+ printed_cart_ids: import("./types").Json;
22300
22665
  printer_id: string | null;
22301
22666
  priority: number;
22302
22667
  reference: string | null;
@@ -22351,6 +22716,56 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
22351
22716
  print_job_id: string | null;
22352
22717
  printed_at: string | null;
22353
22718
  printed_by: string | null;
22719
+ printed_cart_ids: import("./types").Json;
22720
+ printer_id: string | null;
22721
+ priority: number;
22722
+ reference: string | null;
22723
+ route: string | null;
22724
+ screen_id: string | null;
22725
+ station_id: string | null;
22726
+ status_id: string | null;
22727
+ updated_at: string;
22728
+ warnings: import("./types").Json;
22729
+ };
22730
+ SetofOptions: {
22731
+ from: "*";
22732
+ to: "pick_queue";
22733
+ isOneToOne: true;
22734
+ isSetofReturn: false;
22735
+ };
22736
+ };
22737
+ pick_complete_print_cart: {
22738
+ Args: {
22739
+ _cart_id: string;
22740
+ _printer_id: string;
22741
+ _queue_item_id: string;
22742
+ _session_id: string;
22743
+ };
22744
+ Returns: {
22745
+ announced_at: string;
22746
+ assigned_user_id: string | null;
22747
+ barcode: string | null;
22748
+ cancelled_at: string | null;
22749
+ cart_count: number;
22750
+ completed_at: string | null;
22751
+ country_code: string | null;
22752
+ created_at: string;
22753
+ customer_name: string | null;
22754
+ delivery_address: string | null;
22755
+ document_number: string | null;
22756
+ document_type_id: string | null;
22757
+ due_at: string | null;
22758
+ id: string;
22759
+ is_urgent: boolean;
22760
+ line_count: number;
22761
+ order_number: string | null;
22762
+ order_type: string | null;
22763
+ payload: import("./types").Json;
22764
+ print_count: number;
22765
+ print_job_id: string | null;
22766
+ printed_at: string | null;
22767
+ printed_by: string | null;
22768
+ printed_cart_ids: import("./types").Json;
22354
22769
  printer_id: string | null;
22355
22770
  priority: number;
22356
22771
  reference: string | null;
@@ -22394,6 +22809,15 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
22394
22809
  _session_id?: string;
22395
22810
  };
22396
22811
  Returns: string;
22812
+ } | {
22813
+ Args: {
22814
+ _cart_id: string;
22815
+ _is_herprint: boolean;
22816
+ _printer_id: string;
22817
+ _queue_item_id: string;
22818
+ _session_id: string;
22819
+ };
22820
+ Returns: string;
22397
22821
  };
22398
22822
  pick_order_context: {
22399
22823
  Args: {
@@ -22474,6 +22898,54 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
22474
22898
  print_job_id: string | null;
22475
22899
  printed_at: string | null;
22476
22900
  printed_by: string | null;
22901
+ printed_cart_ids: import("./types").Json;
22902
+ printer_id: string | null;
22903
+ priority: number;
22904
+ reference: string | null;
22905
+ route: string | null;
22906
+ screen_id: string | null;
22907
+ station_id: string | null;
22908
+ status_id: string | null;
22909
+ updated_at: string;
22910
+ warnings: import("./types").Json;
22911
+ };
22912
+ SetofOptions: {
22913
+ from: "*";
22914
+ to: "pick_queue";
22915
+ isOneToOne: true;
22916
+ isSetofReturn: false;
22917
+ };
22918
+ } | {
22919
+ Args: {
22920
+ _cart_id?: string;
22921
+ _queue_item_id: string;
22922
+ _session_id: string;
22923
+ };
22924
+ Returns: {
22925
+ announced_at: string;
22926
+ assigned_user_id: string | null;
22927
+ barcode: string | null;
22928
+ cancelled_at: string | null;
22929
+ cart_count: number;
22930
+ completed_at: string | null;
22931
+ country_code: string | null;
22932
+ created_at: string;
22933
+ customer_name: string | null;
22934
+ delivery_address: string | null;
22935
+ document_number: string | null;
22936
+ document_type_id: string | null;
22937
+ due_at: string | null;
22938
+ id: string;
22939
+ is_urgent: boolean;
22940
+ line_count: number;
22941
+ order_number: string | null;
22942
+ order_type: string | null;
22943
+ payload: import("./types").Json;
22944
+ print_count: number;
22945
+ print_job_id: string | null;
22946
+ printed_at: string | null;
22947
+ printed_by: string | null;
22948
+ printed_cart_ids: import("./types").Json;
22477
22949
  printer_id: string | null;
22478
22950
  priority: number;
22479
22951
  reference: string | null;
@@ -22586,6 +23058,66 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
22586
23058
  };
22587
23059
  Returns: undefined;
22588
23060
  };
23061
+ planning_cancel_item: {
23062
+ Args: {
23063
+ _id: string;
23064
+ };
23065
+ Returns: undefined;
23066
+ };
23067
+ planning_list: {
23068
+ Args: {
23069
+ _from: string;
23070
+ _to: string;
23071
+ };
23072
+ Returns: {
23073
+ assigned_monteur_id: string | null;
23074
+ assistants: import("./types").Json | null;
23075
+ budget_mandate_cents: number | null;
23076
+ created_at: string | null;
23077
+ created_by: string | null;
23078
+ customer_id: string | null;
23079
+ customer_name: string | null;
23080
+ duration_minutes: number | null;
23081
+ end_at: string | null;
23082
+ id: string | null;
23083
+ needs_detail_review: boolean | null;
23084
+ notes: string | null;
23085
+ project_number: string | null;
23086
+ review_reasons: string[] | null;
23087
+ start_at: string | null;
23088
+ status: Database["public"]["Enums"]["planning_item_status"] | null;
23089
+ updated_at: string | null;
23090
+ viewer_role: string | null;
23091
+ werkbon_id: string | null;
23092
+ work_address: string | null;
23093
+ }[];
23094
+ SetofOptions: {
23095
+ from: "*";
23096
+ to: "planning_overview";
23097
+ isOneToOne: false;
23098
+ isSetofReturn: true;
23099
+ };
23100
+ };
23101
+ planning_set_assistants: {
23102
+ Args: {
23103
+ _monteur_ids: string[];
23104
+ _planning_item_id: string;
23105
+ };
23106
+ Returns: undefined;
23107
+ };
23108
+ planning_upsert_item: {
23109
+ Args: {
23110
+ _assigned_monteur_id: string;
23111
+ _end_at: string;
23112
+ _notes?: string;
23113
+ _start_at: string;
23114
+ _werkbon_id: string;
23115
+ };
23116
+ Returns: {
23117
+ action: string;
23118
+ id: string;
23119
+ }[];
23120
+ };
22589
23121
  print_preview_toestaan: {
22590
23122
  Args: {
22591
23123
  _max?: number;
@@ -22758,6 +23290,12 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
22758
23290
  };
22759
23291
  Returns: string;
22760
23292
  };
23293
+ resolve_print_job_printer_id: {
23294
+ Args: {
23295
+ _job: Database["public"]["Tables"]["print_jobs"]["Row"];
23296
+ };
23297
+ Returns: string;
23298
+ };
22761
23299
  resolve_product_id_for_item: {
22762
23300
  Args: {
22763
23301
  p_product_name: string;
@@ -23161,6 +23699,26 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
23161
23699
  };
23162
23700
  Returns: string[];
23163
23701
  };
23702
+ start_time_log_at: {
23703
+ Args: {
23704
+ p_clicked_at?: string;
23705
+ p_employee_id: string;
23706
+ p_start_lat?: number;
23707
+ p_start_lng?: number;
23708
+ p_type: string;
23709
+ p_work_order_id?: string;
23710
+ };
23711
+ Returns: import("./types").Json;
23712
+ };
23713
+ stop_time_log: {
23714
+ Args: {
23715
+ p_employee_id: string;
23716
+ p_end_lat?: number;
23717
+ p_end_lng?: number;
23718
+ p_end_time: string;
23719
+ };
23720
+ Returns: import("./types").Json;
23721
+ };
23164
23722
  switch_time_log: {
23165
23723
  Args: {
23166
23724
  p_employee_id: string;
@@ -23349,7 +23907,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
23349
23907
  };
23350
23908
  CompositeTypes: { [_ in never]: never; };
23351
23909
  }, {
23352
- PostgrestVersion: "14.17";
23910
+ PostgrestVersion: "14.5";
23353
23911
  }>;
23354
23912
  userId: string;
23355
23913
  claims: import("@supabase/auth-js").User;