@flowselections/logistiek-engine 1.0.99 → 1.0.104

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 (61) hide show
  1. package/dist-lib/components/BeladingIndelingCard.d.ts.map +1 -1
  2. package/dist-lib/components/BeladingIndelingCard.js +5 -1
  3. package/dist-lib/integrations/supabase/auth-middleware.d.ts +600 -6
  4. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  5. package/dist-lib/integrations/supabase/client.server.d.ts +600 -6
  6. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  7. package/dist-lib/integrations/supabase/moduleClient.d.ts +600 -6
  8. package/dist-lib/integrations/supabase/moduleClient.d.ts.map +1 -1
  9. package/dist-lib/integrations/supabase/types.d.ts +616 -6
  10. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  11. package/dist-lib/lib/cartCoverage.functions.d.ts +600 -6
  12. package/dist-lib/lib/cartCoverage.functions.d.ts.map +1 -1
  13. package/dist-lib/lib/controlScan.server.d.ts +8 -0
  14. package/dist-lib/lib/controlScan.server.d.ts.map +1 -1
  15. package/dist-lib/lib/controlScan.server.js +86 -5
  16. package/dist-lib/lib/floridayCancellation.server.d.ts +15 -0
  17. package/dist-lib/lib/floridayCancellation.server.d.ts.map +1 -0
  18. package/dist-lib/lib/floridayCancellation.server.js +89 -0
  19. package/dist-lib/lib/floridayCancellation.test.d.ts +2 -0
  20. package/dist-lib/lib/floridayCancellation.test.d.ts.map +1 -0
  21. package/dist-lib/lib/floridayCancellation.test.js +42 -0
  22. package/dist-lib/lib/floridayCartCarriers.d.ts +61 -0
  23. package/dist-lib/lib/floridayCartCarriers.d.ts.map +1 -0
  24. package/dist-lib/lib/floridayCartCarriers.js +113 -0
  25. package/dist-lib/lib/floridayCartCarriers.test.d.ts +2 -0
  26. package/dist-lib/lib/floridayCartCarriers.test.d.ts.map +1 -0
  27. package/dist-lib/lib/floridayCartCarriers.test.js +66 -0
  28. package/dist-lib/lib/floridayDocuments.functions.d.ts +1800 -18
  29. package/dist-lib/lib/floridayDocuments.functions.d.ts.map +1 -1
  30. package/dist-lib/lib/floridayDocuments.server.d.ts +7 -0
  31. package/dist-lib/lib/floridayDocuments.server.d.ts.map +1 -1
  32. package/dist-lib/lib/floridayDocuments.server.js +16 -1
  33. package/dist-lib/lib/floridayPush.functions.d.ts +600 -6
  34. package/dist-lib/lib/floridayPush.functions.d.ts.map +1 -1
  35. package/dist-lib/lib/floridayPush.server.d.ts +2 -0
  36. package/dist-lib/lib/floridayPush.server.d.ts.map +1 -1
  37. package/dist-lib/lib/floridayPush.server.js +54 -3
  38. package/dist-lib/lib/layerUtilization.d.ts +2 -0
  39. package/dist-lib/lib/layerUtilization.d.ts.map +1 -0
  40. package/dist-lib/lib/layerUtilization.js +11 -0
  41. package/dist-lib/lib/layerUtilization.test.d.ts +2 -0
  42. package/dist-lib/lib/layerUtilization.test.d.ts.map +1 -0
  43. package/dist-lib/lib/layerUtilization.test.js +11 -0
  44. package/dist-lib/lib/loadCarrierPlanning.functions.d.ts +3000 -30
  45. package/dist-lib/lib/loadCarrierPlanning.functions.d.ts.map +1 -1
  46. package/dist-lib/lib/loadCarrierPlanning.server.d.ts.map +1 -1
  47. package/dist-lib/lib/loadCarrierPlanning.server.js +16 -4
  48. package/dist-lib/lib/logisticsRecalcJob.functions.d.ts +1200 -12
  49. package/dist-lib/lib/logisticsRecalcJob.functions.d.ts.map +1 -1
  50. package/dist-lib/lib/logisticsRecalculate.functions.d.ts +600 -6
  51. package/dist-lib/lib/logisticsRecalculate.functions.d.ts.map +1 -1
  52. package/dist-lib/lib/modulePrompts.d.ts.map +1 -1
  53. package/dist-lib/lib/modulePrompts.js +46 -0
  54. package/dist-lib/lib/moduleVersion.d.ts +1 -1
  55. package/dist-lib/lib/moduleVersion.d.ts.map +1 -1
  56. package/dist-lib/lib/moduleVersion.js +1 -1
  57. package/dist-lib/lib/plannerDiff.functions.d.ts +600 -6
  58. package/dist-lib/lib/plannerDiff.functions.d.ts.map +1 -1
  59. package/dist-lib/lib/shippingNoteQueue.server.d.ts.map +1 -1
  60. package/dist-lib/lib/shippingNoteQueue.server.js +40 -1
  61. package/package.json +4 -4
@@ -3140,6 +3140,7 @@ export declare const replanOrderLoadCarriers: import("@tanstack/start-client-cor
3140
3140
  formaat_code: string;
3141
3141
  id: string;
3142
3142
  printer_id: string | null;
3143
+ printer_ontbreekt_sinds: string | null;
3143
3144
  updated_at: string;
3144
3145
  };
