@flowselections/logistiek-engine 1.0.27 → 1.0.29

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 (101) hide show
  1. package/README.md +24 -24
  2. package/dist-lib/components/AfmetingenBronnenCard.d.ts +2 -0
  3. package/dist-lib/components/AfmetingenBronnenCard.d.ts.map +1 -0
  4. package/dist-lib/components/AfmetingenBronnenCard.js +46 -0
  5. package/dist-lib/components/BufferDebugCard.d.ts.map +1 -1
  6. package/dist-lib/components/BufferDebugCard.js +6 -1
  7. package/dist-lib/components/ConsistentieCard.d.ts.map +1 -1
  8. package/dist-lib/components/ConsistentieCard.js +1 -1
  9. package/dist-lib/components/GeblokkeerdeOrdersCard.d.ts +2 -0
  10. package/dist-lib/components/GeblokkeerdeOrdersCard.d.ts.map +1 -0
  11. package/dist-lib/components/GeblokkeerdeOrdersCard.js +44 -0
  12. package/dist-lib/components/KarplanStatusCard.d.ts +2 -0
  13. package/dist-lib/components/KarplanStatusCard.d.ts.map +1 -0
  14. package/dist-lib/components/KarplanStatusCard.js +31 -0
  15. package/dist-lib/components/RegiePage.d.ts.map +1 -1
  16. package/dist-lib/components/RegiePage.js +4 -1
  17. package/dist-lib/components/RuleEnginePage.d.ts.map +1 -1
  18. package/dist-lib/components/RuleEnginePage.js +7 -4
  19. package/dist-lib/components/rule-engine/FloridayConnectionBanner.d.ts +2 -0
  20. package/dist-lib/components/rule-engine/FloridayConnectionBanner.d.ts.map +1 -0
  21. package/dist-lib/components/rule-engine/FloridayConnectionBanner.js +41 -0
  22. package/dist-lib/components/rule-engine/RuleFieldInput.d.ts.map +1 -1
  23. package/dist-lib/components/rule-engine/RuleFieldInput.js +9 -0
  24. package/dist-lib/hooks/useGeblokkeerdeOrders.d.ts +28 -0
  25. package/dist-lib/hooks/useGeblokkeerdeOrders.d.ts.map +1 -0
  26. package/dist-lib/hooks/useGeblokkeerdeOrders.js +94 -0
  27. package/dist-lib/hooks/useRecalcJob.d.ts.map +1 -1
  28. package/dist-lib/hooks/useRecalcJob.js +26 -1
  29. package/dist-lib/hooks/useScannersPrinters.d.ts +11 -0
  30. package/dist-lib/hooks/useScannersPrinters.d.ts.map +1 -0
  31. package/dist-lib/hooks/useScannersPrinters.js +65 -0
  32. package/dist-lib/index.d.ts +3 -0
  33. package/dist-lib/index.d.ts.map +1 -1
  34. package/dist-lib/index.js +3 -0
  35. package/dist-lib/integrations/supabase/auth-middleware.d.ts +2105 -68
  36. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  37. package/dist-lib/integrations/supabase/client.d.ts +20293 -0
  38. package/dist-lib/integrations/supabase/client.d.ts.map +1 -0
  39. package/dist-lib/integrations/supabase/client.js +13 -0
  40. package/dist-lib/integrations/supabase/client.server.d.ts +2105 -68
  41. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  42. package/dist-lib/integrations/supabase/client.server.js +1 -1
  43. package/dist-lib/integrations/supabase/moduleClient.d.ts +2105 -68
  44. package/dist-lib/integrations/supabase/moduleClient.d.ts.map +1 -1
  45. package/dist-lib/integrations/supabase/types.d.ts +2135 -54
  46. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  47. package/dist-lib/integrations/supabase/types.js +1 -0
  48. package/dist-lib/lib/attachAuthToken.d.ts +2 -0
  49. package/dist-lib/lib/attachAuthToken.d.ts.map +1 -0
  50. package/dist-lib/lib/attachAuthToken.js +50 -0
  51. package/dist-lib/lib/bufferMatching.d.ts.map +1 -1
  52. package/dist-lib/lib/bufferMatching.js +1 -0
  53. package/dist-lib/lib/cartPlanRequests.server.d.ts +13 -0
  54. package/dist-lib/lib/cartPlanRequests.server.d.ts.map +1 -0
  55. package/dist-lib/lib/cartPlanRequests.server.js +168 -0
  56. package/dist-lib/lib/controlScan.server.d.ts +12 -0
  57. package/dist-lib/lib/controlScan.server.d.ts.map +1 -0
  58. package/dist-lib/lib/controlScan.server.js +197 -0
  59. package/dist-lib/lib/dimensionData.server.d.ts +11 -1
  60. package/dist-lib/lib/dimensionData.server.d.ts.map +1 -1
  61. package/dist-lib/lib/dimensionData.server.js +58 -48
  62. package/dist-lib/lib/dimensionPlanner.d.ts +26 -1
  63. package/dist-lib/lib/dimensionPlanner.d.ts.map +1 -1
  64. package/dist-lib/lib/dimensionPlanner.js +37 -6
  65. package/dist-lib/lib/floridayDocuments.functions.d.ts +6314 -203
  66. package/dist-lib/lib/floridayDocuments.functions.d.ts.map +1 -1
  67. package/dist-lib/lib/floridayDocuments.functions.js +4 -3
  68. package/dist-lib/lib/floridayPush.functions.d.ts +2106 -69
  69. package/dist-lib/lib/floridayPush.functions.d.ts.map +1 -1
  70. package/dist-lib/lib/floridayPush.functions.js +2 -1
  71. package/dist-lib/lib/handlers/logistics-tick.server.d.ts.map +1 -1
  72. package/dist-lib/lib/handlers/logistics-tick.server.js +64 -0
  73. package/dist-lib/lib/loadCarrierPlanning.functions.d.ts +10480 -295
  74. package/dist-lib/lib/loadCarrierPlanning.functions.d.ts.map +1 -1
  75. package/dist-lib/lib/loadCarrierPlanning.functions.js +6 -5
  76. package/dist-lib/lib/loadCarrierPlanning.server.d.ts +42 -0
  77. package/dist-lib/lib/loadCarrierPlanning.server.d.ts.map +1 -1
  78. package/dist-lib/lib/loadCarrierPlanning.server.js +583 -31
  79. package/dist-lib/lib/logisticsPlanner.d.ts.map +1 -1
  80. package/dist-lib/lib/logisticsPlanner.js +24 -9
  81. package/dist-lib/lib/logisticsRecalcJob.functions.d.ts +4231 -157
  82. package/dist-lib/lib/logisticsRecalcJob.functions.d.ts.map +1 -1
  83. package/dist-lib/lib/logisticsRecalcJob.functions.js +3 -2
  84. package/dist-lib/lib/logisticsRecalcJob.server.d.ts.map +1 -1
  85. package/dist-lib/lib/logisticsRecalcJob.server.js +1 -0
  86. package/dist-lib/lib/logisticsRecalculate.functions.d.ts +2106 -69
  87. package/dist-lib/lib/logisticsRecalculate.functions.d.ts.map +1 -1
  88. package/dist-lib/lib/logisticsRecalculate.functions.js +3 -1
  89. package/dist-lib/lib/modulePrompts.d.ts.map +1 -1
  90. package/dist-lib/lib/modulePrompts.js +2560 -1586
  91. package/dist-lib/lib/planQueue.server.d.ts.map +1 -1
  92. package/dist-lib/lib/planQueue.server.js +6 -0
  93. package/dist-lib/lib/readableServerErrors.d.ts +2 -0
  94. package/dist-lib/lib/readableServerErrors.d.ts.map +1 -0
  95. package/dist-lib/lib/readableServerErrors.js +36 -0
  96. package/dist-lib/lib/ruleEngineSchema.d.ts +1 -1
  97. package/dist-lib/lib/ruleEngineSchema.d.ts.map +1 -1
  98. package/dist-lib/lib/ruleEngineSchema.js +72 -51
  99. package/dist-lib/lib/ruleEngineWizard.d.ts.map +1 -1
  100. package/dist-lib/lib/ruleEngineWizard.js +5 -6
  101. package/package.json +1 -1
@@ -3,7 +3,7 @@ export interface RecalculateStep {
3
3
  ok: boolean;
4
4
  error?: string;
5
5
  }
