@flowselections/floriday-afhandeling-module 1.0.40 → 1.0.42

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (40) hide show
  1. package/dist-lib/components/afhandeling/ControlePage.d.ts.map +1 -1
  2. package/dist-lib/components/afhandeling/ControlePage.js +86 -10
  3. package/dist-lib/components/afhandeling/DagDetailDialog.d.ts.map +1 -1
  4. package/dist-lib/components/afhandeling/DagDetailDialog.js +4 -3
  5. package/dist-lib/components/afhandeling/VervoerdersPage.js +1 -1
  6. package/dist-lib/components/afhandeling/VerzetOrderDialog.js +1 -1
  7. package/dist-lib/components/afhandeling/WeekAgendaView.d.ts.map +1 -1
  8. package/dist-lib/components/afhandeling/WeekAgendaView.js +38 -45
  9. package/dist-lib/hooks/useCartIndex.d.ts +11 -0
  10. package/dist-lib/hooks/useCartIndex.d.ts.map +1 -0
  11. package/dist-lib/hooks/useCartIndex.js +56 -0
  12. package/dist-lib/hooks/useConsistencyCheck.d.ts +8 -0
  13. package/dist-lib/hooks/useConsistencyCheck.d.ts.map +1 -0
  14. package/dist-lib/hooks/useConsistencyCheck.js +22 -0
  15. package/dist-lib/hooks/useOrderPlanning.d.ts.map +1 -1
  16. package/dist-lib/hooks/useOrderPlanning.js +6 -2
  17. package/dist-lib/hooks/usePickAgenda.d.ts +32 -0
  18. package/dist-lib/hooks/usePickAgenda.d.ts.map +1 -0
  19. package/dist-lib/hooks/usePickAgenda.js +75 -0
  20. package/dist-lib/integrations/supabase/auth-middleware.d.ts +1342 -747
  21. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  22. package/dist-lib/integrations/supabase/client.server.d.ts +1342 -747
  23. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  24. package/dist-lib/integrations/supabase/client.server.js +1 -1
  25. package/dist-lib/integrations/supabase/moduleClient.d.ts +1342 -747
  26. package/dist-lib/integrations/supabase/moduleClient.d.ts.map +1 -1
  27. package/dist-lib/integrations/supabase/types.d.ts +1354 -775
  28. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  29. package/dist-lib/lib/afhandelingSettings.functions.d.ts +2501 -1307
  30. package/dist-lib/lib/afhandelingSettings.functions.d.ts.map +1 -1
  31. package/dist-lib/lib/carriers.functions.d.ts +6356 -3381
  32. package/dist-lib/lib/carriers.functions.d.ts.map +1 -1
  33. package/dist-lib/lib/cartAssignments.functions.d.ts +6356 -3381
  34. package/dist-lib/lib/cartAssignments.functions.d.ts.map +1 -1
  35. package/dist-lib/lib/cartControl.functions.d.ts +12821 -6902
  36. package/dist-lib/lib/cartControl.functions.d.ts.map +1 -1
  37. package/dist-lib/lib/cartControl.functions.js +92 -127
  38. package/dist-lib/lib/floriday.functions.d.ts +1345 -748
  39. package/dist-lib/lib/floriday.functions.d.ts.map +1 -1
  40. package/package.json +1 -1
@@ -215,7 +215,9 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
215
215
  reminders?: import("../integrations/supabase/types").Json;
216
216
  source_id?: string | null;
217
217
  source_module?: string;
218
- source_type?: string | null;
218
+ source_type
219
+ /** Eerste leverdatum ná het venster, anders de laatste ervóór. Voor auto-jump. */
220
+ ? /** Eerste leverdatum ná het venster, anders de laatste ervóór. Voor auto-jump. */: string | null;
219
221
  start_at?: string;
220
222
  status?: string;
221
223
  title?: string;
@@ -2900,6 +2902,84 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
2900
2902
  };
2901
2903
  Relationships: [];
2902
2904
  };
