@flowselections/logistiek-engine 1.0.25 → 1.0.27

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 (57) hide show
  1. package/README.md +24 -24
  2. package/dist-lib/components/ConsistentieCard.d.ts +2 -0
  3. package/dist-lib/components/ConsistentieCard.d.ts.map +1 -0
  4. package/dist-lib/components/ConsistentieCard.js +38 -0
  5. package/dist-lib/components/ModulePromptsPage.d.ts.map +1 -1
  6. package/dist-lib/components/ModulePromptsPage.js +11 -3
  7. package/dist-lib/components/RegiePage.d.ts.map +1 -1
  8. package/dist-lib/components/RegiePage.js +2 -1
  9. package/dist-lib/index.d.ts +1 -0
  10. package/dist-lib/index.d.ts.map +1 -1
  11. package/dist-lib/index.js +1 -0
  12. package/dist-lib/integrations/supabase/auth-middleware.d.ts +1048 -715
  13. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  14. package/dist-lib/integrations/supabase/client.server.d.ts +1048 -715
  15. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  16. package/dist-lib/integrations/supabase/client.server.js +1 -1
  17. package/dist-lib/integrations/supabase/moduleClient.d.ts +1048 -715
  18. package/dist-lib/integrations/supabase/moduleClient.d.ts.map +1 -1
  19. package/dist-lib/integrations/supabase/types.d.ts +1081 -768
  20. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  21. package/dist-lib/lib/dimensionData.server.d.ts +27 -0
  22. package/dist-lib/lib/dimensionData.server.d.ts.map +1 -0
  23. package/dist-lib/lib/dimensionData.server.js +157 -0
  24. package/dist-lib/lib/dimensionPlanner.d.ts +70 -0
  25. package/dist-lib/lib/dimensionPlanner.d.ts.map +1 -0
  26. package/dist-lib/lib/dimensionPlanner.js +217 -0
  27. package/dist-lib/lib/floridayDocuments.functions.d.ts +3054 -2055
  28. package/dist-lib/lib/floridayDocuments.functions.d.ts.map +1 -1
  29. package/dist-lib/lib/floridayPush.functions.d.ts +1048 -715
  30. package/dist-lib/lib/floridayPush.functions.d.ts.map +1 -1
  31. package/dist-lib/lib/loadCarrierPlanner.d.ts +3 -0
  32. package/dist-lib/lib/loadCarrierPlanner.d.ts.map +1 -1
  33. package/dist-lib/lib/loadCarrierPlanning.functions.d.ts +5105 -3465
  34. package/dist-lib/lib/loadCarrierPlanning.functions.d.ts.map +1 -1
  35. package/dist-lib/lib/loadCarrierPlanning.server.d.ts +4 -0
  36. package/dist-lib/lib/loadCarrierPlanning.server.d.ts.map +1 -1
  37. package/dist-lib/lib/loadCarrierPlanning.server.js +113 -3
  38. package/dist-lib/lib/logisticsPlanner.d.ts.map +1 -1
  39. package/dist-lib/lib/logisticsPlanner.js +35 -13
  40. package/dist-lib/lib/logisticsRecalcJob.functions.d.ts +1983 -1317
  41. package/dist-lib/lib/logisticsRecalcJob.functions.d.ts.map +1 -1
  42. package/dist-lib/lib/logisticsRecalculate.functions.d.ts +1048 -715
  43. package/dist-lib/lib/logisticsRecalculate.functions.d.ts.map +1 -1
  44. package/dist-lib/lib/modulePrompts.d.ts +19 -3
  45. package/dist-lib/lib/modulePrompts.d.ts.map +1 -1
  46. package/dist-lib/lib/modulePrompts.js +1666 -1298
  47. package/dist-lib/lib/ruleEngineSchema.d.ts.map +1 -1
  48. package/dist-lib/lib/ruleEngineSchema.js +32 -4
  49. package/dist-lib/lib/ruleEngineWizard.d.ts.map +1 -1
  50. package/dist-lib/lib/ruleEngineWizard.js +4 -1
  51. package/package.json +1 -1
  52. package/dist-lib/components/rule-engine/FloridayConnectionBanner.d.ts +0 -2
  53. package/dist-lib/components/rule-engine/FloridayConnectionBanner.d.ts.map +0 -1
  54. package/dist-lib/components/rule-engine/FloridayConnectionBanner.js +0 -41
  55. package/dist-lib/integrations/supabase/client.d.ts +0 -20293
  56. package/dist-lib/integrations/supabase/client.d.ts.map +0 -1
  57. package/dist-lib/integrations/supabase/client.js +0 -13
@@ -5987,10 +5987,7 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
5987
5987
  };
5988
5988
  floriday_connections: {
5989
5989
  Row: {
5990
- access_token: string | null;
5991
5990
  api_key: string;
5992
- client_id: string;
5993
- client_secret: string;
5994
5991
  created_at: string;
5995
5992
  customers_endpoint: string | null;
5996
5993
  environment: string;
@@ -6005,10 +6002,7 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
6005
6002
  updated_at: string;
6006
6003
  };
6007
6004
  Insert: {
6008
- access_token?: string | null;
6009
6005
  api_key: string;
6010
- client_id: string;
6011
- client_secret: string;
6012
6006
  created_at?: string;
6013
6007
  customers_endpoint?: string | null;
6014
6008
  environment: string;
@@ -6023,10 +6017,7 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
6023
6017
  updated_at?: string;
6024
6018
  };
6025
6019
  Update: {
6026
- access_token?: string | null;
6027
6020
  api_key?: string;
6028
- client_id?: string;
6029
- client_secret?: string;
6030
6021
  created_at?: string;
6031
6022
  customers_endpoint?: string | null;
6032
6023
  environment?: string;
@@ -6110,6 +6101,7 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
6110
6101
  attempts: number;
6111
6102
  connection_id: string;
6112
6103
  created_at: string;
6104
+ dead_lettered_at: string | null;
6113
6105
  desired_available: boolean | null;
6114
6106
  gateway_attempt_id: string | null;
6115
6107
  id: string;
@@ -6118,9 +6110,13 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
6118
6110
  locked_by: string | null;
6119
6111
  next_attempt_at: string;
6120
6112
  number_of_pieces: number;
6113
+ product_id: string | null;
6121
6114
  sent_at: string | null;
6122
6115
  status: string;
6116
+ stock_mode: string | null;
6123
6117
  superseded_by: string | null;
6118
+ target_week: number | null;
6119
+ target_year: number | null;
6124
6120
  trade_item_id: string;
6125
6121
  updated_at: string;
6126
6122
  user_id: string;
@@ -6129,6 +6125,7 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
6129
6125
  attempts?: number;
6130
6126
  connection_id: string;
6131
6127
  created_at?: string;
6128
+ dead_lettered_at?: string | null;
6132
6129
  desired_available?: boolean | null;
6133
6130
  gateway_attempt_id?: string | null;
6134
6131
  id?: string;
@@ -6137,9 +6134,13 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
6137
6134
  locked_by?: string | null;
6138
6135
  next_attempt_at?: string;
6139
6136
  number_of_pieces?: number;
6137
+ product_id?: string | null;
6140
6138
  sent_at?: string | null;
6141
6139
  status?: string;
6140
+ stock_mode?: string | null;
6142
6141
  superseded_by?: string | null;
6142
+ target_week?: number | null;
6143
+ target_year?: number | null;
6143
6144
  trade_item_id: string;
6144
6145
  updated_at?: string;
6145
6146
  user_id: string;
@@ -6148,6 +6149,7 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
6148
6149
  attempts?: number;
6149
6150
  connection_id?: string;
6150
6151
  created_at?: string;
6152
+ dead_lettered_at?: string | null;
6151
6153
  desired_available?: boolean | null;
6152
6154
  gateway_attempt_id?: string | null;
6153
6155
  id?: string;
@@ -6156,9 +6158,13 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
6156
6158
  locked_by?: string | null;
6157
6159
  next_attempt_at?: string;
6158
6160
  number_of_pieces?: number;
6161
+ product_id?: string | null;
6159
6162
  sent_at?: string | null;
6160
6163
  status?: string;
6164
+ stock_mode?: string | null;
6161
6165
  superseded_by?: string | null;
6166
+ target_week?: number | null;
6167
+ target_year?: number | null;
6162
6168
  trade_item_id?: string;
6163
6169
  updated_at?: string;
6164
6170
  user_id?: string;
@@ -6567,6 +6573,87 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
6567
6573
  referencedColumns: ["id"];
6568
6574
  }];
6569
6575
  };