6
- export declare const recalculateLogistics: import("@tanstack/start-client-core").OptionalFetcher<readonly [import("@tanstack/start-client-core").FunctionMiddlewareAfterServer<{}, unknown, undefined, {
6
+ export declare const recalculateLogistics: import("@tanstack/start-client-core").OptionalFetcher<readonly [import("@tanstack/start-client-core").FunctionMiddlewareAfterServer<{}, unknown, undefined, undefined, undefined, undefined, undefined>, import("@tanstack/start-client-core").FunctionMiddlewareAfterServer<{}, unknown, undefined, {
7
7
  supabase: import("@supabase/supabase-js").SupabaseClient<import("../integrations/supabase/types").Database, "public", "public", {
8
8
  Tables: {
9
9
  afhandeling_settings: {
@@ -695,6 +695,7 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
695
695
  raw: import("../integrations/supabase/types").Json;
696
696
  updated_at: string;
697
697
  valuta: string;
698
+ velden: import("../integrations/supabase/types").Json;
698
699
  };
699
700
  Insert: {
700
701
  artikelcode: string;
@@ -712,6 +713,7 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
712
713
  raw?: import("../integrations/supabase/types").Json;
713
714
  updated_at?: string;
714
715
  valuta?: string;
716
+ velden?: import("../integrations/supabase/types").Json;
715
717
  };
716
718
  Update: {
717
719
  artikelcode?: string;
@@ -729,6 +731,7 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
729
731
  raw?: import("../integrations/supabase/types").Json;
730
732
  updated_at?: string;
731
733
  valuta?: string;
734
+ velden?: import("../integrations/supabase/types").Json;
732
735
  };
733
736
  Relationships: [];
734
737
  };
@@ -1423,8 +1426,9 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
1423
1426
  Row: {
1424
1427
  assigned_at: string;
1425
1428
  cart_index: number;
1426
- cart_number: string;
1427
- day_seq: number;
1429
+ cart_number: string | null;
1430
+ day_seq: number | null;
1431
+ delivered_at: string | null;
1428
1432
  id: string;
1429
1433
  order_id: string;
1430
1434
  order_source: string;
@@ -1434,8 +1438,9 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
1434
1438
  Insert: {
1435
1439
  assigned_at?: string;
1436
1440
  cart_index: number;
1437
- cart_number: string;
1438
- day_seq: number;
1441
+ cart_number?: string | null;
1442
+ day_seq?: number | null;
1443
+ delivered_at?: string | null;
1439
1444
  id?: string;
1440
1445
  order_id: string;
1441
1446
  order_source: string;
@@ -1445,8 +1450,9 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
1445
1450
  Update: {
1446
1451
  assigned_at?: string;
1447
1452
  cart_index?: number;
1448
- cart_number?: string;
1449
- day_seq?: number;
1453
+ cart_number?: string | null;
1454
+ day_seq?: number | null;
1455
+ delivered_at?: string | null;
1450
1456
  id?: string;
1451
1457
  order_id?: string;
1452
1458
  order_source?: string;
@@ -1547,6 +1553,12 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
1547
1553
  updated_at?: string;
1548
1554
  };
1549
1555
  Relationships: [{
1556
+ foreignKeyName: "cart_planning_product_overrides_product_id_fkey";
1557
+ columns: ["product_id"];
1558
+ isOneToOne: true;
1559
+ referencedRelation: "logistics_product_dimensions";
1560
+ referencedColumns: ["product_id"];
1561
+ }, {
1550
1562
  foreignKeyName: "cart_planning_product_overrides_product_id_fkey";
1551
1563
  columns: ["product_id"];
1552
1564
  isOneToOne: true;
@@ -7074,6 +7086,51 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
7074
7086
  };
7075
7087
  Relationships: [];
7076
7088
  };
7089
+ floriday_status_sync_queue: {
7090
+ Row: {
7091
+ attempts: number;
7092
+ created_at: string;
7093
+ error: string | null;
7094
+ floriday_sales_order_id: string;
7095
+ order_id: string;
7096
+ processed_at: string | null;
7097
+ requested_at: string;
7098
+ state: string;
7099
+ target_status: string;
7100
+ updated_at: string;
7101
+ };
7102
+ Insert: {
7103
+ attempts?: number;
7104
+ created_at?: string;
7105
+ error?: string | null;
7106
+ floriday_sales_order_id: string;
7107
+ order_id: string;
7108
+ processed_at?: string | null;
7109
+ requested_at?: string;
7110
+ state?: string;
7111
+ target_status: string;
7112
+ updated_at?: string;
7113
+ };
7114
+ Update: {
7115
+ attempts?: number;
7116
+ created_at?: string;
7117
+ error?: string | null;
7118
+ floriday_sales_order_id?: string;
7119
+ order_id?: string;
7120
+ processed_at?: string | null;
7121
+ requested_at?: string;
7122
+ state?: string;
7123
+ target_status?: string;
7124
+ updated_at?: string;
7125
+ };
7126
+ Relationships: [{
7127
+ foreignKeyName: "floriday_status_sync_queue_order_id_fkey";
7128
+ columns: ["order_id"];
7129
+ isOneToOne: true;
7130
+ referencedRelation: "orders";
7131
+ referencedColumns: ["id"];
7132
+ }];
7133
+ };
7077
7134
  floriday_sync_cursors: {
7078
7135
  Row: {
7079
7136
  connection_id: string;
@@ -8308,10 +8365,12 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
8308
8365
  general_email: string | null;
8309
8366
  general_phone: string | null;
8310
8367
  id: string;
8368
+ kvk_number: string | null;
8311
8369
  legacy_customer_id: string | null;
8312
8370
  name: string;
8313
8371
  segment: import("../integrations/supabase/types").Database["public"]["Enums"]["itk_customer_segment"];
8314
8372
  updated_at: string;
8373
+ vat_number: string | null;
8315
8374
  };
8316
8375
  Insert: {
8317
8376
  billing_city?: string | null;
@@ -8322,10 +8381,12 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
8322
8381
  general_email?: string | null;
8323
8382
  general_phone?: string | null;
8324
8383
  id?: string;
8384
+ kvk_number?: string | null;
8325
8385
  legacy_customer_id?: string | null;
8326
8386
  name: string;
8327
8387
  segment?: import("../integrations/supabase/types").Database["public"]["Enums"]["itk_customer_segment"];
8328
8388
  updated_at?: string;
8389
+ vat_number?: string | null;
8329
8390
  };
8330
8391
  Update: {
8331
8392
  billing_city?: string | null;
@@ -8336,10 +8397,12 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
8336
8397
  general_email?: string | null;
8337
8398
  general_phone?: string | null;
8338
8399
  id?: string;
8400
+ kvk_number?: string | null;
8339
8401
  legacy_customer_id?: string | null;
8340
8402
  name?: string;
8341
8403
  segment?: import("../integrations/supabase/types").Database["public"]["Enums"]["itk_customer_segment"];
8342
8404
  updated_at?: string;
8405
+ vat_number?: string | null;
8343
8406
  };
8344
8407
  Relationships: [];
8345
8408
  };
@@ -8373,6 +8436,117 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
8373
8436
  };
8374
8437
  Relationships: [];
8375
8438
  };
8439
+ itk_handover_github_scan: {
8440
+ Row: {
8441
+ gescand_op: string;
8442
+ gevonden: boolean;
8443
+ melding: string | null;
8444
+ module_id: string | null;
8445
+ repo: string;
8446
+ };
8447
+ Insert: {
8448
+ gescand_op?: string;
8449
+ gevonden?: boolean;
8450
+ melding?: string | null;
8451
+ module_id?: string | null;
8452
+ repo: string;
8453
+ };
8454
+ Update: {
8455
+ gescand_op?: string;
8456
+ gevonden?: boolean;
8457
+ melding?: string | null;
8458
+ module_id?: string | null;
8459
+ repo?: string;
8460
+ };
8461
+ Relationships: [];
8462
+ };
8463
+ itk_handover_module_meta: {
8464
+ Row: {
8465
+ check_aangevraagd_op: string | null;
8466
+ check_nodig: boolean;
8467
+ check_reden: string | null;
8468
+ created_at: string;
8469
+ module_id: string;
8470
+ project_url: string | null;
8471
+ publicatie_url: string | null;
8472
+ updated_at: string;
8473
+ };
8474
+ Insert: {
8475
+ check_aangevraagd_op?: string | null;
8476
+ check_nodig?: boolean;
8477
+ check_reden?: string | null;
8478
+ created_at?: string;
8479
+ module_id: string;
8480
+ project_url?: string | null;
8481
+ publicatie_url?: string | null;
8482
+ updated_at?: string;
8483
+ };
8484
+ Update: {
8485
+ check_aangevraagd_op?: string | null;
8486
+ check_nodig?: boolean;
8487
+ check_reden?: string | null;
8488
+ created_at?: string;
8489
+ module_id?: string;
8490
+ project_url?: string | null;
8491
+ publicatie_url?: string | null;
8492
+ updated_at?: string;
8493
+ };
8494
+ Relationships: [];
8495
+ };
8496
+ itk_handover_project_modules: {
8497
+ Row: {
8498
+ created_at: string;
8499
+ id: string;
8500
+ module_id: string;
8501
+ project_id: string;
8502
+ updated_at: string;
8503
+ };
8504
+ Insert: {
8505
+ created_at?: string;
8506
+ id?: string;
8507
+ module_id: string;
8508
+ project_id: string;
8509
+ updated_at?: string;
8510
+ };
8511
+ Update: {
8512
+ created_at?: string;
8513
+ id?: string;
8514
+ module_id?: string;
8515
+ project_id?: string;
8516
+ updated_at?: string;
8517
+ };
8518
+ Relationships: [{
8519
+ foreignKeyName: "itk_handover_project_modules_project_id_fkey";
8520
+ columns: ["project_id"];
8521
+ isOneToOne: false;
8522
+ referencedRelation: "itk_handover_projecten";
8523
+ referencedColumns: ["id"];
8524
+ }];
8525
+ };
8526
+ itk_handover_projecten: {
8527
+ Row: {
8528
+ created_at: string;
8529
+ id: string;
8530
+ naam: string;
8531
+ omschrijving: string | null;
8532
+ updated_at: string;
8533
+ };
8534
+ Insert: {
8535
+ created_at?: string;
8536
+ id?: string;
8537
+ naam: string;
8538
+ omschrijving?: string | null;
8539
+ updated_at?: string;
8540
+ };
8541
+ Update: {
8542
+ created_at?: string;
8543
+ id?: string;
8544
+ naam?: string;
8545
+ omschrijving?: string | null;
8546
+ updated_at?: string;
8547
+ };
8548
+ Relationships: [];
8549
+ };
8376
8550
  itk_handover_rechten: {
8377
8551
  Row: {
8378
8552
  created_at: string;
@@ -8400,42 +8574,33 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
8400
8574
  };
8401
8575
  Relationships: [];
8402
8576
  };
8403
- itk_handover_tokens: {
8577
+ itk_module_fingerprints: {
8404
8578
  Row: {
8405
- aangemaakt_door: string | null;
8406
8579
  created_at: string;
8580
+ gemaakt_op: string;
8581
+ hash: string;
8407
8582
  id: string;
8408
- is_actief: boolean;
8409
- laatst_gebruikt_op: string | null;
8410
- label: string;
8411
8583
  module_id: string;
8412
- token_hash: string;
8584
+ payload: import("../integrations/supabase/types").Json;
8413
8585
  updated_at: string;
8414
- verloopt_op: string | null;
8415
8586
  };
8416
8587
  Insert: {
8417
- aangemaakt_door?: string | null;
8418
8588
  created_at?: string;
8589
+ gemaakt_op?: string;
8590
+ hash: string;
8419
8591
  id?: string;
8420
- is_actief?: boolean;
8421
- laatst_gebruikt_op?: string | null;
8422
- label?: string;
8423
8592
  module_id: string;
8424
- token_hash: string;
8593
+ payload?: import("../integrations/supabase/types").Json;
8425
8594
  updated_at?: string;
8426
- verloopt_op?: string | null;
8427
8595
  };
8428
8596
  Update: {
8429
- aangemaakt_door?: string | null;
8430
8597
  created_at?: string;
8598
+ gemaakt_op?: string;
8599
+ hash?: string;
8431
8600
  id?: string;
8432
- is_actief?: boolean;
8433
- laatst_gebruikt_op?: string | null;
8434
- label?: string;
8435
8601
  module_id?: string;
8436
- token_hash?: string;
8602
+ payload?: import("../integrations/supabase/types").Json;
8437
8603
  updated_at?: string;
8438
- verloopt_op?: string | null;
8439
8604
  };
8440
8605
  Relationships: [];
8441
8606
  };
@@ -8443,6 +8608,11 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
8443
8608
  Row: {
8444
8609
  bevindingen: string | null;
8445
8610
  bezit_tabellen: string[];
8611
+ bron_commit: string | null;
8612
+ bron_pad: string | null;
8613
+ bron_repo: string | null;
8614
+ bron_soort: string | null;
8615
+ bron_versie: string | null;
8446
8616
  conflicten_snapshot: import("../integrations/supabase/types").Json;
8447
8617
  contractfuncties: string[];
8448
8618
  created_at: string;
@@ -8453,6 +8623,8 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
8453
8623
  id: string;
8454
8624
  inhoud_md: string;
8455
8625
  is_actueel: boolean;
8626
+ is_gearchiveerd: boolean;
8627
+ laatst_gecontroleerd_op: string | null;
8456
8628
  module_id: string;
8457
8629
  module_titel: string;
8458
8630
  ontbrekende_contracten: string[];
@@ -8463,6 +8635,11 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
8463
8635
  Insert: {
8464
8636
  bevindingen?: string | null;
8465
8637
  bezit_tabellen?: string[];
8638
+ bron_commit?: string | null;
8639
+ bron_pad?: string | null;
8640
+ bron_repo?: string | null;
8641
+ bron_soort?: string | null;
8642
+ bron_versie?: string | null;
8466
8643
  conflicten_snapshot?: import("../integrations/supabase/types").Json;
8467
8644
  contractfuncties?: string[];
8468
8645
  created_at?: string;
@@ -8473,6 +8650,8 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
8473
8650
  id?: string;
8474
8651
  inhoud_md: string;
8475
8652
  is_actueel?: boolean;
8653
+ is_gearchiveerd?: boolean;
8654
+ laatst_gecontroleerd_op?: string | null;
8476
8655
  module_id: string;
8477
8656
  module_titel: string;
8478
8657
  ontbrekende_contracten?: string[];
@@ -8483,6 +8662,11 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
8483
8662
  Update: {
8484
8663
  bevindingen?: string | null;
8485
8664
  bezit_tabellen?: string[];
8665
+ bron_commit?: string | null;
8666
+ bron_pad?: string | null;
8667
+ bron_repo?: string | null;
8668
+ bron_soort?: string | null;
8669
+ bron_versie?: string | null;
8486
8670
  conflicten_snapshot?: import("../integrations/supabase/types").Json;
8487
8671
  contractfuncties?: string[];
8488
8672
  created_at?: string;
@@ -8493,6 +8677,8 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
8493
8677
  id?: string;
8494
8678
  inhoud_md?: string;
8495
8679
  is_actueel?: boolean;
8680
+ is_gearchiveerd?: boolean;
8681
+ laatst_gecontroleerd_op?: string | null;
8496
8682
  module_id?: string;
8497
8683
  module_titel?: string;
8498
8684
  ontbrekende_contracten?: string[];
@@ -8547,6 +8733,39 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
8547
8733
  };
8548
8734
  Relationships: [];
8549
8735
  };
8736
+ itk_module_wijzigingen: {
8737
+ Row: {
8738
+ created_at: string;
8739
+ geconstateerd_op: string;
8740
+ id: string;
8741
+ module_id: string;
8742
+ omschrijving: string;
8743
+ soort: string;
8744
+ updated_at: string;
8745
+ was_na_publicatie: boolean;
8746
+ };
8747
+ Insert: {
8748
+ created_at?: string;
8749
+ geconstateerd_op?: string;
8750
+ id?: string;
8751
+ module_id: string;
8752
+ omschrijving: string;
8753
+ soort: string;
8754
+ updated_at?: string;
8755
+ was_na_publicatie?: boolean;
8756
+ };
8757
+ Update: {
8758
+ created_at?: string;
8759
+ geconstateerd_op?: string;
8760
+ id?: string;
8761
+ module_id?: string;
8762
+ omschrijving?: string;
8763
+ soort?: string;
8764
+ updated_at?: string;
8765
+ was_na_publicatie?: boolean;
8766
+ };
8767
+ Relationships: [];
8768
+ };
8550
8769
  itk_offerte_events: {
8551
8770
  Row: {
8552
8771
  created_at: string;
@@ -8785,12 +9004,24 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
8785
9004
  isOneToOne: false;
8786
9005
  referencedRelation: "werkbonnen";
8787
9006
  referencedColumns: ["id"];
9007
+ }, {
9008
+ foreignKeyName: "itk_offertes_follow_up_werkbon_id_fkey";
9009
+ columns: ["follow_up_werkbon_id"];
9010
+ isOneToOne: false;
9011
+ referencedRelation: "wo_overview";
9012
+ referencedColumns: ["id"];
8788
9013
  }, {
8789
9014
  foreignKeyName: "itk_offertes_werkbon_id_fkey";
8790
9015
  columns: ["werkbon_id"];
8791
9016
  isOneToOne: false;
8792
9017
  referencedRelation: "werkbonnen";
8793
9018
  referencedColumns: ["id"];
9019
+ }, {
9020
+ foreignKeyName: "itk_offertes_werkbon_id_fkey";
9021
+ columns: ["werkbon_id"];
9022
+ isOneToOne: false;
9023
+ referencedRelation: "wo_overview";
9024
+ referencedColumns: ["id"];
8794
9025
  }, {
8795
9026
  foreignKeyName: "itk_offertes_work_location_id_fkey";
8796
9027
  columns: ["work_location_id"];
@@ -9091,6 +9322,12 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
9091
9322
  isOneToOne: false;
9092
9323
  referencedRelation: "product_categories";
9093
9324
  referencedColumns: ["id"];
9325
+ }, {
9326
+ foreignKeyName: "local_customer_agreements_product_id_fkey";
9327
+ columns: ["product_id"];
9328
+ isOneToOne: false;
9329
+ referencedRelation: "logistics_product_dimensions";
9330
+ referencedColumns: ["product_id"];
9094
9331
  }, {
9095
9332
  foreignKeyName: "local_customer_agreements_product_id_fkey";
9096
9333
  columns: ["product_id"];
@@ -9157,6 +9394,12 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
9157
9394
  isOneToOne: false;
9158
9395
  referencedRelation: "product_categories";
9159
9396
  referencedColumns: ["id"];
9397
+ }, {
9398
+ foreignKeyName: "local_customer_price_groups_product_id_fkey";
9399
+ columns: ["product_id"];
9400
+ isOneToOne: false;
9401
+ referencedRelation: "logistics_product_dimensions";
9402
+ referencedColumns: ["product_id"];
9160
9403
  }, {
9161
9404
  foreignKeyName: "local_customer_price_groups_product_id_fkey";
9162
9405
  columns: ["product_id"];
@@ -9223,6 +9466,12 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
9223
9466
  isOneToOne: false;
9224
9467
  referencedRelation: "product_categories";
9225
9468
  referencedColumns: ["id"];
9469
+ }, {
9470
+ foreignKeyName: "local_customer_sales_strategies_product_id_fkey";
9471
+ columns: ["product_id"];
9472
+ isOneToOne: false;
9473
+ referencedRelation: "logistics_product_dimensions";
9474
+ referencedColumns: ["product_id"];
9226
9475
  }, {
9227
9476
  foreignKeyName: "local_customer_sales_strategies_product_id_fkey";
9228
9477
  columns: ["product_id"];
@@ -9426,6 +9675,75 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
9426
9675
  };
9427
9676
  Relationships: [];
9428
9677
  };
9678
+ logistics_control_scan: {
9679
+ Row: {
9680
+ approved_at: string | null;
9681
+ attempts: number;
9682
+ barcode: string;
9683
+ cart_id: string;
9684
+ created_at: string;
9685
+ document_url: string | null;
9686
+ error: string | null;
9687
+ error_code: string | null;
9688
+ fulfillment_order_id: string | null;
9689
+ id: string;
9690
+ is_floriday: boolean;
9691
+ locked_until: string | null;
9692
+ order_id: string | null;
9693
+ order_number: string | null;
9694
+ print_job_id: string | null;
9695
+ printed_at: string | null;
9696
+ printer_id: string | null;
9697
+ scanner_id: string | null;
9698
+ status: string;
9699
+ updated_at: string;
9700
+ };
9701
+ Insert: {
9702
+ approved_at?: string | null;
9703
+ attempts?: number;
9704
+ barcode: string;
9705
+ cart_id: string;
9706
+ created_at?: string;
9707
+ document_url?: string | null;
9708
+ error?: string | null;
9709
+ error_code?: string | null;
9710
+ fulfillment_order_id?: string | null;
9711
+ id?: string;
9712
+ is_floriday?: boolean;
9713
+ locked_until?: string | null;
9714
+ order_id?: string | null;
9715
+ order_number?: string | null;
9716
+ print_job_id?: string | null;
9717
+ printed_at?: string | null;
9718
+ printer_id?: string | null;
9719
+ scanner_id?: string | null;
9720
+ status?: string;
9721
+ updated_at?: string;
9722
+ };
9723
+ Update: {
9724
+ approved_at?: string | null;
9725
+ attempts?: number;
9726
+ barcode?: string;
9727
+ cart_id?: string;
9728
+ created_at?: string;
9729
+ document_url?: string | null;
9730
+ error?: string | null;
9731
+ error_code?: string | null;
9732
+ fulfillment_order_id?: string | null;
9733
+ id?: string;
9734
+ is_floriday?: boolean;
9735
+ locked_until?: string | null;
9736
+ order_id?: string | null;
9737
+ order_number?: string | null;
9738
+ print_job_id?: string | null;
9739
+ printed_at?: string | null;
9740
+ printer_id?: string | null;
9741
+ scanner_id?: string | null;
9742
+ status?: string;
9743
+ updated_at?: string;
9744
+ };
9745
+ Relationships: [];
9746
+ };
9429
9747
  logistics_decisions: {
9430
9748
  Row: {
9431
9749
  created_at: string;
@@ -9711,6 +10029,24 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
9711
10029
  };
9712
10030
  Relationships: [];
9713
10031
  };
10032
+ logistics_floriday_carrier_map: {
10033
+ Row: {
10034
+ carrier_code: string;
10035
+ created_at: string;
10036
+ floriday_code: string;
10037
+ };
10038
+ Insert: {
10039
+ carrier_code: string;
10040
+ created_at?: string;
10041
+ floriday_code: string;
10042
+ };
10043
+ Update: {
10044
+ carrier_code?: string;
10045
+ created_at?: string;
10046
+ floriday_code?: string;
10047
+ };
10048
+ Relationships: [];
10049
+ };
9714
10050
  logistics_floriday_pushes: {
9715
10051
  Row: {
9716
10052
  attempts: number;
@@ -9828,20 +10164,50 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
9828
10164
  referencedColumns: ["id"];
9829
10165
  }];
9830
10166
  };
9831
- logistics_pickup_moments: {
10167
+ logistics_layer_override_log: {
9832
10168
  Row: {
9833
- carrier_ref: string | null;
10169
+ cart_id: string;
9834
10170
  created_at: string;
10171
+ details: import("../integrations/supabase/types").Json;
9835
10172
  id: string;
9836
- label: string | null;
9837
- moment_date: string;
9838
- pickup_time: string;
9839
- sequence: number;
9840
- updated_at: string;
9841
- user_id: string;
10173
+ keg_id: string | null;
10174
+ product_id: string | null;
10175
+ reason: string;
9842
10176
  };
9843
10177
  Insert: {
9844
- carrier_ref?: string | null;
10178
+ cart_id: string;
10179
+ created_at?: string;
10180
+ details?: import("../integrations/supabase/types").Json;
10181
+ id?: string;
10182
+ keg_id?: string | null;
10183
+ product_id?: string | null;
10184
+ reason: string;
10185
+ };
10186
+ Update: {
10187
+ cart_id?: string;
10188
+ created_at?: string;
10189
+ details?: import("../integrations/supabase/types").Json;
10190
+ id?: string;
10191
+ keg_id?: string | null;
10192
+ product_id?: string | null;
10193
+ reason?: string;
10194
+ };
10195
+ Relationships: [];
10196
+ };
10197
+ logistics_pickup_moments: {
10198
+ Row: {
10199
+ carrier_ref: string | null;
10200
+ created_at: string;
10201
+ id: string;
10202
+ label: string | null;
10203
+ moment_date: string;
10204
+ pickup_time: string;
10205
+ sequence: number;
10206
+ updated_at: string;
10207
+ user_id: string;
10208
+ };
10209
+ Insert: {
10210
+ carrier_ref?: string | null;
9845
10211
  created_at?: string;
9846
10212
  id?: string;
9847
10213
  label?: string | null;
@@ -9874,6 +10240,7 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
9874
10240
  next_attempt_at: string;
9875
10241
  order_id: string;
9876
10242
  reason: string;
10243
+ reason_code: string | null;
9877
10244
  status: string;
9878
10245
  updated_at: string;
9879
10246
  };
@@ -9886,6 +10253,7 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
9886
10253
  next_attempt_at?: string;
9887
10254
  order_id: string;
9888
10255
  reason?: string;
10256
+ reason_code?: string | null;
9889
10257
  status?: string;
9890
10258
  updated_at?: string;
9891
10259
  };
@@ -9898,6 +10266,7 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
9898
10266
  next_attempt_at?: string;
9899
10267
  order_id?: string;
9900
10268
  reason?: string;
10269
+ reason_code?: string | null;
9901
10270
  status?: string;
9902
10271
  updated_at?: string;
9903
10272
  };
@@ -10602,6 +10971,21 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
10602
10971
  referencedColumns: ["id"];
10603
10972
  }];
10604
10973
  };
10974
+ logistics_tick_heartbeat: {
10975
+ Row: {
10976
+ id: boolean;
10977
+ last_tick_at: string;
10978
+ };
10979
+ Insert: {
10980
+ id?: boolean;
10981
+ last_tick_at?: string;
10982
+ };
10983
+ Update: {
10984
+ id?: boolean;
10985
+ last_tick_at?: string;
10986
+ };
10987
+ Relationships: [];
10988
+ };
10605
10989
  logistics_variables: {
10606
10990
  Row: {
10607
10991
  created_at: string;
@@ -11033,6 +11417,12 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
11033
11417
  updated_at?: string;
11034
11418
  };
11035
11419
  Relationships: [{
11420
+ foreignKeyName: "mailbox_proposal_lines_product_id_fkey";
11421
+ columns: ["product_id"];
11422
+ isOneToOne: false;
11423
+ referencedRelation: "logistics_product_dimensions";
11424
+ referencedColumns: ["product_id"];
11425
+ }, {
11036
11426
  foreignKeyName: "mailbox_proposal_lines_product_id_fkey";
11037
11427
  columns: ["product_id"];
11038
11428
  isOneToOne: false;
@@ -12339,6 +12729,8 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
12339
12729
  order_buffers: {
12340
12730
  Row: {
12341
12731
  buffer_key: string;
12732
+ close_at: string | null;
12733
+ closed_at: string | null;
12342
12734
  created_at: string;
12343
12735
  customer_id: string | null;
12344
12736
  grouping_mode: string;
@@ -12350,6 +12742,8 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
12350
12742
  };
12351
12743
  Insert: {
12352
12744
  buffer_key: string;
12745
+ close_at?: string | null;
12746
+ closed_at?: string | null;
12353
12747
  created_at?: string;
12354
12748
  customer_id?: string | null;
12355
12749
  grouping_mode: string;
@@ -12361,6 +12755,8 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
12361
12755
  };
12362
12756
  Update: {
12363
12757
  buffer_key?: string;
12758
+ close_at?: string | null;
12759
+ closed_at?: string | null;
12364
12760
  created_at?: string;
12365
12761
  customer_id?: string | null;
12366
12762
  grouping_mode?: string;
@@ -12377,10 +12773,12 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
12377
12773
  boxes: number | null;
12378
12774
  cart_id: string;
12379
12775
  crates: number;
12776
+ crates_in_layer: number | null;
12380
12777
  crates_per_layer: number;
12381
12778
  created_at: string;
12382
12779
  id: string;
12383
12780
  layer_fraction: number;
12781
+ layer_index: number | null;
12384
12782
  layer_share_pct: number;
12385
12783
  layers_per_cart: number;
12386
12784
  order_item_id: string | null;
@@ -12393,10 +12791,12 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
12393
12791
  boxes?: number | null;
12394
12792
  cart_id: string;
12395
12793
  crates: number;
12794
+ crates_in_layer?: number | null;
12396
12795
  crates_per_layer?: number;
12397
12796
  created_at?: string;
12398
12797
  id?: string;
12399
12798
  layer_fraction?: number;
12799
+ layer_index?: number | null;
12400
12800
  layer_share_pct?: number;
12401
12801
  layers_per_cart?: number;
12402
12802
  order_item_id?: string | null;
@@ -12409,10 +12809,12 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
12409
12809
  boxes?: number | null;
12410
12810
  cart_id?: string;
12411
12811
  crates?: number;
12812
+ crates_in_layer?: number | null;
12412
12813
  crates_per_layer?: number;
12413
12814
  created_at?: string;
12414
12815
  id?: string;
12415
12816
  layer_fraction?: number;
12817
+ layer_index?: number | null;
12416
12818
  layer_share_pct?: number;
12417
12819
  layers_per_cart?: number;
12418
12820
  order_item_id?: string | null;
@@ -12433,6 +12835,12 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
12433
12835
  isOneToOne: false;
12434
12836
  referencedRelation: "order_items";
12435
12837
  referencedColumns: ["id"];
12838
+ }, {
12839
+ foreignKeyName: "order_cart_items_product_id_fkey";
12840
+ columns: ["product_id"];
12841
+ isOneToOne: false;
12842
+ referencedRelation: "logistics_product_dimensions";
12843
+ referencedColumns: ["product_id"];
12436
12844
  }, {
12437
12845
  foreignKeyName: "order_cart_items_product_id_fkey";
12438
12846
  columns: ["product_id"];
@@ -12441,6 +12849,93 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
12441
12849
  referencedColumns: ["id"];
12442
12850
  }];
12443
12851
  };
12852
+ order_cart_layer_positions: {
12853
+ Row: {
12854
+ algorithm_version: number | null;
12855
+ cart_id: string;
12856
+ created_at: string;
12857
+ height: number;
12858
+ id: string;
12859
+ keg_id: string;
12860
+ label: string | null;
12861
+ layer: number;
12862
+ layer_height: number | null;
12863
+ layer_width: number | null;
12864
+ manual_overridden_at: string | null;
12865
+ manual_overridden_by: string | null;
12866
+ manual_override: boolean;
12867
+ order_item_id: string | null;
12868
+ original_layer: number | null;
12869
+ original_x: number | null;
12870
+ original_y: number | null;
12871
+ product_id: string | null;
12872
+ rotation: number;
12873
+ source: string | null;
12874
+ updated_at: string;
12875
+ width: number;
12876
+ x: number;
12877
+ y: number;
12878
+ };
12879
+ Insert: {
12880
+ algorithm_version?: number | null;
12881
+ cart_id: string;
12882
+ created_at?: string;
12883
+ height: number;
12884
+ id?: string;
12885
+ keg_id: string;
12886
+ label?: string | null;
12887
+ layer: number;
12888
+ layer_height?: number | null;
12889
+ layer_width?: number | null;
12890
+ manual_overridden_at?: string | null;
12891
+ manual_overridden_by?: string | null;
12892
+ manual_override?: boolean;
12893
+ order_item_id?: string | null;
12894
+ original_layer?: number | null;
12895
+ original_x?: number | null;
12896
+ original_y?: number | null;
12897
+ product_id?: string | null;
12898
+ rotation?: number;
12899
+ source?: string | null;
12900
+ updated_at?: string;
12901
+ width: number;
12902
+ x: number;
12903
+ y: number;
12904
+ };
12905
+ Update: {
12906
+ algorithm_version?: number | null;
12907
+ cart_id?: string;
12908
+ created_at?: string;
12909
+ height?: number;
12910
+ id?: string;
12911
+ keg_id?: string;
12912
+ label?: string | null;
12913
+ layer?: number;
12914
+ layer_height?: number | null;
12915
+ layer_width?: number | null;
12916
+ manual_overridden_at?: string | null;
12917
+ manual_overridden_by?: string | null;
12918
+ manual_override?: boolean;
12919
+ order_item_id?: string | null;
12920
+ original_layer?: number | null;
12921
+ original_x?: number | null;
12922
+ original_y?: number | null;
12923
+ product_id?: string | null;
12924
+ rotation?: number;
12925
+ source?: string | null;
12926
+ updated_at?: string;
12927
+ width?: number;
12928
+ x?: number;
12929
+ y?: number;
12930
+ };
12931
+ Relationships: [{
12932
+ foreignKeyName: "order_cart_layer_positions_cart_id_fkey";
12933
+ columns: ["cart_id"];
12934
+ isOneToOne: false;
12935
+ referencedRelation: "order_carts";
12936
+ referencedColumns: ["id"];
12937
+ }];
12938
+ };
12444
12939
  order_carts: {
12445
12940
  Row: {
12446
12941
  algorithm_version: number;
@@ -12452,6 +12947,7 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
12452
12947
  id: string;
12453
12948
  is_auto: boolean;
12454
12949
  is_complete: boolean;
12950
+ layout_method: string | null;
12455
12951
  max_layers: number | null;
12456
12952
  moved_at: string | null;
12457
12953
  moved_from_moment_id: string | null;
@@ -12462,6 +12958,7 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
12462
12958
  pickup_locked: boolean;
12463
12959
  pickup_moment_id: string | null;
12464
12960
  source: string;
12961
+ total_carts: number | null;
12465
12962
  total_layers_used: number;
12466
12963
  updated_at: string;
12467
12964
  weight_kg: number | null;
@@ -12476,6 +12973,7 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
12476
12973
  id?: string;
12477
12974
  is_auto?: boolean;
12478
12975
  is_complete?: boolean;
12976
+ layout_method?: string | null;
12479
12977
  max_layers?: number | null;
12480
12978
  moved_at?: string | null;
12481
12979
  moved_from_moment_id?: string | null;
@@ -12486,6 +12984,7 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
12486
12984
  pickup_locked?: boolean;
12487
12985
  pickup_moment_id?: string | null;
12488
12986
  source?: string;
12987
+ total_carts?: number | null;
12489
12988
  total_layers_used?: number;
12490
12989
  updated_at?: string;
12491
12990
  weight_kg?: number | null;
@@ -12500,6 +12999,7 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
12500
12999
  id?: string;
12501
13000
  is_auto?: boolean;
12502
13001
  is_complete?: boolean;
13002
+ layout_method?: string | null;
12503
13003
  max_layers?: number | null;
12504
13004
  moved_at?: string | null;
12505
13005
  moved_from_moment_id?: string | null;
@@ -12510,6 +13010,7 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
12510
13010
  pickup_locked?: boolean;
12511
13011
  pickup_moment_id?: string | null;
12512
13012
  source?: string;
13013
+ total_carts?: number | null;
12513
13014
  total_layers_used?: number;
12514
13015
  updated_at?: string;
12515
13016
  weight_kg?: number | null;
@@ -12612,6 +13113,39 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
12612
13113
  };
12613
13114
  Relationships: [];
12614
13115
  };
13116
+ order_fust_bookings: {
13117
+ Row: {
13118
+ created_at: string;
13119
+ fust_type_id: string;
13120
+ id: string;
13121
+ order_item_id: string;
13122
+ quantity: number;
13123
+ updated_at: string;
13124
+ };
13125
+ Insert: {
13126
+ created_at?: string;
13127
+ fust_type_id: string;
13128
+ id?: string;
13129
+ order_item_id: string;
13130
+ quantity?: number;
13131
+ updated_at?: string;
13132
+ };
13133
+ Update: {
13134
+ created_at?: string;
13135
+ fust_type_id?: string;
13136
+ id?: string;
13137
+ order_item_id?: string;
13138
+ quantity?: number;
13139
+ updated_at?: string;
13140
+ };
13141
+ Relationships: [{
13142
+ foreignKeyName: "order_fust_bookings_fust_type_id_fkey";
13143
+ columns: ["fust_type_id"];
13144
+ isOneToOne: false;
13145
+ referencedRelation: "fust_types";
13146
+ referencedColumns: ["id"];
13147
+ }];
13148
+ };
12615
13149
  order_invoice_links: {
12616
13150
  Row: {
12617
13151
  administration_code: string | null;
@@ -12700,6 +13234,12 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
12700
13234
  isOneToOne: false;
12701
13235
  referencedRelation: "orders";
12702
13236
  referencedColumns: ["id"];
13237
+ }, {
13238
+ foreignKeyName: "order_items_product_id_fkey";
13239
+ columns: ["product_id"];
13240
+ isOneToOne: false;
13241
+ referencedRelation: "logistics_product_dimensions";
13242
+ referencedColumns: ["product_id"];
12703
13243
  }, {
12704
13244
  foreignKeyName: "order_items_product_id_fkey";
12705
13245
  columns: ["product_id"];
@@ -12847,6 +13387,9 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
12847
13387
  plan_locked_at: string | null;
12848
13388
  plan_locked_ref: string | null;
12849
13389
  status: string;
13390
+ status_changed_at: string;
13391
+ status_origin: string;
13392
+ status_sync_token: string | null;
12850
13393
  total: string;
12851
13394
  updated_at: string;
12852
13395
  };
@@ -12871,6 +13414,9 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
12871
13414
  plan_locked_at?: string | null;
12872
13415
  plan_locked_ref?: string | null;
12873
13416
  status?: string;
13417
+ status_changed_at?: string;
13418
+ status_origin?: string;
13419
+ status_sync_token?: string | null;
12874
13420
  total?: string;
12875
13421
  updated_at?: string;
12876
13422
  };
@@ -12895,6 +13441,9 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
12895
13441
  plan_locked_at?: string | null;
12896
13442
  plan_locked_ref?: string | null;
12897
13443
  status?: string;
13444
+ status_changed_at?: string;
13445
+ status_origin?: string;
13446
+ status_sync_token?: string | null;
12898
13447
  total?: string;
12899
13448
  updated_at?: string;
12900
13449
  };
@@ -12948,6 +13497,132 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
12948
13497
  };
12949
13498
  Relationships: [];
12950
13499
  };
13500
+ pakbon_barcode_inhoud: {
13501
+ Row: {
13502
+ barcode: string;
13503
+ cart_id: string | null;
13504
+ cart_index: number | null;
13505
+ cart_label: string | null;
13506
+ cart_total: number | null;
13507
+ created_at: string;
13508
+ is_herprint: boolean;
13509
+ klant_naam: string | null;
13510
+ klant_nummer: string | null;
13511
+ layout_id: string | null;
13512
+ layout_variant: string | null;
13513
+ order_nummer: string | null;
13514
+ order_ref: string | null;
13515
+ print_job_id: string | null;
13516
+ regels: import("../integrations/supabase/types").Json;
13517
+ updated_at: string;
13518
+ };
13519
+ Insert: {
13520
+ barcode: string;
13521
+ cart_id?: string | null;
13522
+ cart_index?: number | null;
13523
+ cart_label?: string | null;
13524
+ cart_total?: number | null;
13525
+ created_at?: string;
13526
+ is_herprint?: boolean;
13527
+ klant_naam?: string | null;
13528
+ klant_nummer?: string | null;
13529
+ layout_id?: string | null;
13530
+ layout_variant?: string | null;
13531
+ order_nummer?: string | null;
13532
+ order_ref?: string | null;
13533
+ print_job_id?: string | null;
13534
+ regels?: import("../integrations/supabase/types").Json;
13535
+ updated_at?: string;
13536
+ };
13537
+ Update: {
13538
+ barcode?: string;
13539
+ cart_id?: string | null;
13540
+ cart_index?: number | null;
13541
+ cart_label?: string | null;
13542
+ cart_total?: number | null;
13543
+ created_at?: string;
13544
+ is_herprint?: boolean;
13545
+ klant_naam?: string | null;
13546
+ klant_nummer?: string | null;
13547
+ layout_id?: string | null;
13548
+ layout_variant?: string | null;
13549
+ order_nummer?: string | null;
13550
+ order_ref?: string | null;
13551
+ print_job_id?: string | null;
13552
+ regels?: import("../integrations/supabase/types").Json;
13553
+ updated_at?: string;
13554
+ };
13555
+ Relationships: [];
13556
+ };
13557
+ pakbon_barcode_verzoeken: {
13558
+ Row: {
13559
+ aangevraagd_op: string;
13560
+ barcode: string | null;
13561
+ cart_id: string | null;
13562
+ cart_index: number | null;
13563
+ cart_label: string | null;
13564
+ cart_total: number | null;
13565
+ documentnaam: string | null;
13566
+ geleverd_op: string | null;
13567
+ id: string;
13568
+ is_herprint: boolean;
13569
+ klant_naam: string | null;
13570
+ klant_nummer: string | null;
13571
+ laatst_gevraagd_op: string;
13572
+ layout_id: string | null;
13573
+ layout_variant: string | null;
13574
+ order_nummer: string | null;
13575
+ order_ref: string | null;
13576
+ print_job_id: string;
13577
+ status: string;
13578
+ updated_at: string;
13579
+ };
13580
+ Insert: {
13581
+ aangevraagd_op?: string;
13582
+ barcode?: string | null;
13583
+ cart_id?: string | null;
13584
+ cart_index?: number | null;
13585
+ cart_label?: string | null;
13586
+ cart_total?: number | null;
13587
+ documentnaam?: string | null;
13588
+ geleverd_op?: string | null;
13589
+ id?: string;
13590
+ is_herprint?: boolean;
13591
+ klant_naam?: string | null;
13592
+ klant_nummer?: string | null;
13593
+ laatst_gevraagd_op?: string;
13594
+ layout_id?: string | null;
13595
+ layout_variant?: string | null;
13596
+ order_nummer?: string | null;
13597
+ order_ref?: string | null;
13598
+ print_job_id: string;
13599
+ status?: string;
13600
+ updated_at?: string;
13601
+ };
13602
+ Update: {
13603
+ aangevraagd_op?: string;
13604
+ barcode?: string | null;
13605
+ cart_id?: string | null;
13606
+ cart_index?: number | null;
13607
+ cart_label?: string | null;
13608
+ cart_total?: number | null;
13609
+ documentnaam?: string | null;
13610
+ geleverd_op?: string | null;
13611
+ id?: string;
13612
+ is_herprint?: boolean;
13613
+ klant_naam?: string | null;
13614
+ klant_nummer?: string | null;
13615
+ laatst_gevraagd_op?: string;
13616
+ layout_id?: string | null;
13617
+ layout_variant?: string | null;
13618
+ order_nummer?: string | null;
13619
+ order_ref?: string | null;
13620
+ print_job_id?: string;
13621
+ status?: string;
13622
+ updated_at?: string;
13623
+ };
13624
+ Relationships: [];
13625
+ };
12951
13626
  pick_countries: {
12952
13627
  Row: {
12953
13628
  active: boolean;
@@ -14026,6 +14701,12 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
14026
14701
  isOneToOne: false;
14027
14702
  referencedRelation: "werkbonnen";
14028
14703
  referencedColumns: ["id"];
14704
+ }, {
14705
+ foreignKeyName: "planning_items_werkbon_id_fkey";
14706
+ columns: ["werkbon_id"];
14707
+ isOneToOne: false;
14708
+ referencedRelation: "wo_overview";
14709
+ referencedColumns: ["id"];
14029
14710
  }];
14030
14711
  };
14031
14712
  print_agents: {
@@ -14141,12 +14822,21 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
14141
14822
  };
14142
14823
  print_jobs: {
14143
14824
  Row: {
14825
+ aflever_pogingen: number;
14144
14826
  agent_id: string | null;
14827
+ artefact_bytes: number | null;
14828
+ artefact_gereed_op: string | null;
14829
+ artefact_pad: string | null;
14830
+ artefact_sha256: string | null;
14831
+ batch_id: string | null;
14145
14832
  bron_job_id: string | null;
14146
14833
  created_at: string;
14147
14834
  documentnaam: string;
14148
14835
  documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
14149
14836
  extern_job_id: string | null;
14837
+ fase_gestart_op: string | null;
14838
+ fase_voltooid_op: string | null;
14839
+ foutcode: string | null;
14150
14840
  foutmelding: string | null;
14151
14841
  gebruiker_id: string | null;
14152
14842
  gebruiker_naam: string;
@@ -14160,7 +14850,10 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
14160
14850
  kopieen: number;
14161
14851
  layout_id: string | null;
14162
14852
  lokaal_opgeslagen_op: string | null;
14853
+ lokale_pdf_claim_id: string | null;
14854
+ lokale_pdf_claim_tot: string | null;
14163
14855
  lokale_pdf_fout: string | null;
14856
+ lokale_pdf_print_plek_id: string | null;
14164
14857
  lokale_pdf_status: string | null;
14165
14858
  opgepakt_op: string | null;
14166
14859
  paginas: number;
@@ -14173,16 +14866,26 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
14173
14866
  resultaat_pdf_base64: string | null;
14174
14867
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
14175
14868
  updated_at: string;
14869
+ verwerkingsfase: string;
14176
14870
  volgende_poging: string | null;
14177
14871
  voltooid_op: string | null;
14178
14872
  };
14179
14873
  Insert: {
14874
+ aflever_pogingen?: number;
14180
14875
  agent_id?: string | null;
14876
+ artefact_bytes?: number | null;
14877
+ artefact_gereed_op?: string | null;
14878
+ artefact_pad?: string | null;
14879
+ artefact_sha256?: string | null;
14880
+ batch_id?: string | null;
14181
14881
  bron_job_id?: string | null;
14182
14882
  created_at?: string;
14183
14883
  documentnaam?: string;
14184
14884
  documenttype?: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
14185
14885
  extern_job_id?: string | null;
14886
+ fase_gestart_op?: string | null;
14887
+ fase_voltooid_op?: string | null;
14888
+ foutcode?: string | null;
14186
14889
  foutmelding?: string | null;
14187
14890
  gebruiker_id?: string | null;
14188
14891
  gebruiker_naam?: string;
@@ -14196,7 +14899,10 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
14196
14899
  kopieen?: number;
14197
14900
  layout_id?: string | null;
14198
14901
  lokaal_opgeslagen_op?: string | null;
14902
+ lokale_pdf_claim_id?: string | null;
14903
+ lokale_pdf_claim_tot?: string | null;
14199
14904
  lokale_pdf_fout?: string | null;
14905
+ lokale_pdf_print_plek_id?: string | null;
14200
14906
  lokale_pdf_status?: string | null;
14201
14907
  opgepakt_op?: string | null;
14202
14908
  paginas?: number;
@@ -14209,16 +14915,26 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
14209
14915
  resultaat_pdf_base64?: string | null;
14210
14916
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
14211
14917
  updated_at?: string;
14918
+ verwerkingsfase?: string;
14212
14919
  volgende_poging?: string | null;
14213
14920
  voltooid_op?: string | null;
14214
14921
  };
14215
14922
  Update: {
14923
+ aflever_pogingen?: number;
14216
14924
  agent_id?: string | null;
14925
+ artefact_bytes?: number | null;
14926
+ artefact_gereed_op?: string | null;
14927
+ artefact_pad?: string | null;
14928
+ artefact_sha256?: string | null;
14929
+ batch_id?: string | null;
14217
14930
  bron_job_id?: string | null;
14218
14931
  created_at?: string;
14219
14932
  documentnaam?: string;
14220
14933
  documenttype?: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
14221
14934
  extern_job_id?: string | null;
14935
+ fase_gestart_op?: string | null;
14936
+ fase_voltooid_op?: string | null;
14937
+ foutcode?: string | null;
14222
14938
  foutmelding?: string | null;
14223
14939
  gebruiker_id?: string | null;
14224
14940
  gebruiker_naam?: string;
@@ -14232,7 +14948,10 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
14232
14948
  kopieen?: number;
14233
14949
  layout_id?: string | null;
14234
14950
  lokaal_opgeslagen_op?: string | null;
14951
+ lokale_pdf_claim_id?: string | null;
14952
+ lokale_pdf_claim_tot?: string | null;
14235
14953
  lokale_pdf_fout?: string | null;
14954
+ lokale_pdf_print_plek_id?: string | null;
14236
14955
  lokale_pdf_status?: string | null;
14237
14956
  opgepakt_op?: string | null;
14238
14957
  paginas?: number;
@@ -14245,6 +14964,7 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
14245
14964
  resultaat_pdf_base64?: string | null;
14246
14965
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
14247
14966
  updated_at?: string;
14967
+ verwerkingsfase?: string;
14248
14968
  volgende_poging?: string | null;
14249
14969
  voltooid_op?: string | null;
14250
14970
  };
@@ -14260,6 +14980,12 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
14260
14980
  isOneToOne: false;
14261
14981
  referencedRelation: "document_layouts";
14262
14982
  referencedColumns: ["id"];
14983
+ }, {
14984
+ foreignKeyName: "print_jobs_lokale_pdf_print_plek_id_fkey";
14985
+ columns: ["lokale_pdf_print_plek_id"];
14986
+ isOneToOne: false;
14987
+ referencedRelation: "print_plekken";
14988
+ referencedColumns: ["id"];
14263
14989
  }, {
14264
14990
  foreignKeyName: "print_jobs_printer_id_fkey";
14265
14991
  columns: ["printer_id"];
@@ -14394,6 +15120,30 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
14394
15120
  };
14395
15121
  Relationships: [];
14396
15122
  };
