@flowselections/logistiek-engine 1.0.26 → 1.0.28

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 (97) 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/KarplanStatusCard.d.ts +2 -0
  10. package/dist-lib/components/KarplanStatusCard.d.ts.map +1 -0
  11. package/dist-lib/components/KarplanStatusCard.js +31 -0
  12. package/dist-lib/components/RegiePage.d.ts.map +1 -1
  13. package/dist-lib/components/RegiePage.js +3 -1
  14. package/dist-lib/components/RuleEnginePage.d.ts.map +1 -1
  15. package/dist-lib/components/RuleEnginePage.js +7 -4
  16. package/dist-lib/components/rule-engine/FloridayConnectionBanner.d.ts +2 -0
  17. package/dist-lib/components/rule-engine/FloridayConnectionBanner.d.ts.map +1 -0
  18. package/dist-lib/components/rule-engine/FloridayConnectionBanner.js +41 -0
  19. package/dist-lib/components/rule-engine/RuleFieldInput.d.ts.map +1 -1
  20. package/dist-lib/components/rule-engine/RuleFieldInput.js +9 -0
  21. package/dist-lib/hooks/useRecalcJob.d.ts.map +1 -1
  22. package/dist-lib/hooks/useRecalcJob.js +26 -1
  23. package/dist-lib/hooks/useScannersPrinters.d.ts +11 -0
  24. package/dist-lib/hooks/useScannersPrinters.d.ts.map +1 -0
  25. package/dist-lib/hooks/useScannersPrinters.js +65 -0
  26. package/dist-lib/index.d.ts +2 -0
  27. package/dist-lib/index.d.ts.map +1 -1
  28. package/dist-lib/index.js +2 -0
  29. package/dist-lib/integrations/supabase/auth-middleware.d.ts +2063 -78
  30. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  31. package/dist-lib/integrations/supabase/client.d.ts +20293 -0
  32. package/dist-lib/integrations/supabase/client.d.ts.map +1 -0
  33. package/dist-lib/integrations/supabase/client.js +13 -0
  34. package/dist-lib/integrations/supabase/client.server.d.ts +2063 -78
  35. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  36. package/dist-lib/integrations/supabase/client.server.js +1 -1
  37. package/dist-lib/integrations/supabase/moduleClient.d.ts +2063 -78
  38. package/dist-lib/integrations/supabase/moduleClient.d.ts.map +1 -1
  39. package/dist-lib/integrations/supabase/types.d.ts +2097 -68
  40. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  41. package/dist-lib/integrations/supabase/types.js +1 -0
  42. package/dist-lib/lib/attachAuthToken.d.ts +2 -0
  43. package/dist-lib/lib/attachAuthToken.d.ts.map +1 -0
  44. package/dist-lib/lib/attachAuthToken.js +50 -0
  45. package/dist-lib/lib/bufferMatching.d.ts.map +1 -1
  46. package/dist-lib/lib/bufferMatching.js +1 -0
  47. package/dist-lib/lib/cartPlanRequests.server.d.ts +13 -0
  48. package/dist-lib/lib/cartPlanRequests.server.d.ts.map +1 -0
  49. package/dist-lib/lib/cartPlanRequests.server.js +168 -0
  50. package/dist-lib/lib/controlScan.server.d.ts +12 -0
  51. package/dist-lib/lib/controlScan.server.d.ts.map +1 -0
  52. package/dist-lib/lib/controlScan.server.js +197 -0
  53. package/dist-lib/lib/dimensionData.server.d.ts +37 -0
  54. package/dist-lib/lib/dimensionData.server.d.ts.map +1 -0
  55. package/dist-lib/lib/dimensionData.server.js +167 -0
  56. package/dist-lib/lib/dimensionPlanner.d.ts +95 -0
  57. package/dist-lib/lib/dimensionPlanner.d.ts.map +1 -0
  58. package/dist-lib/lib/dimensionPlanner.js +248 -0
  59. package/dist-lib/lib/floridayDocuments.functions.d.ts +6240 -285
  60. package/dist-lib/lib/floridayDocuments.functions.d.ts.map +1 -1
  61. package/dist-lib/lib/floridayDocuments.functions.js +4 -3
  62. package/dist-lib/lib/floridayPush.functions.d.ts +2064 -79
  63. package/dist-lib/lib/floridayPush.functions.d.ts.map +1 -1
  64. package/dist-lib/lib/floridayPush.functions.js +2 -1
  65. package/dist-lib/lib/handlers/logistics-tick.server.d.ts.map +1 -1
  66. package/dist-lib/lib/handlers/logistics-tick.server.js +57 -0
  67. package/dist-lib/lib/loadCarrierPlanner.d.ts +3 -0
  68. package/dist-lib/lib/loadCarrierPlanner.d.ts.map +1 -1
  69. package/dist-lib/lib/loadCarrierPlanning.functions.d.ts +10302 -377
  70. package/dist-lib/lib/loadCarrierPlanning.functions.d.ts.map +1 -1
  71. package/dist-lib/lib/loadCarrierPlanning.functions.js +6 -5
  72. package/dist-lib/lib/loadCarrierPlanning.server.d.ts +46 -0
  73. package/dist-lib/lib/loadCarrierPlanning.server.d.ts.map +1 -1
  74. package/dist-lib/lib/loadCarrierPlanning.server.js +673 -31
  75. package/dist-lib/lib/logisticsPlanner.d.ts.map +1 -1
  76. package/dist-lib/lib/logisticsPlanner.js +24 -9
  77. package/dist-lib/lib/logisticsRecalcJob.functions.d.ts +4163 -193
  78. package/dist-lib/lib/logisticsRecalcJob.functions.d.ts.map +1 -1
  79. package/dist-lib/lib/logisticsRecalcJob.functions.js +3 -2
  80. package/dist-lib/lib/logisticsRecalcJob.server.d.ts.map +1 -1
  81. package/dist-lib/lib/logisticsRecalcJob.server.js +1 -0
  82. package/dist-lib/lib/logisticsRecalculate.functions.d.ts +2064 -79
  83. package/dist-lib/lib/logisticsRecalculate.functions.d.ts.map +1 -1
  84. package/dist-lib/lib/logisticsRecalculate.functions.js +3 -1
  85. package/dist-lib/lib/modulePrompts.d.ts.map +1 -1
  86. package/dist-lib/lib/modulePrompts.js +2567 -1563
  87. package/dist-lib/lib/planQueue.server.d.ts.map +1 -1
  88. package/dist-lib/lib/planQueue.server.js +6 -0
  89. package/dist-lib/lib/readableServerErrors.d.ts +2 -0
  90. package/dist-lib/lib/readableServerErrors.d.ts.map +1 -0
  91. package/dist-lib/lib/readableServerErrors.js +36 -0
  92. package/dist-lib/lib/ruleEngineSchema.d.ts +1 -1
  93. package/dist-lib/lib/ruleEngineSchema.d.ts.map +1 -1
  94. package/dist-lib/lib/ruleEngineSchema.js +83 -51
  95. package/dist-lib/lib/ruleEngineWizard.d.ts.map +1 -1
  96. package/dist-lib/lib/ruleEngineWizard.js +6 -6
  97. 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;
@@ -11033,6 +11399,12 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
11033
11399
  updated_at?: string;
11034
11400
  };