6576
+ floriday_inventory_settings: {
6577
+ Row: {
6578
+ buffer_quantity: number;
6579
+ connection_id: string;
6580
+ created_at: string;
6581
+ desired_availability: boolean;
6582
+ desired_quantity: number;
6583
+ fixed_quantity: number | null;
6584
+ floriday_trade_item_id: string | null;
6585
+ id: string;
6586
+ last_confirmed_at: string | null;
6587
+ last_enqueued_at: string | null;
6588
+ last_published_at: string | null;
6589
+ last_sync_error: string | null;
6590
+ manual_quantity: number | null;
6591
+ maximum_quantity: number | null;
6592
+ product_id: string;
6593
+ quantity_control: string;
6594
+ remote_available: boolean | null;
6595
+ remote_checked_at: string | null;
6596
+ remote_quantity: number | null;
6597
+ stock_mode: string;
6598
+ sync_status: string;
6599
+ updated_at: string;
6600
+ updated_by: string | null;
6601
+ user_id: string;
6602
+ };
6603
+ Insert: {
6604
+ buffer_quantity?: number;
6605
+ connection_id: string;
6606
+ created_at?: string;
6607
+ desired_availability?: boolean;
6608
+ desired_quantity?: number;
6609
+ fixed_quantity?: number | null;
6610
+ floriday_trade_item_id?: string | null;
6611
+ id?: string;
6612
+ last_confirmed_at?: string | null;
6613
+ last_enqueued_at?: string | null;
6614
+ last_published_at?: string | null;
6615
+ last_sync_error?: string | null;
6616
+ manual_quantity?: number | null;
6617
+ maximum_quantity?: number | null;
6618
+ product_id: string;
6619
+ quantity_control?: string;
6620
+ remote_available?: boolean | null;
6621
+ remote_checked_at?: string | null;
6622
+ remote_quantity?: number | null;
6623
+ stock_mode?: string;
6624
+ sync_status?: string;
6625
+ updated_at?: string;
6626
+ updated_by?: string | null;
6627
+ user_id: string;
6628
+ };
6629
+ Update: {
6630
+ buffer_quantity?: number;
6631
+ connection_id?: string;
6632
+ created_at?: string;
6633
+ desired_availability?: boolean;
6634
+ desired_quantity?: number;
6635
+ fixed_quantity?: number | null;
6636
+ floriday_trade_item_id?: string | null;
6637
+ id?: string;
6638
+ last_confirmed_at?: string | null;
6639
+ last_enqueued_at?: string | null;
6640
+ last_published_at?: string | null;
6641
+ last_sync_error?: string | null;
6642
+ manual_quantity?: number | null;
6643
+ maximum_quantity?: number | null;
6644
+ product_id?: string;
6645
+ quantity_control?: string;
6646
+ remote_available?: boolean | null;
6647
+ remote_checked_at?: string | null;
6648
+ remote_quantity?: number | null;
6649
+ stock_mode?: string;
6650
+ sync_status?: string;
6651
+ updated_at?: string;
6652
+ updated_by?: string | null;
6653
+ user_id?: string;
6654
+ };
6655
+ Relationships: [];
6656
+ };
6570
6657
  floriday_invoices_cache: {
6571
6658
  Row: {
6572
6659
  buyer_organization_id: string | null;
@@ -6855,6 +6942,39 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
6855
6942
  };
6856
6943
  Relationships: [];
6857
6944
  };
6945
+ floriday_sales_order_ingest: {
6946
+ Row: {
6947
+ connection_id: string;
6948
+ created_at: string;
6949
+ id: string;
6950
+ impact: import("../integrations/supabase/types").Json;
6951
+ order_status: string | null;
6952
+ order_version: number;
6953
+ processed_at: string;
6954
+ sales_order_id: string;
6955
+ };
6956
+ Insert: {
6957
+ connection_id: string;
6958
+ created_at?: string;
6959
+ id?: string;
6960
+ impact?: import("../integrations/supabase/types").Json;
6961
+ order_status?: string | null;
6962
+ order_version?: number;
6963
+ processed_at?: string;
6964
+ sales_order_id: string;
6965
+ };
6966
+ Update: {
6967
+ connection_id?: string;
6968
+ created_at?: string;
6969
+ id?: string;
6970
+ impact?: import("../integrations/supabase/types").Json;
6971
+ order_status?: string | null;
6972
+ order_version?: number;
6973
+ processed_at?: string;
6974
+ sales_order_id?: string;
6975
+ };
6976
+ Relationships: [];
6977
+ };
6858
6978
  floriday_sales_strategies_cache: {
6859
6979
  Row: {
6860
6980
  connection_id: string;
@@ -6954,6 +7074,39 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
6954
7074
  };
6955
7075
  Relationships: [];
6956
7076
  };
7077
+ floriday_sync_cursors: {
7078
+ Row: {
7079
+ connection_id: string;
7080
+ created_at: string;
7081
+ id: string;
7082
+ last_error: string | null;
7083
+ last_sync_at: string | null;
7084
+ resource_type: string;
7085
+ sequence_number: number;
7086
+ updated_at: string;
7087
+ };
7088
+ Insert: {
7089
+ connection_id: string;
7090
+ created_at?: string;
7091
+ id?: string;
7092
+ last_error?: string | null;
7093
+ last_sync_at?: string | null;
7094
+ resource_type: string;
7095
+ sequence_number?: number;
7096
+ updated_at?: string;
7097
+ };
7098
+ Update: {
7099
+ connection_id?: string;
7100
+ created_at?: string;
7101
+ id?: string;
7102
+ last_error?: string | null;
7103
+ last_sync_at?: string | null;
7104
+ resource_type?: string;
7105
+ sequence_number?: number;
7106
+ updated_at?: string;
7107
+ };
7108
+ Relationships: [];
7109
+ };
6957
7110
  floriday_sync_state: {
6958
7111
  Row: {
6959
7112
  connection_id: string;
@@ -7644,6 +7797,42 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
7644
7797
  };
7645
7798
  Relationships: [];
7646
7799
  };
7800
+ inventory_stock_snapshots: {
7801
+ Row: {
7802
+ connection_id: string;
7803
+ created_at: string;
7804
+ erp_available_quantity: number;
7805
+ floriday_desired_quantity: number;
7806
+ floriday_remote_quantity: number | null;
7807
+ granularity: string;
7808
+ id: string;
7809
+ snapshot_at: string;
7810
+ user_id: string | null;
7811
+ };
7812
+ Insert: {
7813
+ connection_id: string;
7814
+ created_at?: string;
7815
+ erp_available_quantity?: number;
7816
+ floriday_desired_quantity?: number;
7817
+ floriday_remote_quantity?: number | null;
7818
+ granularity?: string;
7819
+ id?: string;
7820
+ snapshot_at?: string;
7821
+ user_id?: string | null;
7822
+ };
7823
+ Update: {
7824
+ connection_id?: string;
7825
+ created_at?: string;
7826
+ erp_available_quantity?: number;
7827
+ floriday_desired_quantity?: number;
7828
+ floriday_remote_quantity?: number | null;
7829
+ granularity?: string;
7830
+ id?: string;
7831
+ snapshot_at?: string;
7832
+ user_id?: string | null;
7833
+ };
7834
+ Relationships: [];
7835
+ };
7647
7836
  invoice_items: {
7648
7837
  Row: {
7649
7838
  created_at: string;
@@ -8152,13 +8341,7 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
8152
8341
  segment?: import("../integrations/supabase/types").Database["public"]["Enums"]["itk_customer_segment"];
8153
8342
  updated_at?: string;
8154
8343
  };
8155
- Relationships: [{
8156
- foreignKeyName: "itk_customers_legacy_customer_id_fkey";
8157
- columns: ["legacy_customer_id"];
8158
- isOneToOne: false;
8159
- referencedRelation: "customers";
8160
- referencedColumns: ["id"];
8161
- }];
8344
+ Relationships: [];
8162
8345
  };
8163
8346
  itk_dynamic_fields: {
8164
8347
  Row: {
@@ -8190,6 +8373,180 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
8190
8373
  };
8191
8374
  Relationships: [];
8192
8375
  };