15123
+ print_queue_leases: {
15124
+ Row: {
15125
+ created_at: string;
15126
+ houder: string;
15127
+ naam: string;
15128
+ updated_at: string;
15129
+ verloopt_op: string;
15130
+ };
15131
+ Insert: {
15132
+ created_at?: string;
15133
+ houder: string;
15134
+ naam: string;
15135
+ updated_at?: string;
15136
+ verloopt_op: string;
15137
+ };
15138
+ Update: {
15139
+ created_at?: string;
15140
+ houder?: string;
15141
+ naam?: string;
15142
+ updated_at?: string;
15143
+ verloopt_op?: string;
15144
+ };
15145
+ Relationships: [];
15146
+ };
14397
15147
  print_queue_runners: {
14398
15148
  Row: {
14399
15149
  actief: boolean;
@@ -14403,7 +15153,9 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
14403
15153
  laatst_gezien: string;
14404
15154
  laatste_fout: string | null;
14405
15155
  laatste_request_id: number | null;
15156
+ laatste_wakeup: string | null;
14406
15157
  mislukte_posts: number;
15158
+ mislukte_wakeups: number;
14407
15159
  tick_sleutel: string;
14408
15160
  updated_at: string;
14409
15161
  };
@@ -14415,7 +15167,9 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
14415
15167
  laatst_gezien?: string;
14416
15168
  laatste_fout?: string | null;
14417
15169
  laatste_request_id?: number | null;
15170
+ laatste_wakeup?: string | null;
14418
15171
  mislukte_posts?: number;
15172
+ mislukte_wakeups?: number;
14419
15173
  tick_sleutel?: string;
14420
15174
  updated_at?: string;
14421
15175
  };
