@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
@@ -3145,6 +3145,7 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
3145
3145
  formaat_code: string;
3146
3146
  id: string;
3147
3147
  printer_id: string | null;
3148
+ printer_ontbreekt_sinds: string | null;
3148
3149
  updated_at: string;
3149
3150
  };
3150
3151
  Insert: {
@@ -3153,6 +3154,7 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
3153
3154
  formaat_code: string;
3154
3155
  id?: string;
3155
3156
  printer_id?: string | null;
3157
+ printer_ontbreekt_sinds?: string | null;
3156
3158
  updated_at?: string;
3157
3159
  };
3158
3160
  Update: {
@@ -3161,6 +3163,7 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
3161
3163
  formaat_code?: string;
3162
3164
  id?: string;
3163
3165
  printer_id?: string | null;
3166
+ printer_ontbreekt_sinds?: string | null;
3164
3167
  updated_at?: string;
3165
3168
  };
3166
3169
  Relationships: [{
@@ -3497,6 +3500,7 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
3497
3500
  papierformaat: string | null;
3498
3501
  print_plek_id: string;
3499
3502
  printer_id: string | null;
3503
+ printer_ontbreekt_sinds: string | null;
3500
3504
  updated_at: string;
3501
3505
  };
3502
3506
  Insert: {
@@ -3506,6 +3510,7 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
3506
3510
  papierformaat?: string | null;
3507
3511
  print_plek_id: string;
3508
3512
  printer_id?: string | null;
3513
+ printer_ontbreekt_sinds?: string | null;
3509
3514
  updated_at?: string;
3510
3515
  };
3511
3516
  Update: {
@@ -3515,6 +3520,7 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
3515
3520
  papierformaat?: string | null;
3516
3521
  print_plek_id?: string;
3517
3522
  printer_id?: string | null;
3523
+ printer_ontbreekt_sinds?: string | null;
3518
3524
  updated_at?: string;
3519
3525
  };
3520
3526
  Relationships: [{
@@ -3538,6 +3544,7 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
3538
3544
  id: string;
3539
3545
  papierformaat: string | null;
3540
3546
  printer_id: string | null;
3547
+ printer_ontbreekt_sinds: string | null;
3541
3548
  updated_at: string;
3542
3549
  werkplek: string;
3543
3550
  };
@@ -3547,6 +3554,7 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
3547
3554
  id?: string;
3548
3555
  papierformaat?: string | null;
3549
3556
  printer_id?: string | null;
3557
+ printer_ontbreekt_sinds?: string | null;
3550
3558
  updated_at?: string;
3551
3559
  werkplek: string;
3552
3560
  };
@@ -3556,6 +3564,7 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
3556
3564
  id?: string;
3557
3565
  papierformaat?: string | null;
3558
3566
  printer_id?: string | null;
3567
+ printer_ontbreekt_sinds?: string | null;
3559
3568
  updated_at?: string;
3560
3569
  werkplek?: string;
3561
3570
  };
@@ -6858,6 +6867,78 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
6858
6867
  referencedColumns: ["id"];
6859
6868
  }];
6860
6869
  };