11035
11401
  Relationships: [{
11402
+ foreignKeyName: "mailbox_proposal_lines_product_id_fkey";
11403
+ columns: ["product_id"];
11404
+ isOneToOne: false;
11405
+ referencedRelation: "logistics_product_dimensions";
11406
+ referencedColumns: ["product_id"];
11407
+ }, {
11036
11408
  foreignKeyName: "mailbox_proposal_lines_product_id_fkey";
11037
11409
  columns: ["product_id"];
11038
11410
  isOneToOne: false;
@@ -12339,6 +12711,8 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
12339
12711
  order_buffers: {
12340
12712
  Row: {
12341
12713
  buffer_key: string;
12714
+ close_at: string | null;
12715
+ closed_at: string | null;
12342
12716
  created_at: string;
12343
12717
  customer_id: string | null;
12344
12718
  grouping_mode: string;
@@ -12350,6 +12724,8 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
12350
12724
  };
12351
12725
  Insert: {
12352
12726
  buffer_key: string;
12727
+ close_at?: string | null;
12728
+ closed_at?: string | null;
12353
12729
  created_at?: string;
12354
12730
  customer_id?: string | null;
12355
12731
  grouping_mode: string;
@@ -12361,6 +12737,8 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
12361
12737
  };
12362
12738
  Update: {
12363
12739
  buffer_key?: string;
12740
+ close_at?: string | null;
12741
+ closed_at?: string | null;
12364
12742
  created_at?: string;
12365
12743
  customer_id?: string | null;
12366
12744
  grouping_mode?: string;
@@ -12377,10 +12755,12 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
12377
12755
  boxes: number | null;
12378
12756
  cart_id: string;
12379
12757
  crates: number;
12758
+ crates_in_layer: number | null;
12380
12759
  crates_per_layer: number;
12381
12760
  created_at: string;
12382
12761
  id: string;
12383
12762
  layer_fraction: number;
12763
+ layer_index: number | null;
12384
12764
  layer_share_pct: number;
12385
12765
  layers_per_cart: number;
12386
12766
  order_item_id: string | null;
@@ -12393,10 +12773,12 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
12393
12773
  boxes?: number | null;
12394
12774
  cart_id: string;
12395
12775
  crates: number;
12776
+ crates_in_layer?: number | null;
12396
12777
  crates_per_layer?: number;
12397
12778
  created_at?: string;
12398
12779
  id?: string;
12399
12780
  layer_fraction?: number;
12781
+ layer_index?: number | null;
12400
12782
  layer_share_pct?: number;
12401
12783
  layers_per_cart?: number;
12402
12784
  order_item_id?: string | null;
@@ -12409,10 +12791,12 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
12409
12791
  boxes?: number | null;
12410
12792
  cart_id?: string;
12411
12793
  crates?: number;
12794
+ crates_in_layer?: number | null;
12412
12795
  crates_per_layer?: number;
12413
12796
  created_at?: string;
12414
12797
  id?: string;
12415
12798
  layer_fraction?: number;
12799
+ layer_index?: number | null;
12416
12800
  layer_share_pct?: number;
12417
12801
  layers_per_cart?: number;
12418
12802
  order_item_id?: string | null;
@@ -12433,6 +12817,12 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
12433
12817
  isOneToOne: false;
12434
12818
  referencedRelation: "order_items";
12435
12819
  referencedColumns: ["id"];
12820
+ }, {
12821
+ foreignKeyName: "order_cart_items_product_id_fkey";
12822
+ columns: ["product_id"];
12823
+ isOneToOne: false;
12824
+ referencedRelation: "logistics_product_dimensions";
12825
+ referencedColumns: ["product_id"];
12436
12826
  }, {
12437
12827
  foreignKeyName: "order_cart_items_product_id_fkey";
12438
12828
  columns: ["product_id"];
@@ -12441,6 +12831,93 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
12441
12831
  referencedColumns: ["id"];
12442
12832
  }];
12443
12833
  };
12834
+ order_cart_layer_positions: {
12835
+ Row: {
12836
+ algorithm_version: number | null;
12837
+ cart_id: string;
12838
+ created_at: string;
12839
+ height: number;
12840
+ id: string;
12841
+ keg_id: string;
12842
+ label: string | null;
12843
+ layer: number;
12844
+ layer_height: number | null;
12845
+ layer_width: number | null;
12846
+ manual_overridden_at: string | null;
12847
+ manual_overridden_by: string | null;
12848
+ manual_override: boolean;
12849
+ order_item_id: string | null;
12850
+ original_layer: number | null;
12851
+ original_x: number | null;
12852
+ original_y: number | null;
12853
+ product_id: string | null;
12854
+ rotation: number;
12855
+ source: string | null;
12856
+ updated_at: string;
12857
+ width: number;
12858
+ x: number;
12859
+ y: number;
12860
+ };
12861
+ Insert: {
12862
+ algorithm_version?: number | null;
12863
+ cart_id: string;
12864
+ created_at?: string;
12865
+ height: number;
12866
+ id?: string;
12867
+ keg_id: string;
12868
+ label?: string | null;
12869
+ layer: number;
12870
+ layer_height?: number | null;
12871
+ layer_width?: number | null;
12872
+ manual_overridden_at?: string | null;
12873
+ manual_overridden_by?: string | null;
12874
+ manual_override?: boolean;
12875
+ order_item_id?: string | null;
12876
+ original_layer?: number | null;
12877
+ original_x?: number | null;
12878
+ original_y?: number | null;
12879
+ product_id?: string | null;
12880
+ rotation?: number;
12881
+ source?: string | null;
12882
+ updated_at?: string;
12883
+ width: number;
12884
+ x: number;
12885
+ y: number;
12886
+ };
12887
+ Update: {
12888
+ algorithm_version?: number | null;
12889
+ cart_id?: string;
12890
+ created_at?: string;
12891
+ height?: number;
12892
+ id?: string;
12893
+ keg_id?: string;
12894
+ label?: string | null;
12895
+ layer?: number;
12896
+ layer_height?: number | null;
12897
+ layer_width?: number | null;
12898
+ manual_overridden_at?: string | null;
12899
+ manual_overridden_by?: string | null;
12900
+ manual_override?: boolean;
12901
+ order_item_id?: string | null;
12902
+ original_layer?: number | null;
12903
+ original_x?: number | null;
12904
+ original_y?: number | null;
12905
+ product_id?: string | null;
12906
+ rotation?: number;
12907
+ source?: string | null;
12908
+ updated_at?: string;
12909
+ width?: number;
12910
+ x?: number;
12911
+ y?: number;
12912
+ };
12913
+ Relationships: [{
12914
+ foreignKeyName: "order_cart_layer_positions_cart_id_fkey";
12915
+ columns: ["cart_id"];
12916
+ isOneToOne: false;
12917
+ referencedRelation: "order_carts";
12918
+ referencedColumns: ["id"];
12919
+ }];
12920
+ };
12444
12921
  order_carts: {
12445
12922
  Row: {
12446
12923
  algorithm_version: number;
@@ -12452,6 +12929,7 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
12452
12929
  id: string;
12453
12930
  is_auto: boolean;
12454
12931
  is_complete: boolean;
12932
+ layout_method: string | null;
12455
12933
  max_layers: number | null;
12456
12934
  moved_at: string | null;
12457
12935
  moved_from_moment_id: string | null;
@@ -12462,6 +12940,7 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
12462
12940
  pickup_locked: boolean;
12463
12941
  pickup_moment_id: string | null;
12464
12942
  source: string;
12943
+ total_carts: number | null;
12465
12944
  total_layers_used: number;
12466
12945
  updated_at: string;
12467
12946
  weight_kg: number | null;
@@ -12476,6 +12955,7 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
12476
12955
  id?: string;
12477
12956
  is_auto?: boolean;
12478
12957
  is_complete?: boolean;
12958
+ layout_method?: string | null;
12479
12959
  max_layers?: number | null;
12480
12960
  moved_at?: string | null;
12481
12961
  moved_from_moment_id?: string | null;
@@ -12486,6 +12966,7 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
12486
12966
  pickup_locked?: boolean;
12487
12967
  pickup_moment_id?: string | null;
12488
12968
  source?: string;
12969
+ total_carts?: number | null;
12489
12970
  total_layers_used?: number;
12490
12971
  updated_at?: string;
12491
12972
  weight_kg?: number | null;
@@ -12500,6 +12981,7 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
12500
12981
  id?: string;
12501
12982
  is_auto?: boolean;
12502
12983
  is_complete?: boolean;
12984
+ layout_method?: string | null;
12503
12985
  max_layers?: number | null;
12504
12986
  moved_at?: string | null;
12505
12987
  moved_from_moment_id?: string | null;
@@ -12510,6 +12992,7 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
12510
12992
  pickup_locked?: boolean;
12511
12993
  pickup_moment_id?: string | null;
12512
12994
  source?: string;
12995
+ total_carts?: number | null;
12513
12996
  total_layers_used?: number;
12514
12997
  updated_at?: string;
12515
12998
  weight_kg?: number | null;
@@ -12612,6 +13095,39 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
12612
13095
  };
12613
13096
  Relationships: [];
12614
13097
  };
13098
+ order_fust_bookings: {
13099
+ Row: {
13100
+ created_at: string;
13101
+ fust_type_id: string;
13102
+ id: string;
13103
+ order_item_id: string;
13104
+ quantity: number;
13105
+ updated_at: string;
13106
+ };
13107
+ Insert: {
13108
+ created_at?: string;
13109
+ fust_type_id: string;
13110
+ id?: string;
13111
+ order_item_id: string;
13112
+ quantity?: number;
13113
+ updated_at?: string;
13114
+ };
13115
+ Update: {
13116
+ created_at?: string;
13117
+ fust_type_id?: string;
13118
+ id?: string;
13119
+ order_item_id?: string;
13120
+ quantity?: number;
13121
+ updated_at?: string;
13122
+ };
13123
+ Relationships: [{
13124
+ foreignKeyName: "order_fust_bookings_fust_type_id_fkey";
13125
+ columns: ["fust_type_id"];
13126
+ isOneToOne: false;
13127
+ referencedRelation: "fust_types";
13128
+ referencedColumns: ["id"];
13129
+ }];
13130
+ };
12615
13131
  order_invoice_links: {
12616
13132
  Row: {
12617
13133
  administration_code: string | null;
@@ -12700,6 +13216,12 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
12700
13216
  isOneToOne: false;
12701
13217
  referencedRelation: "orders";
12702
13218
  referencedColumns: ["id"];
13219
+ }, {
13220
+ foreignKeyName: "order_items_product_id_fkey";
13221
+ columns: ["product_id"];
13222
+ isOneToOne: false;
13223
+ referencedRelation: "logistics_product_dimensions";
13224
+ referencedColumns: ["product_id"];
12703
13225
  }, {
12704
13226
  foreignKeyName: "order_items_product_id_fkey";
12705
13227
  columns: ["product_id"];
@@ -12847,6 +13369,9 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
12847
13369
  plan_locked_at: string | null;
12848
13370
  plan_locked_ref: string | null;
12849
13371
  status: string;
13372
+ status_changed_at: string;
13373
+ status_origin: string;
13374
+ status_sync_token: string | null;
12850
13375
  total: string;
12851
13376
  updated_at: string;
12852
13377
  };
@@ -12871,6 +13396,9 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
12871
13396
  plan_locked_at?: string | null;
12872
13397
  plan_locked_ref?: string | null;
12873
13398
  status?: string;
13399
+ status_changed_at?: string;
13400
+ status_origin?: string;
13401
+ status_sync_token?: string | null;
12874
13402
  total?: string;
12875
13403
  updated_at?: string;
12876
13404
  };
@@ -12895,6 +13423,9 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
12895
13423
  plan_locked_at?: string | null;
12896
13424
  plan_locked_ref?: string | null;
12897
13425
  status?: string;
13426
+ status_changed_at?: string;
13427
+ status_origin?: string;
13428
+ status_sync_token?: string | null;
12898
13429
  total?: string;
12899
13430
  updated_at?: string;
12900
13431
  };
@@ -12948,6 +13479,132 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
12948
13479
  };
12949
13480
  Relationships: [];
12950
13481
  };
13482
+ pakbon_barcode_inhoud: {
13483
+ Row: {
13484
+ barcode: string;
13485
+ cart_id: string | null;
13486
+ cart_index: number | null;
13487
+ cart_label: string | null;
13488
+ cart_total: number | null;
13489
+ created_at: string;
13490
+ is_herprint: boolean;
13491
+ klant_naam: string | null;
13492
+ klant_nummer: string | null;
13493
+ layout_id: string | null;
13494
+ layout_variant: string | null;
13495
+ order_nummer: string | null;
13496
+ order_ref: string | null;
13497
+ print_job_id: string | null;
13498
+ regels: import("../integrations/supabase/types").Json;
13499
+ updated_at: string;
13500
+ };
13501
+ Insert: {
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
+ Update: {
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
+ Relationships: [];
13538
+ };
13539
+ pakbon_barcode_verzoeken: {
13540
+ Row: {
13541
+ aangevraagd_op: string;
13542
+ barcode: string | null;
13543
+ cart_id: string | null;
13544
+ cart_index: number | null;
13545
+ cart_label: string | null;
13546
+ cart_total: number | null;
13547
+ documentnaam: string | null;
13548
+ geleverd_op: string | null;
13549
+ id: string;
13550
+ is_herprint: boolean;
13551
+ klant_naam: string | null;
13552
+ klant_nummer: string | null;
13553
+ laatst_gevraagd_op: string;
13554
+ layout_id: string | null;
13555
+ layout_variant: string | null;
13556
+ order_nummer: string | null;
13557
+ order_ref: string | null;
13558
+ print_job_id: string;
13559
+ status: string;
13560
+ updated_at: string;
13561
+ };
13562
+ Insert: {
13563
+ aangevraagd_op?: string;
13564
+ barcode?: string | null;
13565
+ cart_id?: string | null;
13566
+ cart_index?: number | null;
13567
+ cart_label?: string | null;
13568
+ cart_total?: number | null;
13569
+ documentnaam?: string | null;
13570
+ geleverd_op?: string | null;
13571
+ id?: string;
13572
+ is_herprint?: boolean;
13573
+ klant_naam?: string | null;
13574
+ klant_nummer?: string | null;
13575
+ laatst_gevraagd_op?: string;
13576
+ layout_id?: string | null;
13577
+ layout_variant?: string | null;
13578
+ order_nummer?: string | null;
13579
+ order_ref?: string | null;
13580
+ print_job_id: string;
13581
+ status?: string;
13582
+ updated_at?: string;
13583
+ };
13584
+ Update: {
13585
+ aangevraagd_op?: string;
13586
+ barcode?: string | null;
13587
+ cart_id?: string | null;
13588
+ cart_index?: number | null;
13589
+ cart_label?: string | null;
13590
+ cart_total?: number | null;
13591
+ documentnaam?: string | null;
13592
+ geleverd_op?: string | null;
13593
+ id?: string;
13594
+ is_herprint?: boolean;
13595
+ klant_naam?: string | null;
13596
+ klant_nummer?: string | null;
13597
+ laatst_gevraagd_op?: string;
13598
+ layout_id?: string | null;
13599
+ layout_variant?: string | null;
13600
+ order_nummer?: string | null;
13601
+ order_ref?: string | null;
13602
+ print_job_id?: string;
13603
+ status?: string;
13604
+ updated_at?: string;
13605
+ };
13606
+ Relationships: [];
13607
+ };
12951
13608
  pick_countries: {
12952
13609
  Row: {
12953
13610
  active: boolean;
@@ -14026,6 +14683,12 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
14026
14683
  isOneToOne: false;
14027
14684
  referencedRelation: "werkbonnen";
14028
14685
  referencedColumns: ["id"];
14686
+ }, {
14687
+ foreignKeyName: "planning_items_werkbon_id_fkey";
14688
+ columns: ["werkbon_id"];
14689
+ isOneToOne: false;
14690
+ referencedRelation: "wo_overview";
14691
+ referencedColumns: ["id"];
14029
14692
  }];
14030
14693
  };
14031
14694
  print_agents: {
@@ -14141,12 +14804,21 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
14141
14804
  };
14142
14805
  print_jobs: {
14143
14806
  Row: {
14807
+ aflever_pogingen: number;
14144
14808
  agent_id: string | null;
14809
+ artefact_bytes: number | null;
14810
+ artefact_gereed_op: string | null;
14811
+ artefact_pad: string | null;
14812
+ artefact_sha256: string | null;
14813
+ batch_id: string | null;
14145
14814
  bron_job_id: string | null;
14146
14815
  created_at: string;
14147
14816
  documentnaam: string;
14148
14817
  documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
14149
14818
  extern_job_id: string | null;
14819
+ fase_gestart_op: string | null;
14820
+ fase_voltooid_op: string | null;
14821
+ foutcode: string | null;
14150
14822
  foutmelding: string | null;
14151
14823
  gebruiker_id: string | null;
14152
14824
  gebruiker_naam: string;
@@ -14160,7 +14832,10 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
14160
14832
  kopieen: number;
14161
14833
  layout_id: string | null;
14162
14834
  lokaal_opgeslagen_op: string | null;
14835
+ lokale_pdf_claim_id: string | null;
14836
+ lokale_pdf_claim_tot: string | null;
14163
14837
  lokale_pdf_fout: string | null;
14838
+ lokale_pdf_print_plek_id: string | null;
14164
14839
  lokale_pdf_status: string | null;
14165
14840
  opgepakt_op: string | null;
14166
14841
  paginas: number;
@@ -14173,16 +14848,26 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
14173
14848
  resultaat_pdf_base64: string | null;
14174
14849
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
14175
14850
  updated_at: string;
14851
+ verwerkingsfase: string;
14176
14852
  volgende_poging: string | null;
14177
14853
  voltooid_op: string | null;
14178
14854
  };
14179
14855
  Insert: {
14856
+ aflever_pogingen?: number;
14180
14857
  agent_id?: string | null;
14858
+ artefact_bytes?: number | null;
14859
+ artefact_gereed_op?: string | null;
14860
+ artefact_pad?: string | null;
14861
+ artefact_sha256?: string | null;
14862
+ batch_id?: string | null;
14181
14863
  bron_job_id?: string | null;
14182
14864
  created_at?: string;
14183
14865
  documentnaam?: string;
14184
14866
  documenttype?: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
14185
14867
  extern_job_id?: string | null;
14868
+ fase_gestart_op?: string | null;
14869
+ fase_voltooid_op?: string | null;
14870
+ foutcode?: string | null;
14186
14871
  foutmelding?: string | null;
14187
14872
  gebruiker_id?: string | null;
14188
14873
  gebruiker_naam?: string;
@@ -14196,7 +14881,10 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
14196
14881
  kopieen?: number;
14197
14882
  layout_id?: string | null;
14198
14883
  lokaal_opgeslagen_op?: string | null;
14884
+ lokale_pdf_claim_id?: string | null;
14885
+ lokale_pdf_claim_tot?: string | null;
14199
14886
  lokale_pdf_fout?: string | null;
14887
+ lokale_pdf_print_plek_id?: string | null;
14200
14888
  lokale_pdf_status?: string | null;
14201
14889
  opgepakt_op?: string | null;
14202
14890
  paginas?: number;
@@ -14209,16 +14897,26 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
14209
14897
  resultaat_pdf_base64?: string | null;
14210
14898
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
14211
14899
  updated_at?: string;
14900
+ verwerkingsfase?: string;
14212
14901
  volgende_poging?: string | null;
14213
14902
  voltooid_op?: string | null;
14214
14903
  };
14215
14904
  Update: {
14905
+ aflever_pogingen?: number;
14216
14906
  agent_id?: string | null;
14907
+ artefact_bytes?: number | null;
14908
+ artefact_gereed_op?: string | null;
14909
+ artefact_pad?: string | null;
14910
+ artefact_sha256?: string | null;
14911
+ batch_id?: string | null;
14217
14912
  bron_job_id?: string | null;
14218
14913
  created_at?: string;
14219
14914
  documentnaam?: string;
14220
14915
  documenttype?: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
14221
14916
  extern_job_id?: string | null;
14917
+ fase_gestart_op?: string | null;
14918
+ fase_voltooid_op?: string | null;
14919
+ foutcode?: string | null;
14222
14920
  foutmelding?: string | null;
14223
14921
  gebruiker_id?: string | null;
14224
14922
  gebruiker_naam?: string;
@@ -14232,7 +14930,10 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
14232
14930
  kopieen?: number;
14233
14931
  layout_id?: string | null;
14234
14932
  lokaal_opgeslagen_op?: string | null;
14933
+ lokale_pdf_claim_id?: string | null;
14934
+ lokale_pdf_claim_tot?: string | null;
14235
14935
  lokale_pdf_fout?: string | null;
14936
+ lokale_pdf_print_plek_id?: string | null;
14236
14937
  lokale_pdf_status?: string | null;
14237
14938
  opgepakt_op?: string | null;
14238
14939
  paginas?: number;
@@ -14245,6 +14946,7 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
14245
14946
  resultaat_pdf_base64?: string | null;
14246
14947
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
14247
14948
  updated_at?: string;
14949
+ verwerkingsfase?: string;
14248
14950
  volgende_poging?: string | null;
14249
14951
  voltooid_op?: string | null;
14250
14952
  };
@@ -14260,6 +14962,12 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
14260
14962
  isOneToOne: false;
14261
14963
  referencedRelation: "document_layouts";
14262
14964
  referencedColumns: ["id"];
14965
+ }, {
14966
+ foreignKeyName: "print_jobs_lokale_pdf_print_plek_id_fkey";
14967
+ columns: ["lokale_pdf_print_plek_id"];
14968
+ isOneToOne: false;
14969
+ referencedRelation: "print_plekken";
14970
+ referencedColumns: ["id"];
14263
14971
  }, {
14264
14972
  foreignKeyName: "print_jobs_printer_id_fkey";
14265
14973
  columns: ["printer_id"];
@@ -14394,6 +15102,30 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
14394
15102
  };
14395
15103
  Relationships: [];
14396
15104
  };
