@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
@@ -3141,6 +3141,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
3141
3141
  formaat_code: string;
3142
3142
  id: string;
3143
3143
  printer_id: string | null;
3144
+ printer_ontbreekt_sinds: string | null;
3144
3145
  updated_at: string;
3145
3146
  };
3146
3147
  Insert: {
@@ -3149,6 +3150,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
3149
3150
  formaat_code: string;
3150
3151
  id?: string;
3151
3152
  printer_id?: string | null;
3153
+ printer_ontbreekt_sinds?: string | null;
3152
3154
  updated_at?: string;
3153
3155
  };
3154
3156
  Update: {
@@ -3157,6 +3159,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
3157
3159
  formaat_code?: string;
3158
3160
  id?: string;
3159
3161
  printer_id?: string | null;
3162
+ printer_ontbreekt_sinds?: string | null;
3160
3163
  updated_at?: string;
3161
3164
  };
3162
3165
  Relationships: [{
@@ -3493,6 +3496,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
3493
3496
  papierformaat: string | null;
3494
3497
  print_plek_id: string;
3495
3498
  printer_id: string | null;
3499
+ printer_ontbreekt_sinds: string | null;
3496
3500
  updated_at: string;
3497
3501
  };
3498
3502
  Insert: {
@@ -3502,6 +3506,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
3502
3506
  papierformaat?: string | null;
3503
3507
  print_plek_id: string;
3504
3508
  printer_id?: string | null;
3509
+ printer_ontbreekt_sinds?: string | null;
3505
3510
  updated_at?: string;
3506
3511
  };
3507
3512
  Update: {
@@ -3511,6 +3516,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
3511
3516
  papierformaat?: string | null;
3512
3517
  print_plek_id?: string;
3513
3518
  printer_id?: string | null;
3519
+ printer_ontbreekt_sinds?: string | null;
3514
3520
  updated_at?: string;
3515
3521
  };
3516
3522
  Relationships: [{
@@ -3534,6 +3540,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
3534
3540
  id: string;
3535
3541
  papierformaat: string | null;
3536
3542
  printer_id: string | null;
3543
+ printer_ontbreekt_sinds: string | null;
3537
3544
  updated_at: string;
3538
3545
  werkplek: string;
3539
3546
  };
@@ -3543,6 +3550,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
3543
3550
  id?: string;
3544
3551
  papierformaat?: string | null;
3545
3552
  printer_id?: string | null;
3553
+ printer_ontbreekt_sinds?: string | null;
3546
3554
  updated_at?: string;
3547
3555
  werkplek: string;
3548
3556
  };
@@ -3552,6 +3560,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
3552
3560
  id?: string;
3553
3561
  papierformaat?: string | null;
3554
3562
  printer_id?: string | null;
3563
+ printer_ontbreekt_sinds?: string | null;
3555
3564
  updated_at?: string;
3556
3565
  werkplek?: string;
3557
3566
  };
@@ -6854,6 +6863,78 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
6854
6863
  referencedColumns: ["id"];
6855
6864
  }];
6856
6865
  };