2905
+ delivery_notes: {
2906
+ Row: {
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
+ Insert: {
2930
+ byte_size?: number | null;
2931
+ connection_id?: string | null;
2932
+ content_type?: string;
2933
+ created_at?: string;
2934
+ error_message?: string | null;
2935
+ fetched_at?: string | null;
2936
+ fulfillment_order_id?: string | null;
2937
+ http_status?: number | null;
2938
+ id?: string;
2939
+ label_code?: string | null;
2940
+ letter?: string | null;
2941
+ load_carrier_index?: number | null;
2942
+ load_carrier_type?: string | null;
2943
+ order_id?: string | null;
2944
+ order_number?: string | null;
2945
+ packages?: number | null;
2946
+ source?: string;
2947
+ status?: string;
2948
+ storage_bucket?: string;
2949
+ storage_path?: string | null;
2950
+ updated_at?: string;
2951
+ };
2952
+ Update: {
2953
+ byte_size?: number | null;
2954
+ connection_id?: string | null;
2955
+ content_type?: string;
2956
+ created_at?: string;
2957
+ error_message?: string | null;
2958
+ fetched_at?: string | null;
2959
+ fulfillment_order_id?: string | null;
2960
+ http_status?: number | null;
2961
+ id?: string;
2962
+ label_code?: string | null;
2963
+ letter?: string | null;
2964
+ load_carrier_index?: number | null;
2965
+ load_carrier_type?: string | null;
2966
+ order_id?: string | null;
2967
+ order_number?: string | null;
2968
+ packages?: number | null;
2969
+ source?: string;
2970
+ status?: string;
2971
+ storage_bucket?: string;
2972
+ storage_path?: string | null;
2973
+ updated_at?: string;
2974
+ };
2975
+ Relationships: [{
2976
+ foreignKeyName: "delivery_notes_order_id_fkey";
2977
+ columns: ["order_id"];
2978
+ isOneToOne: false;
2979
+ referencedRelation: "orders";
2980
+ referencedColumns: ["id"];
2981
+ }];
2982
+ };
2903
2983
  document_bronregels: {
2904
2984
  Row: {
2905
2985
  bron: string;
@@ -5953,10 +6033,7 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
5953
6033
  };
5954
6034
  floriday_connections: {
5955
6035
  Row: {
5956
- access_token: string | null;
5957
6036
  api_key: string;
5958
- client_id: string;
5959
- client_secret: string;
5960
6037
  created_at: string;
5961
6038
  customers_endpoint: string | null;
5962
6039
  environment: string;
@@ -5971,10 +6048,7 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
5971
6048
  updated_at: string;
5972
6049
  };
5973
6050
  Insert: {
5974
- access_token?: string | null;
5975
6051
  api_key: string;
5976
- client_id: string;
5977
- client_secret: string;
5978
6052
  created_at?: string;
5979
6053
  customers_endpoint?: string | null;
5980
6054
  environment: string;
@@ -5989,10 +6063,7 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
5989
6063
  updated_at?: string;
5990
6064
  };
5991
6065
  Update: {
5992
- access_token?: string | null;
5993
6066
  api_key?: string;
5994
- client_id?: string;
5995
- client_secret?: string;
5996
6067
  created_at?: string;
5997
6068
  customers_endpoint?: string | null;
5998
6069
  environment?: string;
@@ -6076,6 +6147,7 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
6076
6147
  attempts: number;
6077
6148
  connection_id: string;
6078
6149
  created_at: string;
6150
+ dead_lettered_at: string | null;
6079
6151
  desired_available: boolean | null;
6080
6152
  gateway_attempt_id: string | null;
6081
6153
  id: string;
@@ -6084,9 +6156,13 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
6084
6156
  locked_by: string | null;
6085
6157
  next_attempt_at: string;
6086
6158
  number_of_pieces: number;
6159
+ product_id: string | null;
6087
6160
  sent_at: string | null;
6088
6161
  status: string;
6162
+ stock_mode: string | null;
6089
6163
  superseded_by: string | null;
6164
+ target_week: number | null;
6165
+ target_year: number | null;
6090
6166
  trade_item_id: string;
6091
6167
  updated_at: string;
6092
6168
  user_id: string;
@@ -6095,6 +6171,7 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
6095
6171
  attempts?: number;
6096
6172
  connection_id: string;
6097
6173
  created_at?: string;
6174
+ dead_lettered_at?: string | null;
6098
6175
  desired_available?: boolean | null;
6099
6176
  gateway_attempt_id?: string | null;
6100
6177
  id?: string;
@@ -6103,9 +6180,13 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
6103
6180
  locked_by?: string | null;
6104
6181
  next_attempt_at?: string;
6105
6182
  number_of_pieces?: number;
6183
+ product_id?: string | null;
6106
6184
  sent_at?: string | null;
6107
6185
  status?: string;
6186
+ stock_mode?: string | null;
6108
6187
  superseded_by?: string | null;
6188
+ target_week?: number | null;
6189
+ target_year?: number | null;
6109
6190
  trade_item_id: string;
6110
6191
  updated_at?: string;
6111
6192
  user_id: string;
@@ -6114,6 +6195,7 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
6114
6195
  attempts?: number;
6115
6196
  connection_id?: string;
6116
6197
  created_at?: string;
6198
+ dead_lettered_at?: string | null;
6117
6199
  desired_available?: boolean | null;
6118
6200
  gateway_attempt_id?: string | null;
6119
6201
  id?: string;
@@ -6122,9 +6204,13 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
6122
6204
  locked_by?: string | null;
6123
6205
  next_attempt_at?: string;
6124
6206
  number_of_pieces?: number;
6207
+ product_id?: string | null;
6125
6208
  sent_at?: string | null;
6126
6209
  status?: string;
6210
+ stock_mode?: string | null;
6127
6211
  superseded_by?: string | null;
6212
+ target_week?: number | null;
6213
+ target_year?: number | null;
6128
6214
  trade_item_id?: string;
6129
6215
  updated_at?: string;
6130
6216
  user_id?: string;
@@ -6533,6 +6619,87 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
6533
6619
  referencedColumns: ["id"];
6534
6620
  }];
6535
6621
  };
6622
+ floriday_inventory_settings: {
6623
+ Row: {
6624
+ buffer_quantity: number;
6625
+ connection_id: string;
6626
+ created_at: string;
6627
+ desired_availability: boolean;
6628
+ desired_quantity: number;
6629
+ fixed_quantity: number | null;
6630
+ floriday_trade_item_id: string | null;
6631
+ id: string;
6632
+ last_confirmed_at: string | null;
6633
+ last_enqueued_at: string | null;
6634
+ last_published_at: string | null;
6635
+ last_sync_error: string | null;
6636
+ manual_quantity: number | null;
6637
+ maximum_quantity: number | null;
6638
+ product_id: string;
6639
+ quantity_control: string;
6640
+ remote_available: boolean | null;
6641
+ remote_checked_at: string | null;
6642
+ remote_quantity: number | null;
6643
+ stock_mode: string;
6644
+ sync_status: string;
6645
+ updated_at: string;
6646
+ updated_by: string | null;
6647
+ user_id: string;
6648
+ };
6649
+ Insert: {
6650
+ buffer_quantity?: number;
6651
+ connection_id: string;
6652
+ created_at?: string;
6653
+ desired_availability?: boolean;
6654
+ desired_quantity?: number;
6655
+ fixed_quantity?: number | null;
6656
+ floriday_trade_item_id?: string | null;
6657
+ id?: string;
6658
+ last_confirmed_at?: string | null;
6659
+ last_enqueued_at?: string | null;
6660
+ last_published_at?: string | null;
6661
+ last_sync_error?: string | null;
6662
+ manual_quantity?: number | null;
6663
+ maximum_quantity?: number | null;
6664
+ product_id: string;
6665
+ quantity_control?: string;
6666
+ remote_available?: boolean | null;
6667
+ remote_checked_at?: string | null;
6668
+ remote_quantity?: number | null;
6669
+ stock_mode?: string;
6670
+ sync_status?: string;
6671
+ updated_at?: string;
6672
+ updated_by?: string | null;
6673
+ user_id: string;
6674
+ };
6675
+ Update: {
6676
+ buffer_quantity?: number;
6677
+ connection_id?: string;
6678
+ created_at?: string;
6679
+ desired_availability?: boolean;
6680
+ desired_quantity?: number;
6681
+ fixed_quantity?: number | null;
6682
+ floriday_trade_item_id?: string | null;
6683
+ id?: string;
6684
+ last_confirmed_at?: string | null;
6685
+ last_enqueued_at?: string | null;
6686
+ last_published_at?: string | null;
6687
+ last_sync_error?: string | null;
6688
+ manual_quantity?: number | null;
6689
+ maximum_quantity?: number | null;
6690
+ product_id?: string;
6691
+ quantity_control?: string;
6692
+ remote_available?: boolean | null;
6693
+ remote_checked_at?: string | null;
6694
+ remote_quantity?: number | null;
6695
+ stock_mode?: string;
6696
+ sync_status?: string;
6697
+ updated_at?: string;
6698
+ updated_by?: string | null;
6699
+ user_id?: string;
6700
+ };
6701
+ Relationships: [];
6702
+ };
6536
6703
  floriday_invoices_cache: {
6537
6704
  Row: {
6538
6705
  buyer_organization_id: string | null;
@@ -6821,6 +6988,39 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
6821
6988
  };
6822
6989
  Relationships: [];
6823
6990
  };
6991
+ floriday_sales_order_ingest: {
6992
+ Row: {
6993
+ connection_id: string;
6994
+ created_at: string;
6995
+ id: string;
6996
+ impact: import("../integrations/supabase/types").Json;
6997
+ order_status: string | null;
6998
+ order_version: number;
6999
+ processed_at: string;
7000
+ sales_order_id: string;
7001
+ };
7002
+ Insert: {
7003
+ connection_id: string;
7004
+ created_at?: string;
7005
+ id?: string;
7006
+ impact?: import("../integrations/supabase/types").Json;
7007
+ order_status?: string | null;
7008
+ order_version?: number;
7009
+ processed_at?: string;
7010
+ sales_order_id: string;
7011
+ };
7012
+ Update: {
7013
+ connection_id?: string;
7014
+ created_at?: string;
7015
+ id?: string;
7016
+ impact?: import("../integrations/supabase/types").Json;
7017
+ order_status?: string | null;
7018
+ order_version?: number;
7019
+ processed_at?: string;
7020
+ sales_order_id?: string;
7021
+ };
7022
+ Relationships: [];
7023
+ };
6824
7024
  floriday_sales_strategies_cache: {
6825
7025
  Row: {
6826
7026
  connection_id: string;
@@ -6920,6 +7120,39 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
6920
7120
  };
6921
7121
  Relationships: [];
6922
7122
  };
7123
+ floriday_sync_cursors: {
7124
+ Row: {
7125
+ connection_id: string;
7126
+ created_at: string;
7127
+ id: string;
7128
+ last_error: string | null;
7129
+ last_sync_at: string | null;
7130
+ resource_type: string;
7131
+ sequence_number: number;
7132
+ updated_at: string;
7133
+ };
7134
+ Insert: {
7135
+ connection_id: string;
7136
+ created_at?: string;
7137
+ id?: string;
7138
+ last_error?: string | null;
7139
+ last_sync_at?: string | null;
7140
+ resource_type: string;
7141
+ sequence_number?: number;
7142
+ updated_at?: string;
7143
+ };
7144
+ Update: {
7145
+ connection_id?: string;
7146
+ created_at?: string;
7147
+ id?: string;
7148
+ last_error?: string | null;
7149
+ last_sync_at?: string | null;
7150
+ resource_type?: string;
7151
+ sequence_number?: number;
7152
+ updated_at?: string;
7153
+ };
7154
+ Relationships: [];
7155
+ };
6923
7156
  floriday_sync_state: {
6924
7157
  Row: {
6925
7158
  connection_id: string;
@@ -7610,6 +7843,42 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
7610
7843
  };
7611
7844
  Relationships: [];
7612
7845
  };
7846
+ inventory_stock_snapshots: {
7847
+ Row: {
7848
+ connection_id: string;
7849
+ created_at: string;
7850
+ erp_available_quantity: number;
7851
+ floriday_desired_quantity: number;
7852
+ floriday_remote_quantity: number | null;
7853
+ granularity: string;
7854
+ id: string;
7855
+ snapshot_at: string;
7856
+ user_id: string | null;
7857
+ };
7858
+ Insert: {
7859
+ connection_id: string;
7860
+ created_at?: string;
7861
+ erp_available_quantity?: number;
7862
+ floriday_desired_quantity?: number;
7863
+ floriday_remote_quantity?: number | null;
7864
+ granularity?: string;
7865
+ id?: string;
7866
+ snapshot_at?: string;
7867
+ user_id?: string | null;
7868
+ };
7869
+ Update: {
7870
+ connection_id?: string;
7871
+ created_at?: string;
7872
+ erp_available_quantity?: number;
7873
+ floriday_desired_quantity?: number;
7874
+ floriday_remote_quantity?: number | null;
7875
+ granularity?: string;
7876
+ id?: string;
7877
+ snapshot_at?: string;
7878
+ user_id?: string | null;
7879
+ };
7880
+ Relationships: [];
7881
+ };
7613
7882
  invoice_items: {
7614
7883
  Row: {
7615
7884
  created_at: string;
@@ -8118,13 +8387,7 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
8118
8387
  segment?: import("../integrations/supabase/types").Database["public"]["Enums"]["itk_customer_segment"];
8119
8388
  updated_at?: string;
8120
8389
  };
8121
- Relationships: [{
8122
- foreignKeyName: "itk_customers_legacy_customer_id_fkey";
8123
- columns: ["legacy_customer_id"];
8124
- isOneToOne: false;
8125
- referencedRelation: "customers";
8126
- referencedColumns: ["id"];
8127
- }];
8390
+ Relationships: [];
8128
8391
  };
8129
8392
  itk_dynamic_fields: {
8130
8393
  Row: {
@@ -8156,104 +8419,278 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
8156
8419
  };
8157
8420
  Relationships: [];
8158
8421
  };
8159
- itk_offerte_events: {
8422
+ itk_handover_rechten: {
8160
8423
  Row: {
8161
8424
  created_at: string;
8162
- event_type: string;
8163
8425
  id: string;
8164
- metadata: import("../integrations/supabase/types").Json;
8165
- offerte_id: string;
8166
- omschrijving: string | null;
8426
+ module_id: string;
8427
+ rol: import("../integrations/supabase/types").Database["public"]["Enums"]["app_role"] | null;
8428
+ updated_at: string;
8167
8429
  user_id: string | null;
8168
8430
  };
8169
8431
  Insert: {
8170
8432
  created_at?: string;
8171
- event_type: string;
8172
8433
  id?: string;
8173
- metadata?: import("../integrations/supabase/types").Json;
8174
- offerte_id: string;
8175
- omschrijving?: string | null;
8434
+ module_id: string;
8435
+ rol?: import("../integrations/supabase/types").Database["public"]["Enums"]["app_role"] | null;
8436
+ updated_at?: string;
8176
8437
  user_id?: string | null;
8177
8438
  };
8178
8439
  Update: {
8179
8440
  created_at?: string;
8180
- event_type?: string;
8181
8441
  id?: string;
8182
- metadata?: import("../integrations/supabase/types").Json;
8183
- offerte_id?: string;
8184
- omschrijving?: string | null;
8442
+ module_id?: string;
8443
+ rol?: import("../integrations/supabase/types").Database["public"]["Enums"]["app_role"] | null;
8444
+ updated_at?: string;
8185
8445
  user_id?: string | null;
8186
8446
  };
8187
- Relationships: [{
8188
- foreignKeyName: "itk_offerte_events_offerte_id_fkey";
8189
- columns: ["offerte_id"];
8190
- isOneToOne: false;
8191
- referencedRelation: "itk_offertes";
8192
- referencedColumns: ["id"];
8193
- }];
8447
+ Relationships: [];
8194
8448
  };
8195
- itk_offerte_regels: {
8449
+ itk_handover_tokens: {
8196
8450
  Row: {
8451
+ aangemaakt_door: string | null;
8197
8452
  created_at: string;
8198
8453
  id: string;
8199
- line_total_cents: number;
8200
- offerte_id: string;
8201
- omschrijving: string;
8202
- package_id: string | null;
8203
- quantity: number;
8204
- sort_order: number;
8205
- source: string;
8206
- unit_price_cents: number;
8454
+ is_actief: boolean;
8455
+ laatst_gebruikt_op: string | null;
8456
+ label: string;
8457
+ module_id: string;
8458
+ token_hash: string;
8207
8459
  updated_at: string;
8460
+ verloopt_op: string | null;
8208
8461
  };
8209
8462
  Insert: {
8463
+ aangemaakt_door?: string | null;
8210
8464
  created_at?: string;
8211
8465
  id?: string;
8212
- line_total_cents?: number;
8213
- offerte_id: string;
8214
- omschrijving?: string;
8215
- package_id?: string | null;
8216
- quantity?: number;
8217
- sort_order?: number;
8218
- source?: string;
8219
- unit_price_cents?: number;
8466
+ is_actief?: boolean;
8467
+ laatst_gebruikt_op?: string | null;
8468
+ label?: string;
8469
+ module_id: string;
8470
+ token_hash: string;
8220
8471
  updated_at?: string;
8472
+ verloopt_op?: string | null;
8221
8473
  };
8222
8474
  Update: {
8475
+ aangemaakt_door?: string | null;
8223
8476
  created_at?: string;
8224
8477
  id?: string;
8225
- line_total_cents?: number;
8226
- offerte_id?: string;
8227
- omschrijving?: string;
8228
- package_id?: string | null;
8229
- quantity?: number;
8230
- sort_order?: number;
8231
- source?: string;
8232
- unit_price_cents?: number;
8478
+ is_actief?: boolean;
8479
+ laatst_gebruikt_op?: string | null;
8480
+ label?: string;
8481
+ module_id?: string;
8482
+ token_hash?: string;
8233
8483
  updated_at?: string;
8484
+ verloopt_op?: string | null;
8234
8485
  };
8235
- Relationships: [{
8236
- foreignKeyName: "itk_offerte_regels_offerte_id_fkey";
8237
- columns: ["offerte_id"];
8238
- isOneToOne: false;
8239
- referencedRelation: "itk_offertes";
8240
- referencedColumns: ["id"];
8241
- }, {
8242
- foreignKeyName: "itk_offerte_regels_package_id_fkey";
8243
- columns: ["package_id"];
8244
- isOneToOne: false;
8245
- referencedRelation: "werkbon_packages";
8246
- referencedColumns: ["id"];
8247
- }];
8486
+ Relationships: [];
8248
8487
  };
8249
- itk_offerte_settings: {
8488
+ itk_module_handovers: {
8250
8489
  Row: {
8251
- auto_convert_binnen_mandaat: boolean;
8490
+ bevindingen: string | null;
8491
+ bezit_tabellen: string[];
8492
+ conflicten_snapshot: import("../integrations/supabase/types").Json;
8493
+ contractfuncties: string[];
8252
8494
  created_at: string;
8253
- default_geldigheid_dagen: number;
8254
- default_vat_rate: number;
8495
+ eigenaar_module_id: string | null;
8496
+ gepubliceerd_door: string | null;
8497
+ gepubliceerd_op: string;
8498
+ herzieningstermijn_dagen: number;
8255
8499
  id: string;
8256
- singleton: boolean;
8500
+ inhoud_md: string;
8501
+ is_actueel: boolean;
8502
+ module_id: string;
8503
+ module_titel: string;
8504
+ ontbrekende_contracten: string[];
8505
+ samenvatting: string | null;
8506
+ updated_at: string;
8507
+ versie: number;
8508
+ };
8509
+ Insert: {
8510
+ bevindingen?: string | null;
8511
+ bezit_tabellen?: string[];
8512
+ conflicten_snapshot?: import("../integrations/supabase/types").Json;
8513
+ contractfuncties?: string[];
8514
+ created_at?: string;
8515
+ eigenaar_module_id?: string | null;
8516
+ gepubliceerd_door?: string | null;
8517
+ gepubliceerd_op?: string;
8518
+ herzieningstermijn_dagen?: number;
8519
+ id?: string;
8520
+ inhoud_md: string;
8521
+ is_actueel?: boolean;
8522
+ module_id: string;
8523
+ module_titel: string;
8524
+ ontbrekende_contracten?: string[];
8525
+ samenvatting?: string | null;
8526
+ updated_at?: string;
8527
+ versie?: number;
8528
+ };
8529
+ Update: {
8530
+ bevindingen?: string | null;
8531
+ bezit_tabellen?: string[];
8532
+ conflicten_snapshot?: import("../integrations/supabase/types").Json;
8533
+ contractfuncties?: string[];
8534
+ created_at?: string;
8535
+ eigenaar_module_id?: string | null;
8536
+ gepubliceerd_door?: string | null;
8537
+ gepubliceerd_op?: string;
8538
+ herzieningstermijn_dagen?: number;
8539
+ id?: string;
8540
+ inhoud_md?: string;
8541
+ is_actueel?: boolean;
8542
+ module_id?: string;
8543
+ module_titel?: string;
8544
+ ontbrekende_contracten?: string[];
8545
+ samenvatting?: string | null;
8546
+ updated_at?: string;
8547
+ versie?: number;
8548
+ };
8549
+ Relationships: [];
8550
+ };
8551
+ itk_module_instructies: {
8552
+ Row: {
8553
+ created_at: string;
8554
+ eigenaar_module_id: string;
8555
+ gepubliceerd_door: string | null;
8556
+ gepubliceerd_op: string;
8557
+ id: string;
8558
+ inhoud_md: string;
8559
+ is_actueel: boolean;
8560
+ sleutel: string;
8561
+ titel: string;
8562
+ toelichting: string | null;
8563
+ updated_at: string;
8564
+ versie: number;
8565
+ };
8566
+ Insert: {
8567
+ created_at?: string;
8568
+ eigenaar_module_id?: string;
8569
+ gepubliceerd_door?: string | null;
8570
+ gepubliceerd_op?: string;
8571
+ id?: string;
8572
+ inhoud_md: string;
8573
+ is_actueel?: boolean;
8574
+ sleutel: string;
8575
+ titel: string;
8576
+ toelichting?: string | null;
8577
+ updated_at?: string;
8578
+ versie?: number;
8579
+ };
8580
+ Update: {
8581
+ created_at?: string;
8582
+ eigenaar_module_id?: string;
8583
+ gepubliceerd_door?: string | null;
8584
+ gepubliceerd_op?: string;
8585
+ id?: string;
8586
+ inhoud_md?: string;
8587
+ is_actueel?: boolean;
8588
+ sleutel?: string;
8589
+ titel?: string;
8590
+ toelichting?: string | null;
8591
+ updated_at?: string;
8592
+ versie?: number;
8593
+ };
8594
+ Relationships: [];
8595
+ };
8596
+ itk_offerte_events: {
8597
+ Row: {
8598
+ created_at: string;
8599
+ event_type: string;
8600
+ id: string;
8601
+ metadata: import("../integrations/supabase/types").Json;
8602
+ offerte_id: string;
8603
+ omschrijving: string | null;
8604
+ user_id: string | null;
8605
+ };
8606
+ Insert: {
8607
+ created_at?: string;
8608
+ event_type: string;
8609
+ id?: string;
8610
+ metadata?: import("../integrations/supabase/types").Json;
8611
+ offerte_id: string;
8612
+ omschrijving?: string | null;
8613
+ user_id?: string | null;
8614
+ };
8615
+ Update: {
8616
+ created_at?: string;
8617
+ event_type?: string;
8618
+ id?: string;
8619
+ metadata?: import("../integrations/supabase/types").Json;
8620
+ offerte_id?: string;
8621
+ omschrijving?: string | null;
8622
+ user_id?: string | null;
8623
+ };
8624
+ Relationships: [{
8625
+ foreignKeyName: "itk_offerte_events_offerte_id_fkey";
8626
+ columns: ["offerte_id"];
8627
+ isOneToOne: false;
8628
+ referencedRelation: "itk_offertes";
8629
+ referencedColumns: ["id"];
8630
+ }];
8631
+ };
8632
+ itk_offerte_regels: {
8633
+ Row: {
8634
+ created_at: string;
8635
+ id: string;
8636
+ line_total_cents: number;
8637
+ offerte_id: string;
8638
+ omschrijving: string;
8639
+ package_id: string | null;
8640
+ quantity: number;
8641
+ sort_order: number;
8642
+ source: string;
8643
+ unit_price_cents: number;
8644
+ updated_at: string;
8645
+ };
8646
+ Insert: {
8647
+ created_at?: string;
8648
+ id?: string;
8649
+ line_total_cents?: number;
8650
+ offerte_id: string;
8651
+ omschrijving?: string;
8652
+ package_id?: string | null;
8653
+ quantity?: number;
8654
+ sort_order?: number;
8655
+ source?: string;
8656
+ unit_price_cents?: number;
8657
+ updated_at?: string;
8658
+ };
8659
+ Update: {
8660
+ created_at?: string;
8661
+ id?: string;
8662
+ line_total_cents?: number;
8663
+ offerte_id?: string;
8664
+ omschrijving?: string;
8665
+ package_id?: string | null;
8666
+ quantity?: number;
8667
+ sort_order?: number;
8668
+ source?: string;
8669
+ unit_price_cents?: number;
8670
+ updated_at?: string;
8671
+ };
8672
+ Relationships: [{
8673
+ foreignKeyName: "itk_offerte_regels_offerte_id_fkey";
8674
+ columns: ["offerte_id"];
8675
+ isOneToOne: false;
8676
+ referencedRelation: "itk_offertes";
8677
+ referencedColumns: ["id"];
8678
+ }, {
8679
+ foreignKeyName: "itk_offerte_regels_package_id_fkey";
8680
+ columns: ["package_id"];
8681
+ isOneToOne: false;
8682
+ referencedRelation: "werkbon_packages";
8683
+ referencedColumns: ["id"];
8684
+ }];
8685
+ };
8686
+ itk_offerte_settings: {
8687
+ Row: {
8688
+ auto_convert_binnen_mandaat: boolean;
8689
+ created_at: string;
8690
+ default_geldigheid_dagen: number;
8691
+ default_vat_rate: number;
8692
+ id: string;
8693
+ singleton: boolean;
8257
8694
  updated_at: string;
8258
8695
  };
8259
8696
  Insert: {
@@ -9014,6 +9451,27 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
9014
9451
  };
9015
9452
  Relationships: [];
9016
9453
  };
9454
+ logistics_cart_barcode: {
9455
+ Row: {
9456
+ barcode: string;
9457
+ cart_id: string;
9458
+ created_at: string;
9459
+ order_id: string | null;
9460
+ };
9461
+ Insert: {
9462
+ barcode: string;
9463
+ cart_id: string;
9464
+ created_at?: string;
9465
+ order_id?: string | null;
9466
+ };
9467
+ Update: {
9468
+ barcode?: string;
9469
+ cart_id?: string;
9470
+ created_at?: string;
9471
+ order_id?: string | null;
9472
+ };
9473
+ Relationships: [];
9474
+ };
9017
9475
  logistics_decisions: {
9018
9476
  Row: {
9019
9477
  created_at: string;
@@ -9842,6 +10300,36 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
9842
10300
  referencedColumns: ["id"];
9843
10301
  }];
9844
10302
  };
10303
+ logistics_shipping_note_scan: {
10304
+ Row: {
10305
+ barcode: string;
10306
+ cart_id: string;
10307
+ id: string;
10308
+ is_reprint: boolean;
10309
+ order_id: string | null;
10310
+ print_job_id: string | null;
10311
+ scanned_at: string;
10312
+ };
10313
+ Insert: {
10314
+ barcode: string;
10315
+ cart_id: string;
10316
+ id?: string;
10317
+ is_reprint?: boolean;
10318
+ order_id?: string | null;
10319
+ print_job_id?: string | null;
10320
+ scanned_at?: string;
10321
+ };
10322
+ Update: {
10323
+ barcode?: string;
10324
+ cart_id?: string;
10325
+ id?: string;
10326
+ is_reprint?: boolean;
10327
+ order_id?: string | null;
10328
+ print_job_id?: string | null;
10329
+ scanned_at?: string;
10330
+ };
10331
+ Relationships: [];
10332
+ };
9845
10333
  logistics_staff_planning: {
9846
10334
  Row: {
9847
10335
  created_at: string;
@@ -11935,10 +12423,12 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
11935
12423
  boxes: number | null;
11936
12424
  cart_id: string;
11937
12425
  crates: number;
12426
+ crates_in_layer: number | null;
11938
12427
  crates_per_layer: number;
11939
12428
  created_at: string;
11940
12429
  id: string;
11941
12430
  layer_fraction: number;
12431
+ layer_index: number | null;
11942
12432
  layer_share_pct: number;
11943
12433
  layers_per_cart: number;
11944
12434
  order_item_id: string | null;
@@ -11951,10 +12441,12 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
11951
12441
  boxes?: number | null;
11952
12442
  cart_id: string;
11953
12443
  crates: number;
12444
+ crates_in_layer?: number | null;
11954
12445
  crates_per_layer?: number;
11955
12446
  created_at?: string;
11956
12447
  id?: string;
11957
12448
  layer_fraction?: number;
12449
+ layer_index?: number | null;
11958
12450
  layer_share_pct?: number;
11959
12451
  layers_per_cart?: number;
11960
12452
  order_item_id?: string | null;
@@ -11967,10 +12459,12 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
11967
12459
  boxes?: number | null;
11968
12460
  cart_id?: string;
11969
12461
  crates?: number;
12462
+ crates_in_layer?: number | null;
11970
12463
  crates_per_layer?: number;
11971
12464
  created_at?: string;
11972
12465
  id?: string;
11973
12466
  layer_fraction?: number;
12467
+ layer_index?: number | null;
11974
12468
  layer_share_pct?: number;
11975
12469
  layers_per_cart?: number;
11976
12470
  order_item_id?: string | null;
@@ -12010,6 +12504,7 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
12010
12504
  id: string;
12011
12505
  is_auto: boolean;
12012
12506
  is_complete: boolean;
12507
+ layout_method: string | null;
12013
12508
  max_layers: number | null;
12014
12509
  moved_at: string | null;
12015
12510
  moved_from_moment_id: string | null;
@@ -12034,6 +12529,7 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
12034
12529
  id?: string;
12035
12530
  is_auto?: boolean;
12036
12531
  is_complete?: boolean;
12532
+ layout_method?: string | null;
12037
12533
  max_layers?: number | null;
12038
12534
  moved_at?: string | null;
12039
12535
  moved_from_moment_id?: string | null;
@@ -12058,6 +12554,7 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
12058
12554
  id?: string;
12059
12555
  is_auto?: boolean;
12060
12556
  is_complete?: boolean;
12557
+ layout_method?: string | null;
12061
12558
  max_layers?: number | null;
12062
12559
  moved_at?: string | null;
12063
12560
  moved_from_moment_id?: string | null;
@@ -12663,6 +13160,7 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
12663
13160
  print_job_id: string | null;
12664
13161
  printed_at: string | null;
12665
13162
  printed_by: string | null;
13163
+ printed_cart_ids: import("../integrations/supabase/types").Json;
12666
13164
  printer_id: string | null;
12667
13165
  priority: number;
12668
13166
  reference: string | null;
@@ -12697,6 +13195,7 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
12697
13195
  print_job_id?: string | null;
12698
13196
  printed_at?: string | null;
12699
13197
  printed_by?: string | null;
13198
+ printed_cart_ids?: import("../integrations/supabase/types").Json;
12700
13199
  printer_id?: string | null;
12701
13200
  priority?: number;
12702
13201
  reference?: string | null;
@@ -12731,6 +13230,7 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
12731
13230
  print_job_id?: string | null;
12732
13231
  printed_at?: string | null;
12733
13232
  printed_by?: string | null;
13233
+ printed_cart_ids?: import("../integrations/supabase/types").Json;
12734
13234
  printer_id?: string | null;
12735
13235
  priority?: number;
12736
13236
  reference?: string | null;
@@ -13530,6 +14030,12 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
13530
14030
  isOneToOne: false;
13531
14031
  referencedRelation: "planning_items";
13532
14032
  referencedColumns: ["id"];
14033
+ }, {
14034
+ foreignKeyName: "planning_item_assistants_planning_item_id_fkey";
14035
+ columns: ["planning_item_id"];
14036
+ isOneToOne: false;
14037
+ referencedRelation: "planning_overview";
14038
+ referencedColumns: ["id"];
13533
14039
  }];
13534
14040
  };
13535
14041
  planning_items: {
@@ -13708,6 +14214,9 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
13708
14214
  is_herprint: boolean;
13709
14215
  kopieen: number;
13710
14216
  layout_id: string | null;
14217
+ lokaal_opgeslagen_op: string | null;
14218
+ lokale_pdf_fout: string | null;
14219
+ lokale_pdf_status: string | null;
13711
14220
  opgepakt_op: string | null;
13712
14221
  paginas: number;
13713
14222
  payload: import("../integrations/supabase/types").Json;
@@ -13716,6 +14225,7 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
13716
14225
  pogingen: number;
13717
14226
  printer_id: string | null;
13718
14227
  render_html: string | null;
14228
+ resultaat_pdf_base64: string | null;
13719
14229
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
13720
14230
  updated_at: string;
13721
14231
  volgende_poging: string | null;
@@ -13740,6 +14250,9 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
13740
14250
  is_herprint?: boolean;
13741
14251
  kopieen?: number;
13742
14252
  layout_id?: string | null;
14253
+ lokaal_opgeslagen_op?: string | null;
14254
+ lokale_pdf_fout?: string | null;
14255
+ lokale_pdf_status?: string | null;
13743
14256
  opgepakt_op?: string | null;
13744
14257
  paginas?: number;
13745
14258
  payload?: import("../integrations/supabase/types").Json;
@@ -13748,6 +14261,7 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
13748
14261
  pogingen?: number;
13749
14262
  printer_id?: string | null;
13750
14263
  render_html?: string | null;
14264
+ resultaat_pdf_base64?: string | null;
13751
14265
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
13752
14266
  updated_at?: string;
13753
14267
  volgende_poging?: string | null;
@@ -13772,6 +14286,9 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
13772
14286
  is_herprint?: boolean;
13773
14287
  kopieen?: number;
13774
14288
  layout_id?: string | null;
14289
+ lokaal_opgeslagen_op?: string | null;
14290
+ lokale_pdf_fout?: string | null;
14291
+ lokale_pdf_status?: string | null;
13775
14292
  opgepakt_op?: string | null;
13776
14293
  paginas?: number;
13777
14294
  payload?: import("../integrations/supabase/types").Json;
@@ -13780,6 +14297,7 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
13780
14297
  pogingen?: number;
13781
14298
  printer_id?: string | null;
13782
14299
  render_html?: string | null;
14300
+ resultaat_pdf_base64?: string | null;
13783
14301
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
13784
14302
  updated_at?: string;
13785
14303
  volgende_poging?: string | null;
@@ -14170,6 +14688,7 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
14170
14688
  ondersteunde_laden: import("../integrations/supabase/types").Json | null;
14171
14689
  online: boolean;
14172
14690
  papierformaat: string;
14691
+ pdf_map: string | null;
14173
14692
  poort: number | null;
14174
14693
  soort: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
14175
14694
  systeemnaam: string;
@@ -14195,6 +14714,7 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
14195
14714
  ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
14196
14715
  online?: boolean;
14197
14716
  papierformaat?: string;
14717
+ pdf_map?: string | null;
14198
14718
  poort?: number | null;
14199
14719
  soort?: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
14200
14720
  systeemnaam?: string;
@@ -14220,6 +14740,7 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
14220
14740
  ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
14221
14741
  online?: boolean;
14222
14742
  papierformaat?: string;
14743
+ pdf_map?: string | null;
14223
14744
  poort?: number | null;
14224
14745
  soort?: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
14225
14746
  systeemnaam?: string;
@@ -14624,6 +15145,7 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
14624
15145
  created_at: string;
14625
15146
  custom_fields: import("../integrations/supabase/types").Json;
14626
15147
  floriday_trade_item_id: string | null;
15148
+ fust_type_id: string | null;
14627
15149
  id: string;
14628
15150
  image_url: string | null;
14629
15151
  incoming_quantity: number;
@@ -14631,6 +15153,7 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
14631
15153
  layers_per_cart: number;
14632
15154
  location: string;
14633
15155
  min_quantity: number;
15156
+ plant_height_cm: number | null;
14634
15157
  plants_per_crate: number;
14635
15158
  product: string;
14636
15159
  product_type: string;
@@ -14650,6 +15173,7 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
14650
15173
  created_at?: string;
14651
15174
  custom_fields?: import("../integrations/supabase/types").Json;
14652
15175
  floriday_trade_item_id?: string | null;
15176
+ fust_type_id?: string | null;
14653
15177
  id?: string;
14654
15178
  image_url?: string | null;
14655
15179
  incoming_quantity?: number;
@@ -14657,6 +15181,7 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
14657
15181
  layers_per_cart?: number;
14658
15182
  location: string;
14659
15183
  min_quantity?: number;
15184
+ plant_height_cm?: number | null;
14660
15185
  plants_per_crate?: number;
14661
15186
  product: string;
14662
15187
  product_type?: string;
@@ -14676,6 +15201,7 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
14676
15201
  created_at?: string;
14677
15202
  custom_fields?: import("../integrations/supabase/types").Json;
14678
15203
  floriday_trade_item_id?: string | null;
15204
+ fust_type_id?: string | null;
14679
15205
  id?: string;
14680
15206
  image_url?: string | null;
14681
15207
  incoming_quantity?: number;
@@ -14683,6 +15209,7 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
14683
15209
  layers_per_cart?: number;
14684
15210
  location?: string;
14685
15211
  min_quantity?: number;
15212
+ plant_height_cm?: number | null;
14686
15213
  plants_per_crate?: number;
14687
15214
  product?: string;
14688
15215
  product_type?: string;
@@ -14694,7 +15221,13 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
14694
15221
  updated_at?: string;
14695
15222
  weight?: string | null;
14696
15223
  };
14697
- Relationships: [];
15224
+ Relationships: [{
15225
+ foreignKeyName: "products_fust_type_id_fkey";
15226
+ columns: ["fust_type_id"];
15227
+ isOneToOne: false;
15228
+ referencedRelation: "fust_types";
15229
+ referencedColumns: ["id"];
15230
+ }];
14698
15231
  };
14699
15232
  profile_modules: {
14700
15233
  Row: {
@@ -15092,534 +15625,90 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
15092
15625
  referencedColumns: ["id"];
15093
15626
  }];
15094
15627
  };