15105
+ print_queue_leases: {
15106
+ Row: {
15107
+ created_at: string;
15108
+ houder: string;
15109
+ naam: string;
15110
+ updated_at: string;
15111
+ verloopt_op: string;
15112
+ };
15113
+ Insert: {
15114
+ created_at?: string;
15115
+ houder: string;
15116
+ naam: string;
15117
+ updated_at?: string;
15118
+ verloopt_op: string;
15119
+ };
15120
+ Update: {
15121
+ created_at?: string;
15122
+ houder?: string;
15123
+ naam?: string;
15124
+ updated_at?: string;
15125
+ verloopt_op?: string;
15126
+ };
15127
+ Relationships: [];
15128
+ };
14397
15129
  print_queue_runners: {
14398
15130
  Row: {
14399
15131
  actief: boolean;
@@ -14403,7 +15135,9 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
14403
15135
  laatst_gezien: string;
14404
15136
  laatste_fout: string | null;
14405
15137
  laatste_request_id: number | null;
15138
+ laatste_wakeup: string | null;
14406
15139
  mislukte_posts: number;
15140
+ mislukte_wakeups: number;
14407
15141
  tick_sleutel: string;
14408
15142
  updated_at: string;
14409
15143
  };
@@ -14415,7 +15149,9 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
14415
15149
  laatst_gezien?: string;
14416
15150
  laatste_fout?: string | null;
14417
15151
  laatste_request_id?: number | null;
15152
+ laatste_wakeup?: string | null;
14418
15153
  mislukte_posts?: number;
15154
+ mislukte_wakeups?: number;
14419
15155
  tick_sleutel?: string;
14420
15156
  updated_at?: string;
14421
15157
  };
@@ -14427,7 +15163,9 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
14427
15163
  laatst_gezien?: string;
14428
15164
  laatste_fout?: string | null;
14429
15165
  laatste_request_id?: number | null;
15166
+ laatste_wakeup?: string | null;
14430
15167
  mislukte_posts?: number;
15168
+ mislukte_wakeups?: number;
14431
15169
  tick_sleutel?: string;
14432
15170
  updated_at?: string;
14433
15171
  };
@@ -14741,6 +15479,12 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
14741
15479
  updated_at?: string;
14742
15480
  };