6866
+ floriday_document_fetch_queue: {
6867
+ Row: {
6868
+ attempts: number;
6869
+ cancelled_reason: string | null;
6870
+ completed_at: string | null;
6871
+ connection_id: string;
6872
+ created_at: string;
6873
+ document_key: string;
6874
+ environment: string;
6875
+ id: string;
6876
+ kind: string;
6877
+ last_error: string | null;
6878
+ last_http_status: number | null;
6879
+ locked_at: string | null;
6880
+ locked_by: string | null;
6881
+ max_attempts: number;
6882
+ next_attempt_at: string;
6883
+ order_ref: string | null;
6884
+ params: import("./types").Json;
6885
+ status: string;
6886
+ updated_at: string;
6887
+ };
6888
+ Insert: {
6889
+ attempts?: number;
6890
+ cancelled_reason?: string | null;
6891
+ completed_at?: string | null;
6892
+ connection_id: string;
6893
+ created_at?: string;
6894
+ document_key: string;
6895
+ environment: string;
6896
+ id?: string;
6897
+ kind: string;
6898
+ last_error?: string | null;
6899
+ last_http_status?: number | null;
6900
+ locked_at?: string | null;
6901
+ locked_by?: string | null;
6902
+ max_attempts?: number;
6903
+ next_attempt_at?: string;
6904
+ order_ref?: string | null;
6905
+ params?: import("./types").Json;
6906
+ status?: string;
6907
+ updated_at?: string;
6908
+ };
6909
+ Update: {
6910
+ attempts?: number;
6911
+ cancelled_reason?: string | null;
6912
+ completed_at?: string | null;
6913
+ connection_id?: string;
6914
+ created_at?: string;
6915
+ document_key?: string;
6916
+ environment?: string;
6917
+ id?: string;
6918
+ kind?: string;
6919
+ last_error?: string | null;
6920
+ last_http_status?: number | null;
6921
+ locked_at?: string | null;
6922
+ locked_by?: string | null;
6923
+ max_attempts?: number;
6924
+ next_attempt_at?: string;
6925
+ order_ref?: string | null;
6926
+ params?: import("./types").Json;
6927
+ status?: string;
6928
+ updated_at?: string;
6929
+ };
6930
+ Relationships: [{
6931
+ foreignKeyName: "floriday_document_fetch_queue_connection_id_fkey";
6932
+ columns: ["connection_id"];
6933
+ isOneToOne: false;
6934
+ referencedRelation: "floriday_connections";
6935
+ referencedColumns: ["id"];
6936
+ }];
6937
+ };
6857
6938
  floriday_fulfillment_orders_cache: {
6858
6939
  Row: {
6859
6940
  auction_date: string | null;
@@ -7151,6 +7232,39 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
7151
7232
  referencedColumns: ["id"];
7152
7233
  }];
7153
7234
  };
7235
+ floriday_merge_log: {
7236
+ Row: {
7237
+ action: string;
7238
+ created_at: string;
7239
+ floriday_sales_order_ids: import("./types").Json;
7240
+ id: string;
7241
+ kept_order_id: string | null;
7242
+ lines: import("./types").Json;
7243
+ reason: string | null;
7244
+ removed_order_id: string | null;
7245
+ };
7246
+ Insert: {
7247
+ action: string;
7248
+ created_at?: string;
7249
+ floriday_sales_order_ids?: import("./types").Json;
7250
+ id?: string;
7251
+ kept_order_id?: string | null;
7252
+ lines?: import("./types").Json;
7253
+ reason?: string | null;
7254
+ removed_order_id?: string | null;
7255
+ };
7256
+ Update: {
7257
+ action?: string;
7258
+ created_at?: string;
7259
+ floriday_sales_order_ids?: import("./types").Json;
7260
+ id?: string;
7261
+ kept_order_id?: string | null;
7262
+ lines?: import("./types").Json;
7263
+ reason?: string | null;
7264
+ removed_order_id?: string | null;
7265
+ };
7266
+ Relationships: [];
7267
+ };
7154
7268
  floriday_network_cache: {
7155
7269
  Row: {
7156
7270
  city: string | null;
@@ -9386,6 +9500,57 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
9386
9500
  };
9387
9501
  Relationships: [];
9388
9502
  };