6870
+ floriday_document_fetch_queue: {
6871
+ Row: {
6872
+ attempts: number;
6873
+ cancelled_reason: string | null;
6874
+ completed_at: string | null;
6875
+ connection_id: string;
6876
+ created_at: string;
6877
+ document_key: string;
6878
+ environment: string;
6879
+ id: string;
6880
+ kind: string;
6881
+ last_error: string | null;
6882
+ last_http_status: number | null;
6883
+ locked_at: string | null;
6884
+ locked_by: string | null;
6885
+ max_attempts: number;
6886
+ next_attempt_at: string;
6887
+ order_ref: string | null;
6888
+ params: import("../integrations/supabase/types").Json;
6889
+ status: string;
6890
+ updated_at: string;
6891
+ };
6892
+ Insert: {
6893
+ attempts?: number;
6894
+ cancelled_reason?: string | null;
6895
+ completed_at?: string | null;
6896
+ connection_id: string;
6897
+ created_at?: string;
6898
+ document_key: string;
6899
+ environment: string;
6900
+ id?: string;
6901
+ kind: string;
6902
+ last_error?: string | null;
6903
+ last_http_status?: number | null;
6904
+ locked_at?: string | null;
6905
+ locked_by?: string | null;
6906
+ max_attempts?: number;
6907
+ next_attempt_at?: string;
6908
+ order_ref?: string | null;
6909
+ params?: import("../integrations/supabase/types").Json;
6910
+ status?: string;
6911
+ updated_at?: string;
6912
+ };
6913
+ Update: {
6914
+ attempts?: number;
6915
+ cancelled_reason?: string | null;
6916
+ completed_at?: string | null;
6917
+ connection_id?: string;
6918
+ created_at?: string;
6919
+ document_key?: string;
6920
+ environment?: string;
6921
+ id?: string;
6922
+ kind?: string;
6923
+ last_error?: string | null;
6924
+ last_http_status?: number | null;
6925
+ locked_at?: string | null;
6926
+ locked_by?: string | null;
6927
+ max_attempts?: number;
6928
+ next_attempt_at?: string;
6929
+ order_ref?: string | null;
6930
+ params?: import("../integrations/supabase/types").Json;
6931
+ status?: string;
6932
+ updated_at?: string;
6933
+ };
6934
+ Relationships: [{
6935
+ foreignKeyName: "floriday_document_fetch_queue_connection_id_fkey";
6936
+ columns: ["connection_id"];
6937
+ isOneToOne: false;
6938
+ referencedRelation: "floriday_connections";
6939
+ referencedColumns: ["id"];
6940
+ }];
6941
+ };
6861
6942
  floriday_fulfillment_orders_cache: {
6862
6943
  Row: {
6863
6944
  auction_date: string | null;
@@ -7155,6 +7236,39 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
7155
7236
  referencedColumns: ["id"];
7156
7237
  }];
7157
7238
  };
7239
+ floriday_merge_log: {
7240
+ Row: {
7241
+ action: string;
7242
+ created_at: string;
7243
+ floriday_sales_order_ids: import("../integrations/supabase/types").Json;
7244
+ id: string;
7245
+ kept_order_id: string | null;
7246
+ lines: import("../integrations/supabase/types").Json;
7247
+ reason: string | null;
7248
+ removed_order_id: string | null;
7249
+ };
7250
+ Insert: {
7251
+ action: string;
7252
+ created_at?: string;
7253
+ floriday_sales_order_ids?: import("../integrations/supabase/types").Json;
7254
+ id?: string;
7255
+ kept_order_id?: string | null;
7256
+ lines?: import("../integrations/supabase/types").Json;
7257
+ reason?: string | null;
7258
+ removed_order_id?: string | null;
7259
+ };
7260
+ Update: {
7261
+ action?: string;
7262
+ created_at?: string;
7263
+ floriday_sales_order_ids?: import("../integrations/supabase/types").Json;
7264
+ id?: string;
7265
+ kept_order_id?: string | null;
7266
+ lines?: import("../integrations/supabase/types").Json;
7267
+ reason?: string | null;
7268
+ removed_order_id?: string | null;
7269
+ };
7270
+ Relationships: [];
7271
+ };
7158
7272
  floriday_network_cache: {
7159
7273
  Row: {
7160
7274
  city: string | null;
@@ -9390,6 +9504,57 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
9390
9504
  };
9391
9505
  Relationships: [];
9392
9506
  };