@@ -14427,7 +15181,9 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
14427
15181
  laatst_gezien?: string;
14428
15182
  laatste_fout?: string | null;
14429
15183
  laatste_request_id?: number | null;
15184
+ laatste_wakeup?: string | null;
14430
15185
  mislukte_posts?: number;
15186
+ mislukte_wakeups?: number;
14431
15187
  tick_sleutel?: string;
14432
15188
  updated_at?: string;
14433
15189
  };
@@ -14741,6 +15497,12 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
14741
15497
  updated_at?: string;
14742
15498
  };
14743
15499
  Relationships: [{
15500
+ foreignKeyName: "product_bom_external_items_parent_product_id_fkey";
15501
+ columns: ["parent_product_id"];
15502
+ isOneToOne: false;
15503
+ referencedRelation: "logistics_product_dimensions";
15504
+ referencedColumns: ["product_id"];
15505
+ }, {
14744
15506
  foreignKeyName: "product_bom_external_items_parent_product_id_fkey";
14745
15507
  columns: ["parent_product_id"];
14746
15508
  isOneToOne: false;
@@ -14795,11 +15557,23 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
14795
15557
  updated_at?: string;
14796
15558
  };
14797
15559
  Relationships: [{
15560
+ foreignKeyName: "product_bom_items_component_product_id_fkey";
15561
+ columns: ["component_product_id"];
15562
+ isOneToOne: false;
15563
+ referencedRelation: "logistics_product_dimensions";
15564
+ referencedColumns: ["product_id"];
15565
+ }, {
14798
15566
  foreignKeyName: "product_bom_items_component_product_id_fkey";
14799
15567
  columns: ["component_product_id"];
14800
15568
  isOneToOne: false;
14801
15569
  referencedRelation: "products";
14802
15570
  referencedColumns: ["id"];
15571
+ }, {
15572
+ foreignKeyName: "product_bom_items_parent_product_id_fkey";
15573
+ columns: ["parent_product_id"];
15574
+ isOneToOne: false;
15575
+ referencedRelation: "logistics_product_dimensions";
15576
+ referencedColumns: ["product_id"];
14803
15577
  }, {
14804
15578
  foreignKeyName: "product_bom_items_parent_product_id_fkey";
14805
15579
  columns: ["parent_product_id"];
@@ -14975,6 +15749,12 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
14975
15749
  updated_at?: string;
14976
15750
  };
14977
15751
  Relationships: [{
15752
+ foreignKeyName: "product_groups_head_product_id_fkey";
15753
+ columns: ["head_product_id"];
15754
+ isOneToOne: false;
15755
+ referencedRelation: "logistics_product_dimensions";
15756
+ referencedColumns: ["product_id"];
15757
+ }, {
14978
15758
  foreignKeyName: "product_groups_head_product_id_fkey";
14979
15759
  columns: ["head_product_id"];
14980
15760
  isOneToOne: false;
@@ -15040,6 +15820,12 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
15040
15820
  isOneToOne: false;
15041
15821
  referencedRelation: "packages";
15042
15822
  referencedColumns: ["id"];
15823
+ }, {
15824
+ foreignKeyName: "product_load_settings_product_id_fkey";
15825
+ columns: ["product_id"];
15826
+ isOneToOne: false;
15827
+ referencedRelation: "logistics_product_dimensions";
15828
+ referencedColumns: ["product_id"];
15043
15829
  }, {
15044
15830
  foreignKeyName: "product_load_settings_product_id_fkey";
15045
15831
  columns: ["product_id"];
@@ -15090,6 +15876,7 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
15090
15876
  created_at: string;
15091
15877
  custom_fields: import("../integrations/supabase/types").Json;
15092
15878
  floriday_trade_item_id: string | null;
15879
+ fust_type_id: string | null;
15093
15880
  id: string;
15094
15881
  image_url: string | null;
15095
15882
  incoming_quantity: number;
@@ -15097,6 +15884,7 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
15097
15884
  layers_per_cart: number;
15098
15885
  location: string;
15099
15886
  min_quantity: number;
15887
+ plant_height_cm: number | null;
15100
15888
  plants_per_crate: number;
15101
15889
  product: string;
15102
15890
  product_type: string;
@@ -15116,6 +15904,7 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
15116
15904
  created_at?: string;
15117
15905
  custom_fields?: import("../integrations/supabase/types").Json;
15118
15906
  floriday_trade_item_id?: string | null;
15907
+ fust_type_id?: string | null;
15119
15908
  id?: string;
15120
15909
  image_url?: string | null;
15121
15910
  incoming_quantity?: number;
@@ -15123,6 +15912,7 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
15123
15912
  layers_per_cart?: number;
15124
15913
  location: string;
15125
15914
  min_quantity?: number;
15915
+ plant_height_cm?: number | null;
15126
15916
  plants_per_crate?: number;
15127
15917
  product: string;
15128
15918
  product_type?: string;
@@ -15142,6 +15932,7 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
15142
15932
  created_at?: string;
15143
15933
  custom_fields?: import("../integrations/supabase/types").Json;
15144
15934
  floriday_trade_item_id?: string | null;
15935
+ fust_type_id?: string | null;
15145
15936
  id?: string;
15146
15937
  image_url?: string | null;
15147
15938
  incoming_quantity?: number;
@@ -15149,6 +15940,7 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
15149
15940
  layers_per_cart?: number;
15150
15941
  location?: string;
15151
15942
  min_quantity?: number;
15943
+ plant_height_cm?: number | null;
15152
15944
  plants_per_crate?: number;
15153
15945
  product?: string;
15154
15946
  product_type?: string;
@@ -15160,7 +15952,13 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
15160
15952
  updated_at?: string;
15161
15953
  weight?: string | null;
15162
15954
  };
15163
- Relationships: [];
15955
+ Relationships: [{
15956
+ foreignKeyName: "products_fust_type_id_fkey";
15957
+ columns: ["fust_type_id"];
15958
+ isOneToOne: false;
15959
+ referencedRelation: "fust_types";
15960
+ referencedColumns: ["id"];
15961
+ }];
15164
15962
  };
15165
15963
  profile_modules: {
15166
15964
  Row: {
@@ -15494,6 +16292,12 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
15494
16292
  quantity?: number;
15495
16293
  };
15496
16294
  Relationships: [{
16295
+ foreignKeyName: "purchase_order_items_product_id_fkey";
16296
+ columns: ["product_id"];
16297
+ isOneToOne: false;
16298
+ referencedRelation: "logistics_product_dimensions";
16299
+ referencedColumns: ["product_id"];
16300
+ }, {
15497
16301
  foreignKeyName: "purchase_order_items_product_id_fkey";
15498
16302
  columns: ["product_id"];
15499
16303
  isOneToOne: false;
@@ -15813,21 +16617,117 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
15813
16617
  referencedColumns: ["id"];
15814
16618
  }];
15815
16619
  };
15816
- scan_karren: {
16620
+ scan_kar_sessie_regels: {
15817
16621
  Row: {
15818
- afgerond_op: string | null;
15819
- buffer_key: string | null;
16622
+ barcode: string;
16623
+ cart_id: string | null;
15820
16624
  created_at: string;
15821
- customer_names: string[];
15822
- device_id: string | null;
15823
- geprint: boolean;
15824
- geprint_op: string | null;
15825
16625
  id: string;
15826
- kar_nummer: string;
15827
- medewerker_id: string | null;
15828
- medewerker_naam: string | null;
15829
- naar_pickstation: boolean;
15830
- naar_pickstation_op: string | null;
16626
+ order_id: string | null;
16627
+ order_number: string | null;
16628
+ regels: import("../integrations/supabase/types").Json;
16629
+ sessie_id: string;
16630
+ volledig: boolean;
16631
+ };
16632
+ Insert: {
16633
+ barcode: string;
16634
+ cart_id?: string | null;
16635
+ created_at?: string;
16636
+ id?: string;
16637
+ order_id?: string | null;
16638
+ order_number?: string | null;
16639
+ regels?: import("../integrations/supabase/types").Json;
16640
+ sessie_id: string;
16641
+ volledig?: boolean;
16642
+ };
16643
+ Update: {
16644
+ barcode?: string;
16645
+ cart_id?: string | null;
16646
+ created_at?: string;
16647
+ id?: string;
16648
+ order_id?: string | null;
16649
+ order_number?: string | null;
16650
+ regels?: import("../integrations/supabase/types").Json;
16651
+ sessie_id?: string;
16652
+ volledig?: boolean;
16653
+ };
16654
+ Relationships: [{
16655
+ foreignKeyName: "scan_kar_sessie_regels_sessie_id_fkey";
16656
+ columns: ["sessie_id"];
16657
+ isOneToOne: false;
16658
+ referencedRelation: "scan_kar_sessies";
16659
+ referencedColumns: ["id"];
16660
+ }];
16661
+ };
16662
+ scan_kar_sessies: {
16663
+ Row: {
16664
+ afgerond_op: string | null;
16665
+ cart_id: string | null;
16666
+ cart_index: number | null;
16667
+ cart_total: number | null;
16668
+ created_at: string;
16669
+ id: string;
16670
+ klant_naam: string | null;
16671
+ medewerker_naam: string | null;
16672
+ order_id: string | null;
16673
+ order_number: string | null;
16674
+ scanner_id: string | null;
16675
+ status: string;
16676
+ updated_at: string;
16677
+ };
16678
+ Insert: {
16679
+ afgerond_op?: string | null;
16680
+ cart_id?: string | null;
16681
+ cart_index?: number | null;
16682
+ cart_total?: number | null;
16683
+ created_at?: string;
16684
+ id?: string;
16685
+ klant_naam?: string | null;
16686
+ medewerker_naam?: string | null;
16687
+ order_id?: string | null;
16688
+ order_number?: string | null;
16689
+ scanner_id?: string | null;
16690
+ status?: string;
16691
+ updated_at?: string;
16692
+ };
16693
+ Update: {
16694
+ afgerond_op?: string | null;
16695
+ cart_id?: string | null;
16696
+ cart_index?: number | null;
16697
+ cart_total?: number | null;
16698
+ created_at?: string;
16699
+ id?: string;
16700
+ klant_naam?: string | null;
16701
+ medewerker_naam?: string | null;
16702
+ order_id?: string | null;
16703
+ order_number?: string | null;
16704
+ scanner_id?: string | null;
16705
+ status?: string;
16706
+ updated_at?: string;
16707
+ };
16708
+ Relationships: [{
16709
+ foreignKeyName: "scan_kar_sessies_scanner_id_fkey";
16710
+ columns: ["scanner_id"];
16711
+ isOneToOne: false;
16712
+ referencedRelation: "scan_scanners";
16713
+ referencedColumns: ["id"];
16714
+ }];
16715
+ };
16716
+ scan_karren: {
16717
+ Row: {
16718
+ afgerond_op: string | null;
16719
+ buffer_key: string | null;
16720
+ created_at: string;
16721
+ customer_names: string[];
16722
+ device_id: string | null;
16723
+ geprint: boolean;
16724
+ geprint_op: string | null;
16725
+ id: string;
16726
+ kar_nummer: string;
16727
+ medewerker_id: string | null;
16728
+ medewerker_naam: string | null;
16729
+ naar_pickstation: boolean;
16730
+ naar_pickstation_op: string | null;
15831
16731
  order_number: string | null;
15832
16732
  scanner_id: string | null;
15833
16733
  scanner_key: string;
@@ -16017,6 +16917,60 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
16017
16917
  };
16018
16918
  Relationships: [];
16019
16919
  };
16920
+ scan_restpakbonnen: {
16921
+ Row: {
16922
+ barcode: string;
16923
+ bron_barcode: string | null;
16924
+ cart_id: string | null;
16925
+ cart_index: number | null;
16926
+ cart_total: number | null;
16927
+ created_at: string;
16928
+ geprint_op: string | null;
16929
+ id: string;
16930
+ klant_naam: string | null;
16931
+ order_id: string | null;
16932
+ order_number: string | null;
16933
+ print_job_id: string | null;
16934
+ regels: import("../integrations/supabase/types").Json;
16935
+ updated_at: string;
16936
+ verwerkt: boolean;
16937
+ };
16938
+ Insert: {
16939
+ barcode: string;
16940
+ bron_barcode?: string | null;
16941
+ cart_id?: string | null;
16942
+ cart_index?: number | null;
16943
+ cart_total?: number | null;
16944
+ created_at?: string;
16945
+ geprint_op?: string | null;
16946
+ id?: string;
16947
+ klant_naam?: string | null;
16948
+ order_id?: string | null;
16949
+ order_number?: string | null;
16950
+ print_job_id?: string | null;
16951
+ regels?: import("../integrations/supabase/types").Json;
16952
+ updated_at?: string;
16953
+ verwerkt?: boolean;
16954
+ };
16955
+ Update: {
16956
+ barcode?: string;
16957
+ bron_barcode?: string | null;
16958
+ cart_id?: string | null;
16959
+ cart_index?: number | null;
16960
+ cart_total?: number | null;
16961
+ created_at?: string;
16962
+ geprint_op?: string | null;
16963
+ id?: string;
16964
+ klant_naam?: string | null;
16965
+ order_id?: string | null;
16966
+ order_number?: string | null;
16967
+ print_job_id?: string | null;
16968
+ regels?: import("../integrations/supabase/types").Json;
16969
+ updated_at?: string;
16970
+ verwerkt?: boolean;
16971
+ };
16972
+ Relationships: [];
16973
+ };
16020
16974
  scan_scanners: {
16021
16975
  Row: {
16022
16976
  actief: boolean;
@@ -16026,6 +16980,7 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
16026
16980
  naam: string;
16027
16981
  omschrijving: string | null;
16028
16982
  pincode: string | null;
16983
+ printer_id: string | null;
16029
16984
  slug: string;
16030
16985
  type: string;
16031
16986
  updated_at: string;
@@ -16040,6 +16995,7 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
16040
16995
  naam: string;
16041
16996
  omschrijving?: string | null;
16042
16997
  pincode?: string | null;
16998
+ printer_id?: string | null;
16043
16999
  slug: string;
16044
17000
  type?: string;
16045
17001
  updated_at?: string;
@@ -16054,6 +17010,7 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
16054
17010
  naam?: string;
16055
17011
  omschrijving?: string | null;
16056
17012
  pincode?: string | null;
17013
+ printer_id?: string | null;
16057
17014
  slug?: string;
16058
17015
  type?: string;
16059
17016
  updated_at?: string;
@@ -16062,6 +17019,27 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
16062
17019
  };
16063
17020
  Relationships: [];
16064
17021
  };
17022
+ shell_settings: {
17023
+ Row: {
17024
+ created_at: string;
17025
+ default_path: string | null;
17026
+ shell_id: string;
17027
+ updated_at: string;
17028
+ };
17029
+ Insert: {
17030
+ created_at?: string;
17031
+ default_path?: string | null;
17032
+ shell_id: string;
17033
+ updated_at?: string;
17034
+ };
17035
+ Update: {
17036
+ created_at?: string;
17037
+ default_path?: string | null;
17038
+ shell_id?: string;
17039
+ updated_at?: string;
17040
+ };
17041
+ Relationships: [];
17042
+ };
16065
17043
  sick_periods: {
16066
17044
  Row: {
16067
17045
  created_at: string;
@@ -16681,6 +17659,12 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
16681
17659
  isOneToOne: false;
16682
17660
  referencedRelation: "werkbonnen";
16683
17661
  referencedColumns: ["id"];
17662
+ }, {
17663
+ foreignKeyName: "time_logs_work_order_id_fkey";
17664
+ columns: ["work_order_id"];
17665
+ isOneToOne: false;
17666
+ referencedRelation: "wo_overview";
17667
+ referencedColumns: ["id"];
16684
17668
  }];
16685
17669
  };
16686
17670
  time_off_entries: {
@@ -17974,6 +18958,12 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
17974
18958
  isOneToOne: false;
17975
18959
  referencedRelation: "werkbonnen";
17976
18960
  referencedColumns: ["id"];
18961
+ }, {
18962
+ foreignKeyName: "uren_entries_werkbon_id_fkey";
18963
+ columns: ["werkbon_id"];
18964
+ isOneToOne: false;
18965
+ referencedRelation: "wo_overview";
18966
+ referencedColumns: ["id"];
17977
18967
  }];
17978
18968
  };
