@flowselections/logistiek-engine 1.0.27 → 1.0.29

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (101) hide show
  1. package/README.md +24 -24
  2. package/dist-lib/components/AfmetingenBronnenCard.d.ts +2 -0
  3. package/dist-lib/components/AfmetingenBronnenCard.d.ts.map +1 -0
  4. package/dist-lib/components/AfmetingenBronnenCard.js +46 -0
  5. package/dist-lib/components/BufferDebugCard.d.ts.map +1 -1
  6. package/dist-lib/components/BufferDebugCard.js +6 -1
  7. package/dist-lib/components/ConsistentieCard.d.ts.map +1 -1
  8. package/dist-lib/components/ConsistentieCard.js +1 -1
  9. package/dist-lib/components/GeblokkeerdeOrdersCard.d.ts +2 -0
  10. package/dist-lib/components/GeblokkeerdeOrdersCard.d.ts.map +1 -0
  11. package/dist-lib/components/GeblokkeerdeOrdersCard.js +44 -0
  12. package/dist-lib/components/KarplanStatusCard.d.ts +2 -0
  13. package/dist-lib/components/KarplanStatusCard.d.ts.map +1 -0
  14. package/dist-lib/components/KarplanStatusCard.js +31 -0
  15. package/dist-lib/components/RegiePage.d.ts.map +1 -1
  16. package/dist-lib/components/RegiePage.js +4 -1
  17. package/dist-lib/components/RuleEnginePage.d.ts.map +1 -1
  18. package/dist-lib/components/RuleEnginePage.js +7 -4
  19. package/dist-lib/components/rule-engine/FloridayConnectionBanner.d.ts +2 -0
  20. package/dist-lib/components/rule-engine/FloridayConnectionBanner.d.ts.map +1 -0
  21. package/dist-lib/components/rule-engine/FloridayConnectionBanner.js +41 -0
  22. package/dist-lib/components/rule-engine/RuleFieldInput.d.ts.map +1 -1
  23. package/dist-lib/components/rule-engine/RuleFieldInput.js +9 -0
  24. package/dist-lib/hooks/useGeblokkeerdeOrders.d.ts +28 -0
  25. package/dist-lib/hooks/useGeblokkeerdeOrders.d.ts.map +1 -0
  26. package/dist-lib/hooks/useGeblokkeerdeOrders.js +94 -0
  27. package/dist-lib/hooks/useRecalcJob.d.ts.map +1 -1
  28. package/dist-lib/hooks/useRecalcJob.js +26 -1
  29. package/dist-lib/hooks/useScannersPrinters.d.ts +11 -0
  30. package/dist-lib/hooks/useScannersPrinters.d.ts.map +1 -0
  31. package/dist-lib/hooks/useScannersPrinters.js +65 -0
  32. package/dist-lib/index.d.ts +3 -0
  33. package/dist-lib/index.d.ts.map +1 -1
  34. package/dist-lib/index.js +3 -0
  35. package/dist-lib/integrations/supabase/auth-middleware.d.ts +2105 -68
  36. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  37. package/dist-lib/integrations/supabase/client.d.ts +20293 -0
  38. package/dist-lib/integrations/supabase/client.d.ts.map +1 -0
  39. package/dist-lib/integrations/supabase/client.js +13 -0
  40. package/dist-lib/integrations/supabase/client.server.d.ts +2105 -68
  41. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  42. package/dist-lib/integrations/supabase/client.server.js +1 -1
  43. package/dist-lib/integrations/supabase/moduleClient.d.ts +2105 -68
  44. package/dist-lib/integrations/supabase/moduleClient.d.ts.map +1 -1
  45. package/dist-lib/integrations/supabase/types.d.ts +2135 -54
  46. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  47. package/dist-lib/integrations/supabase/types.js +1 -0
  48. package/dist-lib/lib/attachAuthToken.d.ts +2 -0
  49. package/dist-lib/lib/attachAuthToken.d.ts.map +1 -0
  50. package/dist-lib/lib/attachAuthToken.js +50 -0
  51. package/dist-lib/lib/bufferMatching.d.ts.map +1 -1
  52. package/dist-lib/lib/bufferMatching.js +1 -0
  53. package/dist-lib/lib/cartPlanRequests.server.d.ts +13 -0
  54. package/dist-lib/lib/cartPlanRequests.server.d.ts.map +1 -0
  55. package/dist-lib/lib/cartPlanRequests.server.js +168 -0
  56. package/dist-lib/lib/controlScan.server.d.ts +12 -0
  57. package/dist-lib/lib/controlScan.server.d.ts.map +1 -0
  58. package/dist-lib/lib/controlScan.server.js +197 -0
  59. package/dist-lib/lib/dimensionData.server.d.ts +11 -1
  60. package/dist-lib/lib/dimensionData.server.d.ts.map +1 -1
  61. package/dist-lib/lib/dimensionData.server.js +58 -48
  62. package/dist-lib/lib/dimensionPlanner.d.ts +26 -1
  63. package/dist-lib/lib/dimensionPlanner.d.ts.map +1 -1
  64. package/dist-lib/lib/dimensionPlanner.js +37 -6
  65. package/dist-lib/lib/floridayDocuments.functions.d.ts +6314 -203
  66. package/dist-lib/lib/floridayDocuments.functions.d.ts.map +1 -1
  67. package/dist-lib/lib/floridayDocuments.functions.js +4 -3
  68. package/dist-lib/lib/floridayPush.functions.d.ts +2106 -69
  69. package/dist-lib/lib/floridayPush.functions.d.ts.map +1 -1
  70. package/dist-lib/lib/floridayPush.functions.js +2 -1
  71. package/dist-lib/lib/handlers/logistics-tick.server.d.ts.map +1 -1
  72. package/dist-lib/lib/handlers/logistics-tick.server.js +64 -0
  73. package/dist-lib/lib/loadCarrierPlanning.functions.d.ts +10480 -295
  74. package/dist-lib/lib/loadCarrierPlanning.functions.d.ts.map +1 -1
  75. package/dist-lib/lib/loadCarrierPlanning.functions.js +6 -5
  76. package/dist-lib/lib/loadCarrierPlanning.server.d.ts +42 -0
  77. package/dist-lib/lib/loadCarrierPlanning.server.d.ts.map +1 -1
  78. package/dist-lib/lib/loadCarrierPlanning.server.js +583 -31
  79. package/dist-lib/lib/logisticsPlanner.d.ts.map +1 -1
  80. package/dist-lib/lib/logisticsPlanner.js +24 -9
  81. package/dist-lib/lib/logisticsRecalcJob.functions.d.ts +4231 -157
  82. package/dist-lib/lib/logisticsRecalcJob.functions.d.ts.map +1 -1
  83. package/dist-lib/lib/logisticsRecalcJob.functions.js +3 -2
  84. package/dist-lib/lib/logisticsRecalcJob.server.d.ts.map +1 -1
  85. package/dist-lib/lib/logisticsRecalcJob.server.js +1 -0
  86. package/dist-lib/lib/logisticsRecalculate.functions.d.ts +2106 -69
  87. package/dist-lib/lib/logisticsRecalculate.functions.d.ts.map +1 -1
  88. package/dist-lib/lib/logisticsRecalculate.functions.js +3 -1
  89. package/dist-lib/lib/modulePrompts.d.ts.map +1 -1
  90. package/dist-lib/lib/modulePrompts.js +2560 -1586
  91. package/dist-lib/lib/planQueue.server.d.ts.map +1 -1
  92. package/dist-lib/lib/planQueue.server.js +6 -0
  93. package/dist-lib/lib/readableServerErrors.d.ts +2 -0
  94. package/dist-lib/lib/readableServerErrors.d.ts.map +1 -0
  95. package/dist-lib/lib/readableServerErrors.js +36 -0
  96. package/dist-lib/lib/ruleEngineSchema.d.ts +1 -1
  97. package/dist-lib/lib/ruleEngineSchema.d.ts.map +1 -1
  98. package/dist-lib/lib/ruleEngineSchema.js +72 -51
  99. package/dist-lib/lib/ruleEngineWizard.d.ts.map +1 -1
  100. package/dist-lib/lib/ruleEngineWizard.js +5 -6
  101. package/package.json +1 -1
@@ -690,6 +690,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
690
690
  raw: import("./types").Json;
691
691
  updated_at: string;
692
692
  valuta: string;
693
+ velden: import("./types").Json;
693
694
  };
694
695
  Insert: {
695
696
  artikelcode: string;
@@ -707,6 +708,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
707
708
  raw?: import("./types").Json;
708
709
  updated_at?: string;
709
710
  valuta?: string;
711
+ velden?: import("./types").Json;
710
712
  };
711
713
  Update: {
712
714
  artikelcode?: string;
@@ -724,6 +726,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
724
726
  raw?: import("./types").Json;
725
727
  updated_at?: string;
726
728
  valuta?: string;
729
+ velden?: import("./types").Json;
727
730
  };
728
731
  Relationships: [];
729
732
  };
@@ -1418,8 +1421,9 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
1418
1421
  Row: {
1419
1422
  assigned_at: string;
1420
1423
  cart_index: number;
1421
- cart_number: string;
1422
- day_seq: number;
1424
+ cart_number: string | null;
1425
+ day_seq: number | null;
1426
+ delivered_at: string | null;
1423
1427
  id: string;
1424
1428
  order_id: string;
1425
1429
  order_source: string;
@@ -1429,8 +1433,9 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
1429
1433
  Insert: {
1430
1434
  assigned_at?: string;
1431
1435
  cart_index: number;
1432
- cart_number: string;
1433
- day_seq: number;
1436
+ cart_number?: string | null;
1437
+ day_seq?: number | null;
1438
+ delivered_at?: string | null;
1434
1439
  id?: string;
1435
1440
  order_id: string;
1436
1441
  order_source: string;
@@ -1440,8 +1445,9 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
1440
1445
  Update: {
1441
1446
  assigned_at?: string;
1442
1447
  cart_index?: number;
1443
- cart_number?: string;
1444
- day_seq?: number;
1448
+ cart_number?: string | null;
1449
+ day_seq?: number | null;
1450
+ delivered_at?: string | null;
1445
1451
  id?: string;
1446
1452
  order_id?: string;
1447
1453
  order_source?: string;
@@ -1542,6 +1548,12 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
1542
1548
  updated_at?: string;
1543
1549
  };
1544
1550
  Relationships: [{
1551
+ foreignKeyName: "cart_planning_product_overrides_product_id_fkey";
1552
+ columns: ["product_id"];
1553
+ isOneToOne: true;
1554
+ referencedRelation: "logistics_product_dimensions";
1555
+ referencedColumns: ["product_id"];
1556
+ }, {
1545
1557
  foreignKeyName: "cart_planning_product_overrides_product_id_fkey";
1546
1558
  columns: ["product_id"];
1547
1559
  isOneToOne: true;
@@ -7069,6 +7081,51 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
7069
7081
  };
7070
7082
  Relationships: [];
7071
7083
  };
7084
+ floriday_status_sync_queue: {
7085
+ Row: {
7086
+ attempts: number;
7087
+ created_at: string;
7088
+ error: string | null;
7089
+ floriday_sales_order_id: string;
7090
+ order_id: string;
7091
+ processed_at: string | null;
7092
+ requested_at: string;
7093
+ state: string;
7094
+ target_status: string;
7095
+ updated_at: string;
7096
+ };
7097
+ Insert: {
7098
+ attempts?: number;
7099
+ created_at?: string;
7100
+ error?: string | null;
7101
+ floriday_sales_order_id: string;
7102
+ order_id: string;
7103
+ processed_at?: string | null;
7104
+ requested_at?: string;
7105
+ state?: string;
7106
+ target_status: string;
7107
+ updated_at?: string;
7108
+ };
7109
+ Update: {
7110
+ attempts?: number;
7111
+ created_at?: string;
7112
+ error?: string | null;
7113
+ floriday_sales_order_id?: string;
7114
+ order_id?: string;
7115
+ processed_at?: string | null;
7116
+ requested_at?: string;
7117
+ state?: string;
7118
+ target_status?: string;
7119
+ updated_at?: string;
7120
+ };
7121
+ Relationships: [{
7122
+ foreignKeyName: "floriday_status_sync_queue_order_id_fkey";
7123
+ columns: ["order_id"];
7124
+ isOneToOne: true;
7125
+ referencedRelation: "orders";
7126
+ referencedColumns: ["id"];
7127
+ }];
7128
+ };
7072
7129
  floriday_sync_cursors: {
7073
7130
  Row: {
7074
7131
  connection_id: string;
@@ -8303,10 +8360,12 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
8303
8360
  general_email: string | null;
8304
8361
  general_phone: string | null;
8305
8362
  id: string;
8363
+ kvk_number: string | null;
8306
8364
  legacy_customer_id: string | null;
8307
8365
  name: string;
8308
8366
  segment: Database["public"]["Enums"]["itk_customer_segment"];
8309
8367
  updated_at: string;
8368
+ vat_number: string | null;
8310
8369
  };
8311
8370
  Insert: {
8312
8371
  billing_city?: string | null;
@@ -8317,10 +8376,12 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
8317
8376
  general_email?: string | null;
8318
8377
  general_phone?: string | null;
8319
8378
  id?: string;
8379
+ kvk_number?: string | null;
8320
8380
  legacy_customer_id?: string | null;
8321
8381
  name: string;
8322
8382
  segment?: Database["public"]["Enums"]["itk_customer_segment"];
8323
8383
  updated_at?: string;
8384
+ vat_number?: string | null;
8324
8385
  };
8325
8386
  Update: {
8326
8387
  billing_city?: string | null;
@@ -8331,10 +8392,12 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
8331
8392
  general_email?: string | null;
8332
8393
  general_phone?: string | null;
8333
8394
  id?: string;
8395
+ kvk_number?: string | null;
8334
8396
  legacy_customer_id?: string | null;
8335
8397
  name?: string;
8336
8398
  segment?: Database["public"]["Enums"]["itk_customer_segment"];
8337
8399
  updated_at?: string;
8400
+ vat_number?: string | null;
8338
8401
  };
8339
8402
  Relationships: [];
8340
8403
  };
@@ -8368,6 +8431,117 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
8368
8431
  };
8369
8432
  Relationships: [];
8370
8433
  };
8434
+ itk_handover_github_scan: {
8435
+ Row: {
8436
+ gescand_op: string;
8437
+ gevonden: boolean;
8438
+ melding: string | null;
8439
+ module_id: string | null;
8440
+ repo: string;
8441
+ };
8442
+ Insert: {
8443
+ gescand_op?: string;
8444
+ gevonden?: boolean;
8445
+ melding?: string | null;
8446
+ module_id?: string | null;
8447
+ repo: string;
8448
+ };
8449
+ Update: {
8450
+ gescand_op?: string;
8451
+ gevonden?: boolean;
8452
+ melding?: string | null;
8453
+ module_id?: string | null;
8454
+ repo?: string;
8455
+ };
8456
+ Relationships: [];
8457
+ };
8458
+ itk_handover_module_meta: {
8459
+ Row: {
8460
+ check_aangevraagd_op: string | null;
8461
+ check_nodig: boolean;
8462
+ check_reden: string | null;
8463
+ created_at: string;
8464
+ module_id: string;
8465
+ project_url: string | null;
8466
+ publicatie_url: string | null;
8467
+ updated_at: string;
8468
+ };
8469
+ Insert: {
8470
+ check_aangevraagd_op?: string | null;
8471
+ check_nodig?: boolean;
8472
+ check_reden?: string | null;
8473
+ created_at?: string;
8474
+ module_id: string;
8475
+ project_url?: string | null;
8476
+ publicatie_url?: string | null;
8477
+ updated_at?: string;
8478
+ };
8479
+ Update: {
8480
+ check_aangevraagd_op?: string | null;
8481
+ check_nodig?: boolean;
8482
+ check_reden?: string | null;
8483
+ created_at?: string;
8484
+ module_id?: string;
8485
+ project_url?: string | null;
8486
+ publicatie_url?: string | null;
8487
+ updated_at?: string;
8488
+ };
8489
+ Relationships: [];
8490
+ };
8491
+ itk_handover_project_modules: {
8492
+ Row: {
8493
+ created_at: string;
8494
+ id: string;
8495
+ module_id: string;
8496
+ project_id: string;
8497
+ updated_at: string;
8498
+ };
8499
+ Insert: {
8500
+ created_at?: string;
8501
+ id?: string;
8502
+ module_id: string;
8503
+ project_id: string;
8504
+ updated_at?: string;
8505
+ };
8506
+ Update: {
8507
+ created_at?: string;
8508
+ id?: string;
8509
+ module_id?: string;
8510
+ project_id?: string;
8511
+ updated_at?: string;
8512
+ };
8513
+ Relationships: [{
8514
+ foreignKeyName: "itk_handover_project_modules_project_id_fkey";
8515
+ columns: ["project_id"];
8516
+ isOneToOne: false;
8517
+ referencedRelation: "itk_handover_projecten";
8518
+ referencedColumns: ["id"];
8519
+ }];
8520
+ };
8521
+ itk_handover_projecten: {
8522
+ Row: {
8523
+ created_at: string;
8524
+ id: string;
8525
+ naam: string;
8526
+ omschrijving: string | null;
8527
+ updated_at: string;
8528
+ };
8529
+ Insert: {
8530
+ created_at?: string;
8531
+ id?: string;
8532
+ naam: string;
8533
+ omschrijving?: string | null;
8534
+ updated_at?: string;
8535
+ };
8536
+ Update: {
8537
+ created_at?: string;
8538
+ id?: string;
8539
+ naam?: string;
8540
+ omschrijving?: string | null;
8541
+ updated_at?: string;
8542
+ };
8543
+ Relationships: [];
8544
+ };
8371
8545
  itk_handover_rechten: {
8372
8546
  Row: {
8373
8547
  created_at: string;
@@ -8395,42 +8569,33 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
8395
8569
  };
8396
8570
  Relationships: [];
8397
8571
  };