9507
+ itk_offerte_acceptaties: {
9508
+ Row: {
9509
+ accepted_at: string;
9510
+ akkoordgever_email: string;
9511
+ akkoordgever_naam: string;
9512
+ akkoordverklaring: string;
9513
+ id: string;
9514
+ inhoud_hash: string;
9515
+ ip_address: unknown;
9516
+ offerte_id: string;
9517
+ offerte_number: string;
9518
+ offerte_snapshot: import("../integrations/supabase/types").Json;
9519
+ user_agent: string | null;
9520
+ versie: string;
9521
+ };
9522
+ Insert: {
9523
+ accepted_at?: string;
9524
+ akkoordgever_email: string;
9525
+ akkoordgever_naam: string;
9526
+ akkoordverklaring: string;
9527
+ id?: string;
9528
+ inhoud_hash: string;
9529
+ ip_address?: unknown;
9530
+ offerte_id: string;
9531
+ offerte_number: string;
9532
+ offerte_snapshot: import("../integrations/supabase/types").Json;
9533
+ user_agent?: string | null;
9534
+ versie: string;
9535
+ };
9536
+ Update: {
9537
+ accepted_at?: string;
9538
+ akkoordgever_email?: string;
9539
+ akkoordgever_naam?: string;
9540
+ akkoordverklaring?: string;
9541
+ id?: string;
9542
+ inhoud_hash?: string;
9543
+ ip_address?: unknown;
9544
+ offerte_id?: string;
9545
+ offerte_number?: string;
9546
+ offerte_snapshot?: import("../integrations/supabase/types").Json;
9547
+ user_agent?: string | null;
9548
+ versie?: string;
9549
+ };
9550
+ Relationships: [{
9551
+ foreignKeyName: "itk_offerte_acceptaties_offerte_id_fkey";
9552
+ columns: ["offerte_id"];
9553
+ isOneToOne: true;
9554
+ referencedRelation: "itk_offertes";
9555
+ referencedColumns: ["id"];
9556
+ }];
9557
+ };
9393
9558
  itk_offerte_events: {
9394
9559
  Row: {
9395
9560
  created_at: string;
@@ -9603,6 +9768,7 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
9603
9768
  itk_offertes: {
9604
9769
  Row: {
9605
9770
  aandachtspunten: string | null;
9771
+ acceptance_id: string | null;
9606
9772
  ai_generated: boolean;
9607
9773
  approved_at: string | null;
9608
9774
  binnen_mandaat: boolean;
@@ -9621,6 +9787,11 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
9621
9787
  onderwerp: string | null;
9622
9788
  rejected_at: string | null;
9623
9789
  sent_at: string | null;
9790
+ sign_token: string;
9791
+ signature_data: string | null;
9792
+ signed_at: string | null;
9793
+ signer_email: string | null;
9794
+ signer_name: string | null;
9624
9795
  source_number: string | null;
9625
9796
  source_ref: string | null;
9626
9797
  source_type: string;
@@ -9635,11 +9806,13 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
9635
9806
  viewed_at: string | null;
9636
9807
  volgnummer: number | null;
9637
9808
  voorwaarden: string | null;
9809
+ werkbon_concept: import("../integrations/supabase/types").Json | null;
9638
9810
  werkbon_id: string | null;
9639
9811
  work_location_id: string | null;
9640
9812
  };
9641
9813
  Insert: {
9642
9814
  aandachtspunten?: string | null;
9815
+ acceptance_id?: string | null;
9643
9816
  ai_generated?: boolean;
9644
9817
  approved_at?: string | null;
9645
9818
  binnen_mandaat?: boolean;
@@ -9658,6 +9831,11 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
9658
9831
  onderwerp?: string | null;
9659
9832
  rejected_at?: string | null;
9660
9833
  sent_at?: string | null;
9834
+ sign_token?: string;
9835
+ signature_data?: string | null;
9836
+ signed_at?: string | null;
9837
+ signer_email?: string | null;
9838
+ signer_name?: string | null;
9661
9839
  source_number?: string | null;
9662
9840
  source_ref?: string | null;
9663
9841
  source_type?: string;
@@ -9672,11 +9850,13 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
9672
9850
  viewed_at?: string | null;
9673
9851
  volgnummer?: number | null;
9674
9852
  voorwaarden?: string | null;
9853
+ werkbon_concept?: import("../integrations/supabase/types").Json | null;
9675
9854
  werkbon_id?: string | null;
9676
9855
  work_location_id?: string | null;
9677
9856
  };
9678
9857
  Update: {
9679
9858
  aandachtspunten?: string | null;
9859
+ acceptance_id?: string | null;
9680
9860
  ai_generated?: boolean;
9681
9861
  approved_at?: string | null;
9682
9862
  binnen_mandaat?: boolean;
@@ -9695,6 +9875,11 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
9695
9875
  onderwerp?: string | null;
9696
9876
  rejected_at?: string | null;
9697
9877
  sent_at?: string | null;
9878
+ sign_token?: string;
9879
+ signature_data?: string | null;
9880
+ signed_at?: string | null;
9881
+ signer_email?: string | null;
9882
+ signer_name?: string | null;
9698
9883
  source_number?: string | null;
9699
9884
  source_ref?: string | null;
9700
9885
  source_type?: string;
@@ -9709,10 +9894,17 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
9709
9894
  viewed_at?: string | null;
9710
9895
  volgnummer?: number | null;
9711
9896
  voorwaarden?: string | null;
9897
+ werkbon_concept?: import("../integrations/supabase/types").Json | null;
9712
9898
  werkbon_id?: string | null;
9713
9899
  work_location_id?: string | null;
9714
9900
  };
9715
9901
  Relationships: [{
9902
+ foreignKeyName: "itk_offertes_acceptance_id_fkey";
9903
+ columns: ["acceptance_id"];
9904
+ isOneToOne: false;
9905
+ referencedRelation: "itk_offerte_acceptaties";
9906
+ referencedColumns: ["id"];
9907
+ }, {
9716
9908
  foreignKeyName: "itk_offertes_contact_id_fkey";
9717
9909
  columns: ["contact_id"];
9718
9910
  isOneToOne: false;
@@ -11151,6 +11343,60 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
11151
11343
  };
11152
11344
  Relationships: [];
11153
11345
  };
11346
+ logistics_order_merge_lines: {
11347
+ Row: {
11348
+ from_order_id: string;
11349
+ from_order_number: string | null;
11350
+ group_key: string;
11351
+ id: string;
11352
+ merged_at: string;
11353
+ order_item_id: string;
11354
+ ordered_at: string | null;
11355
+ product_id: string | null;
11356
+ product_name: string | null;
11357
+ quantity: number | null;
11358
+ reason: string;
11359
+ sales_order_id: string | null;
11360
+ source_line_key: string | null;
11361
+ to_order_id: string;
11362
+ to_order_number: string | null;
11363
+ };
11364
+ Insert: {
11365
+ from_order_id: string;
11366
+ from_order_number?: string | null;
11367
+ group_key: string;
11368
+ id?: string;
11369
+ merged_at?: string;
11370
+ order_item_id: string;
11371
+ ordered_at?: string | null;
11372
+ product_id?: string | null;
11373
+ product_name?: string | null;
11374
+ quantity?: number | null;
11375
+ reason: string;
11376
+ sales_order_id?: string | null;
11377
+ source_line_key?: string | null;
11378
+ to_order_id: string;
11379
+ to_order_number?: string | null;
11380
+ };
11381
+ Update: {
11382
+ from_order_id?: string;
11383
+ from_order_number?: string | null;
11384
+ group_key?: string;
11385
+ id?: string;
11386
+ merged_at?: string;
11387
+ order_item_id?: string;
11388
+ ordered_at?: string | null;
11389
+ product_id?: string | null;
11390
+ product_name?: string | null;
11391
+ quantity?: number | null;
11392
+ reason?: string;
11393
+ sales_order_id?: string | null;
11394
+ source_line_key?: string | null;
11395
+ to_order_id?: string;
11396
+ to_order_number?: string | null;
11397
+ };
11398
+ Relationships: [];
11399
+ };
11154
11400
  logistics_order_merges: {
11155
11401
  Row: {
11156
11402
  group_key: string;
@@ -14791,6 +15037,9 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
14791
15037
  product_id: string | null;
14792
15038
  product_name: string;
14793
15039
  quantity: number;
15040
+ quarantine_reason: string | null;
15041
+ quarantined_at: string | null;
15042
+ quarantined_into_order_id: string | null;
14794
15043
  source_line_key: string | null;
14795
15044
  unit: string;
14796
15045
  unit_price: number | null;
@@ -14807,6 +15056,9 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
14807
15056
  product_id?: string | null;
14808
15057
  product_name: string;
14809
15058
  quantity?: number;
15059
+ quarantine_reason?: string | null;
15060
+ quarantined_at?: string | null;
15061
+ quarantined_into_order_id?: string | null;
14810
15062
  source_line_key?: string | null;
14811
15063
  unit?: string;
14812
15064
  unit_price?: number | null;
@@ -14823,6 +15075,9 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
14823
15075
  product_id?: string | null;
14824
15076
  product_name?: string;
14825
15077
  quantity?: number;
15078
+ quarantine_reason?: string | null;
15079
+ quarantined_at?: string | null;
15080
+ quarantined_into_order_id?: string | null;
14826
15081
  source_line_key?: string | null;
14827
15082
  unit?: string;
14828
15083
  unit_price?: number | null;
@@ -16254,6 +16509,57 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
16254
16509
  };
16255
16510
  Relationships: [];
16256
16511
  };
16512
+ planning_confirmation_log: {
16513
+ Row: {
16514
+ created_at: string;
16515
+ end_at: string;
16516
+ id: string;
16517
+ kind: string;
16518
+ outbox_id: string | null;
16519
+ planning_item_id: string;
16520
+ reason: string | null;
16521
+ recipient: string | null;
16522
+ start_at: string;
16523
+ status: string;
16524
+ };
16525
+ Insert: {
16526
+ created_at?: string;
16527
+ end_at: string;
16528
+ id?: string;
16529
+ kind?: string;
16530
+ outbox_id?: string | null;
16531
+ planning_item_id: string;
16532
+ reason?: string | null;
16533
+ recipient?: string | null;
16534
+ start_at: string;
16535
+ status: string;
16536
+ };
16537
+ Update: {
16538
+ created_at?: string;
16539
+ end_at?: string;
16540
+ id?: string;
16541
+ kind?: string;
16542
+ outbox_id?: string | null;
16543
+ planning_item_id?: string;
16544
+ reason?: string | null;
16545
+ recipient?: string | null;
16546
+ start_at?: string;
16547
+ status?: string;
16548
+ };
16549
+ Relationships: [{
16550
+ foreignKeyName: "planning_confirmation_log_planning_item_id_fkey";
16551
+ columns: ["planning_item_id"];
16552
+ isOneToOne: false;
16553
+ referencedRelation: "planning_items";
16554
+ referencedColumns: ["id"];
16555
+ }, {
16556
+ foreignKeyName: "planning_confirmation_log_planning_item_id_fkey";
16557
+ columns: ["planning_item_id"];
16558
+ isOneToOne: false;
16559
+ referencedRelation: "planning_overview";
16560
+ referencedColumns: ["id"];
16561
+ }];
16562
+ };
16257
16563
  planning_item_assistants: {
16258
16564
  Row: {
16259
16565
  created_at: string;
@@ -16338,6 +16644,69 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
16338
16644
  referencedColumns: ["id"];
16339
16645
  }];
16340
16646
  };
16647
+ planning_mail_settings: {
16648
+ Row: {
16649
+ body_template: string;
16650
+ cc: string[];
16651
+ connection_id: string | null;
16652
+ created_at: string;
16653
+ email_purpose: string | null;
16654
+ enabled: boolean;
16655
+ id: boolean;
16656
+ reply_to: string | null;
16657
+ reschedule_body_template: string;
16658
+ reschedule_subject_template: string;
16659
+ subject_template: string;
16660
+ timezone: string;
16661
+ updated_at: string;
16662
+ updated_by: string | null;
16663
+ };
16664
+ Insert: {
16665
+ body_template?: string;
16666
+ cc?: string[];
16667
+ connection_id?: string | null;
16668
+ created_at?: string;
16669
+ email_purpose?: string | null;
16670
+ enabled?: boolean;
16671
+ id?: boolean;
16672
+ reply_to?: string | null;
16673
+ reschedule_body_template?: string;
16674
+ reschedule_subject_template?: string;
16675
+ subject_template?: string;
16676
+ timezone?: string;
16677
+ updated_at?: string;
16678
+ updated_by?: string | null;
16679
+ };
16680
+ Update: {
16681
+ body_template?: string;
16682
+ cc?: string[];
16683
+ connection_id?: string | null;
16684
+ created_at?: string;
16685
+ email_purpose?: string | null;
16686
+ enabled?: boolean;
16687
+ id?: boolean;
16688
+ reply_to?: string | null;
16689
+ reschedule_body_template?: string;
16690
+ reschedule_subject_template?: string;
16691
+ subject_template?: string;
16692
+ timezone?: string;
16693
+ updated_at?: string;
16694
+ updated_by?: string | null;
16695
+ };
16696
+ Relationships: [{
16697
+ foreignKeyName: "planning_mail_settings_connection_id_fkey";
16698
+ columns: ["connection_id"];
16699
+ isOneToOne: false;
16700
+ referencedRelation: "email_auth_connections";
16701
+ referencedColumns: ["id"];
16702
+ }, {
16703
+ foreignKeyName: "planning_mail_settings_connection_id_fkey";
16704
+ columns: ["connection_id"];
16705
+ isOneToOne: false;
16706
+ referencedRelation: "email_auth_connections_safe";
16707
+ referencedColumns: ["id"];
16708
+ }];
16709
+ };
16341
16710
  planning_monteur_day_locations: {
16342
16711
  Row: {
16343
16712
  created_at: string;
@@ -16725,6 +17094,27 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
16725
17094
  };
16726
17095
  Relationships: [];
16727
17096
  };
17097
+ print_genegeerde_computers: {
17098
+ Row: {
17099
+ computer_naam: string;
17100
+ genegeerd_door: string | null;
17101
+ genegeerd_op: string;
17102
+ id: string;
17103
+ };
17104
+ Insert: {
17105
+ computer_naam: string;
17106
+ genegeerd_door?: string | null;
17107
+ genegeerd_op?: string;
17108
+ id?: string;
17109
+ };
17110
+ Update: {
17111
+ computer_naam?: string;
17112
+ genegeerd_door?: string | null;
17113
+ genegeerd_op?: string;
17114
+ id?: string;
17115
+ };
17116
+ Relationships: [];
17117
+ };
16728
17118
  print_job_logs: {
16729
17119
  Row: {
16730
17120
  created_at: string;
@@ -16995,6 +17385,39 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
16995
17385
  referencedColumns: ["id"];
16996
17386
  }];
16997
17387
  };
17388
+ print_plek_printers: {
17389
+ Row: {
17390
+ id: string;
17391
+ print_plek_id: string;
17392
+ printer_id: string;
17393
+ toegevoegd_op: string;
17394
+ };
17395
+ Insert: {
17396
+ id?: string;
17397
+ print_plek_id: string;
17398
+ printer_id: string;
17399
+ toegevoegd_op?: string;
17400
+ };
17401
+ Update: {
17402
+ id?: string;
17403
+ print_plek_id?: string;
17404
+ printer_id?: string;
17405
+ toegevoegd_op?: string;
17406
+ };
17407
+ Relationships: [{
17408
+ foreignKeyName: "print_plek_printers_print_plek_id_fkey";
17409
+ columns: ["print_plek_id"];
17410
+ isOneToOne: false;
17411
+ referencedRelation: "print_plekken";
17412
+ referencedColumns: ["id"];
17413
+ }, {
17414
+ foreignKeyName: "print_plek_printers_printer_id_fkey";
17415
+ columns: ["printer_id"];
17416
+ isOneToOne: false;
17417
+ referencedRelation: "printers";
17418
+ referencedColumns: ["id"];
17419
+ }];
17420
+ };
16998
17421
  print_plekken: {
16999
17422
  Row: {
17000
17423
  actief: boolean;
@@ -17210,7 +17633,8 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
17210
17633
  created_at: string;
17211
17634
  id: string;
17212
17635
  layout_id: string;
17213
- printer_id: string;
17636
+ printer_id: string | null;
17637
+ printer_ontbreekt_sinds: string | null;
17214
17638
  prioriteit: number;
17215
17639
  updated_at: string;
17216
17640
  };
@@ -17218,7 +17642,8 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
17218
17642
  created_at?: string;
17219
17643
  id?: string;
17220
17644
  layout_id: string;
17221
- printer_id: string;
17645
+ printer_id?: string | null;
17646
+ printer_ontbreekt_sinds?: string | null;
17222
17647
  prioriteit?: number;
17223
17648
  updated_at?: string;
17224
17649
  };
@@ -17226,7 +17651,8 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
17226
17651
  created_at?: string;
17227
17652
  id?: string;
17228
17653
  layout_id?: string;
17229
- printer_id?: string;
17654
+ printer_id?: string | null;
17655
+ printer_ontbreekt_sinds?: string | null;
17230
17656
  prioriteit?: number;
17231
17657
  updated_at?: string;
17232
17658
  };