8376
+ itk_handover_rechten: {
8377
+ Row: {
8378
+ created_at: string;
8379
+ id: string;
8380
+ module_id: string;
8381
+ rol: import("../integrations/supabase/types").Database["public"]["Enums"]["app_role"] | null;
8382
+ updated_at: string;
8383
+ user_id: string | null;
8384
+ };
8385
+ Insert: {
8386
+ created_at?: string;
8387
+ id?: string;
8388
+ module_id: string;
8389
+ rol?: import("../integrations/supabase/types").Database["public"]["Enums"]["app_role"] | null;
8390
+ updated_at?: string;
8391
+ user_id?: string | null;
8392
+ };
8393
+ Update: {
8394
+ created_at?: string;
8395
+ id?: string;
8396
+ module_id?: string;
8397
+ rol?: import("../integrations/supabase/types").Database["public"]["Enums"]["app_role"] | null;
8398
+ updated_at?: string;
8399
+ user_id?: string | null;
8400
+ };
8401
+ Relationships: [];
8402
+ };
8403
+ itk_handover_tokens: {
8404
+ Row: {
8405
+ aangemaakt_door: string | null;
8406
+ created_at: string;
8407
+ id: string;
8408
+ is_actief: boolean;
8409
+ laatst_gebruikt_op: string | null;
8410
+ label: string;
8411
+ module_id: string;
8412
+ token_hash: string;
8413
+ updated_at: string;
8414
+ verloopt_op: string | null;
8415
+ };
8416
+ Insert: {
8417
+ aangemaakt_door?: string | null;
8418
+ created_at?: string;
8419
+ id?: string;
8420
+ is_actief?: boolean;
8421
+ laatst_gebruikt_op?: string | null;
8422
+ label?: string;
8423
+ module_id: string;
8424
+ token_hash: string;
8425
+ updated_at?: string;
8426
+ verloopt_op?: string | null;
8427
+ };
8428
+ Update: {
8429
+ aangemaakt_door?: string | null;
8430
+ created_at?: string;
8431
+ id?: string;
8432
+ is_actief?: boolean;
8433
+ laatst_gebruikt_op?: string | null;
8434
+ label?: string;
8435
+ module_id?: string;
8436
+ token_hash?: string;
8437
+ updated_at?: string;
8438
+ verloopt_op?: string | null;
8439
+ };
8440
+ Relationships: [];
8441
+ };
8442
+ itk_module_handovers: {
8443
+ Row: {
8444
+ bevindingen: string | null;
8445
+ bezit_tabellen: string[];
8446
+ conflicten_snapshot: import("../integrations/supabase/types").Json;
8447
+ contractfuncties: string[];
8448
+ created_at: string;
8449
+ eigenaar_module_id: string | null;
8450
+ gepubliceerd_door: string | null;
8451
+ gepubliceerd_op: string;
8452
+ herzieningstermijn_dagen: number;
8453
+ id: string;
8454
+ inhoud_md: string;
8455
+ is_actueel: boolean;
8456
+ module_id: string;
8457
+ module_titel: string;
8458
+ ontbrekende_contracten: string[];
8459
+ samenvatting: string | null;
8460
+ updated_at: string;
8461
+ versie: number;
8462
+ };
8463
+ Insert: {
8464
+ bevindingen?: string | null;
8465
+ bezit_tabellen?: string[];
8466
+ conflicten_snapshot?: import("../integrations/supabase/types").Json;
8467
+ contractfuncties?: string[];
8468
+ created_at?: string;
8469
+ eigenaar_module_id?: string | null;
8470
+ gepubliceerd_door?: string | null;
8471
+ gepubliceerd_op?: string;
8472
+ herzieningstermijn_dagen?: number;
8473
+ id?: string;
8474
+ inhoud_md: string;
8475
+ is_actueel?: boolean;
8476
+ module_id: string;
8477
+ module_titel: string;
8478
+ ontbrekende_contracten?: string[];
8479
+ samenvatting?: string | null;
8480
+ updated_at?: string;
8481
+ versie?: number;
8482
+ };
8483
+ Update: {
8484
+ bevindingen?: string | null;
8485
+ bezit_tabellen?: string[];
8486
+ conflicten_snapshot?: import("../integrations/supabase/types").Json;
8487
+ contractfuncties?: string[];
8488
+ created_at?: string;
8489
+ eigenaar_module_id?: string | null;
8490
+ gepubliceerd_door?: string | null;
8491
+ gepubliceerd_op?: string;
8492
+ herzieningstermijn_dagen?: number;
8493
+ id?: string;
8494
+ inhoud_md?: string;
8495
+ is_actueel?: boolean;
8496
+ module_id?: string;
8497
+ module_titel?: string;
8498
+ ontbrekende_contracten?: string[];
8499
+ samenvatting?: string | null;
8500
+ updated_at?: string;
8501
+ versie?: number;
8502
+ };
8503
+ Relationships: [];
8504
+ };
8505
+ itk_module_instructies: {
8506
+ Row: {
8507
+ created_at: string;
8508
+ eigenaar_module_id: string;
8509
+ gepubliceerd_door: string | null;
8510
+ gepubliceerd_op: string;
8511
+ id: string;
8512
+ inhoud_md: string;
8513
+ is_actueel: boolean;
8514
+ sleutel: string;
8515
+ titel: string;
8516
+ toelichting: string | null;
8517
+ updated_at: string;
8518
+ versie: number;
8519
+ };
8520
+ Insert: {
8521
+ created_at?: string;
8522
+ eigenaar_module_id?: string;
8523
+ gepubliceerd_door?: string | null;
8524
+ gepubliceerd_op?: string;
8525
+ id?: string;
8526
+ inhoud_md: string;
8527
+ is_actueel?: boolean;
8528
+ sleutel: string;
8529
+ titel: string;
8530
+ toelichting?: string | null;
8531
+ updated_at?: string;
8532
+ versie?: number;
8533
+ };
8534
+ Update: {
8535
+ created_at?: string;
8536
+ eigenaar_module_id?: string;
8537
+ gepubliceerd_door?: string | null;
8538
+ gepubliceerd_op?: string;
8539
+ id?: string;
8540
+ inhoud_md?: string;
8541
+ is_actueel?: boolean;
8542
+ sleutel?: string;
8543
+ titel?: string;
8544
+ toelichting?: string | null;
8545
+ updated_at?: string;
8546
+ versie?: number;
8547
+ };
8548
+ Relationships: [];
8549
+ };
8193
8550
  itk_offerte_events: {
8194
8551
  Row: {
8195
8552
  created_at: string;
@@ -9048,6 +9405,27 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
9048
9405
  };
9049
9406
  Relationships: [];
9050
9407
  };
9408
+ logistics_cart_barcode: {
9409
+ Row: {
9410
+ barcode: string;
9411
+ cart_id: string;
9412
+ created_at: string;
9413
+ order_id: string | null;
9414
+ };
9415
+ Insert: {
9416
+ barcode: string;
9417
+ cart_id: string;
9418
+ created_at?: string;
9419
+ order_id?: string | null;
9420
+ };
9421
+ Update: {
9422
+ barcode?: string;
9423
+ cart_id?: string;
9424
+ created_at?: string;
9425
+ order_id?: string | null;
9426
+ };
9427
+ Relationships: [];
9428
+ };
9051
9429
  logistics_decisions: {
9052
9430
  Row: {
9053
9431
  created_at: string;
@@ -9876,6 +10254,36 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
9876
10254
  referencedColumns: ["id"];
9877
10255
  }];
9878
10256
  };
10257
+ logistics_shipping_note_scan: {
10258
+ Row: {
10259
+ barcode: string;
10260
+ cart_id: string;
10261
+ id: string;
10262
+ is_reprint: boolean;
10263
+ order_id: string | null;
10264
+ print_job_id: string | null;
10265
+ scanned_at: string;
10266
+ };
10267
+ Insert: {
10268
+ barcode: string;
10269
+ cart_id: string;
10270
+ id?: string;
10271
+ is_reprint?: boolean;
10272
+ order_id?: string | null;
10273
+ print_job_id?: string | null;
10274
+ scanned_at?: string;
10275
+ };
10276
+ Update: {
10277
+ barcode?: string;
10278
+ cart_id?: string;
10279
+ id?: string;
10280
+ is_reprint?: boolean;
10281
+ order_id?: string | null;
10282
+ print_job_id?: string | null;
10283
+ scanned_at?: string;
10284
+ };
10285
+ Relationships: [];
10286
+ };
9879
10287
  logistics_staff_planning: {
9880
10288
  Row: {
9881
10289
  created_at: string;
@@ -12697,6 +13105,7 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
12697
13105
  print_job_id: string | null;
12698
13106
  printed_at: string | null;
12699
13107
  printed_by: string | null;
13108
+ printed_cart_ids: import("../integrations/supabase/types").Json;
12700
13109
  printer_id: string | null;
12701
13110
  priority: number;
12702
13111
  reference: string | null;
@@ -12731,6 +13140,7 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
12731
13140
  print_job_id?: string | null;
12732
13141
  printed_at?: string | null;
12733
13142
  printed_by?: string | null;
13143
+ printed_cart_ids?: import("../integrations/supabase/types").Json;
12734
13144
  printer_id?: string | null;
12735
13145
  priority?: number;
12736
13146
  reference?: string | null;
@@ -12765,6 +13175,7 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
12765
13175
  print_job_id?: string | null;
12766
13176
  printed_at?: string | null;
12767
13177
  printed_by?: string | null;
13178
+ printed_cart_ids?: import("../integrations/supabase/types").Json;
12768
13179
  printer_id?: string | null;
12769
13180
  priority?: number;
12770
13181
  reference?: string | null;
@@ -13564,6 +13975,12 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
13564
13975
  isOneToOne: false;
13565
13976
  referencedRelation: "planning_items";
13566
13977
  referencedColumns: ["id"];
13978
+ }, {
13979
+ foreignKeyName: "planning_item_assistants_planning_item_id_fkey";
13980
+ columns: ["planning_item_id"];
13981
+ isOneToOne: false;
13982
+ referencedRelation: "planning_overview";
13983
+ referencedColumns: ["id"];
13567
13984
  }];
13568
13985
  };
13569
13986
  planning_items: {
@@ -15141,450 +15558,6 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
15141
15558
  referencedColumns: ["id"];
15142
15559
  }];
15143
15560
  };