8398
- itk_handover_tokens: {
8572
+ itk_module_fingerprints: {
8399
8573
  Row: {
8400
- aangemaakt_door: string | null;
8401
8574
  created_at: string;
8575
+ gemaakt_op: string;
8576
+ hash: string;
8402
8577
  id: string;
8403
- is_actief: boolean;
8404
- laatst_gebruikt_op: string | null;
8405
- label: string;
8406
8578
  module_id: string;
8407
- token_hash: string;
8579
+ payload: import("./types").Json;
8408
8580
  updated_at: string;
8409
- verloopt_op: string | null;
8410
8581
  };
8411
8582
  Insert: {
8412
- aangemaakt_door?: string | null;
8413
8583
  created_at?: string;
8584
+ gemaakt_op?: string;
8585
+ hash: string;
8414
8586
  id?: string;
8415
- is_actief?: boolean;
8416
- laatst_gebruikt_op?: string | null;
8417
- label?: string;
8418
8587
  module_id: string;
8419
- token_hash: string;
8588
+ payload?: import("./types").Json;
8420
8589
  updated_at?: string;
8421
- verloopt_op?: string | null;
8422
8590
  };
8423
8591
  Update: {
8424
- aangemaakt_door?: string | null;
8425
8592
  created_at?: string;
8593
+ gemaakt_op?: string;
8594
+ hash?: string;
8426
8595
  id?: string;
8427
- is_actief?: boolean;
8428
- laatst_gebruikt_op?: string | null;
8429
- label?: string;
8430
8596
  module_id?: string;
8431
- token_hash?: string;
8597
+ payload?: import("./types").Json;
8432
8598
  updated_at?: string;
8433
- verloopt_op?: string | null;
8434
8599
  };
8435
8600
  Relationships: [];
8436
8601
  };
@@ -8438,6 +8603,11 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
8438
8603
  Row: {
8439
8604
  bevindingen: string | null;
8440
8605
  bezit_tabellen: string[];
8606
+ bron_commit: string | null;
8607
+ bron_pad: string | null;
8608
+ bron_repo: string | null;
8609
+ bron_soort: string | null;
8610
+ bron_versie: string | null;
8441
8611
  conflicten_snapshot: import("./types").Json;
8442
8612
  contractfuncties: string[];
8443
8613
  created_at: string;
@@ -8448,6 +8618,8 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
8448
8618
  id: string;
8449
8619
  inhoud_md: string;
8450
8620
  is_actueel: boolean;
8621
+ is_gearchiveerd: boolean;
8622
+ laatst_gecontroleerd_op: string | null;
8451
8623
  module_id: string;
8452
8624
  module_titel: string;
8453
8625
  ontbrekende_contracten: string[];
@@ -8458,6 +8630,11 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
8458
8630
  Insert: {
8459
8631
  bevindingen?: string | null;
8460
8632
  bezit_tabellen?: string[];
8633
+ bron_commit?: string | null;
8634
+ bron_pad?: string | null;
8635
+ bron_repo?: string | null;
8636
+ bron_soort?: string | null;
8637
+ bron_versie?: string | null;
8461
8638
  conflicten_snapshot?: import("./types").Json;
8462
8639
  contractfuncties?: string[];
8463
8640
  created_at?: string;
@@ -8468,6 +8645,8 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
8468
8645
  id?: string;
8469
8646
  inhoud_md: string;
8470
8647
  is_actueel?: boolean;
8648
+ is_gearchiveerd?: boolean;
8649
+ laatst_gecontroleerd_op?: string | null;
8471
8650
  module_id: string;
8472
8651
  module_titel: string;
8473
8652
  ontbrekende_contracten?: string[];
@@ -8478,6 +8657,11 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
8478
8657
  Update: {
8479
8658
  bevindingen?: string | null;
8480
8659
  bezit_tabellen?: string[];
8660
+ bron_commit?: string | null;
8661
+ bron_pad?: string | null;
8662
+ bron_repo?: string | null;
8663
+ bron_soort?: string | null;
8664
+ bron_versie?: string | null;
8481
8665
  conflicten_snapshot?: import("./types").Json;
8482
8666
  contractfuncties?: string[];
8483
8667
  created_at?: string;
@@ -8488,6 +8672,8 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
8488
8672
  id?: string;
8489
8673
  inhoud_md?: string;
8490
8674
  is_actueel?: boolean;
8675
+ is_gearchiveerd?: boolean;
8676
+ laatst_gecontroleerd_op?: string | null;
8491
8677
  module_id?: string;
8492
8678
  module_titel?: string;
8493
8679
  ontbrekende_contracten?: string[];
@@ -8542,6 +8728,39 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
8542
8728
  };
8543
8729
  Relationships: [];
8544
8730
  };
8731
+ itk_module_wijzigingen: {
8732
+ Row: {
8733
+ created_at: string;
8734
+ geconstateerd_op: string;
8735
+ id: string;
8736
+ module_id: string;
8737
+ omschrijving: string;
8738
+ soort: string;
8739
+ updated_at: string;
8740
+ was_na_publicatie: boolean;
8741
+ };
8742
+ Insert: {
8743
+ created_at?: string;
8744
+ geconstateerd_op?: string;
8745
+ id?: string;
8746
+ module_id: string;
8747
+ omschrijving: string;
8748
+ soort: string;
8749
+ updated_at?: string;
8750
+ was_na_publicatie?: boolean;
8751
+ };
8752
+ Update: {
8753
+ created_at?: string;
8754
+ geconstateerd_op?: string;
8755
+ id?: string;
8756
+ module_id?: string;
8757
+ omschrijving?: string;
8758
+ soort?: string;
8759
+ updated_at?: string;
8760
+ was_na_publicatie?: boolean;
8761
+ };
8762
+ Relationships: [];
8763
+ };
8545
8764
  itk_offerte_events: {
8546
8765
  Row: {
8547
8766
  created_at: string;
@@ -8780,12 +8999,24 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
8780
8999
  isOneToOne: false;
8781
9000
  referencedRelation: "werkbonnen";
8782
9001
  referencedColumns: ["id"];
9002
+ }, {
9003
+ foreignKeyName: "itk_offertes_follow_up_werkbon_id_fkey";
9004
+ columns: ["follow_up_werkbon_id"];
9005
+ isOneToOne: false;
9006
+ referencedRelation: "wo_overview";
9007
+ referencedColumns: ["id"];
8783
9008
  }, {
8784
9009
  foreignKeyName: "itk_offertes_werkbon_id_fkey";
8785
9010
  columns: ["werkbon_id"];
8786
9011
  isOneToOne: false;
8787
9012
  referencedRelation: "werkbonnen";
8788
9013
  referencedColumns: ["id"];
9014
+ }, {
9015
+ foreignKeyName: "itk_offertes_werkbon_id_fkey";
9016
+ columns: ["werkbon_id"];
9017
+ isOneToOne: false;
9018
+ referencedRelation: "wo_overview";
9019
+ referencedColumns: ["id"];
8789
9020
  }, {
8790
9021
  foreignKeyName: "itk_offertes_work_location_id_fkey";
8791
9022
  columns: ["work_location_id"];
@@ -9086,6 +9317,12 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
9086
9317
  isOneToOne: false;
9087
9318
  referencedRelation: "product_categories";
9088
9319
  referencedColumns: ["id"];
9320
+ }, {
9321
+ foreignKeyName: "local_customer_agreements_product_id_fkey";
9322
+ columns: ["product_id"];
9323
+ isOneToOne: false;
9324
+ referencedRelation: "logistics_product_dimensions";
9325
+ referencedColumns: ["product_id"];
9089
9326
  }, {
9090
9327
  foreignKeyName: "local_customer_agreements_product_id_fkey";
9091
9328
  columns: ["product_id"];
@@ -9152,6 +9389,12 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
9152
9389
  isOneToOne: false;
9153
9390
  referencedRelation: "product_categories";
9154
9391
  referencedColumns: ["id"];
9392
+ }, {
9393
+ foreignKeyName: "local_customer_price_groups_product_id_fkey";
9394
+ columns: ["product_id"];
9395
+ isOneToOne: false;
9396
+ referencedRelation: "logistics_product_dimensions";
9397
+ referencedColumns: ["product_id"];
9155
9398
  }, {
9156
9399
  foreignKeyName: "local_customer_price_groups_product_id_fkey";
9157
9400
  columns: ["product_id"];
@@ -9218,6 +9461,12 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
9218
9461
  isOneToOne: false;
9219
9462
  referencedRelation: "product_categories";
9220
9463
  referencedColumns: ["id"];
9464
+ }, {
9465
+ foreignKeyName: "local_customer_sales_strategies_product_id_fkey";
9466
+ columns: ["product_id"];
9467
+ isOneToOne: false;
9468
+ referencedRelation: "logistics_product_dimensions";
9469
+ referencedColumns: ["product_id"];
9221
9470
  }, {
9222
9471
  foreignKeyName: "local_customer_sales_strategies_product_id_fkey";
9223
9472
  columns: ["product_id"];
@@ -9421,6 +9670,75 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
9421
9670
  };
9422
9671
  Relationships: [];
9423
9672
  };
9673
+ logistics_control_scan: {
9674
+ Row: {
9675
+ approved_at: string | null;
9676
+ attempts: number;
9677
+ barcode: string;
9678
+ cart_id: string;
9679
+ created_at: string;
9680
+ document_url: string | null;
9681
+ error: string | null;
9682
+ error_code: string | null;
9683
+ fulfillment_order_id: string | null;
9684
+ id: string;
9685
+ is_floriday: boolean;
9686
+ locked_until: string | null;
9687
+ order_id: string | null;
9688
+ order_number: string | null;
9689
+ print_job_id: string | null;
9690
+ printed_at: string | null;
9691
+ printer_id: string | null;
9692
+ scanner_id: string | null;
9693
+ status: string;
9694
+ updated_at: string;
9695
+ };
9696
+ Insert: {
9697
+ approved_at?: string | null;
9698
+ attempts?: number;
9699
+ barcode: string;
9700
+ cart_id: string;
9701
+ created_at?: string;
9702
+ document_url?: string | null;
9703
+ error?: string | null;
9704
+ error_code?: string | null;
9705
+ fulfillment_order_id?: string | null;
9706
+ id?: string;
9707
+ is_floriday?: boolean;
9708
+ locked_until?: string | null;
9709
+ order_id?: string | null;
9710
+ order_number?: string | null;
9711
+ print_job_id?: string | null;
9712
+ printed_at?: string | null;
9713
+ printer_id?: string | null;
9714
+ scanner_id?: string | null;
9715
+ status?: string;
9716
+ updated_at?: string;
9717
+ };
9718
+ Update: {
9719
+ approved_at?: string | null;
9720
+ attempts?: number;
9721
+ barcode?: string;
9722
+ cart_id?: string;
9723
+ created_at?: string;
9724
+ document_url?: string | null;
9725
+ error?: string | null;
9726
+ error_code?: string | null;
9727
+ fulfillment_order_id?: string | null;
9728
+ id?: string;
9729
+ is_floriday?: boolean;
9730
+ locked_until?: string | null;
9731
+ order_id?: string | null;
9732
+ order_number?: string | null;
9733
+ print_job_id?: string | null;
9734
+ printed_at?: string | null;
9735
+ printer_id?: string | null;
9736
+ scanner_id?: string | null;
9737
+ status?: string;
9738
+ updated_at?: string;
9739
+ };
9740
+ Relationships: [];
9741
+ };
9424
9742
  logistics_decisions: {
9425
9743
  Row: {
9426
9744
  created_at: string;
@@ -9706,6 +10024,24 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
9706
10024
  };
9707
10025
  Relationships: [];
9708
10026
  };
10027
+ logistics_floriday_carrier_map: {
10028
+ Row: {
10029
+ carrier_code: string;
10030
+ created_at: string;
10031
+ floriday_code: string;
10032
+ };
10033
+ Insert: {
10034
+ carrier_code: string;
10035
+ created_at?: string;
10036
+ floriday_code: string;
10037
+ };
10038
+ Update: {
10039
+ carrier_code?: string;
10040
+ created_at?: string;
10041
+ floriday_code?: string;
10042
+ };
10043
+ Relationships: [];
10044
+ };
9709
10045
  logistics_floriday_pushes: {
9710
10046
  Row: {
9711
10047
  attempts: number;
@@ -9823,20 +10159,50 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
9823
10159
  referencedColumns: ["id"];
9824
10160
  }];
9825
10161
  };
9826
- logistics_pickup_moments: {
10162
+ logistics_layer_override_log: {
9827
10163
  Row: {
9828
- carrier_ref: string | null;
10164
+ cart_id: string;
9829
10165
  created_at: string;
10166
+ details: import("./types").Json;
9830
10167
  id: string;
9831
- label: string | null;
9832
- moment_date: string;
9833
- pickup_time: string;
9834
- sequence: number;
9835
- updated_at: string;
9836
- user_id: string;
10168
+ keg_id: string | null;
10169
+ product_id: string | null;
10170
+ reason: string;
9837
10171
  };
9838
10172
  Insert: {
9839
- carrier_ref?: string | null;
10173
+ cart_id: string;
10174
+ created_at?: string;
10175
+ details?: import("./types").Json;
10176
+ id?: string;
10177
+ keg_id?: string | null;
10178
+ product_id?: string | null;
10179
+ reason: string;
10180
+ };
10181
+ Update: {
10182
+ cart_id?: string;
10183
+ created_at?: string;
10184
+ details?: import("./types").Json;
10185
+ id?: string;
10186
+ keg_id?: string | null;
10187
+ product_id?: string | null;
10188
+ reason?: string;
10189
+ };
10190
+ Relationships: [];
10191
+ };
10192
+ logistics_pickup_moments: {
10193
+ Row: {
10194
+ carrier_ref: string | null;
10195
+ created_at: string;
10196
+ id: string;
10197
+ label: string | null;
10198
+ moment_date: string;
10199
+ pickup_time: string;
10200
+ sequence: number;
10201
+ updated_at: string;
10202
+ user_id: string;
10203
+ };
10204
+ Insert: {
10205
+ carrier_ref?: string | null;
9840
10206
  created_at?: string;
9841
10207
  id?: string;
9842
10208
  label?: string | null;
@@ -9869,6 +10235,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
9869
10235
  next_attempt_at: string;
9870
10236
  order_id: string;
9871
10237
  reason: string;
10238
+ reason_code: string | null;
9872
10239
  status: string;
9873
10240
  updated_at: string;
9874
10241
  };
@@ -9881,6 +10248,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
9881
10248
  next_attempt_at?: string;
9882
10249
  order_id: string;
9883
10250
  reason?: string;
10251
+ reason_code?: string | null;
9884
10252
  status?: string;
9885
10253
  updated_at?: string;
9886
10254
  };
@@ -9893,6 +10261,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
9893
10261
  next_attempt_at?: string;
9894
10262
  order_id?: string;
9895
10263
  reason?: string;
10264
+ reason_code?: string | null;
9896
10265
  status?: string;
9897
10266
  updated_at?: string;
9898
10267
  };
@@ -10597,6 +10966,21 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
10597
10966
  referencedColumns: ["id"];
10598
10967
  }];