9503
+ itk_offerte_acceptaties: {
9504
+ Row: {
9505
+ accepted_at: string;
9506
+ akkoordgever_email: string;
9507
+ akkoordgever_naam: string;
9508
+ akkoordverklaring: string;
9509
+ id: string;
9510
+ inhoud_hash: string;
9511
+ ip_address: unknown;
9512
+ offerte_id: string;
9513
+ offerte_number: string;
9514
+ offerte_snapshot: import("./types").Json;
9515
+ user_agent: string | null;
9516
+ versie: string;
9517
+ };
9518
+ Insert: {
9519
+ accepted_at?: string;
9520
+ akkoordgever_email: string;
9521
+ akkoordgever_naam: string;
9522
+ akkoordverklaring: string;
9523
+ id?: string;
9524
+ inhoud_hash: string;
9525
+ ip_address?: unknown;
9526
+ offerte_id: string;
9527
+ offerte_number: string;
9528
+ offerte_snapshot: import("./types").Json;
9529
+ user_agent?: string | null;
9530
+ versie: string;
9531
+ };
9532
+ Update: {
9533
+ accepted_at?: string;
9534
+ akkoordgever_email?: string;
9535
+ akkoordgever_naam?: string;
9536
+ akkoordverklaring?: string;
9537
+ id?: string;
9538
+ inhoud_hash?: string;
9539
+ ip_address?: unknown;
9540
+ offerte_id?: string;
9541
+ offerte_number?: string;
9542
+ offerte_snapshot?: import("./types").Json;
9543
+ user_agent?: string | null;
9544
+ versie?: string;
9545
+ };
9546
+ Relationships: [{
9547
+ foreignKeyName: "itk_offerte_acceptaties_offerte_id_fkey";
9548
+ columns: ["offerte_id"];
9549
+ isOneToOne: true;
9550
+ referencedRelation: "itk_offertes";
9551
+ referencedColumns: ["id"];
9552
+ }];
9553
+ };
9389
9554
  itk_offerte_events: {
9390
9555
  Row: {
9391
9556
  created_at: string;
@@ -9599,6 +9764,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
9599
9764
  itk_offertes: {
9600
9765
  Row: {
9601
9766
  aandachtspunten: string | null;
9767
+ acceptance_id: string | null;
9602
9768
  ai_generated: boolean;
9603
9769
  approved_at: string | null;
9604
9770
  binnen_mandaat: boolean;
@@ -9617,6 +9783,11 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
9617
9783
  onderwerp: string | null;
9618
9784
  rejected_at: string | null;
9619
9785
  sent_at: string | null;
9786
+ sign_token: string;
9787
+ signature_data: string | null;
9788
+ signed_at: string | null;
9789
+ signer_email: string | null;
9790
+ signer_name: string | null;
9620
9791
  source_number: string | null;
9621
9792
  source_ref: string | null;
9622
9793
  source_type: string;
@@ -9631,11 +9802,13 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
9631
9802
  viewed_at: string | null;
9632
9803
  volgnummer: number | null;
9633
9804
  voorwaarden: string | null;
9805
+ werkbon_concept: import("./types").Json | null;
9634
9806
  werkbon_id: string | null;
9635
9807
  work_location_id: string | null;
9636
9808
  };
9637
9809
  Insert: {
9638
9810
  aandachtspunten?: string | null;
9811
+ acceptance_id?: string | null;
9639
9812
  ai_generated?: boolean;
9640
9813
  approved_at?: string | null;
9641
9814
  binnen_mandaat?: boolean;
@@ -9654,6 +9827,11 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
9654
9827
  onderwerp?: string | null;
9655
9828
  rejected_at?: string | null;
9656
9829
  sent_at?: string | null;
9830
+ sign_token?: string;
9831
+ signature_data?: string | null;
9832
+ signed_at?: string | null;
9833
+ signer_email?: string | null;
9834
+ signer_name?: string | null;
9657
9835
  source_number?: string | null;
9658
9836
  source_ref?: string | null;
9659
9837
  source_type?: string;
@@ -9668,11 +9846,13 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
9668
9846
  viewed_at?: string | null;
9669
9847
  volgnummer?: number | null;
9670
9848
  voorwaarden?: string | null;
9849
+ werkbon_concept?: import("./types").Json | null;
9671
9850
  werkbon_id?: string | null;
9672
9851
  work_location_id?: string | null;
9673
9852
  };
9674
9853
  Update: {
9675
9854
  aandachtspunten?: string | null;
9855
+ acceptance_id?: string | null;
9676
9856
  ai_generated?: boolean;
9677
9857
  approved_at?: string | null;
9678
9858
  binnen_mandaat?: boolean;
@@ -9691,6 +9871,11 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
9691
9871
  onderwerp?: string | null;
9692
9872
  rejected_at?: string | null;
9693
9873
  sent_at?: string | null;
9874
+ sign_token?: string;
9875
+ signature_data?: string | null;
9876
+ signed_at?: string | null;
9877
+ signer_email?: string | null;
9878
+ signer_name?: string | null;
9694
9879
  source_number?: string | null;
9695
9880
  source_ref?: string | null;
9696
9881
  source_type?: string;
@@ -9705,10 +9890,17 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
9705
9890
  viewed_at?: string | null;
9706
9891
  volgnummer?: number | null;
9707
9892
  voorwaarden?: string | null;
9893
+ werkbon_concept?: import("./types").Json | null;
9708
9894
  werkbon_id?: string | null;
9709
9895
  work_location_id?: string | null;
9710
9896
  };
9711
9897
  Relationships: [{
9898
+ foreignKeyName: "itk_offertes_acceptance_id_fkey";
9899
+ columns: ["acceptance_id"];
9900
+ isOneToOne: false;
9901
+ referencedRelation: "itk_offerte_acceptaties";
9902
+ referencedColumns: ["id"];
9903
+ }, {
9712
9904
  foreignKeyName: "itk_offertes_contact_id_fkey";
9713
9905
  columns: ["contact_id"];
9714
9906
  isOneToOne: false;
@@ -11147,6 +11339,60 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
11147
11339
  };
11148
11340
  Relationships: [];
11149
11341
  };
11342
+ logistics_order_merge_lines: {
11343
+ Row: {
11344
+ from_order_id: string;
11345
+ from_order_number: string | null;
11346
+ group_key: string;
11347
+ id: string;
11348
+ merged_at: string;
11349
+ order_item_id: string;
11350
+ ordered_at: string | null;
11351
+ product_id: string | null;
11352
+ product_name: string | null;
11353
+ quantity: number | null;
11354
+ reason: string;
11355
+ sales_order_id: string | null;
11356
+ source_line_key: string | null;
11357
+ to_order_id: string;
11358
+ to_order_number: string | null;
11359
+ };
11360
+ Insert: {
11361
+ from_order_id: string;
11362
+ from_order_number?: string | null;
11363
+ group_key: string;
11364
+ id?: string;
11365
+ merged_at?: string;
11366
+ order_item_id: string;
11367
+ ordered_at?: string | null;
11368
+ product_id?: string | null;
11369
+ product_name?: string | null;
11370
+ quantity?: number | null;
11371
+ reason: string;
11372
+ sales_order_id?: string | null;
11373
+ source_line_key?: string | null;
11374
+ to_order_id: string;
11375
+ to_order_number?: string | null;
11376
+ };
11377
+ Update: {
11378
+ from_order_id?: string;
11379
+ from_order_number?: string | null;
11380
+ group_key?: string;
11381
+ id?: string;
11382
+ merged_at?: string;
11383
+ order_item_id?: string;
11384
+ ordered_at?: string | null;
11385
+ product_id?: string | null;
11386
+ product_name?: string | null;
11387
+ quantity?: number | null;
11388
+ reason?: string;
11389
+ sales_order_id?: string | null;
11390
+ source_line_key?: string | null;
11391
+ to_order_id?: string;
11392
+ to_order_number?: string | null;
11393
+ };
11394
+ Relationships: [];
11395
+ };
11150
11396
  logistics_order_merges: {
11151
11397
  Row: {
11152
11398
  group_key: string;
@@ -14787,6 +15033,9 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
14787
15033
  product_id: string | null;
14788
15034
  product_name: string;
14789
15035
  quantity: number;
15036
+ quarantine_reason: string | null;
15037
+ quarantined_at: string | null;
15038
+ quarantined_into_order_id: string | null;
14790
15039
  source_line_key: string | null;
14791
15040
  unit: string;
14792
15041
  unit_price: number | null;
@@ -14803,6 +15052,9 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
14803
15052
  product_id?: string | null;
14804
15053
  product_name: string;
14805
15054
  quantity?: number;
15055
+ quarantine_reason?: string | null;
15056
+ quarantined_at?: string | null;
15057
+ quarantined_into_order_id?: string | null;
14806
15058
  source_line_key?: string | null;
14807
15059
  unit?: string;
14808
15060
  unit_price?: number | null;
@@ -14819,6 +15071,9 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
14819
15071
  product_id?: string | null;
14820
15072
  product_name?: string;
14821
15073
  quantity?: number;
15074
+ quarantine_reason?: string | null;
15075
+ quarantined_at?: string | null;
15076
+ quarantined_into_order_id?: string | null;
14822
15077
  source_line_key?: string | null;
14823
15078
  unit?: string;
14824
15079
  unit_price?: number | null;
@@ -16250,6 +16505,57 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
16250
16505
  };
16251
16506
  Relationships: [];
16252
16507
  };
16508
+ planning_confirmation_log: {
16509
+ Row: {
16510
+ created_at: string;
16511
+ end_at: string;
16512
+ id: string;
16513
+ kind: string;
16514
+ outbox_id: string | null;
16515
+ planning_item_id: string;
16516
+ reason: string | null;
16517
+ recipient: string | null;
16518
+ start_at: string;
16519
+ status: string;
16520
+ };
16521
+ Insert: {
16522
+ created_at?: string;
16523
+ end_at: string;
16524
+ id?: string;
16525
+ kind?: string;
16526
+ outbox_id?: string | null;
16527
+ planning_item_id: string;
16528
+ reason?: string | null;
16529
+ recipient?: string | null;
16530
+ start_at: string;
16531
+ status: string;
16532
+ };
16533
+ Update: {
16534
+ created_at?: string;
16535
+ end_at?: string;
16536
+ id?: string;
16537
+ kind?: string;
16538
+ outbox_id?: string | null;
16539
+ planning_item_id?: string;
16540
+ reason?: string | null;
16541
+ recipient?: string | null;
16542
+ start_at?: string;
16543
+ status?: string;
16544
+ };
16545
+ Relationships: [{
16546
+ foreignKeyName: "planning_confirmation_log_planning_item_id_fkey";
16547
+ columns: ["planning_item_id"];
16548
+ isOneToOne: false;
16549
+ referencedRelation: "planning_items";
16550
+ referencedColumns: ["id"];
16551
+ }, {
16552
+ foreignKeyName: "planning_confirmation_log_planning_item_id_fkey";
16553
+ columns: ["planning_item_id"];
16554
+ isOneToOne: false;
16555
+ referencedRelation: "planning_overview";
16556
+ referencedColumns: ["id"];
16557
+ }];
16558
+ };
16253
16559
  planning_item_assistants: {
16254
16560
  Row: {
16255
16561
  created_at: string;
@@ -16334,6 +16640,69 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
16334
16640
  referencedColumns: ["id"];
16335
16641
  }];
16336
16642
  };
16643
+ planning_mail_settings: {
16644
+ Row: {
16645
+ body_template: string;
16646
+ cc: string[];
16647
+ connection_id: string | null;
16648
+ created_at: string;
16649
+ email_purpose: string | null;
16650
+ enabled: boolean;
16651
+ id: boolean;
16652
+ reply_to: string | null;
16653
+ reschedule_body_template: string;
16654
+ reschedule_subject_template: string;
16655
+ subject_template: string;
16656
+ timezone: string;
16657
+ updated_at: string;
16658
+ updated_by: string | null;
16659
+ };
16660
+ Insert: {
16661
+ body_template?: string;
16662
+ cc?: string[];
16663
+ connection_id?: string | null;
16664
+ created_at?: string;
16665
+ email_purpose?: string | null;
16666
+ enabled?: boolean;
16667
+ id?: boolean;
16668
+ reply_to?: string | null;
16669
+ reschedule_body_template?: string;
16670
+ reschedule_subject_template?: string;
16671
+ subject_template?: string;
16672
+ timezone?: string;
16673
+ updated_at?: string;
16674
+ updated_by?: string | null;
16675
+ };
16676
+ Update: {
16677
+ body_template?: string;
16678
+ cc?: string[];
16679
+ connection_id?: string | null;
16680
+ created_at?: string;
16681
+ email_purpose?: string | null;
16682
+ enabled?: boolean;
16683
+ id?: boolean;
16684
+ reply_to?: string | null;
16685
+ reschedule_body_template?: string;
16686
+ reschedule_subject_template?: string;
16687
+ subject_template?: string;
16688
+ timezone?: string;
16689
+ updated_at?: string;
16690
+ updated_by?: string | null;
16691
+ };
16692
+ Relationships: [{
16693
+ foreignKeyName: "planning_mail_settings_connection_id_fkey";
16694
+ columns: ["connection_id"];
16695
+ isOneToOne: false;
16696
+ referencedRelation: "email_auth_connections";
16697
+ referencedColumns: ["id"];
16698
+ }, {
16699
+ foreignKeyName: "planning_mail_settings_connection_id_fkey";
16700
+ columns: ["connection_id"];
16701
+ isOneToOne: false;
16702
+ referencedRelation: "email_auth_connections_safe";
16703
+ referencedColumns: ["id"];
16704
+ }];
16705
+ };
16337
16706
  planning_monteur_day_locations: {
16338
16707
  Row: {
16339
16708
  created_at: string;
@@ -16721,6 +17090,27 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
16721
17090
  };
16722
17091
  Relationships: [];
16723
17092
  };
17093
+ print_genegeerde_computers: {
17094
+ Row: {
17095
+ computer_naam: string;
17096
+ genegeerd_door: string | null;
17097
+ genegeerd_op: string;
17098
+ id: string;
17099
+ };
17100
+ Insert: {
17101
+ computer_naam: string;
17102
+ genegeerd_door?: string | null;
17103
+ genegeerd_op?: string;
17104
+ id?: string;
17105
+ };
17106
+ Update: {
17107
+ computer_naam?: string;
17108
+ genegeerd_door?: string | null;
17109
+ genegeerd_op?: string;
17110
+ id?: string;
17111
+ };
17112
+ Relationships: [];
17113
+ };
16724
17114
  print_job_logs: {
16725
17115
  Row: {
16726
17116
  created_at: string;
@@ -16991,6 +17381,39 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
16991
17381
  referencedColumns: ["id"];
16992
17382
  }];
16993
17383
  };
17384
+ print_plek_printers: {
17385
+ Row: {
17386
+ id: string;
17387
+ print_plek_id: string;
17388
+ printer_id: string;
17389
+ toegevoegd_op: string;
17390
+ };
17391
+ Insert: {
17392
+ id?: string;
17393
+ print_plek_id: string;
17394
+ printer_id: string;
17395
+ toegevoegd_op?: string;
17396
+ };
17397
+ Update: {
17398
+ id?: string;
17399
+ print_plek_id?: string;
17400
+ printer_id?: string;
17401
+ toegevoegd_op?: string;
17402
+ };
17403
+ Relationships: [{
17404
+ foreignKeyName: "print_plek_printers_print_plek_id_fkey";
17405
+ columns: ["print_plek_id"];
17406
+ isOneToOne: false;
17407
+ referencedRelation: "print_plekken";
17408
+ referencedColumns: ["id"];
17409
+ }, {
17410
+ foreignKeyName: "print_plek_printers_printer_id_fkey";
17411
+ columns: ["printer_id"];
17412
+ isOneToOne: false;
17413
+ referencedRelation: "printers";
17414
+ referencedColumns: ["id"];
17415
+ }];
17416
+ };
16994
17417
  print_plekken: {
16995
17418
  Row: {
16996
17419
  actief: boolean;
@@ -17206,7 +17629,8 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
17206
17629
  created_at: string;
17207
17630
  id: string;
17208
17631
  layout_id: string;
17209
- printer_id: string;
17632
+ printer_id: string | null;
17633
+ printer_ontbreekt_sinds: string | null;
17210
17634
  prioriteit: number;
17211
17635
  updated_at: string;
17212
17636
  };
@@ -17214,7 +17638,8 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
17214
17638
  created_at?: string;
17215
17639
  id?: string;
17216
17640
  layout_id: string;
17217
- printer_id: string;
17641
+ printer_id?: string | null;
17642
+ printer_ontbreekt_sinds?: string | null;
17218
17643
  prioriteit?: number;
17219
17644
  updated_at?: string;
17220
17645
  };
@@ -17222,7 +17647,8 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
17222
17647
  created_at?: string;
17223
17648
  id?: string;
17224
17649
  layout_id?: string;
17225
- printer_id?: string;
17650
+ printer_id?: string | null;
17651
+ printer_ontbreekt_sinds?: string | null;
17226
17652
  prioriteit?: number;
17227
17653
  updated_at?: string;
17228
17654
  };