14743
15481
  Relationships: [{
15482
+ foreignKeyName: "product_bom_external_items_parent_product_id_fkey";
15483
+ columns: ["parent_product_id"];
15484
+ isOneToOne: false;
15485
+ referencedRelation: "logistics_product_dimensions";
15486
+ referencedColumns: ["product_id"];
15487
+ }, {
14744
15488
  foreignKeyName: "product_bom_external_items_parent_product_id_fkey";
14745
15489
  columns: ["parent_product_id"];
14746
15490
  isOneToOne: false;
@@ -14795,11 +15539,23 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
14795
15539
  updated_at?: string;
14796
15540
  };
14797
15541
  Relationships: [{
15542
+ foreignKeyName: "product_bom_items_component_product_id_fkey";
15543
+ columns: ["component_product_id"];
15544
+ isOneToOne: false;
15545
+ referencedRelation: "logistics_product_dimensions";
15546
+ referencedColumns: ["product_id"];
15547
+ }, {
14798
15548
  foreignKeyName: "product_bom_items_component_product_id_fkey";
14799
15549
  columns: ["component_product_id"];
14800
15550
  isOneToOne: false;
14801
15551
  referencedRelation: "products";
14802
15552
  referencedColumns: ["id"];
15553
+ }, {
15554
+ foreignKeyName: "product_bom_items_parent_product_id_fkey";
15555
+ columns: ["parent_product_id"];
15556
+ isOneToOne: false;
15557
+ referencedRelation: "logistics_product_dimensions";
15558
+ referencedColumns: ["product_id"];
14803
15559
  }, {
14804
15560
  foreignKeyName: "product_bom_items_parent_product_id_fkey";
14805
15561
  columns: ["parent_product_id"];
@@ -14975,6 +15731,12 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
14975
15731
  updated_at?: string;
14976
15732
  };
14977
15733
  Relationships: [{
15734
+ foreignKeyName: "product_groups_head_product_id_fkey";
15735
+ columns: ["head_product_id"];
15736
+ isOneToOne: false;
15737
+ referencedRelation: "logistics_product_dimensions";
15738
+ referencedColumns: ["product_id"];
15739
+ }, {
14978
15740
  foreignKeyName: "product_groups_head_product_id_fkey";
14979
15741
  columns: ["head_product_id"];
14980
15742
  isOneToOne: false;
@@ -15040,6 +15802,12 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
15040
15802
  isOneToOne: false;
15041
15803
  referencedRelation: "packages";
15042
15804
  referencedColumns: ["id"];
15805
+ }, {
15806
+ foreignKeyName: "product_load_settings_product_id_fkey";
15807
+ columns: ["product_id"];
15808
+ isOneToOne: false;
15809
+ referencedRelation: "logistics_product_dimensions";
15810
+ referencedColumns: ["product_id"];
15043
15811
  }, {
15044
15812
  foreignKeyName: "product_load_settings_product_id_fkey";
15045
15813
  columns: ["product_id"];
@@ -15090,6 +15858,7 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
15090
15858
  created_at: string;
15091
15859
  custom_fields: import("../integrations/supabase/types").Json;
15092
15860
  floriday_trade_item_id: string | null;
15861
+ fust_type_id: string | null;
15093
15862
  id: string;
15094
15863
  image_url: string | null;
15095
15864
  incoming_quantity: number;
@@ -15097,6 +15866,7 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
15097
15866
  layers_per_cart: number;
15098
15867
  location: string;
15099
15868
  min_quantity: number;
15869
+ plant_height_cm: number | null;
15100
15870
  plants_per_crate: number;
15101
15871
  product: string;
15102
15872
  product_type: string;
@@ -15116,6 +15886,7 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
15116
15886
  created_at?: string;
15117
15887
  custom_fields?: import("../integrations/supabase/types").Json;
15118
15888
  floriday_trade_item_id?: string | null;
15889
+ fust_type_id?: string | null;
15119
15890
  id?: string;
15120
15891
  image_url?: string | null;
15121
15892
  incoming_quantity?: number;
@@ -15123,6 +15894,7 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
15123
15894
  layers_per_cart?: number;
15124
15895
  location: string;
15125
15896
  min_quantity?: number;
15897
+ plant_height_cm?: number | null;
15126
15898
  plants_per_crate?: number;
15127
15899
  product: string;
15128
15900
  product_type?: string;
@@ -15142,6 +15914,7 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
15142
15914
  created_at?: string;
15143
15915
  custom_fields?: import("../integrations/supabase/types").Json;
15144
15916
  floriday_trade_item_id?: string | null;
15917
+ fust_type_id?: string | null;
15145
15918
  id?: string;
15146
15919
  image_url?: string | null;
15147
15920
  incoming_quantity?: number;
@@ -15149,6 +15922,7 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
15149
15922
  layers_per_cart?: number;
15150
15923
  location?: string;
15151
15924
  min_quantity?: number;
15925
+ plant_height_cm?: number | null;
15152
15926
  plants_per_crate?: number;
15153
15927
  product?: string;
15154
15928
  product_type?: string;
@@ -15160,7 +15934,13 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
15160
15934
  updated_at?: string;
15161
15935
  weight?: string | null;
15162
15936
  };
15163
- Relationships: [];
15937
+ Relationships: [{
15938
+ foreignKeyName: "products_fust_type_id_fkey";
15939
+ columns: ["fust_type_id"];
15940
+ isOneToOne: false;
15941
+ referencedRelation: "fust_types";
15942
+ referencedColumns: ["id"];
15943
+ }];
15164
15944
  };
15165
15945
  profile_modules: {
15166
15946
  Row: {
@@ -15494,6 +16274,12 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
15494
16274
  quantity?: number;
15495
16275
  };
15496
16276
  Relationships: [{
16277
+ foreignKeyName: "purchase_order_items_product_id_fkey";
16278
+ columns: ["product_id"];
16279
+ isOneToOne: false;
16280
+ referencedRelation: "logistics_product_dimensions";
16281
+ referencedColumns: ["product_id"];
16282
+ }, {
15497
16283
  foreignKeyName: "purchase_order_items_product_id_fkey";
15498
16284
  columns: ["product_id"];
15499
16285
  isOneToOne: false;
@@ -15813,34 +16599,130 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
15813
16599
  referencedColumns: ["id"];
15814
16600
  }];
15815
16601
  };
15816
- scan_karren: {
16602
+ scan_kar_sessie_regels: {
15817
16603
  Row: {
15818
- afgerond_op: string | null;
15819
- buffer_key: string | null;
16604
+ barcode: string;
16605
+ cart_id: string | null;
15820
16606
  created_at: string;
15821
- customer_names: string[];
15822
- device_id: string | null;
15823
- geprint: boolean;
15824
- geprint_op: string | null;
15825
16607
  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;
16608
+ order_id: string | null;
15831
16609
  order_number: string | null;
15832
- scanner_id: string | null;
15833
- scanner_key: string;
15834
- status: string;
15835
- totaal_producten: number;
15836
- updated_at: string;
16610
+ regels: import("../integrations/supabase/types").Json;
16611
+ sessie_id: string;
16612
+ volledig: boolean;
15837
16613
  };
15838
16614
  Insert: {
15839
- afgerond_op?: string | null;
15840
- buffer_key?: string | null;
16615
+ barcode: string;
16616
+ cart_id?: string | null;
15841
16617
  created_at?: string;
15842
- customer_names?: string[];
15843
- device_id?: string | null;
16618
+ id?: string;
16619
+ order_id?: string | null;
16620
+ order_number?: string | null;
16621
+ regels?: import("../integrations/supabase/types").Json;
16622
+ sessie_id: string;
16623
+ volledig?: boolean;
16624
+ };
16625
+ Update: {
16626
+ barcode?: string;
16627
+ cart_id?: string | null;
16628
+ created_at?: string;
16629
+ id?: string;
16630
+ order_id?: string | null;
16631
+ order_number?: string | null;
16632
+ regels?: import("../integrations/supabase/types").Json;
16633
+ sessie_id?: string;
16634
+ volledig?: boolean;
16635
+ };
16636
+ Relationships: [{
16637
+ foreignKeyName: "scan_kar_sessie_regels_sessie_id_fkey";
16638
+ columns: ["sessie_id"];
16639
+ isOneToOne: false;
16640
+ referencedRelation: "scan_kar_sessies";
16641
+ referencedColumns: ["id"];
16642
+ }];
16643
+ };
16644
+ scan_kar_sessies: {
16645
+ Row: {
16646
+ afgerond_op: string | null;
16647
+ cart_id: string | null;
16648
+ cart_index: number | null;
16649
+ cart_total: number | null;
16650
+ created_at: string;
16651
+ id: string;
16652
+ klant_naam: string | null;
16653
+ medewerker_naam: string | null;
16654
+ order_id: string | null;
16655
+ order_number: string | null;
16656
+ scanner_id: string | null;
16657
+ status: string;
16658
+ updated_at: string;
16659
+ };
16660
+ Insert: {
16661
+ afgerond_op?: string | null;
16662
+ cart_id?: string | null;
16663
+ cart_index?: number | null;
16664
+ cart_total?: number | null;
16665
+ created_at?: string;
16666
+ id?: string;
16667
+ klant_naam?: string | null;
16668
+ medewerker_naam?: string | null;
16669
+ order_id?: string | null;
16670
+ order_number?: string | null;
16671
+ scanner_id?: string | null;
16672
+ status?: string;
16673
+ updated_at?: string;
16674
+ };
16675
+ Update: {
16676
+ afgerond_op?: string | null;
16677
+ cart_id?: string | null;
16678
+ cart_index?: number | null;
16679
+ cart_total?: number | null;
16680
+ created_at?: string;
16681
+ id?: string;
16682
+ klant_naam?: string | null;
16683
+ medewerker_naam?: string | null;
16684
+ order_id?: string | null;
16685
+ order_number?: string | null;
16686
+ scanner_id?: string | null;
16687
+ status?: string;
16688
+ updated_at?: string;
16689
+ };
16690
+ Relationships: [{
16691
+ foreignKeyName: "scan_kar_sessies_scanner_id_fkey";
16692
+ columns: ["scanner_id"];
16693
+ isOneToOne: false;
16694
+ referencedRelation: "scan_scanners";
16695
+ referencedColumns: ["id"];
16696
+ }];
16697
+ };
16698
+ scan_karren: {
16699
+ Row: {
16700
+ afgerond_op: string | null;
16701
+ buffer_key: string | null;
16702
+ created_at: string;
16703
+ customer_names: string[];
16704
+ device_id: string | null;
16705
+ geprint: boolean;
16706
+ geprint_op: string | null;
16707
+ id: string;
16708
+ kar_nummer: string;
16709
+ medewerker_id: string | null;
16710
+ medewerker_naam: string | null;
16711
+ naar_pickstation: boolean;
16712
+ naar_pickstation_op: string | null;
16713
+ order_number: string | null;
16714
+ scanner_id: string | null;
16715
+ scanner_key: string;
16716
+ status: string;
16717
+ totaal_producten: number;
16718
+ updated_at: string;
16719
+ };
16720
+ Insert: {
16721
+ afgerond_op?: string | null;
16722
+ buffer_key?: string | null;
16723
+ created_at?: string;
16724
+ customer_names?: string[];
16725
+ device_id?: string | null;
15844
16726
  geprint?: boolean;
15845
16727
  geprint_op?: string | null;
15846
16728
  id?: string;
@@ -16017,6 +16899,60 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
16017
16899
  };
16018
16900
  Relationships: [];
16019
16901
  };
16902
+ scan_restpakbonnen: {
16903
+ Row: {
16904
+ barcode: string;
16905
+ bron_barcode: string | null;
16906
+ cart_id: string | null;
16907
+ cart_index: number | null;
16908
+ cart_total: number | null;
16909
+ created_at: string;
16910
+ geprint_op: string | null;
16911
+ id: string;
16912
+ klant_naam: string | null;
16913
+ order_id: string | null;
16914
+ order_number: string | null;
16915
+ print_job_id: string | null;
16916
+ regels: import("../integrations/supabase/types").Json;
16917
+ updated_at: string;
16918
+ verwerkt: boolean;
16919
+ };
16920
+ Insert: {
16921
+ barcode: string;
16922
+ bron_barcode?: string | null;
16923
+ cart_id?: string | null;
16924
+ cart_index?: number | null;
16925
+ cart_total?: number | null;
16926
+ created_at?: string;
16927
+ geprint_op?: string | null;
16928
+ id?: string;
16929
+ klant_naam?: string | null;
16930
+ order_id?: string | null;
16931
+ order_number?: string | null;
16932
+ print_job_id?: string | null;
16933
+ regels?: import("../integrations/supabase/types").Json;
16934
+ updated_at?: string;
16935
+ verwerkt?: boolean;
16936
+ };
16937
+ Update: {
16938
+ barcode?: string;
16939
+ bron_barcode?: string | null;
16940
+ cart_id?: string | null;
16941
+ cart_index?: number | null;
16942
+ cart_total?: number | null;
16943
+ created_at?: string;
16944
+ geprint_op?: string | null;
16945
+ id?: string;
16946
+ klant_naam?: string | null;
16947
+ order_id?: string | null;
16948
+ order_number?: string | null;
16949
+ print_job_id?: string | null;
16950
+ regels?: import("../integrations/supabase/types").Json;
16951
+ updated_at?: string;
16952
+ verwerkt?: boolean;
16953
+ };
16954
+ Relationships: [];
16955
+ };
16020
16956
  scan_scanners: {
16021
16957
  Row: {
16022
16958
  actief: boolean;
@@ -16026,6 +16962,7 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
16026
16962
  naam: string;
16027
16963
  omschrijving: string | null;
16028
16964
  pincode: string | null;
16965
+ printer_id: string | null;
16029
16966
  slug: string;
16030
16967
  type: string;
16031
16968
  updated_at: string;
@@ -16040,6 +16977,7 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
16040
16977
  naam: string;
16041
16978
  omschrijving?: string | null;
16042
16979
  pincode?: string | null;
16980
+ printer_id?: string | null;
16043
16981
  slug: string;
16044
16982
  type?: string;
16045
16983
  updated_at?: string;
@@ -16054,6 +16992,7 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
16054
16992
  naam?: string;
16055
16993
  omschrijving?: string | null;
16056
16994
  pincode?: string | null;
16995
+ printer_id?: string | null;
16057
16996
  slug?: string;
16058
16997
  type?: string;
16059
16998
  updated_at?: string;
@@ -16062,6 +17001,27 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
16062
17001
  };
16063
17002
  Relationships: [];
16064
17003
  };
17004
+ shell_settings: {
17005
+ Row: {
17006
+ created_at: string;
17007
+ default_path: string | null;
17008
+ shell_id: string;
17009
+ updated_at: string;
17010
+ };
17011
+ Insert: {
17012
+ created_at?: string;
17013
+ default_path?: string | null;
17014
+ shell_id: string;
17015
+ updated_at?: string;
17016
+ };
17017
+ Update: {
17018
+ created_at?: string;
17019
+ default_path?: string | null;
17020
+ shell_id?: string;
17021
+ updated_at?: string;
17022
+ };
17023
+ Relationships: [];
17024
+ };
16065
17025
  sick_periods: {
16066
17026
  Row: {
16067
17027
  created_at: string;
@@ -16681,6 +17641,12 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
16681
17641
  isOneToOne: false;
16682
17642
  referencedRelation: "werkbonnen";
16683
17643
  referencedColumns: ["id"];
17644
+ }, {
17645
+ foreignKeyName: "time_logs_work_order_id_fkey";
17646
+ columns: ["work_order_id"];
17647
+ isOneToOne: false;
17648
+ referencedRelation: "wo_overview";
17649
+ referencedColumns: ["id"];
16684
17650
  }];
16685
17651
  };
16686
17652
  time_off_entries: {
@@ -17974,6 +18940,12 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
17974
18940
  isOneToOne: false;
17975
18941
  referencedRelation: "werkbonnen";
17976
18942
  referencedColumns: ["id"];
18943
+ }, {
18944
+ foreignKeyName: "uren_entries_werkbon_id_fkey";
18945
+ columns: ["werkbon_id"];
18946
+ isOneToOne: false;
18947
+ referencedRelation: "wo_overview";
18948
+ referencedColumns: ["id"];
17977
18949
  }];
17978
18950
  };
17979
18951
  uren_exports: {
@@ -18697,6 +19669,12 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
18697
19669
  isOneToOne: true;
18698
19670
  referencedRelation: "werkbonnen";
18699
19671
  referencedColumns: ["id"];
19672
+ }, {
19673
+ foreignKeyName: "werkbon_facturatie_controle_werkbon_id_fkey";
19674
+ columns: ["werkbon_id"];
19675
+ isOneToOne: true;
19676
+ referencedRelation: "wo_overview";
19677
+ referencedColumns: ["id"];
18700
19678
  }];
18701
19679
  };
18702
19680
  werkbon_facturatie_settings: {
@@ -18784,6 +19762,12 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
18784
19762
  isOneToOne: false;
18785
19763
  referencedRelation: "werkbonnen";
18786
19764
  referencedColumns: ["id"];
19765
+ }, {
19766
+ foreignKeyName: "werkbon_materials_werkbon_id_fkey";
19767
+ columns: ["werkbon_id"];
19768
+ isOneToOne: false;
19769
+ referencedRelation: "wo_overview";
19770
+ referencedColumns: ["id"];
18787
19771
  }];
18788
19772
  };
18789
19773
  werkbon_package_ai_rules: {
@@ -18967,6 +19951,12 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
18967
19951
  isOneToOne: false;
18968
19952
  referencedRelation: "werkbonnen";
18969
19953
  referencedColumns: ["id"];
19954
+ }, {
19955
+ foreignKeyName: "werkbon_package_lines_werkbon_id_fkey";
19956
+ columns: ["werkbon_id"];
19957
+ isOneToOne: false;
19958
+ referencedRelation: "wo_overview";
19959
+ referencedColumns: ["id"];
18970
19960
  }];
18971
19961
  };
18972
19962
  werkbon_packages: {
@@ -19057,6 +20047,12 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
19057
20047
  isOneToOne: false;
19058
20048
  referencedRelation: "werkbonnen";
19059
20049
  referencedColumns: ["id"];
20050
+ }, {
20051
+ foreignKeyName: "werkbon_photos_werkbon_id_fkey";
20052
+ columns: ["werkbon_id"];
20053
+ isOneToOne: false;
20054
+ referencedRelation: "wo_overview";
20055
+ referencedColumns: ["id"];
19060
20056
  }];
19061
20057
  };
19062
20058
  werkbon_time_logs: {
@@ -19096,6 +20092,12 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
19096
20092
  isOneToOne: false;
19097
20093
  referencedRelation: "werkbonnen";
19098
20094
  referencedColumns: ["id"];
20095
+ }, {
20096
+ foreignKeyName: "werkbon_time_logs_werkbon_id_fkey";
20097
+ columns: ["werkbon_id"];
20098
+ isOneToOne: false;
20099
+ referencedRelation: "wo_overview";
20100
+ referencedColumns: ["id"];
19099
20101
  }];
19100
20102
  };
19101
20103
  werkbonnen: {
@@ -19219,6 +20221,12 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
19219
20221
  isOneToOne: false;
19220
20222
  referencedRelation: "werkbonnen";
19221
20223
  referencedColumns: ["id"];
20224
+ }, {
20225
+ foreignKeyName: "werkbonnen_parent_werkbon_id_fkey";
20226
+ columns: ["parent_werkbon_id"];
20227
+ isOneToOne: false;
20228
+ referencedRelation: "wo_overview";
20229
+ referencedColumns: ["id"];
19222
20230
  }, {
19223
20231
  foreignKeyName: "werkbonnen_source_mailbox_message_id_fkey";
19224
20232
  columns: ["source_mailbox_message_id"];
@@ -19687,6 +20695,24 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
19687
20695
  };