10599
10968
  };
10969
+ logistics_tick_heartbeat: {
10970
+ Row: {
10971
+ id: boolean;
10972
+ last_tick_at: string;
10973
+ };
10974
+ Insert: {
10975
+ id?: boolean;
10976
+ last_tick_at?: string;
10977
+ };
10978
+ Update: {
10979
+ id?: boolean;
10980
+ last_tick_at?: string;
10981
+ };
10982
+ Relationships: [];
10983
+ };
10600
10984
  logistics_variables: {
10601
10985
  Row: {
10602
10986
  created_at: string;
@@ -11028,6 +11412,12 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
11028
11412
  updated_at?: string;
11029
11413
  };
11030
11414
  Relationships: [{
11415
+ foreignKeyName: "mailbox_proposal_lines_product_id_fkey";
11416
+ columns: ["product_id"];
11417
+ isOneToOne: false;
11418
+ referencedRelation: "logistics_product_dimensions";
11419
+ referencedColumns: ["product_id"];
11420
+ }, {
11031
11421
  foreignKeyName: "mailbox_proposal_lines_product_id_fkey";
11032
11422
  columns: ["product_id"];
11033
11423
  isOneToOne: false;
@@ -12334,6 +12724,8 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
12334
12724
  order_buffers: {
12335
12725
  Row: {
12336
12726
  buffer_key: string;
12727
+ close_at: string | null;
12728
+ closed_at: string | null;
12337
12729
  created_at: string;
12338
12730
  customer_id: string | null;
12339
12731
  grouping_mode: string;
@@ -12345,6 +12737,8 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
12345
12737
  };
12346
12738
  Insert: {
12347
12739
  buffer_key: string;
12740
+ close_at?: string | null;
12741
+ closed_at?: string | null;
12348
12742
  created_at?: string;
12349
12743
  customer_id?: string | null;
12350
12744
  grouping_mode: string;
@@ -12356,6 +12750,8 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
12356
12750
  };
12357
12751
  Update: {
12358
12752
  buffer_key?: string;
12753
+ close_at?: string | null;
12754
+ closed_at?: string | null;
12359
12755
  created_at?: string;
12360
12756
  customer_id?: string | null;
12361
12757
  grouping_mode?: string;
@@ -12372,10 +12768,12 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
12372
12768
  boxes: number | null;
12373
12769
  cart_id: string;
12374
12770
  crates: number;
12771
+ crates_in_layer: number | null;
12375
12772
  crates_per_layer: number;
12376
12773
  created_at: string;
12377
12774
  id: string;
12378
12775
  layer_fraction: number;
12776
+ layer_index: number | null;
12379
12777
  layer_share_pct: number;
12380
12778
  layers_per_cart: number;
12381
12779
  order_item_id: string | null;
@@ -12388,10 +12786,12 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
12388
12786
  boxes?: number | null;
12389
12787
  cart_id: string;
12390
12788
  crates: number;
12789
+ crates_in_layer?: number | null;
12391
12790
  crates_per_layer?: number;
12392
12791
  created_at?: string;
12393
12792
  id?: string;
12394
12793
  layer_fraction?: number;
12794
+ layer_index?: number | null;
12395
12795
  layer_share_pct?: number;
12396
12796
  layers_per_cart?: number;
12397
12797
  order_item_id?: string | null;
@@ -12404,10 +12804,12 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
12404
12804
  boxes?: number | null;
12405
12805
  cart_id?: string;
12406
12806
  crates?: number;
12807
+ crates_in_layer?: number | null;
12407
12808
  crates_per_layer?: number;
12408
12809
  created_at?: string;
12409
12810
  id?: string;
12410
12811
  layer_fraction?: number;
12812
+ layer_index?: number | null;
12411
12813
  layer_share_pct?: number;
12412
12814
  layers_per_cart?: number;
12413
12815
  order_item_id?: string | null;
@@ -12428,6 +12830,12 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
12428
12830
  isOneToOne: false;
12429
12831
  referencedRelation: "order_items";
12430
12832
  referencedColumns: ["id"];
12833
+ }, {
12834
+ foreignKeyName: "order_cart_items_product_id_fkey";
12835
+ columns: ["product_id"];
12836
+ isOneToOne: false;
12837
+ referencedRelation: "logistics_product_dimensions";
12838
+ referencedColumns: ["product_id"];
12431
12839
  }, {
12432
12840
  foreignKeyName: "order_cart_items_product_id_fkey";
12433
12841
  columns: ["product_id"];
@@ -12436,6 +12844,93 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
12436
12844
  referencedColumns: ["id"];
12437
12845
  }];
12438
12846
  };
12847
+ order_cart_layer_positions: {
12848
+ Row: {
12849
+ algorithm_version: number | null;
12850
+ cart_id: string;
12851
+ created_at: string;
12852
+ height: number;
12853
+ id: string;
12854
+ keg_id: string;
12855
+ label: string | null;
12856
+ layer: number;
12857
+ layer_height: number | null;
12858
+ layer_width: number | null;
12859
+ manual_overridden_at: string | null;
12860
+ manual_overridden_by: string | null;
12861
+ manual_override: boolean;
12862
+ order_item_id: string | null;
12863
+ original_layer: number | null;
12864
+ original_x: number | null;
12865
+ original_y: number | null;
12866
+ product_id: string | null;
12867
+ rotation: number;
12868
+ source: string | null;
12869
+ updated_at: string;
12870
+ width: number;
12871
+ x: number;
12872
+ y: number;
12873
+ };
12874
+ Insert: {
12875
+ algorithm_version?: number | null;
12876
+ cart_id: string;
12877
+ created_at?: string;
12878
+ height: number;
12879
+ id?: string;
12880
+ keg_id: string;
12881
+ label?: string | null;
12882
+ layer: number;
12883
+ layer_height?: number | null;
12884
+ layer_width?: number | null;
12885
+ manual_overridden_at?: string | null;
12886
+ manual_overridden_by?: string | null;
12887
+ manual_override?: boolean;
12888
+ order_item_id?: string | null;
12889
+ original_layer?: number | null;
12890
+ original_x?: number | null;
12891
+ original_y?: number | null;
12892
+ product_id?: string | null;
12893
+ rotation?: number;
12894
+ source?: string | null;
12895
+ updated_at?: string;
12896
+ width: number;
12897
+ x: number;
12898
+ y: number;
12899
+ };
12900
+ Update: {
12901
+ algorithm_version?: number | null;
12902
+ cart_id?: string;
12903
+ created_at?: string;
12904
+ height?: number;
12905
+ id?: string;
12906
+ keg_id?: string;
12907
+ label?: string | null;
12908
+ layer?: number;
12909
+ layer_height?: number | null;
12910
+ layer_width?: number | null;
12911
+ manual_overridden_at?: string | null;
12912
+ manual_overridden_by?: string | null;
12913
+ manual_override?: boolean;
12914
+ order_item_id?: string | null;
12915
+ original_layer?: number | null;
12916
+ original_x?: number | null;
12917
+ original_y?: number | null;
12918
+ product_id?: string | null;
12919
+ rotation?: number;
12920
+ source?: string | null;
12921
+ updated_at?: string;
12922
+ width?: number;
12923
+ x?: number;
12924
+ y?: number;
12925
+ };
12926
+ Relationships: [{
12927
+ foreignKeyName: "order_cart_layer_positions_cart_id_fkey";
12928
+ columns: ["cart_id"];
12929
+ isOneToOne: false;
12930
+ referencedRelation: "order_carts";
12931
+ referencedColumns: ["id"];
12932
+ }];
12933
+ };
12439
12934
  order_carts: {
12440
12935
  Row: {
12441
12936
  algorithm_version: number;
@@ -12447,6 +12942,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
12447
12942
  id: string;
12448
12943
  is_auto: boolean;
12449
12944
  is_complete: boolean;
12945
+ layout_method: string | null;
12450
12946
  max_layers: number | null;
12451
12947
  moved_at: string | null;
12452
12948
  moved_from_moment_id: string | null;
@@ -12457,6 +12953,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
12457
12953
  pickup_locked: boolean;
12458
12954
  pickup_moment_id: string | null;
12459
12955
  source: string;
12956
+ total_carts: number | null;
12460
12957
  total_layers_used: number;
12461
12958
  updated_at: string;
12462
12959
  weight_kg: number | null;
@@ -12471,6 +12968,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
12471
12968
  id?: string;
12472
12969
  is_auto?: boolean;
12473
12970
  is_complete?: boolean;
12971
+ layout_method?: string | null;
12474
12972
  max_layers?: number | null;
12475
12973
  moved_at?: string | null;
12476
12974
  moved_from_moment_id?: string | null;
@@ -12481,6 +12979,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
12481
12979
  pickup_locked?: boolean;
12482
12980
  pickup_moment_id?: string | null;
12483
12981
  source?: string;
12982
+ total_carts?: number | null;
12484
12983
  total_layers_used?: number;
12485
12984
  updated_at?: string;
12486
12985
  weight_kg?: number | null;
@@ -12495,6 +12994,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
12495
12994
  id?: string;
12496
12995
  is_auto?: boolean;
12497
12996
  is_complete?: boolean;
12997
+ layout_method?: string | null;
12498
12998
  max_layers?: number | null;
12499
12999
  moved_at?: string | null;
12500
13000
  moved_from_moment_id?: string | null;
@@ -12505,6 +13005,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
12505
13005
  pickup_locked?: boolean;
12506
13006
  pickup_moment_id?: string | null;
12507
13007
  source?: string;
13008
+ total_carts?: number | null;
12508
13009
  total_layers_used?: number;
12509
13010
  updated_at?: string;
12510
13011
  weight_kg?: number | null;
@@ -12607,6 +13108,39 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
12607
13108
  };
12608
13109
  Relationships: [];
12609
13110
  };
13111
+ order_fust_bookings: {
13112
+ Row: {
13113
+ created_at: string;
13114
+ fust_type_id: string;
13115
+ id: string;
13116
+ order_item_id: string;
13117
+ quantity: number;
13118
+ updated_at: string;
13119
+ };
13120
+ Insert: {
13121
+ created_at?: string;
13122
+ fust_type_id: string;
13123
+ id?: string;
13124
+ order_item_id: string;
13125
+ quantity?: number;
13126
+ updated_at?: string;
13127
+ };
13128
+ Update: {
13129
+ created_at?: string;
13130
+ fust_type_id?: string;
13131
+ id?: string;
13132
+ order_item_id?: string;
13133
+ quantity?: number;
13134
+ updated_at?: string;
13135
+ };
13136
+ Relationships: [{
13137
+ foreignKeyName: "order_fust_bookings_fust_type_id_fkey";
13138
+ columns: ["fust_type_id"];
13139
+ isOneToOne: false;
13140
+ referencedRelation: "fust_types";
13141
+ referencedColumns: ["id"];
13142
+ }];
13143
+ };
12610
13144
  order_invoice_links: {
12611
13145
  Row: {
12612
13146
  administration_code: string | null;
@@ -12695,6 +13229,12 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
12695
13229
  isOneToOne: false;
12696
13230
  referencedRelation: "orders";
12697
13231
  referencedColumns: ["id"];
13232
+ }, {
13233
+ foreignKeyName: "order_items_product_id_fkey";
13234
+ columns: ["product_id"];
13235
+ isOneToOne: false;
13236
+ referencedRelation: "logistics_product_dimensions";
13237
+ referencedColumns: ["product_id"];
12698
13238
  }, {
12699
13239
  foreignKeyName: "order_items_product_id_fkey";
12700
13240
  columns: ["product_id"];
@@ -12842,6 +13382,9 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
12842
13382
  plan_locked_at: string | null;
12843
13383
  plan_locked_ref: string | null;
12844
13384
  status: string;
13385
+ status_changed_at: string;
13386
+ status_origin: string;
13387
+ status_sync_token: string | null;
12845
13388
  total: string;
12846
13389
  updated_at: string;
12847
13390
  };
@@ -12866,6 +13409,9 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
12866
13409
  plan_locked_at?: string | null;
12867
13410
  plan_locked_ref?: string | null;
12868
13411
  status?: string;
13412
+ status_changed_at?: string;
13413
+ status_origin?: string;
13414
+ status_sync_token?: string | null;
12869
13415
  total?: string;
12870
13416
  updated_at?: string;
12871
13417
  };
@@ -12890,6 +13436,9 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
12890
13436
  plan_locked_at?: string | null;
12891
13437
  plan_locked_ref?: string | null;
12892
13438
  status?: string;
13439
+ status_changed_at?: string;
13440
+ status_origin?: string;
13441
+ status_sync_token?: string | null;
12893
13442
  total?: string;
12894
13443
  updated_at?: string;
12895
13444
  };
@@ -12943,6 +13492,132 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
12943
13492
  };
12944
13493
  Relationships: [];
12945
13494
  };
13495
+ pakbon_barcode_inhoud: {
13496
+ Row: {
13497
+ barcode: string;
13498
+ cart_id: string | null;
13499
+ cart_index: number | null;
13500
+ cart_label: string | null;
13501
+ cart_total: number | null;
13502
+ created_at: string;
13503
+ is_herprint: boolean;
13504
+ klant_naam: string | null;
13505
+ klant_nummer: string | null;
13506
+ layout_id: string | null;
13507
+ layout_variant: string | null;
13508
+ order_nummer: string | null;
13509
+ order_ref: string | null;
13510
+ print_job_id: string | null;
13511
+ regels: import("./types").Json;
13512
+ updated_at: string;
13513
+ };
13514
+ Insert: {
13515
+ barcode: string;
13516
+ cart_id?: string | null;
13517
+ cart_index?: number | null;
13518
+ cart_label?: string | null;
13519
+ cart_total?: number | null;
13520
+ created_at?: string;
13521
+ is_herprint?: boolean;
13522
+ klant_naam?: string | null;
13523
+ klant_nummer?: string | null;
13524
+ layout_id?: string | null;
13525
+ layout_variant?: string | null;
13526
+ order_nummer?: string | null;
13527
+ order_ref?: string | null;
13528
+ print_job_id?: string | null;
13529
+ regels?: import("./types").Json;
13530
+ updated_at?: string;
13531
+ };
13532
+ Update: {
13533
+ barcode?: string;
13534
+ cart_id?: string | null;
13535
+ cart_index?: number | null;
13536
+ cart_label?: string | null;
13537
+ cart_total?: number | null;
13538
+ created_at?: string;
13539
+ is_herprint?: boolean;
13540
+ klant_naam?: string | null;
13541
+ klant_nummer?: string | null;
13542
+ layout_id?: string | null;
13543
+ layout_variant?: string | null;
13544
+ order_nummer?: string | null;
13545
+ order_ref?: string | null;
13546
+ print_job_id?: string | null;
13547
+ regels?: import("./types").Json;
13548
+ updated_at?: string;
13549
+ };
13550
+ Relationships: [];
13551
+ };
13552
+ pakbon_barcode_verzoeken: {
13553
+ Row: {
13554
+ aangevraagd_op: string;
13555
+ barcode: string | null;
13556
+ cart_id: string | null;
13557
+ cart_index: number | null;
13558
+ cart_label: string | null;
13559
+ cart_total: number | null;
13560
+ documentnaam: string | null;
13561
+ geleverd_op: string | null;
13562
+ id: string;
13563
+ is_herprint: boolean;
13564
+ klant_naam: string | null;
13565
+ klant_nummer: string | null;
13566
+ laatst_gevraagd_op: string;
13567
+ layout_id: string | null;
13568
+ layout_variant: string | null;
13569
+ order_nummer: string | null;
13570
+ order_ref: string | null;
13571
+ print_job_id: string;
13572
+ status: string;
13573
+ updated_at: string;
13574
+ };
13575
+ Insert: {
13576
+ aangevraagd_op?: string;
13577
+ barcode?: string | null;
13578
+ cart_id?: string | null;
13579
+ cart_index?: number | null;
13580
+ cart_label?: string | null;
13581
+ cart_total?: number | null;
13582
+ documentnaam?: string | null;
13583
+ geleverd_op?: string | null;
13584
+ id?: string;
13585
+ is_herprint?: boolean;
13586
+ klant_naam?: string | null;
13587
+ klant_nummer?: string | null;
13588
+ laatst_gevraagd_op?: string;
13589
+ layout_id?: string | null;
13590
+ layout_variant?: string | null;
13591
+ order_nummer?: string | null;
13592
+ order_ref?: string | null;
13593
+ print_job_id: string;
13594
+ status?: string;
13595
+ updated_at?: string;
13596
+ };
13597
+ Update: {
13598
+ aangevraagd_op?: string;
13599
+ barcode?: string | null;
13600
+ cart_id?: string | null;
13601
+ cart_index?: number | null;
13602
+ cart_label?: string | null;
13603
+ cart_total?: number | null;
13604
+ documentnaam?: string | null;
13605
+ geleverd_op?: string | null;
13606
+ id?: string;
13607
+ is_herprint?: boolean;
13608
+ klant_naam?: string | null;
13609
+ klant_nummer?: string | null;
13610
+ laatst_gevraagd_op?: string;
13611
+ layout_id?: string | null;
13612
+ layout_variant?: string | null;
13613
+ order_nummer?: string | null;
13614
+ order_ref?: string | null;
13615
+ print_job_id?: string;
13616
+ status?: string;
13617
+ updated_at?: string;
13618
+ };
13619
+ Relationships: [];
13620
+ };
12946
13621
  pick_countries: {
12947
13622
  Row: {
12948
13623
  active: boolean;
@@ -14021,6 +14696,12 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
14021
14696
  isOneToOne: false;
14022
14697
  referencedRelation: "werkbonnen";
14023
14698
  referencedColumns: ["id"];
14699
+ }, {
14700
+ foreignKeyName: "planning_items_werkbon_id_fkey";
14701
+ columns: ["werkbon_id"];
14702
+ isOneToOne: false;
14703
+ referencedRelation: "wo_overview";
14704
+ referencedColumns: ["id"];
14024
14705
  }];