@@ -21714,6 +22140,30 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
21714
22140
  };
21715
22141
  Relationships: [];
21716
22142
  };
22143
+ uren_pagina_toegang: {
22144
+ Row: {
22145
+ created_at: string;
22146
+ id: string;
22147
+ user_id: string;
22148
+ };
22149
+ Insert: {
22150
+ created_at?: string;
22151
+ id?: string;
22152
+ user_id: string;
22153
+ };
22154
+ Update: {
22155
+ created_at?: string;
22156
+ id?: string;
22157
+ user_id?: string;
22158
+ };
22159
+ Relationships: [{
22160
+ foreignKeyName: "uren_pagina_toegang_user_id_fkey";
22161
+ columns: ["user_id"];
22162
+ isOneToOne: true;
22163
+ referencedRelation: "profiles";
22164
+ referencedColumns: ["id"];
22165
+ }];
22166
+ };
21717
22167
  uren_settings: {
21718
22168
  Row: {
21719
22169
  break_minutes: number;
@@ -23118,12 +23568,14 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
23118
23568
  created_at: string;
23119
23569
  default_quantity: number;
23120
23570
  description: string | null;
23121
- duration_minutes: number | null;
23571
+ duration_minutes: number;
23122
23572
  id: string;
23573
+ labor_minutes: number;
23123
23574
  mandaat_type: string | null;
23124
23575
  name: string;
23125
23576
  price_mode: string;
23126
23577
  sort_order: number;
23578
+ travel_minutes: number;
23127
23579
  unit_price_cents: number;
23128
23580
  updated_at: string;
23129
23581
  };
@@ -23135,12 +23587,14 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
23135
23587
  created_at?: string;
23136
23588
  default_quantity?: number;
23137
23589
  description?: string | null;
23138
- duration_minutes?: number | null;
23590
+ duration_minutes?: number;
23139
23591
  id?: string;
23592
+ labor_minutes?: number;
23140
23593
  mandaat_type?: string | null;
23141
23594
  name: string;
23142
23595
  price_mode?: string;
23143
23596
  sort_order?: number;
23597
+ travel_minutes?: number;
23144
23598
  unit_price_cents?: number;
23145
23599
  updated_at?: string;
23146
23600
  };