19688
20696
  Relationships: [];
19689
20697
  };
20698
+ logistics_product_dimensions: {
20699
+ Row: {
20700
+ dimension_source: string | null;
20701
+ fust_height_mm: number | null;
20702
+ fust_length_mm: number | null;
20703
+ fust_name: string | null;
20704
+ fust_source: string | null;
20705
+ fust_type_id: string | null;
20706
+ fust_width_mm: number | null;
20707
+ height_source: string | null;
20708
+ missing_reason: string | null;
20709
+ plant_height_cm: number | null;
20710
+ plants_per_crate: number | null;
20711
+ product_id: string | null;
20712
+ product_name: string | null;
20713
+ };
20714
+ Relationships: [];
20715
+ };
19690
20716
  manufacture_product_possible_stock_view: {
19691
20717
  Row: {
19692
20718
  component_count: number | null;
@@ -19724,6 +20750,12 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
19724
20750
  isOneToOne: false;
19725
20751
  referencedRelation: "werkbonnen";
19726
20752
  referencedColumns: ["id"];
20753
+ }, {
20754
+ foreignKeyName: "planning_items_werkbon_id_fkey";
20755
+ columns: ["werkbon_id"];
20756
+ isOneToOne: false;
20757
+ referencedRelation: "wo_overview";
20758
+ referencedColumns: ["id"];
19727
20759
  }];
19728
20760
  };
19729
20761
  product_group_stock_view: {
@@ -20185,6 +21217,81 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
20185
21217
  isOneToOne: false;
20186
21218
  referencedRelation: "werkbonnen";
20187
21219
  referencedColumns: ["id"];
21220
+ }, {
21221
+ foreignKeyName: "werkbon_package_lines_werkbon_id_fkey";
21222
+ columns: ["werkbon_id"];
21223
+ isOneToOne: false;
21224
+ referencedRelation: "wo_overview";
21225
+ referencedColumns: ["id"];
21226
+ }];
21227
+ };
21228
+ wo_overview: {
21229
+ Row: {
21230
+ assigned_user_id: string | null;
21231
+ budget_mandate_cents: number | null;
21232
+ created_at: string | null;
21233
+ customer_id: string | null;
21234
+ id: string | null;
21235
+ needs_detail_review: boolean | null;
21236
+ number: string | null;
21237
+ parent_werkbon_id: string | null;
21238
+ planning_status: string | null;
21239
+ scheduled_end_time: string | null;
21240
+ scheduled_start_time: string | null;
21241
+ source_type: string | null;
21242
+ status: string | null;
21243
+ technician_id: string | null;
21244
+ updated_at: string | null;
21245
+ work_address: string | null;
21246
+ };
21247
+ Insert: {
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
+ Update: {
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
+ Relationships: [{
21284
+ foreignKeyName: "werkbonnen_parent_werkbon_id_fkey";
21285
+ columns: ["parent_werkbon_id"];
21286
+ isOneToOne: false;
21287
+ referencedRelation: "werkbonnen";
21288
+ referencedColumns: ["id"];
21289
+ }, {
21290
+ foreignKeyName: "werkbonnen_parent_werkbon_id_fkey";
21291
+ columns: ["parent_werkbon_id"];
21292
+ isOneToOne: false;
21293
+ referencedRelation: "wo_overview";
21294
+ referencedColumns: ["id"];
20188
21295
  }];
20189
21296
  };
20190
21297
  };
@@ -20376,12 +21483,21 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
20376
21483
  _max?: number;
20377
21484
  };
20378
21485
  Returns: {
21486
+ aflever_pogingen: number;
20379
21487
  agent_id: string | null;
21488
+ artefact_bytes: number | null;
21489
+ artefact_gereed_op: string | null;
21490
+ artefact_pad: string | null;
21491
+ artefact_sha256: string | null;
21492
+ batch_id: string | null;
20380
21493
  bron_job_id: string | null;
20381
21494
  created_at: string;
20382
21495
  documentnaam: string;
20383
21496
  documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
20384
21497
  extern_job_id: string | null;
21498
+ fase_gestart_op: string | null;
21499
+ fase_voltooid_op: string | null;
21500
+ foutcode: string | null;
20385
21501
  foutmelding: string | null;
20386
21502
  gebruiker_id: string | null;
20387
21503
  gebruiker_naam: string;
@@ -20395,7 +21511,10 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
20395
21511
  kopieen: number;
20396
21512
  layout_id: string | null;
20397
21513
  lokaal_opgeslagen_op: string | null;
21514
+ lokale_pdf_claim_id: string | null;
21515
+ lokale_pdf_claim_tot: string | null;
20398
21516
  lokale_pdf_fout: string | null;
21517
+ lokale_pdf_print_plek_id: string | null;
20399
21518
  lokale_pdf_status: string | null;
20400
21519
  opgepakt_op: string | null;
20401
21520
  paginas: number;
@@ -20408,6 +21527,7 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
20408
21527
  resultaat_pdf_base64: string | null;
20409
21528
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
20410
21529
  updated_at: string;
21530
+ verwerkingsfase: string;
20411
21531
  volgende_poging: string | null;
20412
21532
  voltooid_op: string | null;
20413
21533
  }[];
@@ -20454,6 +21574,25 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
20454
21574
  isSetofReturn: true;
20455
21575
  };
20456
21576
  };
21577
+ claim_local_pdf_jobs: {
21578
+ Args: {
21579
+ _max?: number;
21580
+ _print_plek_id: string;
21581
+ _writer_id: string;
21582
+ };
21583
+ Returns: {
21584
+ artefact_bytes: number;
21585
+ artefact_pad: string;
21586
+ artefact_sha256: string;
21587
+ documentnaam: string;
21588
+ id: string;
21589
+ lokale_pdf_print_plek_id: string;
21590
+ lokale_pdf_status: string;
21591
+ printer_id: string;
21592
+ resultaat_pdf_base64: string;
21593
+ status: string;
21594
+ }[];
21595
+ };
20457
21596
  claim_logistics_tasks: {
20458
21597
  Args: {
20459
21598
  _limit?: number;
@@ -20507,12 +21646,21 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
20507
21646
  _max?: number;
20508
21647
  };
20509
21648
  Returns: {
21649
+ aflever_pogingen: number;
20510
21650
  agent_id: string | null;
21651
+ artefact_bytes: number | null;
21652
+ artefact_gereed_op: string | null;
21653
+ artefact_pad: string | null;
21654
+ artefact_sha256: string | null;
21655
+ batch_id: string | null;
20511
21656
  bron_job_id: string | null;
20512
21657
  created_at: string;
20513
21658
  documentnaam: string;
20514
21659
  documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
20515
21660
  extern_job_id: string | null;
21661
+ fase_gestart_op: string | null;
21662
+ fase_voltooid_op: string | null;
21663
+ foutcode: string | null;
20516
21664
  foutmelding: string | null;
20517
21665
  gebruiker_id: string | null;
20518
21666
  gebruiker_naam: string;
@@ -20526,7 +21674,10 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
20526
21674
  kopieen: number;
20527
21675
  layout_id: string | null;
20528
21676
  lokaal_opgeslagen_op: string | null;
21677
+ lokale_pdf_claim_id: string | null;
21678
+ lokale_pdf_claim_tot: string | null;
20529
21679
  lokale_pdf_fout: string | null;
21680
+ lokale_pdf_print_plek_id: string | null;
20530
21681
  lokale_pdf_status: string | null;
20531
21682
  opgepakt_op: string | null;
20532
21683
  paginas: number;
@@ -20539,6 +21690,7 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
20539
21690
  resultaat_pdf_base64: string | null;
20540
21691
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
20541
21692
  updated_at: string;
21693
+ verwerkingsfase: string;
20542
21694
  volgende_poging: string | null;
20543
21695
  voltooid_op: string | null;
20544
21696
  }[];
@@ -20555,12 +21707,21 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
20555
21707
  _max?: number;
20556
21708
  };
20557
21709
  Returns: {
21710
+ aflever_pogingen: number;
20558
21711
  agent_id: string | null;
21712
+ artefact_bytes: number | null;
21713
+ artefact_gereed_op: string | null;
21714
+ artefact_pad: string | null;
21715
+ artefact_sha256: string | null;
21716
+ batch_id: string | null;
20559
21717
  bron_job_id: string | null;
20560
21718
  created_at: string;
20561
21719
  documentnaam: string;
20562
21720
  documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
20563
21721
  extern_job_id: string | null;
21722
+ fase_gestart_op: string | null;
21723
+ fase_voltooid_op: string | null;
21724
+ foutcode: string | null;
20564
21725
  foutmelding: string | null;
20565
21726
  gebruiker_id: string | null;
20566
21727
  gebruiker_naam: string;
@@ -20574,7 +21735,10 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
20574
21735
  kopieen: number;
20575
21736
  layout_id: string | null;
20576
21737
  lokaal_opgeslagen_op: string | null;
21738
+ lokale_pdf_claim_id: string | null;
21739
+ lokale_pdf_claim_tot: string | null;
20577
21740
  lokale_pdf_fout: string | null;
21741
+ lokale_pdf_print_plek_id: string | null;
20578
21742
  lokale_pdf_status: string | null;
20579
21743
  opgepakt_op: string | null;
20580
21744
  paginas: number;
@@ -20587,6 +21751,7 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
20587
21751
  resultaat_pdf_base64: string | null;
20588
21752
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
20589
21753
  updated_at: string;
21754
+ verwerkingsfase: string;
20590
21755
  volgende_poging: string | null;
20591
21756
  voltooid_op: string | null;
20592
21757
  }[];
@@ -20597,7 +21762,15 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
20597
21762
  isSetofReturn: true;
20598
21763
  };
20599
21764
  };
20600
- claim_twinfield_push_batch: {
21765
+ claim_print_queue_lease: {
21766
+ Args: {
21767
+ _houder: string;
21768
+ _naam: string;
21769
+ _seconden?: number;
21770
+ };
21771
+ Returns: boolean;
21772
+ };
21773
+ claim_twinfield_push_batch: {
20601
21774
  Args: {
20602
21775
  _customer_id?: string;
20603
21776
  _limit?: number;
@@ -20722,7 +21895,10 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
20722
21895
  cart_index: number;
20723
21896
  cart_number: string;
20724
21897
  cart_number_id: string;
21898
+ cart_seq: number;
21899
+ cart_total: number;
20725
21900
  order_id: string;
21901
+ order_number: string;
20726
21902
  order_source: string;
20727
21903
  pick_date: string;
20728
21904
  printed_at: string;
@@ -20730,6 +21906,12 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
20730
21906
  status: string;
20731
21907
  }[];
20732
21908
  };
21909
+ control_mark_carts_delivered: {
21910
+ Args: {
21911
+ p_carts: import("../integrations/supabase/types").Json;
21912
+ };
21913
+ Returns: number;
21914
+ };
20733
21915
  count_distinct_regulatory_products: {
20734
21916
  Args: never;
20735
21917
  Returns: number;
@@ -20857,6 +22039,13 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
20857
22039
  };
20858
22040
  Returns: undefined;
20859
22041
  };
22042
+ ensure_system_roles: {
22043
+ Args: never;
22044
+ Returns: {
22045
+ action: string;
22046
+ role_key: string;
22047
+ }[];
22048
+ };
20860
22049
  ensure_trade_item_stock_row: {
20861
22050
  Args: {
20862
22051
  p_key: string;
@@ -20923,6 +22112,15 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
20923
22112
  };
20924
22113
  Returns: string;
20925
22114
  };
22115
+ finish_local_pdf_job: {
22116
+ Args: {
22117
+ _fout?: string;
22118
+ _job_id: string;
22119
+ _status: string;
22120
+ _writer_id: string;
22121
+ };
22122
+ Returns: boolean;
22123
+ };
20926
22124
  floriday_capture_stock_snapshot: {
20927
22125
  Args: never;
20928
22126
  Returns: number;
@@ -21202,6 +22400,36 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
21202
22400
  Args: never;
21203
22401
  Returns: string;
21204
22402
  };
22403
+ handover_archief_lijst: {
22404
+ Args: never;
22405
+ Returns: import("../integrations/supabase/types").Json;
22406
+ };
22407
+ handover_archiveren: {
22408
+ Args: {
22409
+ _archief?: boolean;
22410
+ _module_id: string;
22411
+ };
22412
+ Returns: boolean;
22413
+ };
22414
+ handover_check_afronden: {
22415
+ Args: {
22416
+ _module_id: string;
22417
+ };
22418
+ Returns: boolean;
22419
+ };
22420
+ handover_check_markeren: {
22421
+ Args: {
22422
+ _module_ids: string[];
22423
+ _reden?: string;
22424
+ };
22425
+ Returns: number;
22426
+ };
22427
+ handover_fingerprint_maken: {
22428
+ Args: {
22429
+ _module_id?: string;
22430
+ };
22431
+ Returns: import("../integrations/supabase/types").Json;
22432
+ };
21205
22433
  handover_get: {
21206
22434
  Args: {
21207
22435
  _module_id: string;
@@ -21232,6 +22460,14 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
21232
22460
  };
21233
22461
  Returns: boolean;
21234
22462
  };