14025
14706
  };
14026
14707
  print_agents: {
@@ -14136,12 +14817,21 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
14136
14817
  };
14137
14818
  print_jobs: {
14138
14819
  Row: {
14820
+ aflever_pogingen: number;
14139
14821
  agent_id: string | null;
14822
+ artefact_bytes: number | null;
14823
+ artefact_gereed_op: string | null;
14824
+ artefact_pad: string | null;
14825
+ artefact_sha256: string | null;
14826
+ batch_id: string | null;
14140
14827
  bron_job_id: string | null;
14141
14828
  created_at: string;
14142
14829
  documentnaam: string;
14143
14830
  documenttype: Database["public"]["Enums"]["doc_layout_type"];
14144
14831
  extern_job_id: string | null;
14832
+ fase_gestart_op: string | null;
14833
+ fase_voltooid_op: string | null;
14834
+ foutcode: string | null;
14145
14835
  foutmelding: string | null;
14146
14836
  gebruiker_id: string | null;
14147
14837
  gebruiker_naam: string;
@@ -14155,7 +14845,10 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
14155
14845
  kopieen: number;
14156
14846
  layout_id: string | null;
14157
14847
  lokaal_opgeslagen_op: string | null;
14848
+ lokale_pdf_claim_id: string | null;
14849
+ lokale_pdf_claim_tot: string | null;
14158
14850
  lokale_pdf_fout: string | null;
14851
+ lokale_pdf_print_plek_id: string | null;
14159
14852
  lokale_pdf_status: string | null;
14160
14853
  opgepakt_op: string | null;
14161
14854
  paginas: number;
@@ -14168,16 +14861,26 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
14168
14861
  resultaat_pdf_base64: string | null;
14169
14862
  status: Database["public"]["Enums"]["print_job_status"];
14170
14863
  updated_at: string;
14864
+ verwerkingsfase: string;
14171
14865
  volgende_poging: string | null;
14172
14866
  voltooid_op: string | null;
14173
14867
  };
14174
14868
  Insert: {
14869
+ aflever_pogingen?: number;
14175
14870
  agent_id?: string | null;
14871
+ artefact_bytes?: number | null;
14872
+ artefact_gereed_op?: string | null;
14873
+ artefact_pad?: string | null;
14874
+ artefact_sha256?: string | null;
14875
+ batch_id?: string | null;
14176
14876
  bron_job_id?: string | null;
14177
14877
  created_at?: string;
14178
14878
  documentnaam?: string;
14179
14879
  documenttype?: Database["public"]["Enums"]["doc_layout_type"];
14180
14880
  extern_job_id?: string | null;
14881
+ fase_gestart_op?: string | null;
14882
+ fase_voltooid_op?: string | null;
14883
+ foutcode?: string | null;
14181
14884
  foutmelding?: string | null;
14182
14885
  gebruiker_id?: string | null;
14183
14886
  gebruiker_naam?: string;
@@ -14191,7 +14894,10 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
14191
14894
  kopieen?: number;
14192
14895
  layout_id?: string | null;
14193
14896
  lokaal_opgeslagen_op?: string | null;
14897
+ lokale_pdf_claim_id?: string | null;
14898
+ lokale_pdf_claim_tot?: string | null;
14194
14899
  lokale_pdf_fout?: string | null;
14900
+ lokale_pdf_print_plek_id?: string | null;
14195
14901
  lokale_pdf_status?: string | null;
14196
14902
  opgepakt_op?: string | null;
14197
14903
  paginas?: number;
@@ -14204,16 +14910,26 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
14204
14910
  resultaat_pdf_base64?: string | null;
14205
14911
  status?: Database["public"]["Enums"]["print_job_status"];
14206
14912
  updated_at?: string;
14913
+ verwerkingsfase?: string;
14207
14914
  volgende_poging?: string | null;
14208
14915
  voltooid_op?: string | null;
14209
14916
  };
14210
14917
  Update: {
14918
+ aflever_pogingen?: number;
14211
14919
  agent_id?: string | null;
14920
+ artefact_bytes?: number | null;
14921
+ artefact_gereed_op?: string | null;
14922
+ artefact_pad?: string | null;
14923
+ artefact_sha256?: string | null;
14924
+ batch_id?: string | null;
14212
14925
  bron_job_id?: string | null;
14213
14926
  created_at?: string;
14214
14927
  documentnaam?: string;
14215
14928
  documenttype?: Database["public"]["Enums"]["doc_layout_type"];
14216
14929
  extern_job_id?: string | null;
14930
+ fase_gestart_op?: string | null;
14931
+ fase_voltooid_op?: string | null;
14932
+ foutcode?: string | null;
14217
14933
  foutmelding?: string | null;
14218
14934
  gebruiker_id?: string | null;
14219
14935
  gebruiker_naam?: string;
@@ -14227,7 +14943,10 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
14227
14943
  kopieen?: number;
14228
14944
  layout_id?: string | null;
14229
14945
  lokaal_opgeslagen_op?: string | null;
14946
+ lokale_pdf_claim_id?: string | null;
14947
+ lokale_pdf_claim_tot?: string | null;
14230
14948
  lokale_pdf_fout?: string | null;
14949
+ lokale_pdf_print_plek_id?: string | null;
14231
14950
  lokale_pdf_status?: string | null;
14232
14951
  opgepakt_op?: string | null;
14233
14952
  paginas?: number;
@@ -14240,6 +14959,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
14240
14959
  resultaat_pdf_base64?: string | null;
14241
14960
  status?: Database["public"]["Enums"]["print_job_status"];
14242
14961
  updated_at?: string;
14962
+ verwerkingsfase?: string;
14243
14963
  volgende_poging?: string | null;
14244
14964
  voltooid_op?: string | null;
14245
14965
  };
@@ -14255,6 +14975,12 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
14255
14975
  isOneToOne: false;
14256
14976
  referencedRelation: "document_layouts";
14257
14977
  referencedColumns: ["id"];
14978
+ }, {
14979
+ foreignKeyName: "print_jobs_lokale_pdf_print_plek_id_fkey";
14980
+ columns: ["lokale_pdf_print_plek_id"];
14981
+ isOneToOne: false;
14982
+ referencedRelation: "print_plekken";
14983
+ referencedColumns: ["id"];
14258
14984
  }, {
14259
14985
  foreignKeyName: "print_jobs_printer_id_fkey";
14260
14986
  columns: ["printer_id"];
@@ -14389,6 +15115,30 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
14389
15115
  };
14390
15116
  Relationships: [];
14391
15117
  };
15118
+ print_queue_leases: {
15119
+ Row: {
15120
+ created_at: string;
15121
+ houder: string;
15122
+ naam: string;
15123
+ updated_at: string;
15124
+ verloopt_op: string;
15125
+ };
15126
+ Insert: {
15127
+ created_at?: string;
15128
+ houder: string;
15129
+ naam: string;
15130
+ updated_at?: string;
15131
+ verloopt_op: string;
15132
+ };
15133
+ Update: {
15134
+ created_at?: string;
15135
+ houder?: string;
15136
+ naam?: string;
15137
+ updated_at?: string;
15138
+ verloopt_op?: string;
15139
+ };
15140
+ Relationships: [];
15141
+ };
14392
15142
  print_queue_runners: {
14393
15143
  Row: {
14394
15144
  actief: boolean;
@@ -14398,7 +15148,9 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
14398
15148
  laatst_gezien: string;
14399
15149
  laatste_fout: string | null;
14400
15150
  laatste_request_id: number | null;
15151
+ laatste_wakeup: string | null;
14401
15152
  mislukte_posts: number;
15153
+ mislukte_wakeups: number;
14402
15154
  tick_sleutel: string;
14403
15155
  updated_at: string;
14404
15156
  };
@@ -14410,7 +15162,9 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
14410
15162
  laatst_gezien?: string;
14411
15163
  laatste_fout?: string | null;
14412
15164
  laatste_request_id?: number | null;
15165
+ laatste_wakeup?: string | null;
14413
15166
  mislukte_posts?: number;
15167
+ mislukte_wakeups?: number;
14414
15168
  tick_sleutel?: string;
14415
15169
  updated_at?: string;
14416
15170
  };
@@ -14422,7 +15176,9 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
14422
15176
  laatst_gezien?: string;
14423
15177
  laatste_fout?: string | null;
14424
15178
  laatste_request_id?: number | null;
15179
+ laatste_wakeup?: string | null;
14425
15180
  mislukte_posts?: number;
15181
+ mislukte_wakeups?: number;
14426
15182
  tick_sleutel?: string;
14427
15183
  updated_at?: string;
14428
15184
  };
@@ -14736,6 +15492,12 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
14736
15492
  updated_at?: string;
14737
15493
  };