@@ -23152,12 +23606,14 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
23152
23606
  created_at?: string;
23153
23607
  default_quantity?: number;
23154
23608
  description?: string | null;
23155
- duration_minutes?: number | null;
23609
+ duration_minutes?: number;
23156
23610
  id?: string;
23611
+ labor_minutes?: number;
23157
23612
  mandaat_type?: string | null;
23158
23613
  name?: string;
23159
23614
  price_mode?: string;
23160
23615
  sort_order?: number;
23616
+ travel_minutes?: number;
23161
23617
  unit_price_cents?: number;
23162
23618
  updated_at?: string;
23163
23619
  };
@@ -24712,6 +25168,12 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
24712
25168
  };
24713
25169
  Returns: undefined;
24714
25170
  };
25171
+ _quote_release_work_order_intern: {
25172
+ Args: {
25173
+ _offerte_id: string;
25174
+ };
25175
+ Returns: import("../integrations/supabase/types").Json;
25176
+ };
24715
25177
  _wo_is_planner: {
24716
25178
  Args: never;
24717
25179
  Returns: boolean;
@@ -29583,6 +30045,12 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
29583
30045
  };
29584
30046
  Returns: import("../integrations/supabase/types").Json;
29585
30047
  };
30048
+ pick_verify_rows: {
30049
+ Args: {
30050
+ _rows: import("../integrations/supabase/types").Json;
30051
+ };
30052
+ Returns: import("../integrations/supabase/types").Json;
30053
+ };
29586
30054
  pickstation_get_orders_raw: {
29587
30055
  Args: never;
29588
30056
  Returns: import("../integrations/supabase/types").Json;
@@ -29645,6 +30113,12 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
29645
30113
  };