22463
+ handover_module_meta_zetten: {
22464
+ Args: {
22465
+ _module_id: string;
22466
+ _project_url?: string;
22467
+ _publicatie_url?: string;
22468
+ };
22469
+ Returns: boolean;
22470
+ };
21235
22471
  handover_norm_naam: {
21236
22472
  Args: {
21237
22473
  _naam: string;
@@ -21252,6 +22488,23 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
21252
22488
  };
21253
22489
  Returns: number;
21254
22490
  };
22491
+ handover_publish_uit_github: {
22492
+ Args: {
22493
+ _bezit_tabellen?: string[];
22494
+ _bron_soort?: string;
22495
+ _commit?: string;
22496
+ _contractfuncties?: string[];
22497
+ _inhoud_md: string;
22498
+ _module_id: string;
22499
+ _module_titel: string;
22500
+ _ontbrekende_contracten?: string[];
22501
+ _pad?: string;
22502
+ _repo?: string;
22503
+ _samenvatting?: string;
22504
+ _versie_label?: string;
22505
+ };
22506
+ Returns: import("../integrations/supabase/types").Json;
22507
+ };
21255
22508
  handover_publish_via_token: {
21256
22509
  Args: {
21257
22510
  _bevindingen?: string;
@@ -21265,7 +22518,7 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
21265
22518
  _samenvatting?: string;
21266
22519
  _token_hash: string;
21267
22520
  };
21268
- Returns: number;
22521
+ Returns: import("../integrations/supabase/types").Json;
21269
22522
  };
21270
22523
  handover_status: {
21271
22524
  Args: never;
@@ -21277,23 +22530,6 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
21277
22530
  };
21278
22531
  Returns: string;
21279
22532
  };
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
22533
  handover_update: {
21298
22534
  Args: {
21299
22535
  _bezit_tabellen?: string[];
@@ -21321,12 +22557,31 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
21321
22557
  };
21322
22558
  Returns: boolean;
21323
22559
  };
22560
+ handover_versie_verwijderen: {
22561
+ Args: {
22562
+ _module_id: string;
22563
+ _versie: number;
22564
+ };
22565
+ Returns: boolean;
22566
+ };
21324
22567
  handover_versies: {
21325
22568
  Args: {
21326
22569
  _module_id: string;
21327
22570
  };
21328
22571
  Returns: import("../integrations/supabase/types").Json;
21329
22572
  };
22573
+ handover_verwijderen: {
22574
+ Args: {
22575
+ _module_id: string;
22576
+ };
22577
+ Returns: boolean;
22578
+ };
22579
+ handover_wijzigingen: {
22580
+ Args: {
22581
+ _module_id?: string;
22582
+ };
22583
+ Returns: import("../integrations/supabase/types").Json;
22584
+ };
21330
22585
  has_module_permission: {
21331
22586
  Args: {
21332
22587
  _min: string;
@@ -21661,6 +22916,13 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
21661
22916
  };
21662
22917
  Returns: string;
21663
22918
  };
22919
+ logistics_cart_handled: {
22920
+ Args: {
22921
+ p_cart_index: number;
22922
+ p_order_id: string;
22923
+ };
22924
+ Returns: boolean;
22925
+ };
21664
22926
  logistics_cart_index: {
21665
22927
  Args: {
21666
22928
  p_from?: string;
@@ -21670,6 +22932,9 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
21670
22932
  cart_id: string;
21671
22933
  cart_index: number;
21672
22934
  cart_label: string;
22935
+ cart_number: string;
22936
+ cart_seq: number;
22937
+ cart_total: number;
21673
22938
  delivery_date: string;
21674
22939
  is_announced: boolean;
21675
22940
  is_controlled: boolean;
@@ -21684,12 +22949,79 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
21684
22949
  task_status: string;
21685
22950
  }[];
21686
22951
  };
22952
+ logistics_cart_layout_method: {
22953
+ Args: never;
22954
+ Returns: import("../integrations/supabase/types").Json;
22955
+ };
22956
+ logistics_cart_plan_overview: {
22957
+ Args: {
22958
+ p_days?: number;
22959
+ };
22960
+ Returns: {
22961
+ cart_total: number;
22962
+ delivery_date: string;
22963
+ order_ref: string;
22964
+ plan_ready: boolean;
22965
+ reason: string;
22966
+ released: boolean;
22967
+ }[];
22968
+ };
22969
+ logistics_cart_plan_status: {
22970
+ Args: {
22971
+ p_ref: string;
22972
+ };
22973
+ Returns: import("../integrations/supabase/types").Json;
22974
+ };
22975
+ logistics_cart_seq: {
22976
+ Args: {
22977
+ p_order_uuid?: string;
22978
+ };
22979
+ Returns: {
22980
+ cart_id: string;
22981
+ cart_index: number;
22982
+ cart_number: string;
22983
+ cart_seq: number;
22984
+ cart_total: number;
22985
+ order_uuid: string;
22986
+ }[];
22987
+ };
21687
22988
  logistics_cart_slip_plan: {
21688
22989
  Args: {
21689
22990
  p_order_id: string;
21690
22991
  };
21691
22992
  Returns: import("../integrations/supabase/types").Json;
21692
22993
  };
22994
+ logistics_cart_units: {
22995
+ Args: {
22996
+ p_from?: string;
22997
+ p_to?: string;
22998
+ };
22999
+ Returns: {
23000
+ cart_id: string;
23001
+ cart_index: number;
23002
+ cart_label: string;
23003
+ cart_number: string;
23004
+ cart_seq: number;
23005
+ cart_total: number;
23006
+ delivery_date: string;
23007
+ is_announced: boolean;
23008
+ is_buffer: boolean;
23009
+ is_controlled: boolean;
23010
+ is_printed: boolean;
23011
+ is_shared: boolean;
23012
+ order_number: string;
23013
+ order_source: string;
23014
+ order_uuid: string;
23015
+ pick_date: string;
23016
+ printed_at: string;
23017
+ shifted: boolean;
23018
+ task_status: string;
23019
+ unit_buffer: string;
23020
+ unit_order_count: number;
23021
+ unit_orders: string[];
23022
+ unit_ref: string;
23023
+ }[];
23024
+ };
21693
23025
  logistics_check_order_allowed: {
21694
23026
  Args: {
21695
23027
  p_lines: import("../integrations/supabase/types").Json;
@@ -21845,7 +23177,9 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
21845
23177
  announced_carts: number;
21846
23178
  control_carts: number;
21847
23179
  delivery_carts: number;
23180
+ duplicate_carts: number;
21848
23181
  ok: boolean;
23182
+ orphan_carts: number;
21849
23183
  orphan_tasks: number;
21850
23184
  pick_date: string;
21851
23185
  raw_carts: number;
@@ -21853,6 +23187,85 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
21853
23187
  station_carts: number;
21854
23188
  }[];
21855
23189
  };
23190
+ logistics_control_scan_approve: {
23191
+ Args: {
23192
+ p_allow_reprint?: boolean;
23193
+ p_barcode: string;
23194
+ p_printer_id?: string;
23195
+ p_scanner_id?: string;
23196
+ };
23197
+ Returns: import("../integrations/supabase/types").Json;
23198
+ };
23199
+ logistics_control_scan_claim: {
23200
+ Args: {
23201
+ _lease_seconds?: number;
23202
+ _limit?: number;
23203
+ };
23204
+ Returns: {
23205
+ approved_at: string | null;
23206
+ attempts: number;
23207
+ barcode: string;
23208
+ cart_id: string;
23209
+ created_at: string;
23210
+ document_url: string | null;
23211
+ error: string | null;
23212
+ error_code: string | null;
23213
+ fulfillment_order_id: string | null;
23214
+ id: string;
23215
+ is_floriday: boolean;
23216
+ locked_until: string | null;
23217
+ order_id: string | null;
23218
+ order_number: string | null;
23219
+ print_job_id: string | null;
23220
+ printed_at: string | null;
23221
+ printer_id: string | null;
23222
+ scanner_id: string | null;
23223
+ status: string;
23224
+ updated_at: string;
23225
+ }[];
23226
+ SetofOptions: {
23227
+ from: "*";
23228
+ to: "logistics_control_scan";
23229
+ isOneToOne: false;
23230
+ isSetofReturn: true;
23231
+ };
23232
+ };
23233
+ logistics_control_scan_finish: {
23234
+ Args: {
23235
+ _document_url?: string;
23236
+ _error?: string;
23237
+ _error_code?: string;
23238
+ _fulfillment_order_id?: string;
23239
+ _id: string;
23240
+ _ok: boolean;
23241
+ _print_job_id?: string;
23242
+ _status?: string;
23243
+ };
23244
+ Returns: import("../integrations/supabase/types").Json;
23245
+ };
23246
+ logistics_control_scan_lookup: {
23247
+ Args: {
23248
+ p_barcode: string;
23249
+ };
23250
+ Returns: import("../integrations/supabase/types").Json;
23251
+ };
23252
+ logistics_control_scan_overview: {
23253
+ Args: {
23254
+ _date?: string;
23255
+ _scanner_id?: string;
23256
+ };
23257
+ Returns: import("../integrations/supabase/types").Json;
23258
+ };
23259
+ logistics_control_scan_retry: {
23260
+ Args: {
23261
+ _id: string;
23262
+ };
23263
+ Returns: import("../integrations/supabase/types").Json;
23264
+ };
23265
+ logistics_control_settings: {
23266
+ Args: never;
23267
+ Returns: import("../integrations/supabase/types").Json;
23268
+ };
21856
23269
  logistics_delay_customer_email: {
21857
23270
  Args: {
21858
23271
  p_customer: string;
@@ -21920,6 +23333,17 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
21920
23333
  };
21921
23334
  Returns: import("../integrations/supabase/types").Json;
21922
23335
  };
23336
+ logistics_enqueue_sticker_with_slip: {
23337
+ Args: {
23338
+ _cart_id: string;
23339
+ _is_herprint: boolean;
23340
+ _printer_id: string;
23341
+ _queue_item_id: string;
23342
+ _session_id: string;
23343
+ _slip_job_id: string;
23344
+ };
23345
+ Returns: string;
23346
+ };
21923
23347
  logistics_ensure_cart_barcode: {
21924
23348
  Args: {
21925
23349
  _cart_id: string;
@@ -22061,6 +23485,26 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
22061
23485
  };
22062
23486
  Returns: string;
22063
23487
  };
23488
+ logistics_fulfill_barcode_requests: {
23489
+ Args: {
23490
+ p_limit?: number;
23491
+ };
23492
+ Returns: import("../integrations/supabase/types").Json;
23493
+ };
23494
+ logistics_full_cart_min_layers: {
23495
+ Args: never;
23496
+ Returns: number;
23497
+ };
23498
+ logistics_full_cart_min_percentage: {
23499
+ Args: never;
23500
+ Returns: number;
23501
+ };
23502
+ logistics_is_pick_workday: {
23503
+ Args: {
23504
+ p_date: string;
23505
+ };
23506
+ Returns: boolean;
23507
+ };
22064
23508
  logistics_live_carriers: {
22065
23509
  Args: {
22066
23510
  p_order_ref: string;
@@ -22073,6 +23517,20 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
22073
23517
  };
22074
23518
  Returns: number;
22075
23519
  };
23520
+ logistics_next_workday_date: {
23521
+ Args: {
23522
+ p_date: string;
23523
+ p_days?: string[];
23524
+ };
23525
+ Returns: string;
23526
+ };
23527
+ logistics_next_workday_not_past: {
23528
+ Args: {
23529
+ p_days: string[];
23530
+ p_ts: string;
23531
+ };
23532
+ Returns: string;
23533
+ };
22076
23534
  logistics_not_past: {
22077
23535
  Args: {
22078
23536
  p_ts: string;
@@ -22085,6 +23543,19 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
22085
23543
  };
22086
23544
  Returns: number;
22087
23545
  };
23546
+ logistics_order_handled: {
23547
+ Args: {
23548
+ p_order_uuid: string;
23549
+ };
23550
+ Returns: boolean;
23551
+ };
23552
+ logistics_order_is_topick: {
23553
+ Args: {
23554
+ p_order_id: string;
23555
+ p_order_number: string;
23556
+ };
23557
+ Returns: boolean;
23558
+ };
22088
23559
  logistics_order_overview: {
22089
23560
  Args: {
22090
23561
  p_from?: string;
@@ -22110,9 +23581,15 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
22110
23581
  };
22111
23582
  Returns: string;
22112
23583
  };
