@flowselections/logistiek-engine 1.0.25 → 1.0.26

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (46) 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/floridayDocuments.functions.d.ts +3054 -2055
  22. package/dist-lib/lib/floridayDocuments.functions.d.ts.map +1 -1
  23. package/dist-lib/lib/floridayPush.functions.d.ts +1048 -715
  24. package/dist-lib/lib/floridayPush.functions.d.ts.map +1 -1
  25. package/dist-lib/lib/loadCarrierPlanning.functions.d.ts +5105 -3465
  26. package/dist-lib/lib/loadCarrierPlanning.functions.d.ts.map +1 -1
  27. package/dist-lib/lib/logisticsPlanner.d.ts.map +1 -1
  28. package/dist-lib/lib/logisticsPlanner.js +35 -13
  29. package/dist-lib/lib/logisticsRecalcJob.functions.d.ts +1983 -1317
  30. package/dist-lib/lib/logisticsRecalcJob.functions.d.ts.map +1 -1
  31. package/dist-lib/lib/logisticsRecalculate.functions.d.ts +1048 -715
  32. package/dist-lib/lib/logisticsRecalculate.functions.d.ts.map +1 -1
  33. package/dist-lib/lib/modulePrompts.d.ts +19 -3
  34. package/dist-lib/lib/modulePrompts.d.ts.map +1 -1
  35. package/dist-lib/lib/modulePrompts.js +1636 -1298
  36. package/dist-lib/lib/ruleEngineSchema.d.ts.map +1 -1
  37. package/dist-lib/lib/ruleEngineSchema.js +21 -4
  38. package/dist-lib/lib/ruleEngineWizard.d.ts.map +1 -1
  39. package/dist-lib/lib/ruleEngineWizard.js +3 -1
  40. package/package.json +1 -1
  41. package/dist-lib/components/rule-engine/FloridayConnectionBanner.d.ts +0 -2
  42. package/dist-lib/components/rule-engine/FloridayConnectionBanner.d.ts.map +0 -1
  43. package/dist-lib/components/rule-engine/FloridayConnectionBanner.js +0 -41
  44. package/dist-lib/integrations/supabase/client.d.ts +0 -20293
  45. package/dist-lib/integrations/supabase/client.d.ts.map +0 -1
  46. package/dist-lib/integrations/supabase/client.js +0 -13
@@ -5983,10 +5983,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
5983
5983
  };
5984
5984
  floriday_connections: {
5985
5985
  Row: {
5986
- access_token: string | null;
5987
5986
  api_key: string;
5988
- client_id: string;
5989
- client_secret: string;
5990
5987
  created_at: string;
5991
5988
  customers_endpoint: string | null;
5992
5989
  environment: string;
@@ -6001,10 +5998,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
6001
5998
  updated_at: string;
6002
5999
  };
6003
6000
  Insert: {
6004
- access_token?: string | null;
6005
6001
  api_key: string;
6006
- client_id: string;
6007
- client_secret: string;
6008
6002
  created_at?: string;
6009
6003
  customers_endpoint?: string | null;
6010
6004
  environment: string;
@@ -6019,10 +6013,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
6019
6013
  updated_at?: string;
6020
6014
  };
6021
6015
  Update: {
6022
- access_token?: string | null;
6023
6016
  api_key?: string;
6024
- client_id?: string;
6025
- client_secret?: string;
6026
6017
  created_at?: string;
6027
6018
  customers_endpoint?: string | null;
6028
6019
  environment?: string;
@@ -6106,6 +6097,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
6106
6097
  attempts: number;
6107
6098
  connection_id: string;
6108
6099
  created_at: string;
6100
+ dead_lettered_at: string | null;
6109
6101
  desired_available: boolean | null;
6110
6102
  gateway_attempt_id: string | null;
6111
6103
  id: string;
@@ -6114,9 +6106,13 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
6114
6106
  locked_by: string | null;
6115
6107
  next_attempt_at: string;
6116
6108
  number_of_pieces: number;
6109
+ product_id: string | null;
6117
6110
  sent_at: string | null;
6118
6111
  status: string;
6112
+ stock_mode: string | null;
6119
6113
  superseded_by: string | null;
6114
+ target_week: number | null;
6115
+ target_year: number | null;
6120
6116
  trade_item_id: string;
6121
6117
  updated_at: string;
6122
6118
  user_id: string;
@@ -6125,6 +6121,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
6125
6121
  attempts?: number;
6126
6122
  connection_id: string;
6127
6123
  created_at?: string;
6124
+ dead_lettered_at?: string | null;
6128
6125
  desired_available?: boolean | null;
6129
6126
  gateway_attempt_id?: string | null;
6130
6127
  id?: string;
@@ -6133,9 +6130,13 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
6133
6130
  locked_by?: string | null;
6134
6131
  next_attempt_at?: string;
6135
6132
  number_of_pieces?: number;
6133
+ product_id?: string | null;
6136
6134
  sent_at?: string | null;
6137
6135
  status?: string;
6136
+ stock_mode?: string | null;
6138
6137
  superseded_by?: string | null;
6138
+ target_week?: number | null;
6139
+ target_year?: number | null;
6139
6140
  trade_item_id: string;
6140
6141
  updated_at?: string;
6141
6142
  user_id: string;
@@ -6144,6 +6145,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
6144
6145
  attempts?: number;
6145
6146
  connection_id?: string;
6146
6147
  created_at?: string;
6148
+ dead_lettered_at?: string | null;
6147
6149
  desired_available?: boolean | null;
6148
6150
  gateway_attempt_id?: string | null;
6149
6151
  id?: string;
@@ -6152,9 +6154,13 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
6152
6154
  locked_by?: string | null;
6153
6155
  next_attempt_at?: string;
6154
6156
  number_of_pieces?: number;
6157
+ product_id?: string | null;
6155
6158
  sent_at?: string | null;
6156
6159
  status?: string;
6160
+ stock_mode?: string | null;
6157
6161
  superseded_by?: string | null;
6162
+ target_week?: number | null;
6163
+ target_year?: number | null;
6158
6164
  trade_item_id?: string;
6159
6165
  updated_at?: string;
6160
6166
  user_id?: string;
@@ -6563,6 +6569,87 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
6563
6569
  referencedColumns: ["id"];
6564
6570
  }];
6565
6571
  };
6572
+ floriday_inventory_settings: {
6573
+ Row: {
6574
+ buffer_quantity: number;
6575
+ connection_id: string;
6576
+ created_at: string;
6577
+ desired_availability: boolean;
6578
+ desired_quantity: number;
6579
+ fixed_quantity: number | null;
6580
+ floriday_trade_item_id: string | null;
6581
+ id: string;
6582
+ last_confirmed_at: string | null;
6583
+ last_enqueued_at: string | null;
6584
+ last_published_at: string | null;
6585
+ last_sync_error: string | null;
6586
+ manual_quantity: number | null;
6587
+ maximum_quantity: number | null;
6588
+ product_id: string;
6589
+ quantity_control: string;
6590
+ remote_available: boolean | null;
6591
+ remote_checked_at: string | null;
6592
+ remote_quantity: number | null;
6593
+ stock_mode: string;
6594
+ sync_status: string;
6595
+ updated_at: string;
6596
+ updated_by: string | null;
6597
+ user_id: string;
6598
+ };
6599
+ Insert: {
6600
+ buffer_quantity?: number;
6601
+ connection_id: string;
6602
+ created_at?: string;
6603
+ desired_availability?: boolean;
6604
+ desired_quantity?: number;
6605
+ fixed_quantity?: number | null;
6606
+ floriday_trade_item_id?: string | null;
6607
+ id?: string;
6608
+ last_confirmed_at?: string | null;
6609
+ last_enqueued_at?: string | null;
6610
+ last_published_at?: string | null;
6611
+ last_sync_error?: string | null;
6612
+ manual_quantity?: number | null;
6613
+ maximum_quantity?: number | null;
6614
+ product_id: string;
6615
+ quantity_control?: string;
6616
+ remote_available?: boolean | null;
6617
+ remote_checked_at?: string | null;
6618
+ remote_quantity?: number | null;
6619
+ stock_mode?: string;
6620
+ sync_status?: string;
6621
+ updated_at?: string;
6622
+ updated_by?: string | null;
6623
+ user_id: string;
6624
+ };
6625
+ Update: {
6626
+ buffer_quantity?: number;
6627
+ connection_id?: string;
6628
+ created_at?: string;
6629
+ desired_availability?: boolean;
6630
+ desired_quantity?: number;
6631
+ fixed_quantity?: number | null;
6632
+ floriday_trade_item_id?: string | null;
6633
+ id?: string;
6634
+ last_confirmed_at?: string | null;
6635
+ last_enqueued_at?: string | null;
6636
+ last_published_at?: string | null;
6637
+ last_sync_error?: string | null;
6638
+ manual_quantity?: number | null;
6639
+ maximum_quantity?: number | null;
6640
+ product_id?: string;
6641
+ quantity_control?: string;
6642
+ remote_available?: boolean | null;
6643
+ remote_checked_at?: string | null;
6644
+ remote_quantity?: number | null;
6645
+ stock_mode?: string;
6646
+ sync_status?: string;
6647
+ updated_at?: string;
6648
+ updated_by?: string | null;
6649
+ user_id?: string;
6650
+ };
6651
+ Relationships: [];
6652
+ };
6566
6653
  floriday_invoices_cache: {
6567
6654
  Row: {
6568
6655
  buyer_organization_id: string | null;
@@ -6851,6 +6938,39 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
6851
6938
  };
6852
6939
  Relationships: [];
6853
6940
  };