@@ -21710,6 +22136,30 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
21710
22136
  };
21711
22137
  Relationships: [];
21712
22138
  };
22139
+ uren_pagina_toegang: {
22140
+ Row: {
22141
+ created_at: string;
22142
+ id: string;
22143
+ user_id: string;
22144
+ };
22145
+ Insert: {
22146
+ created_at?: string;
22147
+ id?: string;
22148
+ user_id: string;
22149
+ };
22150
+ Update: {
22151
+ created_at?: string;
22152
+ id?: string;
22153
+ user_id?: string;
22154
+ };
22155
+ Relationships: [{
22156
+ foreignKeyName: "uren_pagina_toegang_user_id_fkey";
22157
+ columns: ["user_id"];
22158
+ isOneToOne: true;
22159
+ referencedRelation: "profiles";
22160
+ referencedColumns: ["id"];
22161
+ }];
22162
+ };
21713
22163
  uren_settings: {
21714
22164
  Row: {
21715
22165
  break_minutes: number;
@@ -23114,12 +23564,14 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
23114
23564
  created_at: string;
23115
23565
  default_quantity: number;
23116
23566
  description: string | null;
23117
- duration_minutes: number | null;
23567
+ duration_minutes: number;
23118
23568
  id: string;
23569
+ labor_minutes: number;
23119
23570
  mandaat_type: string | null;
23120
23571
  name: string;
23121
23572
  price_mode: string;
23122
23573
  sort_order: number;
23574
+ travel_minutes: number;
23123
23575
  unit_price_cents: number;
23124
23576
  updated_at: string;
23125
23577
  };
@@ -23131,12 +23583,14 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
23131
23583
  created_at?: string;
23132
23584
  default_quantity?: number;
23133
23585
  description?: string | null;
23134
- duration_minutes?: number | null;
23586
+ duration_minutes?: number;
23135
23587
  id?: string;
23588
+ labor_minutes?: number;
23136
23589
  mandaat_type?: string | null;
23137
23590
  name: string;
23138
23591
  price_mode?: string;
23139
23592
  sort_order?: number;
23593
+ travel_minutes?: number;
23140
23594
  unit_price_cents?: number;
23141
23595
  updated_at?: string;
23142
23596
  };