17979
18969
  uren_exports: {
@@ -18697,6 +19687,12 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
18697
19687
  isOneToOne: true;
18698
19688
  referencedRelation: "werkbonnen";
18699
19689
  referencedColumns: ["id"];
19690
+ }, {
19691
+ foreignKeyName: "werkbon_facturatie_controle_werkbon_id_fkey";
19692
+ columns: ["werkbon_id"];
19693
+ isOneToOne: true;
19694
+ referencedRelation: "wo_overview";
19695
+ referencedColumns: ["id"];
18700
19696
  }];
18701
19697
  };
18702
19698
  werkbon_facturatie_settings: {
@@ -18784,6 +19780,12 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
18784
19780
  isOneToOne: false;
18785
19781
  referencedRelation: "werkbonnen";
18786
19782
  referencedColumns: ["id"];
19783
+ }, {
19784
+ foreignKeyName: "werkbon_materials_werkbon_id_fkey";
19785
+ columns: ["werkbon_id"];
19786
+ isOneToOne: false;
19787
+ referencedRelation: "wo_overview";
19788
+ referencedColumns: ["id"];
18787
19789
  }];
18788
19790
  };
18789
19791
  werkbon_package_ai_rules: {
@@ -18967,6 +19969,12 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
18967
19969
  isOneToOne: false;
18968
19970
  referencedRelation: "werkbonnen";
18969
19971
  referencedColumns: ["id"];
19972
+ }, {
19973
+ foreignKeyName: "werkbon_package_lines_werkbon_id_fkey";
19974
+ columns: ["werkbon_id"];
19975
+ isOneToOne: false;
19976
+ referencedRelation: "wo_overview";
19977
+ referencedColumns: ["id"];
18970
19978
  }];
18971
19979
  };
18972
19980
  werkbon_packages: {
@@ -19057,6 +20065,12 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
19057
20065
  isOneToOne: false;
19058
20066
  referencedRelation: "werkbonnen";
19059
20067
  referencedColumns: ["id"];
20068
+ }, {
20069
+ foreignKeyName: "werkbon_photos_werkbon_id_fkey";
20070
+ columns: ["werkbon_id"];
20071
+ isOneToOne: false;
20072
+ referencedRelation: "wo_overview";
20073
+ referencedColumns: ["id"];
19060
20074
  }];
19061
20075
  };
19062
20076
  werkbon_time_logs: {
@@ -19096,6 +20110,12 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
19096
20110
  isOneToOne: false;
19097
20111
  referencedRelation: "werkbonnen";
19098
20112
  referencedColumns: ["id"];
20113
+ }, {
20114
+ foreignKeyName: "werkbon_time_logs_werkbon_id_fkey";
20115
+ columns: ["werkbon_id"];
20116
+ isOneToOne: false;
20117
+ referencedRelation: "wo_overview";
20118
+ referencedColumns: ["id"];
19099
20119
  }];
19100
20120
  };
19101
20121
  werkbonnen: {
@@ -19219,6 +20239,12 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
19219
20239
  isOneToOne: false;
19220
20240
  referencedRelation: "werkbonnen";
19221
20241
  referencedColumns: ["id"];
20242
+ }, {
20243
+ foreignKeyName: "werkbonnen_parent_werkbon_id_fkey";
20244
+ columns: ["parent_werkbon_id"];
20245
+ isOneToOne: false;
20246
+ referencedRelation: "wo_overview";
20247
+ referencedColumns: ["id"];
19222
20248
  }, {
19223
20249
  foreignKeyName: "werkbonnen_source_mailbox_message_id_fkey";
19224
20250
  columns: ["source_mailbox_message_id"];
@@ -19687,6 +20713,24 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
19687
20713
  };
19688
20714
  Relationships: [];
19689
20715
  };
20716
+ logistics_product_dimensions: {
20717
+ Row: {
20718
+ dimension_source: string | null;
20719
+ fust_height_mm: number | null;
20720
+ fust_length_mm: number | null;
20721
+ fust_name: string | null;
20722
+ fust_source: string | null;
20723
+ fust_type_id: string | null;
20724
+ fust_width_mm: number | null;
20725
+ height_source: string | null;
20726
+ missing_reason: string | null;
20727
+ plant_height_cm: number | null;
20728
+ plants_per_crate: number | null;
20729
+ product_id: string | null;
20730
+ product_name: string | null;
20731
+ };
20732
+ Relationships: [];
20733
+ };
19690
20734
  manufacture_product_possible_stock_view: {
19691
20735
  Row: {
19692
20736
  component_count: number | null;
@@ -19724,6 +20768,12 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
19724
20768
  isOneToOne: false;
19725
20769
  referencedRelation: "werkbonnen";
19726
20770
  referencedColumns: ["id"];
20771
+ }, {
20772
+ foreignKeyName: "planning_items_werkbon_id_fkey";
20773
+ columns: ["werkbon_id"];
20774
+ isOneToOne: false;
20775
+ referencedRelation: "wo_overview";
20776
+ referencedColumns: ["id"];
19727
20777
  }];
19728
20778
  };
19729
20779
  product_group_stock_view: {
@@ -20185,6 +21235,81 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
20185
21235
  isOneToOne: false;
20186
21236
  referencedRelation: "werkbonnen";
20187
21237
  referencedColumns: ["id"];
21238
+ }, {
21239
+ foreignKeyName: "werkbon_package_lines_werkbon_id_fkey";
21240
+ columns: ["werkbon_id"];
21241
+ isOneToOne: false;
21242
+ referencedRelation: "wo_overview";
21243
+ referencedColumns: ["id"];
21244
+ }];
21245
+ };
21246
+ wo_overview: {
21247
+ Row: {
21248
+ assigned_user_id: string | null;
21249
+ budget_mandate_cents: number | null;
21250
+ created_at: string | null;
21251
+ customer_id: string | null;
21252
+ id: string | null;
21253
+ needs_detail_review: boolean | null;
21254
+ number: string | null;
21255
+ parent_werkbon_id: string | null;
21256
+ planning_status: string | null;
21257
+ scheduled_end_time: string | null;
21258
+ scheduled_start_time: string | null;
21259
+ source_type: string | null;
21260
+ status: string | null;
21261
+ technician_id: string | null;
21262
+ updated_at: string | null;
21263
+ work_address: string | null;
21264
+ };
21265
+ Insert: {
21266
+ assigned_user_id?: string | null;
21267
+ budget_mandate_cents?: number | null;
21268
+ created_at?: string | null;
21269
+ customer_id?: string | null;
21270
+ id?: string | null;
21271
+ needs_detail_review?: boolean | null;
21272
+ number?: string | null;
21273
+ parent_werkbon_id?: string | null;
21274
+ planning_status?: string | null;
21275
+ scheduled_end_time?: string | null;
21276
+ scheduled_start_time?: string | null;
21277
+ source_type?: string | null;
21278
+ status?: string | null;
21279
+ technician_id?: string | null;
21280
+ updated_at?: string | null;
21281
+ work_address?: string | null;
21282
+ };
21283
+ Update: {
21284
+ assigned_user_id?: string | null;
21285
+ budget_mandate_cents?: number | null;
21286
+ created_at?: string | null;
21287
+ customer_id?: string | null;
21288
+ id?: string | null;
21289
+ needs_detail_review?: boolean | null;
21290
+ number?: string | null;
21291
+ parent_werkbon_id?: string | null;
21292
+ planning_status?: string | null;
21293
+ scheduled_end_time?: string | null;
21294
+ scheduled_start_time?: string | null;
21295
+ source_type?: string | null;
21296
+ status?: string | null;
21297
+ technician_id?: string | null;
21298
+ updated_at?: string | null;
21299
+ work_address?: string | null;
21300
+ };
21301
+ Relationships: [{
21302
+ foreignKeyName: "werkbonnen_parent_werkbon_id_fkey";
21303
+ columns: ["parent_werkbon_id"];
21304
+ isOneToOne: false;
21305
+ referencedRelation: "werkbonnen";
21306
+ referencedColumns: ["id"];
21307
+ }, {
21308
+ foreignKeyName: "werkbonnen_parent_werkbon_id_fkey";
21309
+ columns: ["parent_werkbon_id"];
21310
+ isOneToOne: false;
21311
+ referencedRelation: "wo_overview";
21312
+ referencedColumns: ["id"];
20188
21313
  }];
20189
21314
  };