14738
15494
  Relationships: [{
15495
+ foreignKeyName: "product_bom_external_items_parent_product_id_fkey";
15496
+ columns: ["parent_product_id"];
15497
+ isOneToOne: false;
15498
+ referencedRelation: "logistics_product_dimensions";
15499
+ referencedColumns: ["product_id"];
15500
+ }, {
14739
15501
  foreignKeyName: "product_bom_external_items_parent_product_id_fkey";
14740
15502
  columns: ["parent_product_id"];
14741
15503
  isOneToOne: false;
@@ -14790,11 +15552,23 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
14790
15552
  updated_at?: string;
14791
15553
  };
14792
15554
  Relationships: [{
15555
+ foreignKeyName: "product_bom_items_component_product_id_fkey";
15556
+ columns: ["component_product_id"];
15557
+ isOneToOne: false;
15558
+ referencedRelation: "logistics_product_dimensions";
15559
+ referencedColumns: ["product_id"];
15560
+ }, {
14793
15561
  foreignKeyName: "product_bom_items_component_product_id_fkey";
14794
15562
  columns: ["component_product_id"];
14795
15563
  isOneToOne: false;
14796
15564
  referencedRelation: "products";
14797
15565
  referencedColumns: ["id"];
15566
+ }, {
15567
+ foreignKeyName: "product_bom_items_parent_product_id_fkey";
15568
+ columns: ["parent_product_id"];
15569
+ isOneToOne: false;
15570
+ referencedRelation: "logistics_product_dimensions";
15571
+ referencedColumns: ["product_id"];
14798
15572
  }, {
14799
15573
  foreignKeyName: "product_bom_items_parent_product_id_fkey";
14800
15574
  columns: ["parent_product_id"];
@@ -14970,6 +15744,12 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
14970
15744
  updated_at?: string;
14971
15745
  };
14972
15746
  Relationships: [{
15747
+ foreignKeyName: "product_groups_head_product_id_fkey";
15748
+ columns: ["head_product_id"];
15749
+ isOneToOne: false;
15750
+ referencedRelation: "logistics_product_dimensions";
15751
+ referencedColumns: ["product_id"];
15752
+ }, {
14973
15753
  foreignKeyName: "product_groups_head_product_id_fkey";
14974
15754
  columns: ["head_product_id"];
14975
15755
  isOneToOne: false;
@@ -15035,6 +15815,12 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
15035
15815
  isOneToOne: false;
15036
15816
  referencedRelation: "packages";
15037
15817
  referencedColumns: ["id"];
15818
+ }, {
15819
+ foreignKeyName: "product_load_settings_product_id_fkey";
15820
+ columns: ["product_id"];
15821
+ isOneToOne: false;
15822
+ referencedRelation: "logistics_product_dimensions";
15823
+ referencedColumns: ["product_id"];
15038
15824
  }, {
15039
15825
  foreignKeyName: "product_load_settings_product_id_fkey";
15040
15826
  columns: ["product_id"];
@@ -15085,6 +15871,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
15085
15871
  created_at: string;
15086
15872
  custom_fields: import("./types").Json;
15087
15873
  floriday_trade_item_id: string | null;
15874
+ fust_type_id: string | null;
15088
15875
  id: string;
15089
15876
  image_url: string | null;
15090
15877
  incoming_quantity: number;
@@ -15092,6 +15879,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
15092
15879
  layers_per_cart: number;
15093
15880
  location: string;
15094
15881
  min_quantity: number;
15882
+ plant_height_cm: number | null;
15095
15883
  plants_per_crate: number;
15096
15884
  product: string;
15097
15885
  product_type: string;
@@ -15111,6 +15899,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
15111
15899
  created_at?: string;
15112
15900
  custom_fields?: import("./types").Json;
15113
15901
  floriday_trade_item_id?: string | null;
15902
+ fust_type_id?: string | null;
15114
15903
  id?: string;
15115
15904
  image_url?: string | null;
15116
15905
  incoming_quantity?: number;
@@ -15118,6 +15907,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
15118
15907
  layers_per_cart?: number;
15119
15908
  location: string;
15120
15909
  min_quantity?: number;
15910
+ plant_height_cm?: number | null;
15121
15911
  plants_per_crate?: number;
15122
15912
  product: string;
15123
15913
  product_type?: string;
@@ -15137,6 +15927,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
15137
15927
  created_at?: string;
15138
15928
  custom_fields?: import("./types").Json;
15139
15929
  floriday_trade_item_id?: string | null;
15930
+ fust_type_id?: string | null;
15140
15931
  id?: string;
15141
15932
  image_url?: string | null;
15142
15933
  incoming_quantity?: number;
@@ -15144,6 +15935,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
15144
15935
  layers_per_cart?: number;
15145
15936
  location?: string;
15146
15937
  min_quantity?: number;
15938
+ plant_height_cm?: number | null;
15147
15939
  plants_per_crate?: number;
15148
15940
  product?: string;
15149
15941
  product_type?: string;
@@ -15155,7 +15947,13 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
15155
15947
  updated_at?: string;
15156
15948
  weight?: string | null;
15157
15949
  };
15158
- Relationships: [];
15950
+ Relationships: [{
15951
+ foreignKeyName: "products_fust_type_id_fkey";
15952
+ columns: ["fust_type_id"];
15953
+ isOneToOne: false;
15954
+ referencedRelation: "fust_types";
15955
+ referencedColumns: ["id"];
15956
+ }];
15159
15957
  };
15160
15958
  profile_modules: {
15161
15959
  Row: {
@@ -15489,6 +16287,12 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
15489
16287
  quantity?: number;
15490
16288
  };
15491
16289
  Relationships: [{
16290
+ foreignKeyName: "purchase_order_items_product_id_fkey";
16291
+ columns: ["product_id"];
16292
+ isOneToOne: false;
16293
+ referencedRelation: "logistics_product_dimensions";
16294
+ referencedColumns: ["product_id"];
16295
+ }, {
15492
16296
  foreignKeyName: "purchase_order_items_product_id_fkey";
15493
16297
  columns: ["product_id"];
15494
16298
  isOneToOne: false;
@@ -15808,21 +16612,117 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
15808
16612
  referencedColumns: ["id"];
15809
16613
  }];
15810
16614
  };
15811
- scan_karren: {
16615
+ scan_kar_sessie_regels: {
15812
16616
  Row: {
15813
- afgerond_op: string | null;
15814
- buffer_key: string | null;
16617
+ barcode: string;
16618
+ cart_id: string | null;
15815
16619
  created_at: string;
15816
- customer_names: string[];
15817
- device_id: string | null;
15818
- geprint: boolean;
15819
- geprint_op: string | null;
15820
16620
  id: string;
15821
- kar_nummer: string;
15822
- medewerker_id: string | null;
15823
- medewerker_naam: string | null;
15824
- naar_pickstation: boolean;
15825
- naar_pickstation_op: string | null;
16621
+ order_id: string | null;
16622
+ order_number: string | null;
16623
+ regels: import("./types").Json;
16624
+ sessie_id: string;
16625
+ volledig: boolean;
16626
+ };
16627
+ Insert: {
16628
+ barcode: string;
16629
+ cart_id?: string | null;
16630
+ created_at?: string;
16631
+ id?: string;
16632
+ order_id?: string | null;
16633
+ order_number?: string | null;
16634
+ regels?: import("./types").Json;
16635
+ sessie_id: string;
16636
+ volledig?: boolean;
16637
+ };
16638
+ Update: {
16639
+ barcode?: string;
16640
+ cart_id?: string | null;
16641
+ created_at?: string;
16642
+ id?: string;
16643
+ order_id?: string | null;
16644
+ order_number?: string | null;
16645
+ regels?: import("./types").Json;
16646
+ sessie_id?: string;
16647
+ volledig?: boolean;
16648
+ };
16649
+ Relationships: [{
16650
+ foreignKeyName: "scan_kar_sessie_regels_sessie_id_fkey";
16651
+ columns: ["sessie_id"];
16652
+ isOneToOne: false;
16653
+ referencedRelation: "scan_kar_sessies";
16654
+ referencedColumns: ["id"];
16655
+ }];
16656
+ };
16657
+ scan_kar_sessies: {
16658
+ Row: {
16659
+ afgerond_op: string | null;
16660
+ cart_id: string | null;
16661
+ cart_index: number | null;
16662
+ cart_total: number | null;
16663
+ created_at: string;
16664
+ id: string;
16665
+ klant_naam: string | null;
16666
+ medewerker_naam: string | null;
16667
+ order_id: string | null;
16668
+ order_number: string | null;
16669
+ scanner_id: string | null;
16670
+ status: string;
16671
+ updated_at: string;
16672
+ };
16673
+ Insert: {
16674
+ afgerond_op?: string | null;
16675
+ cart_id?: string | null;
16676
+ cart_index?: number | null;
16677
+ cart_total?: number | null;
16678
+ created_at?: string;
16679
+ id?: string;
16680
+ klant_naam?: string | null;
16681
+ medewerker_naam?: string | null;
16682
+ order_id?: string | null;
16683
+ order_number?: string | null;
16684
+ scanner_id?: string | null;
16685
+ status?: string;
16686
+ updated_at?: string;
16687
+ };
16688
+ Update: {
16689
+ afgerond_op?: string | null;
16690
+ cart_id?: string | null;
16691
+ cart_index?: number | null;
16692
+ cart_total?: number | null;
16693
+ created_at?: string;
16694
+ id?: string;
16695
+ klant_naam?: string | null;
16696
+ medewerker_naam?: string | null;
16697
+ order_id?: string | null;
16698
+ order_number?: string | null;
16699
+ scanner_id?: string | null;
16700
+ status?: string;
16701
+ updated_at?: string;
16702
+ };
16703
+ Relationships: [{
16704
+ foreignKeyName: "scan_kar_sessies_scanner_id_fkey";
16705
+ columns: ["scanner_id"];
16706
+ isOneToOne: false;
16707
+ referencedRelation: "scan_scanners";
16708
+ referencedColumns: ["id"];
16709
+ }];
16710
+ };
16711
+ scan_karren: {
16712
+ Row: {
16713
+ afgerond_op: string | null;
16714
+ buffer_key: string | null;
16715
+ created_at: string;
16716
+ customer_names: string[];
16717
+ device_id: string | null;
16718
+ geprint: boolean;
16719
+ geprint_op: string | null;
16720
+ id: string;
16721
+ kar_nummer: string;
16722
+ medewerker_id: string | null;
16723
+ medewerker_naam: string | null;
16724
+ naar_pickstation: boolean;
16725
+ naar_pickstation_op: string | null;
15826
16726
  order_number: string | null;
15827
16727
  scanner_id: string | null;
15828
16728
  scanner_key: string;
@@ -16012,6 +16912,60 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
16012
16912
  };
16013
16913
  Relationships: [];
16014
16914
  };
16915
+ scan_restpakbonnen: {
16916
+ Row: {
16917
+ barcode: string;
16918
+ bron_barcode: string | null;
16919
+ cart_id: string | null;
16920
+ cart_index: number | null;
16921
+ cart_total: number | null;
16922
+ created_at: string;
16923
+ geprint_op: string | null;
16924
+ id: string;
16925
+ klant_naam: string | null;
16926
+ order_id: string | null;
16927
+ order_number: string | null;
16928
+ print_job_id: string | null;
16929
+ regels: import("./types").Json;
16930
+ updated_at: string;
16931
+ verwerkt: boolean;
16932
+ };
16933
+ Insert: {
16934
+ barcode: string;
16935
+ bron_barcode?: string | null;
16936
+ cart_id?: string | null;
16937
+ cart_index?: number | null;
16938
+ cart_total?: number | null;
16939
+ created_at?: string;
16940
+ geprint_op?: string | null;
16941
+ id?: string;
16942
+ klant_naam?: string | null;
16943
+ order_id?: string | null;
16944
+ order_number?: string | null;
16945
+ print_job_id?: string | null;
16946
+ regels?: import("./types").Json;
16947
+ updated_at?: string;
16948
+ verwerkt?: boolean;
16949
+ };
16950
+ Update: {
16951
+ barcode?: string;
16952
+ bron_barcode?: string | null;
16953
+ cart_id?: string | null;
16954
+ cart_index?: number | null;
16955
+ cart_total?: number | null;
16956
+ created_at?: string;
16957
+ geprint_op?: string | null;
16958
+ id?: string;
16959
+ klant_naam?: string | null;
16960
+ order_id?: string | null;
16961
+ order_number?: string | null;
16962
+ print_job_id?: string | null;
16963
+ regels?: import("./types").Json;
16964
+ updated_at?: string;
16965
+ verwerkt?: boolean;
16966
+ };
16967
+ Relationships: [];
16968
+ };
16015
16969
  scan_scanners: {
16016
16970
  Row: {
16017
16971
  actief: boolean;
@@ -16021,6 +16975,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
16021
16975
  naam: string;
16022
16976
  omschrijving: string | null;
16023
16977
  pincode: string | null;
16978
+ printer_id: string | null;
16024
16979
  slug: string;
16025
16980
  type: string;
16026
16981
  updated_at: string;
@@ -16035,6 +16990,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
16035
16990
  naam: string;
16036
16991
  omschrijving?: string | null;
16037
16992
  pincode?: string | null;
16993
+ printer_id?: string | null;
16038
16994
  slug: string;
16039
16995
  type?: string;
16040
16996
  updated_at?: string;
@@ -16049,6 +17005,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
16049
17005
  naam?: string;
16050
17006
  omschrijving?: string | null;
16051
17007
  pincode?: string | null;
17008
+ printer_id?: string | null;
16052
17009
  slug?: string;
16053
17010
  type?: string;
16054
17011
  updated_at?: string;
@@ -16057,6 +17014,27 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
16057
17014
  };
16058
17015
  Relationships: [];
16059
17016
  };
17017
+ shell_settings: {
17018
+ Row: {
17019
+ created_at: string;
17020
+ default_path: string | null;
17021
+ shell_id: string;
17022
+ updated_at: string;
17023
+ };
17024
+ Insert: {
17025
+ created_at?: string;
17026
+ default_path?: string | null;
17027
+ shell_id: string;
17028
+ updated_at?: string;
17029
+ };
17030
+ Update: {
17031
+ created_at?: string;
17032
+ default_path?: string | null;
17033
+ shell_id?: string;
17034
+ updated_at?: string;
17035
+ };
17036
+ Relationships: [];
17037
+ };
16060
17038
  sick_periods: {
16061
17039
  Row: {
16062
17040
  created_at: string;
@@ -16676,6 +17654,12 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
16676
17654
  isOneToOne: false;
16677
17655
  referencedRelation: "werkbonnen";
16678
17656
  referencedColumns: ["id"];
17657
+ }, {
17658
+ foreignKeyName: "time_logs_work_order_id_fkey";
17659
+ columns: ["work_order_id"];
17660
+ isOneToOne: false;
17661
+ referencedRelation: "wo_overview";
17662
+ referencedColumns: ["id"];
16679
17663
  }];
16680
17664
  };
16681
17665
  time_off_entries: {
@@ -17969,6 +18953,12 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
17969
18953
  isOneToOne: false;
17970
18954
  referencedRelation: "werkbonnen";
17971
18955
  referencedColumns: ["id"];
18956
+ }, {
18957
+ foreignKeyName: "uren_entries_werkbon_id_fkey";
18958
+ columns: ["werkbon_id"];
18959
+ isOneToOne: false;
18960
+ referencedRelation: "wo_overview";
18961
+ referencedColumns: ["id"];
17972
18962
  }];
17973
18963
  };
17974
18964
  uren_exports: {
@@ -18692,6 +19682,12 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
18692
19682
  isOneToOne: true;
18693
19683
  referencedRelation: "werkbonnen";
18694
19684
  referencedColumns: ["id"];
19685
+ }, {
19686
+ foreignKeyName: "werkbon_facturatie_controle_werkbon_id_fkey";
19687
+ columns: ["werkbon_id"];
19688
+ isOneToOne: true;
19689
+ referencedRelation: "wo_overview";
19690
+ referencedColumns: ["id"];
18695
19691
  }];
18696
19692
  };
18697
19693
  werkbon_facturatie_settings: {
@@ -18779,6 +19775,12 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
18779
19775
  isOneToOne: false;
18780
19776
  referencedRelation: "werkbonnen";
18781
19777
  referencedColumns: ["id"];
19778
+ }, {
19779
+ foreignKeyName: "werkbon_materials_werkbon_id_fkey";
19780
+ columns: ["werkbon_id"];
19781
+ isOneToOne: false;
19782
+ referencedRelation: "wo_overview";
19783
+ referencedColumns: ["id"];
18782
19784
  }];
18783
19785
  };
18784
19786
  werkbon_package_ai_rules: {
@@ -18962,6 +19964,12 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
18962
19964
  isOneToOne: false;
18963
19965
  referencedRelation: "werkbonnen";
18964
19966
  referencedColumns: ["id"];
19967
+ }, {
19968
+ foreignKeyName: "werkbon_package_lines_werkbon_id_fkey";
19969
+ columns: ["werkbon_id"];
19970
+ isOneToOne: false;
19971
+ referencedRelation: "wo_overview";
19972
+ referencedColumns: ["id"];
18965
19973
  }];
18966
19974
  };
18967
19975
  werkbon_packages: {
@@ -19052,6 +20060,12 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
19052
20060
  isOneToOne: false;
19053
20061
  referencedRelation: "werkbonnen";
19054
20062
  referencedColumns: ["id"];
20063
+ }, {
20064
+ foreignKeyName: "werkbon_photos_werkbon_id_fkey";
20065
+ columns: ["werkbon_id"];
20066
+ isOneToOne: false;
20067
+ referencedRelation: "wo_overview";
20068
+ referencedColumns: ["id"];
19055
20069
  }];
19056
20070
  };
19057
20071
  werkbon_time_logs: {
@@ -19091,6 +20105,12 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
19091
20105
  isOneToOne: false;
19092
20106
  referencedRelation: "werkbonnen";
19093
20107
  referencedColumns: ["id"];
20108
+ }, {
20109
+ foreignKeyName: "werkbon_time_logs_werkbon_id_fkey";
20110
+ columns: ["werkbon_id"];
20111
+ isOneToOne: false;
20112
+ referencedRelation: "wo_overview";
20113
+ referencedColumns: ["id"];
19094
20114
  }];
19095
20115
  };
19096
20116
  werkbonnen: {
@@ -19214,6 +20234,12 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
19214
20234
  isOneToOne: false;
19215
20235
  referencedRelation: "werkbonnen";
19216
20236
  referencedColumns: ["id"];
20237
+ }, {
20238
+ foreignKeyName: "werkbonnen_parent_werkbon_id_fkey";
20239
+ columns: ["parent_werkbon_id"];
20240
+ isOneToOne: false;
20241
+ referencedRelation: "wo_overview";
20242
+ referencedColumns: ["id"];
19217
20243
  }, {
19218
20244
  foreignKeyName: "werkbonnen_source_mailbox_message_id_fkey";
19219
20245
  columns: ["source_mailbox_message_id"];
@@ -19682,6 +20708,24 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
19682
20708
  };
19683
20709
  Relationships: [];
19684
20710
  };
20711
+ logistics_product_dimensions: {
20712
+ Row: {
20713
+ dimension_source: string | null;
20714
+ fust_height_mm: number | null;
20715
+ fust_length_mm: number | null;
20716
+ fust_name: string | null;
20717
+ fust_source: string | null;
20718
+ fust_type_id: string | null;
20719
+ fust_width_mm: number | null;
20720
+ height_source: string | null;
20721
+ missing_reason: string | null;
20722
+ plant_height_cm: number | null;
20723
+ plants_per_crate: number | null;
20724
+ product_id: string | null;
20725
+ product_name: string | null;
20726
+ };
20727
+ Relationships: [];
20728
+ };
19685
20729
  manufacture_product_possible_stock_view: {
19686
20730
  Row: {
19687
20731
  component_count: number | null;
@@ -19719,6 +20763,12 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
19719
20763
  isOneToOne: false;
19720
20764
  referencedRelation: "werkbonnen";
19721
20765
  referencedColumns: ["id"];
20766
+ }, {
20767
+ foreignKeyName: "planning_items_werkbon_id_fkey";
20768
+ columns: ["werkbon_id"];
20769
+ isOneToOne: false;
20770
+ referencedRelation: "wo_overview";
20771
+ referencedColumns: ["id"];
19722
20772
  }];
19723
20773
  };
19724
20774
  product_group_stock_view: {
@@ -20180,6 +21230,81 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
20180
21230
  isOneToOne: false;
20181
21231
  referencedRelation: "werkbonnen";
20182
21232
  referencedColumns: ["id"];
21233
+ }, {
21234
+ foreignKeyName: "werkbon_package_lines_werkbon_id_fkey";
21235
+ columns: ["werkbon_id"];
21236
+ isOneToOne: false;
21237
+ referencedRelation: "wo_overview";
21238
+ referencedColumns: ["id"];
21239
+ }];
21240
+ };
21241
+ wo_overview: {
21242
+ Row: {
21243
+ assigned_user_id: string | null;
21244
+ budget_mandate_cents: number | null;
21245
+ created_at: string | null;
21246
+ customer_id: string | null;
21247
+ id: string | null;
21248
+ needs_detail_review: boolean | null;
21249
+ number: string | null;
21250
+ parent_werkbon_id: string | null;
21251
+ planning_status: string | null;
21252
+ scheduled_end_time: string | null;
21253
+ scheduled_start_time: string | null;
21254
+ source_type: string | null;
21255
+ status: string | null;
21256
+ technician_id: string | null;
21257
+ updated_at: string | null;
21258
+ work_address: string | null;
21259
+ };
21260
+ Insert: {
21261
+ assigned_user_id?: string | null;
21262
+ budget_mandate_cents?: number | null;
21263
+ created_at?: string | null;
21264
+ customer_id?: string | null;
21265
+ id?: string | null;
21266
+ needs_detail_review?: boolean | null;
21267
+ number?: string | null;
21268
+ parent_werkbon_id?: string | null;
21269
+ planning_status?: string | null;
21270
+ scheduled_end_time?: string | null;
21271
+ scheduled_start_time?: string | null;
21272
+ source_type?: string | null;
21273
+ status?: string | null;
21274
+ technician_id?: string | null;
21275
+ updated_at?: string | null;
21276
+ work_address?: string | null;
21277
+ };
21278
+ Update: {
21279
+ assigned_user_id?: string | null;
21280
+ budget_mandate_cents?: number | null;
21281
+ created_at?: string | null;
21282
+ customer_id?: string | null;
21283
+ id?: string | null;
21284
+ needs_detail_review?: boolean | null;
21285
+ number?: string | null;
21286
+ parent_werkbon_id?: string | null;
21287
+ planning_status?: string | null;
21288
+ scheduled_end_time?: string | null;
21289
+ scheduled_start_time?: string | null;
21290
+ source_type?: string | null;
21291
+ status?: string | null;
21292
+ technician_id?: string | null;
21293
+ updated_at?: string | null;
21294
+ work_address?: string | null;
21295
+ };
21296
+ Relationships: [{
21297
+ foreignKeyName: "werkbonnen_parent_werkbon_id_fkey";
21298
+ columns: ["parent_werkbon_id"];
21299
+ isOneToOne: false;
21300
+ referencedRelation: "werkbonnen";
21301
+ referencedColumns: ["id"];
21302
+ }, {
21303
+ foreignKeyName: "werkbonnen_parent_werkbon_id_fkey";
21304
+ columns: ["parent_werkbon_id"];
21305
+ isOneToOne: false;
21306
+ referencedRelation: "wo_overview";
21307
+ referencedColumns: ["id"];
20183
21308
  }];
20184
21309
  };