3145
3146
  Insert: {
@@ -3148,6 +3149,7 @@ export declare const replanOrderLoadCarriers: import("@tanstack/start-client-cor
3148
3149
  formaat_code: string;
3149
3150
  id?: string;
3150
3151
  printer_id?: string | null;
3152
+ printer_ontbreekt_sinds?: string | null;
3151
3153
  updated_at?: string;
3152
3154
  };
3153
3155
  Update: {
@@ -3156,6 +3158,7 @@ export declare const replanOrderLoadCarriers: import("@tanstack/start-client-cor
3156
3158
  formaat_code?: string;
3157
3159
  id?: string;
3158
3160
  printer_id?: string | null;
3161
+ printer_ontbreekt_sinds?: string | null;
3159
3162
  updated_at?: string;
3160
3163
  };
3161
3164
  Relationships: [{
@@ -3492,6 +3495,7 @@ export declare const replanOrderLoadCarriers: import("@tanstack/start-client-cor
3492
3495
  papierformaat: string | null;
3493
3496
  print_plek_id: string;
3494
3497
  printer_id: string | null;
3498
+ printer_ontbreekt_sinds: string | null;
3495
3499
  updated_at: string;
3496
3500
  };
3497
3501
  Insert: {
@@ -3501,6 +3505,7 @@ export declare const replanOrderLoadCarriers: import("@tanstack/start-client-cor
3501
3505
  papierformaat?: string | null;
3502
3506
  print_plek_id: string;
3503
3507
  printer_id?: string | null;
3508
+ printer_ontbreekt_sinds?: string | null;
3504
3509
  updated_at?: string;
3505
3510
  };
3506
3511
  Update: {
@@ -3510,6 +3515,7 @@ export declare const replanOrderLoadCarriers: import("@tanstack/start-client-cor
3510
3515
  papierformaat?: string | null;
3511
3516
  print_plek_id?: string;
3512
3517
  printer_id?: string | null;
3518
+ printer_ontbreekt_sinds?: string | null;
3513
3519
  updated_at?: string;
3514
3520
  };
3515
3521
  Relationships: [{
@@ -3533,6 +3539,7 @@ export declare const replanOrderLoadCarriers: import("@tanstack/start-client-cor
3533
3539
  id: string;
3534
3540
  papierformaat: string | null;
3535
3541
  printer_id: string | null;
3542
+ printer_ontbreekt_sinds: string | null;
3536
3543
  updated_at: string;
3537
3544
  werkplek: string;
3538
3545
  };
@@ -3542,6 +3549,7 @@ export declare const replanOrderLoadCarriers: import("@tanstack/start-client-cor
3542
3549
  id?: string;
3543
3550
  papierformaat?: string | null;
3544
3551
  printer_id?: string | null;
3552
+ printer_ontbreekt_sinds?: string | null;
3545
3553
  updated_at?: string;
3546
3554
  werkplek: string;
3547
3555
  };
@@ -3551,6 +3559,7 @@ export declare const replanOrderLoadCarriers: import("@tanstack/start-client-cor
3551
3559
  id?: string;
3552
3560
  papierformaat?: string | null;
3553
3561
  printer_id?: string | null;
3562
+ printer_ontbreekt_sinds?: string | null;
3554
3563
  updated_at?: string;
3555
3564
  werkplek?: string;
3556
3565
  };
@@ -6853,6 +6862,78 @@ export declare const replanOrderLoadCarriers: import("@tanstack/start-client-cor
6853
6862
  referencedColumns: ["id"];
6854
6863
  }];
6855
6864
  };
6865
+ floriday_document_fetch_queue: {
6866
+ Row: {
6867
+ attempts: number;
6868
+ cancelled_reason: string | null;
6869
+ completed_at: string | null;
6870
+ connection_id: string;
6871
+ created_at: string;
6872
+ document_key: string;
6873
+ environment: string;
6874
+ id: string;
6875
+ kind: string;
6876
+ last_error: string | null;
6877
+ last_http_status: number | null;
6878
+ locked_at: string | null;
6879
+ locked_by: string | null;
6880
+ max_attempts: number;
6881
+ next_attempt_at: string;
6882
+ order_ref: string | null;
6883
+ params: import("../integrations/supabase/types").Json;
6884
+ status: string;
6885
+ updated_at: string;
6886
+ };
6887
+ Insert: {
6888
+ attempts?: number;
6889
+ cancelled_reason?: string | null;
6890
+ completed_at?: string | null;
6891
+ connection_id: string;
6892
+ created_at?: string;
6893
+ document_key: string;
6894
+ environment: string;
6895
+ id?: string;
6896
+ kind: string;
6897
+ last_error?: string | null;
6898
+ last_http_status?: number | null;
6899
+ locked_at?: string | null;
6900
+ locked_by?: string | null;
6901
+ max_attempts?: number;
6902
+ next_attempt_at?: string;
6903
+ order_ref?: string | null;
6904
+ params?: import("../integrations/supabase/types").Json;
6905
+ status?: string;
6906
+ updated_at?: string;
6907
+ };
6908
+ Update: {
6909
+ attempts?: number;
6910
+ cancelled_reason?: string | null;
6911
+ completed_at?: string | null;
6912
+ connection_id?: string;
6913
+ created_at?: string;
6914
+ document_key?: string;
6915
+ environment?: string;
6916
+ id?: string;
6917
+ kind?: string;
6918
+ last_error?: string | null;
6919
+ last_http_status?: number | null;
6920
+ locked_at?: string | null;
6921
+ locked_by?: string | null;
6922
+ max_attempts?: number;
6923
+ next_attempt_at?: string;
6924
+ order_ref?: string | null;
6925
+ params?: import("../integrations/supabase/types").Json;
6926
+ status?: string;
6927
+ updated_at?: string;
6928
+ };
6929
+ Relationships: [{
6930
+ foreignKeyName: "floriday_document_fetch_queue_connection_id_fkey";
6931
+ columns: ["connection_id"];
6932
+ isOneToOne: false;
6933
+ referencedRelation: "floriday_connections";
6934
+ referencedColumns: ["id"];
6935
+ }];
6936
+ };
6856
6937
  floriday_fulfillment_orders_cache: {
6857
6938
  Row: {
6858
6939
  auction_date: string | null;
@@ -7150,6 +7231,39 @@ export declare const replanOrderLoadCarriers: import("@tanstack/start-client-cor
7150
7231
  referencedColumns: ["id"];
7151
7232
  }];
7152
7233
  };
7234
+ floriday_merge_log: {
7235
+ Row: {
7236
+ action: string;
7237
+ created_at: string;
7238
+ floriday_sales_order_ids: import("../integrations/supabase/types").Json;
7239
+ id: string;
7240
+ kept_order_id: string | null;
7241
+ lines: import("../integrations/supabase/types").Json;
7242
+ reason: string | null;
7243
+ removed_order_id: string | null;
7244
+ };
7245
+ Insert: {
7246
+ action: string;
7247
+ created_at?: string;
7248
+ floriday_sales_order_ids?: import("../integrations/supabase/types").Json;
7249
+ id?: string;
7250
+ kept_order_id?: string | null;
7251
+ lines?: import("../integrations/supabase/types").Json;
7252
+ reason?: string | null;
7253
+ removed_order_id?: string | null;
7254
+ };
7255
+ Update: {
7256
+ action?: string;
7257
+ created_at?: string;
7258
+ floriday_sales_order_ids?: import("../integrations/supabase/types").Json;
7259
+ id?: string;
7260
+ kept_order_id?: string | null;
7261
+ lines?: import("../integrations/supabase/types").Json;
7262
+ reason?: string | null;
7263
+ removed_order_id?: string | null;
7264
+ };
7265
+ Relationships: [];
7266
+ };
7153
7267
  floriday_network_cache: {
7154
7268
  Row: {
7155
7269
  city: string | null;
@@ -9385,6 +9499,57 @@ export declare const replanOrderLoadCarriers: import("@tanstack/start-client-cor
9385
9499
  };
9386
9500
  Relationships: [];
9387
9501
  };
9502
+ itk_offerte_acceptaties: {
9503
+ Row: {
9504
+ accepted_at: string;
9505
+ akkoordgever_email: string;
9506
+ akkoordgever_naam: string;
9507
+ akkoordverklaring: string;
9508
+ id: string;
9509
+ inhoud_hash: string;
9510
+ ip_address: unknown;
9511
+ offerte_id: string;
9512
+ offerte_number: string;
9513
+ offerte_snapshot: import("../integrations/supabase/types").Json;
9514
+ user_agent: string | null;
9515
+ versie: string;
9516
+ };
9517
+ Insert: {
9518
+ accepted_at?: string;
9519
+ akkoordgever_email: string;
9520
+ akkoordgever_naam: string;
9521
+ akkoordverklaring: string;
9522
+ id?: string;
9523
+ inhoud_hash: string;
9524
+ ip_address?: unknown;
9525
+ offerte_id: string;
9526
+ offerte_number: string;
9527
+ offerte_snapshot: import("../integrations/supabase/types").Json;
9528
+ user_agent?: string | null;
9529
+ versie: string;
9530
+ };
9531
+ Update: {
9532
+ accepted_at?: string;
9533
+ akkoordgever_email?: string;
9534
+ akkoordgever_naam?: string;
9535
+ akkoordverklaring?: string;
9536
+ id?: string;
9537
+ inhoud_hash?: string;
9538
+ ip_address?: unknown;
9539
+ offerte_id?: string;
9540
+ offerte_number?: string;
9541
+ offerte_snapshot?: import("../integrations/supabase/types").Json;
9542
+ user_agent?: string | null;
9543
+ versie?: string;
9544
+ };
9545
+ Relationships: [{
9546
+ foreignKeyName: "itk_offerte_acceptaties_offerte_id_fkey";
9547
+ columns: ["offerte_id"];
9548
+ isOneToOne: true;
9549
+ referencedRelation: "itk_offertes";
9550
+ referencedColumns: ["id"];
9551
+ }];
9552
+ };
9388
9553
  itk_offerte_events: {
9389
9554
  Row: {
9390
9555
  created_at: string;
@@ -9598,6 +9763,7 @@ export declare const replanOrderLoadCarriers: import("@tanstack/start-client-cor
9598
9763
  itk_offertes: {
9599
9764
  Row: {
9600
9765
  aandachtspunten: string | null;
9766
+ acceptance_id: string | null;
9601
9767
  ai_generated: boolean;
9602
9768
  approved_at: string | null;
9603
9769
  binnen_mandaat: boolean;
@@ -9616,6 +9782,11 @@ export declare const replanOrderLoadCarriers: import("@tanstack/start-client-cor
9616
9782
  onderwerp: string | null;
9617
9783
  rejected_at: string | null;
9618
9784
  sent_at: string | null;
9785
+ sign_token: string;
9786
+ signature_data: string | null;
9787
+ signed_at: string | null;
9788
+ signer_email: string | null;
9789
+ signer_name: string | null;
9619
9790
  source_number: string | null;
9620
9791
  source_ref: string | null;
9621
9792
  source_type: string;
@@ -9630,11 +9801,13 @@ export declare const replanOrderLoadCarriers: import("@tanstack/start-client-cor
9630
9801
  viewed_at: string | null;
9631
9802
  volgnummer: number | null;
9632
9803
  voorwaarden: string | null;
9804
+ werkbon_concept: import("../integrations/supabase/types").Json | null;
9633
9805
  werkbon_id: string | null;
9634
9806
  work_location_id: string | null;
9635
9807
  };
9636
9808
  Insert: {
9637
9809
  aandachtspunten?: string | null;
9810
+ acceptance_id?: string | null;
9638
9811
  ai_generated?: boolean;
9639
9812
  approved_at?: string | null;
9640
9813
  binnen_mandaat?: boolean;
@@ -9653,6 +9826,11 @@ export declare const replanOrderLoadCarriers: import("@tanstack/start-client-cor
9653
9826
  onderwerp?: string | null;
9654
9827
  rejected_at?: string | null;
9655
9828
  sent_at?: string | null;
9829
+ sign_token?: string;
9830
+ signature_data?: string | null;
9831
+ signed_at?: string | null;
9832
+ signer_email?: string | null;
9833
+ signer_name?: string | null;
9656
9834
  source_number?: string | null;
9657
9835
  source_ref?: string | null;
9658
9836
  source_type?: string;
@@ -9667,11 +9845,13 @@ export declare const replanOrderLoadCarriers: import("@tanstack/start-client-cor
9667
9845
  viewed_at?: string | null;
9668
9846
  volgnummer?: number | null;
9669
9847
  voorwaarden?: string | null;
9848
+ werkbon_concept?: import("../integrations/supabase/types").Json | null;
9670
9849
  werkbon_id?: string | null;
9671
9850
  work_location_id?: string | null;
9672
9851
  };
9673
9852
  Update: {
9674
9853
  aandachtspunten?: string | null;
9854
+ acceptance_id?: string | null;
9675
9855
  ai_generated?: boolean;
9676
9856
  approved_at?: string | null;
9677
9857
  binnen_mandaat?: boolean;
@@ -9690,6 +9870,11 @@ export declare const replanOrderLoadCarriers: import("@tanstack/start-client-cor
9690
9870
  onderwerp?: string | null;
9691
9871
  rejected_at?: string | null;
9692
9872
  sent_at?: string | null;
9873
+ sign_token?: string;
9874
+ signature_data?: string | null;
9875
+ signed_at?: string | null;
9876
+ signer_email?: string | null;
9877
+ signer_name?: string | null;
9693
9878
  source_number?: string | null;
9694
9879
  source_ref?: string | null;
9695
9880
  source_type?: string;
@@ -9704,10 +9889,17 @@ export declare const replanOrderLoadCarriers: import("@tanstack/start-client-cor
9704
9889
  viewed_at?: string | null;
9705
9890
  volgnummer?: number | null;
9706
9891
  voorwaarden?: string | null;
9892
+ werkbon_concept?: import("../integrations/supabase/types").Json | null;
9707
9893
  werkbon_id?: string | null;
9708
9894
  work_location_id?: string | null;
9709
9895
  };
9710
9896
  Relationships: [{
9897
+ foreignKeyName: "itk_offertes_acceptance_id_fkey";
9898
+ columns: ["acceptance_id"];
9899
+ isOneToOne: false;
9900
+ referencedRelation: "itk_offerte_acceptaties";
9901
+ referencedColumns: ["id"];
9902
+ }, {
9711
9903
  foreignKeyName: "itk_offertes_contact_id_fkey";
9712
9904
  columns: ["contact_id"];
9713
9905
  isOneToOne: false;
@@ -11146,6 +11338,60 @@ export declare const replanOrderLoadCarriers: import("@tanstack/start-client-cor
11146
11338
  };
11147
11339
  Relationships: [];
11148
11340
  };
11341
+ logistics_order_merge_lines: {
11342
+ Row: {
11343
+ from_order_id: string;
11344
+ from_order_number: string | null;
11345
+ group_key: string;
11346
+ id: string;
11347
+ merged_at: string;
11348
+ order_item_id: string;
11349
+ ordered_at: string | null;
11350
+ product_id: string | null;
11351
+ product_name: string | null;
11352
+ quantity: number | null;
11353
+ reason: string;
11354
+ sales_order_id: string | null;
11355
+ source_line_key: string | null;
11356
+ to_order_id: string;
11357
+ to_order_number: string | null;
11358
+ };
11359
+ Insert: {
11360
+ from_order_id: string;
11361
+ from_order_number?: string | null;
11362
+ group_key: string;
11363
+ id?: string;
11364
+ merged_at?: string;
11365
+ order_item_id: string;
11366
+ ordered_at?: string | null;
11367
+ product_id?: string | null;
11368
+ product_name?: string | null;
11369
+ quantity?: number | null;
11370
+ reason: string;
11371
+ sales_order_id?: string | null;
11372
+ source_line_key?: string | null;
11373
+ to_order_id: string;
11374
+ to_order_number?: string | null;
11375
+ };
11376
+ Update: {
11377
+ from_order_id?: string;
11378
+ from_order_number?: string | null;
11379
+ group_key?: string;
11380
+ id?: string;
11381
+ merged_at?: string;
11382
+ order_item_id?: string;
11383
+ ordered_at?: string | null;
11384
+ product_id?: string | null;
11385
+ product_name?: string | null;
11386
+ quantity?: number | null;
11387
+ reason?: string;
11388
+ sales_order_id?: string | null;
11389
+ source_line_key?: string | null;
11390
+ to_order_id?: string;
11391
+ to_order_number?: string | null;
11392
+ };
11393
+ Relationships: [];
11394
+ };
11149
11395
  logistics_order_merges: {
11150
11396
  Row: {
11151
11397
  group_key: string;
@@ -14786,6 +15032,9 @@ export declare const replanOrderLoadCarriers: import("@tanstack/start-client-cor
14786
15032
  product_id: string | null;
14787
15033
  product_name: string;
14788
15034
  quantity: number;
15035
+ quarantine_reason: string | null;
15036
+ quarantined_at: string | null;
15037
+ quarantined_into_order_id: string | null;
14789
15038
  source_line_key: string | null;
14790
15039
  unit: string;
14791
15040
  unit_price: number | null;
@@ -14802,6 +15051,9 @@ export declare const replanOrderLoadCarriers: import("@tanstack/start-client-cor
14802
15051
  product_id?: string | null;
14803
15052
  product_name: string;
14804
15053
  quantity?: number;
15054
+ quarantine_reason?: string | null;
15055
+ quarantined_at?: string | null;
15056
+ quarantined_into_order_id?: string | null;
14805
15057
  source_line_key?: string | null;
14806
15058
  unit?: string;
14807
15059
  unit_price?: number | null;
@@ -14818,6 +15070,9 @@ export declare const replanOrderLoadCarriers: import("@tanstack/start-client-cor
14818
15070
  product_id?: string | null;
14819
15071
  product_name?: string;
14820
15072
  quantity?: number;
15073
+ quarantine_reason?: string | null;
15074
+ quarantined_at?: string | null;
15075
+ quarantined_into_order_id?: string | null;
14821
15076
  source_line_key?: string | null;
14822
15077
  unit?: string;
14823
15078
  unit_price?: number | null;
@@ -16249,6 +16504,57 @@ export declare const replanOrderLoadCarriers: import("@tanstack/start-client-cor
16249
16504
  };
16250
16505
  Relationships: [];
16251
16506
  };
16507
+ planning_confirmation_log: {
16508
+ Row: {
16509
+ created_at: string;
16510
+ end_at: string;
16511
+ id: string;
16512
+ kind: string;
16513
+ outbox_id: string | null;
16514
+ planning_item_id: string;
16515
+ reason: string | null;
16516
+ recipient: string | null;
16517
+ start_at: string;
16518
+ status: string;
16519
+ };
16520
+ Insert: {
16521
+ created_at?: string;
16522
+ end_at: string;
16523
+ id?: string;
16524
+ kind?: string;
16525
+ outbox_id?: string | null;
16526
+ planning_item_id: string;
16527
+ reason?: string | null;
16528
+ recipient?: string | null;
16529
+ start_at: string;
16530
+ status: string;
16531
+ };
16532
+ Update: {
16533
+ created_at?: string;
16534
+ end_at?: string;
16535
+ id?: string;
16536
+ kind?: string;
16537
+ outbox_id?: string | null;
16538
+ planning_item_id?: string;
16539
+ reason?: string | null;
16540
+ recipient?: string | null;
16541
+ start_at?: string;
16542
+ status?: string;
16543
+ };
16544
+ Relationships: [{
16545
+ foreignKeyName: "planning_confirmation_log_planning_item_id_fkey";
16546
+ columns: ["planning_item_id"];
16547
+ isOneToOne: false;
16548
+ referencedRelation: "planning_items";
16549
+ referencedColumns: ["id"];
16550
+ }, {
16551
+ foreignKeyName: "planning_confirmation_log_planning_item_id_fkey";
16552
+ columns: ["planning_item_id"];
16553
+ isOneToOne: false;
16554
+ referencedRelation: "planning_overview";
16555
+ referencedColumns: ["id"];
16556
+ }];
16557
+ };
16252
16558
  planning_item_assistants: {
16253
16559
  Row: {
16254
16560
  created_at: string;
@@ -16333,6 +16639,69 @@ export declare const replanOrderLoadCarriers: import("@tanstack/start-client-cor
16333
16639
  referencedColumns: ["id"];
16334
16640
  }];
16335
16641
  };
16642
+ planning_mail_settings: {
16643
+ Row: {
16644
+ body_template: string;
16645
+ cc: string[];
16646
+ connection_id: string | null;
16647
+ created_at: string;
16648
+ email_purpose: string | null;
16649
+ enabled: boolean;
16650
+ id: boolean;
16651
+ reply_to: string | null;
16652
+ reschedule_body_template: string;
16653
+ reschedule_subject_template: string;
16654
+ subject_template: string;
16655
+ timezone: string;
16656
+ updated_at: string;
16657
+ updated_by: string | null;
16658
+ };
16659
+ Insert: {
16660
+ body_template?: string;
16661
+ cc?: string[];
16662
+ connection_id?: string | null;
16663
+ created_at?: string;
16664
+ email_purpose?: string | null;
16665
+ enabled?: boolean;
16666
+ id?: boolean;
16667
+ reply_to?: string | null;
16668
+ reschedule_body_template?: string;
16669
+ reschedule_subject_template?: string;
16670
+ subject_template?: string;
16671
+ timezone?: string;
16672
+ updated_at?: string;
16673
+ updated_by?: string | null;
16674
+ };
16675
+ Update: {
16676
+ body_template?: string;
16677
+ cc?: string[];
16678
+ connection_id?: string | null;
16679
+ created_at?: string;
16680
+ email_purpose?: string | null;
16681
+ enabled?: boolean;
16682
+ id?: boolean;
16683
+ reply_to?: string | null;
16684
+ reschedule_body_template?: string;
16685
+ reschedule_subject_template?: string;
16686
+ subject_template?: string;
16687
+ timezone?: string;
16688
+ updated_at?: string;
16689
+ updated_by?: string | null;
16690
+ };
16691
+ Relationships: [{
16692
+ foreignKeyName: "planning_mail_settings_connection_id_fkey";
16693
+ columns: ["connection_id"];
16694
+ isOneToOne: false;
16695
+ referencedRelation: "email_auth_connections";
16696
+ referencedColumns: ["id"];
16697
+ }, {
16698
+ foreignKeyName: "planning_mail_settings_connection_id_fkey";
16699
+ columns: ["connection_id"];
16700
+ isOneToOne: false;
16701
+ referencedRelation: "email_auth_connections_safe";
16702
+ referencedColumns: ["id"];
16703
+ }];
16704
+ };
16336
16705
  planning_monteur_day_locations: {
16337
16706
  Row: {
16338
16707
  created_at: string;
@@ -16720,6 +17089,27 @@ export declare const replanOrderLoadCarriers: import("@tanstack/start-client-cor
16720
17089
  };
16721
17090
  Relationships: [];
16722
17091
  };
17092
+ print_genegeerde_computers: {
17093
+ Row: {
17094
+ computer_naam: string;
17095
+ genegeerd_door: string | null;
17096
+ genegeerd_op: string;
17097
+ id: string;
17098
+ };
17099
+ Insert: {
17100
+ computer_naam: string;
17101
+ genegeerd_door?: string | null;
17102
+ genegeerd_op?: string;
17103
+ id?: string;
17104
+ };
17105
+ Update: {
17106
+ computer_naam?: string;
17107
+ genegeerd_door?: string | null;
17108
+ genegeerd_op?: string;
17109
+ id?: string;
17110
+ };
17111
+ Relationships: [];
17112
+ };
16723
17113
  print_job_logs: {
16724
17114
  Row: {
16725
17115
  created_at: string;
@@ -16990,6 +17380,39 @@ export declare const replanOrderLoadCarriers: import("@tanstack/start-client-cor
16990
17380
  referencedColumns: ["id"];
16991
17381
  }];
16992
17382
  };
17383
+ print_plek_printers: {
17384
+ Row: {
17385
+ id: string;
17386
+ print_plek_id: string;
17387
+ printer_id: string;
17388
+ toegevoegd_op: string;
17389
+ };
17390
+ Insert: {
17391
+ id?: string;
17392
+ print_plek_id: string;
17393
+ printer_id: string;
17394
+ toegevoegd_op?: string;
17395
+ };
17396
+ Update: {
17397
+ id?: string;
17398
+ print_plek_id?: string;
17399
+ printer_id?: string;
17400
+ toegevoegd_op?: string;
17401
+ };
17402
+ Relationships: [{
17403
+ foreignKeyName: "print_plek_printers_print_plek_id_fkey";
17404
+ columns: ["print_plek_id"];
17405
+ isOneToOne: false;
17406
+ referencedRelation: "print_plekken";
17407
+ referencedColumns: ["id"];
17408
+ }, {
17409
+ foreignKeyName: "print_plek_printers_printer_id_fkey";
17410
+ columns: ["printer_id"];
17411
+ isOneToOne: false;
17412
+ referencedRelation: "printers";
17413
+ referencedColumns: ["id"];
17414
+ }];
17415
+ };
16993
17416
  print_plekken: {
16994
17417
  Row: {
16995
17418
  actief: boolean;
@@ -17205,7 +17628,8 @@ export declare const replanOrderLoadCarriers: import("@tanstack/start-client-cor
17205
17628
  created_at: string;
17206
17629
  id: string;
17207
17630
  layout_id: string;
17208
- printer_id: string;
17631
+ printer_id: string | null;
17632
+ printer_ontbreekt_sinds: string | null;
17209
17633
  prioriteit: number;
17210
17634
  updated_at: string;
17211
17635
  };
@@ -17213,7 +17637,8 @@ export declare const replanOrderLoadCarriers: import("@tanstack/start-client-cor
17213
17637
  created_at?: string;
17214
17638
  id?: string;
17215
17639
  layout_id: string;
17216
- printer_id: string;
17640
+ printer_id?: string | null;
17641
+ printer_ontbreekt_sinds?: string | null;
17217
17642
  prioriteit?: number;
17218
17643
  updated_at?: string;
17219
17644
  };
@@ -17221,7 +17646,8 @@ export declare const replanOrderLoadCarriers: import("@tanstack/start-client-cor
17221
17646
  created_at?: string;
17222
17647
  id?: string;
17223
17648
  layout_id?: string;
17224
- printer_id?: string;
17649
+ printer_id?: string | null;
17650
+ printer_ontbreekt_sinds?: string | null;
17225
17651
  prioriteit?: number;
17226
17652
  updated_at?: string;
17227
17653
  };
@@ -21709,6 +22135,30 @@ export declare const replanOrderLoadCarriers: import("@tanstack/start-client-cor
21709
22135
  };
21710
22136
  Relationships: [];
21711
22137
  };
22138
+ uren_pagina_toegang: {
22139
+ Row: {
22140
+ created_at: string;
22141
+ id: string;
22142
+ user_id: string;
22143
+ };
22144
+ Insert: {
22145
+ created_at?: string;
22146
+ id?: string;
22147
+ user_id: string;
22148
+ };
22149
+ Update: {
22150
+ created_at?: string;
22151
+ id?: string;
22152
+ user_id?: string;
22153
+ };
22154
+ Relationships: [{
22155
+ foreignKeyName: "uren_pagina_toegang_user_id_fkey";
22156
+ columns: ["user_id"];
22157
+ isOneToOne: true;
22158
+ referencedRelation: "profiles";
22159
+ referencedColumns: ["id"];
22160
+ }];
22161
+ };
21712
22162
  uren_settings: {
21713
22163
  Row: {
21714
22164
  break_minutes: number;
@@ -23113,12 +23563,14 @@ export declare const replanOrderLoadCarriers: import("@tanstack/start-client-cor
23113
23563
  created_at: string;
23114
23564
  default_quantity: number;
23115
23565
  description: string | null;
23116
- duration_minutes: number | null;
23566
+ duration_minutes: number;
23117
23567
  id: string;
23568
+ labor_minutes: number;
23118
23569
  mandaat_type: string | null;
23119
23570
  name: string;
23120
23571
  price_mode: string;
23121
23572
  sort_order: number;
23573
+ travel_minutes: number;
23122
23574
  unit_price_cents: number;
23123
23575
  updated_at: string;
23124
23576
  };
@@ -23130,12 +23582,14 @@ export declare const replanOrderLoadCarriers: import("@tanstack/start-client-cor
23130
23582
  created_at?: string;
23131
23583
  default_quantity?: number;
23132
23584
  description?: string | null;
23133
- duration_minutes?: number | null;
23585
+ duration_minutes?: number;
23134
23586
  id?: string;
23587
+ labor_minutes?: number;
23135
23588
  mandaat_type?: string | null;
23136
23589
  name: string;
23137
23590
  price_mode?: string;
23138
23591
  sort_order?: number;
23592
+ travel_minutes?: number;
23139
23593
  unit_price_cents?: number;
23140
23594
  updated_at?: string;
23141
23595
  };
@@ -23147,12 +23601,14 @@ export declare const replanOrderLoadCarriers: import("@tanstack/start-client-cor
23147
23601
  created_at?: string;
23148
23602
  default_quantity?: number;
23149
23603
  description?: string | null;
23150
- duration_minutes?: number | null;
23604
+ duration_minutes?: number;
23151
23605
  id?: string;
23606
+ labor_minutes?: number;
23152
23607
  mandaat_type?: string | null;
23153
23608
  name?: string;
23154
23609
  price_mode?: string;
23155
23610
  sort_order?: number;
23611
+ travel_minutes?: number;
23156
23612
  unit_price_cents?: number;
23157
23613
  updated_at?: string;
23158
23614
  };
@@ -24707,6 +25163,12 @@ export declare const replanOrderLoadCarriers: import("@tanstack/start-client-cor
24707
25163
  };
24708
25164
  Returns: undefined;
24709
25165
  };
25166
+ _quote_release_work_order_intern: {
25167
+ Args: {
25168
+ _offerte_id: string;
25169
+ };
25170
+ Returns: import("../integrations/supabase/types").Json;
25171
+ };
24710
25172
  _wo_is_planner: {
24711
25173
  Args: never;
24712
25174
  Returns: boolean;
@@ -29578,6 +30040,12 @@ export declare const replanOrderLoadCarriers: import("@tanstack/start-client-cor
29578
30040
  };
29579
30041
  Returns: import("../integrations/supabase/types").Json;
29580
30042
  };
30043
+ pick_verify_rows: {
30044
+ Args: {
30045
+ _rows: import("../integrations/supabase/types").Json;
30046
+ };
30047
+ Returns: import("../integrations/supabase/types").Json;
30048
+ };
29581
30049
  pickstation_get_orders_raw: {
29582
30050
  Args: never;
29583
30051
  Returns: import("../integrations/supabase/types").Json;
@@ -29640,6 +30108,12 @@ export declare const replanOrderLoadCarriers: import("@tanstack/start-client-cor
29640
30108
  };
29641
30109
  Returns: undefined;
29642
30110
  };
30111
+ planning_html_escape: {
30112
+ Args: {
30113
+ t: string;
30114
+ };
30115
+ Returns: string;
30116
+ };
29643
30117
  planning_list: {
29644
30118
  Args: {
29645
30119
  _from: string;
@@ -29694,6 +30168,12 @@ export declare const replanOrderLoadCarriers: import("@tanstack/start-client-cor
29694
30168
  id: string;
29695
30169
  }[];
29696
30170
  };
30171
+ planning_urlencode: {
30172
+ Args: {
30173
+ t: string;
30174
+ };
30175
+ Returns: string;
30176
+ };
29697
30177
  print_preview_toestaan: {
29698
30178
  Args: {
29699
30179
  _max?: number;
@@ -29712,6 +30192,35 @@ export declare const replanOrderLoadCarriers: import("@tanstack/start-client-cor
29712
30192
  };
29713
30193
  Returns: undefined;
29714
30194
  };
30195
+ printer_gebruik: {
30196
+ Args: {
30197
+ _printer: string;
30198
+ };
30199
+ Returns: import("../integrations/supabase/types").Json;
30200
+ };
30201
+ printer_routering: {
30202
+ Args: {
30203
+ _documenttype: string;
30204
+ _layout_id?: string;
30205
+ _papierformaat?: string;
30206
+ _print_plek_id?: string;
30207
+ _werkplek?: string;
30208
+ };
30209
+ Returns: import("../integrations/supabase/types").Json;
30210
+ };
30211
+ printplek_printer: {
30212
+ Args: {
30213
+ _documenttype: string;
30214
+ _plek: string;
30215
+ };
30216
+ Returns: string;
30217
+ };
30218
+ printplek_verwijder_impact: {
30219
+ Args: {
30220
+ _id: string;
30221
+ };
30222
+ Returns: import("../integrations/supabase/types").Json;
30223
+ };
29715
30224
  process_logistics_event: {
29716
30225
  Args: {
29717
30226
  p_event_id: string;
@@ -29758,6 +30267,12 @@ export declare const replanOrderLoadCarriers: import("@tanstack/start-client-cor
29758
30267
  };
29759
30268
  Returns: import("../integrations/supabase/types").Json;
29760
30269
  };
30270
+ quote_create_from_scratch: {
30271
+ Args: {
30272
+ _payload: import("../integrations/supabase/types").Json;
30273
+ };
30274
+ Returns: import("../integrations/supabase/types").Json;
30275
+ };
29761
30276
  quote_create_from_source: {
29762
30277
  Args: {
29763
30278
  _payload?: import("../integrations/supabase/types").Json;
@@ -29773,6 +30288,13 @@ export declare const replanOrderLoadCarriers: import("@tanstack/start-client-cor
29773
30288
  };
29774
30289
  Returns: boolean;
29775
30290
  };
30291
+ quote_fill_from_form: {
30292
+ Args: {
30293
+ _offerte_id: string;
30294
+ _payload: import("../integrations/supabase/types").Json;
30295
+ };
30296
+ Returns: import("../integrations/supabase/types").Json;
30297
+ };
29776
30298
  quote_get_billable_lines: {
29777
30299
  Args: {
29778
30300
  _quotation_id: string;
@@ -29802,12 +30324,50 @@ export declare const replanOrderLoadCarriers: import("@tanstack/start-client-cor
29802
30324
  };
29803
30325
  Returns: import("../integrations/supabase/types").Json;
29804
30326
  };
30327
+ quote_public_accept: {
30328
+ Args: {
30329
+ _akkoord: boolean;
30330
+ _email: string;
30331
+ _ip_address?: string;
30332
+ _naam: string;
30333
+ _token: string;
30334
+ _user_agent?: string;
30335
+ };
30336
+ Returns: import("../integrations/supabase/types").Json;
30337
+ };
30338
+ quote_public_get: {
30339
+ Args: {
30340
+ _token: string;
30341
+ };
30342
+ Returns: import("../integrations/supabase/types").Json;
30343
+ };
30344
+ quote_public_sign: {
30345
+ Args: {
30346
+ _handtekening: string;
30347
+ _naam: string;
30348
+ _token: string;
30349
+ };
30350
+ Returns: import("../integrations/supabase/types").Json;
30351
+ };
29805
30352
  quote_queue_follow_up: {
29806
30353
  Args: {
29807
30354
  _offerte_id: string;
29808
30355
  };
29809
30356
  Returns: string;
29810
30357
  };
30358
+ quote_release_work_order: {
30359
+ Args: {
30360
+ _offerte_id: string;
30361
+ };
30362
+ Returns: import("../integrations/supabase/types").Json;
30363
+ };
30364
+ quote_sync_work_order: {
30365
+ Args: {
30366
+ _monteur_instructies?: string;
30367
+ _offerte_id: string;
30368
+ };
30369
+ Returns: boolean;
30370
+ };
29811
30371
  recompute_all_reserved_stock: {
29812
30372
  Args: never;
29813
30373
  Returns: undefined;
@@ -30759,6 +31319,10 @@ export declare const replanOrderLoadCarriers: import("@tanstack/start-client-cor
30759
31319
  };
30760
31320
  Returns: number;
30761
31321
  };
31322
+ uren_heeft_pagina_toegang: {
31323
+ Args: never;
31324
+ Returns: boolean;
31325
+ };
30762
31326
  uren_is_beheerder: {
30763
31327
  Args: never;
30764
31328
  Returns: boolean;
@@ -30842,6 +31406,13 @@ export declare const replanOrderLoadCarriers: import("@tanstack/start-client-cor
30842
31406
  Args: never;
30843
31407
  Returns: string;
30844
31408
  };
31409
+ uren_pagina_toegang_instellen: {
31410
+ Args: {
31411
+ _toegang: boolean;
31412
+ _user_id: string;
31413
+ };
31414
+ Returns: undefined;
31415
+ };
30845
31416
  uren_planning_dagagenda: {
30846
31417
  Args: {
30847
31418
  _tot: string;
@@ -31086,6 +31657,19 @@ export declare const replanOrderLoadCarriers: import("@tanstack/start-client-cor
31086
31657
  user_id: string;
31087
31658
  }[];
31088
31659
  };
31660
+ vervang_printer: {
31661
+ Args: {
31662
+ _nieuw: string;
31663
+ _oud: string;
31664
+ };
31665
+ Returns: import("../integrations/supabase/types").Json;
31666
+ };
31667
+ verwijder_printplek: {
31668
+ Args: {
31669
+ _id: string;
31670
+ };
31671
+ Returns: import("../integrations/supabase/types").Json;
31672
+ };
31089
31673
  voorraad_cleanup_old_rows: {
31090
31674
  Args: never;
31091
31675
  Returns: import("../integrations/supabase/types").Json;
@@ -31096,6 +31680,16 @@ export declare const replanOrderLoadCarriers: import("@tanstack/start-client-cor
31096
31680
  };
31097
31681
  Returns: number;
31098
31682
  };
31683
+ werkbon_pakket_tijden: {
31684
+ Args: {
31685
+ _werkbon_id: string;
31686
+ };
31687
+ Returns: {
31688
+ labor_minutes: number;
31689
+ total_minutes: number;
31690
+ travel_minutes: number;
31691
+ }[];
31692
+ };
31099
31693
  werkbon_totalen: {
31100
31694
  Args: {
31101
31695
  _werkbon_id: string;
@@ -34363,6 +34957,7 @@ export declare const replanBufferLoadCarriers: import("@tanstack/start-client-co
34363
34957
  formaat_code: string;
34364
34958
  id: string;
34365
34959
  printer_id: string | null;
34960
+ printer_ontbreekt_sinds: string | null;
34366
34961
  updated_at: string;
34367
34962
  };
34368
34963
  Insert: {
@@ -34371,6 +34966,7 @@ export declare const replanBufferLoadCarriers: import("@tanstack/start-client-co
34371
34966
  formaat_code: string;
34372
34967
  id?: string;
34373
34968
  printer_id?: string | null;
34969
+ printer_ontbreekt_sinds?: string | null;
34374
34970
  updated_at?: string;
34375
34971
  };
34376
34972
  Update: {
@@ -34379,6 +34975,7 @@ export declare const replanBufferLoadCarriers: import("@tanstack/start-client-co
34379
34975
  formaat_code?: string;
34380
34976
  id?: string;
34381
34977
  printer_id?: string | null;
34978
+ printer_ontbreekt_sinds?: string | null;
34382
34979
  updated_at?: string;
34383
34980
  };
34384
34981
  Relationships: [{
@@ -34715,6 +35312,7 @@ export declare const replanBufferLoadCarriers: import("@tanstack/start-client-co
34715
35312
  papierformaat: string | null;
34716
35313
  print_plek_id: string;
34717
35314
  printer_id: string | null;
35315
+ printer_ontbreekt_sinds: string | null;
34718
35316
  updated_at: string;
34719
35317
  };
34720
35318
  Insert: {
@@ -34724,6 +35322,7 @@ export declare const replanBufferLoadCarriers: import("@tanstack/start-client-co
34724
35322
  papierformaat?: string | null;
34725
35323
  print_plek_id: string;
34726
35324
  printer_id?: string | null;
35325
+ printer_ontbreekt_sinds?: string | null;
34727
35326
  updated_at?: string;
34728
35327
  };
34729
35328
  Update: {
@@ -34733,6 +35332,7 @@ export declare const replanBufferLoadCarriers: import("@tanstack/start-client-co
34733
35332
  papierformaat?: string | null;
34734
35333
  print_plek_id?: string;
34735
35334
  printer_id?: string | null;
35335
+ printer_ontbreekt_sinds?: string | null;
34736
35336
  updated_at?: string;
34737
35337
  };
34738
35338
  Relationships: [{
@@ -34756,6 +35356,7 @@ export declare const replanBufferLoadCarriers: import("@tanstack/start-client-co
34756
35356
  id: string;
34757
35357
  papierformaat: string | null;
34758
35358
  printer_id: string | null;
35359
+ printer_ontbreekt_sinds: string | null;
34759
35360
  updated_at: string;
34760
35361
  werkplek: string;
34761
35362
  };
@@ -34765,6 +35366,7 @@ export declare const replanBufferLoadCarriers: import("@tanstack/start-client-co
34765
35366
  id?: string;
34766
35367
  papierformaat?: string | null;
34767
35368
  printer_id?: string | null;
35369
+ printer_ontbreekt_sinds?: string | null;
34768
35370
  updated_at?: string;
34769
35371
  werkplek: string;
34770
35372
  };
@@ -34774,6 +35376,7 @@ export declare const replanBufferLoadCarriers: import("@tanstack/start-client-co
34774
35376
  id?: string;
34775
35377
  papierformaat?: string | null;
34776
35378
  printer_id?: string | null;
35379
+ printer_ontbreekt_sinds?: string | null;
34777
35380
  updated_at?: string;
34778
35381
  werkplek?: string;
34779
35382
  };
@@ -38076,6 +38679,78 @@ export declare const replanBufferLoadCarriers: import("@tanstack/start-client-co
38076
38679
  referencedColumns: ["id"];
38077
38680
  }];
38078
38681
  };
38682
+ floriday_document_fetch_queue: {
38683
+ Row: {
38684
+ attempts: number;
38685
+ cancelled_reason: string | null;
38686
+ completed_at: string | null;
38687
+ connection_id: string;
38688
+ created_at: string;
38689
+ document_key: string;
38690
+ environment: string;
38691
+ id: string;
38692
+ kind: string;
38693
+ last_error: string | null;
38694
+ last_http_status: number | null;
38695
+ locked_at: string | null;
38696
+ locked_by: string | null;
38697
+ max_attempts: number;
38698
+ next_attempt_at: string;
38699
+ order_ref: string | null;
38700
+ params: import("../integrations/supabase/types").Json;
38701
+ status: string;
38702
+ updated_at: string;
38703
+ };
38704
+ Insert: {
38705
+ attempts?: number;
38706
+ cancelled_reason?: string | null;
38707
+ completed_at?: string | null;
38708
+ connection_id: string;
38709
+ created_at?: string;
38710
+ document_key: string;
38711
+ environment: string;
38712
+ id?: string;
38713
+ kind: string;
38714
+ last_error?: string | null;
38715
+ last_http_status?: number | null;
38716
+ locked_at?: string | null;
38717
+ locked_by?: string | null;
38718
+ max_attempts?: number;
38719
+ next_attempt_at?: string;
38720
+ order_ref?: string | null;
38721
+ params?: import("../integrations/supabase/types").Json;
38722
+ status?: string;
38723
+ updated_at?: string;
38724
+ };
38725
+ Update: {
38726
+ attempts?: number;
38727
+ cancelled_reason?: string | null;
38728
+ completed_at?: string | null;
38729
+ connection_id?: string;
38730
+ created_at?: string;
38731
+ document_key?: string;
38732
+ environment?: string;
38733
+ id?: string;
38734
+ kind?: string;
38735
+ last_error?: string | null;
38736
+ last_http_status?: number | null;
38737
+ locked_at?: string | null;
38738
+ locked_by?: string | null;
38739
+ max_attempts?: number;
38740
+ next_attempt_at?: string;
38741
+ order_ref?: string | null;
38742
+ params?: import("../integrations/supabase/types").Json;
38743
+ status?: string;
38744
+ updated_at?: string;
38745
+ };
38746
+ Relationships: [{
38747
+ foreignKeyName: "floriday_document_fetch_queue_connection_id_fkey";
38748
+ columns: ["connection_id"];
38749
+ isOneToOne: false;
38750
+ referencedRelation: "floriday_connections";
38751
+ referencedColumns: ["id"];
38752
+ }];
38753
+ };
38079
38754
  floriday_fulfillment_orders_cache: {
38080
38755
  Row: {
38081
38756
  auction_date: string | null;
@@ -38373,6 +39048,39 @@ export declare const replanBufferLoadCarriers: import("@tanstack/start-client-co
38373
39048
  referencedColumns: ["id"];
38374
39049
  }];
38375
39050
  };
39051
+ floriday_merge_log: {
39052
+ Row: {
39053
+ action: string;
39054
+ created_at: string;
39055
+ floriday_sales_order_ids: import("../integrations/supabase/types").Json;
39056
+ id: string;
39057
+ kept_order_id: string | null;
39058
+ lines: import("../integrations/supabase/types").Json;
39059
+ reason: string | null;
39060
+ removed_order_id: string | null;
39061
+ };
39062
+ Insert: {
39063
+ action: string;
39064
+ created_at?: string;
39065
+ floriday_sales_order_ids?: import("../integrations/supabase/types").Json;
39066
+ id?: string;
39067
+ kept_order_id?: string | null;
39068
+ lines?: import("../integrations/supabase/types").Json;
39069
+ reason?: string | null;
39070
+ removed_order_id?: string | null;
39071
+ };
39072
+ Update: {
39073
+ action?: string;
39074
+ created_at?: string;
39075
+ floriday_sales_order_ids?: import("../integrations/supabase/types").Json;
39076
+ id?: string;
39077
+ kept_order_id?: string | null;
39078
+ lines?: import("../integrations/supabase/types").Json;
39079
+ reason?: string | null;
39080
+ removed_order_id?: string | null;
39081
+ };
39082
+ Relationships: [];
39083
+ };
38376
39084
  floriday_network_cache: {
38377
39085
  Row: {
38378
39086
  city: string | null;
@@ -40608,6 +41316,57 @@ export declare const replanBufferLoadCarriers: import("@tanstack/start-client-co
40608
41316
  };
40609
41317
  Relationships: [];
40610
41318
  };
41319
+ itk_offerte_acceptaties: {
41320
+ Row: {
41321
+ accepted_at: string;
41322
+ akkoordgever_email: string;
41323
+ akkoordgever_naam: string;
41324
+ akkoordverklaring: string;
41325
+ id: string;
41326
+ inhoud_hash: string;
41327
+ ip_address: unknown;
41328
+ offerte_id: string;
41329
+ offerte_number: string;
41330
+ offerte_snapshot: import("../integrations/supabase/types").Json;
41331
+ user_agent: string | null;
41332
+ versie: string;
41333
+ };
41334
+ Insert: {
41335
+ accepted_at?: string;
41336
+ akkoordgever_email: string;
41337
+ akkoordgever_naam: string;
41338
+ akkoordverklaring: string;
41339
+ id?: string;
41340
+ inhoud_hash: string;
41341
+ ip_address?: unknown;
41342
+ offerte_id: string;
41343
+ offerte_number: string;
41344
+ offerte_snapshot: import("../integrations/supabase/types").Json;
41345
+ user_agent?: string | null;
41346
+ versie: string;
41347
+ };
41348
+ Update: {
41349
+ accepted_at?: string;
41350
+ akkoordgever_email?: string;
41351
+ akkoordgever_naam?: string;
41352
+ akkoordverklaring?: string;
41353
+ id?: string;
41354
+ inhoud_hash?: string;
41355
+ ip_address?: unknown;
41356
+ offerte_id?: string;
41357
+ offerte_number?: string;
41358
+ offerte_snapshot?: import("../integrations/supabase/types").Json;
41359
+ user_agent?: string | null;
41360
+ versie?: string;
41361
+ };
41362
+ Relationships: [{
41363
+ foreignKeyName: "itk_offerte_acceptaties_offerte_id_fkey";
41364
+ columns: ["offerte_id"];
41365
+ isOneToOne: true;
41366
+ referencedRelation: "itk_offertes";
41367
+ referencedColumns: ["id"];
41368
+ }];
41369
+ };
40611
41370
  itk_offerte_events: {
40612
41371
  Row: {
40613
41372
  created_at: string;
@@ -40821,6 +41580,7 @@ export declare const replanBufferLoadCarriers: import("@tanstack/start-client-co
40821
41580
  itk_offertes: {
40822
41581
  Row: {
40823
41582
  aandachtspunten: string | null;
41583
+ acceptance_id: string | null;
40824
41584
  ai_generated: boolean;
40825
41585
  approved_at: string | null;
40826
41586
  binnen_mandaat: boolean;
@@ -40839,6 +41599,11 @@ export declare const replanBufferLoadCarriers: import("@tanstack/start-client-co
40839
41599
  onderwerp: string | null;
40840
41600
  rejected_at: string | null;
40841
41601
  sent_at: string | null;
41602
+ sign_token: string;
41603
+ signature_data: string | null;
41604
+ signed_at: string | null;
41605
+ signer_email: string | null;
41606
+ signer_name: string | null;
40842
41607
  source_number: string | null;
40843
41608
  source_ref: string | null;
40844
41609
  source_type: string;
@@ -40853,11 +41618,13 @@ export declare const replanBufferLoadCarriers: import("@tanstack/start-client-co
40853
41618
  viewed_at: string | null;
40854
41619
  volgnummer: number | null;
40855
41620
  voorwaarden: string | null;
41621
+ werkbon_concept: import("../integrations/supabase/types").Json | null;
40856
41622
  werkbon_id: string | null;
40857
41623
  work_location_id: string | null;
40858
41624
  };
40859
41625
  Insert: {
40860
41626
  aandachtspunten?: string | null;
41627
+ acceptance_id?: string | null;
40861
41628
  ai_generated?: boolean;
40862
41629
  approved_at?: string | null;
40863
41630
  binnen_mandaat?: boolean;
@@ -40876,6 +41643,11 @@ export declare const replanBufferLoadCarriers: import("@tanstack/start-client-co
40876
41643
  onderwerp?: string | null;
40877
41644
  rejected_at?: string | null;
40878
41645
  sent_at?: string | null;
41646
+ sign_token?: string;
41647
+ signature_data?: string | null;
41648
+ signed_at?: string | null;
41649
+ signer_email?: string | null;
41650
+ signer_name?: string | null;
40879
41651
  source_number?: string | null;
40880
41652
  source_ref?: string | null;
40881
41653
  source_type?: string;
@@ -40890,11 +41662,13 @@ export declare const replanBufferLoadCarriers: import("@tanstack/start-client-co
40890
41662
  viewed_at?: string | null;
40891
41663
  volgnummer?: number | null;
40892
41664
  voorwaarden?: string | null;
41665
+ werkbon_concept?: import("../integrations/supabase/types").Json | null;
40893
41666
  werkbon_id?: string | null;
40894
41667
  work_location_id?: string | null;
40895
41668
  };
40896
41669
  Update: {
40897
41670
  aandachtspunten?: string | null;
41671
+ acceptance_id?: string | null;
40898
41672
  ai_generated?: boolean;
40899
41673
  approved_at?: string | null;
40900
41674
  binnen_mandaat?: boolean;
@@ -40913,6 +41687,11 @@ export declare const replanBufferLoadCarriers: import("@tanstack/start-client-co
40913
41687
  onderwerp?: string | null;
40914
41688
  rejected_at?: string | null;
40915
41689
  sent_at?: string | null;
41690
+ sign_token?: string;
41691
+ signature_data?: string | null;
41692
+ signed_at?: string | null;
41693
+ signer_email?: string | null;
41694
+ signer_name?: string | null;
40916
41695
  source_number?: string | null;
40917
41696
  source_ref?: string | null;
40918
41697
  source_type?: string;
@@ -40927,10 +41706,17 @@ export declare const replanBufferLoadCarriers: import("@tanstack/start-client-co
40927
41706
  viewed_at?: string | null;
40928
41707
  volgnummer?: number | null;
40929
41708
  voorwaarden?: string | null;
41709
+ werkbon_concept?: import("../integrations/supabase/types").Json | null;
40930
41710
  werkbon_id?: string | null;
40931
41711
  work_location_id?: string | null;
40932
41712
  };
40933
41713
  Relationships: [{
41714
+ foreignKeyName: "itk_offertes_acceptance_id_fkey";
41715
+ columns: ["acceptance_id"];
41716
+ isOneToOne: false;
41717
+ referencedRelation: "itk_offerte_acceptaties";
41718
+ referencedColumns: ["id"];
41719
+ }, {
40934
41720
  foreignKeyName: "itk_offertes_contact_id_fkey";
40935
41721
  columns: ["contact_id"];
40936
41722
  isOneToOne: false;
@@ -42369,6 +43155,60 @@ export declare const replanBufferLoadCarriers: import("@tanstack/start-client-co
42369
43155
  };
42370
43156
  Relationships: [];
42371
43157
  };
43158
+ logistics_order_merge_lines: {
43159
+ Row: {
43160
+ from_order_id: string;
43161
+ from_order_number: string | null;
43162
+ group_key: string;
43163
+ id: string;
43164
+ merged_at: string;
43165
+ order_item_id: string;
43166
+ ordered_at: string | null;
43167
+ product_id: string | null;
43168
+ product_name: string | null;
43169
+ quantity: number | null;
43170
+ reason: string;
43171
+ sales_order_id: string | null;
43172
+ source_line_key: string | null;
43173
+ to_order_id: string;
43174
+ to_order_number: string | null;
43175
+ };
43176
+ Insert: {
43177
+ from_order_id: string;
43178
+ from_order_number?: string | null;
43179
+ group_key: string;
43180
+ id?: string;
43181
+ merged_at?: string;
43182
+ order_item_id: string;
43183
+ ordered_at?: string | null;
43184
+ product_id?: string | null;
43185
+ product_name?: string | null;
43186
+ quantity?: number | null;
43187
+ reason: string;
43188
+ sales_order_id?: string | null;
43189
+ source_line_key?: string | null;
43190
+ to_order_id: string;
43191
+ to_order_number?: string | null;
43192
+ };
43193
+ Update: {
43194
+ from_order_id?: string;
43195
+ from_order_number?: string | null;
43196
+ group_key?: string;
43197
+ id?: string;
43198
+ merged_at?: string;
43199
+ order_item_id?: string;
43200
+ ordered_at?: string | null;
43201
+ product_id?: string | null;
43202
+ product_name?: string | null;
43203
+ quantity?: number | null;
43204
+ reason?: string;
43205
+ sales_order_id?: string | null;
43206
+ source_line_key?: string | null;
43207
+ to_order_id?: string;
43208
+ to_order_number?: string | null;
43209
+ };
43210
+ Relationships: [];
43211
+ };
42372
43212
  logistics_order_merges: {
42373
43213
  Row: {
42374
43214
  group_key: string;
@@ -46009,6 +46849,9 @@ export declare const replanBufferLoadCarriers: import("@tanstack/start-client-co
46009
46849
  product_id: string | null;
46010
46850
  product_name: string;
46011
46851
  quantity: number;
46852
+ quarantine_reason: string | null;
46853
+ quarantined_at: string | null;
46854
+ quarantined_into_order_id: string | null;
46012
46855
  source_line_key: string | null;
46013
46856
  unit: string;
46014
46857
  unit_price: number | null;
@@ -46025,6 +46868,9 @@ export declare const replanBufferLoadCarriers: import("@tanstack/start-client-co
46025
46868
  product_id?: string | null;
46026
46869
  product_name: string;
46027
46870
  quantity?: number;
46871
+ quarantine_reason?: string | null;
46872
+ quarantined_at?: string | null;
46873
+ quarantined_into_order_id?: string | null;
46028
46874
  source_line_key?: string | null;
46029
46875
  unit?: string;
46030
46876
  unit_price?: number | null;
@@ -46041,6 +46887,9 @@ export declare const replanBufferLoadCarriers: import("@tanstack/start-client-co
46041
46887
  product_id?: string | null;
46042
46888
  product_name?: string;
46043
46889
  quantity?: number;
46890
+ quarantine_reason?: string | null;
46891
+ quarantined_at?: string | null;
46892
+ quarantined_into_order_id?: string | null;
46044
46893
  source_line_key?: string | null;
46045
46894
  unit?: string;
46046
46895
  unit_price?: number | null;
@@ -47472,6 +48321,57 @@ export declare const replanBufferLoadCarriers: import("@tanstack/start-client-co
47472
48321
  };
47473
48322
  Relationships: [];
47474
48323
  };
48324
+ planning_confirmation_log: {
48325
+ Row: {
48326
+ created_at: string;
48327
+ end_at: string;
48328
+ id: string;
48329
+ kind: string;
48330
+ outbox_id: string | null;
48331
+ planning_item_id: string;
48332
+ reason: string | null;
48333
+ recipient: string | null;
48334
+ start_at: string;
48335
+ status: string;
48336
+ };
48337
+ Insert: {
48338
+ created_at?: string;
48339
+ end_at: string;
48340
+ id?: string;
48341
+ kind?: string;
48342
+ outbox_id?: string | null;
48343
+ planning_item_id: string;
48344
+ reason?: string | null;
48345
+ recipient?: string | null;
48346
+ start_at: string;
48347
+ status: string;
48348
+ };
48349
+ Update: {
48350
+ created_at?: string;
48351
+ end_at?: string;
48352
+ id?: string;
48353
+ kind?: string;
48354
+ outbox_id?: string | null;
48355
+ planning_item_id?: string;
48356
+ reason?: string | null;
48357
+ recipient?: string | null;
48358
+ start_at?: string;
48359
+ status?: string;
48360
+ };
48361
+ Relationships: [{
48362
+ foreignKeyName: "planning_confirmation_log_planning_item_id_fkey";
48363
+ columns: ["planning_item_id"];
48364
+ isOneToOne: false;
48365
+ referencedRelation: "planning_items";
48366
+ referencedColumns: ["id"];
48367
+ }, {
48368
+ foreignKeyName: "planning_confirmation_log_planning_item_id_fkey";
48369
+ columns: ["planning_item_id"];
48370
+ isOneToOne: false;
48371
+ referencedRelation: "planning_overview";
48372
+ referencedColumns: ["id"];
48373
+ }];
48374
+ };
47475
48375
  planning_item_assistants: {
47476
48376
  Row: {
47477
48377
  created_at: string;
@@ -47556,6 +48456,69 @@ export declare const replanBufferLoadCarriers: import("@tanstack/start-client-co
47556
48456
  referencedColumns: ["id"];
47557
48457
  }];
47558
48458
  };
48459
+ planning_mail_settings: {
48460
+ Row: {
48461
+ body_template: string;
48462
+ cc: string[];
48463
+ connection_id: string | null;
48464
+ created_at: string;
48465
+ email_purpose: string | null;
48466
+ enabled: boolean;
48467
+ id: boolean;
48468
+ reply_to: string | null;
48469
+ reschedule_body_template: string;
48470
+ reschedule_subject_template: string;
48471
+ subject_template: string;
48472
+ timezone: string;
48473
+ updated_at: string;
48474
+ updated_by: string | null;
48475
+ };
48476
+ Insert: {
48477
+ body_template?: string;
48478
+ cc?: string[];
48479
+ connection_id?: string | null;
48480
+ created_at?: string;
48481
+ email_purpose?: string | null;
48482
+ enabled?: boolean;
48483
+ id?: boolean;
48484
+ reply_to?: string | null;
48485
+ reschedule_body_template?: string;
48486
+ reschedule_subject_template?: string;
48487
+ subject_template?: string;
48488
+ timezone?: string;
48489
+ updated_at?: string;
48490
+ updated_by?: string | null;
48491
+ };
48492
+ Update: {
48493
+ body_template?: string;
48494
+ cc?: string[];
48495
+ connection_id?: string | null;
48496
+ created_at?: string;
48497
+ email_purpose?: string | null;
48498
+ enabled?: boolean;
48499
+ id?: boolean;
48500
+ reply_to?: string | null;
48501
+ reschedule_body_template?: string;
48502
+ reschedule_subject_template?: string;
48503
+ subject_template?: string;
48504
+ timezone?: string;
48505
+ updated_at?: string;
48506
+ updated_by?: string | null;
48507
+ };
48508
+ Relationships: [{
48509
+ foreignKeyName: "planning_mail_settings_connection_id_fkey";
48510
+ columns: ["connection_id"];
48511
+ isOneToOne: false;
48512
+ referencedRelation: "email_auth_connections";
48513
+ referencedColumns: ["id"];
48514
+ }, {
48515
+ foreignKeyName: "planning_mail_settings_connection_id_fkey";
48516
+ columns: ["connection_id"];
48517
+ isOneToOne: false;
48518
+ referencedRelation: "email_auth_connections_safe";
48519
+ referencedColumns: ["id"];
48520
+ }];
48521
+ };
47559
48522
  planning_monteur_day_locations: {
47560
48523
  Row: {
47561
48524
  created_at: string;
@@ -47943,6 +48906,27 @@ export declare const replanBufferLoadCarriers: import("@tanstack/start-client-co
47943
48906
  };
47944
48907
  Relationships: [];
47945
48908
  };
48909
+ print_genegeerde_computers: {
48910
+ Row: {
48911
+ computer_naam: string;
48912
+ genegeerd_door: string | null;
48913
+ genegeerd_op: string;
48914
+ id: string;
48915
+ };
48916
+ Insert: {
48917
+ computer_naam: string;
48918
+ genegeerd_door?: string | null;
48919
+ genegeerd_op?: string;
48920
+ id?: string;
48921
+ };
48922
+ Update: {
48923
+ computer_naam?: string;
48924
+ genegeerd_door?: string | null;
48925
+ genegeerd_op?: string;
48926
+ id?: string;
48927
+ };
48928
+ Relationships: [];
48929
+ };
47946
48930
  print_job_logs: {
47947
48931
  Row: {
47948
48932
  created_at: string;
@@ -48213,6 +49197,39 @@ export declare const replanBufferLoadCarriers: import("@tanstack/start-client-co
48213
49197
  referencedColumns: ["id"];
48214
49198
  }];
48215
49199
  };
49200
+ print_plek_printers: {
49201
+ Row: {
49202
+ id: string;
49203
+ print_plek_id: string;
49204
+ printer_id: string;
49205
+ toegevoegd_op: string;
49206
+ };
49207
+ Insert: {
49208
+ id?: string;
49209
+ print_plek_id: string;
49210
+ printer_id: string;
49211
+ toegevoegd_op?: string;
49212
+ };
49213
+ Update: {
49214
+ id?: string;
49215
+ print_plek_id?: string;
49216
+ printer_id?: string;
49217
+ toegevoegd_op?: string;
49218
+ };
49219
+ Relationships: [{
49220
+ foreignKeyName: "print_plek_printers_print_plek_id_fkey";
49221
+ columns: ["print_plek_id"];
49222
+ isOneToOne: false;
49223
+ referencedRelation: "print_plekken";
49224
+ referencedColumns: ["id"];
49225
+ }, {
49226
+ foreignKeyName: "print_plek_printers_printer_id_fkey";
49227
+ columns: ["printer_id"];
49228
+ isOneToOne: false;
49229
+ referencedRelation: "printers";
49230
+ referencedColumns: ["id"];
49231
+ }];
49232
+ };
48216
49233
  print_plekken: {
48217
49234
  Row: {
48218
49235
  actief: boolean;
@@ -48428,7 +49445,8 @@ export declare const replanBufferLoadCarriers: import("@tanstack/start-client-co
48428
49445
  created_at: string;
48429
49446
  id: string;
48430
49447
  layout_id: string;
48431
- printer_id: string;
49448
+ printer_id: string | null;
49449
+ printer_ontbreekt_sinds: string | null;
48432
49450
  prioriteit: number;
48433
49451
  updated_at: string;
48434
49452
  };
@@ -48436,7 +49454,8 @@ export declare const replanBufferLoadCarriers: import("@tanstack/start-client-co
48436
49454
  created_at?: string;
48437
49455
  id?: string;
48438
49456
  layout_id: string;
48439
- printer_id: string;
49457
+ printer_id?: string | null;
49458
+ printer_ontbreekt_sinds?: string | null;
48440
49459
  prioriteit?: number;
48441
49460
  updated_at?: string;
48442
49461
  };
@@ -48444,7 +49463,8 @@ export declare const replanBufferLoadCarriers: import("@tanstack/start-client-co
48444
49463
  created_at?: string;
48445
49464
  id?: string;
48446
49465
  layout_id?: string;
48447
- printer_id?: string;
49466
+ printer_id?: string | null;
49467
+ printer_ontbreekt_sinds?: string | null;
48448
49468
  prioriteit?: number;
48449
49469
  updated_at?: string;
48450
49470
  };
@@ -52932,6 +53952,30 @@ export declare const replanBufferLoadCarriers: import("@tanstack/start-client-co
52932
53952
  };
52933
53953
  Relationships: [];
52934
53954
  };
53955
+ uren_pagina_toegang: {
53956
+ Row: {
53957
+ created_at: string;
53958
+ id: string;
53959
+ user_id: string;
53960
+ };
53961
+ Insert: {
53962
+ created_at?: string;
53963
+ id?: string;
53964
+ user_id: string;
53965
+ };
53966
+ Update: {
53967
+ created_at?: string;
53968
+ id?: string;
53969
+ user_id?: string;
53970
+ };
53971
+ Relationships: [{
53972
+ foreignKeyName: "uren_pagina_toegang_user_id_fkey";
53973
+ columns: ["user_id"];
53974
+ isOneToOne: true;
53975
+ referencedRelation: "profiles";
53976
+ referencedColumns: ["id"];
53977
+ }];
53978
+ };
52935
53979
  uren_settings: {
52936
53980
  Row: {
52937
53981
  break_minutes: number;
@@ -54336,12 +55380,14 @@ export declare const replanBufferLoadCarriers: import("@tanstack/start-client-co
54336
55380
  created_at: string;
54337
55381
  default_quantity: number;
54338
55382
  description: string | null;
54339
- duration_minutes: number | null;
55383
+ duration_minutes: number;
54340
55384
  id: string;
55385
+ labor_minutes: number;
54341
55386
  mandaat_type: string | null;
54342
55387
  name: string;
54343
55388
  price_mode: string;
54344
55389
  sort_order: number;
55390
+ travel_minutes: number;
54345
55391
  unit_price_cents: number;
54346
55392
  updated_at: string;
54347
55393
  };
@@ -54353,12 +55399,14 @@ export declare const replanBufferLoadCarriers: import("@tanstack/start-client-co
54353
55399
  created_at?: string;
54354
55400
  default_quantity?: number;
54355
55401
  description?: string | null;
54356
- duration_minutes?: number | null;
55402
+ duration_minutes?: number;
54357
55403
  id?: string;
55404
+ labor_minutes?: number;
54358
55405
  mandaat_type?: string | null;
54359
55406
  name: string;
54360
55407
  price_mode?: string;
54361
55408
  sort_order?: number;
55409
+ travel_minutes?: number;
54362
55410
  unit_price_cents?: number;
54363
55411
  updated_at?: string;
54364
55412
  };
@@ -54370,12 +55418,14 @@ export declare const replanBufferLoadCarriers: import("@tanstack/start-client-co
54370
55418
  created_at?: string;
54371
55419
  default_quantity?: number;
54372
55420
  description?: string | null;
54373
- duration_minutes?: number | null;
55421
+ duration_minutes?: number;
54374
55422
  id?: string;
55423
+ labor_minutes?: number;
54375
55424
  mandaat_type?: string | null;
54376
55425
  name?: string;
54377
55426
  price_mode?: string;
54378
55427
  sort_order?: number;
55428
+ travel_minutes?: number;
54379
55429
  unit_price_cents?: number;
54380
55430
  updated_at?: string;
54381
55431
  };
@@ -55930,6 +56980,12 @@ export declare const replanBufferLoadCarriers: import("@tanstack/start-client-co
55930
56980
  };
55931
56981
  Returns: undefined;
55932
56982
  };
56983
+ _quote_release_work_order_intern: {
56984
+ Args: {
56985
+ _offerte_id: string;
56986
+ };
56987
+ Returns: import("../integrations/supabase/types").Json;
56988
+ };
55933
56989
  _wo_is_planner: {
55934
56990
  Args: never;
55935
56991
  Returns: boolean;
@@ -60801,6 +61857,12 @@ export declare const replanBufferLoadCarriers: import("@tanstack/start-client-co
60801
61857
  };
60802
61858
  Returns: import("../integrations/supabase/types").Json;
60803
61859
  };
61860
+ pick_verify_rows: {
61861
+ Args: {
61862
+ _rows: import("../integrations/supabase/types").Json;
61863
+ };
61864
+ Returns: import("../integrations/supabase/types").Json;
61865
+ };
60804
61866
  pickstation_get_orders_raw: {
60805
61867
  Args: never;
60806
61868
  Returns: import("../integrations/supabase/types").Json;
@@ -60863,6 +61925,12 @@ export declare const replanBufferLoadCarriers: import("@tanstack/start-client-co
60863
61925
  };
60864
61926
  Returns: undefined;
60865
61927
  };
61928
+ planning_html_escape: {
61929
+ Args: {
61930
+ t: string;
61931
+ };
61932
+ Returns: string;
61933
+ };
60866
61934
  planning_list: {
60867
61935
  Args: {
60868
61936
  _from: string;
@@ -60917,6 +61985,12 @@ export declare const replanBufferLoadCarriers: import("@tanstack/start-client-co
60917
61985
  id: string;
60918
61986
  }[];
60919
61987
  };
61988
+ planning_urlencode: {
61989
+ Args: {
61990
+ t: string;
61991
+ };
61992
+ Returns: string;
61993
+ };
60920
61994
  print_preview_toestaan: {
60921
61995
  Args: {
60922
61996
  _max?: number;
@@ -60935,6 +62009,35 @@ export declare const replanBufferLoadCarriers: import("@tanstack/start-client-co
60935
62009
  };
60936
62010
  Returns: undefined;
60937
62011
  };
62012
+ printer_gebruik: {
62013
+ Args: {
62014
+ _printer: string;
62015
+ };
62016
+ Returns: import("../integrations/supabase/types").Json;
62017
+ };
62018
+ printer_routering: {
62019
+ Args: {
62020
+ _documenttype: string;
62021
+ _layout_id?: string;
62022
+ _papierformaat?: string;
62023
+ _print_plek_id?: string;
62024
+ _werkplek?: string;
62025
+ };
62026
+ Returns: import("../integrations/supabase/types").Json;
62027
+ };
62028
+ printplek_printer: {
62029
+ Args: {
62030
+ _documenttype: string;
62031
+ _plek: string;
62032
+ };
62033
+ Returns: string;
62034
+ };
62035
+ printplek_verwijder_impact: {
62036
+ Args: {
62037
+ _id: string;
62038
+ };
62039
+ Returns: import("../integrations/supabase/types").Json;
62040
+ };
60938
62041
  process_logistics_event: {
60939
62042
  Args: {
60940
62043
  p_event_id: string;
@@ -60981,6 +62084,12 @@ export declare const replanBufferLoadCarriers: import("@tanstack/start-client-co
60981
62084
  };
60982
62085
  Returns: import("../integrations/supabase/types").Json;
60983
62086
  };
62087
+ quote_create_from_scratch: {
62088
+ Args: {
62089
+ _payload: import("../integrations/supabase/types").Json;
62090
+ };
62091
+ Returns: import("../integrations/supabase/types").Json;
62092
+ };
60984
62093
  quote_create_from_source: {
60985
62094
  Args: {
60986
62095
  _payload?: import("../integrations/supabase/types").Json;
@@ -60996,6 +62105,13 @@ export declare const replanBufferLoadCarriers: import("@tanstack/start-client-co
60996
62105
  };
60997
62106
  Returns: boolean;
60998
62107
  };
62108
+ quote_fill_from_form: {
62109
+ Args: {
62110
+ _offerte_id: string;
62111
+ _payload: import("../integrations/supabase/types").Json;
62112
+ };
62113
+ Returns: import("../integrations/supabase/types").Json;
62114
+ };
60999
62115
  quote_get_billable_lines: {
61000
62116
  Args: {
61001
62117
  _quotation_id: string;
@@ -61025,12 +62141,50 @@ export declare const replanBufferLoadCarriers: import("@tanstack/start-client-co
61025
62141
  };
61026
62142
  Returns: import("../integrations/supabase/types").Json;
61027
62143
  };
62144
+ quote_public_accept: {
62145
+ Args: {
62146
+ _akkoord: boolean;
62147
+ _email: string;
62148
+ _ip_address?: string;
62149
+ _naam: string;
62150
+ _token: string;
62151
+ _user_agent?: string;
62152
+ };
62153
+ Returns: import("../integrations/supabase/types").Json;
62154
+ };
62155
+ quote_public_get: {
62156
+ Args: {
62157
+ _token: string;
62158
+ };
62159
+ Returns: import("../integrations/supabase/types").Json;
62160
+ };
62161
+ quote_public_sign: {
62162
+ Args: {
62163
+ _handtekening: string;
62164
+ _naam: string;
62165
+ _token: string;
62166
+ };
62167
+ Returns: import("../integrations/supabase/types").Json;
62168
+ };
61028
62169
  quote_queue_follow_up: {
61029
62170
  Args: {
61030
62171
  _offerte_id: string;
61031
62172
  };
61032
62173
  Returns: string;
61033
62174
  };
62175
+ quote_release_work_order: {
62176
+ Args: {
62177
+ _offerte_id: string;
62178
+ };
62179
+ Returns: import("../integrations/supabase/types").Json;
62180
+ };
62181
+ quote_sync_work_order: {
62182
+ Args: {
62183
+ _monteur_instructies?: string;
62184
+ _offerte_id: string;
62185
+ };
62186
+ Returns: boolean;
62187
+ };
61034
62188
  recompute_all_reserved_stock: {
61035
62189
  Args: never;
61036
62190
  Returns: undefined;
@@ -61982,6 +63136,10 @@ export declare const replanBufferLoadCarriers: import("@tanstack/start-client-co
61982
63136
  };
61983
63137
  Returns: number;
61984
63138
  };
63139
+ uren_heeft_pagina_toegang: {
63140
+ Args: never;
63141
+ Returns: boolean;
63142
+ };
61985
63143
  uren_is_beheerder: {
61986
63144
  Args: never;
61987
63145
  Returns: boolean;
@@ -62065,6 +63223,13 @@ export declare const replanBufferLoadCarriers: import("@tanstack/start-client-co
62065
63223
  Args: never;
62066
63224
  Returns: string;
62067
63225
  };
63226
+ uren_pagina_toegang_instellen: {
63227
+ Args: {
63228
+ _toegang: boolean;
63229
+ _user_id: string;
63230
+ };
63231
+ Returns: undefined;
63232
+ };
62068
63233
  uren_planning_dagagenda: {
62069
63234
  Args: {
62070
63235
  _tot: string;
@@ -62309,6 +63474,19 @@ export declare const replanBufferLoadCarriers: import("@tanstack/start-client-co
62309
63474
  user_id: string;
62310
63475
  }[];
62311
63476
  };
63477
+ vervang_printer: {
63478
+ Args: {
63479
+ _nieuw: string;
63480
+ _oud: string;
63481
+ };
63482
+ Returns: import("../integrations/supabase/types").Json;
63483
+ };
63484
+ verwijder_printplek: {
63485
+ Args: {
63486
+ _id: string;
63487
+ };
63488
+ Returns: import("../integrations/supabase/types").Json;
63489
+ };
62312
63490
  voorraad_cleanup_old_rows: {
62313
63491
  Args: never;
62314
63492
  Returns: import("../integrations/supabase/types").Json;
@@ -62319,6 +63497,16 @@ export declare const replanBufferLoadCarriers: import("@tanstack/start-client-co
62319
63497
  };
62320
63498
  Returns: number;
62321
63499
  };
63500
+ werkbon_pakket_tijden: {
63501
+ Args: {
63502
+ _werkbon_id: string;
63503
+ };
63504
+ Returns: {
63505
+ labor_minutes: number;
63506
+ total_minutes: number;
63507
+ travel_minutes: number;
63508
+ }[];
63509
+ };
62322
63510
  werkbon_totalen: {
62323
63511
  Args: {
62324
63512
  _werkbon_id: string;
@@ -65590,6 +66778,7 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
65590
66778
  formaat_code: string;
65591
66779
  id: string;
65592
66780
  printer_id: string | null;
66781
+ printer_ontbreekt_sinds: string | null;
65593
66782
  updated_at: string;
65594
66783
  };
65595
66784
  Insert: {
@@ -65598,6 +66787,7 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
65598
66787
  formaat_code: string;
65599
66788
  id?: string;
65600
66789
  printer_id?: string | null;
66790
+ printer_ontbreekt_sinds?: string | null;
65601
66791
  updated_at?: string;
65602
66792
  };
65603
66793
  Update: {
@@ -65606,6 +66796,7 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
65606
66796
  formaat_code?: string;
65607
66797
  id?: string;
65608
66798
  printer_id?: string | null;
66799
+ printer_ontbreekt_sinds?: string | null;
65609
66800
  updated_at?: string;
65610
66801
  };
65611
66802
  Relationships: [{
@@ -65942,6 +67133,7 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
65942
67133
  papierformaat: string | null;
65943
67134
  print_plek_id: string;
65944
67135
  printer_id: string | null;
67136
+ printer_ontbreekt_sinds: string | null;
65945
67137
  updated_at: string;
65946
67138
  };
65947
67139
  Insert: {
@@ -65951,6 +67143,7 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
65951
67143
  papierformaat?: string | null;
65952
67144
  print_plek_id: string;
65953
67145
  printer_id?: string | null;
67146
+ printer_ontbreekt_sinds?: string | null;
65954
67147
  updated_at?: string;
65955
67148
  };
65956
67149
  Update: {
@@ -65960,6 +67153,7 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
65960
67153
  papierformaat?: string | null;
65961
67154
  print_plek_id?: string;
65962
67155
  printer_id?: string | null;
67156
+ printer_ontbreekt_sinds?: string | null;
65963
67157
  updated_at?: string;
65964
67158
  };
65965
67159
  Relationships: [{
@@ -65983,6 +67177,7 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
65983
67177
  id: string;
65984
67178
  papierformaat: string | null;
65985
67179
  printer_id: string | null;
67180
+ printer_ontbreekt_sinds: string | null;
65986
67181
  updated_at: string;
65987
67182
  werkplek: string;
65988
67183
  };
@@ -65992,6 +67187,7 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
65992
67187
  id?: string;
65993
67188
  papierformaat?: string | null;
65994
67189
  printer_id?: string | null;
67190
+ printer_ontbreekt_sinds?: string | null;
65995
67191
  updated_at?: string;
65996
67192
  werkplek: string;
65997
67193
  };
@@ -66001,6 +67197,7 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
66001
67197
  id?: string;
66002
67198
  papierformaat?: string | null;
66003
67199
  printer_id?: string | null;
67200
+ printer_ontbreekt_sinds?: string | null;
66004
67201
  updated_at?: string;
66005
67202
  werkplek?: string;
66006
67203
  };
@@ -69303,6 +70500,78 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
69303
70500
  referencedColumns: ["id"];
69304
70501
  }];
69305
70502
  };
70503
+ floriday_document_fetch_queue: {
70504
+ Row: {
70505
+ attempts: number;
70506
+ cancelled_reason: string | null;
70507
+ completed_at: string | null;
70508
+ connection_id: string;
70509
+ created_at: string;
70510
+ document_key: string;
70511
+ environment: string;
70512
+ id: string;
70513
+ kind: string;
70514
+ last_error: string | null;
70515
+ last_http_status: number | null;
70516
+ locked_at: string | null;
70517
+ locked_by: string | null;
70518
+ max_attempts: number;
70519
+ next_attempt_at: string;
70520
+ order_ref: string | null;
70521
+ params: import("../integrations/supabase/types").Json;
70522
+ status: string;
70523
+ updated_at: string;
70524
+ };
70525
+ Insert: {
70526
+ attempts?: number;
70527
+ cancelled_reason?: string | null;
70528
+ completed_at?: string | null;
70529
+ connection_id: string;
70530
+ created_at?: string;
70531
+ document_key: string;
70532
+ environment: string;
70533
+ id?: string;
70534
+ kind: string;
70535
+ last_error?: string | null;
70536
+ last_http_status?: number | null;
70537
+ locked_at?: string | null;
70538
+ locked_by?: string | null;
70539
+ max_attempts?: number;
70540
+ next_attempt_at?: string;
70541
+ order_ref?: string | null;
70542
+ params?: import("../integrations/supabase/types").Json;
70543
+ status?: string;
70544
+ updated_at?: string;
70545
+ };
70546
+ Update: {
70547
+ attempts?: number;
70548
+ cancelled_reason?: string | null;
70549
+ completed_at?: string | null;
70550
+ connection_id?: string;
70551
+ created_at?: string;
70552
+ document_key?: string;
70553
+ environment?: string;
70554
+ id?: string;
70555
+ kind?: string;
70556
+ last_error?: string | null;
70557
+ last_http_status?: number | null;
70558
+ locked_at?: string | null;
70559
+ locked_by?: string | null;
70560
+ max_attempts?: number;
70561
+ next_attempt_at?: string;
70562
+ order_ref?: string | null;
70563
+ params?: import("../integrations/supabase/types").Json;
70564
+ status?: string;
70565
+ updated_at?: string;
70566
+ };
70567
+ Relationships: [{
70568
+ foreignKeyName: "floriday_document_fetch_queue_connection_id_fkey";
70569
+ columns: ["connection_id"];
70570
+ isOneToOne: false;
70571
+ referencedRelation: "floriday_connections";
70572
+ referencedColumns: ["id"];
70573
+ }];
70574
+ };
69306
70575
  floriday_fulfillment_orders_cache: {
69307
70576
  Row: {
69308
70577
  auction_date: string | null;
@@ -69600,6 +70869,39 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
69600
70869
  referencedColumns: ["id"];
69601
70870
  }];
69602
70871
  };
70872
+ floriday_merge_log: {
70873
+ Row: {
70874
+ action: string;
70875
+ created_at: string;
70876
+ floriday_sales_order_ids: import("../integrations/supabase/types").Json;
70877
+ id: string;
70878
+ kept_order_id: string | null;
70879
+ lines: import("../integrations/supabase/types").Json;
70880
+ reason: string | null;
70881
+ removed_order_id: string | null;
70882
+ };
70883
+ Insert: {
70884
+ action: string;
70885
+ created_at?: string;
70886
+ floriday_sales_order_ids?: import("../integrations/supabase/types").Json;
70887
+ id?: string;
70888
+ kept_order_id?: string | null;
70889
+ lines?: import("../integrations/supabase/types").Json;
70890
+ reason?: string | null;
70891
+ removed_order_id?: string | null;
70892
+ };
70893
+ Update: {
70894
+ action?: string;
70895
+ created_at?: string;
70896
+ floriday_sales_order_ids?: import("../integrations/supabase/types").Json;
70897
+ id?: string;
70898
+ kept_order_id?: string | null;
70899
+ lines?: import("../integrations/supabase/types").Json;
70900
+ reason?: string | null;
70901
+ removed_order_id?: string | null;
70902
+ };
70903
+ Relationships: [];
70904
+ };
69603
70905
  floriday_network_cache: {
69604
70906
  Row: {
69605
70907
  city: string | null;
@@ -71835,6 +73137,57 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
71835
73137
  };
71836
73138
  Relationships: [];
71837
73139
  };
73140
+ itk_offerte_acceptaties: {
73141
+ Row: {
73142
+ accepted_at: string;
73143
+ akkoordgever_email: string;
73144
+ akkoordgever_naam: string;
73145
+ akkoordverklaring: string;
73146
+ id: string;
73147
+ inhoud_hash: string;
73148
+ ip_address: unknown;
73149
+ offerte_id: string;
73150
+ offerte_number: string;
73151
+ offerte_snapshot: import("../integrations/supabase/types").Json;
73152
+ user_agent: string | null;
73153
+ versie: string;
73154
+ };
73155
+ Insert: {
73156
+ accepted_at?: string;
73157
+ akkoordgever_email: string;
73158
+ akkoordgever_naam: string;
73159
+ akkoordverklaring: string;
73160
+ id?: string;
73161
+ inhoud_hash: string;
73162
+ ip_address?: unknown;
73163
+ offerte_id: string;
73164
+ offerte_number: string;
73165
+ offerte_snapshot: import("../integrations/supabase/types").Json;
73166
+ user_agent?: string | null;
73167
+ versie: string;
73168
+ };
73169
+ Update: {
73170
+ accepted_at?: string;
73171
+ akkoordgever_email?: string;
73172
+ akkoordgever_naam?: string;
73173
+ akkoordverklaring?: string;
73174
+ id?: string;
73175
+ inhoud_hash?: string;
73176
+ ip_address?: unknown;
73177
+ offerte_id?: string;
73178
+ offerte_number?: string;
73179
+ offerte_snapshot?: import("../integrations/supabase/types").Json;
73180
+ user_agent?: string | null;
73181
+ versie?: string;
73182
+ };
73183
+ Relationships: [{
73184
+ foreignKeyName: "itk_offerte_acceptaties_offerte_id_fkey";
73185
+ columns: ["offerte_id"];
73186
+ isOneToOne: true;
73187
+ referencedRelation: "itk_offertes";
73188
+ referencedColumns: ["id"];
73189
+ }];
73190
+ };
71838
73191
  itk_offerte_events: {
71839
73192
  Row: {
71840
73193
  created_at: string;
@@ -72048,6 +73401,7 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
72048
73401
  itk_offertes: {
72049
73402
  Row: {
72050
73403
  aandachtspunten: string | null;
73404
+ acceptance_id: string | null;
72051
73405
  ai_generated: boolean;
72052
73406
  approved_at: string | null;
72053
73407
  binnen_mandaat: boolean;
@@ -72066,6 +73420,11 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
72066
73420
  onderwerp: string | null;
72067
73421
  rejected_at: string | null;
72068
73422
  sent_at: string | null;
73423
+ sign_token: string;
73424
+ signature_data: string | null;
73425
+ signed_at: string | null;
73426
+ signer_email: string | null;
73427
+ signer_name: string | null;
72069
73428
  source_number: string | null;
72070
73429
  source_ref: string | null;
72071
73430
  source_type: string;
@@ -72080,11 +73439,13 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
72080
73439
  viewed_at: string | null;
72081
73440
  volgnummer: number | null;
72082
73441
  voorwaarden: string | null;
73442
+ werkbon_concept: import("../integrations/supabase/types").Json | null;
72083
73443
  werkbon_id: string | null;
72084
73444
  work_location_id: string | null;
72085
73445
  };
72086
73446
  Insert: {
72087
73447
  aandachtspunten?: string | null;
73448
+ acceptance_id?: string | null;
72088
73449
  ai_generated?: boolean;
72089
73450
  approved_at?: string | null;
72090
73451
  binnen_mandaat?: boolean;
@@ -72103,6 +73464,11 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
72103
73464
  onderwerp?: string | null;
72104
73465
  rejected_at?: string | null;
72105
73466
  sent_at?: string | null;
73467
+ sign_token?: string;
73468
+ signature_data?: string | null;
73469
+ signed_at?: string | null;
73470
+ signer_email?: string | null;
73471
+ signer_name?: string | null;
72106
73472
  source_number?: string | null;
72107
73473
  source_ref?: string | null;
72108
73474
  source_type?: string;
@@ -72117,11 +73483,13 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
72117
73483
  viewed_at?: string | null;
72118
73484
  volgnummer?: number | null;
72119
73485
  voorwaarden?: string | null;
73486
+ werkbon_concept?: import("../integrations/supabase/types").Json | null;
72120
73487
  werkbon_id?: string | null;
72121
73488
  work_location_id?: string | null;
72122
73489
  };
72123
73490
  Update: {
72124
73491
  aandachtspunten?: string | null;
73492
+ acceptance_id?: string | null;
72125
73493
  ai_generated?: boolean;
72126
73494
  approved_at?: string | null;
72127
73495
  binnen_mandaat?: boolean;
@@ -72140,6 +73508,11 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
72140
73508
  onderwerp?: string | null;
72141
73509
  rejected_at?: string | null;
72142
73510
  sent_at?: string | null;
73511
+ sign_token?: string;
73512
+ signature_data?: string | null;
73513
+ signed_at?: string | null;
73514
+ signer_email?: string | null;
73515
+ signer_name?: string | null;
72143
73516
  source_number?: string | null;
72144
73517
  source_ref?: string | null;
72145
73518
  source_type?: string;
@@ -72154,10 +73527,17 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
72154
73527
  viewed_at?: string | null;
72155
73528
  volgnummer?: number | null;
72156
73529
  voorwaarden?: string | null;
73530
+ werkbon_concept?: import("../integrations/supabase/types").Json | null;
72157
73531
  werkbon_id?: string | null;
72158
73532
  work_location_id?: string | null;
72159
73533
  };
72160
73534
  Relationships: [{
73535
+ foreignKeyName: "itk_offertes_acceptance_id_fkey";
73536
+ columns: ["acceptance_id"];
73537
+ isOneToOne: false;
73538
+ referencedRelation: "itk_offerte_acceptaties";
73539
+ referencedColumns: ["id"];
73540
+ }, {
72161
73541
  foreignKeyName: "itk_offertes_contact_id_fkey";
72162
73542
  columns: ["contact_id"];
72163
73543
  isOneToOne: false;
@@ -73596,6 +74976,60 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
73596
74976
  };
73597
74977
  Relationships: [];
73598
74978
  };
74979
+ logistics_order_merge_lines: {
74980
+ Row: {
74981
+ from_order_id: string;
74982
+ from_order_number: string | null;
74983
+ group_key: string;
74984
+ id: string;
74985
+ merged_at: string;
74986
+ order_item_id: string;
74987
+ ordered_at: string | null;
74988
+ product_id: string | null;
74989
+ product_name: string | null;
74990
+ quantity: number | null;
74991
+ reason: string;
74992
+ sales_order_id: string | null;
74993
+ source_line_key: string | null;
74994
+ to_order_id: string;
74995
+ to_order_number: string | null;
74996
+ };
74997
+ Insert: {
74998
+ from_order_id: string;
74999
+ from_order_number?: string | null;
75000
+ group_key: string;
75001
+ id?: string;
75002
+ merged_at?: string;
75003
+ order_item_id: string;
75004
+ ordered_at?: string | null;
75005
+ product_id?: string | null;
75006
+ product_name?: string | null;
75007
+ quantity?: number | null;
75008
+ reason: string;
75009
+ sales_order_id?: string | null;
75010
+ source_line_key?: string | null;
75011
+ to_order_id: string;
75012
+ to_order_number?: string | null;
75013
+ };
75014
+ Update: {
75015
+ from_order_id?: string;
75016
+ from_order_number?: string | null;
75017
+ group_key?: string;
75018
+ id?: string;
75019
+ merged_at?: string;
75020
+ order_item_id?: string;
75021
+ ordered_at?: string | null;
75022
+ product_id?: string | null;
75023
+ product_name?: string | null;
75024
+ quantity?: number | null;
75025
+ reason?: string;
75026
+ sales_order_id?: string | null;
75027
+ source_line_key?: string | null;
75028
+ to_order_id?: string;
75029
+ to_order_number?: string | null;
75030
+ };
75031
+ Relationships: [];
75032
+ };
73599
75033
  logistics_order_merges: {
73600
75034
  Row: {
73601
75035
  group_key: string;
@@ -77236,6 +78670,9 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
77236
78670
  product_id: string | null;
77237
78671
  product_name: string;
77238
78672
  quantity: number;
78673
+ quarantine_reason: string | null;
78674
+ quarantined_at: string | null;
78675
+ quarantined_into_order_id: string | null;
77239
78676
  source_line_key: string | null;
77240
78677
  unit: string;
77241
78678
  unit_price: number | null;
@@ -77252,6 +78689,9 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
77252
78689
  product_id?: string | null;
77253
78690
  product_name: string;
77254
78691
  quantity?: number;
78692
+ quarantine_reason?: string | null;
78693
+ quarantined_at?: string | null;
78694
+ quarantined_into_order_id?: string | null;
77255
78695
  source_line_key?: string | null;
77256
78696
  unit?: string;
77257
78697
  unit_price?: number | null;
@@ -77268,6 +78708,9 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
77268
78708
  product_id?: string | null;
77269
78709
  product_name?: string;
77270
78710
  quantity?: number;
78711
+ quarantine_reason?: string | null;
78712
+ quarantined_at?: string | null;
78713
+ quarantined_into_order_id?: string | null;
77271
78714
  source_line_key?: string | null;
77272
78715
  unit?: string;
77273
78716
  unit_price?: number | null;
@@ -78699,6 +80142,57 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
78699
80142
  };
78700
80143
  Relationships: [];
78701
80144
  };
80145
+ planning_confirmation_log: {
80146
+ Row: {
80147
+ created_at: string;
80148
+ end_at: string;
80149
+ id: string;
80150
+ kind: string;
80151
+ outbox_id: string | null;
80152
+ planning_item_id: string;
80153
+ reason: string | null;
80154
+ recipient: string | null;
80155
+ start_at: string;
80156
+ status: string;
80157
+ };
80158
+ Insert: {
80159
+ created_at?: string;
80160
+ end_at: string;
80161
+ id?: string;
80162
+ kind?: string;
80163
+ outbox_id?: string | null;
80164
+ planning_item_id: string;
80165
+ reason?: string | null;
80166
+ recipient?: string | null;
80167
+ start_at: string;
80168
+ status: string;
80169
+ };
80170
+ Update: {
80171
+ created_at?: string;
80172
+ end_at?: string;
80173
+ id?: string;
80174
+ kind?: string;
80175
+ outbox_id?: string | null;
80176
+ planning_item_id?: string;
80177
+ reason?: string | null;
80178
+ recipient?: string | null;
80179
+ start_at?: string;
80180
+ status?: string;
80181
+ };
80182
+ Relationships: [{
80183
+ foreignKeyName: "planning_confirmation_log_planning_item_id_fkey";
80184
+ columns: ["planning_item_id"];
80185
+ isOneToOne: false;
80186
+ referencedRelation: "planning_items";
80187
+ referencedColumns: ["id"];
80188
+ }, {
80189
+ foreignKeyName: "planning_confirmation_log_planning_item_id_fkey";
80190
+ columns: ["planning_item_id"];
80191
+ isOneToOne: false;
80192
+ referencedRelation: "planning_overview";
80193
+ referencedColumns: ["id"];
80194
+ }];
80195
+ };
78702
80196
  planning_item_assistants: {
78703
80197
  Row: {
78704
80198
  created_at: string;
@@ -78783,6 +80277,69 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
78783
80277
  referencedColumns: ["id"];
78784
80278
  }];
78785
80279
  };
80280
+ planning_mail_settings: {
80281
+ Row: {
80282
+ body_template: string;
80283
+ cc: string[];
80284
+ connection_id: string | null;
80285
+ created_at: string;
80286
+ email_purpose: string | null;
80287
+ enabled: boolean;
80288
+ id: boolean;
80289
+ reply_to: string | null;
80290
+ reschedule_body_template: string;
80291
+ reschedule_subject_template: string;
80292
+ subject_template: string;
80293
+ timezone: string;
80294
+ updated_at: string;
80295
+ updated_by: string | null;
80296
+ };
80297
+ Insert: {
80298
+ body_template?: string;
80299
+ cc?: string[];
80300
+ connection_id?: string | null;
80301
+ created_at?: string;
80302
+ email_purpose?: string | null;
80303
+ enabled?: boolean;
80304
+ id?: boolean;
80305
+ reply_to?: string | null;
80306
+ reschedule_body_template?: string;
80307
+ reschedule_subject_template?: string;
80308
+ subject_template?: string;
80309
+ timezone?: string;
80310
+ updated_at?: string;
80311
+ updated_by?: string | null;
80312
+ };
80313
+ Update: {
80314
+ body_template?: string;
80315
+ cc?: string[];
80316
+ connection_id?: string | null;
80317
+ created_at?: string;
80318
+ email_purpose?: string | null;
80319
+ enabled?: boolean;
80320
+ id?: boolean;
80321
+ reply_to?: string | null;
80322
+ reschedule_body_template?: string;
80323
+ reschedule_subject_template?: string;
80324
+ subject_template?: string;
80325
+ timezone?: string;
80326
+ updated_at?: string;
80327
+ updated_by?: string | null;
80328
+ };
80329
+ Relationships: [{
80330
+ foreignKeyName: "planning_mail_settings_connection_id_fkey";
80331
+ columns: ["connection_id"];
80332
+ isOneToOne: false;
80333
+ referencedRelation: "email_auth_connections";
80334
+ referencedColumns: ["id"];
80335
+ }, {
80336
+ foreignKeyName: "planning_mail_settings_connection_id_fkey";
80337
+ columns: ["connection_id"];
80338
+ isOneToOne: false;
80339
+ referencedRelation: "email_auth_connections_safe";
80340
+ referencedColumns: ["id"];
80341
+ }];
80342
+ };
78786
80343
  planning_monteur_day_locations: {
78787
80344
  Row: {
78788
80345
  created_at: string;
@@ -79170,6 +80727,27 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
79170
80727
  };
79171
80728
  Relationships: [];
79172
80729
  };
80730
+ print_genegeerde_computers: {
80731
+ Row: {
80732
+ computer_naam: string;
80733
+ genegeerd_door: string | null;
80734
+ genegeerd_op: string;
80735
+ id: string;
80736
+ };
80737
+ Insert: {
80738
+ computer_naam: string;
80739
+ genegeerd_door?: string | null;
80740
+ genegeerd_op?: string;
80741
+ id?: string;
80742
+ };
80743
+ Update: {
80744
+ computer_naam?: string;
80745
+ genegeerd_door?: string | null;
80746
+ genegeerd_op?: string;
80747
+ id?: string;
80748
+ };
80749
+ Relationships: [];
80750
+ };
79173
80751
  print_job_logs: {
79174
80752
  Row: {
79175
80753
  created_at: string;
@@ -79440,6 +81018,39 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
79440
81018
  referencedColumns: ["id"];
79441
81019
  }];
79442
81020
  };
81021
+ print_plek_printers: {
81022
+ Row: {
81023
+ id: string;
81024
+ print_plek_id: string;
81025
+ printer_id: string;
81026
+ toegevoegd_op: string;
81027
+ };
81028
+ Insert: {
81029
+ id?: string;
81030
+ print_plek_id: string;
81031
+ printer_id: string;
81032
+ toegevoegd_op?: string;
81033
+ };
81034
+ Update: {
81035
+ id?: string;
81036
+ print_plek_id?: string;
81037
+ printer_id?: string;
81038
+ toegevoegd_op?: string;
81039
+ };
81040
+ Relationships: [{
81041
+ foreignKeyName: "print_plek_printers_print_plek_id_fkey";
81042
+ columns: ["print_plek_id"];
81043
+ isOneToOne: false;
81044
+ referencedRelation: "print_plekken";
81045
+ referencedColumns: ["id"];
81046
+ }, {
81047
+ foreignKeyName: "print_plek_printers_printer_id_fkey";
81048
+ columns: ["printer_id"];
81049
+ isOneToOne: false;
81050
+ referencedRelation: "printers";
81051
+ referencedColumns: ["id"];
81052
+ }];
81053
+ };
79443
81054
  print_plekken: {
79444
81055
  Row: {
79445
81056
  actief: boolean;
@@ -79655,7 +81266,8 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
79655
81266
  created_at: string;
79656
81267
  id: string;
79657
81268
  layout_id: string;
79658
- printer_id: string;
81269
+ printer_id: string | null;
81270
+ printer_ontbreekt_sinds: string | null;
79659
81271
  prioriteit: number;
79660
81272
  updated_at: string;
79661
81273
  };
@@ -79663,7 +81275,8 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
79663
81275
  created_at?: string;
79664
81276
  id?: string;
79665
81277
  layout_id: string;
79666
- printer_id: string;
81278
+ printer_id?: string | null;
81279
+ printer_ontbreekt_sinds?: string | null;
79667
81280
  prioriteit?: number;
79668
81281
  updated_at?: string;
79669
81282
  };
@@ -79671,7 +81284,8 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
79671
81284
  created_at?: string;
79672
81285
  id?: string;
79673
81286
  layout_id?: string;
79674
- printer_id?: string;
81287
+ printer_id?: string | null;
81288
+ printer_ontbreekt_sinds?: string | null;
79675
81289
  prioriteit?: number;
79676
81290
  updated_at?: string;
79677
81291
  };
@@ -84159,6 +85773,30 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
84159
85773
  };
84160
85774
  Relationships: [];
84161
85775
  };
85776
+ uren_pagina_toegang: {
85777
+ Row: {
85778
+ created_at: string;
85779
+ id: string;
85780
+ user_id: string;
85781
+ };
85782
+ Insert: {
85783
+ created_at?: string;
85784
+ id?: string;
85785
+ user_id: string;
85786
+ };
85787
+ Update: {
85788
+ created_at?: string;
85789
+ id?: string;
85790
+ user_id?: string;
85791
+ };
85792
+ Relationships: [{
85793
+ foreignKeyName: "uren_pagina_toegang_user_id_fkey";
85794
+ columns: ["user_id"];
85795
+ isOneToOne: true;
85796
+ referencedRelation: "profiles";
85797
+ referencedColumns: ["id"];
85798
+ }];
85799
+ };
84162
85800
  uren_settings: {
84163
85801
  Row: {
84164
85802
  break_minutes: number;
@@ -85563,12 +87201,14 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
85563
87201
  created_at: string;
85564
87202
  default_quantity: number;
85565
87203
  description: string | null;
85566
- duration_minutes: number | null;
87204
+ duration_minutes: number;
85567
87205
  id: string;
87206
+ labor_minutes: number;
85568
87207
  mandaat_type: string | null;
85569
87208
  name: string;
85570
87209
  price_mode: string;
85571
87210
  sort_order: number;
87211
+ travel_minutes: number;
85572
87212
  unit_price_cents: number;
85573
87213
  updated_at: string;
85574
87214
  };
@@ -85580,12 +87220,14 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
85580
87220
  created_at?: string;
85581
87221
  default_quantity?: number;
85582
87222
  description?: string | null;
85583
- duration_minutes?: number | null;
87223
+ duration_minutes?: number;
85584
87224
  id?: string;
87225
+ labor_minutes?: number;
85585
87226
  mandaat_type?: string | null;
85586
87227
  name: string;
85587
87228
  price_mode?: string;
85588
87229
  sort_order?: number;
87230
+ travel_minutes?: number;
85589
87231
  unit_price_cents?: number;
85590
87232
  updated_at?: string;
85591
87233
  };
@@ -85597,12 +87239,14 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
85597
87239
  created_at?: string;
85598
87240
  default_quantity?: number;
85599
87241
  description?: string | null;
85600
- duration_minutes?: number | null;
87242
+ duration_minutes?: number;
85601
87243
  id?: string;
87244
+ labor_minutes?: number;
85602
87245
  mandaat_type?: string | null;
85603
87246
  name?: string;
85604
87247
  price_mode?: string;
85605
87248
  sort_order?: number;
87249
+ travel_minutes?: number;
85606
87250
  unit_price_cents?: number;
85607
87251
  updated_at?: string;
85608
87252
  };
@@ -87157,6 +88801,12 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
87157
88801
  };
87158
88802
  Returns: undefined;
87159
88803
  };
88804
+ _quote_release_work_order_intern: {
88805
+ Args: {
88806
+ _offerte_id: string;
88807
+ };
88808
+ Returns: import("../integrations/supabase/types").Json;
88809
+ };
87160
88810
  _wo_is_planner: {
87161
88811
  Args: never;
87162
88812
  Returns: boolean;
@@ -92028,6 +93678,12 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
92028
93678
  };
92029
93679
  Returns: import("../integrations/supabase/types").Json;
92030
93680
  };
93681
+ pick_verify_rows: {
93682
+ Args: {
93683
+ _rows: import("../integrations/supabase/types").Json;
93684
+ };
93685
+ Returns: import("../integrations/supabase/types").Json;
93686
+ };
92031
93687
  pickstation_get_orders_raw: {
92032
93688
  Args: never;
92033
93689
  Returns: import("../integrations/supabase/types").Json;
@@ -92090,6 +93746,12 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
92090
93746
  };
92091
93747
  Returns: undefined;
92092
93748
  };
93749
+ planning_html_escape: {
93750
+ Args: {
93751
+ t: string;
93752
+ };
93753
+ Returns: string;
93754
+ };
92093
93755
  planning_list: {
92094
93756
  Args: {
92095
93757
  _from: string;
@@ -92144,6 +93806,12 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
92144
93806
  id: string;
92145
93807
  }[];
92146
93808
  };
93809
+ planning_urlencode: {
93810
+ Args: {
93811
+ t: string;
93812
+ };
93813
+ Returns: string;
93814
+ };
92147
93815
  print_preview_toestaan: {
92148
93816
  Args: {
92149
93817
  _max?: number;
@@ -92162,6 +93830,35 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
92162
93830
  };
92163
93831
  Returns: undefined;
92164
93832
  };
93833
+ printer_gebruik: {
93834
+ Args: {
93835
+ _printer: string;
93836
+ };
93837
+ Returns: import("../integrations/supabase/types").Json;
93838
+ };
93839
+ printer_routering: {
93840
+ Args: {
93841
+ _documenttype: string;
93842
+ _layout_id?: string;
93843
+ _papierformaat?: string;
93844
+ _print_plek_id?: string;
93845
+ _werkplek?: string;
93846
+ };
93847
+ Returns: import("../integrations/supabase/types").Json;
93848
+ };
93849
+ printplek_printer: {
93850
+ Args: {
93851
+ _documenttype: string;
93852
+ _plek: string;
93853
+ };
93854
+ Returns: string;
93855
+ };
93856
+ printplek_verwijder_impact: {
93857
+ Args: {
93858
+ _id: string;
93859
+ };
93860
+ Returns: import("../integrations/supabase/types").Json;
93861
+ };
92165
93862
  process_logistics_event: {
92166
93863
  Args: {
92167
93864
  p_event_id: string;
@@ -92208,6 +93905,12 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
92208
93905
  };
92209
93906
  Returns: import("../integrations/supabase/types").Json;
92210
93907
  };
93908
+ quote_create_from_scratch: {
93909
+ Args: {
93910
+ _payload: import("../integrations/supabase/types").Json;
93911
+ };
93912
+ Returns: import("../integrations/supabase/types").Json;
93913
+ };
92211
93914
  quote_create_from_source: {
92212
93915
  Args: {
92213
93916
  _payload?: import("../integrations/supabase/types").Json;
@@ -92223,6 +93926,13 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
92223
93926
  };
92224
93927
  Returns: boolean;
92225
93928
  };
93929
+ quote_fill_from_form: {
93930
+ Args: {
93931
+ _offerte_id: string;
93932
+ _payload: import("../integrations/supabase/types").Json;
93933
+ };
93934
+ Returns: import("../integrations/supabase/types").Json;
93935
+ };
92226
93936
  quote_get_billable_lines: {
92227
93937
  Args: {
92228
93938
  _quotation_id: string;
@@ -92252,12 +93962,50 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
92252
93962
  };
92253
93963
  Returns: import("../integrations/supabase/types").Json;
92254
93964
  };
93965
+ quote_public_accept: {
93966
+ Args: {
93967
+ _akkoord: boolean;
93968
+ _email: string;
93969
+ _ip_address?: string;
93970
+ _naam: string;
93971
+ _token: string;
93972
+ _user_agent?: string;
93973
+ };
93974
+ Returns: import("../integrations/supabase/types").Json;
93975
+ };
93976
+ quote_public_get: {
93977
+ Args: {
93978
+ _token: string;
93979
+ };
93980
+ Returns: import("../integrations/supabase/types").Json;
93981
+ };
93982
+ quote_public_sign: {
93983
+ Args: {
93984
+ _handtekening: string;
93985
+ _naam: string;
93986
+ _token: string;
93987
+ };
93988
+ Returns: import("../integrations/supabase/types").Json;
93989
+ };
92255
93990
  quote_queue_follow_up: {
92256
93991
  Args: {
92257
93992
  _offerte_id: string;
92258
93993
  };
92259
93994
  Returns: string;
92260
93995
  };
93996
+ quote_release_work_order: {
93997
+ Args: {
93998
+ _offerte_id: string;
93999
+ };
94000
+ Returns: import("../integrations/supabase/types").Json;
94001
+ };
94002
+ quote_sync_work_order: {
94003
+ Args: {
94004
+ _monteur_instructies?: string;
94005
+ _offerte_id: string;
94006
+ };
94007
+ Returns: boolean;
94008
+ };
92261
94009
  recompute_all_reserved_stock: {
92262
94010
  Args: never;
92263
94011
  Returns: undefined;
@@ -93209,6 +94957,10 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
93209
94957
  };
93210
94958
  Returns: number;
93211
94959
  };
94960
+ uren_heeft_pagina_toegang: {
94961
+ Args: never;
94962
+ Returns: boolean;
94963
+ };
93212
94964
  uren_is_beheerder: {
93213
94965
  Args: never;
93214
94966
  Returns: boolean;
@@ -93292,6 +95044,13 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
93292
95044
  Args: never;
93293
95045
  Returns: string;
93294
95046
  };
95047
+ uren_pagina_toegang_instellen: {
95048
+ Args: {
95049
+ _toegang: boolean;
95050
+ _user_id: string;
95051
+ };
95052
+ Returns: undefined;
95053
+ };
93295
95054
  uren_planning_dagagenda: {
93296
95055
  Args: {
93297
95056
  _tot: string;
@@ -93536,6 +95295,19 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
93536
95295
  user_id: string;
93537
95296
  }[];
93538
95297
  };
95298
+ vervang_printer: {
95299
+ Args: {
95300
+ _nieuw: string;
95301
+ _oud: string;
95302
+ };
95303
+ Returns: import("../integrations/supabase/types").Json;
95304
+ };
95305
+ verwijder_printplek: {
95306
+ Args: {
95307
+ _id: string;
95308
+ };
95309
+ Returns: import("../integrations/supabase/types").Json;
95310
+ };
93539
95311
  voorraad_cleanup_old_rows: {
93540
95312
  Args: never;
93541
95313
  Returns: import("../integrations/supabase/types").Json;
@@ -93546,6 +95318,16 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
93546
95318
  };
93547
95319
  Returns: number;
93548
95320
  };
95321
+ werkbon_pakket_tijden: {
95322
+ Args: {
95323
+ _werkbon_id: string;
95324
+ };
95325
+ Returns: {
95326
+ labor_minutes: number;
95327
+ total_minutes: number;
95328
+ travel_minutes: number;
95329
+ }[];
95330
+ };
93549
95331
  werkbon_totalen: {
93550
95332
  Args: {
93551
95333
  _werkbon_id: string;
@@ -96817,6 +98599,7 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
96817
98599
  formaat_code: string;
96818
98600
  id: string;
96819
98601
  printer_id: string | null;
98602
+ printer_ontbreekt_sinds: string | null;
96820
98603
  updated_at: string;
96821
98604
  };
96822
98605
  Insert: {
@@ -96825,6 +98608,7 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
96825
98608
  formaat_code: string;
96826
98609
  id?: string;
96827
98610
  printer_id?: string | null;
98611
+ printer_ontbreekt_sinds?: string | null;
96828
98612
  updated_at?: string;
96829
98613
  };
96830
98614
  Update: {
@@ -96833,6 +98617,7 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
96833
98617
  formaat_code?: string;
96834
98618
  id?: string;
96835
98619
  printer_id?: string | null;
98620
+ printer_ontbreekt_sinds?: string | null;
96836
98621
  updated_at?: string;
96837
98622
  };
96838
98623
  Relationships: [{
@@ -97169,6 +98954,7 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
97169
98954
  papierformaat: string | null;
97170
98955
  print_plek_id: string;
97171
98956
  printer_id: string | null;
98957
+ printer_ontbreekt_sinds: string | null;
97172
98958
  updated_at: string;
97173
98959
  };
97174
98960
  Insert: {
@@ -97178,6 +98964,7 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
97178
98964
  papierformaat?: string | null;
97179
98965
  print_plek_id: string;
97180
98966
  printer_id?: string | null;
98967
+ printer_ontbreekt_sinds?: string | null;
97181
98968
  updated_at?: string;
97182
98969
  };
97183
98970
  Update: {
@@ -97187,6 +98974,7 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
97187
98974
  papierformaat?: string | null;
97188
98975
  print_plek_id?: string;
97189
98976
  printer_id?: string | null;
98977
+ printer_ontbreekt_sinds?: string | null;
97190
98978
  updated_at?: string;
97191
98979
  };
97192
98980
  Relationships: [{
@@ -97210,6 +98998,7 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
97210
98998
  id: string;
97211
98999
  papierformaat: string | null;
97212
99000
  printer_id: string | null;
99001
+ printer_ontbreekt_sinds: string | null;
97213
99002
  updated_at: string;
97214
99003
  werkplek: string;
97215
99004
  };
@@ -97219,6 +99008,7 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
97219
99008
  id?: string;
97220
99009
  papierformaat?: string | null;
97221
99010
  printer_id?: string | null;
99011
+ printer_ontbreekt_sinds?: string | null;
97222
99012
  updated_at?: string;
97223
99013
  werkplek: string;
97224
99014
  };
@@ -97228,6 +99018,7 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
97228
99018
  id?: string;
97229
99019
  papierformaat?: string | null;
97230
99020
  printer_id?: string | null;
99021
+ printer_ontbreekt_sinds?: string | null;
97231
99022
  updated_at?: string;
97232
99023
  werkplek?: string;
97233
99024
  };
@@ -100530,6 +102321,78 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
100530
102321
  referencedColumns: ["id"];
100531
102322
  }];
100532
102323
  };
102324
+ floriday_document_fetch_queue: {
102325
+ Row: {
102326
+ attempts: number;
102327
+ cancelled_reason: string | null;
102328
+ completed_at: string | null;
102329
+ connection_id: string;
102330
+ created_at: string;
102331
+ document_key: string;
102332
+ environment: string;
102333
+ id: string;
102334
+ kind: string;
102335
+ last_error: string | null;
102336
+ last_http_status: number | null;
102337
+ locked_at: string | null;
102338
+ locked_by: string | null;
102339
+ max_attempts: number;
102340
+ next_attempt_at: string;
102341
+ order_ref: string | null;
102342
+ params: import("../integrations/supabase/types").Json;
102343
+ status: string;
102344
+ updated_at: string;
102345
+ };
102346
+ Insert: {
102347
+ attempts?: number;
102348
+ cancelled_reason?: string | null;
102349
+ completed_at?: string | null;
102350
+ connection_id: string;
102351
+ created_at?: string;
102352
+ document_key: string;
102353
+ environment: string;
102354
+ id?: string;
102355
+ kind: string;
102356
+ last_error?: string | null;
102357
+ last_http_status?: number | null;
102358
+ locked_at?: string | null;
102359
+ locked_by?: string | null;
102360
+ max_attempts?: number;
102361
+ next_attempt_at?: string;
102362
+ order_ref?: string | null;
102363
+ params?: import("../integrations/supabase/types").Json;
102364
+ status?: string;
102365
+ updated_at?: string;
102366
+ };
102367
+ Update: {
102368
+ attempts?: number;
102369
+ cancelled_reason?: string | null;
102370
+ completed_at?: string | null;
102371
+ connection_id?: string;
102372
+ created_at?: string;
102373
+ document_key?: string;
102374
+ environment?: string;
102375
+ id?: string;
102376
+ kind?: string;
102377
+ last_error?: string | null;
102378
+ last_http_status?: number | null;
102379
+ locked_at?: string | null;
102380
+ locked_by?: string | null;
102381
+ max_attempts?: number;
102382
+ next_attempt_at?: string;
102383
+ order_ref?: string | null;
102384
+ params?: import("../integrations/supabase/types").Json;
102385
+ status?: string;
102386
+ updated_at?: string;
102387
+ };
102388
+ Relationships: [{
102389
+ foreignKeyName: "floriday_document_fetch_queue_connection_id_fkey";
102390
+ columns: ["connection_id"];
102391
+ isOneToOne: false;
102392
+ referencedRelation: "floriday_connections";
102393
+ referencedColumns: ["id"];
102394
+ }];
102395
+ };
100533
102396
  floriday_fulfillment_orders_cache: {
100534
102397
  Row: {
100535
102398
  auction_date: string | null;
@@ -100827,6 +102690,39 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
100827
102690
  referencedColumns: ["id"];
100828
102691
  }];
100829
102692
  };
102693
+ floriday_merge_log: {
102694
+ Row: {
102695
+ action: string;
102696
+ created_at: string;
102697
+ floriday_sales_order_ids: import("../integrations/supabase/types").Json;
102698
+ id: string;
102699
+ kept_order_id: string | null;
102700
+ lines: import("../integrations/supabase/types").Json;
102701
+ reason: string | null;
102702
+ removed_order_id: string | null;
102703
+ };
102704
+ Insert: {
102705
+ action: string;
102706
+ created_at?: string;
102707
+ floriday_sales_order_ids?: import("../integrations/supabase/types").Json;
102708
+ id?: string;
102709
+ kept_order_id?: string | null;
102710
+ lines?: import("../integrations/supabase/types").Json;
102711
+ reason?: string | null;
102712
+ removed_order_id?: string | null;
102713
+ };
102714
+ Update: {
102715
+ action?: string;
102716
+ created_at?: string;
102717
+ floriday_sales_order_ids?: import("../integrations/supabase/types").Json;
102718
+ id?: string;
102719
+ kept_order_id?: string | null;
102720
+ lines?: import("../integrations/supabase/types").Json;
102721
+ reason?: string | null;
102722
+ removed_order_id?: string | null;
102723
+ };
102724
+ Relationships: [];
102725
+ };
100830
102726
  floriday_network_cache: {
100831
102727
  Row: {
100832
102728
  city: string | null;
@@ -103062,6 +104958,57 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
103062
104958
  };
103063
104959
  Relationships: [];
103064
104960
  };
104961
+ itk_offerte_acceptaties: {
104962
+ Row: {
104963
+ accepted_at: string;
104964
+ akkoordgever_email: string;
104965
+ akkoordgever_naam: string;
104966
+ akkoordverklaring: string;
104967
+ id: string;
104968
+ inhoud_hash: string;
104969
+ ip_address: unknown;
104970
+ offerte_id: string;
104971
+ offerte_number: string;
104972
+ offerte_snapshot: import("../integrations/supabase/types").Json;
104973
+ user_agent: string | null;
104974
+ versie: string;
104975
+ };
104976
+ Insert: {
104977
+ accepted_at?: string;
104978
+ akkoordgever_email: string;
104979
+ akkoordgever_naam: string;
104980
+ akkoordverklaring: string;
104981
+ id?: string;
104982
+ inhoud_hash: string;
104983
+ ip_address?: unknown;
104984
+ offerte_id: string;
104985
+ offerte_number: string;
104986
+ offerte_snapshot: import("../integrations/supabase/types").Json;
104987
+ user_agent?: string | null;
104988
+ versie: string;
104989
+ };
104990
+ Update: {
104991
+ accepted_at?: string;
104992
+ akkoordgever_email?: string;
104993
+ akkoordgever_naam?: string;
104994
+ akkoordverklaring?: string;
104995
+ id?: string;
104996
+ inhoud_hash?: string;
104997
+ ip_address?: unknown;
104998
+ offerte_id?: string;
104999
+ offerte_number?: string;
105000
+ offerte_snapshot?: import("../integrations/supabase/types").Json;
105001
+ user_agent?: string | null;
105002
+ versie?: string;
105003
+ };
105004
+ Relationships: [{
105005
+ foreignKeyName: "itk_offerte_acceptaties_offerte_id_fkey";
105006
+ columns: ["offerte_id"];
105007
+ isOneToOne: true;
105008
+ referencedRelation: "itk_offertes";
105009
+ referencedColumns: ["id"];
105010
+ }];
105011
+ };
103065
105012
  itk_offerte_events: {
103066
105013
  Row: {
103067
105014
  created_at: string;
@@ -103275,6 +105222,7 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
103275
105222
  itk_offertes: {
103276
105223
  Row: {
103277
105224
  aandachtspunten: string | null;
105225
+ acceptance_id: string | null;
103278
105226
  ai_generated: boolean;
103279
105227
  approved_at: string | null;
103280
105228
  binnen_mandaat: boolean;
@@ -103293,6 +105241,11 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
103293
105241
  onderwerp: string | null;
103294
105242
  rejected_at: string | null;
103295
105243
  sent_at: string | null;
105244
+ sign_token: string;
105245
+ signature_data: string | null;
105246
+ signed_at: string | null;
105247
+ signer_email: string | null;
105248
+ signer_name: string | null;
103296
105249
  source_number: string | null;
103297
105250
  source_ref: string | null;
103298
105251
  source_type: string;
@@ -103307,11 +105260,13 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
103307
105260
  viewed_at: string | null;
103308
105261
  volgnummer: number | null;
103309
105262
  voorwaarden: string | null;
105263
+ werkbon_concept: import("../integrations/supabase/types").Json | null;
103310
105264
  werkbon_id: string | null;
103311
105265
  work_location_id: string | null;
103312
105266
  };
103313
105267
  Insert: {
103314
105268
  aandachtspunten?: string | null;
105269
+ acceptance_id?: string | null;
103315
105270
  ai_generated?: boolean;
103316
105271
  approved_at?: string | null;
103317
105272
  binnen_mandaat?: boolean;
@@ -103330,6 +105285,11 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
103330
105285
  onderwerp?: string | null;
103331
105286
  rejected_at?: string | null;
103332
105287
  sent_at?: string | null;
105288
+ sign_token?: string;
105289
+ signature_data?: string | null;
105290
+ signed_at?: string | null;
105291
+ signer_email?: string | null;
105292
+ signer_name?: string | null;
103333
105293
  source_number?: string | null;
103334
105294
  source_ref?: string | null;
103335
105295
  source_type?: string;
@@ -103344,11 +105304,13 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
103344
105304
  viewed_at?: string | null;
103345
105305
  volgnummer?: number | null;
103346
105306
  voorwaarden?: string | null;
105307
+ werkbon_concept?: import("../integrations/supabase/types").Json | null;
103347
105308
  werkbon_id?: string | null;
103348
105309
  work_location_id?: string | null;
103349
105310
  };
103350
105311
  Update: {
103351
105312
  aandachtspunten?: string | null;
105313
+ acceptance_id?: string | null;
103352
105314
  ai_generated?: boolean;
103353
105315
  approved_at?: string | null;
103354
105316
  binnen_mandaat?: boolean;
@@ -103367,6 +105329,11 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
103367
105329
  onderwerp?: string | null;
103368
105330
  rejected_at?: string | null;
103369
105331
  sent_at?: string | null;
105332
+ sign_token?: string;
105333
+ signature_data?: string | null;
105334
+ signed_at?: string | null;
105335
+ signer_email?: string | null;
105336
+ signer_name?: string | null;
103370
105337
  source_number?: string | null;
103371
105338
  source_ref?: string | null;
103372
105339
  source_type?: string;
@@ -103381,10 +105348,17 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
103381
105348
  viewed_at?: string | null;
103382
105349
  volgnummer?: number | null;
103383
105350
  voorwaarden?: string | null;
105351
+ werkbon_concept?: import("../integrations/supabase/types").Json | null;
103384
105352
  werkbon_id?: string | null;
103385
105353
  work_location_id?: string | null;
103386
105354
  };
103387
105355
  Relationships: [{
105356
+ foreignKeyName: "itk_offertes_acceptance_id_fkey";
105357
+ columns: ["acceptance_id"];
105358
+ isOneToOne: false;
105359
+ referencedRelation: "itk_offerte_acceptaties";
105360
+ referencedColumns: ["id"];
105361
+ }, {
103388
105362
  foreignKeyName: "itk_offertes_contact_id_fkey";
103389
105363
  columns: ["contact_id"];
103390
105364
  isOneToOne: false;
@@ -104823,6 +106797,60 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
104823
106797
  };
104824
106798
  Relationships: [];
104825
106799
  };
106800
+ logistics_order_merge_lines: {
106801
+ Row: {
106802
+ from_order_id: string;
106803
+ from_order_number: string | null;
106804
+ group_key: string;
106805
+ id: string;
106806
+ merged_at: string;
106807
+ order_item_id: string;
106808
+ ordered_at: string | null;
106809
+ product_id: string | null;
106810
+ product_name: string | null;
106811
+ quantity: number | null;
106812
+ reason: string;
106813
+ sales_order_id: string | null;
106814
+ source_line_key: string | null;
106815
+ to_order_id: string;
106816
+ to_order_number: string | null;
106817
+ };
106818
+ Insert: {
106819
+ from_order_id: string;
106820
+ from_order_number?: string | null;
106821
+ group_key: string;
106822
+ id?: string;
106823
+ merged_at?: string;
106824
+ order_item_id: string;
106825
+ ordered_at?: string | null;
106826
+ product_id?: string | null;
106827
+ product_name?: string | null;
106828
+ quantity?: number | null;
106829
+ reason: string;
106830
+ sales_order_id?: string | null;
106831
+ source_line_key?: string | null;
106832
+ to_order_id: string;
106833
+ to_order_number?: string | null;
106834
+ };
106835
+ Update: {
106836
+ from_order_id?: string;
106837
+ from_order_number?: string | null;
106838
+ group_key?: string;
106839
+ id?: string;
106840
+ merged_at?: string;
106841
+ order_item_id?: string;
106842
+ ordered_at?: string | null;
106843
+ product_id?: string | null;
106844
+ product_name?: string | null;
106845
+ quantity?: number | null;
106846
+ reason?: string;
106847
+ sales_order_id?: string | null;
106848
+ source_line_key?: string | null;
106849
+ to_order_id?: string;
106850
+ to_order_number?: string | null;
106851
+ };
106852
+ Relationships: [];
106853
+ };
104826
106854
  logistics_order_merges: {
104827
106855
  Row: {
104828
106856
  group_key: string;
@@ -108463,6 +110491,9 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
108463
110491
  product_id: string | null;
108464
110492
  product_name: string;
108465
110493
  quantity: number;
110494
+ quarantine_reason: string | null;
110495
+ quarantined_at: string | null;
110496
+ quarantined_into_order_id: string | null;
108466
110497
  source_line_key: string | null;
108467
110498
  unit: string;
108468
110499
  unit_price: number | null;
@@ -108479,6 +110510,9 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
108479
110510
  product_id?: string | null;
108480
110511
  product_name: string;
108481
110512
  quantity?: number;
110513
+ quarantine_reason?: string | null;
110514
+ quarantined_at?: string | null;
110515
+ quarantined_into_order_id?: string | null;
108482
110516
  source_line_key?: string | null;
108483
110517
  unit?: string;
108484
110518
  unit_price?: number | null;
@@ -108495,6 +110529,9 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
108495
110529
  product_id?: string | null;
108496
110530
  product_name?: string;
108497
110531
  quantity?: number;
110532
+ quarantine_reason?: string | null;
110533
+ quarantined_at?: string | null;
110534
+ quarantined_into_order_id?: string | null;
108498
110535
  source_line_key?: string | null;
108499
110536
  unit?: string;
108500
110537
  unit_price?: number | null;
@@ -109926,6 +111963,57 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
109926
111963
  };
109927
111964
  Relationships: [];
109928
111965
  };
111966
+ planning_confirmation_log: {
111967
+ Row: {
111968
+ created_at: string;
111969
+ end_at: string;
111970
+ id: string;
111971
+ kind: string;
111972
+ outbox_id: string | null;
111973
+ planning_item_id: string;
111974
+ reason: string | null;
111975
+ recipient: string | null;
111976
+ start_at: string;
111977
+ status: string;
111978
+ };
111979
+ Insert: {
111980
+ created_at?: string;
111981
+ end_at: string;
111982
+ id?: string;
111983
+ kind?: string;
111984
+ outbox_id?: string | null;
111985
+ planning_item_id: string;
111986
+ reason?: string | null;
111987
+ recipient?: string | null;
111988
+ start_at: string;
111989
+ status: string;
111990
+ };
111991
+ Update: {
111992
+ created_at?: string;
111993
+ end_at?: string;
111994
+ id?: string;
111995
+ kind?: string;
111996
+ outbox_id?: string | null;
111997
+ planning_item_id?: string;
111998
+ reason?: string | null;
111999
+ recipient?: string | null;
112000
+ start_at?: string;
112001
+ status?: string;
112002
+ };
112003
+ Relationships: [{
112004
+ foreignKeyName: "planning_confirmation_log_planning_item_id_fkey";
112005
+ columns: ["planning_item_id"];
112006
+ isOneToOne: false;
112007
+ referencedRelation: "planning_items";
112008
+ referencedColumns: ["id"];
112009
+ }, {
112010
+ foreignKeyName: "planning_confirmation_log_planning_item_id_fkey";
112011
+ columns: ["planning_item_id"];
112012
+ isOneToOne: false;
112013
+ referencedRelation: "planning_overview";
112014
+ referencedColumns: ["id"];
112015
+ }];
112016
+ };
109929
112017
  planning_item_assistants: {
109930
112018
  Row: {
109931
112019
  created_at: string;
@@ -110010,6 +112098,69 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
110010
112098
  referencedColumns: ["id"];
110011
112099
  }];
110012
112100
  };
112101
+ planning_mail_settings: {
112102
+ Row: {
112103
+ body_template: string;
112104
+ cc: string[];
112105
+ connection_id: string | null;
112106
+ created_at: string;
112107
+ email_purpose: string | null;
112108
+ enabled: boolean;
112109
+ id: boolean;
112110
+ reply_to: string | null;
112111
+ reschedule_body_template: string;
112112
+ reschedule_subject_template: string;
112113
+ subject_template: string;
112114
+ timezone: string;
112115
+ updated_at: string;
112116
+ updated_by: string | null;
112117
+ };
112118
+ Insert: {
112119
+ body_template?: string;
112120
+ cc?: string[];
112121
+ connection_id?: string | null;
112122
+ created_at?: string;
112123
+ email_purpose?: string | null;
112124
+ enabled?: boolean;
112125
+ id?: boolean;
112126
+ reply_to?: string | null;
112127
+ reschedule_body_template?: string;
112128
+ reschedule_subject_template?: string;
112129
+ subject_template?: string;
112130
+ timezone?: string;
112131
+ updated_at?: string;
112132
+ updated_by?: string | null;
112133
+ };
112134
+ Update: {
112135
+ body_template?: string;
112136
+ cc?: string[];
112137
+ connection_id?: string | null;
112138
+ created_at?: string;
112139
+ email_purpose?: string | null;
112140
+ enabled?: boolean;
112141
+ id?: boolean;
112142
+ reply_to?: string | null;
112143
+ reschedule_body_template?: string;
112144
+ reschedule_subject_template?: string;
112145
+ subject_template?: string;
112146
+ timezone?: string;
112147
+ updated_at?: string;
112148
+ updated_by?: string | null;
112149
+ };
112150
+ Relationships: [{
112151
+ foreignKeyName: "planning_mail_settings_connection_id_fkey";
112152
+ columns: ["connection_id"];
112153
+ isOneToOne: false;
112154
+ referencedRelation: "email_auth_connections";
112155
+ referencedColumns: ["id"];
112156
+ }, {
112157
+ foreignKeyName: "planning_mail_settings_connection_id_fkey";
112158
+ columns: ["connection_id"];
112159
+ isOneToOne: false;
112160
+ referencedRelation: "email_auth_connections_safe";
112161
+ referencedColumns: ["id"];
112162
+ }];
112163
+ };
110013
112164
  planning_monteur_day_locations: {
110014
112165
  Row: {
110015
112166
  created_at: string;
@@ -110397,6 +112548,27 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
110397
112548
  };
110398
112549
  Relationships: [];
110399
112550
  };
112551
+ print_genegeerde_computers: {
112552
+ Row: {
112553
+ computer_naam: string;
112554
+ genegeerd_door: string | null;
112555
+ genegeerd_op: string;
112556
+ id: string;
112557
+ };
112558
+ Insert: {
112559
+ computer_naam: string;
112560
+ genegeerd_door?: string | null;
112561
+ genegeerd_op?: string;
112562
+ id?: string;
112563
+ };
112564
+ Update: {
112565
+ computer_naam?: string;
112566
+ genegeerd_door?: string | null;
112567
+ genegeerd_op?: string;
112568
+ id?: string;
112569
+ };
112570
+ Relationships: [];
112571
+ };
110400
112572
  print_job_logs: {
110401
112573
  Row: {
110402
112574
  created_at: string;
@@ -110667,6 +112839,39 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
110667
112839
  referencedColumns: ["id"];
110668
112840
  }];
110669
112841
  };
112842
+ print_plek_printers: {
112843
+ Row: {
112844
+ id: string;
112845
+ print_plek_id: string;
112846
+ printer_id: string;
112847
+ toegevoegd_op: string;
112848
+ };
112849
+ Insert: {
112850
+ id?: string;
112851
+ print_plek_id: string;
112852
+ printer_id: string;
112853
+ toegevoegd_op?: string;
112854
+ };
112855
+ Update: {
112856
+ id?: string;
112857
+ print_plek_id?: string;
112858
+ printer_id?: string;
112859
+ toegevoegd_op?: string;
112860
+ };
112861
+ Relationships: [{
112862
+ foreignKeyName: "print_plek_printers_print_plek_id_fkey";
112863
+ columns: ["print_plek_id"];
112864
+ isOneToOne: false;
112865
+ referencedRelation: "print_plekken";
112866
+ referencedColumns: ["id"];
112867
+ }, {
112868
+ foreignKeyName: "print_plek_printers_printer_id_fkey";
112869
+ columns: ["printer_id"];
112870
+ isOneToOne: false;
112871
+ referencedRelation: "printers";
112872
+ referencedColumns: ["id"];
112873
+ }];
112874
+ };
110670
112875
  print_plekken: {
110671
112876
  Row: {
110672
112877
  actief: boolean;
@@ -110882,7 +113087,8 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
110882
113087
  created_at: string;
110883
113088
  id: string;
110884
113089
  layout_id: string;
110885
- printer_id: string;
113090
+ printer_id: string | null;
113091
+ printer_ontbreekt_sinds: string | null;
110886
113092
  prioriteit: number;
110887
113093
  updated_at: string;
110888
113094
  };
@@ -110890,7 +113096,8 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
110890
113096
  created_at?: string;
110891
113097
  id?: string;
110892
113098
  layout_id: string;
110893
- printer_id: string;
113099
+ printer_id?: string | null;
113100
+ printer_ontbreekt_sinds?: string | null;
110894
113101
  prioriteit?: number;
110895
113102
  updated_at?: string;
110896
113103
  };
@@ -110898,7 +113105,8 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
110898
113105
  created_at?: string;
110899
113106
  id?: string;
110900
113107
  layout_id?: string;
110901
- printer_id?: string;
113108
+ printer_id?: string | null;
113109
+ printer_ontbreekt_sinds?: string | null;
110902
113110
  prioriteit?: number;
110903
113111
  updated_at?: string;
110904
113112
  };
@@ -115386,6 +117594,30 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
115386
117594
  };
115387
117595
  Relationships: [];
115388
117596
  };
117597
+ uren_pagina_toegang: {
117598
+ Row: {
117599
+ created_at: string;
117600
+ id: string;
117601
+ user_id: string;
117602
+ };
117603
+ Insert: {
117604
+ created_at?: string;
117605
+ id?: string;
117606
+ user_id: string;
117607
+ };
117608
+ Update: {
117609
+ created_at?: string;
117610
+ id?: string;
117611
+ user_id?: string;
117612
+ };
117613
+ Relationships: [{
117614
+ foreignKeyName: "uren_pagina_toegang_user_id_fkey";
117615
+ columns: ["user_id"];
117616
+ isOneToOne: true;
117617
+ referencedRelation: "profiles";
117618
+ referencedColumns: ["id"];
117619
+ }];
117620
+ };
115389
117621
  uren_settings: {
115390
117622
  Row: {
115391
117623
  break_minutes: number;
@@ -116790,12 +119022,14 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
116790
119022
  created_at: string;
116791
119023
  default_quantity: number;
116792
119024
  description: string | null;
116793
- duration_minutes: number | null;
119025
+ duration_minutes: number;
116794
119026
  id: string;
119027
+ labor_minutes: number;
116795
119028
  mandaat_type: string | null;
116796
119029
  name: string;
116797
119030
  price_mode: string;
116798
119031
  sort_order: number;
119032
+ travel_minutes: number;
116799
119033
  unit_price_cents: number;
116800
119034
  updated_at: string;
116801
119035
  };
@@ -116807,12 +119041,14 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
116807
119041
  created_at?: string;
116808
119042
  default_quantity?: number;
116809
119043
  description?: string | null;
116810
- duration_minutes?: number | null;
119044
+ duration_minutes?: number;
116811
119045
  id?: string;
119046
+ labor_minutes?: number;
116812
119047
  mandaat_type?: string | null;
116813
119048
  name: string;
116814
119049
  price_mode?: string;
116815
119050
  sort_order?: number;
119051
+ travel_minutes?: number;
116816
119052
  unit_price_cents?: number;
116817
119053
  updated_at?: string;
116818
119054
  };
@@ -116824,12 +119060,14 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
116824
119060
  created_at?: string;
116825
119061
  default_quantity?: number;
116826
119062
  description?: string | null;
116827
- duration_minutes?: number | null;
119063
+ duration_minutes?: number;
116828
119064
  id?: string;
119065
+ labor_minutes?: number;
116829
119066
  mandaat_type?: string | null;
116830
119067
  name?: string;
116831
119068
  price_mode?: string;
116832
119069
  sort_order?: number;
119070
+ travel_minutes?: number;
116833
119071
  unit_price_cents?: number;
116834
119072
  updated_at?: string;
116835
119073
  };
@@ -118384,6 +120622,12 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
118384
120622
  };
118385
120623
  Returns: undefined;
118386
120624
  };
120625
+ _quote_release_work_order_intern: {
120626
+ Args: {
120627
+ _offerte_id: string;
120628
+ };
120629
+ Returns: import("../integrations/supabase/types").Json;
120630
+ };
118387
120631
  _wo_is_planner: {
118388
120632
  Args: never;
118389
120633
  Returns: boolean;
@@ -123255,6 +125499,12 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
123255
125499
  };
123256
125500
  Returns: import("../integrations/supabase/types").Json;
123257
125501
  };
125502
+ pick_verify_rows: {
125503
+ Args: {
125504
+ _rows: import("../integrations/supabase/types").Json;
125505
+ };
125506
+ Returns: import("../integrations/supabase/types").Json;
125507
+ };
123258
125508
  pickstation_get_orders_raw: {
123259
125509
  Args: never;
123260
125510
  Returns: import("../integrations/supabase/types").Json;
@@ -123317,6 +125567,12 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
123317
125567
  };
123318
125568
  Returns: undefined;
123319
125569
  };
125570
+ planning_html_escape: {
125571
+ Args: {
125572
+ t: string;
125573
+ };
125574
+ Returns: string;
125575
+ };
123320
125576
  planning_list: {
123321
125577
  Args: {
123322
125578
  _from: string;
@@ -123371,6 +125627,12 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
123371
125627
  id: string;
123372
125628
  }[];
123373
125629
  };
125630
+ planning_urlencode: {
125631
+ Args: {
125632
+ t: string;
125633
+ };
125634
+ Returns: string;
125635
+ };
123374
125636
  print_preview_toestaan: {
123375
125637
  Args: {
123376
125638
  _max?: number;
@@ -123389,6 +125651,35 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
123389
125651
  };
123390
125652
  Returns: undefined;
123391
125653
  };
125654
+ printer_gebruik: {
125655
+ Args: {
125656
+ _printer: string;
125657
+ };
125658
+ Returns: import("../integrations/supabase/types").Json;
125659
+ };
125660
+ printer_routering: {
125661
+ Args: {
125662
+ _documenttype: string;
125663
+ _layout_id?: string;
125664
+ _papierformaat?: string;
125665
+ _print_plek_id?: string;
125666
+ _werkplek?: string;
125667
+ };
125668
+ Returns: import("../integrations/supabase/types").Json;
125669
+ };
125670
+ printplek_printer: {
125671
+ Args: {
125672
+ _documenttype: string;
125673
+ _plek: string;
125674
+ };
125675
+ Returns: string;
125676
+ };
125677
+ printplek_verwijder_impact: {
125678
+ Args: {
125679
+ _id: string;
125680
+ };
125681
+ Returns: import("../integrations/supabase/types").Json;
125682
+ };
123392
125683
  process_logistics_event: {
123393
125684
  Args: {
123394
125685
  p_event_id: string;
@@ -123435,6 +125726,12 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
123435
125726
  };
123436
125727
  Returns: import("../integrations/supabase/types").Json;
123437
125728
  };
125729
+ quote_create_from_scratch: {
125730
+ Args: {
125731
+ _payload: import("../integrations/supabase/types").Json;
125732
+ };
125733
+ Returns: import("../integrations/supabase/types").Json;
125734
+ };
123438
125735
  quote_create_from_source: {
123439
125736
  Args: {
123440
125737
  _payload?: import("../integrations/supabase/types").Json;
@@ -123450,6 +125747,13 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
123450
125747
  };
123451
125748
  Returns: boolean;
123452
125749
  };
125750
+ quote_fill_from_form: {
125751
+ Args: {
125752
+ _offerte_id: string;
125753
+ _payload: import("../integrations/supabase/types").Json;
125754
+ };
125755
+ Returns: import("../integrations/supabase/types").Json;
125756
+ };
123453
125757
  quote_get_billable_lines: {
123454
125758
  Args: {
123455
125759
  _quotation_id: string;
@@ -123479,12 +125783,50 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
123479
125783
  };
123480
125784
  Returns: import("../integrations/supabase/types").Json;
123481
125785
  };
125786
+ quote_public_accept: {
125787
+ Args: {
125788
+ _akkoord: boolean;
125789
+ _email: string;
125790
+ _ip_address?: string;
125791
+ _naam: string;
125792
+ _token: string;
125793
+ _user_agent?: string;
125794
+ };
125795
+ Returns: import("../integrations/supabase/types").Json;
125796
+ };
125797
+ quote_public_get: {
125798
+ Args: {
125799
+ _token: string;
125800
+ };
125801
+ Returns: import("../integrations/supabase/types").Json;
125802
+ };
125803
+ quote_public_sign: {
125804
+ Args: {
125805
+ _handtekening: string;
125806
+ _naam: string;
125807
+ _token: string;
125808
+ };
125809
+ Returns: import("../integrations/supabase/types").Json;
125810
+ };
123482
125811
  quote_queue_follow_up: {
123483
125812
  Args: {
123484
125813
  _offerte_id: string;
123485
125814
  };
123486
125815
  Returns: string;
123487
125816
  };
125817
+ quote_release_work_order: {
125818
+ Args: {
125819
+ _offerte_id: string;
125820
+ };
125821
+ Returns: import("../integrations/supabase/types").Json;
125822
+ };
125823
+ quote_sync_work_order: {
125824
+ Args: {
125825
+ _monteur_instructies?: string;
125826
+ _offerte_id: string;
125827
+ };
125828
+ Returns: boolean;
125829
+ };
123488
125830
  recompute_all_reserved_stock: {
123489
125831
  Args: never;
123490
125832
  Returns: undefined;
@@ -124436,6 +126778,10 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
124436
126778
  };
124437
126779
  Returns: number;
124438
126780
  };
126781
+ uren_heeft_pagina_toegang: {
126782
+ Args: never;
126783
+ Returns: boolean;
126784
+ };
124439
126785
  uren_is_beheerder: {
124440
126786
  Args: never;
124441
126787
  Returns: boolean;
@@ -124519,6 +126865,13 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
124519
126865
  Args: never;
124520
126866
  Returns: string;
124521
126867
  };
126868
+ uren_pagina_toegang_instellen: {
126869
+ Args: {
126870
+ _toegang: boolean;
126871
+ _user_id: string;
126872
+ };
126873
+ Returns: undefined;
126874
+ };
124522
126875
  uren_planning_dagagenda: {
124523
126876
  Args: {
124524
126877
  _tot: string;
@@ -124763,6 +127116,19 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
124763
127116
  user_id: string;
124764
127117
  }[];
124765
127118
  };
127119
+ vervang_printer: {
127120
+ Args: {
127121
+ _nieuw: string;
127122
+ _oud: string;
127123
+ };
127124
+ Returns: import("../integrations/supabase/types").Json;
127125
+ };
127126
+ verwijder_printplek: {
127127
+ Args: {
127128
+ _id: string;
127129
+ };
127130
+ Returns: import("../integrations/supabase/types").Json;
127131
+ };
124766
127132
  voorraad_cleanup_old_rows: {
124767
127133
  Args: never;
124768
127134
  Returns: import("../integrations/supabase/types").Json;
@@ -124773,6 +127139,16 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
124773
127139
  };
124774
127140
  Returns: number;
124775
127141
  };
127142
+ werkbon_pakket_tijden: {
127143
+ Args: {
127144
+ _werkbon_id: string;
127145
+ };
127146
+ Returns: {
127147
+ labor_minutes: number;
127148
+ total_minutes: number;
127149
+ travel_minutes: number;
127150
+ }[];
127151
+ };
124776
127152
  werkbon_totalen: {
124777
127153
  Args: {
124778
127154
  _werkbon_id: string;
@@ -128042,6 +130418,7 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
128042
130418
  formaat_code: string;
128043
130419
  id: string;
128044
130420
  printer_id: string | null;
130421
+ printer_ontbreekt_sinds: string | null;
128045
130422
  updated_at: string;
128046
130423
  };
128047
130424
  Insert: {
@@ -128050,6 +130427,7 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
128050
130427
  formaat_code: string;
128051
130428
  id?: string;
128052
130429
  printer_id?: string | null;
130430
+ printer_ontbreekt_sinds?: string | null;
128053
130431
  updated_at?: string;
128054
130432
  };
128055
130433
  Update: {
@@ -128058,6 +130436,7 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
128058
130436
  formaat_code?: string;
128059
130437
  id?: string;
128060
130438
  printer_id?: string | null;
130439
+ printer_ontbreekt_sinds?: string | null;
128061
130440
  updated_at?: string;
128062
130441
  };
128063
130442
  Relationships: [{
@@ -128394,6 +130773,7 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
128394
130773
  papierformaat: string | null;
128395
130774
  print_plek_id: string;
128396
130775
  printer_id: string | null;
130776
+ printer_ontbreekt_sinds: string | null;
128397
130777
  updated_at: string;
128398
130778
  };
128399
130779
  Insert: {
@@ -128403,6 +130783,7 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
128403
130783
  papierformaat?: string | null;
128404
130784
  print_plek_id: string;
128405
130785
  printer_id?: string | null;
130786
+ printer_ontbreekt_sinds?: string | null;
128406
130787
  updated_at?: string;
128407
130788
  };
128408
130789
  Update: {
@@ -128412,6 +130793,7 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
128412
130793
  papierformaat?: string | null;
128413
130794
  print_plek_id?: string;
128414
130795
  printer_id?: string | null;
130796
+ printer_ontbreekt_sinds?: string | null;
128415
130797
  updated_at?: string;
128416
130798
  };
128417
130799
  Relationships: [{
@@ -128435,6 +130817,7 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
128435
130817
  id: string;
128436
130818
  papierformaat: string | null;
128437
130819
  printer_id: string | null;
130820
+ printer_ontbreekt_sinds: string | null;
128438
130821
  updated_at: string;
128439
130822
  werkplek: string;
128440
130823
  };
@@ -128444,6 +130827,7 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
128444
130827
  id?: string;
128445
130828
  papierformaat?: string | null;
128446
130829
  printer_id?: string | null;
130830
+ printer_ontbreekt_sinds?: string | null;
128447
130831
  updated_at?: string;
128448
130832
  werkplek: string;
128449
130833
  };
@@ -128453,6 +130837,7 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
128453
130837
  id?: string;
128454
130838
  papierformaat?: string | null;
128455
130839
  printer_id?: string | null;
130840
+ printer_ontbreekt_sinds?: string | null;
128456
130841
  updated_at?: string;
128457
130842
  werkplek?: string;
128458
130843
  };
@@ -131755,6 +134140,78 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
131755
134140
  referencedColumns: ["id"];
131756
134141
  }];
131757
134142
  };
134143
+ floriday_document_fetch_queue: {
134144
+ Row: {
134145
+ attempts: number;
134146
+ cancelled_reason: string | null;
134147
+ completed_at: string | null;
134148
+ connection_id: string;
134149
+ created_at: string;
134150
+ document_key: string;
134151
+ environment: string;
134152
+ id: string;
134153
+ kind: string;
134154
+ last_error: string | null;
134155
+ last_http_status: number | null;
134156
+ locked_at: string | null;
134157
+ locked_by: string | null;
134158
+ max_attempts: number;
134159
+ next_attempt_at: string;
134160
+ order_ref: string | null;
134161
+ params: import("../integrations/supabase/types").Json;
134162
+ status: string;
134163
+ updated_at: string;
134164
+ };
134165
+ Insert: {
134166
+ attempts?: number;
134167
+ cancelled_reason?: string | null;
134168
+ completed_at?: string | null;
134169
+ connection_id: string;
134170
+ created_at?: string;
134171
+ document_key: string;
134172
+ environment: string;
134173
+ id?: string;
134174
+ kind: string;
134175
+ last_error?: string | null;
134176
+ last_http_status?: number | null;
134177
+ locked_at?: string | null;
134178
+ locked_by?: string | null;
134179
+ max_attempts?: number;
134180
+ next_attempt_at?: string;
134181
+ order_ref?: string | null;
134182
+ params?: import("../integrations/supabase/types").Json;
134183
+ status?: string;
134184
+ updated_at?: string;
134185
+ };
134186
+ Update: {
134187
+ attempts?: number;
134188
+ cancelled_reason?: string | null;
134189
+ completed_at?: string | null;
134190
+ connection_id?: string;
134191
+ created_at?: string;
134192
+ document_key?: string;
134193
+ environment?: string;
134194
+ id?: string;
134195
+ kind?: string;
134196
+ last_error?: string | null;
134197
+ last_http_status?: number | null;
134198
+ locked_at?: string | null;
134199
+ locked_by?: string | null;
134200
+ max_attempts?: number;
134201
+ next_attempt_at?: string;
134202
+ order_ref?: string | null;
134203
+ params?: import("../integrations/supabase/types").Json;
134204
+ status?: string;
134205
+ updated_at?: string;
134206
+ };
134207
+ Relationships: [{
134208
+ foreignKeyName: "floriday_document_fetch_queue_connection_id_fkey";
134209
+ columns: ["connection_id"];
134210
+ isOneToOne: false;
134211
+ referencedRelation: "floriday_connections";
134212
+ referencedColumns: ["id"];
134213
+ }];
134214
+ };
131758
134215
  floriday_fulfillment_orders_cache: {
131759
134216
  Row: {
131760
134217
  auction_date: string | null;
@@ -132052,6 +134509,39 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
132052
134509
  referencedColumns: ["id"];
132053
134510
  }];
132054
134511
  };
134512
+ floriday_merge_log: {
134513
+ Row: {
134514
+ action: string;
134515
+ created_at: string;
134516
+ floriday_sales_order_ids: import("../integrations/supabase/types").Json;
134517
+ id: string;
134518
+ kept_order_id: string | null;
134519
+ lines: import("../integrations/supabase/types").Json;
134520
+ reason: string | null;
134521
+ removed_order_id: string | null;
134522
+ };
134523
+ Insert: {
134524
+ action: string;
134525
+ created_at?: string;
134526
+ floriday_sales_order_ids?: import("../integrations/supabase/types").Json;
134527
+ id?: string;
134528
+ kept_order_id?: string | null;
134529
+ lines?: import("../integrations/supabase/types").Json;
134530
+ reason?: string | null;
134531
+ removed_order_id?: string | null;
134532
+ };
134533
+ Update: {
134534
+ action?: string;
134535
+ created_at?: string;
134536
+ floriday_sales_order_ids?: import("../integrations/supabase/types").Json;
134537
+ id?: string;
134538
+ kept_order_id?: string | null;
134539
+ lines?: import("../integrations/supabase/types").Json;
134540
+ reason?: string | null;
134541
+ removed_order_id?: string | null;
134542
+ };
134543
+ Relationships: [];
134544
+ };
132055
134545
  floriday_network_cache: {
132056
134546
  Row: {
132057
134547
  city: string | null;
@@ -134287,6 +136777,57 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
134287
136777
  };
134288
136778
  Relationships: [];
134289
136779
  };
136780
+ itk_offerte_acceptaties: {
136781
+ Row: {
136782
+ accepted_at: string;
136783
+ akkoordgever_email: string;
136784
+ akkoordgever_naam: string;
136785
+ akkoordverklaring: string;
136786
+ id: string;
136787
+ inhoud_hash: string;
136788
+ ip_address: unknown;
136789
+ offerte_id: string;
136790
+ offerte_number: string;
136791
+ offerte_snapshot: import("../integrations/supabase/types").Json;
136792
+ user_agent: string | null;
136793
+ versie: string;
136794
+ };
136795
+ Insert: {
136796
+ accepted_at?: string;
136797
+ akkoordgever_email: string;
136798
+ akkoordgever_naam: string;
136799
+ akkoordverklaring: string;
136800
+ id?: string;
136801
+ inhoud_hash: string;
136802
+ ip_address?: unknown;
136803
+ offerte_id: string;
136804
+ offerte_number: string;
136805
+ offerte_snapshot: import("../integrations/supabase/types").Json;
136806
+ user_agent?: string | null;
136807
+ versie: string;
136808
+ };
136809
+ Update: {
136810
+ accepted_at?: string;
136811
+ akkoordgever_email?: string;
136812
+ akkoordgever_naam?: string;
136813
+ akkoordverklaring?: string;
136814
+ id?: string;
136815
+ inhoud_hash?: string;
136816
+ ip_address?: unknown;
136817
+ offerte_id?: string;
136818
+ offerte_number?: string;
136819
+ offerte_snapshot?: import("../integrations/supabase/types").Json;
136820
+ user_agent?: string | null;
136821
+ versie?: string;
136822
+ };
136823
+ Relationships: [{
136824
+ foreignKeyName: "itk_offerte_acceptaties_offerte_id_fkey";
136825
+ columns: ["offerte_id"];
136826
+ isOneToOne: true;
136827
+ referencedRelation: "itk_offertes";
136828
+ referencedColumns: ["id"];
136829
+ }];
136830
+ };
134290
136831
  itk_offerte_events: {
134291
136832
  Row: {
134292
136833
  created_at: string;
@@ -134500,6 +137041,7 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
134500
137041
  itk_offertes: {
134501
137042
  Row: {
134502
137043
  aandachtspunten: string | null;
137044
+ acceptance_id: string | null;
134503
137045
  ai_generated: boolean;
134504
137046
  approved_at: string | null;
134505
137047
  binnen_mandaat: boolean;
@@ -134518,6 +137060,11 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
134518
137060
  onderwerp: string | null;
134519
137061
  rejected_at: string | null;
134520
137062
  sent_at: string | null;
137063
+ sign_token: string;
137064
+ signature_data: string | null;
137065
+ signed_at: string | null;
137066
+ signer_email: string | null;
137067
+ signer_name: string | null;
134521
137068
  source_number: string | null;
134522
137069
  source_ref: string | null;
134523
137070
  source_type: string;
@@ -134532,11 +137079,13 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
134532
137079
  viewed_at: string | null;
134533
137080
  volgnummer: number | null;
134534
137081
  voorwaarden: string | null;
137082
+ werkbon_concept: import("../integrations/supabase/types").Json | null;
134535
137083
  werkbon_id: string | null;
134536
137084
  work_location_id: string | null;
134537
137085
  };
134538
137086
  Insert: {
134539
137087
  aandachtspunten?: string | null;
137088
+ acceptance_id?: string | null;
134540
137089
  ai_generated?: boolean;
134541
137090
  approved_at?: string | null;
134542
137091
  binnen_mandaat?: boolean;
@@ -134555,6 +137104,11 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
134555
137104
  onderwerp?: string | null;
134556
137105
  rejected_at?: string | null;
134557
137106
  sent_at?: string | null;
137107
+ sign_token?: string;
137108
+ signature_data?: string | null;
137109
+ signed_at?: string | null;
137110
+ signer_email?: string | null;
137111
+ signer_name?: string | null;
134558
137112
  source_number?: string | null;
134559
137113
  source_ref?: string | null;
134560
137114
  source_type?: string;
@@ -134569,11 +137123,13 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
134569
137123
  viewed_at?: string | null;
134570
137124
  volgnummer?: number | null;
134571
137125
  voorwaarden?: string | null;
137126
+ werkbon_concept?: import("../integrations/supabase/types").Json | null;
134572
137127
  werkbon_id?: string | null;
134573
137128
  work_location_id?: string | null;
134574
137129
  };
134575
137130
  Update: {
134576
137131
  aandachtspunten?: string | null;
137132
+ acceptance_id?: string | null;
134577
137133
  ai_generated?: boolean;
134578
137134
  approved_at?: string | null;
134579
137135
  binnen_mandaat?: boolean;
@@ -134592,6 +137148,11 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
134592
137148
  onderwerp?: string | null;
134593
137149
  rejected_at?: string | null;
134594
137150
  sent_at?: string | null;
137151
+ sign_token?: string;
137152
+ signature_data?: string | null;
137153
+ signed_at?: string | null;
137154
+ signer_email?: string | null;
137155
+ signer_name?: string | null;
134595
137156
  source_number?: string | null;
134596
137157
  source_ref?: string | null;
134597
137158
  source_type?: string;
@@ -134606,10 +137167,17 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
134606
137167
  viewed_at?: string | null;
134607
137168
  volgnummer?: number | null;
134608
137169
  voorwaarden?: string | null;
137170
+ werkbon_concept?: import("../integrations/supabase/types").Json | null;
134609
137171
  werkbon_id?: string | null;
134610
137172
  work_location_id?: string | null;
134611
137173
  };
134612
137174
  Relationships: [{
137175
+ foreignKeyName: "itk_offertes_acceptance_id_fkey";
137176
+ columns: ["acceptance_id"];
137177
+ isOneToOne: false;
137178
+ referencedRelation: "itk_offerte_acceptaties";
137179
+ referencedColumns: ["id"];
137180
+ }, {
134613
137181
  foreignKeyName: "itk_offertes_contact_id_fkey";
134614
137182
  columns: ["contact_id"];
134615
137183
  isOneToOne: false;
@@ -136048,6 +138616,60 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
136048
138616
  };
136049
138617
  Relationships: [];
136050
138618
  };
138619
+ logistics_order_merge_lines: {
138620
+ Row: {
138621
+ from_order_id: string;
138622
+ from_order_number: string | null;
138623
+ group_key: string;
138624
+ id: string;
138625
+ merged_at: string;
138626
+ order_item_id: string;
138627
+ ordered_at: string | null;
138628
+ product_id: string | null;
138629
+ product_name: string | null;
138630
+ quantity: number | null;
138631
+ reason: string;
138632
+ sales_order_id: string | null;
138633
+ source_line_key: string | null;
138634
+ to_order_id: string;
138635
+ to_order_number: string | null;
138636
+ };
138637
+ Insert: {
138638
+ from_order_id: string;
138639
+ from_order_number?: string | null;
138640
+ group_key: string;
138641
+ id?: string;
138642
+ merged_at?: string;
138643
+ order_item_id: string;
138644
+ ordered_at?: string | null;
138645
+ product_id?: string | null;
138646
+ product_name?: string | null;
138647
+ quantity?: number | null;
138648
+ reason: string;
138649
+ sales_order_id?: string | null;
138650
+ source_line_key?: string | null;
138651
+ to_order_id: string;
138652
+ to_order_number?: string | null;
138653
+ };
138654
+ Update: {
138655
+ from_order_id?: string;
138656
+ from_order_number?: string | null;
138657
+ group_key?: string;
138658
+ id?: string;
138659
+ merged_at?: string;
138660
+ order_item_id?: string;
138661
+ ordered_at?: string | null;
138662
+ product_id?: string | null;
138663
+ product_name?: string | null;
138664
+ quantity?: number | null;
138665
+ reason?: string;
138666
+ sales_order_id?: string | null;
138667
+ source_line_key?: string | null;
138668
+ to_order_id?: string;
138669
+ to_order_number?: string | null;
138670
+ };
138671
+ Relationships: [];
138672
+ };
136051
138673
  logistics_order_merges: {
136052
138674
  Row: {
136053
138675
  group_key: string;
@@ -139688,6 +142310,9 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
139688
142310
  product_id: string | null;
139689
142311
  product_name: string;
139690
142312
  quantity: number;
142313
+ quarantine_reason: string | null;
142314
+ quarantined_at: string | null;
142315
+ quarantined_into_order_id: string | null;
139691
142316
  source_line_key: string | null;
139692
142317
  unit: string;
139693
142318
  unit_price: number | null;
@@ -139704,6 +142329,9 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
139704
142329
  product_id?: string | null;
139705
142330
  product_name: string;
139706
142331
  quantity?: number;
142332
+ quarantine_reason?: string | null;
142333
+ quarantined_at?: string | null;
142334
+ quarantined_into_order_id?: string | null;
139707
142335
  source_line_key?: string | null;
139708
142336
  unit?: string;
139709
142337
  unit_price?: number | null;
@@ -139720,6 +142348,9 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
139720
142348
  product_id?: string | null;
139721
142349
  product_name?: string;
139722
142350
  quantity?: number;
142351
+ quarantine_reason?: string | null;
142352
+ quarantined_at?: string | null;
142353
+ quarantined_into_order_id?: string | null;
139723
142354
  source_line_key?: string | null;
139724
142355
  unit?: string;
139725
142356
  unit_price?: number | null;
@@ -141151,6 +143782,57 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
141151
143782
  };
141152
143783
  Relationships: [];
141153
143784
  };
143785
+ planning_confirmation_log: {
143786
+ Row: {
143787
+ created_at: string;
143788
+ end_at: string;
143789
+ id: string;
143790
+ kind: string;
143791
+ outbox_id: string | null;
143792
+ planning_item_id: string;
143793
+ reason: string | null;
143794
+ recipient: string | null;
143795
+ start_at: string;
143796
+ status: string;
143797
+ };
143798
+ Insert: {
143799
+ created_at?: string;
143800
+ end_at: string;
143801
+ id?: string;
143802
+ kind?: string;
143803
+ outbox_id?: string | null;
143804
+ planning_item_id: string;
143805
+ reason?: string | null;
143806
+ recipient?: string | null;
143807
+ start_at: string;
143808
+ status: string;
143809
+ };
143810
+ Update: {
143811
+ created_at?: string;
143812
+ end_at?: string;
143813
+ id?: string;
143814
+ kind?: string;
143815
+ outbox_id?: string | null;
143816
+ planning_item_id?: string;
143817
+ reason?: string | null;
143818
+ recipient?: string | null;
143819
+ start_at?: string;
143820
+ status?: string;
143821
+ };
143822
+ Relationships: [{
143823
+ foreignKeyName: "planning_confirmation_log_planning_item_id_fkey";
143824
+ columns: ["planning_item_id"];
143825
+ isOneToOne: false;
143826
+ referencedRelation: "planning_items";
143827
+ referencedColumns: ["id"];
143828
+ }, {
143829
+ foreignKeyName: "planning_confirmation_log_planning_item_id_fkey";
143830
+ columns: ["planning_item_id"];
143831
+ isOneToOne: false;
143832
+ referencedRelation: "planning_overview";
143833
+ referencedColumns: ["id"];
143834
+ }];
143835
+ };
141154
143836
  planning_item_assistants: {
141155
143837
  Row: {
141156
143838
  created_at: string;
@@ -141235,6 +143917,69 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
141235
143917
  referencedColumns: ["id"];
141236
143918
  }];
141237
143919
  };
143920
+ planning_mail_settings: {
143921
+ Row: {
143922
+ body_template: string;
143923
+ cc: string[];
143924
+ connection_id: string | null;
143925
+ created_at: string;
143926
+ email_purpose: string | null;
143927
+ enabled: boolean;
143928
+ id: boolean;
143929
+ reply_to: string | null;
143930
+ reschedule_body_template: string;
143931
+ reschedule_subject_template: string;
143932
+ subject_template: string;
143933
+ timezone: string;
143934
+ updated_at: string;
143935
+ updated_by: string | null;
143936
+ };
143937
+ Insert: {
143938
+ body_template?: string;
143939
+ cc?: string[];
143940
+ connection_id?: string | null;
143941
+ created_at?: string;
143942
+ email_purpose?: string | null;
143943
+ enabled?: boolean;
143944
+ id?: boolean;
143945
+ reply_to?: string | null;
143946
+ reschedule_body_template?: string;
143947
+ reschedule_subject_template?: string;
143948
+ subject_template?: string;
143949
+ timezone?: string;
143950
+ updated_at?: string;
143951
+ updated_by?: string | null;
143952
+ };
143953
+ Update: {
143954
+ body_template?: string;
143955
+ cc?: string[];
143956
+ connection_id?: string | null;
143957
+ created_at?: string;
143958
+ email_purpose?: string | null;
143959
+ enabled?: boolean;
143960
+ id?: boolean;
143961
+ reply_to?: string | null;
143962
+ reschedule_body_template?: string;
143963
+ reschedule_subject_template?: string;
143964
+ subject_template?: string;
143965
+ timezone?: string;
143966
+ updated_at?: string;
143967
+ updated_by?: string | null;
143968
+ };
143969
+ Relationships: [{
143970
+ foreignKeyName: "planning_mail_settings_connection_id_fkey";
143971
+ columns: ["connection_id"];
143972
+ isOneToOne: false;
143973
+ referencedRelation: "email_auth_connections";
143974
+ referencedColumns: ["id"];
143975
+ }, {
143976
+ foreignKeyName: "planning_mail_settings_connection_id_fkey";
143977
+ columns: ["connection_id"];
143978
+ isOneToOne: false;
143979
+ referencedRelation: "email_auth_connections_safe";
143980
+ referencedColumns: ["id"];
143981
+ }];
143982
+ };
141238
143983
  planning_monteur_day_locations: {
141239
143984
  Row: {
141240
143985
  created_at: string;
@@ -141622,6 +144367,27 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
141622
144367
  };
141623
144368
  Relationships: [];
141624
144369
  };
144370
+ print_genegeerde_computers: {
144371
+ Row: {
144372
+ computer_naam: string;
144373
+ genegeerd_door: string | null;
144374
+ genegeerd_op: string;
144375
+ id: string;
144376
+ };
144377
+ Insert: {
144378
+ computer_naam: string;
144379
+ genegeerd_door?: string | null;
144380
+ genegeerd_op?: string;
144381
+ id?: string;
144382
+ };
144383
+ Update: {
144384
+ computer_naam?: string;
144385
+ genegeerd_door?: string | null;
144386
+ genegeerd_op?: string;
144387
+ id?: string;
144388
+ };
144389
+ Relationships: [];
144390
+ };
141625
144391
  print_job_logs: {
141626
144392
  Row: {
141627
144393
  created_at: string;
@@ -141892,6 +144658,39 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
141892
144658
  referencedColumns: ["id"];
141893
144659
  }];
141894
144660
  };
144661
+ print_plek_printers: {
144662
+ Row: {
144663
+ id: string;
144664
+ print_plek_id: string;
144665
+ printer_id: string;
144666
+ toegevoegd_op: string;
144667
+ };
144668
+ Insert: {
144669
+ id?: string;
144670
+ print_plek_id: string;
144671
+ printer_id: string;
144672
+ toegevoegd_op?: string;
144673
+ };
144674
+ Update: {
144675
+ id?: string;
144676
+ print_plek_id?: string;
144677
+ printer_id?: string;
144678
+ toegevoegd_op?: string;
144679
+ };
144680
+ Relationships: [{
144681
+ foreignKeyName: "print_plek_printers_print_plek_id_fkey";
144682
+ columns: ["print_plek_id"];
144683
+ isOneToOne: false;
144684
+ referencedRelation: "print_plekken";
144685
+ referencedColumns: ["id"];
144686
+ }, {
144687
+ foreignKeyName: "print_plek_printers_printer_id_fkey";
144688
+ columns: ["printer_id"];
144689
+ isOneToOne: false;
144690
+ referencedRelation: "printers";
144691
+ referencedColumns: ["id"];
144692
+ }];
144693
+ };
141895
144694
  print_plekken: {
141896
144695
  Row: {
141897
144696
  actief: boolean;
@@ -142107,7 +144906,8 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
142107
144906
  created_at: string;
142108
144907
  id: string;
142109
144908
  layout_id: string;
142110
- printer_id: string;
144909
+ printer_id: string | null;
144910
+ printer_ontbreekt_sinds: string | null;
142111
144911
  prioriteit: number;
142112
144912
  updated_at: string;
142113
144913
  };
@@ -142115,7 +144915,8 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
142115
144915
  created_at?: string;
142116
144916
  id?: string;
142117
144917
  layout_id: string;
142118
- printer_id: string;
144918
+ printer_id?: string | null;
144919
+ printer_ontbreekt_sinds?: string | null;
142119
144920
  prioriteit?: number;
142120
144921
  updated_at?: string;
142121
144922
  };
@@ -142123,7 +144924,8 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
142123
144924
  created_at?: string;
142124
144925
  id?: string;
142125
144926
  layout_id?: string;
142126
- printer_id?: string;
144927
+ printer_id?: string | null;
144928
+ printer_ontbreekt_sinds?: string | null;
142127
144929
  prioriteit?: number;
142128
144930
  updated_at?: string;
142129
144931
  };
@@ -146611,6 +149413,30 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
146611
149413
  };
146612
149414
  Relationships: [];
146613
149415
  };
149416
+ uren_pagina_toegang: {
149417
+ Row: {
149418
+ created_at: string;
149419
+ id: string;
149420
+ user_id: string;
149421
+ };
149422
+ Insert: {
149423
+ created_at?: string;
149424
+ id?: string;
149425
+ user_id: string;
149426
+ };
149427
+ Update: {
149428
+ created_at?: string;
149429
+ id?: string;
149430
+ user_id?: string;
149431
+ };
149432
+ Relationships: [{
149433
+ foreignKeyName: "uren_pagina_toegang_user_id_fkey";
149434
+ columns: ["user_id"];
149435
+ isOneToOne: true;
149436
+ referencedRelation: "profiles";
149437
+ referencedColumns: ["id"];
149438
+ }];
149439
+ };
146614
149440
  uren_settings: {
146615
149441
  Row: {
146616
149442
  break_minutes: number;
@@ -148015,12 +150841,14 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
148015
150841
  created_at: string;
148016
150842
  default_quantity: number;
148017
150843
  description: string | null;
148018
- duration_minutes: number | null;
150844
+ duration_minutes: number;
148019
150845
  id: string;
150846
+ labor_minutes: number;
148020
150847
  mandaat_type: string | null;
148021
150848
  name: string;
148022
150849
  price_mode: string;
148023
150850
  sort_order: number;
150851
+ travel_minutes: number;
148024
150852
  unit_price_cents: number;
148025
150853
  updated_at: string;
148026
150854
  };
@@ -148032,12 +150860,14 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
148032
150860
  created_at?: string;
148033
150861
  default_quantity?: number;
148034
150862
  description?: string | null;
148035
- duration_minutes?: number | null;
150863
+ duration_minutes?: number;
148036
150864
  id?: string;
150865
+ labor_minutes?: number;
148037
150866
  mandaat_type?: string | null;
148038
150867
  name: string;
148039
150868
  price_mode?: string;
148040
150869
  sort_order?: number;
150870
+ travel_minutes?: number;
148041
150871
  unit_price_cents?: number;
148042
150872
  updated_at?: string;
148043
150873
  };
@@ -148049,12 +150879,14 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
148049
150879
  created_at?: string;
148050
150880
  default_quantity?: number;
148051
150881
  description?: string | null;
148052
- duration_minutes?: number | null;
150882
+ duration_minutes?: number;
148053
150883
  id?: string;
150884
+ labor_minutes?: number;
148054
150885
  mandaat_type?: string | null;
148055
150886
  name?: string;
148056
150887
  price_mode?: string;
148057
150888
  sort_order?: number;
150889
+ travel_minutes?: number;
148058
150890
  unit_price_cents?: number;
148059
150891
  updated_at?: string;
148060
150892
  };
@@ -149609,6 +152441,12 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
149609
152441
  };
149610
152442
  Returns: undefined;
149611
152443
  };
152444
+ _quote_release_work_order_intern: {
152445
+ Args: {
152446
+ _offerte_id: string;
152447
+ };
152448
+ Returns: import("../integrations/supabase/types").Json;
152449
+ };
149612
152450
  _wo_is_planner: {
149613
152451
  Args: never;
149614
152452
  Returns: boolean;
@@ -154480,6 +157318,12 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
154480
157318
  };
154481
157319
  Returns: import("../integrations/supabase/types").Json;
154482
157320
  };
157321
+ pick_verify_rows: {
157322
+ Args: {
157323
+ _rows: import("../integrations/supabase/types").Json;
157324
+ };
157325
+ Returns: import("../integrations/supabase/types").Json;
157326
+ };
154483
157327
  pickstation_get_orders_raw: {
154484
157328
  Args: never;
154485
157329
  Returns: import("../integrations/supabase/types").Json;
@@ -154542,6 +157386,12 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
154542
157386
  };
154543
157387
  Returns: undefined;
154544
157388
  };
157389
+ planning_html_escape: {
157390
+ Args: {
157391
+ t: string;
157392
+ };
157393
+ Returns: string;
157394
+ };
154545
157395
  planning_list: {
154546
157396
  Args: {
154547
157397
  _from: string;
@@ -154596,6 +157446,12 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
154596
157446
  id: string;
154597
157447
  }[];
154598
157448
  };
157449
+ planning_urlencode: {
157450
+ Args: {
157451
+ t: string;
157452
+ };
157453
+ Returns: string;
157454
+ };
154599
157455
  print_preview_toestaan: {
154600
157456
  Args: {
154601
157457
  _max?: number;
@@ -154614,6 +157470,35 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
154614
157470
  };
154615
157471
  Returns: undefined;
154616
157472
  };
157473
+ printer_gebruik: {
157474
+ Args: {
157475
+ _printer: string;
157476
+ };
157477
+ Returns: import("../integrations/supabase/types").Json;
157478
+ };
157479
+ printer_routering: {
157480
+ Args: {
157481
+ _documenttype: string;
157482
+ _layout_id?: string;
157483
+ _papierformaat?: string;
157484
+ _print_plek_id?: string;
157485
+ _werkplek?: string;
157486
+ };
157487
+ Returns: import("../integrations/supabase/types").Json;
157488
+ };
157489
+ printplek_printer: {
157490
+ Args: {
157491
+ _documenttype: string;
157492
+ _plek: string;
157493
+ };
157494
+ Returns: string;
157495
+ };
157496
+ printplek_verwijder_impact: {
157497
+ Args: {
157498
+ _id: string;
157499
+ };
157500
+ Returns: import("../integrations/supabase/types").Json;
157501
+ };
154617
157502
  process_logistics_event: {
154618
157503
  Args: {
154619
157504
  p_event_id: string;
@@ -154660,6 +157545,12 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
154660
157545
  };
154661
157546
  Returns: import("../integrations/supabase/types").Json;
154662
157547
  };
157548
+ quote_create_from_scratch: {
157549
+ Args: {
157550
+ _payload: import("../integrations/supabase/types").Json;
157551
+ };
157552
+ Returns: import("../integrations/supabase/types").Json;
157553
+ };
154663
157554
  quote_create_from_source: {
154664
157555
  Args: {
154665
157556
  _payload?: import("../integrations/supabase/types").Json;
@@ -154675,6 +157566,13 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
154675
157566
  };
154676
157567
  Returns: boolean;
154677
157568
  };
157569
+ quote_fill_from_form: {
157570
+ Args: {
157571
+ _offerte_id: string;
157572
+ _payload: import("../integrations/supabase/types").Json;
157573
+ };
157574
+ Returns: import("../integrations/supabase/types").Json;
157575
+ };
154678
157576
  quote_get_billable_lines: {
154679
157577
  Args: {
154680
157578
  _quotation_id: string;
@@ -154704,12 +157602,50 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
154704
157602
  };
154705
157603
  Returns: import("../integrations/supabase/types").Json;
154706
157604
  };
157605
+ quote_public_accept: {
157606
+ Args: {
157607
+ _akkoord: boolean;
157608
+ _email: string;
157609
+ _ip_address?: string;
157610
+ _naam: string;
157611
+ _token: string;
157612
+ _user_agent?: string;
157613
+ };
157614
+ Returns: import("../integrations/supabase/types").Json;
157615
+ };
157616
+ quote_public_get: {
157617
+ Args: {
157618
+ _token: string;
157619
+ };
157620
+ Returns: import("../integrations/supabase/types").Json;
157621
+ };
157622
+ quote_public_sign: {
157623
+ Args: {
157624
+ _handtekening: string;
157625
+ _naam: string;
157626
+ _token: string;
157627
+ };
157628
+ Returns: import("../integrations/supabase/types").Json;
157629
+ };
154707
157630
  quote_queue_follow_up: {
154708
157631
  Args: {
154709
157632
  _offerte_id: string;
154710
157633
  };
154711
157634
  Returns: string;
154712
157635
  };
157636
+ quote_release_work_order: {
157637
+ Args: {
157638
+ _offerte_id: string;
157639
+ };
157640
+ Returns: import("../integrations/supabase/types").Json;
157641
+ };
157642
+ quote_sync_work_order: {
157643
+ Args: {
157644
+ _monteur_instructies?: string;
157645
+ _offerte_id: string;
157646
+ };
157647
+ Returns: boolean;
157648
+ };
154713
157649
  recompute_all_reserved_stock: {
154714
157650
  Args: never;
154715
157651
  Returns: undefined;
@@ -155661,6 +158597,10 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
155661
158597
  };
155662
158598
  Returns: number;
155663
158599
  };
158600
+ uren_heeft_pagina_toegang: {
158601
+ Args: never;
158602
+ Returns: boolean;
158603
+ };
155664
158604
  uren_is_beheerder: {
155665
158605
  Args: never;
155666
158606
  Returns: boolean;
@@ -155744,6 +158684,13 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
155744
158684
  Args: never;
155745
158685
  Returns: string;
155746
158686
  };
158687
+ uren_pagina_toegang_instellen: {
158688
+ Args: {
158689
+ _toegang: boolean;
158690
+ _user_id: string;
158691
+ };
158692
+ Returns: undefined;
158693
+ };
155747
158694
  uren_planning_dagagenda: {
155748
158695
  Args: {
155749
158696
  _tot: string;
@@ -155988,6 +158935,19 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
155988
158935
  user_id: string;
155989
158936
  }[];
155990
158937
  };
158938
+ vervang_printer: {
158939
+ Args: {
158940
+ _nieuw: string;
158941
+ _oud: string;
158942
+ };
158943
+ Returns: import("../integrations/supabase/types").Json;
158944
+ };
158945
+ verwijder_printplek: {
158946
+ Args: {
158947
+ _id: string;
158948
+ };
158949
+ Returns: import("../integrations/supabase/types").Json;
158950
+ };
155991
158951
  voorraad_cleanup_old_rows: {
155992
158952
  Args: never;
155993
158953
  Returns: import("../integrations/supabase/types").Json;
@@ -155998,6 +158958,16 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
155998
158958
  };
155999
158959
  Returns: number;
156000
158960
  };
158961
+ werkbon_pakket_tijden: {
158962
+ Args: {
158963
+ _werkbon_id: string;
158964
+ };
158965
+ Returns: {
158966
+ labor_minutes: number;
158967
+ total_minutes: number;
158968
+ travel_minutes: number;
158969
+ }[];
158970
+ };
156001
158971
  werkbon_totalen: {
156002
158972
  Args: {
156003
158973
  _werkbon_id: string;