15144
- quote_activities: {
15145
- Row: {
15146
- created_at: string;
15147
- event_type: string;
15148
- id: string;
15149
- metadata: import("../integrations/supabase/types").Json;
15150
- quote_id: string;
15151
- user_id: string | null;
15152
- };
15153
- Insert: {
15154
- created_at?: string;
15155
- event_type: string;
15156
- id?: string;
15157
- metadata?: import("../integrations/supabase/types").Json;
15158
- quote_id: string;
15159
- user_id?: string | null;
15160
- };
15161
- Update: {
15162
- created_at?: string;
15163
- event_type?: string;
15164
- id?: string;
15165
- metadata?: import("../integrations/supabase/types").Json;
15166
- quote_id?: string;
15167
- user_id?: string | null;
15168
- };
15169
- Relationships: [{
15170
- foreignKeyName: "quote_activities_quote_id_fkey";
15171
- columns: ["quote_id"];
15172
- isOneToOne: false;
15173
- referencedRelation: "quotes";
15174
- referencedColumns: ["id"];
15175
- }];
15176
- };
15177
- quote_attachments: {
15178
- Row: {
15179
- created_at: string;
15180
- file_name: string;
15181
- file_size: number | null;
15182
- file_url: string;
15183
- id: string;
15184
- mime_type: string | null;
15185
- quote_id: string;
15186
- };
15187
- Insert: {
15188
- created_at?: string;
15189
- file_name: string;
15190
- file_size?: number | null;
15191
- file_url: string;
15192
- id?: string;
15193
- mime_type?: string | null;
15194
- quote_id: string;
15195
- };
15196
- Update: {
15197
- created_at?: string;
15198
- file_name?: string;
15199
- file_size?: number | null;
15200
- file_url?: string;
15201
- id?: string;
15202
- mime_type?: string | null;
15203
- quote_id?: string;
15204
- };
15205
- Relationships: [{
15206
- foreignKeyName: "quote_attachments_quote_id_fkey";
15207
- columns: ["quote_id"];
15208
- isOneToOne: false;
15209
- referencedRelation: "quotes";
15210
- referencedColumns: ["id"];
15211
- }];
15212
- };
15213
- quote_field_options: {
15214
- Row: {
15215
- created_at: string;
15216
- field_id: string;
15217
- id: string;
15218
- label: string;
15219
- sort_order: number;
15220
- value: string;
15221
- };
15222
- Insert: {
15223
- created_at?: string;
15224
- field_id: string;
15225
- id?: string;
15226
- label: string;
15227
- sort_order?: number;
15228
- value: string;
15229
- };
15230
- Update: {
15231
- created_at?: string;
15232
- field_id?: string;
15233
- id?: string;
15234
- label?: string;
15235
- sort_order?: number;
15236
- value?: string;
15237
- };
15238
- Relationships: [{
15239
- foreignKeyName: "quote_field_options_field_id_fkey";
15240
- columns: ["field_id"];
15241
- isOneToOne: false;
15242
- referencedRelation: "quote_field_settings";
15243
- referencedColumns: ["id"];
15244
- }];
15245
- };
15246
- quote_field_settings: {
15247
- Row: {
15248
- created_at: string;
15249
- default_value: string | null;
15250
- field_key: string;
15251
- field_type: string;
15252
- id: string;
15253
- is_system: boolean;
15254
- label: string;
15255
- required: boolean;
15256
- sort_order: number;
15257
- updated_at: string;
15258
- visible: boolean;
15259
- };
15260
- Insert: {
15261
- created_at?: string;
15262
- default_value?: string | null;
15263
- field_key: string;
15264
- field_type: string;
15265
- id?: string;
15266
- is_system?: boolean;
15267
- label: string;
15268
- required?: boolean;
15269
- sort_order?: number;
15270
- updated_at?: string;
15271
- visible?: boolean;
15272
- };
15273
- Update: {
15274
- created_at?: string;
15275
- default_value?: string | null;
15276
- field_key?: string;
15277
- field_type?: string;
15278
- id?: string;
15279
- is_system?: boolean;
15280
- label?: string;
15281
- required?: boolean;
15282
- sort_order?: number;
15283
- updated_at?: string;
15284
- visible?: boolean;
15285
- };
15286
- Relationships: [];
15287
- };
15288
- quote_items: {
15289
- Row: {
15290
- category: string | null;
15291
- created_at: string;
15292
- description: string;
15293
- id: string;
15294
- line_total: number;
15295
- module_id: string | null;
15296
- name: string | null;
15297
- quantity: number;
15298
- quote_id: string;
15299
- sort_order: number;
15300
- unit_price: number;
15301
- };
15302
- Insert: {
15303
- category?: string | null;
15304
- created_at?: string;
15305
- description?: string;
15306
- id?: string;
15307
- line_total?: number;
15308
- module_id?: string | null;
15309
- name?: string | null;
15310
- quantity?: number;
15311
- quote_id: string;
15312
- sort_order?: number;
15313
- unit_price?: number;
15314
- };
15315
- Update: {
15316
- category?: string | null;
15317
- created_at?: string;
15318
- description?: string;
15319
- id?: string;
15320
- line_total?: number;
15321
- module_id?: string | null;
15322
- name?: string | null;
15323
- quantity?: number;
15324
- quote_id?: string;
15325
- sort_order?: number;
15326
- unit_price?: number;
15327
- };
15328
- Relationships: [{
15329
- foreignKeyName: "quote_items_module_id_fkey";
15330
- columns: ["module_id"];
15331
- isOneToOne: false;
15332
- referencedRelation: "quote_modules";
15333
- referencedColumns: ["id"];
15334
- }, {
15335
- foreignKeyName: "quote_items_quote_id_fkey";
15336
- columns: ["quote_id"];
15337
- isOneToOne: false;
15338
- referencedRelation: "quotes";
15339
- referencedColumns: ["id"];
15340
- }];
15341
- };
15342
- quote_modules: {
15343
- Row: {
15344
- category: string | null;
15345
- created_at: string;
15346
- description: string | null;
15347
- id: string;
15348
- is_active: boolean;
15349
- name: string;
15350
- price: number;
15351
- sort_order: number;
15352
- updated_at: string;
15353
- };
15354
- Insert: {
15355
- category?: string | null;
15356
- created_at?: string;
15357
- description?: string | null;
15358
- id?: string;
15359
- is_active?: boolean;
15360
- name: string;
15361
- price?: number;
15362
- sort_order?: number;
15363
- updated_at?: string;
15364
- };
15365
- Update: {
15366
- category?: string | null;
15367
- created_at?: string;
15368
- description?: string | null;
15369
- id?: string;
15370
- is_active?: boolean;
15371
- name?: string;
15372
- price?: number;
15373
- sort_order?: number;
15374
- updated_at?: string;
15375
- };
15376
- Relationships: [];
15377
- };
15378
- quote_templates: {
15379
- Row: {
15380
- created_at: string;
15381
- description: string | null;
15382
- field_values: import("../integrations/supabase/types").Json;
15383
- id: string;
15384
- is_default: boolean;
15385
- items: import("../integrations/supabase/types").Json;
15386
- name: string;
15387
- updated_at: string;
15388
- vat_rate: number;
15389
- };
15390
- Insert: {
15391
- created_at?: string;
15392
- description?: string | null;
15393
- field_values?: import("../integrations/supabase/types").Json;
15394
- id?: string;
15395
- is_default?: boolean;
15396
- items?: import("../integrations/supabase/types").Json;
15397
- name: string;
15398
- updated_at?: string;
15399
- vat_rate?: number;
15400
- };
15401
- Update: {
15402
- created_at?: string;
15403
- description?: string | null;
15404
- field_values?: import("../integrations/supabase/types").Json;
15405
- id?: string;
15406
- is_default?: boolean;
15407
- items?: import("../integrations/supabase/types").Json;
15408
- name?: string;
15409
- updated_at?: string;
15410
- vat_rate?: number;
15411
- };
15412
- Relationships: [];
15413
- };
15414
- quote_terms: {
15415
- Row: {
15416
- content: string | null;
15417
- created_at: string;
15418
- file_url: string | null;
15419
- id: string;
15420
- is_active: boolean;
15421
- name: string;
15422
- published_at: string | null;
15423
- updated_at: string;
15424
- version: string;
15425
- };
15426
- Insert: {
15427
- content?: string | null;
15428
- created_at?: string;
15429
- file_url?: string | null;
15430
- id?: string;
15431
- is_active?: boolean;
15432
- name: string;
15433
- published_at?: string | null;
15434
- updated_at?: string;
15435
- version?: string;
15436
- };
15437
- Update: {
15438
- content?: string | null;
15439
- created_at?: string;
15440
- file_url?: string | null;
15441
- id?: string;
15442
- is_active?: boolean;
15443
- name?: string;
15444
- published_at?: string | null;
15445
- updated_at?: string;
15446
- version?: string;
15447
- };
15448
- Relationships: [];
15449
- };
15450
- quotes: {
15451
- Row: {
15452
- accepted_at: string | null;
15453
- archived_at: string | null;
15454
- contact_id: string | null;
15455
- created_at: string;
15456
- customer_id: string | null;
15457
- discount: number;
15458
- expires_at: string | null;
15459
- field_values: import("../integrations/supabase/types").Json;
15460
- id: string;
15461
- notes: string | null;
15462
- owner_id: string | null;
15463
- personal_message: string | null;
15464
- project_id: string | null;
15465
- prospect_id: string | null;
15466
- public_token: string;
15467
- quote_number: string | null;
15468
- recipient_email: string | null;
15469
- recipient_name: string | null;
15470
- rejected_at: string | null;
15471
- sent_at: string | null;
15472
- status: string;
15473
- subtotal: number;
15474
- template_id: string | null;
15475
- terms_id: string | null;
15476
- title: string;
15477
- total: number;
15478
- updated_at: string;
15479
- valid_until: string | null;
15480
- vat_amount: number;
15481
- vat_rate: number;
15482
- viewed_at: string | null;
15483
- };
15484
- Insert: {
15485
- accepted_at?: string | null;
15486
- archived_at?: string | null;
15487
- contact_id?: string | null;
15488
- created_at?: string;
15489
- customer_id?: string | null;
15490
- discount?: number;
15491
- expires_at?: string | null;
15492
- field_values?: import("../integrations/supabase/types").Json;
15493
- id?: string;
15494
- notes?: string | null;
15495
- owner_id?: string | null;
15496
- personal_message?: string | null;
15497
- project_id?: string | null;
15498
- prospect_id?: string | null;
15499
- public_token?: string;
15500
- quote_number?: string | null;
15501
- recipient_email?: string | null;
15502
- recipient_name?: string | null;
15503
- rejected_at?: string | null;
15504
- sent_at?: string | null;
15505
- status?: string;
15506
- subtotal?: number;
15507
- template_id?: string | null;
15508
- terms_id?: string | null;
15509
- title?: string;
15510
- total?: number;
15511
- updated_at?: string;
15512
- valid_until?: string | null;
15513
- vat_amount?: number;
15514
- vat_rate?: number;
15515
- viewed_at?: string | null;
15516
- };
15517
- Update: {
15518
- accepted_at?: string | null;
15519
- archived_at?: string | null;
15520
- contact_id?: string | null;
15521
- created_at?: string;
15522
- customer_id?: string | null;
15523
- discount?: number;
15524
- expires_at?: string | null;
15525
- field_values?: import("../integrations/supabase/types").Json;
15526
- id?: string;
15527
- notes?: string | null;
15528
- owner_id?: string | null;
15529
- personal_message?: string | null;
15530
- project_id?: string | null;
15531
- prospect_id?: string | null;
15532
- public_token?: string;
15533
- quote_number?: string | null;
15534
- recipient_email?: string | null;
15535
- recipient_name?: string | null;
15536
- rejected_at?: string | null;
15537
- sent_at?: string | null;
15538
- status?: string;
15539
- subtotal?: number;
15540
- template_id?: string | null;
15541
- terms_id?: string | null;
15542
- title?: string;
15543
- total?: number;
15544
- updated_at?: string;
15545
- valid_until?: string | null;
15546
- vat_amount?: number;
15547
- vat_rate?: number;
15548
- viewed_at?: string | null;
15549
- };
15550
- Relationships: [{
15551
- foreignKeyName: "quotes_contact_id_fkey";
15552
- columns: ["contact_id"];
15553
- isOneToOne: false;
15554
- referencedRelation: "customer_contacts";
15555
- referencedColumns: ["id"];
15556
- }, {
15557
- foreignKeyName: "quotes_customer_id_fkey";
15558
- columns: ["customer_id"];
15559
- isOneToOne: false;
15560
- referencedRelation: "customers";
15561
- referencedColumns: ["id"];
15562
- }, {
15563
- foreignKeyName: "quotes_project_id_fkey";
15564
- columns: ["project_id"];
15565
- isOneToOne: false;
15566
- referencedRelation: "projects";
15567
- referencedColumns: ["id"];
15568
- }, {
15569
- foreignKeyName: "quotes_prospect_id_fkey";
15570
- columns: ["prospect_id"];
15571
- isOneToOne: false;
15572
- referencedRelation: "prospects";
15573
- referencedColumns: ["id"];
15574
- }, {
15575
- foreignKeyName: "quotes_template_id_fkey";
15576
- columns: ["template_id"];
15577
- isOneToOne: false;
15578
- referencedRelation: "quote_templates";
15579
- referencedColumns: ["id"];
15580
- }, {
15581
- foreignKeyName: "quotes_terms_id_fkey";
15582
- columns: ["terms_id"];
15583
- isOneToOne: false;
15584
- referencedRelation: "quote_terms";
15585
- referencedColumns: ["id"];
15586
- }];
15587
- };
15588
15561
  reception_notifications: {
15589
15562
  Row: {
15590
15563
  booking_id: string | null;
@@ -16706,7 +16679,7 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
16706
16679
  foreignKeyName: "time_logs_work_order_id_fkey";
16707
16680
  columns: ["work_order_id"];
16708
16681
  isOneToOne: false;
16709
- referencedRelation: "work_orders";
16682
+ referencedRelation: "werkbonnen";
16710
16683
  referencedColumns: ["id"];
16711
16684
  }];