6941
+ floriday_sales_order_ingest: {
6942
+ Row: {
6943
+ connection_id: string;
6944
+ created_at: string;
6945
+ id: string;
6946
+ impact: import("./types").Json;
6947
+ order_status: string | null;
6948
+ order_version: number;
6949
+ processed_at: string;
6950
+ sales_order_id: string;
6951
+ };
6952
+ Insert: {
6953
+ connection_id: string;
6954
+ created_at?: string;
6955
+ id?: string;
6956
+ impact?: import("./types").Json;
6957
+ order_status?: string | null;
6958
+ order_version?: number;
6959
+ processed_at?: string;
6960
+ sales_order_id: string;
6961
+ };
6962
+ Update: {
6963
+ connection_id?: string;
6964
+ created_at?: string;
6965
+ id?: string;
6966
+ impact?: import("./types").Json;
6967
+ order_status?: string | null;
6968
+ order_version?: number;
6969
+ processed_at?: string;
6970
+ sales_order_id?: string;
6971
+ };
6972
+ Relationships: [];
6973
+ };
6854
6974
  floriday_sales_strategies_cache: {
6855
6975
  Row: {
6856
6976
  connection_id: string;
@@ -6950,6 +7070,39 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
6950
7070
  };
6951
7071
  Relationships: [];
6952
7072
  };
7073
+ floriday_sync_cursors: {
7074
+ Row: {
7075
+ connection_id: string;
7076
+ created_at: string;
7077
+ id: string;
7078
+ last_error: string | null;
7079
+ last_sync_at: string | null;
7080
+ resource_type: string;
7081
+ sequence_number: number;
7082
+ updated_at: string;
7083
+ };
7084
+ Insert: {
7085
+ connection_id: string;
7086
+ created_at?: string;
7087
+ id?: string;
7088
+ last_error?: string | null;
7089
+ last_sync_at?: string | null;
7090
+ resource_type: string;
7091
+ sequence_number?: number;
7092
+ updated_at?: string;
7093
+ };
7094
+ Update: {
7095
+ connection_id?: string;
7096
+ created_at?: string;
7097
+ id?: string;
7098
+ last_error?: string | null;
7099
+ last_sync_at?: string | null;
7100
+ resource_type?: string;
7101
+ sequence_number?: number;
7102
+ updated_at?: string;
7103
+ };
7104
+ Relationships: [];
7105
+ };
6953
7106
  floriday_sync_state: {
6954
7107
  Row: {
6955
7108
  connection_id: string;
@@ -7640,6 +7793,42 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
7640
7793
  };
7641
7794
  Relationships: [];
7642
7795
  };
7796
+ inventory_stock_snapshots: {
7797
+ Row: {
7798
+ connection_id: string;
7799
+ created_at: string;
7800
+ erp_available_quantity: number;
7801
+ floriday_desired_quantity: number;
7802
+ floriday_remote_quantity: number | null;
7803
+ granularity: string;
7804
+ id: string;
7805
+ snapshot_at: string;
7806
+ user_id: string | null;
7807
+ };
7808
+ Insert: {
7809
+ connection_id: string;
7810
+ created_at?: string;
7811
+ erp_available_quantity?: number;
7812
+ floriday_desired_quantity?: number;
7813
+ floriday_remote_quantity?: number | null;
7814
+ granularity?: string;
7815
+ id?: string;
7816
+ snapshot_at?: string;
7817
+ user_id?: string | null;
7818
+ };
7819
+ Update: {
7820
+ connection_id?: string;
7821
+ created_at?: string;
7822
+ erp_available_quantity?: number;
7823
+ floriday_desired_quantity?: number;
7824
+ floriday_remote_quantity?: number | null;
7825
+ granularity?: string;
7826
+ id?: string;
7827
+ snapshot_at?: string;
7828
+ user_id?: string | null;
7829
+ };
7830
+ Relationships: [];
7831
+ };
7643
7832
  invoice_items: {
7644
7833
  Row: {
7645
7834
  created_at: string;
@@ -8148,13 +8337,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
8148
8337
  segment?: Database["public"]["Enums"]["itk_customer_segment"];
8149
8338
  updated_at?: string;
8150
8339
  };
8151
- Relationships: [{
8152
- foreignKeyName: "itk_customers_legacy_customer_id_fkey";
8153
- columns: ["legacy_customer_id"];
8154
- isOneToOne: false;
8155
- referencedRelation: "customers";
8156
- referencedColumns: ["id"];
8157
- }];
8340
+ Relationships: [];
8158
8341
  };
8159
8342
  itk_dynamic_fields: {
8160
8343
  Row: {
@@ -8186,6 +8369,180 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
8186
8369
  };
8187
8370
  Relationships: [];
8188
8371
  };
8372
+ itk_handover_rechten: {
8373
+ Row: {
8374
+ created_at: string;
8375
+ id: string;
8376
+ module_id: string;
8377
+ rol: Database["public"]["Enums"]["app_role"] | null;
8378
+ updated_at: string;
8379
+ user_id: string | null;
8380
+ };
8381
+ Insert: {
8382
+ created_at?: string;
8383
+ id?: string;
8384
+ module_id: string;
8385
+ rol?: Database["public"]["Enums"]["app_role"] | null;
8386
+ updated_at?: string;
8387
+ user_id?: string | null;
8388
+ };
8389
+ Update: {
8390
+ created_at?: string;
8391
+ id?: string;
8392
+ module_id?: string;
8393
+ rol?: Database["public"]["Enums"]["app_role"] | null;
8394
+ updated_at?: string;
8395
+ user_id?: string | null;
8396
+ };
8397
+ Relationships: [];
8398
+ };
8399
+ itk_handover_tokens: {
8400
+ Row: {
8401
+ aangemaakt_door: string | null;
8402
+ created_at: string;
8403
+ id: string;
8404
+ is_actief: boolean;
8405
+ laatst_gebruikt_op: string | null;
8406
+ label: string;
8407
+ module_id: string;
8408
+ token_hash: string;
8409
+ updated_at: string;
8410
+ verloopt_op: string | null;
8411
+ };
8412
+ Insert: {
8413
+ aangemaakt_door?: string | null;
8414
+ created_at?: string;
8415
+ id?: string;
8416
+ is_actief?: boolean;
8417
+ laatst_gebruikt_op?: string | null;
8418
+ label?: string;
8419
+ module_id: string;
8420
+ token_hash: string;
8421
+ updated_at?: string;
8422
+ verloopt_op?: string | null;
8423
+ };
8424
+ Update: {
8425
+ aangemaakt_door?: string | null;
8426
+ created_at?: string;
8427
+ id?: string;
8428
+ is_actief?: boolean;
8429
+ laatst_gebruikt_op?: string | null;
8430
+ label?: string;
8431
+ module_id?: string;
8432
+ token_hash?: string;
8433
+ updated_at?: string;
8434
+ verloopt_op?: string | null;
8435
+ };
8436
+ Relationships: [];
8437
+ };
8438
+ itk_module_handovers: {
8439
+ Row: {
8440
+ bevindingen: string | null;
8441
+ bezit_tabellen: string[];
8442
+ conflicten_snapshot: import("./types").Json;
8443
+ contractfuncties: string[];
8444
+ created_at: string;
8445
+ eigenaar_module_id: string | null;
8446
+ gepubliceerd_door: string | null;
8447
+ gepubliceerd_op: string;
8448
+ herzieningstermijn_dagen: number;
8449
+ id: string;
8450
+ inhoud_md: string;
8451
+ is_actueel: boolean;
8452
+ module_id: string;
8453
+ module_titel: string;
8454
+ ontbrekende_contracten: string[];
8455
+ samenvatting: string | null;
8456
+ updated_at: string;
8457
+ versie: number;
8458
+ };
8459
+ Insert: {
8460
+ bevindingen?: string | null;
8461
+ bezit_tabellen?: string[];
8462
+ conflicten_snapshot?: import("./types").Json;
8463
+ contractfuncties?: string[];
8464
+ created_at?: string;
8465
+ eigenaar_module_id?: string | null;
8466
+ gepubliceerd_door?: string | null;
8467
+ gepubliceerd_op?: string;
8468
+ herzieningstermijn_dagen?: number;
8469
+ id?: string;
8470
+ inhoud_md: string;
8471
+ is_actueel?: boolean;
8472
+ module_id: string;
8473
+ module_titel: string;
8474
+ ontbrekende_contracten?: string[];
8475
+ samenvatting?: string | null;
8476
+ updated_at?: string;
8477
+ versie?: number;
8478
+ };
8479
+ Update: {
8480
+ bevindingen?: string | null;
8481
+ bezit_tabellen?: string[];
8482
+ conflicten_snapshot?: import("./types").Json;
8483
+ contractfuncties?: string[];
8484
+ created_at?: string;
8485
+ eigenaar_module_id?: string | null;
8486
+ gepubliceerd_door?: string | null;
8487
+ gepubliceerd_op?: string;
8488
+ herzieningstermijn_dagen?: number;
8489
+ id?: string;
8490
+ inhoud_md?: string;
8491
+ is_actueel?: boolean;
8492
+ module_id?: string;
8493
+ module_titel?: string;
8494
+ ontbrekende_contracten?: string[];
8495
+ samenvatting?: string | null;
8496
+ updated_at?: string;
8497
+ versie?: number;
8498
+ };
8499
+ Relationships: [];
8500
+ };
8501
+ itk_module_instructies: {
8502
+ Row: {
8503
+ created_at: string;
8504
+ eigenaar_module_id: string;
8505
+ gepubliceerd_door: string | null;
8506
+ gepubliceerd_op: string;
8507
+ id: string;
8508
+ inhoud_md: string;
8509
+ is_actueel: boolean;
8510
+ sleutel: string;
8511
+ titel: string;
8512
+ toelichting: string | null;
8513
+ updated_at: string;
8514
+ versie: number;
8515
+ };
8516
+ Insert: {
8517
+ created_at?: string;
8518
+ eigenaar_module_id?: string;
8519
+ gepubliceerd_door?: string | null;
8520
+ gepubliceerd_op?: string;
8521
+ id?: string;
8522
+ inhoud_md: string;
8523
+ is_actueel?: boolean;
8524
+ sleutel: string;
8525
+ titel: string;
8526
+ toelichting?: string | null;
8527
+ updated_at?: string;
8528
+ versie?: number;
8529
+ };
8530
+ Update: {
8531
+ created_at?: string;
8532
+ eigenaar_module_id?: string;
8533
+ gepubliceerd_door?: string | null;
8534
+ gepubliceerd_op?: string;
8535
+ id?: string;
8536
+ inhoud_md?: string;
8537
+ is_actueel?: boolean;
8538
+ sleutel?: string;
8539
+ titel?: string;
8540
+ toelichting?: string | null;
8541
+ updated_at?: string;
8542
+ versie?: number;
8543
+ };
8544
+ Relationships: [];
8545
+ };
8189
8546
  itk_offerte_events: {
8190
8547
  Row: {
8191
8548
  created_at: string;
@@ -9044,6 +9401,27 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
9044
9401
  };
9045
9402
  Relationships: [];
9046
9403
  };