29646
30114
  Returns: undefined;
29647
30115
  };
30116
+ planning_html_escape: {
30117
+ Args: {
30118
+ t: string;
30119
+ };
30120
+ Returns: string;
30121
+ };
29648
30122
  planning_list: {
29649
30123
  Args: {
29650
30124
  _from: string;
@@ -29699,6 +30173,12 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
29699
30173
  id: string;
29700
30174
  }[];
29701
30175
  };
30176
+ planning_urlencode: {
30177
+ Args: {
30178
+ t: string;
30179
+ };
30180
+ Returns: string;
30181
+ };
29702
30182
  print_preview_toestaan: {
29703
30183
  Args: {
29704
30184
  _max?: number;
@@ -29717,6 +30197,35 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
29717
30197
  };
29718
30198
  Returns: undefined;
29719
30199
  };
30200
+ printer_gebruik: {
30201
+ Args: {
30202
+ _printer: string;
30203
+ };
30204
+ Returns: import("../integrations/supabase/types").Json;
30205
+ };
30206
+ printer_routering: {
30207
+ Args: {
30208
+ _documenttype: string;
30209
+ _layout_id?: string;
30210
+ _papierformaat?: string;
30211
+ _print_plek_id?: string;
30212
+ _werkplek?: string;
30213
+ };
30214
+ Returns: import("../integrations/supabase/types").Json;
30215
+ };
30216
+ printplek_printer: {
30217
+ Args: {
30218
+ _documenttype: string;
30219
+ _plek: string;
30220
+ };
30221
+ Returns: string;
30222
+ };
30223
+ printplek_verwijder_impact: {
30224
+ Args: {
30225
+ _id: string;
30226
+ };
30227
+ Returns: import("../integrations/supabase/types").Json;
30228
+ };
29720
30229
  process_logistics_event: {
29721
30230
  Args: {
29722
30231
  p_event_id: string;
@@ -29763,6 +30272,12 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
29763
30272
  };
29764
30273
  Returns: import("../integrations/supabase/types").Json;
29765
30274
  };