16712
16685
  };
@@ -16838,6 +16811,7 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
16838
16811
  };
16839
16812
  trade_item_stock: {
16840
16813
  Row: {
16814
+ change_source: string;
16841
16815
  connection_id: string;
16842
16816
  created_at: string;
16843
16817
  id: string;
@@ -16851,6 +16825,7 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
16851
16825
  user_id: string;
16852
16826
  };
16853
16827
  Insert: {
16828
+ change_source?: string;
16854
16829
  connection_id: string;
16855
16830
  created_at?: string;
16856
16831
  id?: string;
@@ -16864,6 +16839,7 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
16864
16839
  user_id: string;
16865
16840
  };
16866
16841
  Update: {
16842
+ change_source?: string;
16867
16843
  connection_id?: string;
16868
16844
  created_at?: string;
16869
16845
  id?: string;
@@ -17921,268 +17897,118 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
17921
17897
  break_minutes?: number | null;
17922
17898
  contract_hours_per_week?: number;
17923
17899
  created_at?: string;
17924
- daily_threshold_hours?: number | null;
17925
- id?: string;
17926
- include_travel?: boolean | null;
17927
- monteur_id: string;
17928
- ov02_percentage?: number | null;
17929
- ov03_percentage?: number | null;
17930
- updated_at?: string;
17931
- weekly_threshold_hours?: number | null;
17932
- workday_end?: string | null;
17933
- workday_start?: string | null;
17934
- };
17935
- Update: {
17936
- break_minutes?: number | null;
17937
- contract_hours_per_week?: number;
17938
- created_at?: string;
17939
- daily_threshold_hours?: number | null;
17940
- id?: string;
17941
- include_travel?: boolean | null;
17942
- monteur_id?: string;
17943
- ov02_percentage?: number | null;
17944
- ov03_percentage?: number | null;
17945
- updated_at?: string;
17946
- weekly_threshold_hours?: number | null;
17947
- workday_end?: string | null;
17948
- workday_start?: string | null;
17949
- };
17950
- Relationships: [];
17951
- };
17952
- uren_entries: {
17953
- Row: {
17954
- created_at: string;
17955
- created_by: string | null;
17956
- entry_date: string;
17957
- hours: number;
17958
- id: string;
17959
- kind: string;
17960
- monteur_id: string;
17961
- note: string | null;
17962
- source: string;
17963
- travel_km: number;
17964
- updated_at: string;
17965
- werkbon_id: string | null;
17966
- };
17967
- Insert: {
17968
- created_at?: string;
17969
- created_by?: string | null;
17970
- entry_date: string;
17971
- hours?: number;
17972
- id?: string;
17973
- kind?: string;
17974
- monteur_id: string;
17975
- note?: string | null;
17976
- source?: string;
17977
- travel_km?: number;
17978
- updated_at?: string;
17979
- werkbon_id?: string | null;
17980
- };
17981
- Update: {
17982
- created_at?: string;
17983
- created_by?: string | null;
17984
- entry_date?: string;
17985
- hours?: number;
17986
- id?: string;
17987
- kind?: string;
17988
- monteur_id?: string;
17989
- note?: string | null;
17990
- source?: string;
17991
- travel_km?: number;
17992
- updated_at?: string;
17993
- werkbon_id?: string | null;
17994
- };
17995
- Relationships: [{
17996
- foreignKeyName: "uren_entries_werkbon_id_fkey";
17997
- columns: ["werkbon_id"];
17998
- isOneToOne: false;
17999
- referencedRelation: "werkbonnen";
18000
- referencedColumns: ["id"];
18001
- }];
18002
- };
18003
- uren_exports: {
18004
- Row: {
18005
- created_at: string;
18006
- created_by: string | null;
18007
- file_name: string | null;
18008
- id: string;
18009
- monteur_ids: string[];
18010
- period_end: string;
18011
- period_start: string;
18012
- row_count: number;
18013
- };
18014
- Insert: {
18015
- created_at?: string;
18016
- created_by?: string | null;
18017
- file_name?: string | null;
18018
- id?: string;
18019
- monteur_ids?: string[];
18020
- period_end: string;
18021
- period_start: string;
18022
- row_count?: number;
18023
- };
18024
- Update: {
18025
- created_at?: string;
18026
- created_by?: string | null;
18027
- file_name?: string | null;
18028
- id?: string;
18029
- monteur_ids?: string[];
18030
- period_end?: string;
18031
- period_start?: string;
18032
- row_count?: number;
18033
- };
18034
- Relationships: [];
18035
- };
18036
- uren_offerte_regels: {
18037
- Row: {
18038
- created_at: string;
18039
- description: string;
18040
- duration_minutes: number;
18041
- id: string;
18042
- offerte_id: string;
18043
- package_id: string | null;
18044
- quantity: number;
18045
- sort_order: number;
18046
- total_cents: number;
18047
- unit_price_cents: number;
18048
- };
18049
- Insert: {
18050
- created_at?: string;
18051
- description: string;
18052
- duration_minutes?: number;
18053
- id?: string;
18054
- offerte_id: string;
18055
- package_id?: string | null;
18056
- quantity?: number;
18057
- sort_order?: number;
18058
- total_cents?: number;
18059
- unit_price_cents?: number;
18060
- };
18061
- Update: {
18062
- created_at?: string;
18063
- description?: string;
18064
- duration_minutes?: number;
18065
- id?: string;
18066
- offerte_id?: string;
18067
- package_id?: string | null;
18068
- quantity?: number;
18069
- sort_order?: number;
18070
- total_cents?: number;
18071
- unit_price_cents?: number;
18072
- };
18073
- Relationships: [{
18074
- foreignKeyName: "uren_offerte_regels_offerte_id_fkey";
18075
- columns: ["offerte_id"];
18076
- isOneToOne: false;
18077
- referencedRelation: "uren_offertes";
18078
- referencedColumns: ["id"];
18079
- }, {
18080
- foreignKeyName: "uren_offerte_regels_package_id_fkey";
18081
- columns: ["package_id"];
18082
- isOneToOne: false;
18083
- referencedRelation: "werkbon_packages";
18084
- referencedColumns: ["id"];
18085
- }];
18086
- };
18087
- uren_offerte_velden: {
18088
- Row: {
18089
- created_at: string;
18090
- field_type: string;
18091
- id: string;
18092
- key: string;
18093
- label: string;
18094
- options: string[];
18095
- required: boolean;
18096
- sort_order: number;
18097
- updated_at: string;
18098
- };
18099
- Insert: {
18100
- created_at?: string;
18101
- field_type?: string;
18102
- id?: string;
18103
- key: string;
18104
- label: string;
18105
- options?: string[];
18106
- required?: boolean;
18107
- sort_order?: number;
17900
+ daily_threshold_hours?: number | null;
17901
+ id?: string;
17902
+ include_travel?: boolean | null;
17903
+ monteur_id: string;
17904
+ ov02_percentage?: number | null;
17905
+ ov03_percentage?: number | null;
18108
17906
  updated_at?: string;
17907
+ weekly_threshold_hours?: number | null;
17908
+ workday_end?: string | null;
17909
+ workday_start?: string | null;
18109
17910
  };
18110
17911
  Update: {
17912
+ break_minutes?: number | null;
17913
+ contract_hours_per_week?: number;
18111
17914
  created_at?: string;
18112
- field_type?: string;
17915
+ daily_threshold_hours?: number | null;
18113
17916
  id?: string;
18114
- key?: string;
18115
- label?: string;
18116
- options?: string[];
18117
- required?: boolean;
18118
- sort_order?: number;
17917
+ include_travel?: boolean | null;
17918
+ monteur_id?: string;
17919
+ ov02_percentage?: number | null;
17920
+ ov03_percentage?: number | null;
18119
17921
  updated_at?: string;
17922
+ weekly_threshold_hours?: number | null;
17923
+ workday_end?: string | null;
17924
+ workday_start?: string | null;
18120
17925
  };
18121
17926
  Relationships: [];
18122
17927
  };