9404
+ logistics_cart_barcode: {
9405
+ Row: {
9406
+ barcode: string;
9407
+ cart_id: string;
9408
+ created_at: string;
9409
+ order_id: string | null;
9410
+ };
9411
+ Insert: {
9412
+ barcode: string;
9413
+ cart_id: string;
9414
+ created_at?: string;
9415
+ order_id?: string | null;
9416
+ };
9417
+ Update: {
9418
+ barcode?: string;
9419
+ cart_id?: string;
9420
+ created_at?: string;
9421
+ order_id?: string | null;
9422
+ };
9423
+ Relationships: [];
9424
+ };
9047
9425
  logistics_decisions: {
9048
9426
  Row: {
9049
9427
  created_at: string;
@@ -9872,6 +10250,36 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
9872
10250
  referencedColumns: ["id"];
9873
10251
  }];
9874
10252
  };
10253
+ logistics_shipping_note_scan: {
10254
+ Row: {
10255
+ barcode: string;
10256
+ cart_id: string;
10257
+ id: string;
10258
+ is_reprint: boolean;
10259
+ order_id: string | null;
10260
+ print_job_id: string | null;
10261
+ scanned_at: string;
10262
+ };
10263
+ Insert: {
10264
+ barcode: string;
10265
+ cart_id: string;
10266
+ id?: string;
10267
+ is_reprint?: boolean;
10268
+ order_id?: string | null;
10269
+ print_job_id?: string | null;
10270
+ scanned_at?: string;
10271
+ };
10272
+ Update: {
10273
+ barcode?: string;
10274
+ cart_id?: string;
10275
+ id?: string;
10276
+ is_reprint?: boolean;
10277
+ order_id?: string | null;
10278
+ print_job_id?: string | null;
10279
+ scanned_at?: string;
10280
+ };
10281
+ Relationships: [];
10282
+ };
9875
10283
  logistics_staff_planning: {
9876
10284
  Row: {
9877
10285
  created_at: string;
@@ -12693,6 +13101,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
12693
13101
  print_job_id: string | null;
12694
13102
  printed_at: string | null;
12695
13103
  printed_by: string | null;
13104
+ printed_cart_ids: import("./types").Json;
12696
13105
  printer_id: string | null;
12697
13106
  priority: number;
12698
13107
  reference: string | null;
@@ -12727,6 +13136,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
12727
13136
  print_job_id?: string | null;
12728
13137
  printed_at?: string | null;
12729
13138
  printed_by?: string | null;
13139
+ printed_cart_ids?: import("./types").Json;
12730
13140
  printer_id?: string | null;
12731
13141
  priority?: number;
12732
13142
  reference?: string | null;
@@ -12761,6 +13171,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
12761
13171
  print_job_id?: string | null;
12762
13172
  printed_at?: string | null;
12763
13173
  printed_by?: string | null;
13174
+ printed_cart_ids?: import("./types").Json;
12764
13175
  printer_id?: string | null;
12765
13176
  priority?: number;
12766
13177
  reference?: string | null;
@@ -13560,6 +13971,12 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
13560
13971
  isOneToOne: false;
13561
13972
  referencedRelation: "planning_items";
13562
13973
  referencedColumns: ["id"];
13974
+ }, {
13975
+ foreignKeyName: "planning_item_assistants_planning_item_id_fkey";
13976
+ columns: ["planning_item_id"];
13977
+ isOneToOne: false;
13978
+ referencedRelation: "planning_overview";
13979
+ referencedColumns: ["id"];
13563
13980
  }];
13564
13981
  };
13565
13982
  planning_items: {
@@ -15137,450 +15554,6 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
15137
15554
  referencedColumns: ["id"];
15138
15555
  }];
15139
15556
  };