@@ -23148,12 +23602,14 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
23148
23602
  created_at?: string;
23149
23603
  default_quantity?: number;
23150
23604
  description?: string | null;
23151
- duration_minutes?: number | null;
23605
+ duration_minutes?: number;
23152
23606
  id?: string;
23607
+ labor_minutes?: number;
23153
23608
  mandaat_type?: string | null;
23154
23609
  name?: string;
23155
23610
  price_mode?: string;
23156
23611
  sort_order?: number;
23612
+ travel_minutes?: number;
23157
23613
  unit_price_cents?: number;
23158
23614
  updated_at?: string;
23159
23615
  };
@@ -24708,6 +25164,12 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
24708
25164
  };
24709
25165
  Returns: undefined;
24710
25166
  };
25167
+ _quote_release_work_order_intern: {
25168
+ Args: {
25169
+ _offerte_id: string;
25170
+ };
25171
+ Returns: import("./types").Json;
25172
+ };
24711
25173
  _wo_is_planner: {
24712
25174
  Args: never;
24713
25175
  Returns: boolean;
@@ -29579,6 +30041,12 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
29579
30041
  };
29580
30042
  Returns: import("./types").Json;
29581
30043
  };
30044
+ pick_verify_rows: {
30045
+ Args: {
30046
+ _rows: import("./types").Json;
30047
+ };
30048
+ Returns: import("./types").Json;
30049
+ };
29582
30050
  pickstation_get_orders_raw: {
29583
30051
  Args: never;
29584
30052
  Returns: import("./types").Json;
@@ -29641,6 +30109,12 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
29641
30109
  };