18123
- uren_offertes: {
17928
+ uren_entries: {
18124
17929
  Row: {
18125
17930
  created_at: string;
18126
17931
  created_by: string | null;
18127
- customer_id: string | null;
18128
- customer_name: string | null;
18129
- dynamic_fields: import("../integrations/supabase/types").Json;
18130
- estimated_minutes: number;
17932
+ entry_date: string;
17933
+ hours: number;
18131
17934
  id: string;
17935
+ kind: string;
17936
+ monteur_id: string;
18132
17937
  note: string | null;
18133
- quote_number: string | null;
18134
- status: string;
18135
- title: string;
18136
- total_excl_cents: number;
18137
- total_incl_cents: number;
17938
+ source: string;
17939
+ travel_km: number;
18138
17940
  updated_at: string;
18139
- valid_until: string | null;
18140
- vat_percentage: number;
17941
+ werkbon_id: string | null;
18141
17942
  };
18142
17943
  Insert: {
18143
17944
  created_at?: string;
18144
17945
  created_by?: string | null;
18145
- customer_id?: string | null;
18146
- customer_name?: string | null;
18147
- dynamic_fields?: import("../integrations/supabase/types").Json;
18148
- estimated_minutes?: number;
17946
+ entry_date: string;
17947
+ hours?: number;
18149
17948
  id?: string;
17949
+ kind?: string;
17950
+ monteur_id: string;
18150
17951
  note?: string | null;
18151
- quote_number?: string | null;
18152
- status?: string;
18153
- title?: string;
18154
- total_excl_cents?: number;
18155
- total_incl_cents?: number;
17952
+ source?: string;
17953
+ travel_km?: number;
18156
17954
  updated_at?: string;
18157
- valid_until?: string | null;
18158
- vat_percentage?: number;
17955
+ werkbon_id?: string | null;
18159
17956
  };
18160
17957
  Update: {
18161
17958
  created_at?: string;
18162
17959
  created_by?: string | null;
18163
- customer_id?: string | null;
18164
- customer_name?: string | null;
18165
- dynamic_fields?: import("../integrations/supabase/types").Json;
18166
- estimated_minutes?: number;
17960
+ entry_date?: string;
17961
+ hours?: number;
18167
17962
  id?: string;
17963
+ kind?: string;
17964
+ monteur_id?: string;
18168
17965
  note?: string | null;
18169
- quote_number?: string | null;
18170
- status?: string;
18171
- title?: string;
18172
- total_excl_cents?: number;
18173
- total_incl_cents?: number;
17966
+ source?: string;
17967
+ travel_km?: number;
18174
17968
  updated_at?: string;
18175
- valid_until?: string | null;
18176
- vat_percentage?: number;
17969
+ werkbon_id?: string | null;
18177
17970
  };
18178
17971
  Relationships: [{
18179
- foreignKeyName: "uren_offertes_customer_id_fkey";
18180
- columns: ["customer_id"];
17972
+ foreignKeyName: "uren_entries_werkbon_id_fkey";
17973
+ columns: ["werkbon_id"];
18181
17974
  isOneToOne: false;
18182
- referencedRelation: "itk_customers";
17975
+ referencedRelation: "werkbonnen";
18183
17976
  referencedColumns: ["id"];
18184
17977
  }];
18185
17978
  };
17979
+ uren_exports: {
17980
+ Row: {
17981
+ created_at: string;
17982
+ created_by: string | null;
17983
+ file_name: string | null;
17984
+ id: string;
17985
+ monteur_ids: string[];
17986
+ period_end: string;
17987
+ period_start: string;
17988
+ row_count: number;
17989
+ };
17990
+ Insert: {
17991
+ created_at?: string;
17992
+ created_by?: string | null;
17993
+ file_name?: string | null;
17994
+ id?: string;
17995
+ monteur_ids?: string[];
17996
+ period_end: string;
17997
+ period_start: string;
17998
+ row_count?: number;
17999
+ };
18000
+ Update: {
18001
+ created_at?: string;
18002
+ created_by?: string | null;
18003
+ file_name?: string | null;
18004
+ id?: string;
18005
+ monteur_ids?: string[];
18006
+ period_end?: string;
18007
+ period_start?: string;
18008
+ row_count?: number;
18009
+ };
18010
+ Relationships: [];
18011
+ };
18186
18012
  uren_settings: {
18187
18013
  Row: {
18188
18014
  break_minutes: number;
@@ -19869,6 +19695,37 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
19869
19695
  };
19870
19696
  Relationships: [];
19871
19697
  };
19698
+ planning_overview: {
19699
+ Row: {
19700
+ assigned_monteur_id: string | null;
19701
+ assistants: import("../integrations/supabase/types").Json | null;
19702
+ budget_mandate_cents: number | null;
19703
+ created_at: string | null;
19704
+ created_by: string | null;
19705
+ customer_id: string | null;
19706
+ customer_name: string | null;
19707
+ duration_minutes: number | null;
19708
+ end_at: string | null;
19709
+ id: string | null;
19710
+ needs_detail_review: boolean | null;
19711
+ notes: string | null;
19712
+ project_number: string | null;
19713
+ review_reasons: string[] | null;
19714
+ start_at: string | null;
19715
+ status: import("../integrations/supabase/types").Database["public"]["Enums"]["planning_item_status"] | null;
19716
+ updated_at: string | null;
19717
+ viewer_role: string | null;
19718
+ werkbon_id: string | null;
19719
+ work_address: string | null;
19720
+ };
19721
+ Relationships: [{
19722
+ foreignKeyName: "planning_items_werkbon_id_fkey";
19723
+ columns: ["werkbon_id"];
19724
+ isOneToOne: false;
19725
+ referencedRelation: "werkbonnen";
19726
+ referencedColumns: ["id"];
19727
+ }];
19728
+ };
19872
19729
  product_group_stock_view: {
19873
19730
  Row: {
19874
19731
  item_count: number | null;
@@ -20464,6 +20321,18 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
20464
20321
  Args: never;
20465
20322
  Returns: number;
20466
20323
  };
20324
+ calculate_floriday_desired_stock: {
20325
+ Args: {
20326
+ p_connection_id: string;
20327
+ p_product_id: string;
20328
+ };
20329
+ Returns: {
20330
+ desired_availability: boolean;
20331
+ desired_quantity: number;
20332
+ erp_available: number;
20333
+ stock_mode: string;
20334
+ }[];
20335
+ };
20467
20336
  calculate_layer_stock: {
20468
20337
  Args: {
20469
20338
  p_product_id: string;
@@ -20558,6 +20427,7 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
20558
20427
  attempts: number;
20559
20428
  connection_id: string;
20560
20429
  created_at: string;
20430
+ dead_lettered_at: string | null;
20561
20431
  desired_available: boolean | null;
20562
20432
  gateway_attempt_id: string | null;
20563
20433
  id: string;
@@ -20566,9 +20436,13 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
20566
20436
  locked_by: string | null;
20567
20437
  next_attempt_at: string;
20568
20438
  number_of_pieces: number;
20439
+ product_id: string | null;
20569
20440
  sent_at: string | null;
20570
20441
  status: string;
20442
+ stock_mode: string | null;
20571
20443
  superseded_by: string | null;
20444
+ target_week: number | null;
20445
+ target_year: number | null;
20572
20446
  trade_item_id: string;
20573
20447
  updated_at: string;
20574
20448
  user_id: string;
@@ -21049,6 +20923,24 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
21049
20923
  };
21050
20924
  Returns: string;
21051
20925
  };
20926
+ floriday_capture_stock_snapshot: {
20927
+ Args: never;
20928
+ Returns: number;
20929
+ };
20930
+ floriday_cleanup_stock_queue_v2: {
20931
+ Args: never;
20932
+ Returns: undefined;
20933
+ };
20934
+ floriday_compact_stock_snapshots: {
20935
+ Args: never;
20936
+ Returns: undefined;
20937
+ };
20938
+ floriday_default_owner: {
20939
+ Args: {
20940
+ p_connection_id: string;
20941
+ };
20942
+ Returns: string;
20943
+ };
21052
20944
  floriday_effective_price: {
21053
20945
  Args: {
21054
20946
  _buyer_id: string;
@@ -21066,6 +20958,34 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
21066
20958
  source_id: string;
21067
20959
  }[];
21068
20960
  };
20961
+ floriday_fill_publish_horizon: {
20962
+ Args: never;
20963
+ Returns: number;
20964
+ };
20965
+ floriday_ingest_sales_orders: {
20966
+ Args: {
20967
+ p_limit?: number;
20968
+ };
20969
+ Returns: number;
20970
+ };
20971
+ floriday_publish_horizon_weeks: {
20972
+ Args: never;
20973
+ Returns: number;
20974
+ };
20975
+ floriday_recompute_inventory: {
20976
+ Args: {
20977
+ p_connection_id: string;
20978
+ p_force?: boolean;
20979
+ p_product_id: string;
20980
+ };
20981
+ Returns: undefined;
20982
+ };
20983
+ floriday_requeue_dead_letters: {
20984
+ Args: {
20985
+ p_connection_id?: string;
20986
+ };
20987
+ Returns: number;
20988
+ };
21069
20989
  format_cart_number: {
21070
20990
  Args: {
21071
20991
  p_pick_date: string;
@@ -21245,42 +21165,167 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
21245
21165
  ordered_at: string;
21246
21166
  }[];
21247
21167
  };
21248
- get_or_assign_floriday_order_number: {
21168
+ get_or_assign_floriday_order_number: {
21169
+ Args: {
21170
+ p_floriday_id: string;
21171
+ };
21172
+ Returns: string;
21173
+ };
21174
+ get_product_group_available_stock: {
21175
+ Args: {
21176
+ p_group_id: string;
21177
+ };
21178
+ Returns: number;
21179
+ };
21180
+ get_room_busy_windows: {
21181
+ Args: {
21182
+ p_from: string;
21183
+ p_to: string;
21184
+ };
21185
+ Returns: {
21186
+ end_time: string;
21187
+ room_id: string;
21188
+ start_time: string;
21189
+ status: string;
21190
+ }[];
21191
+ };
21192
+ get_twinfield_cron_jobs: {
21193
+ Args: never;
21194
+ Returns: {
21195
+ active: boolean;
21196
+ jobname: string;
21197
+ schedule: string;
21198
+ url: string;
21199
+ }[];
21200
+ };
21201
+ get_user_tenant_id: {
21202
+ Args: never;
21203
+ Returns: string;
21204
+ };
21205
+ handover_get: {
21206
+ Args: {
21207
+ _module_id: string;
21208
+ };
21209
+ Returns: import("../integrations/supabase/types").Json;
21210
+ };
21211
+ handover_kern_naam: {
21212
+ Args: {
21213
+ _naam: string;
21214
+ };
21215
+ Returns: string;
21216
+ };
21217
+ handover_ketenmodel: {
21218
+ Args: never;
21219
+ Returns: import("../integrations/supabase/types").Json;
21220
+ };
21221
+ handover_kruisconflicten: {
21222
+ Args: never;
21223
+ Returns: import("../integrations/supabase/types").Json;
21224
+ };
21225
+ handover_list: {
21226
+ Args: never;
21227
+ Returns: import("../integrations/supabase/types").Json;
21228
+ };
21229
+ handover_mag_schrijven: {
21230
+ Args: {
21231
+ _module_id: string;
21232
+ };
21233
+ Returns: boolean;
21234
+ };
21235
+ handover_norm_naam: {
21236
+ Args: {
21237
+ _naam: string;
21238
+ };
21239
+ Returns: string;
21240
+ };
21241
+ handover_publish: {
21242
+ Args: {
21243
+ _bevindingen?: string;
21244
+ _bezit_tabellen?: string[];
21245
+ _conflicten_snapshot?: import("../integrations/supabase/types").Json;
21246
+ _contractfuncties?: string[];
21247
+ _inhoud_md: string;
21248
+ _module_id: string;
21249
+ _module_titel: string;
21250
+ _ontbrekende_contracten?: string[];
21251
+ _samenvatting?: string;
21252
+ };
21253
+ Returns: number;
21254
+ };
21255
+ handover_publish_via_token: {
21256
+ Args: {
21257
+ _bevindingen?: string;
21258
+ _bezit_tabellen?: string[];
21259
+ _conflicten_snapshot?: import("../integrations/supabase/types").Json;
21260
+ _contractfuncties?: string[];
21261
+ _inhoud_md: string;
21262
+ _module_id: string;
21263
+ _module_titel: string;
21264
+ _ontbrekende_contracten?: string[];
21265
+ _samenvatting?: string;
21266
+ _token_hash: string;
21267
+ };
21268
+ Returns: number;
21269
+ };
21270
+ handover_status: {
21271
+ Args: never;
21272
+ Returns: import("../integrations/supabase/types").Json;
21273
+ };
21274
+ handover_synonym_kern: {
21275
+ Args: {
21276
+ _naam: string;
21277
+ };
21278
+ Returns: string;
21279
+ };
21280
+ handover_token_intrekken: {
21281
+ Args: {
21282
+ _id: string;
21283
+ };
21284
+ Returns: boolean;
21285
+ };
21286
+ handover_token_lijst: {
21287
+ Args: never;
21288
+ Returns: import("../integrations/supabase/types").Json;
21289
+ };
21290
+ handover_token_maken: {
21249
21291
  Args: {
21250
- p_floriday_id: string;
21292
+ _label?: string;
21293
+ _module_id: string;
21251
21294
  };
21252
21295
  Returns: string;
21253
21296
  };
21254
- get_product_group_available_stock: {
21297
+ handover_update: {
21255
21298
  Args: {
21256
- p_group_id: string;
21299
+ _bezit_tabellen?: string[];
21300
+ _contractfuncties?: string[];
21301
+ _herzieningstermijn_dagen?: number;
21302
+ _inhoud_md?: string;
21303
+ _module_id: string;
21304
+ _module_titel?: string;
21305
+ _samenvatting?: string;
21306
+ _versie: number;
21257
21307
  };
21258
- Returns: number;
21259
- };
21260
- get_room_busy_windows: {
21308
+ Returns: boolean;
21309
+ } | {
21261
21310
  Args: {
21262
- p_from: string;
21263
- p_to: string;
21311
+ _bevindingen?: string;
21312
+ _bezit_tabellen?: string[];
21313
+ _contractfuncties?: string[];
21314
+ _herzieningstermijn_dagen?: number;
21315
+ _inhoud_md?: string;
21316
+ _module_id: string;
21317
+ _module_titel?: string;
21318
+ _ontbrekende_contracten?: string[];
21319
+ _samenvatting?: string;
21320
+ _versie: number;
21264
21321
  };
21265
- Returns: {
21266
- end_time: string;
21267
- room_id: string;
21268
- start_time: string;
21269
- status: string;
21270
- }[];
21271
- };
21272
- get_twinfield_cron_jobs: {
21273
- Args: never;
21274
- Returns: {
21275
- active: boolean;
21276
- jobname: string;
21277
- schedule: string;
21278
- url: string;
21279
- }[];
21322
+ Returns: boolean;
21280
21323
  };
21281
- get_user_tenant_id: {
21282
- Args: never;
21283
- Returns: string;
21324
+ handover_versies: {
21325
+ Args: {
21326
+ _module_id: string;
21327
+ };
21328
+ Returns: import("../integrations/supabase/types").Json;
21284
21329
  };
21285
21330
  has_module_permission: {
21286
21331
  Args: {
@@ -21301,6 +21346,25 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
21301
21346
  Args: never;
21302
21347
  Returns: boolean;
21303
21348
  };
21349
+ instructie_get: {
21350
+ Args: {
21351
+ _sleutel: string;
21352
+ };
21353
+ Returns: import("../integrations/supabase/types").Json;
21354
+ };
21355
+ instructie_list: {
21356
+ Args: never;
21357
+ Returns: import("../integrations/supabase/types").Json;
21358
+ };
21359
+ instructie_publish: {
21360
+ Args: {
21361
+ _inhoud_md: string;
21362
+ _sleutel: string;
21363
+ _titel: string;
21364
+ _toelichting?: string;
21365
+ };
21366
+ Returns: number;
21367
+ };
21304
21368
  invoice_create_from_source: {
21305
21369
  Args: {
21306
21370
  _payload?: import("../integrations/supabase/types").Json;
@@ -21525,6 +21589,12 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
21525
21589
  };
21526
21590
  Returns: boolean;
21527
21591
  };
21592
+ logistics_barcode_lookup: {
21593
+ Args: {
21594
+ p_barcode: string;
21595
+ };
21596
+ Returns: import("../integrations/supabase/types").Json;
21597
+ };
21528
21598
  logistics_buffer_criteria: {
21529
21599
  Args: {
21530
21600
  p_settings: import("../integrations/supabase/types").Json;
@@ -21585,6 +21655,12 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
21585
21655
  };
21586
21656
  Returns: number;
21587
21657
  };
21658
+ logistics_cart_barcode_value: {
21659
+ Args: {
21660
+ _cart_id: string;
21661
+ };
21662
+ Returns: string;
21663
+ };
21588
21664
  logistics_cart_index: {
21589
21665
  Args: {
21590
21666
  p_from?: string;
@@ -21594,6 +21670,10 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
21594
21670
  cart_id: string;
21595
21671
  cart_index: number;
21596
21672
  cart_label: string;
21673
+ delivery_date: string;
21674
+ is_announced: boolean;
21675
+ is_controlled: boolean;
21676
+ is_printed: boolean;
21597
21677
  is_shared: boolean;
21598
21678
  order_number: string;
21599
21679
  order_source: string;
@@ -21604,6 +21684,12 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
21604
21684
  task_status: string;
21605
21685
  }[];
21606
21686
  };
21687
+ logistics_cart_slip_plan: {
21688
+ Args: {
21689
+ p_order_id: string;
21690
+ };
21691
+ Returns: import("../integrations/supabase/types").Json;
21692
+ };
21607
21693
  logistics_check_order_allowed: {
21608
21694
  Args: {
21609
21695
  p_lines: import("../integrations/supabase/types").Json;
@@ -21756,11 +21842,15 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
21756
21842
  Args: never;
21757
21843
  Returns: {
21758
21844
  agenda_carts: number;
21845
+ announced_carts: number;
21759
21846
  control_carts: number;
21847
+ delivery_carts: number;
21760
21848
  ok: boolean;
21761
21849
  orphan_tasks: number;
21762
21850
  pick_date: string;
21763
21851
  raw_carts: number;
21852
+ sales_carts: number;
21853
+ station_carts: number;
21764
21854
  }[];
21765
21855
  };
21766
21856
  logistics_delay_customer_email: {
@@ -21776,12 +21866,35 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
21776
21866
  subject: string;
21777
21867
  }[];
21778
21868
  };
21869
+ logistics_delivery_agenda: {
21870
+ Args: {
21871
+ p_from?: string;
21872
+ p_to?: string;
21873
+ };
21874
+ Returns: {
21875
+ announced_count: number;
21876
+ cart_count: number;
21877
+ controlled_count: number;
21878
+ delivery_date: string;
21879
+ order_count: number;
21880
+ orders: import("../integrations/supabase/types").Json;
21881
+ plant_count: number;
21882
+ printed_count: number;
21883
+ }[];
21884
+ };
21779
21885
  logistics_document_layout: {
21780
21886
  Args: {
21781
21887
  _document_code: string;
21782
21888
  };
21783
21889
  Returns: import("../integrations/supabase/types").Json;
21784
21890
  };
21891
+ logistics_document_layout_v2: {
21892
+ Args: {
21893
+ _document_code: string;
21894
+ _is_partial?: boolean;
21895
+ };
21896
+ Returns: import("../integrations/supabase/types").Json;
21897
+ };
21785
21898
  logistics_document_station: {
21786
21899
  Args: {
21787
21900
  _document_code: string;
@@ -21807,6 +21920,12 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
21807
21920
  };
21808
21921
  Returns: import("../integrations/supabase/types").Json;
21809
21922
  };
21923
+ logistics_ensure_cart_barcode: {
21924
+ Args: {
21925
+ _cart_id: string;
21926
+ };
21927
+ Returns: string;
21928
+ };
21810
21929
  logistics_fail_task: {
21811
21930
  Args: {
21812
21931
  p_error: string;
@@ -21852,6 +21971,16 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
21852
21971
  isSetofReturn: false;
21853
21972
  };
21854
21973
  };
21974
+ logistics_floriday_cart_plan: {
21975
+ Args: {
21976
+ p_order_id: string;
21977
+ };
21978
+ Returns: {
21979
+ carrier_type: string;
21980
+ idx: number;
21981
+ packages: number;
21982
+ }[];
21983
+ };
21855
21984
  logistics_floriday_claim_pushes: {
21856
21985
  Args: {
21857
21986
  _lease_seconds?: number;
@@ -22057,6 +22186,13 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
22057
22186
  };
22058
22187
  Returns: undefined;
22059
22188
  };
22189
+ logistics_plan_floriday_order: {
22190
+ Args: {
22191
+ p_buffer_id?: string;
22192
+ p_order_id: string;
22193
+ };
22194
+ Returns: number;
22195
+ };
22060
22196
  logistics_plan_impact_orders: {
22061
22197
  Args: {
22062
22198
  p_order_id: string;
@@ -22250,6 +22386,14 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
22250
22386
  };
22251
22387
  Returns: string;
22252
22388
  };
22389
+ logistics_shipping_note_from_barcode: {
22390
+ Args: {
22391
+ p_allow_reprint?: boolean;
22392
+ p_barcode: string;
22393
+ p_station_id?: string;
22394
+ };
22395
+ Returns: import("../integrations/supabase/types").Json;
22396
+ };
22253
22397
  logistics_supersede_stale_tasks: {
22254
22398
  Args: {
22255
22399
  p_keep: string[];
@@ -22471,6 +22615,7 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
22471
22615
  print_job_id: string | null;
22472
22616
  printed_at: string | null;
22473
22617
  printed_by: string | null;
22618
+ printed_cart_ids: import("../integrations/supabase/types").Json;
22474
22619
  printer_id: string | null;
22475
22620
  priority: number;
22476
22621
  reference: string | null;
@@ -22520,6 +22665,7 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
22520
22665
  print_job_id: string | null;
22521
22666
  printed_at: string | null;
22522
22667
  printed_by: string | null;
22668
+ printed_cart_ids: import("../integrations/supabase/types").Json;
22523
22669
  printer_id: string | null;
22524
22670
  priority: number;
22525
22671
  reference: string | null;
@@ -22574,6 +22720,56 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
22574
22720
  print_job_id: string | null;
22575
22721
  printed_at: string | null;
22576
22722
  printed_by: string | null;
22723
+ printed_cart_ids: import("../integrations/supabase/types").Json;
22724
+ printer_id: string | null;
22725
+ priority: number;
22726
+ reference: string | null;
22727
+ route: string | null;
22728
+ screen_id: string | null;
22729
+ station_id: string | null;
22730
+ status_id: string | null;
22731
+ updated_at: string;
22732
+ warnings: import("../integrations/supabase/types").Json;
22733
+ };
22734
+ SetofOptions: {
22735
+ from: "*";
22736
+ to: "pick_queue";
22737
+ isOneToOne: true;
22738
+ isSetofReturn: false;
22739
+ };
22740
+ };
22741
+ pick_complete_print_cart: {
22742
+ Args: {
22743
+ _cart_id: string;
22744
+ _printer_id: string;
22745
+ _queue_item_id: string;
22746
+ _session_id: string;
22747
+ };
22748
+ Returns: {
22749
+ announced_at: string;
22750
+ assigned_user_id: string | null;
22751
+ barcode: string | null;
22752
+ cancelled_at: string | null;
22753
+ cart_count: number;
22754
+ completed_at: string | null;
22755
+ country_code: string | null;
22756
+ created_at: string;
22757
+ customer_name: string | null;
22758
+ delivery_address: string | null;
22759
+ document_number: string | null;
22760
+ document_type_id: string | null;
22761
+ due_at: string | null;
22762
+ id: string;
22763
+ is_urgent: boolean;
22764
+ line_count: number;
22765
+ order_number: string | null;
22766
+ order_type: string | null;
22767
+ payload: import("../integrations/supabase/types").Json;
22768
+ print_count: number;
22769
+ print_job_id: string | null;
22770
+ printed_at: string | null;
22771
+ printed_by: string | null;
22772
+ printed_cart_ids: import("../integrations/supabase/types").Json;
22577
22773
  printer_id: string | null;
22578
22774
  priority: number;
22579
22775
  reference: string | null;
@@ -22617,6 +22813,15 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
22617
22813
  _session_id?: string;
22618
22814
  };
22619
22815
  Returns: string;
22816
+ } | {
22817
+ Args: {
22818
+ _cart_id: string;
22819
+ _is_herprint: boolean;
22820
+ _printer_id: string;
22821
+ _queue_item_id: string;
22822
+ _session_id: string;
22823
+ };
22824
+ Returns: string;
22620
22825
  };
22621
22826
  pick_order_context: {
22622
22827
  Args: {
@@ -22697,6 +22902,54 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
22697
22902
  print_job_id: string | null;
22698
22903
  printed_at: string | null;
22699
22904
  printed_by: string | null;
22905
+ printed_cart_ids: import("../integrations/supabase/types").Json;
22906
+ printer_id: string | null;
22907
+ priority: number;
22908
+ reference: string | null;
22909
+ route: string | null;
22910
+ screen_id: string | null;
22911
+ station_id: string | null;
22912
+ status_id: string | null;
22913
+ updated_at: string;
22914
+ warnings: import("../integrations/supabase/types").Json;
22915
+ };
22916
+ SetofOptions: {
22917
+ from: "*";
22918
+ to: "pick_queue";
22919
+ isOneToOne: true;
22920
+ isSetofReturn: false;
22921
+ };
22922
+ } | {
22923
+ Args: {
22924
+ _cart_id?: string;
22925
+ _queue_item_id: string;
22926
+ _session_id: string;
22927
+ };
22928
+ Returns: {
22929
+ announced_at: string;
22930
+ assigned_user_id: string | null;
22931
+ barcode: string | null;
22932
+ cancelled_at: string | null;
22933
+ cart_count: number;
22934
+ completed_at: string | null;
22935
+ country_code: string | null;
22936
+ created_at: string;
22937
+ customer_name: string | null;
22938
+ delivery_address: string | null;
22939
+ document_number: string | null;
22940
+ document_type_id: string | null;
22941
+ due_at: string | null;
22942
+ id: string;
22943
+ is_urgent: boolean;
22944
+ line_count: number;
22945
+ order_number: string | null;
22946
+ order_type: string | null;
22947
+ payload: import("../integrations/supabase/types").Json;
22948
+ print_count: number;
22949
+ print_job_id: string | null;
22950
+ printed_at: string | null;
22951
+ printed_by: string | null;
22952
+ printed_cart_ids: import("../integrations/supabase/types").Json;
22700
22953
  printer_id: string | null;
22701
22954
  priority: number;
22702
22955
  reference: string | null;
@@ -22809,6 +23062,66 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
22809
23062
  };
22810
23063
  Returns: undefined;
22811
23064
  };
23065
+ planning_cancel_item: {
23066
+ Args: {
23067
+ _id: string;
23068
+ };
23069
+ Returns: undefined;
23070
+ };
23071
+ planning_list: {
23072
+ Args: {
23073
+ _from: string;
23074
+ _to: string;
23075
+ };
23076
+ Returns: {
23077
+ assigned_monteur_id: string | null;
23078
+ assistants: import("../integrations/supabase/types").Json | null;
23079
+ budget_mandate_cents: number | null;
23080
+ created_at: string | null;
23081
+ created_by: string | null;
23082
+ customer_id: string | null;
23083
+ customer_name: string | null;
23084
+ duration_minutes: number | null;
23085
+ end_at: string | null;
23086
+ id: string | null;
23087
+ needs_detail_review: boolean | null;
23088
+ notes: string | null;
23089
+ project_number: string | null;
23090
+ review_reasons: string[] | null;
23091
+ start_at: string | null;
23092
+ status: import("../integrations/supabase/types").Database["public"]["Enums"]["planning_item_status"] | null;
23093
+ updated_at: string | null;
23094
+ viewer_role: string | null;
23095
+ werkbon_id: string | null;
23096
+ work_address: string | null;
23097
+ }[];
23098
+ SetofOptions: {
23099
+ from: "*";
23100
+ to: "planning_overview";
23101
+ isOneToOne: false;
23102
+ isSetofReturn: true;
23103
+ };
23104
+ };
23105
+ planning_set_assistants: {
23106
+ Args: {
23107
+ _monteur_ids: string[];
23108
+ _planning_item_id: string;
23109
+ };
23110
+ Returns: undefined;
23111
+ };
23112
+ planning_upsert_item: {
23113
+ Args: {
23114
+ _assigned_monteur_id: string;
23115
+ _end_at: string;
23116
+ _notes?: string;
23117
+ _start_at: string;
23118
+ _werkbon_id: string;
23119
+ };
23120
+ Returns: {
23121
+ action: string;
23122
+ id: string;
23123
+ }[];
23124
+ };
22812
23125
  print_preview_toestaan: {
22813
23126
  Args: {
22814
23127
  _max?: number;
@@ -23390,6 +23703,26 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
23390
23703
  };
23391
23704
  Returns: string[];
23392
23705
  };
23706
+ start_time_log_at: {
23707
+ Args: {
23708
+ p_clicked_at?: string;
23709
+ p_employee_id: string;
23710
+ p_start_lat?: number;
23711
+ p_start_lng?: number;
23712
+ p_type: string;
23713
+ p_work_order_id?: string;
23714
+ };
23715
+ Returns: import("../integrations/supabase/types").Json;
23716
+ };
23717
+ stop_time_log: {
23718
+ Args: {
23719
+ p_employee_id: string;
23720
+ p_end_lat?: number;
23721
+ p_end_lng?: number;
23722
+ p_end_time: string;
23723
+ };
23724
+ Returns: import("../integrations/supabase/types").Json;
23725
+ };
23393
23726
  switch_time_log: {
23394
23727
  Args: {
23395
23728
  p_employee_id: string;