15095
- quote_activities: {
15628
+ reception_notifications: {
15096
15629
  Row: {
15630
+ booking_id: string | null;
15097
15631
  created_at: string;
15098
- event_type: string;
15099
15632
  id: string;
15100
- metadata: import("../integrations/supabase/types").Json;
15101
- quote_id: string;
15102
- user_id: string | null;
15633
+ is_read: boolean;
15634
+ message: string;
15635
+ recipient_email: string | null;
15636
+ title: string;
15637
+ type: string;
15103
15638
  };
15104
15639
  Insert: {
15640
+ booking_id?: string | null;
15105
15641
  created_at?: string;
15106
- event_type: string;
15107
15642
  id?: string;
15108
- metadata?: import("../integrations/supabase/types").Json;
15109
- quote_id: string;
15110
- user_id?: string | null;
15643
+ is_read?: boolean;
15644
+ message: string;
15645
+ recipient_email?: string | null;
15646
+ title: string;
15647
+ type: string;
15111
15648
  };
15112
15649
  Update: {
15650
+ booking_id?: string | null;
15113
15651
  created_at?: string;
15114
- event_type?: string;
15115
15652
  id?: string;
15116
- metadata?: import("../integrations/supabase/types").Json;
15117
- quote_id?: string;
15118
- user_id?: string | null;
15653
+ is_read?: boolean;
15654
+ message?: string;
15655
+ recipient_email?: string | null;
15656
+ title?: string;
15657
+ type?: string;
15119
15658
  };
15120
15659
  Relationships: [{
15121
- foreignKeyName: "quote_activities_quote_id_fkey";
15122
- columns: ["quote_id"];
15660
+ foreignKeyName: "reception_notifications_booking_id_fkey";
15661
+ columns: ["booking_id"];
15123
15662
  isOneToOne: false;
15124
- referencedRelation: "quotes";
15663
+ referencedRelation: "bookings";
15125
15664
  referencedColumns: ["id"];
15126
15665
  }];
15127
15666
  };
15128
- quote_attachments: {
15667
+ role_assignments: {
15129
15668
  Row: {
15130
15669
  created_at: string;
15131
- file_name: string;
15132
- file_size: number | null;
15133
- file_url: string;
15134
15670
  id: string;
15135
- mime_type: string | null;
15136
- quote_id: string;
15671
+ role_id: string;
15672
+ user_id: string;
15137
15673
  };
15138
15674
  Insert: {
15139
15675
  created_at?: string;
15140
- file_name: string;
15141
- file_size?: number | null;
15142
- file_url: string;
15143
15676
  id?: string;
15144
- mime_type?: string | null;
15145
- quote_id: string;
15677
+ role_id: string;
15678
+ user_id: string;
15146
15679
  };
15147
15680
  Update: {
15148
15681
  created_at?: string;
15149
- file_name?: string;
15150
- file_size?: number | null;
15151
- file_url?: string;
15152
15682
  id?: string;
15153
- mime_type?: string | null;
15154
- quote_id?: string;
15683
+ role_id?: string;
15684
+ user_id?: string;
15155
15685
  };
15156
15686
  Relationships: [{
15157
- foreignKeyName: "quote_attachments_quote_id_fkey";
15158
- columns: ["quote_id"];
15687
+ foreignKeyName: "role_assignments_role_id_fkey";
15688
+ columns: ["role_id"];
15159
15689
  isOneToOne: false;
15160
- referencedRelation: "quotes";
15690
+ referencedRelation: "roles";
15161
15691
  referencedColumns: ["id"];
15162
15692
  }];
15163
15693
  };
15164
- quote_field_options: {
15694
+ role_permissions: {
15165
15695
  Row: {
15166
- created_at: string;
15167
- field_id: string;
15696
+ can_edit: boolean;
15697
+ can_view: boolean;
15698
+ feature_id: string;
15168
15699
  id: string;
15169
- label: string;
15170
- sort_order: number;
15171
- value: string;
15700
+ module_id: string;
15701
+ role_id: string;
15702
+ updated_at: string;
15172
15703
  };
15173
15704
  Insert: {
15174
- created_at?: string;
15175
- field_id: string;
15705
+ can_edit?: boolean;
15706
+ can_view?: boolean;
15707
+ feature_id?: string;
15176
15708
  id?: string;
15177
- label: string;
15178
- sort_order?: number;
15179
- value: string;
15180
- };
15181
- Update: {
15182
- created_at?: string;
15183
- field_id?: string;
15184
- id?: string;
15185
- label?: string;
15186
- sort_order?: number;
15187
- value?: string;
15188
- };
15189
- Relationships: [{
15190
- foreignKeyName: "quote_field_options_field_id_fkey";
15191
- columns: ["field_id"];
15192
- isOneToOne: false;
15193
- referencedRelation: "quote_field_settings";
15194
- referencedColumns: ["id"];
15195
- }];
15196
- };
15197
- quote_field_settings: {
15198
- Row: {
15199
- created_at: string;
15200
- default_value: string | null;
15201
- field_key: string;
15202
- field_type: string;
15203
- id: string;
15204
- is_system: boolean;
15205
- label: string;
15206
- required: boolean;
15207
- sort_order: number;
15208
- updated_at: string;
15209
- visible: boolean;
15210
- };
15211
- Insert: {
15212
- created_at?: string;
15213
- default_value?: string | null;
15214
- field_key: string;
15215
- field_type: string;
15216
- id?: string;
15217
- is_system?: boolean;
15218
- label: string;
15219
- required?: boolean;
15220
- sort_order?: number;
15221
- updated_at?: string;
15222
- visible?: boolean;
15223
- };
15224
- Update: {
15225
- created_at?: string;
15226
- default_value?: string | null;
15227
- field_key?: string;
15228
- field_type?: string;
15229
- id?: string;
15230
- is_system?: boolean;
15231
- label?: string;
15232
- required?: boolean;
15233
- sort_order?: number;
15234
- updated_at?: string;
15235
- visible?: boolean;
15236
- };
15237
- Relationships: [];
15238
- };
15239
- quote_items: {
15240
- Row: {
15241
- category: string | null;
15242
- created_at: string;
15243
- description: string;
15244
- id: string;
15245
- line_total: number;
15246
- module_id: string | null;
15247
- name: string | null;
15248
- quantity: number;
15249
- quote_id: string;
15250
- sort_order: number;
15251
- unit_price: number;
15252
- };
15253
- Insert: {
15254
- category?: string | null;
15255
- created_at?: string;
15256
- description?: string;
15257
- id?: string;
15258
- line_total?: number;
15259
- module_id?: string | null;
15260
- name?: string | null;
15261
- quantity?: number;
15262
- quote_id: string;
15263
- sort_order?: number;
15264
- unit_price?: number;
15265
- };
15266
- Update: {
15267
- category?: string | null;
15268
- created_at?: string;
15269
- description?: string;
15270
- id?: string;
15271
- line_total?: number;
15272
- module_id?: string | null;
15273
- name?: string | null;
15274
- quantity?: number;
15275
- quote_id?: string;
15276
- sort_order?: number;
15277
- unit_price?: number;
15278
- };
15279
- Relationships: [{
15280
- foreignKeyName: "quote_items_module_id_fkey";
15281
- columns: ["module_id"];
15282
- isOneToOne: false;
15283
- referencedRelation: "quote_modules";
15284
- referencedColumns: ["id"];
15285
- }, {
15286
- foreignKeyName: "quote_items_quote_id_fkey";
15287
- columns: ["quote_id"];
15288
- isOneToOne: false;
15289
- referencedRelation: "quotes";
15290
- referencedColumns: ["id"];
15291
- }];
15292
- };
15293
- quote_modules: {
15294
- Row: {
15295
- category: string | null;
15296
- created_at: string;
15297
- description: string | null;
15298
- id: string;
15299
- is_active: boolean;
15300
- name: string;
15301
- price: number;
15302
- sort_order: number;
15303
- updated_at: string;
15304
- };
15305
- Insert: {
15306
- category?: string | null;
15307
- created_at?: string;
15308
- description?: string | null;
15309
- id?: string;
15310
- is_active?: boolean;
15311
- name: string;
15312
- price?: number;
15313
- sort_order?: number;
15314
- updated_at?: string;
15315
- };
15316
- Update: {
15317
- category?: string | null;
15318
- created_at?: string;
15319
- description?: string | null;
15320
- id?: string;
15321
- is_active?: boolean;
15322
- name?: string;
15323
- price?: number;
15324
- sort_order?: number;
15325
- updated_at?: string;
15326
- };
15327
- Relationships: [];
15328
- };
15329
- quote_templates: {
15330
- Row: {
15331
- created_at: string;
15332
- description: string | null;
15333
- field_values: import("../integrations/supabase/types").Json;
15334
- id: string;
15335
- is_default: boolean;
15336
- items: import("../integrations/supabase/types").Json;
15337
- name: string;
15338
- updated_at: string;
15339
- vat_rate: number;
15340
- };
15341
- Insert: {
15342
- created_at?: string;
15343
- description?: string | null;
15344
- field_values?: import("../integrations/supabase/types").Json;
15345
- id?: string;
15346
- is_default?: boolean;
15347
- items?: import("../integrations/supabase/types").Json;
15348
- name: string;
15349
- updated_at?: string;
15350
- vat_rate?: number;
15351
- };
15352
- Update: {
15353
- created_at?: string;
15354
- description?: string | null;
15355
- field_values?: import("../integrations/supabase/types").Json;
15356
- id?: string;
15357
- is_default?: boolean;
15358
- items?: import("../integrations/supabase/types").Json;
15359
- name?: string;
15360
- updated_at?: string;
15361
- vat_rate?: number;
15362
- };
15363
- Relationships: [];
15364
- };
15365
- quote_terms: {
15366
- Row: {
15367
- content: string | null;
15368
- created_at: string;
15369
- file_url: string | null;
15370
- id: string;
15371
- is_active: boolean;
15372
- name: string;
15373
- published_at: string | null;
15374
- updated_at: string;
15375
- version: string;
15376
- };
15377
- Insert: {
15378
- content?: string | null;
15379
- created_at?: string;
15380
- file_url?: string | null;
15381
- id?: string;
15382
- is_active?: boolean;
15383
- name: string;
15384
- published_at?: string | null;
15385
- updated_at?: string;
15386
- version?: string;
15387
- };
15388
- Update: {
15389
- content?: string | null;
15390
- created_at?: string;
15391
- file_url?: string | null;
15392
- id?: string;
15393
- is_active?: boolean;
15394
- name?: string;
15395
- published_at?: string | null;
15396
- updated_at?: string;
15397
- version?: string;
15398
- };
15399
- Relationships: [];
15400
- };
15401
- quotes: {
15402
- Row: {
15403
- accepted_at: string | null;
15404
- archived_at: string | null;
15405
- contact_id: string | null;
15406
- created_at: string;
15407
- customer_id: string | null;
15408
- discount: number;
15409
- expires_at: string | null;
15410
- field_values: import("../integrations/supabase/types").Json;
15411
- id: string;
15412
- notes: string | null;
15413
- owner_id: string | null;
15414
- personal_message: string | null;
15415
- project_id: string | null;
15416
- prospect_id: string | null;
15417
- public_token: string;
15418
- quote_number: string | null;
15419
- recipient_email: string | null;
15420
- recipient_name: string | null;
15421
- rejected_at: string | null;
15422
- sent_at: string | null;
15423
- status: string;
15424
- subtotal: number;
15425
- template_id: string | null;
15426
- terms_id: string | null;
15427
- title: string;
15428
- total: number;
15429
- updated_at: string;
15430
- valid_until: string | null;
15431
- vat_amount: number;
15432
- vat_rate: number;
15433
- viewed_at: string | null;
15434
- };
15435
- Insert: {
15436
- accepted_at?: string | null;
15437
- archived_at?: string | null;
15438
- contact_id?: string | null;
15439
- created_at?: string;
15440
- customer_id?: string | null;
15441
- discount?: number;
15442
- expires_at?: string | null;
15443
- field_values?: import("../integrations/supabase/types").Json;
15444
- id?: string;
15445
- notes?: string | null;
15446
- owner_id?: string | null;
15447
- personal_message?: string | null;
15448
- project_id?: string | null;
15449
- prospect_id?: string | null;
15450
- public_token?: string;
15451
- quote_number?: string | null;
15452
- recipient_email?: string | null;
15453
- recipient_name?: string | null;
15454
- rejected_at?: string | null;
15455
- sent_at?: string | null;
15456
- status?: string;
15457
- subtotal?: number;
15458
- template_id?: string | null;
15459
- terms_id?: string | null;
15460
- title?: string;
15461
- total?: number;
15462
- updated_at?: string;
15463
- valid_until?: string | null;
15464
- vat_amount?: number;
15465
- vat_rate?: number;
15466
- viewed_at?: string | null;
15467
- };
15468
- Update: {
15469
- accepted_at?: string | null;
15470
- archived_at?: string | null;
15471
- contact_id?: string | null;
15472
- created_at?: string;
15473
- customer_id?: string | null;
15474
- discount?: number;
15475
- expires_at?: string | null;
15476
- field_values?: import("../integrations/supabase/types").Json;
15477
- id?: string;
15478
- notes?: string | null;
15479
- owner_id?: string | null;
15480
- personal_message?: string | null;
15481
- project_id?: string | null;
15482
- prospect_id?: string | null;
15483
- public_token?: string;
15484
- quote_number?: string | null;
15485
- recipient_email?: string | null;
15486
- recipient_name?: string | null;
15487
- rejected_at?: string | null;
15488
- sent_at?: string | null;
15489
- status?: string;
15490
- subtotal?: number;
15491
- template_id?: string | null;
15492
- terms_id?: string | null;
15493
- title?: string;
15494
- total?: number;
15495
- updated_at?: string;
15496
- valid_until?: string | null;
15497
- vat_amount?: number;
15498
- vat_rate?: number;
15499
- viewed_at?: string | null;
15500
- };
15501
- Relationships: [{
15502
- foreignKeyName: "quotes_contact_id_fkey";
15503
- columns: ["contact_id"];
15504
- isOneToOne: false;
15505
- referencedRelation: "customer_contacts";
15506
- referencedColumns: ["id"];
15507
- }, {
15508
- foreignKeyName: "quotes_customer_id_fkey";
15509
- columns: ["customer_id"];
15510
- isOneToOne: false;
15511
- referencedRelation: "customers";
15512
- referencedColumns: ["id"];
15513
- }, {
15514
- foreignKeyName: "quotes_project_id_fkey";
15515
- columns: ["project_id"];
15516
- isOneToOne: false;
15517
- referencedRelation: "projects";
15518
- referencedColumns: ["id"];
15519
- }, {
15520
- foreignKeyName: "quotes_prospect_id_fkey";
15521
- columns: ["prospect_id"];
15522
- isOneToOne: false;
15523
- referencedRelation: "prospects";
15524
- referencedColumns: ["id"];
15525
- }, {
15526
- foreignKeyName: "quotes_template_id_fkey";
15527
- columns: ["template_id"];
15528
- isOneToOne: false;
15529
- referencedRelation: "quote_templates";
15530
- referencedColumns: ["id"];
15531
- }, {
15532
- foreignKeyName: "quotes_terms_id_fkey";
15533
- columns: ["terms_id"];
15534
- isOneToOne: false;
15535
- referencedRelation: "quote_terms";
15536
- referencedColumns: ["id"];
15537
- }];
15538
- };
15539
- reception_notifications: {
15540
- Row: {
15541
- booking_id: string | null;
15542
- created_at: string;
15543
- id: string;
15544
- is_read: boolean;
15545
- message: string;
15546
- recipient_email: string | null;
15547
- title: string;
15548
- type: string;
15549
- };
15550
- Insert: {
15551
- booking_id?: string | null;
15552
- created_at?: string;
15553
- id?: string;
15554
- is_read?: boolean;
15555
- message: string;
15556
- recipient_email?: string | null;
15557
- title: string;
15558
- type: string;
15559
- };
15560
- Update: {
15561
- booking_id?: string | null;
15562
- created_at?: string;
15563
- id?: string;
15564
- is_read?: boolean;
15565
- message?: string;
15566
- recipient_email?: string | null;
15567
- title?: string;
15568
- type?: string;
15569
- };
15570
- Relationships: [{
15571
- foreignKeyName: "reception_notifications_booking_id_fkey";
15572
- columns: ["booking_id"];
15573
- isOneToOne: false;
15574
- referencedRelation: "bookings";
15575
- referencedColumns: ["id"];
15576
- }];
15577
- };
15578
- role_assignments: {
15579
- Row: {
15580
- created_at: string;
15581
- id: string;
15582
- role_id: string;
15583
- user_id: string;
15584
- };
15585
- Insert: {
15586
- created_at?: string;
15587
- id?: string;
15588
- role_id: string;
15589
- user_id: string;
15590
- };
15591
- Update: {
15592
- created_at?: string;
15593
- id?: string;
15594
- role_id?: string;
15595
- user_id?: string;
15596
- };
15597
- Relationships: [{
15598
- foreignKeyName: "role_assignments_role_id_fkey";
15599
- columns: ["role_id"];
15600
- isOneToOne: false;
15601
- referencedRelation: "roles";
15602
- referencedColumns: ["id"];
15603
- }];
15604
- };
15605
- role_permissions: {
15606
- Row: {
15607
- can_edit: boolean;
15608
- can_view: boolean;
15609
- feature_id: string;
15610
- id: string;
15611
- module_id: string;
15612
- role_id: string;
15613
- updated_at: string;
15614
- };
15615
- Insert: {
15616
- can_edit?: boolean;
15617
- can_view?: boolean;
15618
- feature_id?: string;
15619
- id?: string;
15620
- module_id: string;
15621
- role_id: string;
15622
- updated_at?: string;
15709
+ module_id: string;
15710
+ role_id: string;
15711
+ updated_at?: string;
15623
15712
  };
15624
15713
  Update: {
15625
15714
  can_edit?: boolean;
@@ -16657,7 +16746,7 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
16657
16746
  foreignKeyName: "time_logs_work_order_id_fkey";
16658
16747
  columns: ["work_order_id"];
16659
16748
  isOneToOne: false;
16660
- referencedRelation: "work_orders";
16749
+ referencedRelation: "werkbonnen";
16661
16750
  referencedColumns: ["id"];
16662
16751
  }];
16663
16752
  };
@@ -16789,6 +16878,7 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
16789
16878
  };
16790
16879
  trade_item_stock: {
16791
16880
  Row: {
16881
+ change_source: string;
16792
16882
  connection_id: string;
16793
16883
  created_at: string;
16794
16884
  id: string;
@@ -16802,6 +16892,7 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
16802
16892
  user_id: string;
16803
16893
  };
16804
16894
  Insert: {
16895
+ change_source?: string;
16805
16896
  connection_id: string;
16806
16897
  created_at?: string;
16807
16898
  id?: string;
@@ -16815,6 +16906,7 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
16815
16906
  user_id: string;
16816
16907
  };
16817
16908
  Update: {
16909
+ change_source?: string;
16818
16910
  connection_id?: string;
16819
16911
  created_at?: string;
16820
16912
  id?: string;
@@ -17939,200 +18031,50 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
17939
18031
  monteur_id?: string;
17940
18032
  note?: string | null;
17941
18033
  source?: string;
17942
- travel_km?: number;
17943
- updated_at?: string;
17944
- werkbon_id?: string | null;
17945
- };
17946
- Relationships: [{
17947
- foreignKeyName: "uren_entries_werkbon_id_fkey";
17948
- columns: ["werkbon_id"];
17949
- isOneToOne: false;
17950
- referencedRelation: "werkbonnen";
17951
- referencedColumns: ["id"];
17952
- }];
17953
- };
17954
- uren_exports: {
17955
- Row: {
17956
- created_at: string;
17957
- created_by: string | null;
17958
- file_name: string | null;
17959
- id: string;
17960
- monteur_ids: string[];
17961
- period_end: string;
17962
- period_start: string;
17963
- row_count: number;
17964
- };
17965
- Insert: {
17966
- created_at?: string;
17967
- created_by?: string | null;
17968
- file_name?: string | null;
17969
- id?: string;
17970
- monteur_ids?: string[];
17971
- period_end: string;
17972
- period_start: string;
17973
- row_count?: number;
17974
- };
17975
- Update: {
17976
- created_at?: string;
17977
- created_by?: string | null;
17978
- file_name?: string | null;
17979
- id?: string;
17980
- monteur_ids?: string[];
17981
- period_end?: string;
17982
- period_start?: string;
17983
- row_count?: number;
17984
- };
17985
- Relationships: [];
17986
- };
17987
- uren_offerte_regels: {
17988
- Row: {
17989
- created_at: string;
17990
- description: string;
17991
- duration_minutes: number;
17992
- id: string;
17993
- offerte_id: string;
17994
- package_id: string | null;
17995
- quantity: number;
17996
- sort_order: number;
17997
- total_cents: number;
17998
- unit_price_cents: number;
17999
- };
18000
- Insert: {
18001
- created_at?: string;
18002
- description: string;
18003
- duration_minutes?: number;
18004
- id?: string;
18005
- offerte_id: string;
18006
- package_id?: string | null;
18007
- quantity?: number;
18008
- sort_order?: number;
18009
- total_cents?: number;
18010
- unit_price_cents?: number;
18011
- };
18012
- Update: {
18013
- created_at?: string;
18014
- description?: string;
18015
- duration_minutes?: number;
18016
- id?: string;
18017
- offerte_id?: string;
18018
- package_id?: string | null;
18019
- quantity?: number;
18020
- sort_order?: number;
18021
- total_cents?: number;
18022
- unit_price_cents?: number;
18023
- };
18024
- Relationships: [{
18025
- foreignKeyName: "uren_offerte_regels_offerte_id_fkey";
18026
- columns: ["offerte_id"];
18027
- isOneToOne: false;
18028
- referencedRelation: "uren_offertes";
18029
- referencedColumns: ["id"];
18030
- }, {
18031
- foreignKeyName: "uren_offerte_regels_package_id_fkey";
18032
- columns: ["package_id"];
18033
- isOneToOne: false;
18034
- referencedRelation: "werkbon_packages";
18035
- referencedColumns: ["id"];
18036
- }];
18037
- };
18038
- uren_offerte_velden: {
18039
- Row: {
18040
- created_at: string;
18041
- field_type: string;
18042
- id: string;
18043
- key: string;
18044
- label: string;
18045
- options: string[];
18046
- required: boolean;
18047
- sort_order: number;
18048
- updated_at: string;
18049
- };
18050
- Insert: {
18051
- created_at?: string;
18052
- field_type?: string;
18053
- id?: string;
18054
- key: string;
18055
- label: string;
18056
- options?: string[];
18057
- required?: boolean;
18058
- sort_order?: number;
18059
- updated_at?: string;
18060
- };
18061
- Update: {
18062
- created_at?: string;
18063
- field_type?: string;
18064
- id?: string;
18065
- key?: string;
18066
- label?: string;
18067
- options?: string[];
18068
- required?: boolean;
18069
- sort_order?: number;
18034
+ travel_km?: number;
18070
18035
  updated_at?: string;
18036
+ werkbon_id?: string | null;
18071
18037
  };
18072
- Relationships: [];
18038
+ Relationships: [{
18039
+ foreignKeyName: "uren_entries_werkbon_id_fkey";
18040
+ columns: ["werkbon_id"];
18041
+ isOneToOne: false;
18042
+ referencedRelation: "werkbonnen";
18043
+ referencedColumns: ["id"];
18044
+ }];
18073
18045
  };
18074
- uren_offertes: {
18046
+ uren_exports: {
18075
18047
  Row: {
18076
18048
  created_at: string;
18077
18049
  created_by: string | null;
18078
- customer_id: string | null;
18079
- customer_name: string | null;
18080
- dynamic_fields: import("../integrations/supabase/types").Json;
18081
- estimated_minutes: number;
18050
+ file_name: string | null;
18082
18051
  id: string;
18083
- note: string | null;
18084
- quote_number: string | null;
18085
- status: string;
18086
- title: string;
18087
- total_excl_cents: number;
18088
- total_incl_cents: number;
18089
- updated_at: string;
18090
- valid_until: string | null;
18091
- vat_percentage: number;
18052
+ monteur_ids: string[];
18053
+ period_end: string;
18054
+ period_start: string;
18055
+ row_count: number;
18092
18056
  };
18093
18057
  Insert: {
18094
18058
  created_at?: string;
18095
18059
  created_by?: string | null;
18096
- customer_id?: string | null;
18097
- customer_name?: string | null;
18098
- dynamic_fields?: import("../integrations/supabase/types").Json;
18099
- estimated_minutes?: number;
18060
+ file_name?: string | null;
18100
18061
  id?: string;
18101
- note?: string | null;
18102
- quote_number?: string | null;
18103
- status?: string;
18104
- title?: string;
18105
- total_excl_cents?: number;
18106
- total_incl_cents?: number;
18107
- updated_at?: string;
18108
- valid_until?: string | null;
18109
- vat_percentage?: number;
18062
+ monteur_ids?: string[];
18063
+ period_end: string;
18064
+ period_start: string;
18065
+ row_count?: number;
18110
18066
  };
18111
18067
  Update: {
18112
18068
  created_at?: string;
18113
18069
  created_by?: string | null;
18114
- customer_id?: string | null;
18115
- customer_name?: string | null;
18116
- dynamic_fields?: import("../integrations/supabase/types").Json;
18117
- estimated_minutes?: number;
18070
+ file_name?: string | null;
18118
18071
  id?: string;
18119
- note?: string | null;
18120
- quote_number?: string | null;
18121
- status?: string;
18122
- title?: string;
18123
- total_excl_cents?: number;
18124
- total_incl_cents?: number;
18125
- updated_at?: string;
18126
- valid_until?: string | null;
18127
- vat_percentage?: number;
18072
+ monteur_ids?: string[];
18073
+ period_end?: string;
18074
+ period_start?: string;
18075
+ row_count?: number;
18128
18076
  };
18129
- Relationships: [{
18130
- foreignKeyName: "uren_offertes_customer_id_fkey";
18131
- columns: ["customer_id"];
18132
- isOneToOne: false;
18133
- referencedRelation: "itk_customers";
18134
- referencedColumns: ["id"];
18135
- }];
18077
+ Relationships: [];
18136
18078
  };
18137
18079
  uren_settings: {
18138
18080
  Row: {
@@ -19820,6 +19762,37 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
19820
19762
  };
19821
19763
  Relationships: [];
19822
19764
  };
19765
+ planning_overview: {
19766
+ Row: {
19767
+ assigned_monteur_id: string | null;
19768
+ assistants: import("../integrations/supabase/types").Json | null;
19769
+ budget_mandate_cents: number | null;
19770
+ created_at: string | null;
19771
+ created_by: string | null;
19772
+ customer_id: string | null;
19773
+ customer_name: string | null;
19774
+ duration_minutes: number | null;
19775
+ end_at: string | null;
19776
+ id: string | null;
19777
+ needs_detail_review: boolean | null;
19778
+ notes: string | null;
19779
+ project_number: string | null;
19780
+ review_reasons: string[] | null;
19781
+ start_at: string | null;
19782
+ status: import("../integrations/supabase/types").Database["public"]["Enums"]["planning_item_status"] | null;
19783
+ updated_at: string | null;
19784
+ viewer_role: string | null;
19785
+ werkbon_id: string | null;
19786
+ work_address: string | null;
19787
+ };
19788
+ Relationships: [{
19789
+ foreignKeyName: "planning_items_werkbon_id_fkey";
19790
+ columns: ["werkbon_id"];
19791
+ isOneToOne: false;
19792
+ referencedRelation: "werkbonnen";
19793
+ referencedColumns: ["id"];
19794
+ }];
19795
+ };
19823
19796
  product_group_stock_view: {
19824
19797
  Row: {
19825
19798
  item_count: number | null;
@@ -20415,6 +20388,18 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
20415
20388
  Args: never;
20416
20389
  Returns: number;
20417
20390
  };
20391
+ calculate_floriday_desired_stock: {
20392
+ Args: {
20393
+ p_connection_id: string;
20394
+ p_product_id: string;
20395
+ };
20396
+ Returns: {
20397
+ desired_availability: boolean;
20398
+ desired_quantity: number;
20399
+ erp_available: number;
20400
+ stock_mode: string;
20401
+ }[];
20402
+ };
20418
20403
  calculate_layer_stock: {
20419
20404
  Args: {
20420
20405
  p_product_id: string;
@@ -20476,6 +20461,9 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
20476
20461
  is_herprint: boolean;
20477
20462
  kopieen: number;
20478
20463
  layout_id: string | null;
20464
+ lokaal_opgeslagen_op: string | null;
20465
+ lokale_pdf_fout: string | null;
20466
+ lokale_pdf_status: string | null;
20479
20467
  opgepakt_op: string | null;
20480
20468
  paginas: number;
20481
20469
  payload: import("../integrations/supabase/types").Json;
@@ -20484,6 +20472,7 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
20484
20472
  pogingen: number;
20485
20473
  printer_id: string | null;
20486
20474
  render_html: string | null;
20475
+ resultaat_pdf_base64: string | null;
20487
20476
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
20488
20477
  updated_at: string;
20489
20478
  volgende_poging: string | null;
@@ -20505,6 +20494,7 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
20505
20494
  attempts: number;
20506
20495
  connection_id: string;
20507
20496
  created_at: string;
20497
+ dead_lettered_at: string | null;
20508
20498
  desired_available: boolean | null;
20509
20499
  gateway_attempt_id: string | null;
20510
20500
  id: string;
@@ -20513,9 +20503,13 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
20513
20503
  locked_by: string | null;
20514
20504
  next_attempt_at: string;
20515
20505
  number_of_pieces: number;
20506
+ product_id: string | null;
20516
20507
  sent_at: string | null;
20517
20508
  status: string;
20509
+ stock_mode: string | null;
20518
20510
  superseded_by: string | null;
20511
+ target_week: number | null;
20512
+ target_year: number | null;
20519
20513
  trade_item_id: string;
20520
20514
  updated_at: string;
20521
20515
  user_id: string;
@@ -20575,6 +20569,53 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
20575
20569
  isSetofReturn: true;
20576
20570
  };
20577
20571
  };
20572
+ claim_pdf_print_jobs: {
20573
+ Args: {
20574
+ _max?: number;
20575
+ };
20576
+ Returns: {
20577
+ agent_id: string | null;
20578
+ bron_job_id: string | null;
20579
+ created_at: string;
20580
+ documentnaam: string;
20581
+ documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
20582
+ extern_job_id: string | null;
20583
+ foutmelding: string | null;
20584
+ gebruiker_id: string | null;
20585
+ gebruiker_naam: string;
20586
+ gebruikte_bron: string | null;
20587
+ gebruikte_layout_id: string | null;
20588
+ gestart_op: string | null;
20589
+ herkomst: string | null;
20590
+ id: string;
20591
+ idempotentie_sleutel: string | null;
20592
+ is_herprint: boolean;
20593
+ kopieen: number;
20594
+ layout_id: string | null;
20595
+ lokaal_opgeslagen_op: string | null;
20596
+ lokale_pdf_fout: string | null;
20597
+ lokale_pdf_status: string | null;
20598
+ opgepakt_op: string | null;
20599
+ paginas: number;
20600
+ payload: import("../integrations/supabase/types").Json;
20601
+ pdf_base64: string | null;
20602
+ pdf_url: string | null;
20603
+ pogingen: number;
20604
+ printer_id: string | null;
20605
+ render_html: string | null;
20606
+ resultaat_pdf_base64: string | null;
20607
+ status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
20608
+ updated_at: string;
20609
+ volgende_poging: string | null;
20610
+ voltooid_op: string | null;
20611
+ }[];
20612
+ SetofOptions: {
20613
+ from: "*";
20614
+ to: "print_jobs";
20615
+ isOneToOne: false;
20616
+ isSetofReturn: true;
20617
+ };
20618
+ };
20578
20619
  claim_print_jobs: {
20579
20620
  Args: {
20580
20621
  _agent_id: string;
@@ -20599,6 +20640,9 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
20599
20640
  is_herprint: boolean;
20600
20641
  kopieen: number;
20601
20642
  layout_id: string | null;
20643
+ lokaal_opgeslagen_op: string | null;
20644
+ lokale_pdf_fout: string | null;
20645
+ lokale_pdf_status: string | null;
20602
20646
  opgepakt_op: string | null;
20603
20647
  paginas: number;
20604
20648
  payload: import("../integrations/supabase/types").Json;
@@ -20607,6 +20651,7 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
20607
20651
  pogingen: number;
20608
20652
  printer_id: string | null;
20609
20653
  render_html: string | null;
20654
+ resultaat_pdf_base64: string | null;
20610
20655
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
20611
20656
  updated_at: string;
20612
20657
  volgende_poging: string | null;
@@ -20747,6 +20792,8 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
20747
20792
  order_id: string;
20748
20793
  order_source: string;
20749
20794
  pick_date: string;
20795
+ printed_at: string;
20796
+ printed_today: boolean;
20750
20797
  status: string;
20751
20798
  }[];
20752
20799
  };
@@ -20943,6 +20990,24 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
20943
20990
  };
20944
20991
  Returns: string;
20945
20992
  };
20993
+ floriday_capture_stock_snapshot: {
20994
+ Args: never;
20995
+ Returns: number;
20996
+ };
20997
+ floriday_cleanup_stock_queue_v2: {
20998
+ Args: never;
20999
+ Returns: undefined;
21000
+ };
21001
+ floriday_compact_stock_snapshots: {
21002
+ Args: never;
21003
+ Returns: undefined;
21004
+ };
21005
+ floriday_default_owner: {
21006
+ Args: {
21007
+ p_connection_id: string;
21008
+ };
21009
+ Returns: string;
21010
+ };
20946
21011
  floriday_effective_price: {
20947
21012
  Args: {
20948
21013
  _buyer_id: string;
@@ -20960,6 +21025,34 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
20960
21025
  source_id: string;
20961
21026
  }[];
20962
21027
  };
21028
+ floriday_fill_publish_horizon: {
21029
+ Args: never;
21030
+ Returns: number;
21031
+ };
21032
+ floriday_ingest_sales_orders: {
21033
+ Args: {
21034
+ p_limit?: number;
21035
+ };
21036
+ Returns: number;
21037
+ };
21038
+ floriday_publish_horizon_weeks: {
21039
+ Args: never;
21040
+ Returns: number;
21041
+ };
21042
+ floriday_recompute_inventory: {
21043
+ Args: {
21044
+ p_connection_id: string;
21045
+ p_force?: boolean;
21046
+ p_product_id: string;
21047
+ };
21048
+ Returns: undefined;
21049
+ };
21050
+ floriday_requeue_dead_letters: {
21051
+ Args: {
21052
+ p_connection_id?: string;
21053
+ };
21054
+ Returns: number;
21055
+ };
20963
21056
  format_cart_number: {
20964
21057
  Args: {
20965
21058
  p_pick_date: string;
@@ -21176,6 +21269,131 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
21176
21269
  Args: never;
21177
21270
  Returns: string;
21178
21271
  };
21272
+ handover_get: {
21273
+ Args: {
21274
+ _module_id: string;
21275
+ };
21276
+ Returns: import("../integrations/supabase/types").Json;
21277
+ };
21278
+ handover_kern_naam: {
21279
+ Args: {
21280
+ _naam: string;
21281
+ };
21282
+ Returns: string;
21283
+ };
21284
+ handover_ketenmodel: {
21285
+ Args: never;
21286
+ Returns: import("../integrations/supabase/types").Json;
21287
+ };
21288
+ handover_kruisconflicten: {
21289
+ Args: never;
21290
+ Returns: import("../integrations/supabase/types").Json;
21291
+ };
21292
+ handover_list: {
21293
+ Args: never;
21294
+ Returns: import("../integrations/supabase/types").Json;
21295
+ };
21296
+ handover_mag_schrijven: {
21297
+ Args: {
21298
+ _module_id: string;
21299
+ };
21300
+ Returns: boolean;
21301
+ };
21302
+ handover_norm_naam: {
21303
+ Args: {
21304
+ _naam: string;
21305
+ };
21306
+ Returns: string;
21307
+ };
21308
+ handover_publish: {
21309
+ Args: {
21310
+ _bevindingen?: string;
21311
+ _bezit_tabellen?: string[];
21312
+ _conflicten_snapshot?: import("../integrations/supabase/types").Json;
21313
+ _contractfuncties?: string[];
21314
+ _inhoud_md: string;
21315
+ _module_id: string;
21316
+ _module_titel: string;
21317
+ _ontbrekende_contracten?: string[];
21318
+ _samenvatting?: string;
21319
+ };
21320
+ Returns: number;
21321
+ };
21322
+ handover_publish_via_token: {
21323
+ Args: {
21324
+ _bevindingen?: string;
21325
+ _bezit_tabellen?: string[];
21326
+ _conflicten_snapshot?: import("../integrations/supabase/types").Json;
21327
+ _contractfuncties?: string[];
21328
+ _inhoud_md: string;
21329
+ _module_id: string;
21330
+ _module_titel: string;
21331
+ _ontbrekende_contracten?: string[];
21332
+ _samenvatting?: string;
21333
+ _token_hash: string;
21334
+ };
21335
+ Returns: number;
21336
+ };
21337
+ handover_status: {
21338
+ Args: never;
21339
+ Returns: import("../integrations/supabase/types").Json;
21340
+ };
21341
+ handover_synonym_kern: {
21342
+ Args: {
21343
+ _naam: string;
21344
+ };
21345
+ Returns: string;
21346
+ };
21347
+ handover_token_intrekken: {
21348
+ Args: {
21349
+ _id: string;
21350
+ };
21351
+ Returns: boolean;
21352
+ };
21353
+ handover_token_lijst: {
21354
+ Args: never;
21355
+ Returns: import("../integrations/supabase/types").Json;
21356
+ };
21357
+ handover_token_maken: {
21358
+ Args: {
21359
+ _label?: string;
21360
+ _module_id: string;
21361
+ };
21362
+ Returns: string;
21363
+ };
21364
+ handover_update: {
21365
+ Args: {
21366
+ _bezit_tabellen?: string[];
21367
+ _contractfuncties?: string[];
21368
+ _herzieningstermijn_dagen?: number;
21369
+ _inhoud_md?: string;
21370
+ _module_id: string;
21371
+ _module_titel?: string;
21372
+ _samenvatting?: string;
21373
+ _versie: number;
21374
+ };
21375
+ Returns: boolean;
21376
+ } | {
21377
+ Args: {
21378
+ _bevindingen?: string;
21379
+ _bezit_tabellen?: string[];
21380
+ _contractfuncties?: string[];
21381
+ _herzieningstermijn_dagen?: number;
21382
+ _inhoud_md?: string;
21383
+ _module_id: string;
21384
+ _module_titel?: string;
21385
+ _ontbrekende_contracten?: string[];
21386
+ _samenvatting?: string;
21387
+ _versie: number;
21388
+ };
21389
+ Returns: boolean;
21390
+ };
21391
+ handover_versies: {
21392
+ Args: {
21393
+ _module_id: string;
21394
+ };
21395
+ Returns: import("../integrations/supabase/types").Json;
21396
+ };
21179
21397
  has_module_permission: {
21180
21398
  Args: {
21181
21399
  _min: string;
@@ -21195,6 +21413,25 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
21195
21413
  Args: never;
21196
21414
  Returns: boolean;
21197
21415
  };
21416
+ instructie_get: {
21417
+ Args: {
21418
+ _sleutel: string;
21419
+ };
21420
+ Returns: import("../integrations/supabase/types").Json;
21421
+ };
21422
+ instructie_list: {
21423
+ Args: never;
21424
+ Returns: import("../integrations/supabase/types").Json;
21425
+ };
21426
+ instructie_publish: {
21427
+ Args: {
21428
+ _inhoud_md: string;
21429
+ _sleutel: string;
21430
+ _titel: string;
21431
+ _toelichting?: string;
21432
+ };
21433
+ Returns: number;
21434
+ };
21198
21435
  invoice_create_from_source: {
21199
21436
  Args: {
21200
21437
  _payload?: import("../integrations/supabase/types").Json;
@@ -21419,6 +21656,12 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
21419
21656
  };
21420
21657
  Returns: boolean;
21421
21658
  };
21659
+ logistics_barcode_lookup: {
21660
+ Args: {
21661
+ p_barcode: string;
21662
+ };
21663
+ Returns: import("../integrations/supabase/types").Json;
21664
+ };
21422
21665
  logistics_buffer_criteria: {
21423
21666
  Args: {
21424
21667
  p_settings: import("../integrations/supabase/types").Json;
@@ -21455,6 +21698,10 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
21455
21698
  };
21456
21699
  Returns: number;
21457
21700
  };
21701
+ logistics_cancel_orphan_tasks: {
21702
+ Args: never;
21703
+ Returns: number;
21704
+ };
21458
21705
  logistics_capacity_day_check: {
21459
21706
  Args: {
21460
21707
  p_from?: string;
@@ -21475,6 +21722,41 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
21475
21722
  };
21476
21723
  Returns: number;
21477
21724
  };
21725
+ logistics_cart_barcode_value: {
21726
+ Args: {
21727
+ _cart_id: string;
21728
+ };
21729
+ Returns: string;
21730
+ };
21731
+ logistics_cart_index: {
21732
+ Args: {
21733
+ p_from?: string;
21734
+ p_to?: string;
21735
+ };
21736
+ Returns: {
21737
+ cart_id: string;
21738
+ cart_index: number;
21739
+ cart_label: string;
21740
+ delivery_date: string;
21741
+ is_announced: boolean;
21742
+ is_controlled: boolean;
21743
+ is_printed: boolean;
21744
+ is_shared: boolean;
21745
+ order_number: string;
21746
+ order_source: string;
21747
+ order_uuid: string;
21748
+ pick_date: string;
21749
+ printed_at: string;
21750
+ shifted: boolean;
21751
+ task_status: string;
21752
+ }[];
21753
+ };
21754
+ logistics_cart_slip_plan: {
21755
+ Args: {
21756
+ p_order_id: string;
21757
+ };
21758
+ Returns: import("../integrations/supabase/types").Json;
21759
+ };
21478
21760
  logistics_check_order_allowed: {
21479
21761
  Args: {
21480
21762
  p_lines: import("../integrations/supabase/types").Json;
@@ -21623,6 +21905,21 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
21623
21905
  isSetofReturn: false;
21624
21906
  };
21625
21907
  };
21908
+ logistics_consistency_check: {
21909
+ Args: never;
21910
+ Returns: {
21911
+ agenda_carts: number;
21912
+ announced_carts: number;
21913
+ control_carts: number;
21914
+ delivery_carts: number;
21915
+ ok: boolean;
21916
+ orphan_tasks: number;
21917
+ pick_date: string;
21918
+ raw_carts: number;
21919
+ sales_carts: number;
21920
+ station_carts: number;
21921
+ }[];
21922
+ };
21626
21923
  logistics_delay_customer_email: {
21627
21924
  Args: {
21628
21925
  p_customer: string;
@@ -21636,12 +21933,35 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
21636
21933
  subject: string;
21637
21934
  }[];
21638
21935
  };
21936
+ logistics_delivery_agenda: {
21937
+ Args: {
21938
+ p_from?: string;
21939
+ p_to?: string;
21940
+ };
21941
+ Returns: {
21942
+ announced_count: number;
21943
+ cart_count: number;
21944
+ controlled_count: number;
21945
+ delivery_date: string;
21946
+ order_count: number;
21947
+ orders: import("../integrations/supabase/types").Json;
21948
+ plant_count: number;
21949
+ printed_count: number;
21950
+ }[];
21951
+ };
21639
21952
  logistics_document_layout: {
21640
21953
  Args: {
21641
21954
  _document_code: string;
21642
21955
  };
21643
21956
  Returns: import("../integrations/supabase/types").Json;
21644
21957
  };
21958
+ logistics_document_layout_v2: {
21959
+ Args: {
21960
+ _document_code: string;
21961
+ _is_partial?: boolean;
21962
+ };
21963
+ Returns: import("../integrations/supabase/types").Json;
21964
+ };
21645
21965
  logistics_document_station: {
21646
21966
  Args: {
21647
21967
  _document_code: string;
@@ -21667,6 +21987,12 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
21667
21987
  };
21668
21988
  Returns: import("../integrations/supabase/types").Json;
21669
21989
  };
21990
+ logistics_ensure_cart_barcode: {
21991
+ Args: {
21992
+ _cart_id: string;
21993
+ };
21994
+ Returns: string;
21995
+ };
21670
21996
  logistics_fail_task: {
21671
21997
  Args: {
21672
21998
  p_error: string;
@@ -21712,6 +22038,16 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
21712
22038
  isSetofReturn: false;
21713
22039
  };
21714
22040
  };
22041
+ logistics_floriday_cart_plan: {
22042
+ Args: {
22043
+ p_order_id: string;
22044
+ };
22045
+ Returns: {
22046
+ carrier_type: string;
22047
+ idx: number;
22048
+ packages: number;
22049
+ }[];
22050
+ };
21715
22051
  logistics_floriday_claim_pushes: {
21716
22052
  Args: {
21717
22053
  _lease_seconds?: number;
@@ -21816,6 +22152,25 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
21816
22152
  };
21817
22153
  Returns: number;
21818
22154
  };
22155
+ logistics_order_overview: {
22156
+ Args: {
22157
+ p_from?: string;
22158
+ p_to?: string;
22159
+ };
22160
+ Returns: {
22161
+ cart_count: number;
22162
+ customer_name: string;
22163
+ delivery_date: string;
22164
+ order_number: string;
22165
+ order_source: string;
22166
+ order_uuid: string;
22167
+ pick_date: string;
22168
+ plant_count: number;
22169
+ printed_at: string;
22170
+ shifted: boolean;
22171
+ status: string;
22172
+ }[];
22173
+ };
21819
22174
  logistics_order_pick_day: {
21820
22175
  Args: {
21821
22176
  p_order_ref: string;
@@ -21828,6 +22183,22 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
21828
22183
  };
21829
22184
  Returns: string;
21830
22185
  };
22186
+ logistics_pick_agenda: {
22187
+ Args: {
22188
+ p_from?: string;
22189
+ p_to?: string;
22190
+ };
22191
+ Returns: {
22192
+ cart_count: number;
22193
+ in_preparation: number;
22194
+ order_count: number;
22195
+ orders: import("../integrations/supabase/types").Json;
22196
+ pick_date: string;
22197
+ plant_count: number;
22198
+ ready: number;
22199
+ shifted_count: number;
22200
+ }[];
22201
+ };
21831
22202
  logistics_pick_email_purpose: {
21832
22203
  Args: never;
21833
22204
  Returns: string;
@@ -21882,6 +22253,13 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
21882
22253
  };
21883
22254
  Returns: undefined;
21884
22255
  };
22256
+ logistics_plan_floriday_order: {
22257
+ Args: {
22258
+ p_buffer_id?: string;
22259
+ p_order_id: string;
22260
+ };
22261
+ Returns: number;
22262
+ };
21885
22263
  logistics_plan_impact_orders: {
21886
22264
  Args: {
21887
22265
  p_order_id: string;
@@ -21987,6 +22365,15 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
21987
22365
  };
21988
22366
  Returns: import("../integrations/supabase/types").Json;
21989
22367
  };
22368
+ logistics_resolve_pick_document: {
22369
+ Args: {
22370
+ _is_herprint: boolean;
22371
+ _queue_item_id: string;
22372
+ _session_id: string;
22373
+ _voorbeeld: boolean;
22374
+ };
22375
+ Returns: import("../integrations/supabase/types").Json;
22376
+ };
21990
22377
  logistics_resolve_settings: {
21991
22378
  Args: {
21992
22379
  p_config_id: string;
@@ -22066,6 +22453,14 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
22066
22453
  };
22067
22454
  Returns: string;
22068
22455
  };
22456
+ logistics_shipping_note_from_barcode: {
22457
+ Args: {
22458
+ p_allow_reprint?: boolean;
22459
+ p_barcode: string;
22460
+ p_station_id?: string;
22461
+ };
22462
+ Returns: import("../integrations/supabase/types").Json;
22463
+ };
22069
22464
  logistics_supersede_stale_tasks: {
22070
22465
  Args: {
22071
22466
  p_keep: string[];
@@ -22287,6 +22682,7 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
22287
22682
  print_job_id: string | null;
22288
22683
  printed_at: string | null;
22289
22684
  printed_by: string | null;
22685
+ printed_cart_ids: import("../integrations/supabase/types").Json;
22290
22686
  printer_id: string | null;
22291
22687
  priority: number;
22292
22688
  reference: string | null;
@@ -22336,6 +22732,7 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
22336
22732
  print_job_id: string | null;
22337
22733
  printed_at: string | null;
22338
22734
  printed_by: string | null;
22735
+ printed_cart_ids: import("../integrations/supabase/types").Json;
22339
22736
  printer_id: string | null;
22340
22737
  priority: number;
22341
22738
  reference: string | null;
@@ -22390,6 +22787,56 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
22390
22787
  print_job_id: string | null;
22391
22788
  printed_at: string | null;
22392
22789
  printed_by: string | null;
22790
+ printed_cart_ids: import("../integrations/supabase/types").Json;
22791
+ printer_id: string | null;
22792
+ priority: number;
22793
+ reference: string | null;
22794
+ route: string | null;
22795
+ screen_id: string | null;
22796
+ station_id: string | null;
22797
+ status_id: string | null;
22798
+ updated_at: string;
22799
+ warnings: import("../integrations/supabase/types").Json;
22800
+ };
22801
+ SetofOptions: {
22802
+ from: "*";
22803
+ to: "pick_queue";
22804
+ isOneToOne: true;
22805
+ isSetofReturn: false;
22806
+ };
22807
+ };
22808
+ pick_complete_print_cart: {
22809
+ Args: {
22810
+ _cart_id: string;
22811
+ _printer_id: string;
22812
+ _queue_item_id: string;
22813
+ _session_id: string;
22814
+ };
22815
+ Returns: {
22816
+ announced_at: string;
22817
+ assigned_user_id: string | null;
22818
+ barcode: string | null;
22819
+ cancelled_at: string | null;
22820
+ cart_count: number;
22821
+ completed_at: string | null;
22822
+ country_code: string | null;
22823
+ created_at: string;
22824
+ customer_name: string | null;
22825
+ delivery_address: string | null;
22826
+ document_number: string | null;
22827
+ document_type_id: string | null;
22828
+ due_at: string | null;
22829
+ id: string;
22830
+ is_urgent: boolean;
22831
+ line_count: number;
22832
+ order_number: string | null;
22833
+ order_type: string | null;
22834
+ payload: import("../integrations/supabase/types").Json;
22835
+ print_count: number;
22836
+ print_job_id: string | null;
22837
+ printed_at: string | null;
22838
+ printed_by: string | null;
22839
+ printed_cart_ids: import("../integrations/supabase/types").Json;
22393
22840
  printer_id: string | null;
22394
22841
  priority: number;
22395
22842
  reference: string | null;
@@ -22433,6 +22880,15 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
22433
22880
  _session_id?: string;
22434
22881
  };
22435
22882
  Returns: string;
22883
+ } | {
22884
+ Args: {
22885
+ _cart_id: string;
22886
+ _is_herprint: boolean;
22887
+ _printer_id: string;
22888
+ _queue_item_id: string;
22889
+ _session_id: string;
22890
+ };
22891
+ Returns: string;
22436
22892
  };
22437
22893
  pick_order_context: {
22438
22894
  Args: {
@@ -22441,6 +22897,13 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
22441
22897
  };
22442
22898
  Returns: import("../integrations/supabase/types").Json;
22443
22899
  };
22900
+ pick_preview_job: {
22901
+ Args: {
22902
+ _queue_item_id: string;
22903
+ _station_slug: string;
22904
+ };
22905
+ Returns: import("../integrations/supabase/types").Json;
22906
+ };
22444
22907
  pick_print_job_status: {
22445
22908
  Args: {
22446
22909
  _job_id: string;
@@ -22506,6 +22969,54 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
22506
22969
  print_job_id: string | null;
22507
22970
  printed_at: string | null;
22508
22971
  printed_by: string | null;
22972
+ printed_cart_ids: import("../integrations/supabase/types").Json;
22973
+ printer_id: string | null;
22974
+ priority: number;
22975
+ reference: string | null;
22976
+ route: string | null;
22977
+ screen_id: string | null;
22978
+ station_id: string | null;
22979
+ status_id: string | null;
22980
+ updated_at: string;
22981
+ warnings: import("../integrations/supabase/types").Json;
22982
+ };
22983
+ SetofOptions: {
22984
+ from: "*";
22985
+ to: "pick_queue";
22986
+ isOneToOne: true;
22987
+ isSetofReturn: false;
22988
+ };
22989
+ } | {
22990
+ Args: {
22991
+ _cart_id?: string;
22992
+ _queue_item_id: string;
22993
+ _session_id: string;
22994
+ };
22995
+ Returns: {
22996
+ announced_at: string;
22997
+ assigned_user_id: string | null;
22998
+ barcode: string | null;
22999
+ cancelled_at: string | null;
23000
+ cart_count: number;
23001
+ completed_at: string | null;
23002
+ country_code: string | null;
23003
+ created_at: string;
23004
+ customer_name: string | null;
23005
+ delivery_address: string | null;
23006
+ document_number: string | null;
23007
+ document_type_id: string | null;
23008
+ due_at: string | null;
23009
+ id: string;
23010
+ is_urgent: boolean;
23011
+ line_count: number;
23012
+ order_number: string | null;
23013
+ order_type: string | null;
23014
+ payload: import("../integrations/supabase/types").Json;
23015
+ print_count: number;
23016
+ print_job_id: string | null;
23017
+ printed_at: string | null;
23018
+ printed_by: string | null;
23019
+ printed_cart_ids: import("../integrations/supabase/types").Json;
22509
23020
  printer_id: string | null;
22510
23021
  priority: number;
22511
23022
  reference: string | null;
@@ -22618,6 +23129,66 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
22618
23129
  };
22619
23130
  Returns: undefined;
22620
23131
  };
23132
+ planning_cancel_item: {
23133
+ Args: {
23134
+ _id: string;
23135
+ };
23136
+ Returns: undefined;
23137
+ };
23138
+ planning_list: {
23139
+ Args: {
23140
+ _from: string;
23141
+ _to: string;
23142
+ };
23143
+ Returns: {
23144
+ assigned_monteur_id: string | null;
23145
+ assistants: import("../integrations/supabase/types").Json | null;
23146
+ budget_mandate_cents: number | null;
23147
+ created_at: string | null;
23148
+ created_by: string | null;
23149
+ customer_id: string | null;
23150
+ customer_name: string | null;
23151
+ duration_minutes: number | null;
23152
+ end_at: string | null;
23153
+ id: string | null;
23154
+ needs_detail_review: boolean | null;
23155
+ notes: string | null;
23156
+ project_number: string | null;
23157
+ review_reasons: string[] | null;
23158
+ start_at: string | null;
23159
+ status: import("../integrations/supabase/types").Database["public"]["Enums"]["planning_item_status"] | null;
23160
+ updated_at: string | null;
23161
+ viewer_role: string | null;
23162
+ werkbon_id: string | null;
23163
+ work_address: string | null;
23164
+ }[];
23165
+ SetofOptions: {
23166
+ from: "*";
23167
+ to: "planning_overview";
23168
+ isOneToOne: false;
23169
+ isSetofReturn: true;
23170
+ };
23171
+ };
23172
+ planning_set_assistants: {
23173
+ Args: {
23174
+ _monteur_ids: string[];
23175
+ _planning_item_id: string;
23176
+ };
23177
+ Returns: undefined;
23178
+ };
23179
+ planning_upsert_item: {
23180
+ Args: {
23181
+ _assigned_monteur_id: string;
23182
+ _end_at: string;
23183
+ _notes?: string;
23184
+ _start_at: string;
23185
+ _werkbon_id: string;
23186
+ };
23187
+ Returns: {
23188
+ action: string;
23189
+ id: string;
23190
+ }[];
23191
+ };
22621
23192
  print_preview_toestaan: {
22622
23193
  Args: {
22623
23194
  _max?: number;
@@ -22790,6 +23361,12 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
22790
23361
  };
22791
23362
  Returns: string;
22792
23363
  };
23364
+ resolve_print_job_printer_id: {
23365
+ Args: {
23366
+ _job: import("../integrations/supabase/types").Database["public"]["Tables"]["print_jobs"]["Row"];
23367
+ };
23368
+ Returns: string;
23369
+ };
22793
23370
  resolve_product_id_for_item: {
22794
23371
  Args: {
22795
23372
  p_product_name: string;
@@ -23193,6 +23770,26 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
23193
23770
  };
23194
23771
  Returns: string[];
23195
23772
  };
23773
+ start_time_log_at: {
23774
+ Args: {
23775
+ p_clicked_at?: string;
23776
+ p_employee_id: string;
23777
+ p_start_lat?: number;
23778
+ p_start_lng?: number;
23779
+ p_type: string;
23780
+ p_work_order_id?: string;
23781
+ };
23782
+ Returns: import("../integrations/supabase/types").Json;
23783
+ };
23784
+ stop_time_log: {
23785
+ Args: {
23786
+ p_employee_id: string;
23787
+ p_end_lat?: number;
23788
+ p_end_lng?: number;
23789
+ p_end_time: string;
23790
+ };
23791
+ Returns: import("../integrations/supabase/types").Json;
23792
+ };
23196
23793
  switch_time_log: {
23197
23794
  Args: {
23198
23795
  p_employee_id: string;
@@ -23381,7 +23978,7 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
23381
23978
  };
23382
23979
  CompositeTypes: { [_ in never]: never; };
23383
23980
  }, {
23384
- PostgrestVersion: "14.17";
23981
+ PostgrestVersion: "14.5";
23385
23982
  }>;
23386
23983
  userId: string;
23387
23984
  claims: import("@supabase/auth-js").JwtPayload;