30275
+ quote_create_from_scratch: {
30276
+ Args: {
30277
+ _payload: import("../integrations/supabase/types").Json;
30278
+ };
30279
+ Returns: import("../integrations/supabase/types").Json;
30280
+ };
29766
30281
  quote_create_from_source: {
29767
30282
  Args: {
29768
30283
  _payload?: import("../integrations/supabase/types").Json;
@@ -29778,6 +30293,13 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
29778
30293
  };
29779
30294
  Returns: boolean;
29780
30295
  };
30296
+ quote_fill_from_form: {
30297
+ Args: {
30298
+ _offerte_id: string;
30299
+ _payload: import("../integrations/supabase/types").Json;
30300
+ };
30301
+ Returns: import("../integrations/supabase/types").Json;
30302
+ };
29781
30303
  quote_get_billable_lines: {
29782
30304
  Args: {
29783
30305
  _quotation_id: string;
@@ -29807,12 +30329,50 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
29807
30329
  };
29808
30330
  Returns: import("../integrations/supabase/types").Json;
29809
30331
  };
30332
+ quote_public_accept: {
30333
+ Args: {
30334
+ _akkoord: boolean;
30335
+ _email: string;
30336
+ _ip_address?: string;
30337
+ _naam: string;
30338
+ _token: string;
30339
+ _user_agent?: string;
30340
+ };
30341
+ Returns: import("../integrations/supabase/types").Json;
30342
+ };
30343
+ quote_public_get: {
30344
+ Args: {
30345
+ _token: string;
30346
+ };
30347
+ Returns: import("../integrations/supabase/types").Json;
30348
+ };
30349
+ quote_public_sign: {
30350
+ Args: {
30351
+ _handtekening: string;
30352
+ _naam: string;
30353
+ _token: string;
30354
+ };
30355
+ Returns: import("../integrations/supabase/types").Json;
30356
+ };
29810
30357
  quote_queue_follow_up: {
29811
30358
  Args: {
29812
30359
  _offerte_id: string;
29813
30360
  };
29814
30361
  Returns: string;
29815
30362
  };