15140
- quote_activities: {
15141
- Row: {
15142
- created_at: string;
15143
- event_type: string;
15144
- id: string;
15145
- metadata: import("./types").Json;
15146
- quote_id: string;
15147
- user_id: string | null;
15148
- };
15149
- Insert: {
15150
- created_at?: string;
15151
- event_type: string;
15152
- id?: string;
15153
- metadata?: import("./types").Json;
15154
- quote_id: string;
15155
- user_id?: string | null;
15156
- };
15157
- Update: {
15158
- created_at?: string;
15159
- event_type?: string;
15160
- id?: string;
15161
- metadata?: import("./types").Json;
15162
- quote_id?: string;
15163
- user_id?: string | null;
15164
- };
15165
- Relationships: [{
15166
- foreignKeyName: "quote_activities_quote_id_fkey";
15167
- columns: ["quote_id"];
15168
- isOneToOne: false;
15169
- referencedRelation: "quotes";
15170
- referencedColumns: ["id"];
15171
- }];
15172
- };
15173
- quote_attachments: {
15174
- Row: {
15175
- created_at: string;
15176
- file_name: string;
15177
- file_size: number | null;
15178
- file_url: string;
15179
- id: string;
15180
- mime_type: string | null;
15181
- quote_id: string;
15182
- };
15183
- Insert: {
15184
- created_at?: string;
15185
- file_name: string;
15186
- file_size?: number | null;
15187
- file_url: string;
15188
- id?: string;
15189
- mime_type?: string | null;
15190
- quote_id: string;
15191
- };
15192
- Update: {
15193
- created_at?: string;
15194
- file_name?: string;
15195
- file_size?: number | null;
15196
- file_url?: string;
15197
- id?: string;
15198
- mime_type?: string | null;
15199
- quote_id?: string;
15200
- };
15201
- Relationships: [{
15202
- foreignKeyName: "quote_attachments_quote_id_fkey";
15203
- columns: ["quote_id"];
15204
- isOneToOne: false;
15205
- referencedRelation: "quotes";
15206
- referencedColumns: ["id"];
15207
- }];
15208
- };
15209
- quote_field_options: {
15210
- Row: {
15211
- created_at: string;
15212
- field_id: string;
15213
- id: string;
15214
- label: string;
15215
- sort_order: number;
15216
- value: string;
15217
- };
15218
- Insert: {
15219
- created_at?: string;
15220
- field_id: string;
15221
- id?: string;
15222
- label: string;
15223
- sort_order?: number;
15224
- value: string;
15225
- };
15226
- Update: {
15227
- created_at?: string;
15228
- field_id?: string;
15229
- id?: string;
15230
- label?: string;
15231
- sort_order?: number;
15232
- value?: string;
15233
- };
15234
- Relationships: [{
15235
- foreignKeyName: "quote_field_options_field_id_fkey";
15236
- columns: ["field_id"];
15237
- isOneToOne: false;
15238
- referencedRelation: "quote_field_settings";
15239
- referencedColumns: ["id"];
15240
- }];
15241
- };
15242
- quote_field_settings: {
15243
- Row: {
15244
- created_at: string;
15245
- default_value: string | null;
15246
- field_key: string;
15247
- field_type: string;
15248
- id: string;
15249
- is_system: boolean;
15250
- label: string;
15251
- required: boolean;
15252
- sort_order: number;
15253
- updated_at: string;
15254
- visible: boolean;
15255
- };
15256
- Insert: {
15257
- created_at?: string;
15258
- default_value?: string | null;
15259
- field_key: string;
15260
- field_type: string;
15261
- id?: string;
15262
- is_system?: boolean;
15263
- label: string;
15264
- required?: boolean;
15265
- sort_order?: number;
15266
- updated_at?: string;
15267
- visible?: boolean;
15268
- };
15269
- Update: {
15270
- created_at?: string;
15271
- default_value?: string | null;
15272
- field_key?: string;
15273
- field_type?: string;
15274
- id?: string;
15275
- is_system?: boolean;
15276
- label?: string;
15277
- required?: boolean;
15278
- sort_order?: number;
15279
- updated_at?: string;
15280
- visible?: boolean;
15281
- };
15282
- Relationships: [];
15283
- };
15284
- quote_items: {
15285
- Row: {
15286
- category: string | null;
15287
- created_at: string;
15288
- description: string;
15289
- id: string;
15290
- line_total: number;
15291
- module_id: string | null;
15292
- name: string | null;
15293
- quantity: number;
15294
- quote_id: string;
15295
- sort_order: number;
15296
- unit_price: number;
15297
- };
15298
- Insert: {
15299
- category?: string | null;
15300
- created_at?: string;
15301
- description?: string;
15302
- id?: string;
15303
- line_total?: number;
15304
- module_id?: string | null;
15305
- name?: string | null;
15306
- quantity?: number;
15307
- quote_id: string;
15308
- sort_order?: number;
15309
- unit_price?: number;
15310
- };
15311
- Update: {
15312
- category?: string | null;
15313
- created_at?: string;
15314
- description?: string;
15315
- id?: string;
15316
- line_total?: number;
15317
- module_id?: string | null;
15318
- name?: string | null;
15319
- quantity?: number;
15320
- quote_id?: string;
15321
- sort_order?: number;
15322
- unit_price?: number;
15323
- };
15324
- Relationships: [{
15325
- foreignKeyName: "quote_items_module_id_fkey";
15326
- columns: ["module_id"];
15327
- isOneToOne: false;
15328
- referencedRelation: "quote_modules";
15329
- referencedColumns: ["id"];
15330
- }, {
15331
- foreignKeyName: "quote_items_quote_id_fkey";
15332
- columns: ["quote_id"];
15333
- isOneToOne: false;
15334
- referencedRelation: "quotes";
15335
- referencedColumns: ["id"];
15336
- }];
15337
- };
15338
- quote_modules: {
15339
- Row: {
15340
- category: string | null;
15341
- created_at: string;
15342
- description: string | null;
15343
- id: string;
15344
- is_active: boolean;
15345
- name: string;
15346
- price: number;
15347
- sort_order: number;
15348
- updated_at: string;
15349
- };
15350
- Insert: {
15351
- category?: string | null;
15352
- created_at?: string;
15353
- description?: string | null;
15354
- id?: string;
15355
- is_active?: boolean;
15356
- name: string;
15357
- price?: number;
15358
- sort_order?: number;
15359
- updated_at?: string;
15360
- };
15361
- Update: {
15362
- category?: string | null;
15363
- created_at?: string;
15364
- description?: string | null;
15365
- id?: string;
15366
- is_active?: boolean;
15367
- name?: string;
15368
- price?: number;
15369
- sort_order?: number;
15370
- updated_at?: string;
15371
- };
15372
- Relationships: [];
15373
- };
15374
- quote_templates: {
15375
- Row: {
15376
- created_at: string;
15377
- description: string | null;
15378
- field_values: import("./types").Json;
15379
- id: string;
15380
- is_default: boolean;
15381
- items: import("./types").Json;
15382
- name: string;
15383
- updated_at: string;
15384
- vat_rate: number;
15385
- };
15386
- Insert: {
15387
- created_at?: string;
15388
- description?: string | null;
15389
- field_values?: import("./types").Json;
15390
- id?: string;
15391
- is_default?: boolean;
15392
- items?: import("./types").Json;
15393
- name: string;
15394
- updated_at?: string;
15395
- vat_rate?: number;
15396
- };
15397
- Update: {
15398
- created_at?: string;
15399
- description?: string | null;
15400
- field_values?: import("./types").Json;
15401
- id?: string;
15402
- is_default?: boolean;
15403
- items?: import("./types").Json;
15404
- name?: string;
15405
- updated_at?: string;
15406
- vat_rate?: number;
15407
- };
15408
- Relationships: [];
15409
- };
15410
- quote_terms: {
15411
- Row: {
15412
- content: string | null;
15413
- created_at: string;
15414
- file_url: string | null;
15415
- id: string;
15416
- is_active: boolean;
15417
- name: string;
15418
- published_at: string | null;
15419
- updated_at: string;
15420
- version: string;
15421
- };
15422
- Insert: {
15423
- content?: string | null;
15424
- created_at?: string;
15425
- file_url?: string | null;
15426
- id?: string;
15427
- is_active?: boolean;
15428
- name: string;
15429
- published_at?: string | null;
15430
- updated_at?: string;
15431
- version?: string;
15432
- };
15433
- Update: {
15434
- content?: string | null;
15435
- created_at?: string;
15436
- file_url?: string | null;
15437
- id?: string;
15438
- is_active?: boolean;
15439
- name?: string;
15440
- published_at?: string | null;
15441
- updated_at?: string;
15442
- version?: string;
15443
- };
15444
- Relationships: [];
15445
- };
15446
- quotes: {
15447
- Row: {
15448
- accepted_at: string | null;
15449
- archived_at: string | null;
15450
- contact_id: string | null;
15451
- created_at: string;
15452
- customer_id: string | null;
15453
- discount: number;
15454
- expires_at: string | null;
15455
- field_values: import("./types").Json;
15456
- id: string;
15457
- notes: string | null;
15458
- owner_id: string | null;
15459
- personal_message: string | null;
15460
- project_id: string | null;
15461
- prospect_id: string | null;
15462
- public_token: string;
15463
- quote_number: string | null;
15464
- recipient_email: string | null;
15465
- recipient_name: string | null;
15466
- rejected_at: string | null;
15467
- sent_at: string | null;
15468
- status: string;
15469
- subtotal: number;
15470
- template_id: string | null;
15471
- terms_id: string | null;
15472
- title: string;
15473
- total: number;
15474
- updated_at: string;
15475
- valid_until: string | null;
15476
- vat_amount: number;
15477
- vat_rate: number;
15478
- viewed_at: string | null;
15479
- };
15480
- Insert: {
15481
- accepted_at?: string | null;
15482
- archived_at?: string | null;
15483
- contact_id?: string | null;
15484
- created_at?: string;
15485
- customer_id?: string | null;
15486
- discount?: number;
15487
- expires_at?: string | null;
15488
- field_values?: import("./types").Json;
15489
- id?: string;
15490
- notes?: string | null;
15491
- owner_id?: string | null;
15492
- personal_message?: string | null;
15493
- project_id?: string | null;
15494
- prospect_id?: string | null;
15495
- public_token?: string;
15496
- quote_number?: string | null;
15497
- recipient_email?: string | null;
15498
- recipient_name?: string | null;
15499
- rejected_at?: string | null;
15500
- sent_at?: string | null;
15501
- status?: string;
15502
- subtotal?: number;
15503
- template_id?: string | null;
15504
- terms_id?: string | null;
15505
- title?: string;
15506
- total?: number;
15507
- updated_at?: string;
15508
- valid_until?: string | null;
15509
- vat_amount?: number;
15510
- vat_rate?: number;
15511
- viewed_at?: string | null;
15512
- };
15513
- Update: {
15514
- accepted_at?: string | null;
15515
- archived_at?: string | null;
15516
- contact_id?: string | null;
15517
- created_at?: string;
15518
- customer_id?: string | null;
15519
- discount?: number;
15520
- expires_at?: string | null;
15521
- field_values?: import("./types").Json;
15522
- id?: string;
15523
- notes?: string | null;
15524
- owner_id?: string | null;
15525
- personal_message?: string | null;
15526
- project_id?: string | null;
15527
- prospect_id?: string | null;
15528
- public_token?: string;
15529
- quote_number?: string | null;
15530
- recipient_email?: string | null;
15531
- recipient_name?: string | null;
15532
- rejected_at?: string | null;
15533
- sent_at?: string | null;
15534
- status?: string;
15535
- subtotal?: number;
15536
- template_id?: string | null;
15537
- terms_id?: string | null;
15538
- title?: string;
15539
- total?: number;
15540
- updated_at?: string;
15541
- valid_until?: string | null;
15542
- vat_amount?: number;
15543
- vat_rate?: number;
15544
- viewed_at?: string | null;
15545
- };
15546
- Relationships: [{
15547
- foreignKeyName: "quotes_contact_id_fkey";
15548
- columns: ["contact_id"];
15549
- isOneToOne: false;
15550
- referencedRelation: "customer_contacts";
15551
- referencedColumns: ["id"];
15552
- }, {
15553
- foreignKeyName: "quotes_customer_id_fkey";
15554
- columns: ["customer_id"];
15555
- isOneToOne: false;
15556
- referencedRelation: "customers";
15557
- referencedColumns: ["id"];
15558
- }, {
15559
- foreignKeyName: "quotes_project_id_fkey";
15560
- columns: ["project_id"];
15561
- isOneToOne: false;
15562
- referencedRelation: "projects";
15563
- referencedColumns: ["id"];
15564
- }, {
15565
- foreignKeyName: "quotes_prospect_id_fkey";
15566
- columns: ["prospect_id"];
15567
- isOneToOne: false;
15568
- referencedRelation: "prospects";
15569
- referencedColumns: ["id"];
15570
- }, {
15571
- foreignKeyName: "quotes_template_id_fkey";
15572
- columns: ["template_id"];
15573
- isOneToOne: false;
15574
- referencedRelation: "quote_templates";
15575
- referencedColumns: ["id"];
15576
- }, {
15577
- foreignKeyName: "quotes_terms_id_fkey";
15578
- columns: ["terms_id"];
15579
- isOneToOne: false;
15580
- referencedRelation: "quote_terms";
15581
- referencedColumns: ["id"];
15582
- }];
15583
- };
15584
15557
  reception_notifications: {
15585
15558
  Row: {
15586
15559
  booking_id: string | null;
@@ -16702,7 +16675,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
16702
16675
  foreignKeyName: "time_logs_work_order_id_fkey";
16703
16676
  columns: ["work_order_id"];
16704
16677
  isOneToOne: false;
16705
- referencedRelation: "work_orders";
16678
+ referencedRelation: "werkbonnen";
16706
16679
  referencedColumns: ["id"];
16707
16680
  }];