20190
21315
  };
@@ -20376,12 +21501,21 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
20376
21501
  _max?: number;
20377
21502
  };
20378
21503
  Returns: {
21504
+ aflever_pogingen: number;
20379
21505
  agent_id: string | null;
21506
+ artefact_bytes: number | null;
21507
+ artefact_gereed_op: string | null;
21508
+ artefact_pad: string | null;
21509
+ artefact_sha256: string | null;
21510
+ batch_id: string | null;
20380
21511
  bron_job_id: string | null;
20381
21512
  created_at: string;
20382
21513
  documentnaam: string;
20383
21514
  documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
20384
21515
  extern_job_id: string | null;
21516
+ fase_gestart_op: string | null;
21517
+ fase_voltooid_op: string | null;
21518
+ foutcode: string | null;
20385
21519
  foutmelding: string | null;
20386
21520
  gebruiker_id: string | null;
20387
21521
  gebruiker_naam: string;
@@ -20395,7 +21529,10 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
20395
21529
  kopieen: number;
20396
21530
  layout_id: string | null;
20397
21531
  lokaal_opgeslagen_op: string | null;
21532
+ lokale_pdf_claim_id: string | null;
21533
+ lokale_pdf_claim_tot: string | null;
20398
21534
  lokale_pdf_fout: string | null;
21535
+ lokale_pdf_print_plek_id: string | null;
20399
21536
  lokale_pdf_status: string | null;
20400
21537
  opgepakt_op: string | null;
20401
21538
  paginas: number;
@@ -20408,6 +21545,7 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
20408
21545
  resultaat_pdf_base64: string | null;
20409
21546
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
20410
21547
  updated_at: string;
21548
+ verwerkingsfase: string;
20411
21549
  volgende_poging: string | null;
20412
21550
  voltooid_op: string | null;
20413
21551
  }[];
@@ -20454,6 +21592,25 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
20454
21592
  isSetofReturn: true;
20455
21593
  };
20456
21594
  };
21595
+ claim_local_pdf_jobs: {
21596
+ Args: {
21597
+ _max?: number;
21598
+ _print_plek_id: string;
21599
+ _writer_id: string;
21600
+ };
21601
+ Returns: {
21602
+ artefact_bytes: number;
21603
+ artefact_pad: string;
21604
+ artefact_sha256: string;
21605
+ documentnaam: string;
21606
+ id: string;
21607
+ lokale_pdf_print_plek_id: string;
21608
+ lokale_pdf_status: string;
21609
+ printer_id: string;
21610
+ resultaat_pdf_base64: string;
21611
+ status: string;
21612
+ }[];
21613
+ };
20457
21614
  claim_logistics_tasks: {
20458
21615
  Args: {
20459
21616
  _limit?: number;
@@ -20507,12 +21664,21 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
20507
21664
  _max?: number;
20508
21665
  };
20509
21666
  Returns: {
21667
+ aflever_pogingen: number;
20510
21668
  agent_id: string | null;
21669
+ artefact_bytes: number | null;
21670
+ artefact_gereed_op: string | null;
21671
+ artefact_pad: string | null;
21672
+ artefact_sha256: string | null;
21673
+ batch_id: string | null;
20511
21674
  bron_job_id: string | null;
20512
21675
  created_at: string;
20513
21676
  documentnaam: string;
20514
21677
  documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
20515
21678
  extern_job_id: string | null;
21679
+ fase_gestart_op: string | null;
21680
+ fase_voltooid_op: string | null;
21681
+ foutcode: string | null;
20516
21682
  foutmelding: string | null;
20517
21683
  gebruiker_id: string | null;
20518
21684
  gebruiker_naam: string;
@@ -20526,7 +21692,10 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
20526
21692
  kopieen: number;
20527
21693
  layout_id: string | null;
20528
21694
  lokaal_opgeslagen_op: string | null;
21695
+ lokale_pdf_claim_id: string | null;
21696
+ lokale_pdf_claim_tot: string | null;
20529
21697
  lokale_pdf_fout: string | null;
21698
+ lokale_pdf_print_plek_id: string | null;
20530
21699
  lokale_pdf_status: string | null;
20531
21700
  opgepakt_op: string | null;
20532
21701
  paginas: number;
@@ -20539,6 +21708,7 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
20539
21708
  resultaat_pdf_base64: string | null;
20540
21709
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
20541
21710
  updated_at: string;
21711
+ verwerkingsfase: string;
20542
21712
  volgende_poging: string | null;
20543
21713
  voltooid_op: string | null;
20544
21714
  }[];
@@ -20555,12 +21725,21 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
20555
21725
  _max?: number;
20556
21726
  };
20557
21727
  Returns: {
21728
+ aflever_pogingen: number;
20558
21729
  agent_id: string | null;
21730
+ artefact_bytes: number | null;
21731
+ artefact_gereed_op: string | null;
21732
+ artefact_pad: string | null;
21733
+ artefact_sha256: string | null;
21734
+ batch_id: string | null;
20559
21735
  bron_job_id: string | null;
20560
21736
  created_at: string;
20561
21737
  documentnaam: string;
20562
21738
  documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
20563
21739
  extern_job_id: string | null;
21740
+ fase_gestart_op: string | null;
21741
+ fase_voltooid_op: string | null;
21742
+ foutcode: string | null;
20564
21743
  foutmelding: string | null;
20565
21744
  gebruiker_id: string | null;
20566
21745
  gebruiker_naam: string;
@@ -20574,7 +21753,10 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
20574
21753
  kopieen: number;
20575
21754
  layout_id: string | null;
20576
21755
  lokaal_opgeslagen_op: string | null;
21756
+ lokale_pdf_claim_id: string | null;
21757
+ lokale_pdf_claim_tot: string | null;
20577
21758
  lokale_pdf_fout: string | null;
21759
+ lokale_pdf_print_plek_id: string | null;
20578
21760
  lokale_pdf_status: string | null;
20579
21761
  opgepakt_op: string | null;
20580
21762
  paginas: number;
@@ -20587,6 +21769,7 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
20587
21769
  resultaat_pdf_base64: string | null;
20588
21770
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
20589
21771
  updated_at: string;
21772
+ verwerkingsfase: string;
20590
21773
  volgende_poging: string | null;
20591
21774
  voltooid_op: string | null;
20592
21775
  }[];
@@ -20597,6 +21780,14 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
20597
21780
  isSetofReturn: true;
20598
21781
  };
20599
21782
  };
21783
+ claim_print_queue_lease: {
21784
+ Args: {
21785
+ _houder: string;
21786
+ _naam: string;
21787
+ _seconden?: number;
21788
+ };
21789
+ Returns: boolean;
21790
+ };
20600
21791
  claim_twinfield_push_batch: {
20601
21792
  Args: {
20602
21793
  _customer_id?: string;
@@ -20722,7 +21913,10 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
20722
21913
  cart_index: number;
20723
21914
  cart_number: string;
20724
21915
  cart_number_id: string;
21916
+ cart_seq: number;
21917
+ cart_total: number;
20725
21918
  order_id: string;
21919
+ order_number: string;
20726
21920
  order_source: string;
20727
21921
  pick_date: string;
20728
21922
  printed_at: string;
@@ -20730,8 +21924,14 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
20730
21924
  status: string;
20731
21925
  }[];
20732
21926
  };
20733
- count_distinct_regulatory_products: {
20734
- Args: never;
21927
+ control_mark_carts_delivered: {
21928
+ Args: {
21929
+ p_carts: import("../integrations/supabase/types").Json;
21930
+ };
21931
+ Returns: number;
21932
+ };
21933
+ count_distinct_regulatory_products: {
21934
+ Args: never;
20735
21935
  Returns: number;
20736
21936
  };
20737
21937
  current_monteur_id: {
@@ -20857,6 +22057,13 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
20857
22057
  };
20858
22058
  Returns: undefined;
20859
22059
  };
22060
+ ensure_system_roles: {
22061
+ Args: never;
22062
+ Returns: {
22063
+ action: string;
22064
+ role_key: string;
22065
+ }[];
22066
+ };
20860
22067
  ensure_trade_item_stock_row: {
20861
22068
  Args: {
20862
22069
  p_key: string;
@@ -20923,6 +22130,15 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
20923
22130
  };
20924
22131
  Returns: string;
20925
22132
  };
22133
+ finish_local_pdf_job: {
22134
+ Args: {
22135
+ _fout?: string;
22136
+ _job_id: string;
22137
+ _status: string;
22138
+ _writer_id: string;
22139
+ };
22140
+ Returns: boolean;
22141
+ };
20926
22142
  floriday_capture_stock_snapshot: {
20927
22143
  Args: never;
20928
22144
  Returns: number;
@@ -21202,6 +22418,36 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
21202
22418
  Args: never;
21203
22419
  Returns: string;
21204
22420
  };
22421
+ handover_archief_lijst: {
22422
+ Args: never;
22423
+ Returns: import("../integrations/supabase/types").Json;
22424
+ };
22425
+ handover_archiveren: {
22426
+ Args: {
22427
+ _archief?: boolean;
22428
+ _module_id: string;
22429
+ };
22430
+ Returns: boolean;
22431
+ };
22432
+ handover_check_afronden: {
22433
+ Args: {
22434
+ _module_id: string;
22435
+ };
22436
+ Returns: boolean;
22437
+ };
22438
+ handover_check_markeren: {
22439
+ Args: {
22440
+ _module_ids: string[];
22441
+ _reden?: string;
22442
+ };
22443
+ Returns: number;
22444
+ };
22445
+ handover_fingerprint_maken: {
22446
+ Args: {
22447
+ _module_id?: string;
22448
+ };
22449
+ Returns: import("../integrations/supabase/types").Json;
22450
+ };
21205
22451
  handover_get: {
21206
22452
  Args: {
21207
22453
  _module_id: string;
@@ -21232,6 +22478,14 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
21232
22478
  };
21233
22479
  Returns: boolean;
21234
22480
  };
22481
+ handover_module_meta_zetten: {
22482
+ Args: {
22483
+ _module_id: string;
22484
+ _project_url?: string;
22485
+ _publicatie_url?: string;
22486
+ };
22487
+ Returns: boolean;
22488
+ };
21235
22489
  handover_norm_naam: {
21236
22490
  Args: {
21237
22491
  _naam: string;
@@ -21252,6 +22506,23 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
21252
22506
  };
21253
22507
  Returns: number;
21254
22508
  };
22509
+ handover_publish_uit_github: {
22510
+ Args: {
22511
+ _bezit_tabellen?: string[];
22512
+ _bron_soort?: string;
22513
+ _commit?: string;
22514
+ _contractfuncties?: string[];
22515
+ _inhoud_md: string;
22516
+ _module_id: string;
22517
+ _module_titel: string;
22518
+ _ontbrekende_contracten?: string[];
22519
+ _pad?: string;
22520
+ _repo?: string;
22521
+ _samenvatting?: string;
22522
+ _versie_label?: string;
22523
+ };
22524
+ Returns: import("../integrations/supabase/types").Json;
22525
+ };
21255
22526
  handover_publish_via_token: {
21256
22527
  Args: {
21257
22528
  _bevindingen?: string;
@@ -21265,7 +22536,7 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
21265
22536
  _samenvatting?: string;
21266
22537
  _token_hash: string;
21267
22538
  };
21268
- Returns: number;
22539
+ Returns: import("../integrations/supabase/types").Json;
21269
22540
  };
21270
22541
  handover_status: {
21271
22542
  Args: never;
@@ -21277,23 +22548,6 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
21277
22548
  };
21278
22549
  Returns: string;
21279
22550
  };
21280
- handover_token_intrekken: {
21281
- Args: {
21282
- _id: string;
21283
- };
21284
- Returns: boolean;
21285
- };
21286
- handover_token_lijst: {
21287
- Args: never;
21288
- Returns: import("../integrations/supabase/types").Json;
21289
- };
21290
- handover_token_maken: {
21291
- Args: {
21292
- _label?: string;
21293
- _module_id: string;
21294
- };
21295
- Returns: string;
21296
- };
21297
22551
  handover_update: {
21298
22552
  Args: {
21299
22553
  _bezit_tabellen?: string[];
@@ -21321,12 +22575,31 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
21321
22575
  };
21322
22576
  Returns: boolean;
21323
22577
  };
22578
+ handover_versie_verwijderen: {
22579
+ Args: {
22580
+ _module_id: string;
22581
+ _versie: number;
22582
+ };
22583
+ Returns: boolean;
22584
+ };
21324
22585
  handover_versies: {
21325
22586
  Args: {
21326
22587
  _module_id: string;
21327
22588
  };
21328
22589
  Returns: import("../integrations/supabase/types").Json;
21329
22590
  };
22591
+ handover_verwijderen: {
22592
+ Args: {
22593
+ _module_id: string;
22594
+ };
22595
+ Returns: boolean;
22596
+ };
22597
+ handover_wijzigingen: {
22598
+ Args: {
22599
+ _module_id?: string;
22600
+ };
22601
+ Returns: import("../integrations/supabase/types").Json;
22602
+ };
21330
22603
  has_module_permission: {
21331
22604
  Args: {
21332
22605
  _min: string;
@@ -21595,6 +22868,30 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
21595
22868
  };
21596
22869
  Returns: import("../integrations/supabase/types").Json;
21597
22870
  };
22871
+ logistics_block_reason_code: {
22872
+ Args: {
22873
+ p_details?: import("../integrations/supabase/types").Json;
22874
+ p_reason: string;
22875
+ };
22876
+ Returns: string;
22877
+ };
22878
+ logistics_blocked_orders: {
22879
+ Args: never;
22880
+ Returns: {
22881
+ attempts: number;
22882
+ blocked_since: string;
22883
+ delivery_date: string;
22884
+ order_id: string;
22885
+ order_ref: string;
22886
+ queue_id: string;
22887
+ reason: string;
22888
+ reason_code: string;
22889
+ }[];
22890
+ };
22891
+ logistics_blocked_overview: {
22892
+ Args: never;
22893
+ Returns: import("../integrations/supabase/types").Json;
22894
+ };
21598
22895
  logistics_buffer_criteria: {
21599
22896
  Args: {
21600
22897
  p_settings: import("../integrations/supabase/types").Json;
@@ -21661,6 +22958,13 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
21661
22958
  };
21662
22959
  Returns: string;
21663
22960
  };
22961
+ logistics_cart_handled: {
22962
+ Args: {
22963
+ p_cart_index: number;
22964
+ p_order_id: string;
22965
+ };
22966
+ Returns: boolean;
22967
+ };
21664
22968
  logistics_cart_index: {
21665
22969
  Args: {
21666
22970
  p_from?: string;
@@ -21670,6 +22974,9 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
21670
22974
  cart_id: string;
21671
22975
  cart_index: number;
21672
22976
  cart_label: string;
22977
+ cart_number: string;
22978
+ cart_seq: number;
22979
+ cart_total: number;
21673
22980
  delivery_date: string;
21674
22981
  is_announced: boolean;
21675
22982
  is_controlled: boolean;
@@ -21684,12 +22991,79 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
21684
22991
  task_status: string;
21685
22992
  }[];
21686
22993
  };
22994
+ logistics_cart_layout_method: {
22995
+ Args: never;
22996
+ Returns: import("../integrations/supabase/types").Json;
22997
+ };
22998
+ logistics_cart_plan_overview: {
22999
+ Args: {
23000
+ p_days?: number;
23001
+ };
23002
+ Returns: {
23003
+ cart_total: number;
23004
+ delivery_date: string;
23005
+ order_ref: string;
23006
+ plan_ready: boolean;
23007
+ reason: string;
23008
+ released: boolean;
23009
+ }[];
23010
+ };
23011
+ logistics_cart_plan_status: {
23012
+ Args: {
23013
+ p_ref: string;
23014
+ };
23015
+ Returns: import("../integrations/supabase/types").Json;
23016
+ };
23017
+ logistics_cart_seq: {
23018
+ Args: {
23019
+ p_order_uuid?: string;
23020
+ };
23021
+ Returns: {
23022
+ cart_id: string;
23023
+ cart_index: number;
23024
+ cart_number: string;
23025
+ cart_seq: number;
23026
+ cart_total: number;
23027
+ order_uuid: string;
23028
+ }[];
23029
+ };
21687
23030
  logistics_cart_slip_plan: {
21688
23031
  Args: {
21689
23032
  p_order_id: string;
21690
23033
  };
21691
23034
  Returns: import("../integrations/supabase/types").Json;
21692
23035
  };