30363
+ quote_release_work_order: {
30364
+ Args: {
30365
+ _offerte_id: string;
30366
+ };
30367
+ Returns: import("../integrations/supabase/types").Json;
30368
+ };
30369
+ quote_sync_work_order: {
30370
+ Args: {
30371
+ _monteur_instructies?: string;
30372
+ _offerte_id: string;
30373
+ };
30374
+ Returns: boolean;
30375
+ };
29816
30376
  recompute_all_reserved_stock: {
29817
30377
  Args: never;
29818
30378
  Returns: undefined;
@@ -30764,6 +31324,10 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
30764
31324
  };
30765
31325
  Returns: number;
30766
31326
  };
31327
+ uren_heeft_pagina_toegang: {
31328
+ Args: never;
31329
+ Returns: boolean;
31330
+ };
30767
31331
  uren_is_beheerder: {
30768
31332
  Args: never;
30769
31333
  Returns: boolean;
@@ -30847,6 +31411,13 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
30847
31411
  Args: never;
30848
31412
  Returns: string;
30849
31413
  };
31414
+ uren_pagina_toegang_instellen: {
31415
+ Args: {
31416
+ _toegang: boolean;
31417
+ _user_id: string;
31418
+ };
31419
+ Returns: undefined;
31420
+ };
30850
31421
  uren_planning_dagagenda: {
30851
31422
  Args: {
30852
31423
  _tot: string;
@@ -31091,6 +31662,19 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
31091
31662
  user_id: string;
31092
31663
  }[];
31093
31664
  };
31665
+ vervang_printer: {
31666
+ Args: {
31667
+ _nieuw: string;
31668
+ _oud: string;
31669
+ };
31670
+ Returns: import("../integrations/supabase/types").Json;
31671
+ };
31672
+ verwijder_printplek: {
31673
+ Args: {
31674
+ _id: string;
31675
+ };
31676
+ Returns: import("../integrations/supabase/types").Json;
31677
+ };
31094
31678
  voorraad_cleanup_old_rows: {
31095
31679
  Args: never;
31096
31680
  Returns: import("../integrations/supabase/types").Json;
@@ -31101,6 +31685,16 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
31101
31685
  };
31102
31686
  Returns: number;
31103
31687
  };
31688
+ werkbon_pakket_tijden: {
31689
+ Args: {
31690
+ _werkbon_id: string;
31691
+ };
31692
+ Returns: {
31693
+ labor_minutes: number;
31694
+ total_minutes: number;
31695
+ travel_minutes: number;
31696
+ }[];
31697
+ };
31104
31698
  werkbon_totalen: {
31105
31699
  Args: {
31106
31700
  _werkbon_id: string;