29642
30110
  Returns: undefined;
29643
30111
  };
30112
+ planning_html_escape: {
30113
+ Args: {
30114
+ t: string;
30115
+ };
30116
+ Returns: string;
30117
+ };
29644
30118
  planning_list: {
29645
30119
  Args: {
29646
30120
  _from: string;
@@ -29695,6 +30169,12 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
29695
30169
  id: string;
29696
30170
  }[];
29697
30171
  };
30172
+ planning_urlencode: {
30173
+ Args: {
30174
+ t: string;
30175
+ };
30176
+ Returns: string;
30177
+ };
29698
30178
  print_preview_toestaan: {
29699
30179
  Args: {
29700
30180
  _max?: number;
@@ -29713,6 +30193,35 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
29713
30193
  };
29714
30194
  Returns: undefined;
29715
30195
  };
30196
+ printer_gebruik: {
30197
+ Args: {
30198
+ _printer: string;
30199
+ };
30200
+ Returns: import("./types").Json;
30201
+ };
30202
+ printer_routering: {
30203
+ Args: {
30204
+ _documenttype: string;
30205
+ _layout_id?: string;
30206
+ _papierformaat?: string;
30207
+ _print_plek_id?: string;
30208
+ _werkplek?: string;
30209
+ };
30210
+ Returns: import("./types").Json;
30211
+ };
30212
+ printplek_printer: {
30213
+ Args: {
30214
+ _documenttype: string;
30215
+ _plek: string;
30216
+ };
30217
+ Returns: string;
30218
+ };
30219
+ printplek_verwijder_impact: {
30220
+ Args: {
30221
+ _id: string;
30222
+ };
30223
+ Returns: import("./types").Json;
30224
+ };
29716
30225
  process_logistics_event: {
29717
30226
  Args: {
29718
30227
  p_event_id: string;
@@ -29759,6 +30268,12 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
29759
30268
  };
29760
30269
  Returns: import("./types").Json;
29761
30270
  };