22113
- logistics_parse_pickup: {
23584
+ logistics_order_released: {
22114
23585
  Args: {
22115
- p_value: string;
23586
+ p_order_ref: string;
23587
+ };
23588
+ Returns: boolean;
23589
+ };
23590
+ logistics_parse_pickup: {
23591
+ Args: {
23592
+ p_value: string;
22116
23593
  };
22117
23594
  Returns: string;
22118
23595
  };
@@ -22132,10 +23609,37 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
22132
23609
  shifted_count: number;
22133
23610
  }[];
22134
23611
  };
23612
+ logistics_pick_barcode_enabled: {
23613
+ Args: never;
23614
+ Returns: boolean;
23615
+ };
22135
23616
  logistics_pick_email_purpose: {
22136
23617
  Args: never;
22137
23618
  Returns: string;
22138
23619
  };
23620
+ logistics_pick_mode: {
23621
+ Args: never;
23622
+ Returns: import("../integrations/supabase/types").Json;
23623
+ };
23624
+ logistics_pick_start_estimate: {
23625
+ Args: {
23626
+ p_order: import("../integrations/supabase/types").Json;
23627
+ s: import("../integrations/supabase/types").Json;
23628
+ };
23629
+ Returns: string;
23630
+ };
23631
+ logistics_pick_units: {
23632
+ Args: never;
23633
+ Returns: {
23634
+ is_buffer: boolean;
23635
+ order_number: string;
23636
+ order_uuid: string;
23637
+ unit_buffer: string;
23638
+ unit_order_count: number;
23639
+ unit_orders: string[];
23640
+ unit_ref: string;
23641
+ }[];
23642
+ };
22139
23643
  logistics_plan_all: {
22140
23644
  Args: {
22141
23645
  p_user_id?: string;
@@ -22222,6 +23726,14 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
22222
23726
  };
22223
23727
  Returns: number;
22224
23728
  };
23729
+ logistics_prune_buffer_member_queue: {
23730
+ Args: never;
23731
+ Returns: number;
23732
+ };
23733
+ logistics_prune_handled_pick_queue: {
23734
+ Args: never;
23735
+ Returns: number;
23736
+ };
22225
23737
  logistics_queue_capacity_email: {
22226
23738
  Args: {
22227
23739
  p_alert_id: string;
@@ -22254,6 +23766,12 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
22254
23766
  Args: never;
22255
23767
  Returns: import("../integrations/supabase/types").Json;
22256
23768
  };
23769
+ logistics_refresh_pickup_moments: {
23770
+ Args: {
23771
+ p_weeks?: number;
23772
+ };
23773
+ Returns: import("../integrations/supabase/types").Json;
23774
+ };
22257
23775
  logistics_report_delay: {
22258
23776
  Args: {
22259
23777
  p_expected_date?: string;
@@ -22360,6 +23878,12 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
22360
23878
  };
22361
23879
  Returns: string;
22362
23880
  };
23881
+ logistics_scan_resolve: {
23882
+ Args: {
23883
+ p_code: string;
23884
+ };
23885
+ Returns: import("../integrations/supabase/types").Json;
23886
+ };
22363
23887
  logistics_schedule_tasks: {
22364
23888
  Args: never;
22365
23889
  Returns: number;
@@ -22394,6 +23918,10 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
22394
23918
  };
22395
23919
  Returns: import("../integrations/supabase/types").Json;
22396
23920
  };
23921
+ logistics_sticker_follows_slip: {
23922
+ Args: never;
23923
+ Returns: boolean;
23924
+ };
22397
23925
  logistics_supersede_stale_tasks: {
22398
23926
  Args: {
22399
23927
  p_keep: string[];
@@ -22445,6 +23973,18 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
22445
23973
  };
22446
23974
  Returns: string;
22447
23975
  };
23976
+ logistics_write_buffer_layer_positions: {
23977
+ Args: {
23978
+ p_buffer_id: string;
23979
+ };
23980
+ Returns: number;
23981
+ };
23982
+ logistics_write_cart_layer_positions: {
23983
+ Args: {
23984
+ p_cart_id: string;
23985
+ };
23986
+ Returns: number;
23987
+ };
22448
23988
  mark_offer_clicked: {
22449
23989
  Args: {
22450
23990
  p_code: string;
@@ -22477,6 +24017,15 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
22477
24017
  };
22478
24018
  Returns: undefined;
22479
24019
  };
24020
+ move_cart_layer_position: {
24021
+ Args: {
24022
+ p_id: string;
24023
+ p_layer: number;
24024
+ p_x: number;
24025
+ p_y: number;
24026
+ };
24027
+ Returns: undefined;
24028
+ };
22480
24029
  my_module_permissions: {
22481
24030
  Args: never;
22482
24031
  Returns: {
@@ -22548,6 +24097,12 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
22548
24097
  };
22549
24098
  Returns: import("../integrations/supabase/types").Json;
22550
24099
  };
24100
+ order_heeft_bevestigde_karren: {
24101
+ Args: {
24102
+ p_order_id: string;
24103
+ };
24104
+ Returns: boolean;
24105
+ };
22551
24106
  order_number_prefix: {
22552
24107
  Args: {
22553
24108
  p_custom_fields?: import("../integrations/supabase/types").Json;
@@ -22583,6 +24138,27 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
22583
24138
  online: boolean;
22584
24139
  }[];
22585
24140
  };
24141
+ pick_available_pick_days: {
24142
+ Args: {
24143
+ _max_days?: number;
24144
+ };
24145
+ Returns: {
24146
+ orders: number;
24147
+ pick_day: string;
24148
+ }[];
24149
+ };
24150
+ pick_buffer_order_ids: {
24151
+ Args: {
24152
+ _order_id: string;
24153
+ };
24154
+ Returns: string[];
24155
+ };
24156
+ pick_cart_breakdown: {
24157
+ Args: {
24158
+ _order_id: string;
24159
+ };
24160
+ Returns: import("../integrations/supabase/types").Json;
24161
+ };
22586
24162
  pick_claim_document: {
22587
24163
  Args: {
22588
24164
  _queue_item_id: string;
@@ -22636,6 +24212,7 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
22636
24212
  pick_claim_next_document: {
22637
24213
  Args: {
22638
24214
  _country_code: string;
24215
+ _pick_day?: string;
22639
24216
  _screen_id: string;
22640
24217
  _session_id: string;
22641
24218
  _station_id: string;
@@ -22787,6 +24364,14 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
22787
24364
  isSetofReturn: false;
22788
24365
  };
22789
24366
  };
24367
+ pick_complete_print_carts: {
24368
+ Args: {
24369
+ _cart_ids: string[];
24370
+ _queue_item_id: string;
24371
+ _session_id: string;
24372
+ };
24373
+ Returns: import("../integrations/supabase/types").Json;
24374
+ };
22790
24375
  pick_current_pick_day: {
22791
24376
  Args: never;
22792
24377
  Returns: string;
@@ -22823,6 +24408,65 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
22823
24408
  };
22824
24409
  Returns: string;
22825
24410
  };
24411
+ pick_enqueue_print_job_from_cart: {
24412
+ Args: {
24413
+ _cart_id: string;
24414
+ _is_herprint: boolean;
24415
+ _printer_id: string;
24416
+ _queue_item_id: string;
24417
+ _selected_cart: import("../integrations/supabase/types").Json;
24418
+ _session_id: string;
24419
+ };
24420
+ Returns: string;
24421
+ };
24422
+ pick_mark_printed: {
24423
+ Args: {
24424
+ _queue_item_id: string;
24425
+ _reden?: string;
24426
+ _session_id: string;
24427
+ };
24428
+ Returns: {
24429
+ announced_at: string;
24430
+ assigned_user_id: string | null;
24431
+ barcode: string | null;
24432
+ cancelled_at: string | null;
24433
+ cart_count: number;
24434
+ completed_at: string | null;
24435
+ country_code: string | null;
24436
+ created_at: string;
24437
+ customer_name: string | null;
24438
+ delivery_address: string | null;
24439
+ document_number: string | null;
24440
+ document_type_id: string | null;
24441
+ due_at: string | null;
24442
+ id: string;
24443
+ is_urgent: boolean;
24444
+ line_count: number;
24445
+ order_number: string | null;
24446
+ order_type: string | null;
24447
+ payload: import("../integrations/supabase/types").Json;
24448
+ print_count: number;
24449
+ print_job_id: string | null;
24450
+ printed_at: string | null;
24451
+ printed_by: string | null;
24452
+ printed_cart_ids: import("../integrations/supabase/types").Json;
24453
+ printer_id: string | null;
24454
+ priority: number;
24455
+ reference: string | null;
24456
+ route: string | null;
24457
+ screen_id: string | null;
24458
+ station_id: string | null;
24459
+ status_id: string | null;
24460
+ updated_at: string;
24461
+ warnings: import("../integrations/supabase/types").Json;
24462
+ };
24463
+ SetofOptions: {
24464
+ from: "*";
24465
+ to: "pick_queue";
24466
+ isOneToOne: true;
24467
+ isSetofReturn: false;
24468
+ };
24469
+ };
22826
24470
  pick_order_context: {
22827
24471
  Args: {
22828
24472
  _order_id?: string;
@@ -22843,6 +24487,12 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
22843
24487
  };
22844
24488
  Returns: import("../integrations/supabase/types").Json;
22845
24489
  };
24490
+ pick_print_jobs_status: {
24491
+ Args: {
24492
+ _job_ids: string[];
24493
+ };
24494
+ Returns: import("../integrations/supabase/types").Json[];
24495
+ };
22846
24496
  pick_print_plekken: {
22847
24497
  Args: never;
22848
24498
  Returns: {
@@ -22851,6 +24501,12 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
22851
24501
  omschrijving: string;
22852
24502
  }[];
22853
24503
  };
24504
+ pick_queue_cart_plan: {
24505
+ Args: {
24506
+ _queue_item_id: string;
24507
+ };
24508
+ Returns: import("../integrations/supabase/types").Json;
24509
+ };
22854
24510
  pick_reference_data_status: {
22855
24511
  Args: never;
22856
24512
  Returns: import("../integrations/supabase/types").Json;
@@ -22865,6 +24521,19 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
22865
24521
  };
22866
24522
  Returns: undefined;
22867
24523
  };
24524
+ pick_report_missing_cart_plan: {
24525
+ Args: never;
24526
+ Returns: import("../integrations/supabase/types").Json;
24527
+ };
24528
+ pick_reprint_cart: {
24529
+ Args: {
24530
+ _cart_id: string;
24531
+ _queue_item_id: string;
24532
+ _session_id: string;
24533
+ _throttle_seconds?: number;
24534
+ };
24535
+ Returns: string;
24536
+ };
22868
24537
  pick_reprint_document: {
22869
24538
  Args: {
22870
24539
  _queue_item_id: string;
@@ -22967,6 +24636,151 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
22967
24636
  isSetofReturn: false;
22968
24637
  };
22969
24638
  };