20185
21310
  };
@@ -20371,12 +21496,21 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
20371
21496
  _max?: number;
20372
21497
  };
20373
21498
  Returns: {
21499
+ aflever_pogingen: number;
20374
21500
  agent_id: string | null;
21501
+ artefact_bytes: number | null;
21502
+ artefact_gereed_op: string | null;
21503
+ artefact_pad: string | null;
21504
+ artefact_sha256: string | null;
21505
+ batch_id: string | null;
20375
21506
  bron_job_id: string | null;
20376
21507
  created_at: string;
20377
21508
  documentnaam: string;
20378
21509
  documenttype: Database["public"]["Enums"]["doc_layout_type"];
20379
21510
  extern_job_id: string | null;
21511
+ fase_gestart_op: string | null;
21512
+ fase_voltooid_op: string | null;
21513
+ foutcode: string | null;
20380
21514
  foutmelding: string | null;
20381
21515
  gebruiker_id: string | null;
20382
21516
  gebruiker_naam: string;
@@ -20390,7 +21524,10 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
20390
21524
  kopieen: number;
20391
21525
  layout_id: string | null;
20392
21526
  lokaal_opgeslagen_op: string | null;
21527
+ lokale_pdf_claim_id: string | null;
21528
+ lokale_pdf_claim_tot: string | null;
20393
21529
  lokale_pdf_fout: string | null;
21530
+ lokale_pdf_print_plek_id: string | null;
20394
21531
  lokale_pdf_status: string | null;
20395
21532
  opgepakt_op: string | null;
20396
21533
  paginas: number;
@@ -20403,6 +21540,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
20403
21540
  resultaat_pdf_base64: string | null;
20404
21541
  status: Database["public"]["Enums"]["print_job_status"];
20405
21542
  updated_at: string;
21543
+ verwerkingsfase: string;
20406
21544
  volgende_poging: string | null;
20407
21545
  voltooid_op: string | null;
20408
21546
  }[];
@@ -20449,6 +21587,25 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
20449
21587
  isSetofReturn: true;
20450
21588
  };
20451
21589
  };
21590
+ claim_local_pdf_jobs: {
21591
+ Args: {
21592
+ _max?: number;
21593
+ _print_plek_id: string;
21594
+ _writer_id: string;
21595
+ };
21596
+ Returns: {
21597
+ artefact_bytes: number;
21598
+ artefact_pad: string;
21599
+ artefact_sha256: string;
21600
+ documentnaam: string;
21601
+ id: string;
21602
+ lokale_pdf_print_plek_id: string;
21603
+ lokale_pdf_status: string;
21604
+ printer_id: string;
21605
+ resultaat_pdf_base64: string;
21606
+ status: string;
21607
+ }[];
21608
+ };
20452
21609
  claim_logistics_tasks: {
20453
21610
  Args: {
20454
21611
  _limit?: number;
@@ -20502,12 +21659,21 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
20502
21659
  _max?: number;
20503
21660
  };
20504
21661
  Returns: {
21662
+ aflever_pogingen: number;
20505
21663
  agent_id: string | null;
21664
+ artefact_bytes: number | null;
21665
+ artefact_gereed_op: string | null;
21666
+ artefact_pad: string | null;
21667
+ artefact_sha256: string | null;
21668
+ batch_id: string | null;
20506
21669
  bron_job_id: string | null;
20507
21670
  created_at: string;
20508
21671
  documentnaam: string;
20509
21672
  documenttype: Database["public"]["Enums"]["doc_layout_type"];
20510
21673
  extern_job_id: string | null;
21674
+ fase_gestart_op: string | null;
21675
+ fase_voltooid_op: string | null;
21676
+ foutcode: string | null;
20511
21677
  foutmelding: string | null;
20512
21678
  gebruiker_id: string | null;
20513
21679
  gebruiker_naam: string;
@@ -20521,7 +21687,10 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
20521
21687
  kopieen: number;
20522
21688
  layout_id: string | null;
20523
21689
  lokaal_opgeslagen_op: string | null;
21690
+ lokale_pdf_claim_id: string | null;
21691
+ lokale_pdf_claim_tot: string | null;
20524
21692
  lokale_pdf_fout: string | null;
21693
+ lokale_pdf_print_plek_id: string | null;
20525
21694
  lokale_pdf_status: string | null;
20526
21695
  opgepakt_op: string | null;
20527
21696
  paginas: number;
@@ -20534,6 +21703,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
20534
21703
  resultaat_pdf_base64: string | null;
20535
21704
  status: Database["public"]["Enums"]["print_job_status"];
20536
21705
  updated_at: string;
21706
+ verwerkingsfase: string;
20537
21707
  volgende_poging: string | null;
20538
21708
  voltooid_op: string | null;
20539
21709
  }[];
@@ -20550,12 +21720,21 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
20550
21720
  _max?: number;
20551
21721
  };
20552
21722
  Returns: {
21723
+ aflever_pogingen: number;
20553
21724
  agent_id: string | null;
21725
+ artefact_bytes: number | null;
21726
+ artefact_gereed_op: string | null;
21727
+ artefact_pad: string | null;
21728
+ artefact_sha256: string | null;
21729
+ batch_id: string | null;
20554
21730
  bron_job_id: string | null;
20555
21731
  created_at: string;
20556
21732
  documentnaam: string;
20557
21733
  documenttype: Database["public"]["Enums"]["doc_layout_type"];
20558
21734
  extern_job_id: string | null;
21735
+ fase_gestart_op: string | null;
21736
+ fase_voltooid_op: string | null;
21737
+ foutcode: string | null;
20559
21738
  foutmelding: string | null;
20560
21739
  gebruiker_id: string | null;
20561
21740
  gebruiker_naam: string;
@@ -20569,7 +21748,10 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
20569
21748
  kopieen: number;
20570
21749
  layout_id: string | null;
20571
21750
  lokaal_opgeslagen_op: string | null;
21751
+ lokale_pdf_claim_id: string | null;
21752
+ lokale_pdf_claim_tot: string | null;
20572
21753
  lokale_pdf_fout: string | null;
21754
+ lokale_pdf_print_plek_id: string | null;
20573
21755
  lokale_pdf_status: string | null;
20574
21756
  opgepakt_op: string | null;
20575
21757
  paginas: number;
@@ -20582,6 +21764,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
20582
21764
  resultaat_pdf_base64: string | null;
20583
21765
  status: Database["public"]["Enums"]["print_job_status"];
20584
21766
  updated_at: string;
21767
+ verwerkingsfase: string;
20585
21768
  volgende_poging: string | null;
20586
21769
  voltooid_op: string | null;
20587
21770
  }[];
@@ -20592,6 +21775,14 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
20592
21775
  isSetofReturn: true;
20593
21776
  };
20594
21777
  };
21778
+ claim_print_queue_lease: {
21779
+ Args: {
21780
+ _houder: string;
21781
+ _naam: string;
21782
+ _seconden?: number;
21783
+ };
21784
+ Returns: boolean;
21785
+ };
20595
21786
  claim_twinfield_push_batch: {
20596
21787
  Args: {
20597
21788
  _customer_id?: string;
@@ -20717,7 +21908,10 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
20717
21908
  cart_index: number;
20718
21909
  cart_number: string;
20719
21910
  cart_number_id: string;
21911
+ cart_seq: number;
21912
+ cart_total: number;
20720
21913
  order_id: string;
21914
+ order_number: string;
20721
21915
  order_source: string;
20722
21916
  pick_date: string;
20723
21917
  printed_at: string;
@@ -20725,8 +21919,14 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
20725
21919
  status: string;
20726
21920
  }[];
20727
21921
  };
20728
- count_distinct_regulatory_products: {
20729
- Args: never;
21922
+ control_mark_carts_delivered: {
21923
+ Args: {
21924
+ p_carts: import("./types").Json;
21925
+ };
21926
+ Returns: number;
21927
+ };
21928
+ count_distinct_regulatory_products: {
21929
+ Args: never;
20730
21930
  Returns: number;
20731
21931
  };
20732
21932
  current_monteur_id: {
@@ -20852,6 +22052,13 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
20852
22052
  };
20853
22053
  Returns: undefined;
20854
22054
  };
22055
+ ensure_system_roles: {
22056
+ Args: never;
22057
+ Returns: {
22058
+ action: string;
22059
+ role_key: string;
22060
+ }[];
22061
+ };
20855
22062
  ensure_trade_item_stock_row: {
20856
22063
  Args: {
20857
22064
  p_key: string;
@@ -20918,6 +22125,15 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
20918
22125
  };
20919
22126
  Returns: string;
20920
22127
  };
22128
+ finish_local_pdf_job: {
22129
+ Args: {
22130
+ _fout?: string;
22131
+ _job_id: string;
22132
+ _status: string;
22133
+ _writer_id: string;
22134
+ };
22135
+ Returns: boolean;
22136
+ };
20921
22137
  floriday_capture_stock_snapshot: {
20922
22138
  Args: never;
20923
22139
  Returns: number;
@@ -21197,6 +22413,36 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
21197
22413
  Args: never;
21198
22414
  Returns: string;
21199
22415
  };
22416
+ handover_archief_lijst: {
22417
+ Args: never;
22418
+ Returns: import("./types").Json;
22419
+ };
22420
+ handover_archiveren: {
22421
+ Args: {
22422
+ _archief?: boolean;
22423
+ _module_id: string;
22424
+ };
22425
+ Returns: boolean;
22426
+ };
22427
+ handover_check_afronden: {
22428
+ Args: {
22429
+ _module_id: string;
22430
+ };
22431
+ Returns: boolean;
22432
+ };
22433
+ handover_check_markeren: {
22434
+ Args: {
22435
+ _module_ids: string[];
22436
+ _reden?: string;
22437
+ };
22438
+ Returns: number;
22439
+ };
22440
+ handover_fingerprint_maken: {
22441
+ Args: {
22442
+ _module_id?: string;
22443
+ };
22444
+ Returns: import("./types").Json;
22445
+ };
21200
22446
  handover_get: {
21201
22447
  Args: {
21202
22448
  _module_id: string;
@@ -21227,6 +22473,14 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
21227
22473
  };
21228
22474
  Returns: boolean;
21229
22475
  };
22476
+ handover_module_meta_zetten: {
22477
+ Args: {
22478
+ _module_id: string;
22479
+ _project_url?: string;
22480
+ _publicatie_url?: string;
22481
+ };
22482
+ Returns: boolean;
22483
+ };
21230
22484
  handover_norm_naam: {
21231
22485
  Args: {
21232
22486
  _naam: string;
@@ -21247,6 +22501,23 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
21247
22501
  };
21248
22502
  Returns: number;
21249
22503
  };
22504
+ handover_publish_uit_github: {
22505
+ Args: {
22506
+ _bezit_tabellen?: string[];
22507
+ _bron_soort?: string;
22508
+ _commit?: string;
22509
+ _contractfuncties?: string[];
22510
+ _inhoud_md: string;
22511
+ _module_id: string;
22512
+ _module_titel: string;
22513
+ _ontbrekende_contracten?: string[];
22514
+ _pad?: string;
22515
+ _repo?: string;
22516
+ _samenvatting?: string;
22517
+ _versie_label?: string;
22518
+ };
22519
+ Returns: import("./types").Json;
22520
+ };
21250
22521
  handover_publish_via_token: {
21251
22522
  Args: {
21252
22523
  _bevindingen?: string;
@@ -21260,7 +22531,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
21260
22531
  _samenvatting?: string;
21261
22532
  _token_hash: string;
21262
22533
  };
21263
- Returns: number;
22534
+ Returns: import("./types").Json;
21264
22535
  };
21265
22536
  handover_status: {
21266
22537
  Args: never;
@@ -21272,23 +22543,6 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
21272
22543
  };
21273
22544
  Returns: string;
21274
22545
  };
21275
- handover_token_intrekken: {
21276
- Args: {
21277
- _id: string;
21278
- };
21279
- Returns: boolean;
21280
- };
21281
- handover_token_lijst: {
21282
- Args: never;
21283
- Returns: import("./types").Json;
21284
- };
21285
- handover_token_maken: {
21286
- Args: {
21287
- _label?: string;
21288
- _module_id: string;
21289
- };
21290
- Returns: string;
21291
- };
21292
22546
  handover_update: {
21293
22547
  Args: {
21294
22548
  _bezit_tabellen?: string[];
@@ -21316,12 +22570,31 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
21316
22570
  };
21317
22571
  Returns: boolean;
21318
22572
  };
22573
+ handover_versie_verwijderen: {
22574
+ Args: {
22575
+ _module_id: string;
22576
+ _versie: number;
22577
+ };
22578
+ Returns: boolean;
22579
+ };
21319
22580
  handover_versies: {
21320
22581
  Args: {
21321
22582
  _module_id: string;
21322
22583
  };
21323
22584
  Returns: import("./types").Json;
21324
22585
  };
22586
+ handover_verwijderen: {
22587
+ Args: {
22588
+ _module_id: string;
22589
+ };
22590
+ Returns: boolean;
22591
+ };
22592
+ handover_wijzigingen: {
22593
+ Args: {
22594
+ _module_id?: string;
22595
+ };
22596
+ Returns: import("./types").Json;
22597
+ };
21325
22598
  has_module_permission: {
21326
22599
  Args: {
21327
22600
  _min: string;
@@ -21590,6 +22863,30 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
21590
22863
  };
21591
22864
  Returns: import("./types").Json;
21592
22865
  };
22866
+ logistics_block_reason_code: {
22867
+ Args: {
22868
+ p_details?: import("./types").Json;
22869
+ p_reason: string;
22870
+ };
22871
+ Returns: string;
22872
+ };
22873
+ logistics_blocked_orders: {
22874
+ Args: never;
22875
+ Returns: {
22876
+ attempts: number;
22877
+ blocked_since: string;
22878
+ delivery_date: string;
22879
+ order_id: string;
22880
+ order_ref: string;
22881
+ queue_id: string;
22882
+ reason: string;
22883
+ reason_code: string;
22884
+ }[];
22885
+ };
22886
+ logistics_blocked_overview: {
22887
+ Args: never;
22888
+ Returns: import("./types").Json;
22889
+ };
21593
22890
  logistics_buffer_criteria: {
21594
22891
  Args: {
21595
22892
  p_settings: import("./types").Json;
@@ -21656,6 +22953,13 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
21656
22953
  };
21657
22954
  Returns: string;
21658
22955
  };