30271
+ quote_create_from_scratch: {
30272
+ Args: {
30273
+ _payload: import("./types").Json;
30274
+ };
30275
+ Returns: import("./types").Json;
30276
+ };
29762
30277
  quote_create_from_source: {
29763
30278
  Args: {
29764
30279
  _payload?: import("./types").Json;
@@ -29774,6 +30289,13 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
29774
30289
  };
29775
30290
  Returns: boolean;
29776
30291
  };
30292
+ quote_fill_from_form: {
30293
+ Args: {
30294
+ _offerte_id: string;
30295
+ _payload: import("./types").Json;
30296
+ };
30297
+ Returns: import("./types").Json;
30298
+ };
29777
30299
  quote_get_billable_lines: {
29778
30300
  Args: {
29779
30301
  _quotation_id: string;
@@ -29803,12 +30325,50 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
29803
30325
  };
29804
30326
  Returns: import("./types").Json;
29805
30327
  };
30328
+ quote_public_accept: {
30329
+ Args: {
30330
+ _akkoord: boolean;
30331
+ _email: string;
30332
+ _ip_address?: string;
30333
+ _naam: string;
30334
+ _token: string;
30335
+ _user_agent?: string;
30336
+ };
30337
+ Returns: import("./types").Json;
30338
+ };
30339
+ quote_public_get: {
30340
+ Args: {
30341
+ _token: string;
30342
+ };
30343
+ Returns: import("./types").Json;
30344
+ };
30345
+ quote_public_sign: {
30346
+ Args: {
30347
+ _handtekening: string;
30348
+ _naam: string;
30349
+ _token: string;
30350
+ };
30351
+ Returns: import("./types").Json;
30352
+ };
29806
30353
  quote_queue_follow_up: {
29807
30354
  Args: {
29808
30355
  _offerte_id: string;
29809
30356
  };
29810
30357
  Returns: string;
29811
30358
  };