23036
+ logistics_cart_units: {
23037
+ Args: {
23038
+ p_from?: string;
23039
+ p_to?: string;
23040
+ };
23041
+ Returns: {
23042
+ cart_id: string;
23043
+ cart_index: number;
23044
+ cart_label: string;
23045
+ cart_number: string;
23046
+ cart_seq: number;
23047
+ cart_total: number;
23048
+ delivery_date: string;
23049
+ is_announced: boolean;
23050
+ is_buffer: boolean;
23051
+ is_controlled: boolean;
23052
+ is_printed: boolean;
23053
+ is_shared: boolean;
23054
+ order_number: string;
23055
+ order_source: string;
23056
+ order_uuid: string;
23057
+ pick_date: string;
23058
+ printed_at: string;
23059
+ shifted: boolean;
23060
+ task_status: string;
23061
+ unit_buffer: string;
23062
+ unit_order_count: number;
23063
+ unit_orders: string[];
23064
+ unit_ref: string;
23065
+ }[];
23066
+ };
21693
23067
  logistics_check_order_allowed: {
21694
23068
  Args: {
21695
23069
  p_lines: import("../integrations/supabase/types").Json;
@@ -21845,7 +23219,9 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
21845
23219
  announced_carts: number;
21846
23220
  control_carts: number;
21847
23221
  delivery_carts: number;
23222
+ duplicate_carts: number;
21848
23223
  ok: boolean;
23224
+ orphan_carts: number;
21849
23225
  orphan_tasks: number;
21850
23226
  pick_date: string;
21851
23227
  raw_carts: number;
@@ -21853,6 +23229,85 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
21853
23229
  station_carts: number;
21854
23230
  }[];
21855
23231
  };
23232
+ logistics_control_scan_approve: {
23233
+ Args: {
23234
+ p_allow_reprint?: boolean;
23235
+ p_barcode: string;
23236
+ p_printer_id?: string;
23237
+ p_scanner_id?: string;
23238
+ };
23239
+ Returns: import("../integrations/supabase/types").Json;
23240
+ };
23241
+ logistics_control_scan_claim: {
23242
+ Args: {
23243
+ _lease_seconds?: number;
23244
+ _limit?: number;
23245
+ };
23246
+ Returns: {
23247
+ approved_at: string | null;
23248
+ attempts: number;
23249
+ barcode: string;
23250
+ cart_id: string;
23251
+ created_at: string;
23252
+ document_url: string | null;
23253
+ error: string | null;
23254
+ error_code: string | null;
23255
+ fulfillment_order_id: string | null;
23256
+ id: string;
23257
+ is_floriday: boolean;
23258
+ locked_until: string | null;
23259
+ order_id: string | null;
23260
+ order_number: string | null;
23261
+ print_job_id: string | null;
23262
+ printed_at: string | null;
23263
+ printer_id: string | null;
23264
+ scanner_id: string | null;
23265
+ status: string;
23266
+ updated_at: string;
23267
+ }[];
23268
+ SetofOptions: {
23269
+ from: "*";
23270
+ to: "logistics_control_scan";
23271
+ isOneToOne: false;
23272
+ isSetofReturn: true;
23273
+ };
23274
+ };
23275
+ logistics_control_scan_finish: {
23276
+ Args: {
23277
+ _document_url?: string;
23278
+ _error?: string;
23279
+ _error_code?: string;
23280
+ _fulfillment_order_id?: string;
23281
+ _id: string;
23282
+ _ok: boolean;
23283
+ _print_job_id?: string;
23284
+ _status?: string;
23285
+ };
23286
+ Returns: import("../integrations/supabase/types").Json;
23287
+ };
23288
+ logistics_control_scan_lookup: {
23289
+ Args: {
23290
+ p_barcode: string;
23291
+ };
23292
+ Returns: import("../integrations/supabase/types").Json;
23293
+ };
23294
+ logistics_control_scan_overview: {
23295
+ Args: {
23296
+ _date?: string;
23297
+ _scanner_id?: string;
23298
+ };
23299
+ Returns: import("../integrations/supabase/types").Json;
23300
+ };
23301
+ logistics_control_scan_retry: {
23302
+ Args: {
23303
+ _id: string;
23304
+ };
23305
+ Returns: import("../integrations/supabase/types").Json;
23306
+ };
23307
+ logistics_control_settings: {
23308
+ Args: never;
23309
+ Returns: import("../integrations/supabase/types").Json;
23310
+ };
21856
23311
  logistics_delay_customer_email: {
21857
23312
  Args: {
21858
23313
  p_customer: string;
@@ -21920,6 +23375,17 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
21920
23375
  };
21921
23376
  Returns: import("../integrations/supabase/types").Json;
21922
23377
  };
23378
+ logistics_enqueue_sticker_with_slip: {
23379
+ Args: {
23380
+ _cart_id: string;
23381
+ _is_herprint: boolean;
23382
+ _printer_id: string;
23383
+ _queue_item_id: string;
23384
+ _session_id: string;
23385
+ _slip_job_id: string;
23386
+ };
23387
+ Returns: string;
23388
+ };
21923
23389
  logistics_ensure_cart_barcode: {
21924
23390
  Args: {
21925
23391
  _cart_id: string;
@@ -22061,6 +23527,26 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
22061
23527
  };
22062
23528
  Returns: string;
22063
23529
  };
23530
+ logistics_fulfill_barcode_requests: {
23531
+ Args: {
23532
+ p_limit?: number;
23533
+ };
23534
+ Returns: import("../integrations/supabase/types").Json;
23535
+ };
23536
+ logistics_full_cart_min_layers: {
23537
+ Args: never;
23538
+ Returns: number;
23539
+ };
23540
+ logistics_full_cart_min_percentage: {
23541
+ Args: never;
23542
+ Returns: number;
23543
+ };
23544
+ logistics_is_pick_workday: {
23545
+ Args: {
23546
+ p_date: string;
23547
+ };
23548
+ Returns: boolean;
23549
+ };
22064
23550
  logistics_live_carriers: {
22065
23551
  Args: {
22066
23552
  p_order_ref: string;
@@ -22073,6 +23559,20 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
22073
23559
  };
22074
23560
  Returns: number;
22075
23561
  };
23562
+ logistics_next_workday_date: {
23563
+ Args: {
23564
+ p_date: string;
23565
+ p_days?: string[];
23566
+ };
23567
+ Returns: string;
23568
+ };
23569
+ logistics_next_workday_not_past: {
23570
+ Args: {
23571
+ p_days: string[];
23572
+ p_ts: string;
23573
+ };
23574
+ Returns: string;
23575
+ };
22076
23576
  logistics_not_past: {
22077
23577
  Args: {
22078
23578
  p_ts: string;
@@ -22085,6 +23585,19 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
22085
23585
  };
22086
23586
  Returns: number;
22087
23587
  };
23588
+ logistics_order_handled: {
23589
+ Args: {
23590
+ p_order_uuid: string;
23591
+ };
23592
+ Returns: boolean;
23593
+ };
23594
+ logistics_order_is_topick: {
23595
+ Args: {
23596
+ p_order_id: string;
23597
+ p_order_number: string;
23598
+ };
23599
+ Returns: boolean;
23600
+ };
22088
23601
  logistics_order_overview: {
22089
23602
  Args: {
22090
23603
  p_from?: string;
@@ -22110,6 +23623,12 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
22110
23623
  };
22111
23624
  Returns: string;
22112
23625
  };
23626
+ logistics_order_released: {
23627
+ Args: {
23628
+ p_order_ref: string;
23629
+ };
23630
+ Returns: boolean;
23631
+ };
22113
23632
  logistics_parse_pickup: {
22114
23633
  Args: {
22115
23634
  p_value: string;
@@ -22132,10 +23651,37 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
22132
23651
  shifted_count: number;
22133
23652
  }[];
22134
23653
  };
23654
+ logistics_pick_barcode_enabled: {
23655
+ Args: never;
23656
+ Returns: boolean;
23657
+ };
22135
23658
  logistics_pick_email_purpose: {
22136
23659
  Args: never;
22137
23660
  Returns: string;
22138
23661
  };
23662
+ logistics_pick_mode: {
23663
+ Args: never;
23664
+ Returns: import("../integrations/supabase/types").Json;
23665
+ };
23666
+ logistics_pick_start_estimate: {
23667
+ Args: {
23668
+ p_order: import("../integrations/supabase/types").Json;
23669
+ s: import("../integrations/supabase/types").Json;
23670
+ };
23671
+ Returns: string;
23672
+ };
23673
+ logistics_pick_units: {
23674
+ Args: never;
23675
+ Returns: {
23676
+ is_buffer: boolean;
23677
+ order_number: string;
23678
+ order_uuid: string;
23679
+ unit_buffer: string;
23680
+ unit_order_count: number;
23681
+ unit_orders: string[];
23682
+ unit_ref: string;
23683
+ }[];
23684
+ };
22139
23685
  logistics_plan_all: {
22140
23686
  Args: {
22141
23687
  p_user_id?: string;
@@ -22215,6 +23761,12 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
22215
23761
  Args: never;
22216
23762
  Returns: number;
22217
23763
  };
23764
+ logistics_plan_retry: {
23765
+ Args: {
23766
+ p_order_ids: string[];
23767
+ };
23768
+ Returns: number;
23769
+ };
22218
23770
  logistics_plan_setting: {
22219
23771
  Args: {
22220
23772
  p_default: number;
@@ -22222,6 +23774,14 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
22222
23774
  };
22223
23775
  Returns: number;
22224
23776
  };
23777
+ logistics_prune_buffer_member_queue: {
23778
+ Args: never;
23779
+ Returns: number;
23780
+ };
23781
+ logistics_prune_handled_pick_queue: {
23782
+ Args: never;
23783
+ Returns: number;
23784
+ };
22225
23785
  logistics_queue_capacity_email: {
22226
23786
  Args: {
22227
23787
  p_alert_id: string;
@@ -22254,6 +23814,12 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
22254
23814
  Args: never;
22255
23815
  Returns: import("../integrations/supabase/types").Json;
22256
23816
  };
23817
+ logistics_refresh_pickup_moments: {
23818
+ Args: {
23819
+ p_weeks?: number;
23820
+ };
23821
+ Returns: import("../integrations/supabase/types").Json;
23822
+ };
22257
23823
  logistics_report_delay: {
22258
23824
  Args: {
22259
23825
  p_expected_date?: string;
@@ -22360,6 +23926,12 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
22360
23926
  };
22361
23927
  Returns: string;
22362
23928
  };
23929
+ logistics_scan_resolve: {
23930
+ Args: {
23931
+ p_code: string;
23932
+ };
23933
+ Returns: import("../integrations/supabase/types").Json;
23934
+ };
22363
23935
  logistics_schedule_tasks: {
22364
23936
  Args: never;
22365
23937
  Returns: number;
@@ -22394,6 +23966,10 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
22394
23966
  };
22395
23967
  Returns: import("../integrations/supabase/types").Json;
22396
23968
  };
23969
+ logistics_sticker_follows_slip: {
23970
+ Args: never;
23971
+ Returns: boolean;
23972
+ };
22397
23973
  logistics_supersede_stale_tasks: {
22398
23974
  Args: {
22399
23975
  p_keep: string[];
@@ -22426,6 +24002,10 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
22426
24002
  };
22427
24003
  Returns: number;
22428
24004
  };
24005
+ logistics_tick_ping: {
24006
+ Args: never;
24007
+ Returns: string;
24008
+ };
22429
24009
  logistics_upsert_task: {
22430
24010
  Args: {
22431
24011
  p_buffer_ref: string;
@@ -22445,6 +24025,18 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
22445
24025
  };
22446
24026
  Returns: string;
22447
24027
  };
24028
+ logistics_write_buffer_layer_positions: {
24029
+ Args: {
24030
+ p_buffer_id: string;
24031
+ };
24032
+ Returns: number;
24033
+ };
24034
+ logistics_write_cart_layer_positions: {
24035
+ Args: {
24036
+ p_cart_id: string;
24037
+ };
24038
+ Returns: number;
24039
+ };
22448
24040
  mark_offer_clicked: {
22449
24041
  Args: {
22450
24042
  p_code: string;
@@ -22477,6 +24069,15 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
22477
24069
  };
22478
24070
  Returns: undefined;
22479
24071
  };
24072
+ move_cart_layer_position: {
24073
+ Args: {
24074
+ p_id: string;
24075
+ p_layer: number;
24076
+ p_x: number;
24077
+ p_y: number;
24078
+ };
24079
+ Returns: undefined;
24080
+ };
22480
24081
  my_module_permissions: {
22481
24082
  Args: never;
22482
24083
  Returns: {
@@ -22548,6 +24149,12 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
22548
24149
  };
22549
24150
  Returns: import("../integrations/supabase/types").Json;
22550
24151
  };
24152
+ order_heeft_bevestigde_karren: {
24153
+ Args: {
24154
+ p_order_id: string;
24155
+ };
24156
+ Returns: boolean;
24157
+ };
22551
24158
  order_number_prefix: {
22552
24159
  Args: {
22553
24160
  p_custom_fields?: import("../integrations/supabase/types").Json;
@@ -22583,6 +24190,27 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
22583
24190
  online: boolean;
22584
24191
  }[];
22585
24192
  };
24193
+ pick_available_pick_days: {
24194
+ Args: {
24195
+ _max_days?: number;
24196
+ };
24197
+ Returns: {
24198
+ orders: number;
24199
+ pick_day: string;
24200
+ }[];
24201
+ };
24202
+ pick_buffer_order_ids: {
24203
+ Args: {
24204
+ _order_id: string;
24205
+ };
24206
+ Returns: string[];
24207
+ };
24208
+ pick_cart_breakdown: {
24209
+ Args: {
24210
+ _order_id: string;
24211
+ };
24212
+ Returns: import("../integrations/supabase/types").Json;
24213
+ };
22586
24214
  pick_claim_document: {
22587
24215
  Args: {
22588
24216
  _queue_item_id: string;
@@ -22636,6 +24264,7 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
22636
24264
  pick_claim_next_document: {
22637
24265
  Args: {
22638
24266
  _country_code: string;
24267
+ _pick_day?: string;
22639
24268
  _screen_id: string;
22640
24269
  _session_id: string;
22641
24270
  _station_id: string;
@@ -22787,6 +24416,14 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
22787
24416
  isSetofReturn: false;
22788
24417
  };
22789
24418
  };
24419
+ pick_complete_print_carts: {
24420
+ Args: {
24421
+ _cart_ids: string[];
24422
+ _queue_item_id: string;
24423
+ _session_id: string;
24424
+ };
24425
+ Returns: import("../integrations/supabase/types").Json;
24426
+ };
22790
24427
  pick_current_pick_day: {
22791
24428
  Args: never;
22792
24429
  Returns: string;
@@ -22823,6 +24460,65 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
22823
24460
  };
22824
24461
  Returns: string;
22825
24462
  };
24463
+ pick_enqueue_print_job_from_cart: {
24464
+ Args: {
24465
+ _cart_id: string;
24466
+ _is_herprint: boolean;
24467
+ _printer_id: string;
24468
+ _queue_item_id: string;
24469
+ _selected_cart: import("../integrations/supabase/types").Json;
24470
+ _session_id: string;
24471
+ };
24472
+ Returns: string;
24473
+ };
24474
+ pick_mark_printed: {
24475
+ Args: {
24476
+ _queue_item_id: string;
24477
+ _reden?: string;
24478
+ _session_id: string;
24479
+ };
24480
+ Returns: {
24481
+ announced_at: string;
24482
+ assigned_user_id: string | null;
24483
+ barcode: string | null;
24484
+ cancelled_at: string | null;
24485
+ cart_count: number;
24486
+ completed_at: string | null;
24487
+ country_code: string | null;
24488
+ created_at: string;
24489
+ customer_name: string | null;
24490
+ delivery_address: string | null;
24491
+ document_number: string | null;
24492
+ document_type_id: string | null;
24493
+ due_at: string | null;
24494
+ id: string;
24495
+ is_urgent: boolean;
24496
+ line_count: number;
24497
+ order_number: string | null;
24498
+ order_type: string | null;
24499
+ payload: import("../integrations/supabase/types").Json;
24500
+ print_count: number;
24501
+ print_job_id: string | null;
24502
+ printed_at: string | null;
24503
+ printed_by: string | null;
24504
+ printed_cart_ids: import("../integrations/supabase/types").Json;
24505
+ printer_id: string | null;
24506
+ priority: number;
24507
+ reference: string | null;
24508
+ route: string | null;
24509
+ screen_id: string | null;
24510
+ station_id: string | null;
24511
+ status_id: string | null;
24512
+ updated_at: string;
24513
+ warnings: import("../integrations/supabase/types").Json;
24514
+ };
24515
+ SetofOptions: {
24516
+ from: "*";
24517
+ to: "pick_queue";
24518
+ isOneToOne: true;
24519
+ isSetofReturn: false;
24520
+ };
24521
+ };
22826
24522
  pick_order_context: {
22827
24523
  Args: {
22828
24524
  _order_id?: string;
@@ -22843,6 +24539,12 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
22843
24539
  };
22844
24540
  Returns: import("../integrations/supabase/types").Json;
22845
24541
  };
24542
+ pick_print_jobs_status: {
24543
+ Args: {
24544
+ _job_ids: string[];
24545
+ };
24546
+ Returns: import("../integrations/supabase/types").Json[];
24547
+ };
22846
24548
  pick_print_plekken: {
22847
24549
  Args: never;
22848
24550
  Returns: {
@@ -22851,6 +24553,12 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
22851
24553
  omschrijving: string;
22852
24554
  }[];
22853
24555
  };
24556
+ pick_queue_cart_plan: {
24557
+ Args: {
24558
+ _queue_item_id: string;
24559
+ };
24560
+ Returns: import("../integrations/supabase/types").Json;
24561
+ };
22854
24562
  pick_reference_data_status: {
22855
24563
  Args: never;
22856
24564
  Returns: import("../integrations/supabase/types").Json;
@@ -22865,6 +24573,19 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
22865
24573
  };
22866
24574
  Returns: undefined;
22867
24575
  };
24576
+ pick_report_missing_cart_plan: {
24577
+ Args: never;
24578
+ Returns: import("../integrations/supabase/types").Json;
24579
+ };
24580
+ pick_reprint_cart: {
24581
+ Args: {
24582
+ _cart_id: string;
24583
+ _queue_item_id: string;
24584
+ _session_id: string;
24585
+ _throttle_seconds?: number;
24586
+ };
24587
+ Returns: string;
24588
+ };
22868
24589
  pick_reprint_document: {
22869
24590
  Args: {
22870
24591
  _queue_item_id: string;
@@ -22967,6 +24688,151 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
22967
24688
  isSetofReturn: false;
22968
24689
  };
22969
24690
  };
24691
+ pick_reset_print_job: {
24692
+ Args: {
24693
+ _cart_id: string;
24694
+ _job_id: string;
24695
+ _queue_item_id: string;
24696
+ _session_id: string;
24697
+ };
24698
+ Returns: {
24699
+ announced_at: string;
24700
+ assigned_user_id: string | null;
24701
+ barcode: string | null;
24702
+ cancelled_at: string | null;
24703
+ cart_count: number;
24704
+ completed_at: string | null;
24705
+ country_code: string | null;
24706
+ created_at: string;
24707
+ customer_name: string | null;
24708
+ delivery_address: string | null;
24709
+ document_number: string | null;
24710
+ document_type_id: string | null;
24711
+ due_at: string | null;
24712
+ id: string;
24713
+ is_urgent: boolean;
24714
+ line_count: number;
24715
+ order_number: string | null;
24716
+ order_type: string | null;
24717
+ payload: import("../integrations/supabase/types").Json;
24718
+ print_count: number;
24719
+ print_job_id: string | null;
24720
+ printed_at: string | null;
24721
+ printed_by: string | null;
24722
+ printed_cart_ids: import("../integrations/supabase/types").Json;
24723
+ printer_id: string | null;
24724
+ priority: number;
24725
+ reference: string | null;
24726
+ route: string | null;
24727
+ screen_id: string | null;
24728
+ station_id: string | null;
24729
+ status_id: string | null;
24730
+ updated_at: string;
24731
+ warnings: import("../integrations/supabase/types").Json;
24732
+ };
24733
+ SetofOptions: {
24734
+ from: "*";
24735
+ to: "pick_queue";
24736
+ isOneToOne: true;
24737
+ isSetofReturn: false;
24738
+ };
24739
+ };
24740
+ pick_reset_print_jobs: {
24741
+ Args: {
24742
+ _cart_ids: string[];
24743
+ _job_ids: string[];
24744
+ _queue_item_id: string;
24745
+ _session_id: string;
24746
+ };
24747
+ Returns: {
24748
+ announced_at: string;
24749
+ assigned_user_id: string | null;
24750
+ barcode: string | null;
24751
+ cancelled_at: string | null;
24752
+ cart_count: number;
24753
+ completed_at: string | null;
24754
+ country_code: string | null;
24755
+ created_at: string;
24756
+ customer_name: string | null;
24757
+ delivery_address: string | null;
24758
+ document_number: string | null;
24759
+ document_type_id: string | null;
24760
+ due_at: string | null;
24761
+ id: string;
24762
+ is_urgent: boolean;
24763
+ line_count: number;
24764
+ order_number: string | null;
24765
+ order_type: string | null;
24766
+ payload: import("../integrations/supabase/types").Json;
24767
+ print_count: number;
24768
+ print_job_id: string | null;
24769
+ printed_at: string | null;
24770
+ printed_by: string | null;
24771
+ printed_cart_ids: import("../integrations/supabase/types").Json;
24772
+ printer_id: string | null;
24773
+ priority: number;
24774
+ reference: string | null;
24775
+ route: string | null;
24776
+ screen_id: string | null;
24777
+ station_id: string | null;
24778
+ status_id: string | null;
24779
+ updated_at: string;
24780
+ warnings: import("../integrations/supabase/types").Json;
24781
+ };
24782
+ SetofOptions: {
24783
+ from: "*";
24784
+ to: "pick_queue";
24785
+ isOneToOne: true;
24786
+ isSetofReturn: false;
24787
+ };
24788
+ };
24789
+ pick_restore_to_queue: {
24790
+ Args: {
24791
+ _queue_item_id: string;
24792
+ _session_id: string;
24793
+ };
24794
+ Returns: {
24795
+ announced_at: string;
24796
+ assigned_user_id: string | null;
24797
+ barcode: string | null;
24798
+ cancelled_at: string | null;
24799
+ cart_count: number;
24800
+ completed_at: string | null;
24801
+ country_code: string | null;
24802
+ created_at: string;
24803
+ customer_name: string | null;
24804
+ delivery_address: string | null;
24805
+ document_number: string | null;
24806
+ document_type_id: string | null;
24807
+ due_at: string | null;
24808
+ id: string;
24809
+ is_urgent: boolean;
24810
+ line_count: number;
24811
+ order_number: string | null;
24812
+ order_type: string | null;
24813
+ payload: import("../integrations/supabase/types").Json;
24814
+ print_count: number;
24815
+ print_job_id: string | null;
24816
+ printed_at: string | null;
24817
+ printed_by: string | null;
24818
+ printed_cart_ids: import("../integrations/supabase/types").Json;
24819
+ printer_id: string | null;
24820
+ priority: number;
24821
+ reference: string | null;
24822
+ route: string | null;
24823
+ screen_id: string | null;
24824
+ station_id: string | null;
24825
+ status_id: string | null;
24826
+ updated_at: string;
24827
+ warnings: import("../integrations/supabase/types").Json;
24828
+ };
24829
+ SetofOptions: {
24830
+ from: "*";
24831
+ to: "pick_queue";
24832
+ isOneToOne: true;
24833
+ isSetofReturn: false;
24834
+ };
24835
+ };
22970
24836
  pick_seed_reference_data: {
22971
24837
  Args: never;
22972
24838
  Returns: import("../integrations/supabase/types").Json;
@@ -23016,6 +24882,12 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
23016
24882
  };
23017
24883
  Returns: string;
23018
24884
  };