22956
+ logistics_cart_handled: {
22957
+ Args: {
22958
+ p_cart_index: number;
22959
+ p_order_id: string;
22960
+ };
22961
+ Returns: boolean;
22962
+ };
21659
22963
  logistics_cart_index: {
21660
22964
  Args: {
21661
22965
  p_from?: string;
@@ -21665,6 +22969,9 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
21665
22969
  cart_id: string;
21666
22970
  cart_index: number;
21667
22971
  cart_label: string;
22972
+ cart_number: string;
22973
+ cart_seq: number;
22974
+ cart_total: number;
21668
22975
  delivery_date: string;
21669
22976
  is_announced: boolean;
21670
22977
  is_controlled: boolean;
@@ -21679,12 +22986,79 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
21679
22986
  task_status: string;
21680
22987
  }[];
21681
22988
  };
22989
+ logistics_cart_layout_method: {
22990
+ Args: never;
22991
+ Returns: import("./types").Json;
22992
+ };
22993
+ logistics_cart_plan_overview: {
22994
+ Args: {
22995
+ p_days?: number;
22996
+ };
22997
+ Returns: {
22998
+ cart_total: number;
22999
+ delivery_date: string;
23000
+ order_ref: string;
23001
+ plan_ready: boolean;
23002
+ reason: string;
23003
+ released: boolean;
23004
+ }[];
23005
+ };
23006
+ logistics_cart_plan_status: {
23007
+ Args: {
23008
+ p_ref: string;
23009
+ };
23010
+ Returns: import("./types").Json;
23011
+ };
23012
+ logistics_cart_seq: {
23013
+ Args: {
23014
+ p_order_uuid?: string;
23015
+ };
23016
+ Returns: {
23017
+ cart_id: string;
23018
+ cart_index: number;
23019
+ cart_number: string;
23020
+ cart_seq: number;
23021
+ cart_total: number;
23022
+ order_uuid: string;
23023
+ }[];
23024
+ };
21682
23025
  logistics_cart_slip_plan: {
21683
23026
  Args: {
21684
23027
  p_order_id: string;
21685
23028
  };
21686
23029
  Returns: import("./types").Json;
21687
23030
  };
23031
+ logistics_cart_units: {
23032
+ Args: {
23033
+ p_from?: string;
23034
+ p_to?: string;
23035
+ };
23036
+ Returns: {
23037
+ cart_id: string;
23038
+ cart_index: number;
23039
+ cart_label: string;
23040
+ cart_number: string;
23041
+ cart_seq: number;
23042
+ cart_total: number;
23043
+ delivery_date: string;
23044
+ is_announced: boolean;
23045
+ is_buffer: boolean;
23046
+ is_controlled: boolean;
23047
+ is_printed: boolean;
23048
+ is_shared: boolean;
23049
+ order_number: string;
23050
+ order_source: string;
23051
+ order_uuid: string;
23052
+ pick_date: string;
23053
+ printed_at: string;
23054
+ shifted: boolean;
23055
+ task_status: string;
23056
+ unit_buffer: string;
23057
+ unit_order_count: number;
23058
+ unit_orders: string[];
23059
+ unit_ref: string;
23060
+ }[];
23061
+ };
21688
23062
  logistics_check_order_allowed: {
21689
23063
  Args: {
21690
23064
  p_lines: import("./types").Json;
@@ -21840,7 +23214,9 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
21840
23214
  announced_carts: number;
21841
23215
  control_carts: number;
21842
23216
  delivery_carts: number;
23217
+ duplicate_carts: number;
21843
23218
  ok: boolean;
23219
+ orphan_carts: number;
21844
23220
  orphan_tasks: number;
21845
23221
  pick_date: string;
21846
23222
  raw_carts: number;
@@ -21848,6 +23224,85 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
21848
23224
  station_carts: number;
21849
23225
  }[];
21850
23226
  };
23227
+ logistics_control_scan_approve: {
23228
+ Args: {
23229
+ p_allow_reprint?: boolean;
23230
+ p_barcode: string;
23231
+ p_printer_id?: string;
23232
+ p_scanner_id?: string;
23233
+ };
23234
+ Returns: import("./types").Json;
23235
+ };
23236
+ logistics_control_scan_claim: {
23237
+ Args: {
23238
+ _lease_seconds?: number;
23239
+ _limit?: number;
23240
+ };
23241
+ Returns: {
23242
+ approved_at: string | null;
23243
+ attempts: number;
23244
+ barcode: string;
23245
+ cart_id: string;
23246
+ created_at: string;
23247
+ document_url: string | null;
23248
+ error: string | null;
23249
+ error_code: string | null;
23250
+ fulfillment_order_id: string | null;
23251
+ id: string;
23252
+ is_floriday: boolean;
23253
+ locked_until: string | null;
23254
+ order_id: string | null;
23255
+ order_number: string | null;
23256
+ print_job_id: string | null;
23257
+ printed_at: string | null;
23258
+ printer_id: string | null;
23259
+ scanner_id: string | null;
23260
+ status: string;
23261
+ updated_at: string;
23262
+ }[];
23263
+ SetofOptions: {
23264
+ from: "*";
23265
+ to: "logistics_control_scan";
23266
+ isOneToOne: false;
23267
+ isSetofReturn: true;
23268
+ };
23269
+ };
23270
+ logistics_control_scan_finish: {
23271
+ Args: {
23272
+ _document_url?: string;
23273
+ _error?: string;
23274
+ _error_code?: string;
23275
+ _fulfillment_order_id?: string;
23276
+ _id: string;
23277
+ _ok: boolean;
23278
+ _print_job_id?: string;
23279
+ _status?: string;
23280
+ };
23281
+ Returns: import("./types").Json;
23282
+ };
23283
+ logistics_control_scan_lookup: {
23284
+ Args: {
23285
+ p_barcode: string;
23286
+ };
23287
+ Returns: import("./types").Json;
23288
+ };
23289
+ logistics_control_scan_overview: {
23290
+ Args: {
23291
+ _date?: string;
23292
+ _scanner_id?: string;
23293
+ };
23294
+ Returns: import("./types").Json;
23295
+ };
23296
+ logistics_control_scan_retry: {
23297
+ Args: {
23298
+ _id: string;
23299
+ };
23300
+ Returns: import("./types").Json;
23301
+ };
23302
+ logistics_control_settings: {
23303
+ Args: never;
23304
+ Returns: import("./types").Json;
23305
+ };
21851
23306
  logistics_delay_customer_email: {
21852
23307
  Args: {
21853
23308
  p_customer: string;
@@ -21915,6 +23370,17 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
21915
23370
  };
21916
23371
  Returns: import("./types").Json;
21917
23372
  };
23373
+ logistics_enqueue_sticker_with_slip: {
23374
+ Args: {
23375
+ _cart_id: string;
23376
+ _is_herprint: boolean;
23377
+ _printer_id: string;
23378
+ _queue_item_id: string;
23379
+ _session_id: string;
23380
+ _slip_job_id: string;
23381
+ };
23382
+ Returns: string;
23383
+ };
21918
23384
  logistics_ensure_cart_barcode: {
21919
23385
  Args: {
21920
23386
  _cart_id: string;
@@ -22056,6 +23522,26 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
22056
23522
  };
22057
23523
  Returns: string;
22058
23524
  };
23525
+ logistics_fulfill_barcode_requests: {
23526
+ Args: {
23527
+ p_limit?: number;
23528
+ };
23529
+ Returns: import("./types").Json;
23530
+ };
23531
+ logistics_full_cart_min_layers: {
23532
+ Args: never;
23533
+ Returns: number;
23534
+ };
23535
+ logistics_full_cart_min_percentage: {
23536
+ Args: never;
23537
+ Returns: number;
23538
+ };
23539
+ logistics_is_pick_workday: {
23540
+ Args: {
23541
+ p_date: string;
23542
+ };
23543
+ Returns: boolean;
23544
+ };
22059
23545
  logistics_live_carriers: {
22060
23546
  Args: {
22061
23547
  p_order_ref: string;
@@ -22068,6 +23554,20 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
22068
23554
  };
22069
23555
  Returns: number;
22070
23556
  };
23557
+ logistics_next_workday_date: {
23558
+ Args: {
23559
+ p_date: string;
23560
+ p_days?: string[];
23561
+ };
23562
+ Returns: string;
23563
+ };
23564
+ logistics_next_workday_not_past: {
23565
+ Args: {
23566
+ p_days: string[];
23567
+ p_ts: string;
23568
+ };
23569
+ Returns: string;
23570
+ };
22071
23571
  logistics_not_past: {
22072
23572
  Args: {
22073
23573
  p_ts: string;
@@ -22080,6 +23580,19 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
22080
23580
  };
22081
23581
  Returns: number;
22082
23582
  };
23583
+ logistics_order_handled: {
23584
+ Args: {
23585
+ p_order_uuid: string;
23586
+ };
23587
+ Returns: boolean;
23588
+ };
23589
+ logistics_order_is_topick: {
23590
+ Args: {
23591
+ p_order_id: string;
23592
+ p_order_number: string;
23593
+ };
23594
+ Returns: boolean;
23595
+ };
22083
23596
  logistics_order_overview: {
22084
23597
  Args: {
22085
23598
  p_from?: string;
@@ -22105,6 +23618,12 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
22105
23618
  };
22106
23619
  Returns: string;
22107
23620
  };
23621
+ logistics_order_released: {
23622
+ Args: {
23623
+ p_order_ref: string;
23624
+ };
23625
+ Returns: boolean;
23626
+ };
22108
23627
  logistics_parse_pickup: {
22109
23628
  Args: {
22110
23629
  p_value: string;
@@ -22127,10 +23646,37 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
22127
23646
  shifted_count: number;
22128
23647
  }[];
22129
23648
  };
23649
+ logistics_pick_barcode_enabled: {
23650
+ Args: never;
23651
+ Returns: boolean;
23652
+ };
22130
23653
  logistics_pick_email_purpose: {
22131
23654
  Args: never;
22132
23655
  Returns: string;
22133
23656
  };