30359
+ quote_release_work_order: {
30360
+ Args: {
30361
+ _offerte_id: string;
30362
+ };
30363
+ Returns: import("./types").Json;
30364
+ };
30365
+ quote_sync_work_order: {
30366
+ Args: {
30367
+ _monteur_instructies?: string;
30368
+ _offerte_id: string;
30369
+ };
30370
+ Returns: boolean;
30371
+ };
29812
30372
  recompute_all_reserved_stock: {
29813
30373
  Args: never;
29814
30374
  Returns: undefined;
@@ -30760,6 +31320,10 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
30760
31320
  };
30761
31321
  Returns: number;
30762
31322
  };
31323
+ uren_heeft_pagina_toegang: {
31324
+ Args: never;
31325
+ Returns: boolean;
31326
+ };
30763
31327
  uren_is_beheerder: {
30764
31328
  Args: never;
30765
31329
  Returns: boolean;
@@ -30843,6 +31407,13 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
30843
31407
  Args: never;
30844
31408
  Returns: string;
30845
31409
  };
31410
+ uren_pagina_toegang_instellen: {
31411
+ Args: {
31412
+ _toegang: boolean;
31413
+ _user_id: string;
31414
+ };
31415
+ Returns: undefined;
31416
+ };
30846
31417
  uren_planning_dagagenda: {
30847
31418
  Args: {
30848
31419
  _tot: string;
@@ -31087,6 +31658,19 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
31087
31658
  user_id: string;
31088
31659
  }[];
31089
31660
  };
31661
+ vervang_printer: {
31662
+ Args: {
31663
+ _nieuw: string;
31664
+ _oud: string;
31665
+ };
31666
+ Returns: import("./types").Json;
31667
+ };
31668
+ verwijder_printplek: {
31669
+ Args: {
31670
+ _id: string;
31671
+ };
31672
+ Returns: import("./types").Json;
31673
+ };
31090
31674
  voorraad_cleanup_old_rows: {
31091
31675
  Args: never;
31092
31676
  Returns: import("./types").Json;
@@ -31097,6 +31681,16 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
31097
31681
  };
31098
31682
  Returns: number;
31099
31683
  };
31684
+ werkbon_pakket_tijden: {
31685
+ Args: {
31686
+ _werkbon_id: string;
31687
+ };
31688
+ Returns: {
31689
+ labor_minutes: number;
31690
+ total_minutes: number;
31691
+ travel_minutes: number;
31692
+ }[];
31693
+ };
31100
31694
  werkbon_totalen: {
31101
31695
  Args: {
31102
31696
  _werkbon_id: string;