16708
16681
  };
@@ -16834,6 +16807,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
16834
16807
  };
16835
16808
  trade_item_stock: {
16836
16809
  Row: {
16810
+ change_source: string;
16837
16811
  connection_id: string;
16838
16812
  created_at: string;
16839
16813
  id: string;
@@ -16847,6 +16821,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
16847
16821
  user_id: string;
16848
16822
  };
16849
16823
  Insert: {
16824
+ change_source?: string;
16850
16825
  connection_id: string;
16851
16826
  created_at?: string;
16852
16827
  id?: string;
@@ -16860,6 +16835,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
16860
16835
  user_id: string;
16861
16836
  };
16862
16837
  Update: {
16838
+ change_source?: string;
16863
16839
  connection_id?: string;
16864
16840
  created_at?: string;
16865
16841
  id?: string;
@@ -17917,268 +17893,118 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
17917
17893
  break_minutes?: number | null;
17918
17894
  contract_hours_per_week?: number;
17919
17895
  created_at?: string;
17920
- daily_threshold_hours?: number | null;
17921
- id?: string;
17922
- include_travel?: boolean | null;
17923
- monteur_id: string;
17924
- ov02_percentage?: number | null;
17925
- ov03_percentage?: number | null;
17926
- updated_at?: string;
17927
- weekly_threshold_hours?: number | null;
17928
- workday_end?: string | null;
17929
- workday_start?: string | null;
17930
- };
17931
- Update: {
17932
- break_minutes?: number | null;
17933
- contract_hours_per_week?: number;
17934
- created_at?: string;
17935
- daily_threshold_hours?: number | null;
17936
- id?: string;
17937
- include_travel?: boolean | null;
17938
- monteur_id?: string;
17939
- ov02_percentage?: number | null;
17940
- ov03_percentage?: number | null;
17941
- updated_at?: string;
17942
- weekly_threshold_hours?: number | null;
17943
- workday_end?: string | null;
17944
- workday_start?: string | null;
17945
- };
17946
- Relationships: [];
17947
- };
17948
- uren_entries: {
17949
- Row: {
17950
- created_at: string;
17951
- created_by: string | null;
17952
- entry_date: string;
17953
- hours: number;
17954
- id: string;
17955
- kind: string;
17956
- monteur_id: string;
17957
- note: string | null;
17958
- source: string;
17959
- travel_km: number;
17960
- updated_at: string;
17961
- werkbon_id: string | null;
17962
- };
17963
- Insert: {
17964
- created_at?: string;
17965
- created_by?: string | null;
17966
- entry_date: string;
17967
- hours?: number;
17968
- id?: string;
17969
- kind?: string;
17970
- monteur_id: string;
17971
- note?: string | null;
17972
- source?: string;
17973
- travel_km?: number;
17974
- updated_at?: string;
17975
- werkbon_id?: string | null;
17976
- };
17977
- Update: {
17978
- created_at?: string;
17979
- created_by?: string | null;
17980
- entry_date?: string;
17981
- hours?: number;
17982
- id?: string;
17983
- kind?: string;
17984
- monteur_id?: string;
17985
- note?: string | null;
17986
- source?: string;
17987
- travel_km?: number;
17988
- updated_at?: string;
17989
- werkbon_id?: string | null;
17990
- };
17991
- Relationships: [{
17992
- foreignKeyName: "uren_entries_werkbon_id_fkey";
17993
- columns: ["werkbon_id"];
17994
- isOneToOne: false;
17995
- referencedRelation: "werkbonnen";
17996
- referencedColumns: ["id"];
17997
- }];
17998
- };
17999
- uren_exports: {
18000
- Row: {
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
- Insert: {
18011
- created_at?: string;
18012
- created_by?: string | null;
18013
- file_name?: string | null;
18014
- id?: string;
18015
- monteur_ids?: string[];
18016
- period_end: string;
18017
- period_start: string;
18018
- row_count?: number;
18019
- };
18020
- Update: {
18021
- created_at?: string;
18022
- created_by?: string | null;
18023
- file_name?: string | null;
18024
- id?: string;
18025
- monteur_ids?: string[];
18026
- period_end?: string;
18027
- period_start?: string;
18028
- row_count?: number;
18029
- };
18030
- Relationships: [];
18031
- };
18032
- uren_offerte_regels: {
18033
- Row: {
18034
- created_at: string;
18035
- description: string;
18036
- duration_minutes: number;
18037
- id: string;
18038
- offerte_id: string;
18039
- package_id: string | null;
18040
- quantity: number;
18041
- sort_order: number;
18042
- total_cents: number;
18043
- unit_price_cents: number;
18044
- };
18045
- Insert: {
18046
- created_at?: string;
18047
- description: string;
18048
- duration_minutes?: number;
18049
- id?: string;
18050
- offerte_id: string;
18051
- package_id?: string | null;
18052
- quantity?: number;
18053
- sort_order?: number;
18054
- total_cents?: number;
18055
- unit_price_cents?: number;
18056
- };
18057
- Update: {
18058
- created_at?: string;
18059
- description?: string;
18060
- duration_minutes?: number;
18061
- id?: string;
18062
- offerte_id?: string;
18063
- package_id?: string | null;
18064
- quantity?: number;
18065
- sort_order?: number;
18066
- total_cents?: number;
18067
- unit_price_cents?: number;
18068
- };
18069
- Relationships: [{
18070
- foreignKeyName: "uren_offerte_regels_offerte_id_fkey";
18071
- columns: ["offerte_id"];
18072
- isOneToOne: false;
18073
- referencedRelation: "uren_offertes";
18074
- referencedColumns: ["id"];
18075
- }, {
18076
- foreignKeyName: "uren_offerte_regels_package_id_fkey";
18077
- columns: ["package_id"];
18078
- isOneToOne: false;
18079
- referencedRelation: "werkbon_packages";
18080
- referencedColumns: ["id"];
18081
- }];
18082
- };
18083
- uren_offerte_velden: {
18084
- Row: {
18085
- created_at: string;
18086
- field_type: string;
18087
- id: string;
18088
- key: string;
18089
- label: string;
18090
- options: string[];
18091
- required: boolean;
18092
- sort_order: number;
18093
- updated_at: string;
18094
- };
18095
- Insert: {
18096
- created_at?: string;
18097
- field_type?: string;
18098
- id?: string;
18099
- key: string;
18100
- label: string;
18101
- options?: string[];
18102
- required?: boolean;
18103
- sort_order?: number;
17896
+ daily_threshold_hours?: number | null;
17897
+ id?: string;
17898
+ include_travel?: boolean | null;
17899
+ monteur_id: string;
17900
+ ov02_percentage?: number | null;
17901
+ ov03_percentage?: number | null;
18104
17902
  updated_at?: string;
17903
+ weekly_threshold_hours?: number | null;
17904
+ workday_end?: string | null;
17905
+ workday_start?: string | null;
18105
17906
  };
18106
17907
  Update: {
17908
+ break_minutes?: number | null;
17909
+ contract_hours_per_week?: number;
18107
17910
  created_at?: string;
18108
- field_type?: string;
17911
+ daily_threshold_hours?: number | null;
18109
17912
  id?: string;
18110
- key?: string;
18111
- label?: string;
18112
- options?: string[];
18113
- required?: boolean;
18114
- sort_order?: number;
17913
+ include_travel?: boolean | null;
17914
+ monteur_id?: string;
17915
+ ov02_percentage?: number | null;
17916
+ ov03_percentage?: number | null;
18115
17917
  updated_at?: string;
17918
+ weekly_threshold_hours?: number | null;
17919
+ workday_end?: string | null;
17920
+ workday_start?: string | null;
18116
17921
  };
18117
17922
  Relationships: [];
18118
17923
  };
18119
- uren_offertes: {
17924
+ uren_entries: {
18120
17925
  Row: {
18121
17926
  created_at: string;
18122
17927
  created_by: string | null;
18123
- customer_id: string | null;
18124
- customer_name: string | null;
18125
- dynamic_fields: import("./types").Json;
18126
- estimated_minutes: number;
17928
+ entry_date: string;
17929
+ hours: number;
18127
17930
  id: string;
17931
+ kind: string;
17932
+ monteur_id: string;
18128
17933
  note: string | null;
18129
- quote_number: string | null;
18130
- status: string;
18131
- title: string;
18132
- total_excl_cents: number;
18133
- total_incl_cents: number;
17934
+ source: string;
17935
+ travel_km: number;
18134
17936
  updated_at: string;
18135
- valid_until: string | null;
18136
- vat_percentage: number;
17937
+ werkbon_id: string | null;
18137
17938
  };
18138
17939
  Insert: {
18139
17940
  created_at?: string;
18140
17941
  created_by?: string | null;
18141
- customer_id?: string | null;
18142
- customer_name?: string | null;
18143
- dynamic_fields?: import("./types").Json;
18144
- estimated_minutes?: number;
17942
+ entry_date: string;
17943
+ hours?: number;
18145
17944
  id?: string;
17945
+ kind?: string;
17946
+ monteur_id: string;
18146
17947
  note?: string | null;
18147
- quote_number?: string | null;
18148
- status?: string;
18149
- title?: string;
18150
- total_excl_cents?: number;
18151
- total_incl_cents?: number;
17948
+ source?: string;
17949
+ travel_km?: number;
18152
17950
  updated_at?: string;
18153
- valid_until?: string | null;
18154
- vat_percentage?: number;
17951
+ werkbon_id?: string | null;
18155
17952
  };
18156
17953
  Update: {
18157
17954
  created_at?: string;
18158
17955
  created_by?: string | null;
18159
- customer_id?: string | null;
18160
- customer_name?: string | null;
18161
- dynamic_fields?: import("./types").Json;
18162
- estimated_minutes?: number;
17956
+ entry_date?: string;
17957
+ hours?: number;
18163
17958
  id?: string;
17959
+ kind?: string;
17960
+ monteur_id?: string;
18164
17961
  note?: string | null;
18165
- quote_number?: string | null;
18166
- status?: string;
18167
- title?: string;
18168
- total_excl_cents?: number;
18169
- total_incl_cents?: number;
17962
+ source?: string;
17963
+ travel_km?: number;
18170
17964
  updated_at?: string;
18171
- valid_until?: string | null;
18172
- vat_percentage?: number;
17965
+ werkbon_id?: string | null;
18173
17966
  };
18174
17967
  Relationships: [{
18175
- foreignKeyName: "uren_offertes_customer_id_fkey";
18176
- columns: ["customer_id"];
17968
+ foreignKeyName: "uren_entries_werkbon_id_fkey";
17969
+ columns: ["werkbon_id"];
18177
17970
  isOneToOne: false;
18178
- referencedRelation: "itk_customers";
17971
+ referencedRelation: "werkbonnen";
18179
17972
  referencedColumns: ["id"];
18180
17973
  }];
18181
17974
  };
17975
+ uren_exports: {
17976
+ Row: {
17977
+ created_at: string;
17978
+ created_by: string | null;
17979
+ file_name: string | null;
17980
+ id: string;
17981
+ monteur_ids: string[];
17982
+ period_end: string;
17983
+ period_start: string;
17984
+ row_count: number;
17985
+ };
17986
+ Insert: {
17987
+ created_at?: string;
17988
+ created_by?: string | null;
17989
+ file_name?: string | null;
17990
+ id?: string;
17991
+ monteur_ids?: string[];
17992
+ period_end: string;
17993
+ period_start: string;
17994
+ row_count?: number;
17995
+ };
17996
+ Update: {
17997
+ created_at?: string;
17998
+ created_by?: string | null;
17999
+ file_name?: string | null;
18000
+ id?: string;
18001
+ monteur_ids?: string[];
18002
+ period_end?: string;
18003
+ period_start?: string;
18004
+ row_count?: number;
18005
+ };
18006
+ Relationships: [];
18007
+ };
18182
18008
  uren_settings: {
18183
18009
  Row: {
18184
18010
  break_minutes: number;
@@ -19865,6 +19691,37 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
19865
19691
  };
19866
19692
  Relationships: [];
19867
19693
  };
19694
+ planning_overview: {
19695
+ Row: {
19696
+ assigned_monteur_id: string | null;
19697
+ assistants: import("./types").Json | null;
19698
+ budget_mandate_cents: number | null;
19699
+ created_at: string | null;
19700
+ created_by: string | null;
19701
+ customer_id: string | null;
19702
+ customer_name: string | null;
19703
+ duration_minutes: number | null;
19704
+ end_at: string | null;
19705
+ id: string | null;
19706
+ needs_detail_review: boolean | null;
19707
+ notes: string | null;
19708
+ project_number: string | null;
19709
+ review_reasons: string[] | null;
19710
+ start_at: string | null;
19711
+ status: Database["public"]["Enums"]["planning_item_status"] | null;
19712
+ updated_at: string | null;
19713
+ viewer_role: string | null;
19714
+ werkbon_id: string | null;
19715
+ work_address: string | null;
19716
+ };
19717
+ Relationships: [{
19718
+ foreignKeyName: "planning_items_werkbon_id_fkey";
19719
+ columns: ["werkbon_id"];
19720
+ isOneToOne: false;
19721
+ referencedRelation: "werkbonnen";
19722
+ referencedColumns: ["id"];
19723
+ }];
19724
+ };
19868
19725
  product_group_stock_view: {
19869
19726
  Row: {
19870
19727
  item_count: number | null;
@@ -20460,6 +20317,18 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
20460
20317
  Args: never;
20461
20318
  Returns: number;
20462
20319
  };
20320
+ calculate_floriday_desired_stock: {
20321
+ Args: {
20322
+ p_connection_id: string;
20323
+ p_product_id: string;
20324
+ };
20325
+ Returns: {
20326
+ desired_availability: boolean;
20327
+ desired_quantity: number;
20328
+ erp_available: number;
20329
+ stock_mode: string;
20330
+ }[];
20331
+ };
20463
20332
  calculate_layer_stock: {
20464
20333
  Args: {
20465
20334
  p_product_id: string;
@@ -20554,6 +20423,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
20554
20423
  attempts: number;
20555
20424
  connection_id: string;
20556
20425
  created_at: string;
20426
+ dead_lettered_at: string | null;
20557
20427
  desired_available: boolean | null;
20558
20428
  gateway_attempt_id: string | null;
20559
20429
  id: string;
@@ -20562,9 +20432,13 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
20562
20432
  locked_by: string | null;
20563
20433
  next_attempt_at: string;
20564
20434
  number_of_pieces: number;
20435
+ product_id: string | null;
20565
20436
  sent_at: string | null;
20566
20437
  status: string;
20438
+ stock_mode: string | null;
20567
20439
  superseded_by: string | null;
20440
+ target_week: number | null;
20441
+ target_year: number | null;
20568
20442
  trade_item_id: string;
20569
20443
  updated_at: string;
20570
20444
  user_id: string;
@@ -21045,6 +20919,24 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
21045
20919
  };
21046
20920
  Returns: string;
21047
20921
  };
20922
+ floriday_capture_stock_snapshot: {
20923
+ Args: never;
20924
+ Returns: number;
20925
+ };
20926
+ floriday_cleanup_stock_queue_v2: {
20927
+ Args: never;
20928
+ Returns: undefined;
20929
+ };
20930
+ floriday_compact_stock_snapshots: {
20931
+ Args: never;
20932
+ Returns: undefined;
20933
+ };
20934
+ floriday_default_owner: {
20935
+ Args: {
20936
+ p_connection_id: string;
20937
+ };
20938
+ Returns: string;
20939
+ };
21048
20940
  floriday_effective_price: {
21049
20941
  Args: {
21050
20942
  _buyer_id: string;
@@ -21062,6 +20954,34 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
21062
20954
  source_id: string;
21063
20955
  }[];
21064
20956
  };
20957
+ floriday_fill_publish_horizon: {
20958
+ Args: never;
20959
+ Returns: number;
20960
+ };
20961
+ floriday_ingest_sales_orders: {
20962
+ Args: {
20963
+ p_limit?: number;
20964
+ };
20965
+ Returns: number;
20966
+ };
20967
+ floriday_publish_horizon_weeks: {
20968
+ Args: never;
20969
+ Returns: number;
20970
+ };
20971
+ floriday_recompute_inventory: {
20972
+ Args: {
20973
+ p_connection_id: string;
20974
+ p_force?: boolean;
20975
+ p_product_id: string;
20976
+ };
20977
+ Returns: undefined;
20978
+ };
20979
+ floriday_requeue_dead_letters: {
20980
+ Args: {
20981
+ p_connection_id?: string;
20982
+ };
20983
+ Returns: number;
20984
+ };
21065
20985
  format_cart_number: {
21066
20986
  Args: {
21067
20987
  p_pick_date: string;
@@ -21241,42 +21161,167 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
21241
21161
  ordered_at: string;
21242
21162
  }[];
21243
21163
  };
21244
- get_or_assign_floriday_order_number: {
21164
+ get_or_assign_floriday_order_number: {
21165
+ Args: {
21166
+ p_floriday_id: string;
21167
+ };
21168
+ Returns: string;
21169
+ };
21170
+ get_product_group_available_stock: {
21171
+ Args: {
21172
+ p_group_id: string;
21173
+ };
21174
+ Returns: number;
21175
+ };
21176
+ get_room_busy_windows: {
21177
+ Args: {
21178
+ p_from: string;
21179
+ p_to: string;
21180
+ };
21181
+ Returns: {
21182
+ end_time: string;
21183
+ room_id: string;
21184
+ start_time: string;
21185
+ status: string;
21186
+ }[];
21187
+ };
21188
+ get_twinfield_cron_jobs: {
21189
+ Args: never;
21190
+ Returns: {
21191
+ active: boolean;
21192
+ jobname: string;
21193
+ schedule: string;
21194
+ url: string;
21195
+ }[];
21196
+ };
21197
+ get_user_tenant_id: {
21198
+ Args: never;
21199
+ Returns: string;
21200
+ };
21201
+ handover_get: {
21202
+ Args: {
21203
+ _module_id: string;
21204
+ };
21205
+ Returns: import("./types").Json;
21206
+ };
21207
+ handover_kern_naam: {
21208
+ Args: {
21209
+ _naam: string;
21210
+ };
21211
+ Returns: string;
21212
+ };
21213
+ handover_ketenmodel: {
21214
+ Args: never;
21215
+ Returns: import("./types").Json;
21216
+ };
21217
+ handover_kruisconflicten: {
21218
+ Args: never;
21219
+ Returns: import("./types").Json;
21220
+ };
21221
+ handover_list: {
21222
+ Args: never;
21223
+ Returns: import("./types").Json;
21224
+ };
21225
+ handover_mag_schrijven: {
21226
+ Args: {
21227
+ _module_id: string;
21228
+ };
21229
+ Returns: boolean;
21230
+ };
21231
+ handover_norm_naam: {
21232
+ Args: {
21233
+ _naam: string;
21234
+ };
21235
+ Returns: string;
21236
+ };
21237
+ handover_publish: {
21238
+ Args: {
21239
+ _bevindingen?: string;
21240
+ _bezit_tabellen?: string[];
21241
+ _conflicten_snapshot?: import("./types").Json;
21242
+ _contractfuncties?: string[];
21243
+ _inhoud_md: string;
21244
+ _module_id: string;
21245
+ _module_titel: string;
21246
+ _ontbrekende_contracten?: string[];
21247
+ _samenvatting?: string;
21248
+ };
21249
+ Returns: number;
21250
+ };
21251
+ handover_publish_via_token: {
21252
+ Args: {
21253
+ _bevindingen?: string;
21254
+ _bezit_tabellen?: string[];
21255
+ _conflicten_snapshot?: import("./types").Json;
21256
+ _contractfuncties?: string[];
21257
+ _inhoud_md: string;
21258
+ _module_id: string;
21259
+ _module_titel: string;
21260
+ _ontbrekende_contracten?: string[];
21261
+ _samenvatting?: string;
21262
+ _token_hash: string;
21263
+ };
21264
+ Returns: number;
21265
+ };
21266
+ handover_status: {
21267
+ Args: never;
21268
+ Returns: import("./types").Json;
21269
+ };
21270
+ handover_synonym_kern: {
21271
+ Args: {
21272
+ _naam: string;
21273
+ };
21274
+ Returns: string;
21275
+ };
21276
+ handover_token_intrekken: {
21277
+ Args: {
21278
+ _id: string;
21279
+ };
21280
+ Returns: boolean;
21281
+ };
21282
+ handover_token_lijst: {
21283
+ Args: never;
21284
+ Returns: import("./types").Json;
21285
+ };
21286
+ handover_token_maken: {
21245
21287
  Args: {
21246
- p_floriday_id: string;
21288
+ _label?: string;
21289
+ _module_id: string;
21247
21290
  };
21248
21291
  Returns: string;
21249
21292
  };
21250
- get_product_group_available_stock: {
21293
+ handover_update: {
21251
21294
  Args: {
21252
- p_group_id: string;
21295
+ _bezit_tabellen?: string[];
21296
+ _contractfuncties?: string[];
21297
+ _herzieningstermijn_dagen?: number;
21298
+ _inhoud_md?: string;
21299
+ _module_id: string;
21300
+ _module_titel?: string;
21301
+ _samenvatting?: string;
21302
+ _versie: number;
21253
21303
  };
21254
- Returns: number;
21255
- };
21256
- get_room_busy_windows: {
21304
+ Returns: boolean;
21305
+ } | {
21257
21306
  Args: {
21258
- p_from: string;
21259
- p_to: string;
21307
+ _bevindingen?: string;
21308
+ _bezit_tabellen?: string[];
21309
+ _contractfuncties?: string[];
21310
+ _herzieningstermijn_dagen?: number;
21311
+ _inhoud_md?: string;
21312
+ _module_id: string;
21313
+ _module_titel?: string;
21314
+ _ontbrekende_contracten?: string[];
21315
+ _samenvatting?: string;
21316
+ _versie: number;
21260
21317
  };
21261
- Returns: {
21262
- end_time: string;
21263
- room_id: string;
21264
- start_time: string;
21265
- status: string;
21266
- }[];
21267
- };
21268
- get_twinfield_cron_jobs: {
21269
- Args: never;
21270
- Returns: {
21271
- active: boolean;
21272
- jobname: string;
21273
- schedule: string;
21274
- url: string;
21275
- }[];
21318
+ Returns: boolean;
21276
21319
  };
21277
- get_user_tenant_id: {
21278
- Args: never;
21279
- Returns: string;
21320
+ handover_versies: {
21321
+ Args: {
21322
+ _module_id: string;
21323
+ };
21324
+ Returns: import("./types").Json;
21280
21325
  };
21281
21326
  has_module_permission: {
21282
21327
  Args: {
@@ -21297,6 +21342,25 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
21297
21342
  Args: never;
21298
21343
  Returns: boolean;
21299
21344
  };
21345
+ instructie_get: {
21346
+ Args: {
21347
+ _sleutel: string;
21348
+ };
21349
+ Returns: import("./types").Json;
21350
+ };
21351
+ instructie_list: {
21352
+ Args: never;
21353
+ Returns: import("./types").Json;
21354
+ };
21355
+ instructie_publish: {
21356
+ Args: {
21357
+ _inhoud_md: string;
21358
+ _sleutel: string;
21359
+ _titel: string;
21360
+ _toelichting?: string;
21361
+ };
21362
+ Returns: number;
21363
+ };
21300
21364
  invoice_create_from_source: {
21301
21365
  Args: {
21302
21366
  _payload?: import("./types").Json;
@@ -21521,6 +21585,12 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
21521
21585
  };
21522
21586
  Returns: boolean;
21523
21587
  };
21588
+ logistics_barcode_lookup: {
21589
+ Args: {
21590
+ p_barcode: string;
21591
+ };
21592
+ Returns: import("./types").Json;
21593
+ };
21524
21594
  logistics_buffer_criteria: {
21525
21595
  Args: {
21526
21596
  p_settings: import("./types").Json;
@@ -21581,6 +21651,12 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
21581
21651
  };
21582
21652
  Returns: number;
21583
21653
  };
21654
+ logistics_cart_barcode_value: {
21655
+ Args: {
21656
+ _cart_id: string;
21657
+ };
21658
+ Returns: string;
21659
+ };
21584
21660
  logistics_cart_index: {
21585
21661
  Args: {
21586
21662
  p_from?: string;
@@ -21590,6 +21666,10 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
21590
21666
  cart_id: string;
21591
21667
  cart_index: number;
21592
21668
  cart_label: string;
21669
+ delivery_date: string;
21670
+ is_announced: boolean;
21671
+ is_controlled: boolean;
21672
+ is_printed: boolean;
21593
21673
  is_shared: boolean;
21594
21674
  order_number: string;
21595
21675
  order_source: string;
@@ -21600,6 +21680,12 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
21600
21680
  task_status: string;
21601
21681
  }[];
21602
21682
  };
21683
+ logistics_cart_slip_plan: {
21684
+ Args: {
21685
+ p_order_id: string;
21686
+ };
21687
+ Returns: import("./types").Json;
21688
+ };
21603
21689
  logistics_check_order_allowed: {
21604
21690
  Args: {
21605
21691
  p_lines: import("./types").Json;
@@ -21752,11 +21838,15 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
21752
21838
  Args: never;
21753
21839
  Returns: {
21754
21840
  agenda_carts: number;
21841
+ announced_carts: number;
21755
21842
  control_carts: number;
21843
+ delivery_carts: number;
21756
21844
  ok: boolean;
21757
21845
  orphan_tasks: number;
21758
21846
  pick_date: string;
21759
21847
  raw_carts: number;
21848
+ sales_carts: number;
21849
+ station_carts: number;
21760
21850
  }[];
21761
21851
  };
21762
21852
  logistics_delay_customer_email: {
@@ -21772,12 +21862,35 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
21772
21862
  subject: string;
21773
21863
  }[];
21774
21864
  };
21865
+ logistics_delivery_agenda: {
21866
+ Args: {
21867
+ p_from?: string;
21868
+ p_to?: string;
21869
+ };
21870
+ Returns: {
21871
+ announced_count: number;
21872
+ cart_count: number;
21873
+ controlled_count: number;
21874
+ delivery_date: string;
21875
+ order_count: number;
21876
+ orders: import("./types").Json;
21877
+ plant_count: number;
21878
+ printed_count: number;
21879
+ }[];
21880
+ };
21775
21881
  logistics_document_layout: {
21776
21882
  Args: {
21777
21883
  _document_code: string;
21778
21884
  };
21779
21885
  Returns: import("./types").Json;
21780
21886
  };
21887
+ logistics_document_layout_v2: {
21888
+ Args: {
21889
+ _document_code: string;
21890
+ _is_partial?: boolean;
21891
+ };
21892
+ Returns: import("./types").Json;
21893
+ };
21781
21894
  logistics_document_station: {
21782
21895
  Args: {
21783
21896
  _document_code: string;
@@ -21803,6 +21916,12 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
21803
21916
  };
21804
21917
  Returns: import("./types").Json;
21805
21918
  };
21919
+ logistics_ensure_cart_barcode: {
21920
+ Args: {
21921
+ _cart_id: string;
21922
+ };
21923
+ Returns: string;
21924
+ };
21806
21925
  logistics_fail_task: {
21807
21926
  Args: {
21808
21927
  p_error: string;
@@ -21848,6 +21967,16 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
21848
21967
  isSetofReturn: false;
21849
21968
  };
21850
21969
  };
21970
+ logistics_floriday_cart_plan: {
21971
+ Args: {
21972
+ p_order_id: string;
21973
+ };
21974
+ Returns: {
21975
+ carrier_type: string;
21976
+ idx: number;
21977
+ packages: number;
21978
+ }[];
21979
+ };
21851
21980
  logistics_floriday_claim_pushes: {
21852
21981
  Args: {
21853
21982
  _lease_seconds?: number;
@@ -22053,6 +22182,13 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
22053
22182
  };
22054
22183
  Returns: undefined;
22055
22184
  };
22185
+ logistics_plan_floriday_order: {
22186
+ Args: {
22187
+ p_buffer_id?: string;
22188
+ p_order_id: string;
22189
+ };
22190
+ Returns: number;
22191
+ };
22056
22192
  logistics_plan_impact_orders: {
22057
22193
  Args: {
22058
22194
  p_order_id: string;
@@ -22246,6 +22382,14 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
22246
22382
  };
22247
22383
  Returns: string;
22248
22384
  };
22385
+ logistics_shipping_note_from_barcode: {
22386
+ Args: {
22387
+ p_allow_reprint?: boolean;
22388
+ p_barcode: string;
22389
+ p_station_id?: string;
22390
+ };
22391
+ Returns: import("./types").Json;
22392
+ };
22249
22393
  logistics_supersede_stale_tasks: {
22250
22394
  Args: {
22251
22395
  p_keep: string[];
@@ -22467,6 +22611,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
22467
22611
  print_job_id: string | null;
22468
22612
  printed_at: string | null;
22469
22613
  printed_by: string | null;
22614
+ printed_cart_ids: import("./types").Json;
22470
22615
  printer_id: string | null;
22471
22616
  priority: number;
22472
22617
  reference: string | null;
@@ -22516,6 +22661,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
22516
22661
  print_job_id: string | null;
22517
22662
  printed_at: string | null;
22518
22663
  printed_by: string | null;
22664
+ printed_cart_ids: import("./types").Json;
22519
22665
  printer_id: string | null;
22520
22666
  priority: number;
22521
22667
  reference: string | null;
@@ -22570,6 +22716,56 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
22570
22716
  print_job_id: string | null;
22571
22717
  printed_at: string | null;
22572
22718
  printed_by: string | null;
22719
+ printed_cart_ids: import("./types").Json;
22720
+ printer_id: string | null;
22721
+ priority: number;
22722
+ reference: string | null;
22723
+ route: string | null;
22724
+ screen_id: string | null;
22725
+ station_id: string | null;
22726
+ status_id: string | null;
22727
+ updated_at: string;
22728
+ warnings: import("./types").Json;
22729
+ };
22730
+ SetofOptions: {
22731
+ from: "*";
22732
+ to: "pick_queue";
22733
+ isOneToOne: true;
22734
+ isSetofReturn: false;
22735
+ };
22736
+ };
22737
+ pick_complete_print_cart: {
22738
+ Args: {
22739
+ _cart_id: string;
22740
+ _printer_id: string;
22741
+ _queue_item_id: string;
22742
+ _session_id: string;
22743
+ };
22744
+ Returns: {
22745
+ announced_at: string;
22746
+ assigned_user_id: string | null;
22747
+ barcode: string | null;
22748
+ cancelled_at: string | null;
22749
+ cart_count: number;
22750
+ completed_at: string | null;
22751
+ country_code: string | null;
22752
+ created_at: string;
22753
+ customer_name: string | null;
22754
+ delivery_address: string | null;
22755
+ document_number: string | null;
22756
+ document_type_id: string | null;
22757
+ due_at: string | null;
22758
+ id: string;
22759
+ is_urgent: boolean;
22760
+ line_count: number;
22761
+ order_number: string | null;
22762
+ order_type: string | null;
22763
+ payload: import("./types").Json;
22764
+ print_count: number;
22765
+ print_job_id: string | null;
22766
+ printed_at: string | null;
22767
+ printed_by: string | null;
22768
+ printed_cart_ids: import("./types").Json;
22573
22769
  printer_id: string | null;
22574
22770
  priority: number;
22575
22771
  reference: string | null;
@@ -22613,6 +22809,15 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
22613
22809
  _session_id?: string;
22614
22810
  };
22615
22811
  Returns: string;
22812
+ } | {
22813
+ Args: {
22814
+ _cart_id: string;
22815
+ _is_herprint: boolean;
22816
+ _printer_id: string;
22817
+ _queue_item_id: string;
22818
+ _session_id: string;
22819
+ };
22820
+ Returns: string;
22616
22821
  };
22617
22822
  pick_order_context: {
22618
22823
  Args: {
@@ -22693,6 +22898,54 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
22693
22898
  print_job_id: string | null;
22694
22899
  printed_at: string | null;
22695
22900
  printed_by: string | null;
22901
+ printed_cart_ids: import("./types").Json;
22902
+ printer_id: string | null;
22903
+ priority: number;
22904
+ reference: string | null;
22905
+ route: string | null;
22906
+ screen_id: string | null;
22907
+ station_id: string | null;
22908
+ status_id: string | null;
22909
+ updated_at: string;
22910
+ warnings: import("./types").Json;
22911
+ };
22912
+ SetofOptions: {
22913
+ from: "*";
22914
+ to: "pick_queue";
22915
+ isOneToOne: true;
22916
+ isSetofReturn: false;
22917
+ };
22918
+ } | {
22919
+ Args: {
22920
+ _cart_id?: string;
22921
+ _queue_item_id: string;
22922
+ _session_id: string;
22923
+ };
22924
+ Returns: {
22925
+ announced_at: string;
22926
+ assigned_user_id: string | null;
22927
+ barcode: string | null;
22928
+ cancelled_at: string | null;
22929
+ cart_count: number;
22930
+ completed_at: string | null;
22931
+ country_code: string | null;
22932
+ created_at: string;
22933
+ customer_name: string | null;
22934
+ delivery_address: string | null;
22935
+ document_number: string | null;
22936
+ document_type_id: string | null;
22937
+ due_at: string | null;
22938
+ id: string;
22939
+ is_urgent: boolean;
22940
+ line_count: number;
22941
+ order_number: string | null;
22942
+ order_type: string | null;
22943
+ payload: import("./types").Json;
22944
+ print_count: number;
22945
+ print_job_id: string | null;
22946
+ printed_at: string | null;
22947
+ printed_by: string | null;
22948
+ printed_cart_ids: import("./types").Json;
22696
22949
  printer_id: string | null;
22697
22950
  priority: number;
22698
22951
  reference: string | null;
@@ -22805,6 +23058,66 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
22805
23058
  };
22806
23059
  Returns: undefined;
22807
23060
  };
23061
+ planning_cancel_item: {
23062
+ Args: {
23063
+ _id: string;
23064
+ };
23065
+ Returns: undefined;
23066
+ };
23067
+ planning_list: {
23068
+ Args: {
23069
+ _from: string;
23070
+ _to: string;
23071
+ };
23072
+ Returns: {
23073
+ assigned_monteur_id: string | null;
23074
+ assistants: import("./types").Json | null;
23075
+ budget_mandate_cents: number | null;
23076
+ created_at: string | null;
23077
+ created_by: string | null;
23078
+ customer_id: string | null;
23079
+ customer_name: string | null;
23080
+ duration_minutes: number | null;
23081
+ end_at: string | null;
23082
+ id: string | null;
23083
+ needs_detail_review: boolean | null;
23084
+ notes: string | null;
23085
+ project_number: string | null;
23086
+ review_reasons: string[] | null;
23087
+ start_at: string | null;
23088
+ status: Database["public"]["Enums"]["planning_item_status"] | null;
23089
+ updated_at: string | null;
23090
+ viewer_role: string | null;
23091
+ werkbon_id: string | null;
23092
+ work_address: string | null;
23093
+ }[];
23094
+ SetofOptions: {
23095
+ from: "*";
23096
+ to: "planning_overview";
23097
+ isOneToOne: false;
23098
+ isSetofReturn: true;
23099
+ };
23100
+ };
23101
+ planning_set_assistants: {
23102
+ Args: {
23103
+ _monteur_ids: string[];
23104
+ _planning_item_id: string;
23105
+ };
23106
+ Returns: undefined;
23107
+ };
23108
+ planning_upsert_item: {
23109
+ Args: {
23110
+ _assigned_monteur_id: string;
23111
+ _end_at: string;
23112
+ _notes?: string;
23113
+ _start_at: string;
23114
+ _werkbon_id: string;
23115
+ };
23116
+ Returns: {
23117
+ action: string;
23118
+ id: string;
23119
+ }[];
23120
+ };
22808
23121
  print_preview_toestaan: {
22809
23122
  Args: {
22810
23123
  _max?: number;
@@ -23386,6 +23699,26 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
23386
23699
  };
23387
23700
  Returns: string[];
23388
23701
  };
23702
+ start_time_log_at: {
23703
+ Args: {
23704
+ p_clicked_at?: string;
23705
+ p_employee_id: string;
23706
+ p_start_lat?: number;
23707
+ p_start_lng?: number;
23708
+ p_type: string;
23709
+ p_work_order_id?: string;
23710
+ };
23711
+ Returns: import("./types").Json;
23712
+ };
23713
+ stop_time_log: {
23714
+ Args: {
23715
+ p_employee_id: string;
23716
+ p_end_lat?: number;
23717
+ p_end_lng?: number;
23718
+ p_end_time: string;
23719
+ };
23720
+ Returns: import("./types").Json;
23721
+ };
23389
23722
  switch_time_log: {
23390
23723
  Args: {
23391
23724
  p_employee_id: string;