24639
+ pick_reset_print_job: {
24640
+ Args: {
24641
+ _cart_id: string;
24642
+ _job_id: string;
24643
+ _queue_item_id: string;
24644
+ _session_id: string;
24645
+ };
24646
+ Returns: {
24647
+ announced_at: string;
24648
+ assigned_user_id: string | null;
24649
+ barcode: string | null;
24650
+ cancelled_at: string | null;
24651
+ cart_count: number;
24652
+ completed_at: string | null;
24653
+ country_code: string | null;
24654
+ created_at: string;
24655
+ customer_name: string | null;
24656
+ delivery_address: string | null;
24657
+ document_number: string | null;
24658
+ document_type_id: string | null;
24659
+ due_at: string | null;
24660
+ id: string;
24661
+ is_urgent: boolean;
24662
+ line_count: number;
24663
+ order_number: string | null;
24664
+ order_type: string | null;
24665
+ payload: import("../integrations/supabase/types").Json;
24666
+ print_count: number;
24667
+ print_job_id: string | null;
24668
+ printed_at: string | null;
24669
+ printed_by: string | null;
24670
+ printed_cart_ids: import("../integrations/supabase/types").Json;
24671
+ printer_id: string | null;
24672
+ priority: number;
24673
+ reference: string | null;
24674
+ route: string | null;
24675
+ screen_id: string | null;
24676
+ station_id: string | null;
24677
+ status_id: string | null;
24678
+ updated_at: string;
24679
+ warnings: import("../integrations/supabase/types").Json;
24680
+ };
24681
+ SetofOptions: {
24682
+ from: "*";
24683
+ to: "pick_queue";
24684
+ isOneToOne: true;
24685
+ isSetofReturn: false;
24686
+ };
24687
+ };
24688
+ pick_reset_print_jobs: {
24689
+ Args: {
24690
+ _cart_ids: string[];
24691
+ _job_ids: string[];
24692
+ _queue_item_id: string;
24693
+ _session_id: string;
24694
+ };
24695
+ Returns: {
24696
+ announced_at: string;
24697
+ assigned_user_id: string | null;
24698
+ barcode: string | null;
24699
+ cancelled_at: string | null;
24700
+ cart_count: number;
24701
+ completed_at: string | null;
24702
+ country_code: string | null;
24703
+ created_at: string;
24704
+ customer_name: string | null;
24705
+ delivery_address: string | null;
24706
+ document_number: string | null;
24707
+ document_type_id: string | null;
24708
+ due_at: string | null;
24709
+ id: string;
24710
+ is_urgent: boolean;
24711
+ line_count: number;
24712
+ order_number: string | null;
24713
+ order_type: string | null;
24714
+ payload: import("../integrations/supabase/types").Json;
24715
+ print_count: number;
24716
+ print_job_id: string | null;
24717
+ printed_at: string | null;
24718
+ printed_by: string | null;
24719
+ printed_cart_ids: import("../integrations/supabase/types").Json;
24720
+ printer_id: string | null;
24721
+ priority: number;
24722
+ reference: string | null;
24723
+ route: string | null;
24724
+ screen_id: string | null;
24725
+ station_id: string | null;
24726
+ status_id: string | null;
24727
+ updated_at: string;
24728
+ warnings: import("../integrations/supabase/types").Json;
24729
+ };
24730
+ SetofOptions: {
24731
+ from: "*";
24732
+ to: "pick_queue";
24733
+ isOneToOne: true;
24734
+ isSetofReturn: false;
24735
+ };
24736
+ };
24737
+ pick_restore_to_queue: {
24738
+ Args: {
24739
+ _queue_item_id: string;
24740
+ _session_id: string;
24741
+ };
24742
+ Returns: {
24743
+ announced_at: string;
24744
+ assigned_user_id: string | null;
24745
+ barcode: string | null;
24746
+ cancelled_at: string | null;
24747
+ cart_count: number;
24748
+ completed_at: string | null;
24749
+ country_code: string | null;
24750
+ created_at: string;
24751
+ customer_name: string | null;
24752
+ delivery_address: string | null;
24753
+ document_number: string | null;
24754
+ document_type_id: string | null;
24755
+ due_at: string | null;
24756
+ id: string;
24757
+ is_urgent: boolean;
24758
+ line_count: number;
24759
+ order_number: string | null;
24760
+ order_type: string | null;
24761
+ payload: import("../integrations/supabase/types").Json;
24762
+ print_count: number;
24763
+ print_job_id: string | null;
24764
+ printed_at: string | null;
24765
+ printed_by: string | null;
24766
+ printed_cart_ids: import("../integrations/supabase/types").Json;
24767
+ printer_id: string | null;
24768
+ priority: number;
24769
+ reference: string | null;
24770
+ route: string | null;
24771
+ screen_id: string | null;
24772
+ station_id: string | null;
24773
+ status_id: string | null;
24774
+ updated_at: string;
24775
+ warnings: import("../integrations/supabase/types").Json;
24776
+ };
24777
+ SetofOptions: {
24778
+ from: "*";
24779
+ to: "pick_queue";
24780
+ isOneToOne: true;
24781
+ isSetofReturn: false;
24782
+ };
24783
+ };
22970
24784
  pick_seed_reference_data: {
22971
24785
  Args: never;
22972
24786
  Returns: import("../integrations/supabase/types").Json;
@@ -23016,6 +24830,12 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
23016
24830
  };
23017
24831
  Returns: string;
23018
24832
  };
24833
+ pick_sync_pick_day: {
24834
+ Args: {
24835
+ _day: string;
24836
+ };
24837
+ Returns: import("../integrations/supabase/types").Json;
24838
+ };
23019
24839
  pick_sync_queue_throttled: {
23020
24840
  Args: {
23021
24841
  _min_seconds?: number;
@@ -23245,6 +25065,20 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
23245
25065
  };
23246
25066
  Returns: boolean;
23247
25067
  };
25068
+ release_local_pdf_job: {
25069
+ Args: {
25070
+ _job_id: string;
25071
+ _writer_id: string;
25072
+ };
25073
+ Returns: boolean;
25074
+ };
25075
+ release_print_queue_lease: {
25076
+ Args: {
25077
+ _houder: string;
25078
+ _naam: string;
25079
+ };
25080
+ Returns: boolean;
25081
+ };
23248
25082
  release_stale_order_invoice_links: {
23249
25083
  Args: {
23250
25084
  _minutes?: number;
@@ -23265,6 +25099,12 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
23265
25099
  };
23266
25100
  Returns: import("../integrations/supabase/types").Json;
23267
25101
  };
25102
+ reset_cart_layer_positions: {
25103
+ Args: {
25104
+ p_cart_id: string;
25105
+ };
25106
+ Returns: number;
25107
+ };
23268
25108
  reset_floriday_sync_cursor: {
23269
25109
  Args: {
23270
25110
  p_connection_id: string;
@@ -23328,6 +25168,15 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
23328
25168
  };
23329
25169
  Returns: import("../integrations/supabase/types").Json;
23330
25170
  };
25171
+ roles_without_enum_mapping: {
25172
+ Args: never;
25173
+ Returns: {
25174
+ assignment_count: number;
25175
+ id: string;
25176
+ key: string;
25177
+ name: string;
25178
+ }[];
25179
+ };
23331
25180
  ruim_print_jobs_op: {
23332
25181
  Args: {
23333
25182
  _bewaar_dagen?: number;
@@ -23342,6 +25191,10 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
23342
25191
  Args: never;
23343
25192
  Returns: undefined;
23344
25193
  };
25194
+ run_floriday_stock_reconcile: {
25195
+ Args: never;
25196
+ Returns: undefined;
25197
+ };
23345
25198
  run_logistics_tasks_dispatch: {
23346
25199
  Args: never;
23347
25200
  Returns: undefined;
@@ -23360,18 +25213,98 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
23360
25213
  };
23361
25214
  Returns: import("../integrations/supabase/types").Json;
23362
25215
  };
25216
+ scan_complete_cart: {
25217
+ Args: {
25218
+ p_allow_reprint?: boolean;
25219
+ p_cart_id: string;
25220
+ p_print?: boolean;
25221
+ p_scanner_id?: string;
25222
+ };
25223
+ Returns: import("../integrations/supabase/types").Json;
25224
+ };
23363
25225
  scan_dashboard_stats: {
23364
25226
  Args: {
23365
25227
  p_dagen?: number;
23366
25228
  };
23367
25229
  Returns: import("../integrations/supabase/types").Json;
23368
25230
  };
25231
+ scan_eindcontrole: {
25232
+ Args: {
25233
+ p_barcode: string;
25234
+ p_scanner_id?: string;
25235
+ };
25236
+ Returns: import("../integrations/supabase/types").Json;
25237
+ };
23369
25238
  scan_finish_kar: {
23370
25239
  Args: {
23371
25240
  p_kar_id: string;
23372
25241
  };
23373
25242
  Returns: import("../integrations/supabase/types").Json;
23374
25243
  };
25244
+ scan_kar_compleet: {
25245
+ Args: {
25246
+ p_allow_reprint?: boolean;
25247
+ p_sessie_id: string;
25248
+ };
25249
+ Returns: import("../integrations/supabase/types").Json;
25250
+ };
25251
+ scan_kar_regels: {
25252
+ Args: {
25253
+ p_cart_id: string;
25254
+ };
25255
+ Returns: import("../integrations/supabase/types").Json;
25256
+ };
25257
+ scan_log_code: {
25258
+ Args: {
25259
+ p_code: string;
25260
+ p_latency_ms?: number;
25261
+ p_message?: string;
25262
+ p_result: string;
25263
+ p_scanner_key?: string;
25264
+ };
25265
+ Returns: string;
25266
+ };
25267
+ scan_open_pakbonnen: {
25268
+ Args: {
25269
+ p_dagen?: number;
25270
+ };
25271
+ Returns: import("../integrations/supabase/types").Json;
25272
+ };
25273
+ scan_pakbon_lookup: {
25274
+ Args: {
25275
+ p_barcode: string;
25276
+ };
25277
+ Returns: import("../integrations/supabase/types").Json;
25278
+ };
25279
+ scan_pakbon_opnieuw: {
25280
+ Args: {
25281
+ p_barcode: string;
25282
+ p_scanner_id?: string;
25283
+ };
25284
+ Returns: import("../integrations/supabase/types").Json;
25285
+ };
25286
+ scan_pakbon_toevoegen: {
25287
+ Args: {
25288
+ p_barcode: string;
25289
+ p_medewerker?: string;
25290
+ p_regels?: import("../integrations/supabase/types").Json;
25291
+ p_scanner_id: string;
25292
+ };
25293
+ Returns: import("../integrations/supabase/types").Json;
25294
+ };
25295
+ scan_print_restpakbon: {
25296
+ Args: {
25297
+ p_printer_id?: string;
25298
+ p_restpakbon_id: string;
25299
+ };
25300
+ Returns: import("../integrations/supabase/types").Json;
25301
+ };
25302
+ scan_print_verzendbrief: {
25303
+ Args: {
25304
+ p_sessie_id: string;
25305
+ };
25306
+ Returns: import("../integrations/supabase/types").Json;
25307
+ };
23375
25308
  scan_register_item: {
23376
25309
  Args: {
23377
25310
  p_kar_id: string;
@@ -23390,6 +25323,25 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
23390
25323
  };
23391
25324
  Returns: import("../integrations/supabase/types").Json;
23392
25325
  };
25326
+ scan_restpakbon_geprint: {
25327
+ Args: {
25328
+ p_id: string;
25329
+ p_print_job_id?: string;
25330
+ };
25331
+ Returns: undefined;
25332
+ };
25333
+ scan_sessie_annuleren: {
25334
+ Args: {
25335
+ p_sessie_id: string;
25336
+ };
25337
+ Returns: undefined;
25338
+ };
25339
+ scan_sessie_open: {
25340
+ Args: {
25341
+ p_scanner_id: string;
25342
+ };
25343
+ Returns: import("../integrations/supabase/types").Json;
25344
+ };
23393
25345
  scan_start_kar: {
23394
25346
  Args: {
23395
25347
  p_medewerker_id?: string;
@@ -23408,6 +25360,12 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
23408
25360
  };
23409
25361
  Returns: import("../integrations/supabase/types").Json;
23410
25362
  };
25363
+ scan_verzendbrief_regels: {
25364
+ Args: {
25365
+ p_sessie_id: string;
25366
+ };
25367
+ Returns: import("../integrations/supabase/types").Json;
25368
+ };
23411
25369
  schedule_floriday_additional_services_sync: {
23412
25370
  Args: {
23413
25371
  p_apikey: string;
@@ -23723,6 +25681,13 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
23723
25681
  };
23724
25682
  Returns: import("../integrations/supabase/types").Json;
23725
25683
  };
25684
+ swap_cart_layer_positions: {
25685
+ Args: {
25686
+ p_a: string;
25687
+ p_b: string;
25688
+ };
25689
+ Returns: undefined;
25690
+ };
23726
25691
  switch_time_log: {
23727
25692
  Args: {
23728
25693
  p_employee_id: string;
@@ -23755,6 +25720,12 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
23755
25720
  };
23756
25721
  Returns: undefined;
23757
25722
  };
25723
+ sync_order_item_fusten: {
25724
+ Args: {
25725
+ _order_item_id: string;
25726
+ };
25727
+ Returns: undefined;
25728
+ };
23758
25729
  sync_product_group_belading: {
23759
25730
  Args: {
23760
25731
  _group_id: string;
@@ -23861,6 +25832,12 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
23861
25832
  Args: never;
23862
25833
  Returns: string;
23863
25834
  };
25835
+ wake_print_queue: {
25836
+ Args: {
25837
+ _min_interval_ms?: number;
25838
+ };
25839
+ Returns: number;
25840
+ };
23864
25841
  werkbon_totalen: {
23865
25842
  Args: {
23866
25843
  _werkbon_id: string;
@@ -23893,10 +25870,18 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
23893
25870
  };
23894
25871
  Returns: import("../integrations/supabase/types").Json;
23895
25872
  };
25873
+ wo_set_status: {
25874
+ Args: {
25875
+ _reason?: string;
25876
+ _status: string;
25877
+ _work_order_id: string;
25878
+ };
25879
+ Returns: import("../integrations/supabase/types").Json;
25880
+ };
23896
25881
  };
23897
25882
  Enums: {
23898
25883
  ai_import_status: "nieuw" | "verwerken" | "bevestigen" | "klaar" | "mislukt";
23899
- app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie";
25884
+ app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie" | "superadmin";
23900
25885
  doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon" | "veilingbon" | "afleverbrief" | "veilingbrief";
23901
25886
  doc_orientation: "portrait" | "landscape";
23902
25887
  exact_env: "staging" | "live";