24885
+ pick_sync_pick_day: {
24886
+ Args: {
24887
+ _day: string;
24888
+ };
24889
+ Returns: import("../integrations/supabase/types").Json;
24890
+ };
23019
24891
  pick_sync_queue_throttled: {
23020
24892
  Args: {
23021
24893
  _min_seconds?: number;
@@ -23245,6 +25117,20 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
23245
25117
  };
23246
25118
  Returns: boolean;
23247
25119
  };
25120
+ release_local_pdf_job: {
25121
+ Args: {
25122
+ _job_id: string;
25123
+ _writer_id: string;
25124
+ };
25125
+ Returns: boolean;
25126
+ };
25127
+ release_print_queue_lease: {
25128
+ Args: {
25129
+ _houder: string;
25130
+ _naam: string;
25131
+ };
25132
+ Returns: boolean;
25133
+ };
23248
25134
  release_stale_order_invoice_links: {
23249
25135
  Args: {
23250
25136
  _minutes?: number;
@@ -23265,6 +25151,12 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
23265
25151
  };
23266
25152
  Returns: import("../integrations/supabase/types").Json;
23267
25153
  };
25154
+ reset_cart_layer_positions: {
25155
+ Args: {
25156
+ p_cart_id: string;
25157
+ };
25158
+ Returns: number;
25159
+ };
23268
25160
  reset_floriday_sync_cursor: {
23269
25161
  Args: {
23270
25162
  p_connection_id: string;
@@ -23328,6 +25220,15 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
23328
25220
  };
23329
25221
  Returns: import("../integrations/supabase/types").Json;
23330
25222
  };
25223
+ roles_without_enum_mapping: {
25224
+ Args: never;
25225
+ Returns: {
25226
+ assignment_count: number;
25227
+ id: string;
25228
+ key: string;
25229
+ name: string;
25230
+ }[];
25231
+ };
23331
25232
  ruim_print_jobs_op: {
23332
25233
  Args: {
23333
25234
  _bewaar_dagen?: number;
@@ -23342,6 +25243,10 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
23342
25243
  Args: never;
23343
25244
  Returns: undefined;
23344
25245
  };
25246
+ run_floriday_stock_reconcile: {
25247
+ Args: never;
25248
+ Returns: undefined;
25249
+ };
23345
25250
  run_logistics_tasks_dispatch: {
23346
25251
  Args: never;
23347
25252
  Returns: undefined;
@@ -23360,18 +25265,98 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
23360
25265
  };
23361
25266
  Returns: import("../integrations/supabase/types").Json;
23362
25267
  };
25268
+ scan_complete_cart: {
25269
+ Args: {
25270
+ p_allow_reprint?: boolean;
25271
+ p_cart_id: string;
25272
+ p_print?: boolean;
25273
+ p_scanner_id?: string;
25274
+ };
25275
+ Returns: import("../integrations/supabase/types").Json;
25276
+ };
23363
25277
  scan_dashboard_stats: {
23364
25278
  Args: {
23365
25279
  p_dagen?: number;
23366
25280
  };
23367
25281
  Returns: import("../integrations/supabase/types").Json;
23368
25282
  };
25283
+ scan_eindcontrole: {
25284
+ Args: {
25285
+ p_barcode: string;
25286
+ p_scanner_id?: string;
25287
+ };
25288
+ Returns: import("../integrations/supabase/types").Json;
25289
+ };
23369
25290
  scan_finish_kar: {
23370
25291
  Args: {
23371
25292
  p_kar_id: string;
23372
25293
  };
23373
25294
  Returns: import("../integrations/supabase/types").Json;
23374
25295
  };
25296
+ scan_kar_compleet: {
25297
+ Args: {
25298
+ p_allow_reprint?: boolean;
25299
+ p_sessie_id: string;
25300
+ };
25301
+ Returns: import("../integrations/supabase/types").Json;
25302
+ };
25303
+ scan_kar_regels: {
25304
+ Args: {
25305
+ p_cart_id: string;
25306
+ };
25307
+ Returns: import("../integrations/supabase/types").Json;
25308
+ };
25309
+ scan_log_code: {
25310
+ Args: {
25311
+ p_code: string;
25312
+ p_latency_ms?: number;
25313
+ p_message?: string;
25314
+ p_result: string;
25315
+ p_scanner_key?: string;
25316
+ };
25317
+ Returns: string;
25318
+ };
25319
+ scan_open_pakbonnen: {
25320
+ Args: {
25321
+ p_dagen?: number;
25322
+ };
25323
+ Returns: import("../integrations/supabase/types").Json;
25324
+ };
25325
+ scan_pakbon_lookup: {
25326
+ Args: {
25327
+ p_barcode: string;
25328
+ };
25329
+ Returns: import("../integrations/supabase/types").Json;
25330
+ };
25331
+ scan_pakbon_opnieuw: {
25332
+ Args: {
25333
+ p_barcode: string;
25334
+ p_scanner_id?: string;
25335
+ };
25336
+ Returns: import("../integrations/supabase/types").Json;
25337
+ };
25338
+ scan_pakbon_toevoegen: {
25339
+ Args: {
25340
+ p_barcode: string;
25341
+ p_medewerker?: string;
25342
+ p_regels?: import("../integrations/supabase/types").Json;
25343
+ p_scanner_id: string;
25344
+ };
25345
+ Returns: import("../integrations/supabase/types").Json;
25346
+ };
25347
+ scan_print_restpakbon: {
25348
+ Args: {
25349
+ p_printer_id?: string;
25350
+ p_restpakbon_id: string;
25351
+ };
25352
+ Returns: import("../integrations/supabase/types").Json;
25353
+ };
25354
+ scan_print_verzendbrief: {
25355
+ Args: {
25356
+ p_sessie_id: string;
25357
+ };
25358
+ Returns: import("../integrations/supabase/types").Json;
25359
+ };
23375
25360
  scan_register_item: {
23376
25361
  Args: {
23377
25362
  p_kar_id: string;
@@ -23390,6 +25375,25 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
23390
25375
  };
23391
25376
  Returns: import("../integrations/supabase/types").Json;
23392
25377
  };
25378
+ scan_restpakbon_geprint: {
25379
+ Args: {
25380
+ p_id: string;
25381
+ p_print_job_id?: string;
25382
+ };
25383
+ Returns: undefined;
25384
+ };
25385
+ scan_sessie_annuleren: {
25386
+ Args: {
25387
+ p_sessie_id: string;
25388
+ };
25389
+ Returns: undefined;
25390
+ };
25391
+ scan_sessie_open: {
25392
+ Args: {
25393
+ p_scanner_id: string;
25394
+ };
25395
+ Returns: import("../integrations/supabase/types").Json;
25396
+ };
23393
25397
  scan_start_kar: {
23394
25398
  Args: {
23395
25399
  p_medewerker_id?: string;
@@ -23408,6 +25412,12 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
23408
25412
  };
23409
25413
  Returns: import("../integrations/supabase/types").Json;
23410
25414
  };
25415
+ scan_verzendbrief_regels: {
25416
+ Args: {
25417
+ p_sessie_id: string;
25418
+ };
25419
+ Returns: import("../integrations/supabase/types").Json;
25420
+ };
23411
25421
  schedule_floriday_additional_services_sync: {
23412
25422
  Args: {
23413
25423
  p_apikey: string;
@@ -23723,6 +25733,13 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
23723
25733
  };
23724
25734
  Returns: import("../integrations/supabase/types").Json;
23725
25735
  };
25736
+ swap_cart_layer_positions: {
25737
+ Args: {
25738
+ p_a: string;
25739
+ p_b: string;
25740
+ };
25741
+ Returns: undefined;
25742
+ };
23726
25743
  switch_time_log: {
23727
25744
  Args: {
23728
25745
  p_employee_id: string;
@@ -23755,6 +25772,12 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
23755
25772
  };
23756
25773
  Returns: undefined;
23757
25774
  };
25775
+ sync_order_item_fusten: {
25776
+ Args: {
25777
+ _order_item_id: string;
25778
+ };
25779
+ Returns: undefined;
25780
+ };
23758
25781
  sync_product_group_belading: {
23759
25782
  Args: {
23760
25783
  _group_id: string;
@@ -23861,6 +25884,12 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
23861
25884
  Args: never;
23862
25885
  Returns: string;
23863
25886
  };
25887
+ wake_print_queue: {
25888
+ Args: {
25889
+ _min_interval_ms?: number;
25890
+ };
25891
+ Returns: number;
25892
+ };
23864
25893
  werkbon_totalen: {
23865
25894
  Args: {
23866
25895
  _werkbon_id: string;
@@ -23893,10 +25922,18 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
23893
25922
  };
23894
25923
  Returns: import("../integrations/supabase/types").Json;
23895
25924
  };
25925
+ wo_set_status: {
25926
+ Args: {
25927
+ _reason?: string;
25928
+ _status: string;
25929
+ _work_order_id: string;
25930
+ };
25931
+ Returns: import("../integrations/supabase/types").Json;
25932
+ };
23896
25933
  };
23897
25934
  Enums: {
23898
25935
  ai_import_status: "nieuw" | "verwerken" | "bevestigen" | "klaar" | "mislukt";
23899
- app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie";
25936
+ app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie" | "superadmin";
23900
25937
  doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon" | "veilingbon" | "afleverbrief" | "veilingbrief";
23901
25938
  doc_orientation: "portrait" | "landscape";
23902
25939
  exact_env: "staging" | "live";