23657
+ logistics_pick_mode: {
23658
+ Args: never;
23659
+ Returns: import("./types").Json;
23660
+ };
23661
+ logistics_pick_start_estimate: {
23662
+ Args: {
23663
+ p_order: import("./types").Json;
23664
+ s: import("./types").Json;
23665
+ };
23666
+ Returns: string;
23667
+ };
23668
+ logistics_pick_units: {
23669
+ Args: never;
23670
+ Returns: {
23671
+ is_buffer: boolean;
23672
+ order_number: string;
23673
+ order_uuid: string;
23674
+ unit_buffer: string;
23675
+ unit_order_count: number;
23676
+ unit_orders: string[];
23677
+ unit_ref: string;
23678
+ }[];
23679
+ };
22134
23680
  logistics_plan_all: {
22135
23681
  Args: {
22136
23682
  p_user_id?: string;
@@ -22210,6 +23756,12 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
22210
23756
  Args: never;
22211
23757
  Returns: number;
22212
23758
  };
23759
+ logistics_plan_retry: {
23760
+ Args: {
23761
+ p_order_ids: string[];
23762
+ };
23763
+ Returns: number;
23764
+ };
22213
23765
  logistics_plan_setting: {
22214
23766
  Args: {
22215
23767
  p_default: number;
@@ -22217,6 +23769,14 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
22217
23769
  };
22218
23770
  Returns: number;
22219
23771
  };
23772
+ logistics_prune_buffer_member_queue: {
23773
+ Args: never;
23774
+ Returns: number;
23775
+ };
23776
+ logistics_prune_handled_pick_queue: {
23777
+ Args: never;
23778
+ Returns: number;
23779
+ };
22220
23780
  logistics_queue_capacity_email: {
22221
23781
  Args: {
22222
23782
  p_alert_id: string;
@@ -22249,6 +23809,12 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
22249
23809
  Args: never;
22250
23810
  Returns: import("./types").Json;
22251
23811
  };
23812
+ logistics_refresh_pickup_moments: {
23813
+ Args: {
23814
+ p_weeks?: number;
23815
+ };
23816
+ Returns: import("./types").Json;
23817
+ };
22252
23818
  logistics_report_delay: {
22253
23819
  Args: {
22254
23820
  p_expected_date?: string;
@@ -22355,6 +23921,12 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
22355
23921
  };
22356
23922
  Returns: string;
22357
23923
  };
23924
+ logistics_scan_resolve: {
23925
+ Args: {
23926
+ p_code: string;
23927
+ };
23928
+ Returns: import("./types").Json;
23929
+ };
22358
23930
  logistics_schedule_tasks: {
22359
23931
  Args: never;
22360
23932
  Returns: number;
@@ -22389,6 +23961,10 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
22389
23961
  };
22390
23962
  Returns: import("./types").Json;
22391
23963
  };
23964
+ logistics_sticker_follows_slip: {
23965
+ Args: never;
23966
+ Returns: boolean;
23967
+ };
22392
23968
  logistics_supersede_stale_tasks: {
22393
23969
  Args: {
22394
23970
  p_keep: string[];
@@ -22421,6 +23997,10 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
22421
23997
  };
22422
23998
  Returns: number;
22423
23999
  };
24000
+ logistics_tick_ping: {
24001
+ Args: never;
24002
+ Returns: string;
24003
+ };
22424
24004
  logistics_upsert_task: {
22425
24005
  Args: {
22426
24006
  p_buffer_ref: string;
@@ -22440,6 +24020,18 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
22440
24020
  };
22441
24021
  Returns: string;
22442
24022
  };
24023
+ logistics_write_buffer_layer_positions: {
24024
+ Args: {
24025
+ p_buffer_id: string;
24026
+ };
24027
+ Returns: number;
24028
+ };
24029
+ logistics_write_cart_layer_positions: {
24030
+ Args: {
24031
+ p_cart_id: string;
24032
+ };
24033
+ Returns: number;
24034
+ };
22443
24035
  mark_offer_clicked: {
22444
24036
  Args: {
22445
24037
  p_code: string;
@@ -22472,6 +24064,15 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
22472
24064
  };
22473
24065
  Returns: undefined;
22474
24066
  };
24067
+ move_cart_layer_position: {
24068
+ Args: {
24069
+ p_id: string;
24070
+ p_layer: number;
24071
+ p_x: number;
24072
+ p_y: number;
24073
+ };
24074
+ Returns: undefined;
24075
+ };
22475
24076
  my_module_permissions: {
22476
24077
  Args: never;
22477
24078
  Returns: {
@@ -22543,6 +24144,12 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
22543
24144
  };
22544
24145
  Returns: import("./types").Json;
22545
24146
  };
24147
+ order_heeft_bevestigde_karren: {
24148
+ Args: {
24149
+ p_order_id: string;
24150
+ };
24151
+ Returns: boolean;
24152
+ };
22546
24153
  order_number_prefix: {
22547
24154
  Args: {
22548
24155
  p_custom_fields?: import("./types").Json;
@@ -22578,6 +24185,27 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
22578
24185
  online: boolean;
22579
24186
  }[];
22580
24187
  };
24188
+ pick_available_pick_days: {
24189
+ Args: {
24190
+ _max_days?: number;
24191
+ };
24192
+ Returns: {
24193
+ orders: number;
24194
+ pick_day: string;
24195
+ }[];
24196
+ };
24197
+ pick_buffer_order_ids: {
24198
+ Args: {
24199
+ _order_id: string;
24200
+ };
24201
+ Returns: string[];
24202
+ };
24203
+ pick_cart_breakdown: {
24204
+ Args: {
24205
+ _order_id: string;
24206
+ };
24207
+ Returns: import("./types").Json;
24208
+ };
22581
24209
  pick_claim_document: {
22582
24210
  Args: {
22583
24211
  _queue_item_id: string;
@@ -22631,6 +24259,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
22631
24259
  pick_claim_next_document: {
22632
24260
  Args: {
22633
24261
  _country_code: string;
24262
+ _pick_day?: string;
22634
24263
  _screen_id: string;
22635
24264
  _session_id: string;
22636
24265
  _station_id: string;
@@ -22782,6 +24411,14 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
22782
24411
  isSetofReturn: false;
22783
24412
  };
22784
24413
  };
24414
+ pick_complete_print_carts: {
24415
+ Args: {
24416
+ _cart_ids: string[];
24417
+ _queue_item_id: string;
24418
+ _session_id: string;
24419
+ };
24420
+ Returns: import("./types").Json;
24421
+ };
22785
24422
  pick_current_pick_day: {
22786
24423
  Args: never;
22787
24424
  Returns: string;
@@ -22818,6 +24455,65 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
22818
24455
  };
22819
24456
  Returns: string;
22820
24457
  };
24458
+ pick_enqueue_print_job_from_cart: {
24459
+ Args: {
24460
+ _cart_id: string;
24461
+ _is_herprint: boolean;
24462
+ _printer_id: string;
24463
+ _queue_item_id: string;
24464
+ _selected_cart: import("./types").Json;
24465
+ _session_id: string;
24466
+ };
24467
+ Returns: string;
24468
+ };
24469
+ pick_mark_printed: {
24470
+ Args: {
24471
+ _queue_item_id: string;
24472
+ _reden?: string;
24473
+ _session_id: string;
24474
+ };
24475
+ Returns: {
24476
+ announced_at: string;
24477
+ assigned_user_id: string | null;
24478
+ barcode: string | null;
24479
+ cancelled_at: string | null;
24480
+ cart_count: number;
24481
+ completed_at: string | null;
24482
+ country_code: string | null;
24483
+ created_at: string;
24484
+ customer_name: string | null;
24485
+ delivery_address: string | null;
24486
+ document_number: string | null;
24487
+ document_type_id: string | null;
24488
+ due_at: string | null;
24489
+ id: string;
24490
+ is_urgent: boolean;
24491
+ line_count: number;
24492
+ order_number: string | null;
24493
+ order_type: string | null;
24494
+ payload: import("./types").Json;
24495
+ print_count: number;
24496
+ print_job_id: string | null;
24497
+ printed_at: string | null;
24498
+ printed_by: string | null;
24499
+ printed_cart_ids: import("./types").Json;
24500
+ printer_id: string | null;
24501
+ priority: number;
24502
+ reference: string | null;
24503
+ route: string | null;
24504
+ screen_id: string | null;
24505
+ station_id: string | null;
24506
+ status_id: string | null;
24507
+ updated_at: string;
24508
+ warnings: import("./types").Json;
24509
+ };
24510
+ SetofOptions: {
24511
+ from: "*";
24512
+ to: "pick_queue";
24513
+ isOneToOne: true;
24514
+ isSetofReturn: false;
24515
+ };
24516
+ };
22821
24517
  pick_order_context: {
22822
24518
  Args: {
22823
24519
  _order_id?: string;
@@ -22838,6 +24534,12 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
22838
24534
  };
22839
24535
  Returns: import("./types").Json;
22840
24536
  };
24537
+ pick_print_jobs_status: {
24538
+ Args: {
24539
+ _job_ids: string[];
24540
+ };
24541
+ Returns: import("./types").Json[];
24542
+ };
22841
24543
  pick_print_plekken: {
22842
24544
  Args: never;
22843
24545
  Returns: {
@@ -22846,6 +24548,12 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
22846
24548
  omschrijving: string;
22847
24549
  }[];
22848
24550
  };
24551
+ pick_queue_cart_plan: {
24552
+ Args: {
24553
+ _queue_item_id: string;
24554
+ };
24555
+ Returns: import("./types").Json;
24556
+ };
22849
24557
  pick_reference_data_status: {
22850
24558
  Args: never;
22851
24559
  Returns: import("./types").Json;
@@ -22860,6 +24568,19 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
22860
24568
  };
22861
24569
  Returns: undefined;
22862
24570
  };
24571
+ pick_report_missing_cart_plan: {
24572
+ Args: never;
24573
+ Returns: import("./types").Json;
24574
+ };
24575
+ pick_reprint_cart: {
24576
+ Args: {
24577
+ _cart_id: string;
24578
+ _queue_item_id: string;
24579
+ _session_id: string;
24580
+ _throttle_seconds?: number;
24581
+ };
24582
+ Returns: string;
24583
+ };
22863
24584
  pick_reprint_document: {
22864
24585
  Args: {
22865
24586
  _queue_item_id: string;
@@ -22962,6 +24683,151 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
22962
24683
  isSetofReturn: false;
22963
24684
  };
22964
24685
  };
24686
+ pick_reset_print_job: {
24687
+ Args: {
24688
+ _cart_id: string;
24689
+ _job_id: string;
24690
+ _queue_item_id: string;
24691
+ _session_id: string;
24692
+ };
24693
+ Returns: {
24694
+ announced_at: string;
24695
+ assigned_user_id: string | null;
24696
+ barcode: string | null;
24697
+ cancelled_at: string | null;
24698
+ cart_count: number;
24699
+ completed_at: string | null;
24700
+ country_code: string | null;
24701
+ created_at: string;
24702
+ customer_name: string | null;
24703
+ delivery_address: string | null;
24704
+ document_number: string | null;
24705
+ document_type_id: string | null;
24706
+ due_at: string | null;
24707
+ id: string;
24708
+ is_urgent: boolean;
24709
+ line_count: number;
24710
+ order_number: string | null;
24711
+ order_type: string | null;
24712
+ payload: import("./types").Json;
24713
+ print_count: number;
24714
+ print_job_id: string | null;
24715
+ printed_at: string | null;
24716
+ printed_by: string | null;
24717
+ printed_cart_ids: import("./types").Json;
24718
+ printer_id: string | null;
24719
+ priority: number;
24720
+ reference: string | null;
24721
+ route: string | null;
24722
+ screen_id: string | null;
24723
+ station_id: string | null;
24724
+ status_id: string | null;
24725
+ updated_at: string;
24726
+ warnings: import("./types").Json;
24727
+ };
24728
+ SetofOptions: {
24729
+ from: "*";
24730
+ to: "pick_queue";
24731
+ isOneToOne: true;
24732
+ isSetofReturn: false;
24733
+ };
24734
+ };
24735
+ pick_reset_print_jobs: {
24736
+ Args: {
24737
+ _cart_ids: string[];
24738
+ _job_ids: string[];
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("./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("./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("./types").Json;
24776
+ };
24777
+ SetofOptions: {
24778
+ from: "*";
24779
+ to: "pick_queue";
24780
+ isOneToOne: true;
24781
+ isSetofReturn: false;
24782
+ };
24783
+ };
24784
+ pick_restore_to_queue: {
24785
+ Args: {
24786
+ _queue_item_id: string;
24787
+ _session_id: string;
24788
+ };
24789
+ Returns: {
24790
+ announced_at: string;
24791
+ assigned_user_id: string | null;
24792
+ barcode: string | null;
24793
+ cancelled_at: string | null;
24794
+ cart_count: number;
24795
+ completed_at: string | null;
24796
+ country_code: string | null;
24797
+ created_at: string;
24798
+ customer_name: string | null;
24799
+ delivery_address: string | null;
24800
+ document_number: string | null;
24801
+ document_type_id: string | null;
24802
+ due_at: string | null;
24803
+ id: string;
24804
+ is_urgent: boolean;
24805
+ line_count: number;
24806
+ order_number: string | null;
24807
+ order_type: string | null;
24808
+ payload: import("./types").Json;
24809
+ print_count: number;
24810
+ print_job_id: string | null;
24811
+ printed_at: string | null;
24812
+ printed_by: string | null;
24813
+ printed_cart_ids: import("./types").Json;
24814
+ printer_id: string | null;
24815
+ priority: number;
24816
+ reference: string | null;
24817
+ route: string | null;
24818
+ screen_id: string | null;
24819
+ station_id: string | null;
24820
+ status_id: string | null;
24821
+ updated_at: string;
24822
+ warnings: import("./types").Json;
24823
+ };
24824
+ SetofOptions: {
24825
+ from: "*";
24826
+ to: "pick_queue";
24827
+ isOneToOne: true;
24828
+ isSetofReturn: false;
24829
+ };
24830
+ };
22965
24831
  pick_seed_reference_data: {
22966
24832
  Args: never;
22967
24833
  Returns: import("./types").Json;
@@ -23011,6 +24877,12 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
23011
24877
  };
23012
24878
  Returns: string;
23013
24879
  };
24880
+ pick_sync_pick_day: {
24881
+ Args: {
24882
+ _day: string;
24883
+ };
24884
+ Returns: import("./types").Json;
24885
+ };
23014
24886
  pick_sync_queue_throttled: {
23015
24887
  Args: {
23016
24888
  _min_seconds?: number;
@@ -23240,6 +25112,20 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
23240
25112
  };
23241
25113
  Returns: boolean;
23242
25114
  };
25115
+ release_local_pdf_job: {
25116
+ Args: {
25117
+ _job_id: string;
25118
+ _writer_id: string;
25119
+ };
25120
+ Returns: boolean;
25121
+ };
25122
+ release_print_queue_lease: {
25123
+ Args: {
25124
+ _houder: string;
25125
+ _naam: string;
25126
+ };
25127
+ Returns: boolean;
25128
+ };
23243
25129
  release_stale_order_invoice_links: {
23244
25130
  Args: {
23245
25131
  _minutes?: number;
@@ -23260,6 +25146,12 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
23260
25146
  };
23261
25147
  Returns: import("./types").Json;
23262
25148
  };
25149
+ reset_cart_layer_positions: {
25150
+ Args: {
25151
+ p_cart_id: string;
25152
+ };
25153
+ Returns: number;
25154
+ };
23263
25155
  reset_floriday_sync_cursor: {
23264
25156
  Args: {
23265
25157
  p_connection_id: string;
@@ -23323,6 +25215,15 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
23323
25215
  };
23324
25216
  Returns: import("./types").Json;
23325
25217
  };
25218
+ roles_without_enum_mapping: {
25219
+ Args: never;
25220
+ Returns: {
25221
+ assignment_count: number;
25222
+ id: string;
25223
+ key: string;
25224
+ name: string;
25225
+ }[];
25226
+ };
23326
25227
  ruim_print_jobs_op: {
23327
25228
  Args: {
23328
25229
  _bewaar_dagen?: number;
@@ -23337,6 +25238,10 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
23337
25238
  Args: never;
23338
25239
  Returns: undefined;
23339
25240
  };
25241
+ run_floriday_stock_reconcile: {
25242
+ Args: never;
25243
+ Returns: undefined;
25244
+ };
23340
25245
  run_logistics_tasks_dispatch: {
23341
25246
  Args: never;
23342
25247
  Returns: undefined;
@@ -23355,18 +25260,98 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
23355
25260
  };
23356
25261
  Returns: import("./types").Json;
23357
25262
  };
25263
+ scan_complete_cart: {
25264
+ Args: {
25265
+ p_allow_reprint?: boolean;
25266
+ p_cart_id: string;
25267
+ p_print?: boolean;
25268
+ p_scanner_id?: string;
25269
+ };
25270
+ Returns: import("./types").Json;
25271
+ };
23358
25272
  scan_dashboard_stats: {
23359
25273
  Args: {
23360
25274
  p_dagen?: number;
23361
25275
  };
23362
25276
  Returns: import("./types").Json;
23363
25277
  };
25278
+ scan_eindcontrole: {
25279
+ Args: {
25280
+ p_barcode: string;
25281
+ p_scanner_id?: string;
25282
+ };
25283
+ Returns: import("./types").Json;
25284
+ };
23364
25285
  scan_finish_kar: {
23365
25286
  Args: {
23366
25287
  p_kar_id: string;
23367
25288
  };
23368
25289
  Returns: import("./types").Json;
23369
25290
  };
25291
+ scan_kar_compleet: {
25292
+ Args: {
25293
+ p_allow_reprint?: boolean;
25294
+ p_sessie_id: string;
25295
+ };
25296
+ Returns: import("./types").Json;
25297
+ };
25298
+ scan_kar_regels: {
25299
+ Args: {
25300
+ p_cart_id: string;
25301
+ };
25302
+ Returns: import("./types").Json;
25303
+ };
25304
+ scan_log_code: {
25305
+ Args: {
25306
+ p_code: string;
25307
+ p_latency_ms?: number;
25308
+ p_message?: string;
25309
+ p_result: string;
25310
+ p_scanner_key?: string;
25311
+ };
25312
+ Returns: string;
25313
+ };
25314
+ scan_open_pakbonnen: {
25315
+ Args: {
25316
+ p_dagen?: number;
25317
+ };
25318
+ Returns: import("./types").Json;
25319
+ };
25320
+ scan_pakbon_lookup: {
25321
+ Args: {
25322
+ p_barcode: string;
25323
+ };
25324
+ Returns: import("./types").Json;
25325
+ };
25326
+ scan_pakbon_opnieuw: {
25327
+ Args: {
25328
+ p_barcode: string;
25329
+ p_scanner_id?: string;
25330
+ };
25331
+ Returns: import("./types").Json;
25332
+ };
25333
+ scan_pakbon_toevoegen: {
25334
+ Args: {
25335
+ p_barcode: string;
25336
+ p_medewerker?: string;
25337
+ p_regels?: import("./types").Json;
25338
+ p_scanner_id: string;
25339
+ };
25340
+ Returns: import("./types").Json;
25341
+ };
25342
+ scan_print_restpakbon: {
25343
+ Args: {
25344
+ p_printer_id?: string;
25345
+ p_restpakbon_id: string;
25346
+ };
25347
+ Returns: import("./types").Json;
25348
+ };
25349
+ scan_print_verzendbrief: {
25350
+ Args: {
25351
+ p_sessie_id: string;
25352
+ };
25353
+ Returns: import("./types").Json;
25354
+ };
23370
25355
  scan_register_item: {
23371
25356
  Args: {
23372
25357
  p_kar_id: string;
@@ -23385,6 +25370,25 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
23385
25370
  };
23386
25371
  Returns: import("./types").Json;
23387
25372
  };
25373
+ scan_restpakbon_geprint: {
25374
+ Args: {
25375
+ p_id: string;
25376
+ p_print_job_id?: string;
25377
+ };
25378
+ Returns: undefined;
25379
+ };
25380
+ scan_sessie_annuleren: {
25381
+ Args: {
25382
+ p_sessie_id: string;
25383
+ };
25384
+ Returns: undefined;
25385
+ };
25386
+ scan_sessie_open: {
25387
+ Args: {
25388
+ p_scanner_id: string;
25389
+ };
25390
+ Returns: import("./types").Json;
25391
+ };
23388
25392
  scan_start_kar: {
23389
25393
  Args: {
23390
25394
  p_medewerker_id?: string;
@@ -23403,6 +25407,12 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
23403
25407
  };
23404
25408
  Returns: import("./types").Json;
23405
25409
  };
25410
+ scan_verzendbrief_regels: {
25411
+ Args: {
25412
+ p_sessie_id: string;
25413
+ };
25414
+ Returns: import("./types").Json;
25415
+ };
23406
25416
  schedule_floriday_additional_services_sync: {
23407
25417
  Args: {
23408
25418
  p_apikey: string;
@@ -23718,6 +25728,13 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
23718
25728
  };
23719
25729
  Returns: import("./types").Json;
23720
25730
  };
25731
+ swap_cart_layer_positions: {
25732
+ Args: {
25733
+ p_a: string;
25734
+ p_b: string;
25735
+ };
25736
+ Returns: undefined;
25737
+ };
23721
25738
  switch_time_log: {
23722
25739
  Args: {
23723
25740
  p_employee_id: string;
@@ -23750,6 +25767,12 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
23750
25767
  };
23751
25768
  Returns: undefined;
23752
25769
  };
25770
+ sync_order_item_fusten: {
25771
+ Args: {
25772
+ _order_item_id: string;
25773
+ };
25774
+ Returns: undefined;
25775
+ };
23753
25776
  sync_product_group_belading: {
23754
25777
  Args: {
23755
25778
  _group_id: string;
@@ -23856,6 +25879,12 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
23856
25879
  Args: never;
23857
25880
  Returns: string;
23858
25881
  };
25882
+ wake_print_queue: {
25883
+ Args: {
25884
+ _min_interval_ms?: number;
25885
+ };
25886
+ Returns: number;
25887
+ };
23859
25888
  werkbon_totalen: {
23860
25889
  Args: {
23861
25890
  _werkbon_id: string;
@@ -23888,10 +25917,18 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
23888
25917
  };
23889
25918
  Returns: import("./types").Json;
23890
25919
  };
25920
+ wo_set_status: {
25921
+ Args: {
25922
+ _reason?: string;
25923
+ _status: string;
25924
+ _work_order_id: string;
25925
+ };
25926
+ Returns: import("./types").Json;
25927
+ };
23891
25928
  };
23892
25929
  Enums: {
23893
25930
  ai_import_status: "nieuw" | "verwerken" | "bevestigen" | "klaar" | "mislukt";
23894
- app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie";
25931
+ app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie" | "superadmin";
23895
25932
  doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon" | "veilingbon" | "afleverbrief" | "veilingbrief";
23896
25933
  doc_orientation: "portrait" | "landscape";
23897
25934
  exact_env: "staging" | "live";