@flowselections/logistiek-engine 1.0.27 → 1.0.28

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (95) hide show
  1. package/README.md +24 -24
  2. package/dist-lib/components/AfmetingenBronnenCard.d.ts +2 -0
  3. package/dist-lib/components/AfmetingenBronnenCard.d.ts.map +1 -0
  4. package/dist-lib/components/AfmetingenBronnenCard.js +46 -0
  5. package/dist-lib/components/BufferDebugCard.d.ts.map +1 -1
  6. package/dist-lib/components/BufferDebugCard.js +6 -1
  7. package/dist-lib/components/ConsistentieCard.d.ts.map +1 -1
  8. package/dist-lib/components/ConsistentieCard.js +1 -1
  9. package/dist-lib/components/KarplanStatusCard.d.ts +2 -0
  10. package/dist-lib/components/KarplanStatusCard.d.ts.map +1 -0
  11. package/dist-lib/components/KarplanStatusCard.js +31 -0
  12. package/dist-lib/components/RegiePage.d.ts.map +1 -1
  13. package/dist-lib/components/RegiePage.js +3 -1
  14. package/dist-lib/components/RuleEnginePage.d.ts.map +1 -1
  15. package/dist-lib/components/RuleEnginePage.js +7 -4
  16. package/dist-lib/components/rule-engine/FloridayConnectionBanner.d.ts +2 -0
  17. package/dist-lib/components/rule-engine/FloridayConnectionBanner.d.ts.map +1 -0
  18. package/dist-lib/components/rule-engine/FloridayConnectionBanner.js +41 -0
  19. package/dist-lib/components/rule-engine/RuleFieldInput.d.ts.map +1 -1
  20. package/dist-lib/components/rule-engine/RuleFieldInput.js +9 -0
  21. package/dist-lib/hooks/useRecalcJob.d.ts.map +1 -1
  22. package/dist-lib/hooks/useRecalcJob.js +26 -1
  23. package/dist-lib/hooks/useScannersPrinters.d.ts +11 -0
  24. package/dist-lib/hooks/useScannersPrinters.d.ts.map +1 -0
  25. package/dist-lib/hooks/useScannersPrinters.js +65 -0
  26. package/dist-lib/index.d.ts +2 -0
  27. package/dist-lib/index.d.ts.map +1 -1
  28. package/dist-lib/index.js +2 -0
  29. package/dist-lib/integrations/supabase/auth-middleware.d.ts +2063 -78
  30. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  31. package/dist-lib/integrations/supabase/client.d.ts +20293 -0
  32. package/dist-lib/integrations/supabase/client.d.ts.map +1 -0
  33. package/dist-lib/integrations/supabase/client.js +13 -0
  34. package/dist-lib/integrations/supabase/client.server.d.ts +2063 -78
  35. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  36. package/dist-lib/integrations/supabase/client.server.js +1 -1
  37. package/dist-lib/integrations/supabase/moduleClient.d.ts +2063 -78
  38. package/dist-lib/integrations/supabase/moduleClient.d.ts.map +1 -1
  39. package/dist-lib/integrations/supabase/types.d.ts +2097 -68
  40. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  41. package/dist-lib/integrations/supabase/types.js +1 -0
  42. package/dist-lib/lib/attachAuthToken.d.ts +2 -0
  43. package/dist-lib/lib/attachAuthToken.d.ts.map +1 -0
  44. package/dist-lib/lib/attachAuthToken.js +50 -0
  45. package/dist-lib/lib/bufferMatching.d.ts.map +1 -1
  46. package/dist-lib/lib/bufferMatching.js +1 -0
  47. package/dist-lib/lib/cartPlanRequests.server.d.ts +13 -0
  48. package/dist-lib/lib/cartPlanRequests.server.d.ts.map +1 -0
  49. package/dist-lib/lib/cartPlanRequests.server.js +168 -0
  50. package/dist-lib/lib/controlScan.server.d.ts +12 -0
  51. package/dist-lib/lib/controlScan.server.d.ts.map +1 -0
  52. package/dist-lib/lib/controlScan.server.js +197 -0
  53. package/dist-lib/lib/dimensionData.server.d.ts +11 -1
  54. package/dist-lib/lib/dimensionData.server.d.ts.map +1 -1
  55. package/dist-lib/lib/dimensionData.server.js +58 -48
  56. package/dist-lib/lib/dimensionPlanner.d.ts +26 -1
  57. package/dist-lib/lib/dimensionPlanner.d.ts.map +1 -1
  58. package/dist-lib/lib/dimensionPlanner.js +37 -6
  59. package/dist-lib/lib/floridayDocuments.functions.d.ts +6240 -285
  60. package/dist-lib/lib/floridayDocuments.functions.d.ts.map +1 -1
  61. package/dist-lib/lib/floridayDocuments.functions.js +4 -3
  62. package/dist-lib/lib/floridayPush.functions.d.ts +2064 -79
  63. package/dist-lib/lib/floridayPush.functions.d.ts.map +1 -1
  64. package/dist-lib/lib/floridayPush.functions.js +2 -1
  65. package/dist-lib/lib/handlers/logistics-tick.server.d.ts.map +1 -1
  66. package/dist-lib/lib/handlers/logistics-tick.server.js +57 -0
  67. package/dist-lib/lib/loadCarrierPlanning.functions.d.ts +10302 -377
  68. package/dist-lib/lib/loadCarrierPlanning.functions.d.ts.map +1 -1
  69. package/dist-lib/lib/loadCarrierPlanning.functions.js +6 -5
  70. package/dist-lib/lib/loadCarrierPlanning.server.d.ts +42 -0
  71. package/dist-lib/lib/loadCarrierPlanning.server.d.ts.map +1 -1
  72. package/dist-lib/lib/loadCarrierPlanning.server.js +563 -31
  73. package/dist-lib/lib/logisticsPlanner.d.ts.map +1 -1
  74. package/dist-lib/lib/logisticsPlanner.js +24 -9
  75. package/dist-lib/lib/logisticsRecalcJob.functions.d.ts +4163 -193
  76. package/dist-lib/lib/logisticsRecalcJob.functions.d.ts.map +1 -1
  77. package/dist-lib/lib/logisticsRecalcJob.functions.js +3 -2
  78. package/dist-lib/lib/logisticsRecalcJob.server.d.ts.map +1 -1
  79. package/dist-lib/lib/logisticsRecalcJob.server.js +1 -0
  80. package/dist-lib/lib/logisticsRecalculate.functions.d.ts +2064 -79
  81. package/dist-lib/lib/logisticsRecalculate.functions.d.ts.map +1 -1
  82. package/dist-lib/lib/logisticsRecalculate.functions.js +3 -1
  83. package/dist-lib/lib/modulePrompts.d.ts.map +1 -1
  84. package/dist-lib/lib/modulePrompts.js +2560 -1586
  85. package/dist-lib/lib/planQueue.server.d.ts.map +1 -1
  86. package/dist-lib/lib/planQueue.server.js +6 -0
  87. package/dist-lib/lib/readableServerErrors.d.ts +2 -0
  88. package/dist-lib/lib/readableServerErrors.d.ts.map +1 -0
  89. package/dist-lib/lib/readableServerErrors.js +36 -0
  90. package/dist-lib/lib/ruleEngineSchema.d.ts +1 -1
  91. package/dist-lib/lib/ruleEngineSchema.d.ts.map +1 -1
  92. package/dist-lib/lib/ruleEngineSchema.js +72 -51
  93. package/dist-lib/lib/ruleEngineWizard.d.ts.map +1 -1
  94. package/dist-lib/lib/ruleEngineWizard.js +5 -6
  95. package/package.json +1 -1
@@ -691,6 +691,7 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
691
691
  raw: import("./types").Json;
692
692
  updated_at: string;
693
693
  valuta: string;
694
+ velden: import("./types").Json;
694
695
  };
695
696
  Insert: {
696
697
  artikelcode: string;
@@ -708,6 +709,7 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
708
709
  raw?: import("./types").Json;
709
710
  updated_at?: string;
710
711
  valuta?: string;
712
+ velden?: import("./types").Json;
711
713
  };
712
714
  Update: {
713
715
  artikelcode?: string;
@@ -725,6 +727,7 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
725
727
  raw?: import("./types").Json;
726
728
  updated_at?: string;
727
729
  valuta?: string;
730
+ velden?: import("./types").Json;
728
731
  };
729
732
  Relationships: [];
730
733
  };
@@ -1419,8 +1422,9 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
1419
1422
  Row: {
1420
1423
  assigned_at: string;
1421
1424
  cart_index: number;
1422
- cart_number: string;
1423
- day_seq: number;
1425
+ cart_number: string | null;
1426
+ day_seq: number | null;
1427
+ delivered_at: string | null;
1424
1428
  id: string;
1425
1429
  order_id: string;
1426
1430
  order_source: string;
@@ -1430,8 +1434,9 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
1430
1434
  Insert: {
1431
1435
  assigned_at?: string;
1432
1436
  cart_index: number;
1433
- cart_number: string;
1434
- day_seq: number;
1437
+ cart_number?: string | null;
1438
+ day_seq?: number | null;
1439
+ delivered_at?: string | null;
1435
1440
  id?: string;
1436
1441
  order_id: string;
1437
1442
  order_source: string;
@@ -1441,8 +1446,9 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
1441
1446
  Update: {
1442
1447
  assigned_at?: string;
1443
1448
  cart_index?: number;
1444
- cart_number?: string;
1445
- day_seq?: number;
1449
+ cart_number?: string | null;
1450
+ day_seq?: number | null;
1451
+ delivered_at?: string | null;
1446
1452
  id?: string;
1447
1453
  order_id?: string;
1448
1454
  order_source?: string;
@@ -1543,6 +1549,12 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
1543
1549
  updated_at?: string;
1544
1550
  };
1545
1551
  Relationships: [{
1552
+ foreignKeyName: "cart_planning_product_overrides_product_id_fkey";
1553
+ columns: ["product_id"];
1554
+ isOneToOne: true;
1555
+ referencedRelation: "logistics_product_dimensions";
1556
+ referencedColumns: ["product_id"];
1557
+ }, {
1546
1558
  foreignKeyName: "cart_planning_product_overrides_product_id_fkey";
1547
1559
  columns: ["product_id"];
1548
1560
  isOneToOne: true;
@@ -7070,6 +7082,51 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
7070
7082
  };
7071
7083
  Relationships: [];
7072
7084
  };
7085
+ floriday_status_sync_queue: {
7086
+ Row: {
7087
+ attempts: number;
7088
+ created_at: string;
7089
+ error: string | null;
7090
+ floriday_sales_order_id: string;
7091
+ order_id: string;
7092
+ processed_at: string | null;
7093
+ requested_at: string;
7094
+ state: string;
7095
+ target_status: string;
7096
+ updated_at: string;
7097
+ };
7098
+ Insert: {
7099
+ attempts?: number;
7100
+ created_at?: string;
7101
+ error?: string | null;
7102
+ floriday_sales_order_id: string;
7103
+ order_id: string;
7104
+ processed_at?: string | null;
7105
+ requested_at?: string;
7106
+ state?: string;
7107
+ target_status: string;
7108
+ updated_at?: string;
7109
+ };
7110
+ Update: {
7111
+ attempts?: number;
7112
+ created_at?: string;
7113
+ error?: string | null;
7114
+ floriday_sales_order_id?: string;
7115
+ order_id?: string;
7116
+ processed_at?: string | null;
7117
+ requested_at?: string;
7118
+ state?: string;
7119
+ target_status?: string;
7120
+ updated_at?: string;
7121
+ };
7122
+ Relationships: [{
7123
+ foreignKeyName: "floriday_status_sync_queue_order_id_fkey";
7124
+ columns: ["order_id"];
7125
+ isOneToOne: true;
7126
+ referencedRelation: "orders";
7127
+ referencedColumns: ["id"];
7128
+ }];
7129
+ };
7073
7130
  floriday_sync_cursors: {
7074
7131
  Row: {
7075
7132
  connection_id: string;
@@ -8304,10 +8361,12 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
8304
8361
  general_email: string | null;
8305
8362
  general_phone: string | null;
8306
8363
  id: string;
8364
+ kvk_number: string | null;
8307
8365
  legacy_customer_id: string | null;
8308
8366
  name: string;
8309
8367
  segment: Database["public"]["Enums"]["itk_customer_segment"];
8310
8368
  updated_at: string;
8369
+ vat_number: string | null;
8311
8370
  };
8312
8371
  Insert: {
8313
8372
  billing_city?: string | null;
@@ -8318,10 +8377,12 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
8318
8377
  general_email?: string | null;
8319
8378
  general_phone?: string | null;
8320
8379
  id?: string;
8380
+ kvk_number?: string | null;
8321
8381
  legacy_customer_id?: string | null;
8322
8382
  name: string;
8323
8383
  segment?: Database["public"]["Enums"]["itk_customer_segment"];
8324
8384
  updated_at?: string;
8385
+ vat_number?: string | null;
8325
8386
  };
8326
8387
  Update: {
8327
8388
  billing_city?: string | null;
@@ -8332,10 +8393,12 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
8332
8393
  general_email?: string | null;
8333
8394
  general_phone?: string | null;
8334
8395
  id?: string;
8396
+ kvk_number?: string | null;
8335
8397
  legacy_customer_id?: string | null;
8336
8398
  name?: string;
8337
8399
  segment?: Database["public"]["Enums"]["itk_customer_segment"];
8338
8400
  updated_at?: string;
8401
+ vat_number?: string | null;
8339
8402
  };
8340
8403
  Relationships: [];
8341
8404
  };
@@ -8369,6 +8432,117 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
8369
8432
  };
8370
8433
  Relationships: [];
8371
8434
  };
8435
+ itk_handover_github_scan: {
8436
+ Row: {
8437
+ gescand_op: string;
8438
+ gevonden: boolean;
8439
+ melding: string | null;
8440
+ module_id: string | null;
8441
+ repo: string;
8442
+ };
8443
+ Insert: {
8444
+ gescand_op?: string;
8445
+ gevonden?: boolean;
8446
+ melding?: string | null;
8447
+ module_id?: string | null;
8448
+ repo: string;
8449
+ };
8450
+ Update: {
8451
+ gescand_op?: string;
8452
+ gevonden?: boolean;
8453
+ melding?: string | null;
8454
+ module_id?: string | null;
8455
+ repo?: string;
8456
+ };
8457
+ Relationships: [];
8458
+ };
8459
+ itk_handover_module_meta: {
8460
+ Row: {
8461
+ check_aangevraagd_op: string | null;
8462
+ check_nodig: boolean;
8463
+ check_reden: string | null;
8464
+ created_at: string;
8465
+ module_id: string;
8466
+ project_url: string | null;
8467
+ publicatie_url: string | null;
8468
+ updated_at: string;
8469
+ };
8470
+ Insert: {
8471
+ check_aangevraagd_op?: string | null;
8472
+ check_nodig?: boolean;
8473
+ check_reden?: string | null;
8474
+ created_at?: string;
8475
+ module_id: string;
8476
+ project_url?: string | null;
8477
+ publicatie_url?: string | null;
8478
+ updated_at?: string;
8479
+ };
8480
+ Update: {
8481
+ check_aangevraagd_op?: string | null;
8482
+ check_nodig?: boolean;
8483
+ check_reden?: string | null;
8484
+ created_at?: string;
8485
+ module_id?: string;
8486
+ project_url?: string | null;
8487
+ publicatie_url?: string | null;
8488
+ updated_at?: string;
8489
+ };
8490
+ Relationships: [];
8491
+ };
8492
+ itk_handover_project_modules: {
8493
+ Row: {
8494
+ created_at: string;
8495
+ id: string;
8496
+ module_id: string;
8497
+ project_id: string;
8498
+ updated_at: string;
8499
+ };
8500
+ Insert: {
8501
+ created_at?: string;
8502
+ id?: string;
8503
+ module_id: string;
8504
+ project_id: string;
8505
+ updated_at?: string;
8506
+ };
8507
+ Update: {
8508
+ created_at?: string;
8509
+ id?: string;
8510
+ module_id?: string;
8511
+ project_id?: string;
8512
+ updated_at?: string;
8513
+ };
8514
+ Relationships: [{
8515
+ foreignKeyName: "itk_handover_project_modules_project_id_fkey";
8516
+ columns: ["project_id"];
8517
+ isOneToOne: false;
8518
+ referencedRelation: "itk_handover_projecten";
8519
+ referencedColumns: ["id"];
8520
+ }];
8521
+ };
8522
+ itk_handover_projecten: {
8523
+ Row: {
8524
+ created_at: string;
8525
+ id: string;
8526
+ naam: string;
8527
+ omschrijving: string | null;
8528
+ updated_at: string;
8529
+ };
8530
+ Insert: {
8531
+ created_at?: string;
8532
+ id?: string;
8533
+ naam: string;
8534
+ omschrijving?: string | null;
8535
+ updated_at?: string;
8536
+ };
8537
+ Update: {
8538
+ created_at?: string;
8539
+ id?: string;
8540
+ naam?: string;
8541
+ omschrijving?: string | null;
8542
+ updated_at?: string;
8543
+ };
8544
+ Relationships: [];
8545
+ };
8372
8546
  itk_handover_rechten: {
8373
8547
  Row: {
8374
8548
  created_at: string;
@@ -8396,42 +8570,33 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
8396
8570
  };
8397
8571
  Relationships: [];
8398
8572
  };
8399
- itk_handover_tokens: {
8573
+ itk_module_fingerprints: {
8400
8574
  Row: {
8401
- aangemaakt_door: string | null;
8402
8575
  created_at: string;
8576
+ gemaakt_op: string;
8577
+ hash: string;
8403
8578
  id: string;
8404
- is_actief: boolean;
8405
- laatst_gebruikt_op: string | null;
8406
- label: string;
8407
8579
  module_id: string;
8408
- token_hash: string;
8580
+ payload: import("./types").Json;
8409
8581
  updated_at: string;
8410
- verloopt_op: string | null;
8411
8582
  };
8412
8583
  Insert: {
8413
- aangemaakt_door?: string | null;
8414
8584
  created_at?: string;
8585
+ gemaakt_op?: string;
8586
+ hash: string;
8415
8587
  id?: string;
8416
- is_actief?: boolean;
8417
- laatst_gebruikt_op?: string | null;
8418
- label?: string;
8419
8588
  module_id: string;
8420
- token_hash: string;
8589
+ payload?: import("./types").Json;
8421
8590
  updated_at?: string;
8422
- verloopt_op?: string | null;
8423
8591
  };
8424
8592
  Update: {
8425
- aangemaakt_door?: string | null;
8426
8593
  created_at?: string;
8594
+ gemaakt_op?: string;
8595
+ hash?: string;
8427
8596
  id?: string;
8428
- is_actief?: boolean;
8429
- laatst_gebruikt_op?: string | null;
8430
- label?: string;
8431
8597
  module_id?: string;
8432
- token_hash?: string;
8598
+ payload?: import("./types").Json;
8433
8599
  updated_at?: string;
8434
- verloopt_op?: string | null;
8435
8600
  };
8436
8601
  Relationships: [];
8437
8602
  };
@@ -8439,6 +8604,11 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
8439
8604
  Row: {
8440
8605
  bevindingen: string | null;
8441
8606
  bezit_tabellen: string[];
8607
+ bron_commit: string | null;
8608
+ bron_pad: string | null;
8609
+ bron_repo: string | null;
8610
+ bron_soort: string | null;
8611
+ bron_versie: string | null;
8442
8612
  conflicten_snapshot: import("./types").Json;
8443
8613
  contractfuncties: string[];
8444
8614
  created_at: string;
@@ -8449,6 +8619,8 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
8449
8619
  id: string;
8450
8620
  inhoud_md: string;
8451
8621
  is_actueel: boolean;
8622
+ is_gearchiveerd: boolean;
8623
+ laatst_gecontroleerd_op: string | null;
8452
8624
  module_id: string;
8453
8625
  module_titel: string;
8454
8626
  ontbrekende_contracten: string[];
@@ -8459,6 +8631,11 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
8459
8631
  Insert: {
8460
8632
  bevindingen?: string | null;
8461
8633
  bezit_tabellen?: string[];
8634
+ bron_commit?: string | null;
8635
+ bron_pad?: string | null;
8636
+ bron_repo?: string | null;
8637
+ bron_soort?: string | null;
8638
+ bron_versie?: string | null;
8462
8639
  conflicten_snapshot?: import("./types").Json;
8463
8640
  contractfuncties?: string[];
8464
8641
  created_at?: string;
@@ -8469,6 +8646,8 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
8469
8646
  id?: string;
8470
8647
  inhoud_md: string;
8471
8648
  is_actueel?: boolean;
8649
+ is_gearchiveerd?: boolean;
8650
+ laatst_gecontroleerd_op?: string | null;
8472
8651
  module_id: string;
8473
8652
  module_titel: string;
8474
8653
  ontbrekende_contracten?: string[];
@@ -8479,6 +8658,11 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
8479
8658
  Update: {
8480
8659
  bevindingen?: string | null;
8481
8660
  bezit_tabellen?: string[];
8661
+ bron_commit?: string | null;
8662
+ bron_pad?: string | null;
8663
+ bron_repo?: string | null;
8664
+ bron_soort?: string | null;
8665
+ bron_versie?: string | null;
8482
8666
  conflicten_snapshot?: import("./types").Json;
8483
8667
  contractfuncties?: string[];
8484
8668
  created_at?: string;
@@ -8489,6 +8673,8 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
8489
8673
  id?: string;
8490
8674
  inhoud_md?: string;
8491
8675
  is_actueel?: boolean;
8676
+ is_gearchiveerd?: boolean;
8677
+ laatst_gecontroleerd_op?: string | null;
8492
8678
  module_id?: string;
8493
8679
  module_titel?: string;
8494
8680
  ontbrekende_contracten?: string[];
@@ -8543,6 +8729,39 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
8543
8729
  };
8544
8730
  Relationships: [];
8545
8731
  };
8732
+ itk_module_wijzigingen: {
8733
+ Row: {
8734
+ created_at: string;
8735
+ geconstateerd_op: string;
8736
+ id: string;
8737
+ module_id: string;
8738
+ omschrijving: string;
8739
+ soort: string;
8740
+ updated_at: string;
8741
+ was_na_publicatie: boolean;
8742
+ };
8743
+ Insert: {
8744
+ created_at?: string;
8745
+ geconstateerd_op?: string;
8746
+ id?: string;
8747
+ module_id: string;
8748
+ omschrijving: string;
8749
+ soort: string;
8750
+ updated_at?: string;
8751
+ was_na_publicatie?: boolean;
8752
+ };
8753
+ Update: {
8754
+ created_at?: string;
8755
+ geconstateerd_op?: string;
8756
+ id?: string;
8757
+ module_id?: string;
8758
+ omschrijving?: string;
8759
+ soort?: string;
8760
+ updated_at?: string;
8761
+ was_na_publicatie?: boolean;
8762
+ };
8763
+ Relationships: [];
8764
+ };
8546
8765
  itk_offerte_events: {
8547
8766
  Row: {
8548
8767
  created_at: string;
@@ -8781,12 +9000,24 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
8781
9000
  isOneToOne: false;
8782
9001
  referencedRelation: "werkbonnen";
8783
9002
  referencedColumns: ["id"];
9003
+ }, {
9004
+ foreignKeyName: "itk_offertes_follow_up_werkbon_id_fkey";
9005
+ columns: ["follow_up_werkbon_id"];
9006
+ isOneToOne: false;
9007
+ referencedRelation: "wo_overview";
9008
+ referencedColumns: ["id"];
8784
9009
  }, {
8785
9010
  foreignKeyName: "itk_offertes_werkbon_id_fkey";
8786
9011
  columns: ["werkbon_id"];
8787
9012
  isOneToOne: false;
8788
9013
  referencedRelation: "werkbonnen";
8789
9014
  referencedColumns: ["id"];
9015
+ }, {
9016
+ foreignKeyName: "itk_offertes_werkbon_id_fkey";
9017
+ columns: ["werkbon_id"];
9018
+ isOneToOne: false;
9019
+ referencedRelation: "wo_overview";
9020
+ referencedColumns: ["id"];
8790
9021
  }, {
8791
9022
  foreignKeyName: "itk_offertes_work_location_id_fkey";
8792
9023
  columns: ["work_location_id"];
@@ -9087,6 +9318,12 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
9087
9318
  isOneToOne: false;
9088
9319
  referencedRelation: "product_categories";
9089
9320
  referencedColumns: ["id"];
9321
+ }, {
9322
+ foreignKeyName: "local_customer_agreements_product_id_fkey";
9323
+ columns: ["product_id"];
9324
+ isOneToOne: false;
9325
+ referencedRelation: "logistics_product_dimensions";
9326
+ referencedColumns: ["product_id"];
9090
9327
  }, {
9091
9328
  foreignKeyName: "local_customer_agreements_product_id_fkey";
9092
9329
  columns: ["product_id"];
@@ -9153,6 +9390,12 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
9153
9390
  isOneToOne: false;
9154
9391
  referencedRelation: "product_categories";
9155
9392
  referencedColumns: ["id"];
9393
+ }, {
9394
+ foreignKeyName: "local_customer_price_groups_product_id_fkey";
9395
+ columns: ["product_id"];
9396
+ isOneToOne: false;
9397
+ referencedRelation: "logistics_product_dimensions";
9398
+ referencedColumns: ["product_id"];
9156
9399
  }, {
9157
9400
  foreignKeyName: "local_customer_price_groups_product_id_fkey";
9158
9401
  columns: ["product_id"];
@@ -9219,6 +9462,12 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
9219
9462
  isOneToOne: false;
9220
9463
  referencedRelation: "product_categories";
9221
9464
  referencedColumns: ["id"];
9465
+ }, {
9466
+ foreignKeyName: "local_customer_sales_strategies_product_id_fkey";
9467
+ columns: ["product_id"];
9468
+ isOneToOne: false;
9469
+ referencedRelation: "logistics_product_dimensions";
9470
+ referencedColumns: ["product_id"];
9222
9471
  }, {
9223
9472
  foreignKeyName: "local_customer_sales_strategies_product_id_fkey";
9224
9473
  columns: ["product_id"];
@@ -9422,6 +9671,75 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
9422
9671
  };
9423
9672
  Relationships: [];
9424
9673
  };
9674
+ logistics_control_scan: {
9675
+ Row: {
9676
+ approved_at: string | null;
9677
+ attempts: number;
9678
+ barcode: string;
9679
+ cart_id: string;
9680
+ created_at: string;
9681
+ document_url: string | null;
9682
+ error: string | null;
9683
+ error_code: string | null;
9684
+ fulfillment_order_id: string | null;
9685
+ id: string;
9686
+ is_floriday: boolean;
9687
+ locked_until: string | null;
9688
+ order_id: string | null;
9689
+ order_number: string | null;
9690
+ print_job_id: string | null;
9691
+ printed_at: string | null;
9692
+ printer_id: string | null;
9693
+ scanner_id: string | null;
9694
+ status: string;
9695
+ updated_at: string;
9696
+ };
9697
+ Insert: {
9698
+ approved_at?: string | null;
9699
+ attempts?: number;
9700
+ barcode: string;
9701
+ cart_id: string;
9702
+ created_at?: string;
9703
+ document_url?: string | null;
9704
+ error?: string | null;
9705
+ error_code?: string | null;
9706
+ fulfillment_order_id?: string | null;
9707
+ id?: string;
9708
+ is_floriday?: boolean;
9709
+ locked_until?: string | null;
9710
+ order_id?: string | null;
9711
+ order_number?: string | null;
9712
+ print_job_id?: string | null;
9713
+ printed_at?: string | null;
9714
+ printer_id?: string | null;
9715
+ scanner_id?: string | null;
9716
+ status?: string;
9717
+ updated_at?: string;
9718
+ };
9719
+ Update: {
9720
+ approved_at?: string | null;
9721
+ attempts?: number;
9722
+ barcode?: string;
9723
+ cart_id?: string;
9724
+ created_at?: string;
9725
+ document_url?: string | null;
9726
+ error?: string | null;
9727
+ error_code?: string | null;
9728
+ fulfillment_order_id?: string | null;
9729
+ id?: string;
9730
+ is_floriday?: boolean;
9731
+ locked_until?: string | null;
9732
+ order_id?: string | null;
9733
+ order_number?: string | null;
9734
+ print_job_id?: string | null;
9735
+ printed_at?: string | null;
9736
+ printer_id?: string | null;
9737
+ scanner_id?: string | null;
9738
+ status?: string;
9739
+ updated_at?: string;
9740
+ };
9741
+ Relationships: [];
9742
+ };
9425
9743
  logistics_decisions: {
9426
9744
  Row: {
9427
9745
  created_at: string;
@@ -9707,6 +10025,24 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
9707
10025
  };
9708
10026
  Relationships: [];
9709
10027
  };
10028
+ logistics_floriday_carrier_map: {
10029
+ Row: {
10030
+ carrier_code: string;
10031
+ created_at: string;
10032
+ floriday_code: string;
10033
+ };
10034
+ Insert: {
10035
+ carrier_code: string;
10036
+ created_at?: string;
10037
+ floriday_code: string;
10038
+ };
10039
+ Update: {
10040
+ carrier_code?: string;
10041
+ created_at?: string;
10042
+ floriday_code?: string;
10043
+ };
10044
+ Relationships: [];
10045
+ };
9710
10046
  logistics_floriday_pushes: {
9711
10047
  Row: {
9712
10048
  attempts: number;
@@ -9824,20 +10160,50 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
9824
10160
  referencedColumns: ["id"];
9825
10161
  }];
9826
10162
  };
9827
- logistics_pickup_moments: {
10163
+ logistics_layer_override_log: {
9828
10164
  Row: {
9829
- carrier_ref: string | null;
10165
+ cart_id: string;
9830
10166
  created_at: string;
10167
+ details: import("./types").Json;
9831
10168
  id: string;
9832
- label: string | null;
9833
- moment_date: string;
9834
- pickup_time: string;
9835
- sequence: number;
9836
- updated_at: string;
9837
- user_id: string;
10169
+ keg_id: string | null;
10170
+ product_id: string | null;
10171
+ reason: string;
9838
10172
  };
9839
10173
  Insert: {
9840
- carrier_ref?: string | null;
10174
+ cart_id: string;
10175
+ created_at?: string;
10176
+ details?: import("./types").Json;
10177
+ id?: string;
10178
+ keg_id?: string | null;
10179
+ product_id?: string | null;
10180
+ reason: string;
10181
+ };
10182
+ Update: {
10183
+ cart_id?: string;
10184
+ created_at?: string;
10185
+ details?: import("./types").Json;
10186
+ id?: string;
10187
+ keg_id?: string | null;
10188
+ product_id?: string | null;
10189
+ reason?: string;
10190
+ };
10191
+ Relationships: [];
10192
+ };
10193
+ logistics_pickup_moments: {
10194
+ Row: {
10195
+ carrier_ref: string | null;
10196
+ created_at: string;
10197
+ id: string;
10198
+ label: string | null;
10199
+ moment_date: string;
10200
+ pickup_time: string;
10201
+ sequence: number;
10202
+ updated_at: string;
10203
+ user_id: string;
10204
+ };
10205
+ Insert: {
10206
+ carrier_ref?: string | null;
9841
10207
  created_at?: string;
9842
10208
  id?: string;
9843
10209
  label?: string | null;
@@ -11029,6 +11395,12 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
11029
11395
  updated_at?: string;
11030
11396
  };
11031
11397
  Relationships: [{
11398
+ foreignKeyName: "mailbox_proposal_lines_product_id_fkey";
11399
+ columns: ["product_id"];
11400
+ isOneToOne: false;
11401
+ referencedRelation: "logistics_product_dimensions";
11402
+ referencedColumns: ["product_id"];
11403
+ }, {
11032
11404
  foreignKeyName: "mailbox_proposal_lines_product_id_fkey";
11033
11405
  columns: ["product_id"];
11034
11406
  isOneToOne: false;
@@ -12335,6 +12707,8 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
12335
12707
  order_buffers: {
12336
12708
  Row: {
12337
12709
  buffer_key: string;
12710
+ close_at: string | null;
12711
+ closed_at: string | null;
12338
12712
  created_at: string;
12339
12713
  customer_id: string | null;
12340
12714
  grouping_mode: string;
@@ -12346,6 +12720,8 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
12346
12720
  };
12347
12721
  Insert: {
12348
12722
  buffer_key: string;
12723
+ close_at?: string | null;
12724
+ closed_at?: string | null;
12349
12725
  created_at?: string;
12350
12726
  customer_id?: string | null;
12351
12727
  grouping_mode: string;
@@ -12357,6 +12733,8 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
12357
12733
  };
12358
12734
  Update: {
12359
12735
  buffer_key?: string;
12736
+ close_at?: string | null;
12737
+ closed_at?: string | null;
12360
12738
  created_at?: string;
12361
12739
  customer_id?: string | null;
12362
12740
  grouping_mode?: string;
@@ -12373,10 +12751,12 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
12373
12751
  boxes: number | null;
12374
12752
  cart_id: string;
12375
12753
  crates: number;
12754
+ crates_in_layer: number | null;
12376
12755
  crates_per_layer: number;
12377
12756
  created_at: string;
12378
12757
  id: string;
12379
12758
  layer_fraction: number;
12759
+ layer_index: number | null;
12380
12760
  layer_share_pct: number;
12381
12761
  layers_per_cart: number;
12382
12762
  order_item_id: string | null;
@@ -12389,10 +12769,12 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
12389
12769
  boxes?: number | null;
12390
12770
  cart_id: string;
12391
12771
  crates: number;
12772
+ crates_in_layer?: number | null;
12392
12773
  crates_per_layer?: number;
12393
12774
  created_at?: string;
12394
12775
  id?: string;
12395
12776
  layer_fraction?: number;
12777
+ layer_index?: number | null;
12396
12778
  layer_share_pct?: number;
12397
12779
  layers_per_cart?: number;
12398
12780
  order_item_id?: string | null;
@@ -12405,10 +12787,12 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
12405
12787
  boxes?: number | null;
12406
12788
  cart_id?: string;
12407
12789
  crates?: number;
12790
+ crates_in_layer?: number | null;
12408
12791
  crates_per_layer?: number;
12409
12792
  created_at?: string;
12410
12793
  id?: string;
12411
12794
  layer_fraction?: number;
12795
+ layer_index?: number | null;
12412
12796
  layer_share_pct?: number;
12413
12797
  layers_per_cart?: number;
12414
12798
  order_item_id?: string | null;
@@ -12429,6 +12813,12 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
12429
12813
  isOneToOne: false;
12430
12814
  referencedRelation: "order_items";
12431
12815
  referencedColumns: ["id"];
12816
+ }, {
12817
+ foreignKeyName: "order_cart_items_product_id_fkey";
12818
+ columns: ["product_id"];
12819
+ isOneToOne: false;
12820
+ referencedRelation: "logistics_product_dimensions";
12821
+ referencedColumns: ["product_id"];
12432
12822
  }, {
12433
12823
  foreignKeyName: "order_cart_items_product_id_fkey";
12434
12824
  columns: ["product_id"];
@@ -12437,6 +12827,93 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
12437
12827
  referencedColumns: ["id"];
12438
12828
  }];
12439
12829
  };
12830
+ order_cart_layer_positions: {
12831
+ Row: {
12832
+ algorithm_version: number | null;
12833
+ cart_id: string;
12834
+ created_at: string;
12835
+ height: number;
12836
+ id: string;
12837
+ keg_id: string;
12838
+ label: string | null;
12839
+ layer: number;
12840
+ layer_height: number | null;
12841
+ layer_width: number | null;
12842
+ manual_overridden_at: string | null;
12843
+ manual_overridden_by: string | null;
12844
+ manual_override: boolean;
12845
+ order_item_id: string | null;
12846
+ original_layer: number | null;
12847
+ original_x: number | null;
12848
+ original_y: number | null;
12849
+ product_id: string | null;
12850
+ rotation: number;
12851
+ source: string | null;
12852
+ updated_at: string;
12853
+ width: number;
12854
+ x: number;
12855
+ y: number;
12856
+ };
12857
+ Insert: {
12858
+ algorithm_version?: number | null;
12859
+ cart_id: string;
12860
+ created_at?: string;
12861
+ height: number;
12862
+ id?: string;
12863
+ keg_id: string;
12864
+ label?: string | null;
12865
+ layer: number;
12866
+ layer_height?: number | null;
12867
+ layer_width?: number | null;
12868
+ manual_overridden_at?: string | null;
12869
+ manual_overridden_by?: string | null;
12870
+ manual_override?: boolean;
12871
+ order_item_id?: string | null;
12872
+ original_layer?: number | null;
12873
+ original_x?: number | null;
12874
+ original_y?: number | null;
12875
+ product_id?: string | null;
12876
+ rotation?: number;
12877
+ source?: string | null;
12878
+ updated_at?: string;
12879
+ width: number;
12880
+ x: number;
12881
+ y: number;
12882
+ };
12883
+ Update: {
12884
+ algorithm_version?: number | null;
12885
+ cart_id?: string;
12886
+ created_at?: string;
12887
+ height?: number;
12888
+ id?: string;
12889
+ keg_id?: string;
12890
+ label?: string | null;
12891
+ layer?: number;
12892
+ layer_height?: number | null;
12893
+ layer_width?: number | null;
12894
+ manual_overridden_at?: string | null;
12895
+ manual_overridden_by?: string | null;
12896
+ manual_override?: boolean;
12897
+ order_item_id?: string | null;
12898
+ original_layer?: number | null;
12899
+ original_x?: number | null;
12900
+ original_y?: number | null;
12901
+ product_id?: string | null;
12902
+ rotation?: number;
12903
+ source?: string | null;
12904
+ updated_at?: string;
12905
+ width?: number;
12906
+ x?: number;
12907
+ y?: number;
12908
+ };
12909
+ Relationships: [{
12910
+ foreignKeyName: "order_cart_layer_positions_cart_id_fkey";
12911
+ columns: ["cart_id"];
12912
+ isOneToOne: false;
12913
+ referencedRelation: "order_carts";
12914
+ referencedColumns: ["id"];
12915
+ }];
12916
+ };
12440
12917
  order_carts: {
12441
12918
  Row: {
12442
12919
  algorithm_version: number;
@@ -12448,6 +12925,7 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
12448
12925
  id: string;
12449
12926
  is_auto: boolean;
12450
12927
  is_complete: boolean;
12928
+ layout_method: string | null;
12451
12929
  max_layers: number | null;
12452
12930
  moved_at: string | null;
12453
12931
  moved_from_moment_id: string | null;
@@ -12458,6 +12936,7 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
12458
12936
  pickup_locked: boolean;
12459
12937
  pickup_moment_id: string | null;
12460
12938
  source: string;
12939
+ total_carts: number | null;
12461
12940
  total_layers_used: number;
12462
12941
  updated_at: string;
12463
12942
  weight_kg: number | null;
@@ -12472,6 +12951,7 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
12472
12951
  id?: string;
12473
12952
  is_auto?: boolean;
12474
12953
  is_complete?: boolean;
12954
+ layout_method?: string | null;
12475
12955
  max_layers?: number | null;
12476
12956
  moved_at?: string | null;
12477
12957
  moved_from_moment_id?: string | null;
@@ -12482,6 +12962,7 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
12482
12962
  pickup_locked?: boolean;
12483
12963
  pickup_moment_id?: string | null;
12484
12964
  source?: string;
12965
+ total_carts?: number | null;
12485
12966
  total_layers_used?: number;
12486
12967
  updated_at?: string;
12487
12968
  weight_kg?: number | null;
@@ -12496,6 +12977,7 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
12496
12977
  id?: string;
12497
12978
  is_auto?: boolean;
12498
12979
  is_complete?: boolean;
12980
+ layout_method?: string | null;
12499
12981
  max_layers?: number | null;
12500
12982
  moved_at?: string | null;
12501
12983
  moved_from_moment_id?: string | null;
@@ -12506,6 +12988,7 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
12506
12988
  pickup_locked?: boolean;
12507
12989
  pickup_moment_id?: string | null;
12508
12990
  source?: string;
12991
+ total_carts?: number | null;
12509
12992
  total_layers_used?: number;
12510
12993
  updated_at?: string;
12511
12994
  weight_kg?: number | null;
@@ -12608,6 +13091,39 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
12608
13091
  };
12609
13092
  Relationships: [];
12610
13093
  };
13094
+ order_fust_bookings: {
13095
+ Row: {
13096
+ created_at: string;
13097
+ fust_type_id: string;
13098
+ id: string;
13099
+ order_item_id: string;
13100
+ quantity: number;
13101
+ updated_at: string;
13102
+ };
13103
+ Insert: {
13104
+ created_at?: string;
13105
+ fust_type_id: string;
13106
+ id?: string;
13107
+ order_item_id: string;
13108
+ quantity?: number;
13109
+ updated_at?: string;
13110
+ };
13111
+ Update: {
13112
+ created_at?: string;
13113
+ fust_type_id?: string;
13114
+ id?: string;
13115
+ order_item_id?: string;
13116
+ quantity?: number;
13117
+ updated_at?: string;
13118
+ };
13119
+ Relationships: [{
13120
+ foreignKeyName: "order_fust_bookings_fust_type_id_fkey";
13121
+ columns: ["fust_type_id"];
13122
+ isOneToOne: false;
13123
+ referencedRelation: "fust_types";
13124
+ referencedColumns: ["id"];
13125
+ }];
13126
+ };
12611
13127
  order_invoice_links: {
12612
13128
  Row: {
12613
13129
  administration_code: string | null;
@@ -12696,6 +13212,12 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
12696
13212
  isOneToOne: false;
12697
13213
  referencedRelation: "orders";
12698
13214
  referencedColumns: ["id"];
13215
+ }, {
13216
+ foreignKeyName: "order_items_product_id_fkey";
13217
+ columns: ["product_id"];
13218
+ isOneToOne: false;
13219
+ referencedRelation: "logistics_product_dimensions";
13220
+ referencedColumns: ["product_id"];
12699
13221
  }, {
12700
13222
  foreignKeyName: "order_items_product_id_fkey";
12701
13223
  columns: ["product_id"];
@@ -12843,6 +13365,9 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
12843
13365
  plan_locked_at: string | null;
12844
13366
  plan_locked_ref: string | null;
12845
13367
  status: string;
13368
+ status_changed_at: string;
13369
+ status_origin: string;
13370
+ status_sync_token: string | null;
12846
13371
  total: string;
12847
13372
  updated_at: string;
12848
13373
  };
@@ -12867,6 +13392,9 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
12867
13392
  plan_locked_at?: string | null;
12868
13393
  plan_locked_ref?: string | null;
12869
13394
  status?: string;
13395
+ status_changed_at?: string;
13396
+ status_origin?: string;
13397
+ status_sync_token?: string | null;
12870
13398
  total?: string;
12871
13399
  updated_at?: string;
12872
13400
  };
@@ -12891,6 +13419,9 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
12891
13419
  plan_locked_at?: string | null;
12892
13420
  plan_locked_ref?: string | null;
12893
13421
  status?: string;
13422
+ status_changed_at?: string;
13423
+ status_origin?: string;
13424
+ status_sync_token?: string | null;
12894
13425
  total?: string;
12895
13426
  updated_at?: string;
12896
13427
  };
@@ -12944,6 +13475,132 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
12944
13475
  };
12945
13476
  Relationships: [];
12946
13477
  };
13478
+ pakbon_barcode_inhoud: {
13479
+ Row: {
13480
+ barcode: string;
13481
+ cart_id: string | null;
13482
+ cart_index: number | null;
13483
+ cart_label: string | null;
13484
+ cart_total: number | null;
13485
+ created_at: string;
13486
+ is_herprint: boolean;
13487
+ klant_naam: string | null;
13488
+ klant_nummer: string | null;
13489
+ layout_id: string | null;
13490
+ layout_variant: string | null;
13491
+ order_nummer: string | null;
13492
+ order_ref: string | null;
13493
+ print_job_id: string | null;
13494
+ regels: import("./types").Json;
13495
+ updated_at: string;
13496
+ };
13497
+ Insert: {
13498
+ barcode: string;
13499
+ cart_id?: string | null;
13500
+ cart_index?: number | null;
13501
+ cart_label?: string | null;
13502
+ cart_total?: number | null;
13503
+ created_at?: string;
13504
+ is_herprint?: boolean;
13505
+ klant_naam?: string | null;
13506
+ klant_nummer?: string | null;
13507
+ layout_id?: string | null;
13508
+ layout_variant?: string | null;
13509
+ order_nummer?: string | null;
13510
+ order_ref?: string | null;
13511
+ print_job_id?: string | null;
13512
+ regels?: import("./types").Json;
13513
+ updated_at?: string;
13514
+ };
13515
+ Update: {
13516
+ barcode?: string;
13517
+ cart_id?: string | null;
13518
+ cart_index?: number | null;
13519
+ cart_label?: string | null;
13520
+ cart_total?: number | null;
13521
+ created_at?: string;
13522
+ is_herprint?: boolean;
13523
+ klant_naam?: string | null;
13524
+ klant_nummer?: string | null;
13525
+ layout_id?: string | null;
13526
+ layout_variant?: string | null;
13527
+ order_nummer?: string | null;
13528
+ order_ref?: string | null;
13529
+ print_job_id?: string | null;
13530
+ regels?: import("./types").Json;
13531
+ updated_at?: string;
13532
+ };
13533
+ Relationships: [];
13534
+ };
13535
+ pakbon_barcode_verzoeken: {
13536
+ Row: {
13537
+ aangevraagd_op: string;
13538
+ barcode: string | null;
13539
+ cart_id: string | null;
13540
+ cart_index: number | null;
13541
+ cart_label: string | null;
13542
+ cart_total: number | null;
13543
+ documentnaam: string | null;
13544
+ geleverd_op: string | null;
13545
+ id: string;
13546
+ is_herprint: boolean;
13547
+ klant_naam: string | null;
13548
+ klant_nummer: string | null;
13549
+ laatst_gevraagd_op: string;
13550
+ layout_id: string | null;
13551
+ layout_variant: string | null;
13552
+ order_nummer: string | null;
13553
+ order_ref: string | null;
13554
+ print_job_id: string;
13555
+ status: string;
13556
+ updated_at: string;
13557
+ };
13558
+ Insert: {
13559
+ aangevraagd_op?: string;
13560
+ barcode?: string | null;
13561
+ cart_id?: string | null;
13562
+ cart_index?: number | null;
13563
+ cart_label?: string | null;
13564
+ cart_total?: number | null;
13565
+ documentnaam?: string | null;
13566
+ geleverd_op?: string | null;
13567
+ id?: string;
13568
+ is_herprint?: boolean;
13569
+ klant_naam?: string | null;
13570
+ klant_nummer?: string | null;
13571
+ laatst_gevraagd_op?: string;
13572
+ layout_id?: string | null;
13573
+ layout_variant?: string | null;
13574
+ order_nummer?: string | null;
13575
+ order_ref?: string | null;
13576
+ print_job_id: string;
13577
+ status?: string;
13578
+ updated_at?: string;
13579
+ };
13580
+ Update: {
13581
+ aangevraagd_op?: string;
13582
+ barcode?: string | null;
13583
+ cart_id?: string | null;
13584
+ cart_index?: number | null;
13585
+ cart_label?: string | null;
13586
+ cart_total?: number | null;
13587
+ documentnaam?: string | null;
13588
+ geleverd_op?: string | null;
13589
+ id?: string;
13590
+ is_herprint?: boolean;
13591
+ klant_naam?: string | null;
13592
+ klant_nummer?: string | null;
13593
+ laatst_gevraagd_op?: string;
13594
+ layout_id?: string | null;
13595
+ layout_variant?: string | null;
13596
+ order_nummer?: string | null;
13597
+ order_ref?: string | null;
13598
+ print_job_id?: string;
13599
+ status?: string;
13600
+ updated_at?: string;
13601
+ };
13602
+ Relationships: [];
13603
+ };
12947
13604
  pick_countries: {
12948
13605
  Row: {
12949
13606
  active: boolean;
@@ -14022,6 +14679,12 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
14022
14679
  isOneToOne: false;
14023
14680
  referencedRelation: "werkbonnen";
14024
14681
  referencedColumns: ["id"];
14682
+ }, {
14683
+ foreignKeyName: "planning_items_werkbon_id_fkey";
14684
+ columns: ["werkbon_id"];
14685
+ isOneToOne: false;
14686
+ referencedRelation: "wo_overview";
14687
+ referencedColumns: ["id"];
14025
14688
  }];
14026
14689
  };
14027
14690
  print_agents: {
@@ -14137,12 +14800,21 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
14137
14800
  };
14138
14801
  print_jobs: {
14139
14802
  Row: {
14803
+ aflever_pogingen: number;
14140
14804
  agent_id: string | null;
14805
+ artefact_bytes: number | null;
14806
+ artefact_gereed_op: string | null;
14807
+ artefact_pad: string | null;
14808
+ artefact_sha256: string | null;
14809
+ batch_id: string | null;
14141
14810
  bron_job_id: string | null;
14142
14811
  created_at: string;
14143
14812
  documentnaam: string;
14144
14813
  documenttype: Database["public"]["Enums"]["doc_layout_type"];
14145
14814
  extern_job_id: string | null;
14815
+ fase_gestart_op: string | null;
14816
+ fase_voltooid_op: string | null;
14817
+ foutcode: string | null;
14146
14818
  foutmelding: string | null;
14147
14819
  gebruiker_id: string | null;
14148
14820
  gebruiker_naam: string;
@@ -14156,7 +14828,10 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
14156
14828
  kopieen: number;
14157
14829
  layout_id: string | null;
14158
14830
  lokaal_opgeslagen_op: string | null;
14831
+ lokale_pdf_claim_id: string | null;
14832
+ lokale_pdf_claim_tot: string | null;
14159
14833
  lokale_pdf_fout: string | null;
14834
+ lokale_pdf_print_plek_id: string | null;
14160
14835
  lokale_pdf_status: string | null;
14161
14836
  opgepakt_op: string | null;
14162
14837
  paginas: number;
@@ -14169,16 +14844,26 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
14169
14844
  resultaat_pdf_base64: string | null;
14170
14845
  status: Database["public"]["Enums"]["print_job_status"];
14171
14846
  updated_at: string;
14847
+ verwerkingsfase: string;
14172
14848
  volgende_poging: string | null;
14173
14849
  voltooid_op: string | null;
14174
14850
  };
14175
14851
  Insert: {
14852
+ aflever_pogingen?: number;
14176
14853
  agent_id?: string | null;
14854
+ artefact_bytes?: number | null;
14855
+ artefact_gereed_op?: string | null;
14856
+ artefact_pad?: string | null;
14857
+ artefact_sha256?: string | null;
14858
+ batch_id?: string | null;
14177
14859
  bron_job_id?: string | null;
14178
14860
  created_at?: string;
14179
14861
  documentnaam?: string;
14180
14862
  documenttype?: Database["public"]["Enums"]["doc_layout_type"];
14181
14863
  extern_job_id?: string | null;
14864
+ fase_gestart_op?: string | null;
14865
+ fase_voltooid_op?: string | null;
14866
+ foutcode?: string | null;
14182
14867
  foutmelding?: string | null;
14183
14868
  gebruiker_id?: string | null;
14184
14869
  gebruiker_naam?: string;
@@ -14192,7 +14877,10 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
14192
14877
  kopieen?: number;
14193
14878
  layout_id?: string | null;
14194
14879
  lokaal_opgeslagen_op?: string | null;
14880
+ lokale_pdf_claim_id?: string | null;
14881
+ lokale_pdf_claim_tot?: string | null;
14195
14882
  lokale_pdf_fout?: string | null;
14883
+ lokale_pdf_print_plek_id?: string | null;
14196
14884
  lokale_pdf_status?: string | null;
14197
14885
  opgepakt_op?: string | null;
14198
14886
  paginas?: number;
@@ -14205,16 +14893,26 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
14205
14893
  resultaat_pdf_base64?: string | null;
14206
14894
  status?: Database["public"]["Enums"]["print_job_status"];
14207
14895
  updated_at?: string;
14896
+ verwerkingsfase?: string;
14208
14897
  volgende_poging?: string | null;
14209
14898
  voltooid_op?: string | null;
14210
14899
  };
14211
14900
  Update: {
14901
+ aflever_pogingen?: number;
14212
14902
  agent_id?: string | null;
14903
+ artefact_bytes?: number | null;
14904
+ artefact_gereed_op?: string | null;
14905
+ artefact_pad?: string | null;
14906
+ artefact_sha256?: string | null;
14907
+ batch_id?: string | null;
14213
14908
  bron_job_id?: string | null;
14214
14909
  created_at?: string;
14215
14910
  documentnaam?: string;
14216
14911
  documenttype?: Database["public"]["Enums"]["doc_layout_type"];
14217
14912
  extern_job_id?: string | null;
14913
+ fase_gestart_op?: string | null;
14914
+ fase_voltooid_op?: string | null;
14915
+ foutcode?: string | null;
14218
14916
  foutmelding?: string | null;
14219
14917
  gebruiker_id?: string | null;
14220
14918
  gebruiker_naam?: string;
@@ -14228,7 +14926,10 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
14228
14926
  kopieen?: number;
14229
14927
  layout_id?: string | null;
14230
14928
  lokaal_opgeslagen_op?: string | null;
14929
+ lokale_pdf_claim_id?: string | null;
14930
+ lokale_pdf_claim_tot?: string | null;
14231
14931
  lokale_pdf_fout?: string | null;
14932
+ lokale_pdf_print_plek_id?: string | null;
14232
14933
  lokale_pdf_status?: string | null;
14233
14934
  opgepakt_op?: string | null;
14234
14935
  paginas?: number;
@@ -14241,6 +14942,7 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
14241
14942
  resultaat_pdf_base64?: string | null;
14242
14943
  status?: Database["public"]["Enums"]["print_job_status"];
14243
14944
  updated_at?: string;
14945
+ verwerkingsfase?: string;
14244
14946
  volgende_poging?: string | null;
14245
14947
  voltooid_op?: string | null;
14246
14948
  };
@@ -14256,6 +14958,12 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
14256
14958
  isOneToOne: false;
14257
14959
  referencedRelation: "document_layouts";
14258
14960
  referencedColumns: ["id"];
14961
+ }, {
14962
+ foreignKeyName: "print_jobs_lokale_pdf_print_plek_id_fkey";
14963
+ columns: ["lokale_pdf_print_plek_id"];
14964
+ isOneToOne: false;
14965
+ referencedRelation: "print_plekken";
14966
+ referencedColumns: ["id"];
14259
14967
  }, {
14260
14968
  foreignKeyName: "print_jobs_printer_id_fkey";
14261
14969
  columns: ["printer_id"];
@@ -14390,6 +15098,30 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
14390
15098
  };
14391
15099
  Relationships: [];
14392
15100
  };
15101
+ print_queue_leases: {
15102
+ Row: {
15103
+ created_at: string;
15104
+ houder: string;
15105
+ naam: string;
15106
+ updated_at: string;
15107
+ verloopt_op: string;
15108
+ };
15109
+ Insert: {
15110
+ created_at?: string;
15111
+ houder: string;
15112
+ naam: string;
15113
+ updated_at?: string;
15114
+ verloopt_op: string;
15115
+ };
15116
+ Update: {
15117
+ created_at?: string;
15118
+ houder?: string;
15119
+ naam?: string;
15120
+ updated_at?: string;
15121
+ verloopt_op?: string;
15122
+ };
15123
+ Relationships: [];
15124
+ };
14393
15125
  print_queue_runners: {
14394
15126
  Row: {
14395
15127
  actief: boolean;
@@ -14399,7 +15131,9 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
14399
15131
  laatst_gezien: string;
14400
15132
  laatste_fout: string | null;
14401
15133
  laatste_request_id: number | null;
15134
+ laatste_wakeup: string | null;
14402
15135
  mislukte_posts: number;
15136
+ mislukte_wakeups: number;
14403
15137
  tick_sleutel: string;
14404
15138
  updated_at: string;
14405
15139
  };
@@ -14411,7 +15145,9 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
14411
15145
  laatst_gezien?: string;
14412
15146
  laatste_fout?: string | null;
14413
15147
  laatste_request_id?: number | null;
15148
+ laatste_wakeup?: string | null;
14414
15149
  mislukte_posts?: number;
15150
+ mislukte_wakeups?: number;
14415
15151
  tick_sleutel?: string;
14416
15152
  updated_at?: string;
14417
15153
  };
@@ -14423,7 +15159,9 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
14423
15159
  laatst_gezien?: string;
14424
15160
  laatste_fout?: string | null;
14425
15161
  laatste_request_id?: number | null;
15162
+ laatste_wakeup?: string | null;
14426
15163
  mislukte_posts?: number;
15164
+ mislukte_wakeups?: number;
14427
15165
  tick_sleutel?: string;
14428
15166
  updated_at?: string;
14429
15167
  };
@@ -14737,6 +15475,12 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
14737
15475
  updated_at?: string;
14738
15476
  };
14739
15477
  Relationships: [{
15478
+ foreignKeyName: "product_bom_external_items_parent_product_id_fkey";
15479
+ columns: ["parent_product_id"];
15480
+ isOneToOne: false;
15481
+ referencedRelation: "logistics_product_dimensions";
15482
+ referencedColumns: ["product_id"];
15483
+ }, {
14740
15484
  foreignKeyName: "product_bom_external_items_parent_product_id_fkey";
14741
15485
  columns: ["parent_product_id"];
14742
15486
  isOneToOne: false;
@@ -14791,11 +15535,23 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
14791
15535
  updated_at?: string;
14792
15536
  };
14793
15537
  Relationships: [{
15538
+ foreignKeyName: "product_bom_items_component_product_id_fkey";
15539
+ columns: ["component_product_id"];
15540
+ isOneToOne: false;
15541
+ referencedRelation: "logistics_product_dimensions";
15542
+ referencedColumns: ["product_id"];
15543
+ }, {
14794
15544
  foreignKeyName: "product_bom_items_component_product_id_fkey";
14795
15545
  columns: ["component_product_id"];
14796
15546
  isOneToOne: false;
14797
15547
  referencedRelation: "products";
14798
15548
  referencedColumns: ["id"];
15549
+ }, {
15550
+ foreignKeyName: "product_bom_items_parent_product_id_fkey";
15551
+ columns: ["parent_product_id"];
15552
+ isOneToOne: false;
15553
+ referencedRelation: "logistics_product_dimensions";
15554
+ referencedColumns: ["product_id"];
14799
15555
  }, {
14800
15556
  foreignKeyName: "product_bom_items_parent_product_id_fkey";
14801
15557
  columns: ["parent_product_id"];
@@ -14971,6 +15727,12 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
14971
15727
  updated_at?: string;
14972
15728
  };
14973
15729
  Relationships: [{
15730
+ foreignKeyName: "product_groups_head_product_id_fkey";
15731
+ columns: ["head_product_id"];
15732
+ isOneToOne: false;
15733
+ referencedRelation: "logistics_product_dimensions";
15734
+ referencedColumns: ["product_id"];
15735
+ }, {
14974
15736
  foreignKeyName: "product_groups_head_product_id_fkey";
14975
15737
  columns: ["head_product_id"];
14976
15738
  isOneToOne: false;
@@ -15036,6 +15798,12 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
15036
15798
  isOneToOne: false;
15037
15799
  referencedRelation: "packages";
15038
15800
  referencedColumns: ["id"];
15801
+ }, {
15802
+ foreignKeyName: "product_load_settings_product_id_fkey";
15803
+ columns: ["product_id"];
15804
+ isOneToOne: false;
15805
+ referencedRelation: "logistics_product_dimensions";
15806
+ referencedColumns: ["product_id"];
15039
15807
  }, {
15040
15808
  foreignKeyName: "product_load_settings_product_id_fkey";
15041
15809
  columns: ["product_id"];
@@ -15086,6 +15854,7 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
15086
15854
  created_at: string;
15087
15855
  custom_fields: import("./types").Json;
15088
15856
  floriday_trade_item_id: string | null;
15857
+ fust_type_id: string | null;
15089
15858
  id: string;
15090
15859
  image_url: string | null;
15091
15860
  incoming_quantity: number;
@@ -15093,6 +15862,7 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
15093
15862
  layers_per_cart: number;
15094
15863
  location: string;
15095
15864
  min_quantity: number;
15865
+ plant_height_cm: number | null;
15096
15866
  plants_per_crate: number;
15097
15867
  product: string;
15098
15868
  product_type: string;
@@ -15112,6 +15882,7 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
15112
15882
  created_at?: string;
15113
15883
  custom_fields?: import("./types").Json;
15114
15884
  floriday_trade_item_id?: string | null;
15885
+ fust_type_id?: string | null;
15115
15886
  id?: string;
15116
15887
  image_url?: string | null;
15117
15888
  incoming_quantity?: number;
@@ -15119,6 +15890,7 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
15119
15890
  layers_per_cart?: number;
15120
15891
  location: string;
15121
15892
  min_quantity?: number;
15893
+ plant_height_cm?: number | null;
15122
15894
  plants_per_crate?: number;
15123
15895
  product: string;
15124
15896
  product_type?: string;
@@ -15138,6 +15910,7 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
15138
15910
  created_at?: string;
15139
15911
  custom_fields?: import("./types").Json;
15140
15912
  floriday_trade_item_id?: string | null;
15913
+ fust_type_id?: string | null;
15141
15914
  id?: string;
15142
15915
  image_url?: string | null;
15143
15916
  incoming_quantity?: number;
@@ -15145,6 +15918,7 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
15145
15918
  layers_per_cart?: number;
15146
15919
  location?: string;
15147
15920
  min_quantity?: number;
15921
+ plant_height_cm?: number | null;
15148
15922
  plants_per_crate?: number;
15149
15923
  product?: string;
15150
15924
  product_type?: string;
@@ -15156,7 +15930,13 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
15156
15930
  updated_at?: string;
15157
15931
  weight?: string | null;
15158
15932
  };
15159
- Relationships: [];
15933
+ Relationships: [{
15934
+ foreignKeyName: "products_fust_type_id_fkey";
15935
+ columns: ["fust_type_id"];
15936
+ isOneToOne: false;
15937
+ referencedRelation: "fust_types";
15938
+ referencedColumns: ["id"];
15939
+ }];
15160
15940
  };
15161
15941
  profile_modules: {
15162
15942
  Row: {
@@ -15490,6 +16270,12 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
15490
16270
  quantity?: number;
15491
16271
  };
15492
16272
  Relationships: [{
16273
+ foreignKeyName: "purchase_order_items_product_id_fkey";
16274
+ columns: ["product_id"];
16275
+ isOneToOne: false;
16276
+ referencedRelation: "logistics_product_dimensions";
16277
+ referencedColumns: ["product_id"];
16278
+ }, {
15493
16279
  foreignKeyName: "purchase_order_items_product_id_fkey";
15494
16280
  columns: ["product_id"];
15495
16281
  isOneToOne: false;
@@ -15809,34 +16595,130 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
15809
16595
  referencedColumns: ["id"];
15810
16596
  }];
15811
16597
  };
15812
- scan_karren: {
16598
+ scan_kar_sessie_regels: {
15813
16599
  Row: {
15814
- afgerond_op: string | null;
15815
- buffer_key: string | null;
16600
+ barcode: string;
16601
+ cart_id: string | null;
15816
16602
  created_at: string;
15817
- customer_names: string[];
15818
- device_id: string | null;
15819
- geprint: boolean;
15820
- geprint_op: string | null;
15821
16603
  id: string;
15822
- kar_nummer: string;
15823
- medewerker_id: string | null;
15824
- medewerker_naam: string | null;
15825
- naar_pickstation: boolean;
15826
- naar_pickstation_op: string | null;
16604
+ order_id: string | null;
15827
16605
  order_number: string | null;
15828
- scanner_id: string | null;
15829
- scanner_key: string;
15830
- status: string;
15831
- totaal_producten: number;
15832
- updated_at: string;
16606
+ regels: import("./types").Json;
16607
+ sessie_id: string;
16608
+ volledig: boolean;
15833
16609
  };
15834
16610
  Insert: {
15835
- afgerond_op?: string | null;
15836
- buffer_key?: string | null;
16611
+ barcode: string;
16612
+ cart_id?: string | null;
15837
16613
  created_at?: string;
15838
- customer_names?: string[];
15839
- device_id?: string | null;
16614
+ id?: string;
16615
+ order_id?: string | null;
16616
+ order_number?: string | null;
16617
+ regels?: import("./types").Json;
16618
+ sessie_id: string;
16619
+ volledig?: boolean;
16620
+ };
16621
+ Update: {
16622
+ barcode?: string;
16623
+ cart_id?: string | null;
16624
+ created_at?: string;
16625
+ id?: string;
16626
+ order_id?: string | null;
16627
+ order_number?: string | null;
16628
+ regels?: import("./types").Json;
16629
+ sessie_id?: string;
16630
+ volledig?: boolean;
16631
+ };
16632
+ Relationships: [{
16633
+ foreignKeyName: "scan_kar_sessie_regels_sessie_id_fkey";
16634
+ columns: ["sessie_id"];
16635
+ isOneToOne: false;
16636
+ referencedRelation: "scan_kar_sessies";
16637
+ referencedColumns: ["id"];
16638
+ }];
16639
+ };
16640
+ scan_kar_sessies: {
16641
+ Row: {
16642
+ afgerond_op: string | null;
16643
+ cart_id: string | null;
16644
+ cart_index: number | null;
16645
+ cart_total: number | null;
16646
+ created_at: string;
16647
+ id: string;
16648
+ klant_naam: string | null;
16649
+ medewerker_naam: string | null;
16650
+ order_id: string | null;
16651
+ order_number: string | null;
16652
+ scanner_id: string | null;
16653
+ status: string;
16654
+ updated_at: string;
16655
+ };
16656
+ Insert: {
16657
+ afgerond_op?: string | null;
16658
+ cart_id?: string | null;
16659
+ cart_index?: number | null;
16660
+ cart_total?: number | null;
16661
+ created_at?: string;
16662
+ id?: string;
16663
+ klant_naam?: string | null;
16664
+ medewerker_naam?: string | null;
16665
+ order_id?: string | null;
16666
+ order_number?: string | null;
16667
+ scanner_id?: string | null;
16668
+ status?: string;
16669
+ updated_at?: string;
16670
+ };
16671
+ Update: {
16672
+ afgerond_op?: string | null;
16673
+ cart_id?: string | null;
16674
+ cart_index?: number | null;
16675
+ cart_total?: number | null;
16676
+ created_at?: string;
16677
+ id?: string;
16678
+ klant_naam?: string | null;
16679
+ medewerker_naam?: string | null;
16680
+ order_id?: string | null;
16681
+ order_number?: string | null;
16682
+ scanner_id?: string | null;
16683
+ status?: string;
16684
+ updated_at?: string;
16685
+ };
16686
+ Relationships: [{
16687
+ foreignKeyName: "scan_kar_sessies_scanner_id_fkey";
16688
+ columns: ["scanner_id"];
16689
+ isOneToOne: false;
16690
+ referencedRelation: "scan_scanners";
16691
+ referencedColumns: ["id"];
16692
+ }];
16693
+ };
16694
+ scan_karren: {
16695
+ Row: {
16696
+ afgerond_op: string | null;
16697
+ buffer_key: string | null;
16698
+ created_at: string;
16699
+ customer_names: string[];
16700
+ device_id: string | null;
16701
+ geprint: boolean;
16702
+ geprint_op: string | null;
16703
+ id: string;
16704
+ kar_nummer: string;
16705
+ medewerker_id: string | null;
16706
+ medewerker_naam: string | null;
16707
+ naar_pickstation: boolean;
16708
+ naar_pickstation_op: string | null;
16709
+ order_number: string | null;
16710
+ scanner_id: string | null;
16711
+ scanner_key: string;
16712
+ status: string;
16713
+ totaal_producten: number;
16714
+ updated_at: string;
16715
+ };
16716
+ Insert: {
16717
+ afgerond_op?: string | null;
16718
+ buffer_key?: string | null;
16719
+ created_at?: string;
16720
+ customer_names?: string[];
16721
+ device_id?: string | null;
15840
16722
  geprint?: boolean;
15841
16723
  geprint_op?: string | null;
15842
16724
  id?: string;
@@ -16013,6 +16895,60 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
16013
16895
  };
16014
16896
  Relationships: [];
16015
16897
  };
16898
+ scan_restpakbonnen: {
16899
+ Row: {
16900
+ barcode: string;
16901
+ bron_barcode: string | null;
16902
+ cart_id: string | null;
16903
+ cart_index: number | null;
16904
+ cart_total: number | null;
16905
+ created_at: string;
16906
+ geprint_op: string | null;
16907
+ id: string;
16908
+ klant_naam: string | null;
16909
+ order_id: string | null;
16910
+ order_number: string | null;
16911
+ print_job_id: string | null;
16912
+ regels: import("./types").Json;
16913
+ updated_at: string;
16914
+ verwerkt: boolean;
16915
+ };
16916
+ Insert: {
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
+ Update: {
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
+ Relationships: [];
16951
+ };
16016
16952
  scan_scanners: {
16017
16953
  Row: {
16018
16954
  actief: boolean;
@@ -16022,6 +16958,7 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
16022
16958
  naam: string;
16023
16959
  omschrijving: string | null;
16024
16960
  pincode: string | null;
16961
+ printer_id: string | null;
16025
16962
  slug: string;
16026
16963
  type: string;
16027
16964
  updated_at: string;
@@ -16036,6 +16973,7 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
16036
16973
  naam: string;
16037
16974
  omschrijving?: string | null;
16038
16975
  pincode?: string | null;
16976
+ printer_id?: string | null;
16039
16977
  slug: string;
16040
16978
  type?: string;
16041
16979
  updated_at?: string;
@@ -16050,6 +16988,7 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
16050
16988
  naam?: string;
16051
16989
  omschrijving?: string | null;
16052
16990
  pincode?: string | null;
16991
+ printer_id?: string | null;
16053
16992
  slug?: string;
16054
16993
  type?: string;
16055
16994
  updated_at?: string;
@@ -16058,6 +16997,27 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
16058
16997
  };
16059
16998
  Relationships: [];
16060
16999
  };
17000
+ shell_settings: {
17001
+ Row: {
17002
+ created_at: string;
17003
+ default_path: string | null;
17004
+ shell_id: string;
17005
+ updated_at: string;
17006
+ };
17007
+ Insert: {
17008
+ created_at?: string;
17009
+ default_path?: string | null;
17010
+ shell_id: string;
17011
+ updated_at?: string;
17012
+ };
17013
+ Update: {
17014
+ created_at?: string;
17015
+ default_path?: string | null;
17016
+ shell_id?: string;
17017
+ updated_at?: string;
17018
+ };
17019
+ Relationships: [];
17020
+ };
16061
17021
  sick_periods: {
16062
17022
  Row: {
16063
17023
  created_at: string;
@@ -16677,6 +17637,12 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
16677
17637
  isOneToOne: false;
16678
17638
  referencedRelation: "werkbonnen";
16679
17639
  referencedColumns: ["id"];
17640
+ }, {
17641
+ foreignKeyName: "time_logs_work_order_id_fkey";
17642
+ columns: ["work_order_id"];
17643
+ isOneToOne: false;
17644
+ referencedRelation: "wo_overview";
17645
+ referencedColumns: ["id"];
16680
17646
  }];
16681
17647
  };
16682
17648
  time_off_entries: {
@@ -17970,6 +18936,12 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
17970
18936
  isOneToOne: false;
17971
18937
  referencedRelation: "werkbonnen";
17972
18938
  referencedColumns: ["id"];
18939
+ }, {
18940
+ foreignKeyName: "uren_entries_werkbon_id_fkey";
18941
+ columns: ["werkbon_id"];
18942
+ isOneToOne: false;
18943
+ referencedRelation: "wo_overview";
18944
+ referencedColumns: ["id"];
17973
18945
  }];
17974
18946
  };
17975
18947
  uren_exports: {
@@ -18693,6 +19665,12 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
18693
19665
  isOneToOne: true;
18694
19666
  referencedRelation: "werkbonnen";
18695
19667
  referencedColumns: ["id"];
19668
+ }, {
19669
+ foreignKeyName: "werkbon_facturatie_controle_werkbon_id_fkey";
19670
+ columns: ["werkbon_id"];
19671
+ isOneToOne: true;
19672
+ referencedRelation: "wo_overview";
19673
+ referencedColumns: ["id"];
18696
19674
  }];
18697
19675
  };
18698
19676
  werkbon_facturatie_settings: {
@@ -18780,6 +19758,12 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
18780
19758
  isOneToOne: false;
18781
19759
  referencedRelation: "werkbonnen";
18782
19760
  referencedColumns: ["id"];
19761
+ }, {
19762
+ foreignKeyName: "werkbon_materials_werkbon_id_fkey";
19763
+ columns: ["werkbon_id"];
19764
+ isOneToOne: false;
19765
+ referencedRelation: "wo_overview";
19766
+ referencedColumns: ["id"];
18783
19767
  }];
18784
19768
  };
18785
19769
  werkbon_package_ai_rules: {
@@ -18963,6 +19947,12 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
18963
19947
  isOneToOne: false;
18964
19948
  referencedRelation: "werkbonnen";
18965
19949
  referencedColumns: ["id"];
19950
+ }, {
19951
+ foreignKeyName: "werkbon_package_lines_werkbon_id_fkey";
19952
+ columns: ["werkbon_id"];
19953
+ isOneToOne: false;
19954
+ referencedRelation: "wo_overview";
19955
+ referencedColumns: ["id"];
18966
19956
  }];
18967
19957
  };
18968
19958
  werkbon_packages: {
@@ -19053,6 +20043,12 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
19053
20043
  isOneToOne: false;
19054
20044
  referencedRelation: "werkbonnen";
19055
20045
  referencedColumns: ["id"];
20046
+ }, {
20047
+ foreignKeyName: "werkbon_photos_werkbon_id_fkey";
20048
+ columns: ["werkbon_id"];
20049
+ isOneToOne: false;
20050
+ referencedRelation: "wo_overview";
20051
+ referencedColumns: ["id"];
19056
20052
  }];
19057
20053
  };
19058
20054
  werkbon_time_logs: {
@@ -19092,6 +20088,12 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
19092
20088
  isOneToOne: false;
19093
20089
  referencedRelation: "werkbonnen";
19094
20090
  referencedColumns: ["id"];
20091
+ }, {
20092
+ foreignKeyName: "werkbon_time_logs_werkbon_id_fkey";
20093
+ columns: ["werkbon_id"];
20094
+ isOneToOne: false;
20095
+ referencedRelation: "wo_overview";
20096
+ referencedColumns: ["id"];
19095
20097
  }];
19096
20098
  };
19097
20099
  werkbonnen: {
@@ -19215,6 +20217,12 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
19215
20217
  isOneToOne: false;
19216
20218
  referencedRelation: "werkbonnen";
19217
20219
  referencedColumns: ["id"];
20220
+ }, {
20221
+ foreignKeyName: "werkbonnen_parent_werkbon_id_fkey";
20222
+ columns: ["parent_werkbon_id"];
20223
+ isOneToOne: false;
20224
+ referencedRelation: "wo_overview";
20225
+ referencedColumns: ["id"];
19218
20226
  }, {
19219
20227
  foreignKeyName: "werkbonnen_source_mailbox_message_id_fkey";
19220
20228
  columns: ["source_mailbox_message_id"];
@@ -19683,6 +20691,24 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
19683
20691
  };
19684
20692
  Relationships: [];
19685
20693
  };
20694
+ logistics_product_dimensions: {
20695
+ Row: {
20696
+ dimension_source: string | null;
20697
+ fust_height_mm: number | null;
20698
+ fust_length_mm: number | null;
20699
+ fust_name: string | null;
20700
+ fust_source: string | null;
20701
+ fust_type_id: string | null;
20702
+ fust_width_mm: number | null;
20703
+ height_source: string | null;
20704
+ missing_reason: string | null;
20705
+ plant_height_cm: number | null;
20706
+ plants_per_crate: number | null;
20707
+ product_id: string | null;
20708
+ product_name: string | null;
20709
+ };
20710
+ Relationships: [];
20711
+ };
19686
20712
  manufacture_product_possible_stock_view: {
19687
20713
  Row: {
19688
20714
  component_count: number | null;
@@ -19720,6 +20746,12 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
19720
20746
  isOneToOne: false;
19721
20747
  referencedRelation: "werkbonnen";
19722
20748
  referencedColumns: ["id"];
20749
+ }, {
20750
+ foreignKeyName: "planning_items_werkbon_id_fkey";
20751
+ columns: ["werkbon_id"];
20752
+ isOneToOne: false;
20753
+ referencedRelation: "wo_overview";
20754
+ referencedColumns: ["id"];
19723
20755
  }];
19724
20756
  };
19725
20757
  product_group_stock_view: {
@@ -20181,6 +21213,81 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
20181
21213
  isOneToOne: false;
20182
21214
  referencedRelation: "werkbonnen";
20183
21215
  referencedColumns: ["id"];
21216
+ }, {
21217
+ foreignKeyName: "werkbon_package_lines_werkbon_id_fkey";
21218
+ columns: ["werkbon_id"];
21219
+ isOneToOne: false;
21220
+ referencedRelation: "wo_overview";
21221
+ referencedColumns: ["id"];
21222
+ }];
21223
+ };
21224
+ wo_overview: {
21225
+ Row: {
21226
+ assigned_user_id: string | null;
21227
+ budget_mandate_cents: number | null;
21228
+ created_at: string | null;
21229
+ customer_id: string | null;
21230
+ id: string | null;
21231
+ needs_detail_review: boolean | null;
21232
+ number: string | null;
21233
+ parent_werkbon_id: string | null;
21234
+ planning_status: string | null;
21235
+ scheduled_end_time: string | null;
21236
+ scheduled_start_time: string | null;
21237
+ source_type: string | null;
21238
+ status: string | null;
21239
+ technician_id: string | null;
21240
+ updated_at: string | null;
21241
+ work_address: string | null;
21242
+ };
21243
+ Insert: {
21244
+ assigned_user_id?: string | null;
21245
+ budget_mandate_cents?: number | null;
21246
+ created_at?: string | null;
21247
+ customer_id?: string | null;
21248
+ id?: string | null;
21249
+ needs_detail_review?: boolean | null;
21250
+ number?: string | null;
21251
+ parent_werkbon_id?: string | null;
21252
+ planning_status?: string | null;
21253
+ scheduled_end_time?: string | null;
21254
+ scheduled_start_time?: string | null;
21255
+ source_type?: string | null;
21256
+ status?: string | null;
21257
+ technician_id?: string | null;
21258
+ updated_at?: string | null;
21259
+ work_address?: string | null;
21260
+ };
21261
+ Update: {
21262
+ assigned_user_id?: string | null;
21263
+ budget_mandate_cents?: number | null;
21264
+ created_at?: string | null;
21265
+ customer_id?: string | null;
21266
+ id?: string | null;
21267
+ needs_detail_review?: boolean | null;
21268
+ number?: string | null;
21269
+ parent_werkbon_id?: string | null;
21270
+ planning_status?: string | null;
21271
+ scheduled_end_time?: string | null;
21272
+ scheduled_start_time?: string | null;
21273
+ source_type?: string | null;
21274
+ status?: string | null;
21275
+ technician_id?: string | null;
21276
+ updated_at?: string | null;
21277
+ work_address?: string | null;
21278
+ };
21279
+ Relationships: [{
21280
+ foreignKeyName: "werkbonnen_parent_werkbon_id_fkey";
21281
+ columns: ["parent_werkbon_id"];
21282
+ isOneToOne: false;
21283
+ referencedRelation: "werkbonnen";
21284
+ referencedColumns: ["id"];
21285
+ }, {
21286
+ foreignKeyName: "werkbonnen_parent_werkbon_id_fkey";
21287
+ columns: ["parent_werkbon_id"];
21288
+ isOneToOne: false;
21289
+ referencedRelation: "wo_overview";
21290
+ referencedColumns: ["id"];
20184
21291
  }];
20185
21292
  };
20186
21293
  };
@@ -20372,12 +21479,21 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
20372
21479
  _max?: number;
20373
21480
  };
20374
21481
  Returns: {
21482
+ aflever_pogingen: number;
20375
21483
  agent_id: string | null;
21484
+ artefact_bytes: number | null;
21485
+ artefact_gereed_op: string | null;
21486
+ artefact_pad: string | null;
21487
+ artefact_sha256: string | null;
21488
+ batch_id: string | null;
20376
21489
  bron_job_id: string | null;
20377
21490
  created_at: string;
20378
21491
  documentnaam: string;
20379
21492
  documenttype: Database["public"]["Enums"]["doc_layout_type"];
20380
21493
  extern_job_id: string | null;
21494
+ fase_gestart_op: string | null;
21495
+ fase_voltooid_op: string | null;
21496
+ foutcode: string | null;
20381
21497
  foutmelding: string | null;
20382
21498
  gebruiker_id: string | null;
20383
21499
  gebruiker_naam: string;
@@ -20391,7 +21507,10 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
20391
21507
  kopieen: number;
20392
21508
  layout_id: string | null;
20393
21509
  lokaal_opgeslagen_op: string | null;
21510
+ lokale_pdf_claim_id: string | null;
21511
+ lokale_pdf_claim_tot: string | null;
20394
21512
  lokale_pdf_fout: string | null;
21513
+ lokale_pdf_print_plek_id: string | null;
20395
21514
  lokale_pdf_status: string | null;
20396
21515
  opgepakt_op: string | null;
20397
21516
  paginas: number;
@@ -20404,6 +21523,7 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
20404
21523
  resultaat_pdf_base64: string | null;
20405
21524
  status: Database["public"]["Enums"]["print_job_status"];
20406
21525
  updated_at: string;
21526
+ verwerkingsfase: string;
20407
21527
  volgende_poging: string | null;
20408
21528
  voltooid_op: string | null;
20409
21529
  }[];
@@ -20450,6 +21570,25 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
20450
21570
  isSetofReturn: true;
20451
21571
  };
20452
21572
  };
21573
+ claim_local_pdf_jobs: {
21574
+ Args: {
21575
+ _max?: number;
21576
+ _print_plek_id: string;
21577
+ _writer_id: string;
21578
+ };
21579
+ Returns: {
21580
+ artefact_bytes: number;
21581
+ artefact_pad: string;
21582
+ artefact_sha256: string;
21583
+ documentnaam: string;
21584
+ id: string;
21585
+ lokale_pdf_print_plek_id: string;
21586
+ lokale_pdf_status: string;
21587
+ printer_id: string;
21588
+ resultaat_pdf_base64: string;
21589
+ status: string;
21590
+ }[];
21591
+ };
20453
21592
  claim_logistics_tasks: {
20454
21593
  Args: {
20455
21594
  _limit?: number;
@@ -20503,12 +21642,21 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
20503
21642
  _max?: number;
20504
21643
  };
20505
21644
  Returns: {
21645
+ aflever_pogingen: number;
20506
21646
  agent_id: string | null;
21647
+ artefact_bytes: number | null;
21648
+ artefact_gereed_op: string | null;
21649
+ artefact_pad: string | null;
21650
+ artefact_sha256: string | null;
21651
+ batch_id: string | null;
20507
21652
  bron_job_id: string | null;
20508
21653
  created_at: string;
20509
21654
  documentnaam: string;
20510
21655
  documenttype: Database["public"]["Enums"]["doc_layout_type"];
20511
21656
  extern_job_id: string | null;
21657
+ fase_gestart_op: string | null;
21658
+ fase_voltooid_op: string | null;
21659
+ foutcode: string | null;
20512
21660
  foutmelding: string | null;
20513
21661
  gebruiker_id: string | null;
20514
21662
  gebruiker_naam: string;
@@ -20522,7 +21670,10 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
20522
21670
  kopieen: number;
20523
21671
  layout_id: string | null;
20524
21672
  lokaal_opgeslagen_op: string | null;
21673
+ lokale_pdf_claim_id: string | null;
21674
+ lokale_pdf_claim_tot: string | null;
20525
21675
  lokale_pdf_fout: string | null;
21676
+ lokale_pdf_print_plek_id: string | null;
20526
21677
  lokale_pdf_status: string | null;
20527
21678
  opgepakt_op: string | null;
20528
21679
  paginas: number;
@@ -20535,6 +21686,7 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
20535
21686
  resultaat_pdf_base64: string | null;
20536
21687
  status: Database["public"]["Enums"]["print_job_status"];
20537
21688
  updated_at: string;
21689
+ verwerkingsfase: string;
20538
21690
  volgende_poging: string | null;
20539
21691
  voltooid_op: string | null;
20540
21692
  }[];
@@ -20551,12 +21703,21 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
20551
21703
  _max?: number;
20552
21704
  };
20553
21705
  Returns: {
21706
+ aflever_pogingen: number;
20554
21707
  agent_id: string | null;
21708
+ artefact_bytes: number | null;
21709
+ artefact_gereed_op: string | null;
21710
+ artefact_pad: string | null;
21711
+ artefact_sha256: string | null;
21712
+ batch_id: string | null;
20555
21713
  bron_job_id: string | null;
20556
21714
  created_at: string;
20557
21715
  documentnaam: string;
20558
21716
  documenttype: Database["public"]["Enums"]["doc_layout_type"];
20559
21717
  extern_job_id: string | null;
21718
+ fase_gestart_op: string | null;
21719
+ fase_voltooid_op: string | null;
21720
+ foutcode: string | null;
20560
21721
  foutmelding: string | null;
20561
21722
  gebruiker_id: string | null;
20562
21723
  gebruiker_naam: string;
@@ -20570,7 +21731,10 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
20570
21731
  kopieen: number;
20571
21732
  layout_id: string | null;
20572
21733
  lokaal_opgeslagen_op: string | null;
21734
+ lokale_pdf_claim_id: string | null;
21735
+ lokale_pdf_claim_tot: string | null;
20573
21736
  lokale_pdf_fout: string | null;
21737
+ lokale_pdf_print_plek_id: string | null;
20574
21738
  lokale_pdf_status: string | null;
20575
21739
  opgepakt_op: string | null;
20576
21740
  paginas: number;
@@ -20583,6 +21747,7 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
20583
21747
  resultaat_pdf_base64: string | null;
20584
21748
  status: Database["public"]["Enums"]["print_job_status"];
20585
21749
  updated_at: string;
21750
+ verwerkingsfase: string;
20586
21751
  volgende_poging: string | null;
20587
21752
  voltooid_op: string | null;
20588
21753
  }[];
@@ -20593,7 +21758,15 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
20593
21758
  isSetofReturn: true;
20594
21759
  };
20595
21760
  };
20596
- claim_twinfield_push_batch: {
21761
+ claim_print_queue_lease: {
21762
+ Args: {
21763
+ _houder: string;
21764
+ _naam: string;
21765
+ _seconden?: number;
21766
+ };
21767
+ Returns: boolean;
21768
+ };
21769
+ claim_twinfield_push_batch: {
20597
21770
  Args: {
20598
21771
  _customer_id?: string;
20599
21772
  _limit?: number;
@@ -20718,7 +21891,10 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
20718
21891
  cart_index: number;
20719
21892
  cart_number: string;
20720
21893
  cart_number_id: string;
21894
+ cart_seq: number;
21895
+ cart_total: number;
20721
21896
  order_id: string;
21897
+ order_number: string;
20722
21898
  order_source: string;
20723
21899
  pick_date: string;
20724
21900
  printed_at: string;
@@ -20726,6 +21902,12 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
20726
21902
  status: string;
20727
21903
  }[];
20728
21904
  };
21905
+ control_mark_carts_delivered: {
21906
+ Args: {
21907
+ p_carts: import("./types").Json;
21908
+ };
21909
+ Returns: number;
21910
+ };
20729
21911
  count_distinct_regulatory_products: {
20730
21912
  Args: never;
20731
21913
  Returns: number;
@@ -20853,6 +22035,13 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
20853
22035
  };
20854
22036
  Returns: undefined;
20855
22037
  };
22038
+ ensure_system_roles: {
22039
+ Args: never;
22040
+ Returns: {
22041
+ action: string;
22042
+ role_key: string;
22043
+ }[];
22044
+ };
20856
22045
  ensure_trade_item_stock_row: {
20857
22046
  Args: {
20858
22047
  p_key: string;
@@ -20919,6 +22108,15 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
20919
22108
  };
20920
22109
  Returns: string;
20921
22110
  };
22111
+ finish_local_pdf_job: {
22112
+ Args: {
22113
+ _fout?: string;
22114
+ _job_id: string;
22115
+ _status: string;
22116
+ _writer_id: string;
22117
+ };
22118
+ Returns: boolean;
22119
+ };
20922
22120
  floriday_capture_stock_snapshot: {
20923
22121
  Args: never;
20924
22122
  Returns: number;
@@ -21198,6 +22396,36 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
21198
22396
  Args: never;
21199
22397
  Returns: string;
21200
22398
  };
22399
+ handover_archief_lijst: {
22400
+ Args: never;
22401
+ Returns: import("./types").Json;
22402
+ };
22403
+ handover_archiveren: {
22404
+ Args: {
22405
+ _archief?: boolean;
22406
+ _module_id: string;
22407
+ };
22408
+ Returns: boolean;
22409
+ };
22410
+ handover_check_afronden: {
22411
+ Args: {
22412
+ _module_id: string;
22413
+ };
22414
+ Returns: boolean;
22415
+ };
22416
+ handover_check_markeren: {
22417
+ Args: {
22418
+ _module_ids: string[];
22419
+ _reden?: string;
22420
+ };
22421
+ Returns: number;
22422
+ };
22423
+ handover_fingerprint_maken: {
22424
+ Args: {
22425
+ _module_id?: string;
22426
+ };
22427
+ Returns: import("./types").Json;
22428
+ };
21201
22429
  handover_get: {
21202
22430
  Args: {
21203
22431
  _module_id: string;
@@ -21228,6 +22456,14 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
21228
22456
  };
21229
22457
  Returns: boolean;
21230
22458
  };
22459
+ handover_module_meta_zetten: {
22460
+ Args: {
22461
+ _module_id: string;
22462
+ _project_url?: string;
22463
+ _publicatie_url?: string;
22464
+ };
22465
+ Returns: boolean;
22466
+ };
21231
22467
  handover_norm_naam: {
21232
22468
  Args: {
21233
22469
  _naam: string;
@@ -21248,6 +22484,23 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
21248
22484
  };
21249
22485
  Returns: number;
21250
22486
  };
22487
+ handover_publish_uit_github: {
22488
+ Args: {
22489
+ _bezit_tabellen?: string[];
22490
+ _bron_soort?: string;
22491
+ _commit?: string;
22492
+ _contractfuncties?: string[];
22493
+ _inhoud_md: string;
22494
+ _module_id: string;
22495
+ _module_titel: string;
22496
+ _ontbrekende_contracten?: string[];
22497
+ _pad?: string;
22498
+ _repo?: string;
22499
+ _samenvatting?: string;
22500
+ _versie_label?: string;
22501
+ };
22502
+ Returns: import("./types").Json;
22503
+ };
21251
22504
  handover_publish_via_token: {
21252
22505
  Args: {
21253
22506
  _bevindingen?: string;
@@ -21261,7 +22514,7 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
21261
22514
  _samenvatting?: string;
21262
22515
  _token_hash: string;
21263
22516
  };
21264
- Returns: number;
22517
+ Returns: import("./types").Json;
21265
22518
  };
21266
22519
  handover_status: {
21267
22520
  Args: never;
@@ -21273,23 +22526,6 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
21273
22526
  };
21274
22527
  Returns: string;
21275
22528
  };
21276
- handover_token_intrekken: {
21277
- Args: {
21278
- _id: string;
21279
- };
21280
- Returns: boolean;
21281
- };
21282
- handover_token_lijst: {
21283
- Args: never;
21284
- Returns: import("./types").Json;
21285
- };
21286
- handover_token_maken: {
21287
- Args: {
21288
- _label?: string;
21289
- _module_id: string;
21290
- };
21291
- Returns: string;
21292
- };
21293
22529
  handover_update: {
21294
22530
  Args: {
21295
22531
  _bezit_tabellen?: string[];
@@ -21317,12 +22553,31 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
21317
22553
  };
21318
22554
  Returns: boolean;
21319
22555
  };
22556
+ handover_versie_verwijderen: {
22557
+ Args: {
22558
+ _module_id: string;
22559
+ _versie: number;
22560
+ };
22561
+ Returns: boolean;
22562
+ };
21320
22563
  handover_versies: {
21321
22564
  Args: {
21322
22565
  _module_id: string;
21323
22566
  };
21324
22567
  Returns: import("./types").Json;
21325
22568
  };
22569
+ handover_verwijderen: {
22570
+ Args: {
22571
+ _module_id: string;
22572
+ };
22573
+ Returns: boolean;
22574
+ };
22575
+ handover_wijzigingen: {
22576
+ Args: {
22577
+ _module_id?: string;
22578
+ };
22579
+ Returns: import("./types").Json;
22580
+ };
21326
22581
  has_module_permission: {
21327
22582
  Args: {
21328
22583
  _min: string;
@@ -21657,6 +22912,13 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
21657
22912
  };
21658
22913
  Returns: string;
21659
22914
  };
22915
+ logistics_cart_handled: {
22916
+ Args: {
22917
+ p_cart_index: number;
22918
+ p_order_id: string;
22919
+ };
22920
+ Returns: boolean;
22921
+ };
21660
22922
  logistics_cart_index: {
21661
22923
  Args: {
21662
22924
  p_from?: string;
@@ -21666,6 +22928,9 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
21666
22928
  cart_id: string;
21667
22929
  cart_index: number;
21668
22930
  cart_label: string;
22931
+ cart_number: string;
22932
+ cart_seq: number;
22933
+ cart_total: number;
21669
22934
  delivery_date: string;
21670
22935
  is_announced: boolean;
21671
22936
  is_controlled: boolean;
@@ -21680,12 +22945,79 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
21680
22945
  task_status: string;
21681
22946
  }[];
21682
22947
  };
22948
+ logistics_cart_layout_method: {
22949
+ Args: never;
22950
+ Returns: import("./types").Json;
22951
+ };
22952
+ logistics_cart_plan_overview: {
22953
+ Args: {
22954
+ p_days?: number;
22955
+ };
22956
+ Returns: {
22957
+ cart_total: number;
22958
+ delivery_date: string;
22959
+ order_ref: string;
22960
+ plan_ready: boolean;
22961
+ reason: string;
22962
+ released: boolean;
22963
+ }[];
22964
+ };
22965
+ logistics_cart_plan_status: {
22966
+ Args: {
22967
+ p_ref: string;
22968
+ };
22969
+ Returns: import("./types").Json;
22970
+ };
22971
+ logistics_cart_seq: {
22972
+ Args: {
22973
+ p_order_uuid?: string;
22974
+ };
22975
+ Returns: {
22976
+ cart_id: string;
22977
+ cart_index: number;
22978
+ cart_number: string;
22979
+ cart_seq: number;
22980
+ cart_total: number;
22981
+ order_uuid: string;
22982
+ }[];
22983
+ };
21683
22984
  logistics_cart_slip_plan: {
21684
22985
  Args: {
21685
22986
  p_order_id: string;
21686
22987
  };
21687
22988
  Returns: import("./types").Json;
21688
22989
  };
22990
+ logistics_cart_units: {
22991
+ Args: {
22992
+ p_from?: string;
22993
+ p_to?: string;
22994
+ };
22995
+ Returns: {
22996
+ cart_id: string;
22997
+ cart_index: number;
22998
+ cart_label: string;
22999
+ cart_number: string;
23000
+ cart_seq: number;
23001
+ cart_total: number;
23002
+ delivery_date: string;
23003
+ is_announced: boolean;
23004
+ is_buffer: boolean;
23005
+ is_controlled: boolean;
23006
+ is_printed: boolean;
23007
+ is_shared: boolean;
23008
+ order_number: string;
23009
+ order_source: string;
23010
+ order_uuid: string;
23011
+ pick_date: string;
23012
+ printed_at: string;
23013
+ shifted: boolean;
23014
+ task_status: string;
23015
+ unit_buffer: string;
23016
+ unit_order_count: number;
23017
+ unit_orders: string[];
23018
+ unit_ref: string;
23019
+ }[];
23020
+ };
21689
23021
  logistics_check_order_allowed: {
21690
23022
  Args: {
21691
23023
  p_lines: import("./types").Json;
@@ -21841,7 +23173,9 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
21841
23173
  announced_carts: number;
21842
23174
  control_carts: number;
21843
23175
  delivery_carts: number;
23176
+ duplicate_carts: number;
21844
23177
  ok: boolean;
23178
+ orphan_carts: number;
21845
23179
  orphan_tasks: number;
21846
23180
  pick_date: string;
21847
23181
  raw_carts: number;
@@ -21849,6 +23183,85 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
21849
23183
  station_carts: number;
21850
23184
  }[];
21851
23185
  };
23186
+ logistics_control_scan_approve: {
23187
+ Args: {
23188
+ p_allow_reprint?: boolean;
23189
+ p_barcode: string;
23190
+ p_printer_id?: string;
23191
+ p_scanner_id?: string;
23192
+ };
23193
+ Returns: import("./types").Json;
23194
+ };
23195
+ logistics_control_scan_claim: {
23196
+ Args: {
23197
+ _lease_seconds?: number;
23198
+ _limit?: number;
23199
+ };
23200
+ Returns: {
23201
+ approved_at: string | null;
23202
+ attempts: number;
23203
+ barcode: string;
23204
+ cart_id: string;
23205
+ created_at: string;
23206
+ document_url: string | null;
23207
+ error: string | null;
23208
+ error_code: string | null;
23209
+ fulfillment_order_id: string | null;
23210
+ id: string;
23211
+ is_floriday: boolean;
23212
+ locked_until: string | null;
23213
+ order_id: string | null;
23214
+ order_number: string | null;
23215
+ print_job_id: string | null;
23216
+ printed_at: string | null;
23217
+ printer_id: string | null;
23218
+ scanner_id: string | null;
23219
+ status: string;
23220
+ updated_at: string;
23221
+ }[];
23222
+ SetofOptions: {
23223
+ from: "*";
23224
+ to: "logistics_control_scan";
23225
+ isOneToOne: false;
23226
+ isSetofReturn: true;
23227
+ };
23228
+ };
23229
+ logistics_control_scan_finish: {
23230
+ Args: {
23231
+ _document_url?: string;
23232
+ _error?: string;
23233
+ _error_code?: string;
23234
+ _fulfillment_order_id?: string;
23235
+ _id: string;
23236
+ _ok: boolean;
23237
+ _print_job_id?: string;
23238
+ _status?: string;
23239
+ };
23240
+ Returns: import("./types").Json;
23241
+ };
23242
+ logistics_control_scan_lookup: {
23243
+ Args: {
23244
+ p_barcode: string;
23245
+ };
23246
+ Returns: import("./types").Json;
23247
+ };
23248
+ logistics_control_scan_overview: {
23249
+ Args: {
23250
+ _date?: string;
23251
+ _scanner_id?: string;
23252
+ };
23253
+ Returns: import("./types").Json;
23254
+ };
23255
+ logistics_control_scan_retry: {
23256
+ Args: {
23257
+ _id: string;
23258
+ };
23259
+ Returns: import("./types").Json;
23260
+ };
23261
+ logistics_control_settings: {
23262
+ Args: never;
23263
+ Returns: import("./types").Json;
23264
+ };
21852
23265
  logistics_delay_customer_email: {
21853
23266
  Args: {
21854
23267
  p_customer: string;
@@ -21916,6 +23329,17 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
21916
23329
  };
21917
23330
  Returns: import("./types").Json;
21918
23331
  };
23332
+ logistics_enqueue_sticker_with_slip: {
23333
+ Args: {
23334
+ _cart_id: string;
23335
+ _is_herprint: boolean;
23336
+ _printer_id: string;
23337
+ _queue_item_id: string;
23338
+ _session_id: string;
23339
+ _slip_job_id: string;
23340
+ };
23341
+ Returns: string;
23342
+ };
21919
23343
  logistics_ensure_cart_barcode: {
21920
23344
  Args: {
21921
23345
  _cart_id: string;
@@ -22057,6 +23481,26 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
22057
23481
  };
22058
23482
  Returns: string;
22059
23483
  };
23484
+ logistics_fulfill_barcode_requests: {
23485
+ Args: {
23486
+ p_limit?: number;
23487
+ };
23488
+ Returns: import("./types").Json;
23489
+ };
23490
+ logistics_full_cart_min_layers: {
23491
+ Args: never;
23492
+ Returns: number;
23493
+ };
23494
+ logistics_full_cart_min_percentage: {
23495
+ Args: never;
23496
+ Returns: number;
23497
+ };
23498
+ logistics_is_pick_workday: {
23499
+ Args: {
23500
+ p_date: string;
23501
+ };
23502
+ Returns: boolean;
23503
+ };
22060
23504
  logistics_live_carriers: {
22061
23505
  Args: {
22062
23506
  p_order_ref: string;
@@ -22069,6 +23513,20 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
22069
23513
  };
22070
23514
  Returns: number;
22071
23515
  };
23516
+ logistics_next_workday_date: {
23517
+ Args: {
23518
+ p_date: string;
23519
+ p_days?: string[];
23520
+ };
23521
+ Returns: string;
23522
+ };
23523
+ logistics_next_workday_not_past: {
23524
+ Args: {
23525
+ p_days: string[];
23526
+ p_ts: string;
23527
+ };
23528
+ Returns: string;
23529
+ };
22072
23530
  logistics_not_past: {
22073
23531
  Args: {
22074
23532
  p_ts: string;
@@ -22081,6 +23539,19 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
22081
23539
  };
22082
23540
  Returns: number;
22083
23541
  };
23542
+ logistics_order_handled: {
23543
+ Args: {
23544
+ p_order_uuid: string;
23545
+ };
23546
+ Returns: boolean;
23547
+ };
23548
+ logistics_order_is_topick: {
23549
+ Args: {
23550
+ p_order_id: string;
23551
+ p_order_number: string;
23552
+ };
23553
+ Returns: boolean;
23554
+ };
22084
23555
  logistics_order_overview: {
22085
23556
  Args: {
22086
23557
  p_from?: string;
@@ -22106,9 +23577,15 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
22106
23577
  };
22107
23578
  Returns: string;
22108
23579
  };
22109
- logistics_parse_pickup: {
23580
+ logistics_order_released: {
22110
23581
  Args: {
22111
- p_value: string;
23582
+ p_order_ref: string;
23583
+ };
23584
+ Returns: boolean;
23585
+ };
23586
+ logistics_parse_pickup: {
23587
+ Args: {
23588
+ p_value: string;
22112
23589
  };
22113
23590
  Returns: string;
22114
23591
  };
@@ -22128,10 +23605,37 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
22128
23605
  shifted_count: number;
22129
23606
  }[];
22130
23607
  };
23608
+ logistics_pick_barcode_enabled: {
23609
+ Args: never;
23610
+ Returns: boolean;
23611
+ };
22131
23612
  logistics_pick_email_purpose: {
22132
23613
  Args: never;
22133
23614
  Returns: string;
22134
23615
  };
23616
+ logistics_pick_mode: {
23617
+ Args: never;
23618
+ Returns: import("./types").Json;
23619
+ };
23620
+ logistics_pick_start_estimate: {
23621
+ Args: {
23622
+ p_order: import("./types").Json;
23623
+ s: import("./types").Json;
23624
+ };
23625
+ Returns: string;
23626
+ };
23627
+ logistics_pick_units: {
23628
+ Args: never;
23629
+ Returns: {
23630
+ is_buffer: boolean;
23631
+ order_number: string;
23632
+ order_uuid: string;
23633
+ unit_buffer: string;
23634
+ unit_order_count: number;
23635
+ unit_orders: string[];
23636
+ unit_ref: string;
23637
+ }[];
23638
+ };
22135
23639
  logistics_plan_all: {
22136
23640
  Args: {
22137
23641
  p_user_id?: string;
@@ -22218,6 +23722,14 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
22218
23722
  };
22219
23723
  Returns: number;
22220
23724
  };
23725
+ logistics_prune_buffer_member_queue: {
23726
+ Args: never;
23727
+ Returns: number;
23728
+ };
23729
+ logistics_prune_handled_pick_queue: {
23730
+ Args: never;
23731
+ Returns: number;
23732
+ };
22221
23733
  logistics_queue_capacity_email: {
22222
23734
  Args: {
22223
23735
  p_alert_id: string;
@@ -22250,6 +23762,12 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
22250
23762
  Args: never;
22251
23763
  Returns: import("./types").Json;
22252
23764
  };
23765
+ logistics_refresh_pickup_moments: {
23766
+ Args: {
23767
+ p_weeks?: number;
23768
+ };
23769
+ Returns: import("./types").Json;
23770
+ };
22253
23771
  logistics_report_delay: {
22254
23772
  Args: {
22255
23773
  p_expected_date?: string;
@@ -22356,6 +23874,12 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
22356
23874
  };
22357
23875
  Returns: string;
22358
23876
  };
23877
+ logistics_scan_resolve: {
23878
+ Args: {
23879
+ p_code: string;
23880
+ };
23881
+ Returns: import("./types").Json;
23882
+ };
22359
23883
  logistics_schedule_tasks: {
22360
23884
  Args: never;
22361
23885
  Returns: number;
@@ -22390,6 +23914,10 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
22390
23914
  };
22391
23915
  Returns: import("./types").Json;
22392
23916
  };
23917
+ logistics_sticker_follows_slip: {
23918
+ Args: never;
23919
+ Returns: boolean;
23920
+ };
22393
23921
  logistics_supersede_stale_tasks: {
22394
23922
  Args: {
22395
23923
  p_keep: string[];
@@ -22441,6 +23969,18 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
22441
23969
  };
22442
23970
  Returns: string;
22443
23971
  };
23972
+ logistics_write_buffer_layer_positions: {
23973
+ Args: {
23974
+ p_buffer_id: string;
23975
+ };
23976
+ Returns: number;
23977
+ };
23978
+ logistics_write_cart_layer_positions: {
23979
+ Args: {
23980
+ p_cart_id: string;
23981
+ };
23982
+ Returns: number;
23983
+ };
22444
23984
  mark_offer_clicked: {
22445
23985
  Args: {
22446
23986
  p_code: string;
@@ -22473,6 +24013,15 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
22473
24013
  };
22474
24014
  Returns: undefined;
22475
24015
  };
24016
+ move_cart_layer_position: {
24017
+ Args: {
24018
+ p_id: string;
24019
+ p_layer: number;
24020
+ p_x: number;
24021
+ p_y: number;
24022
+ };
24023
+ Returns: undefined;
24024
+ };
22476
24025
  my_module_permissions: {
22477
24026
  Args: never;
22478
24027
  Returns: {
@@ -22544,6 +24093,12 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
22544
24093
  };
22545
24094
  Returns: import("./types").Json;
22546
24095
  };
24096
+ order_heeft_bevestigde_karren: {
24097
+ Args: {
24098
+ p_order_id: string;
24099
+ };
24100
+ Returns: boolean;
24101
+ };
22547
24102
  order_number_prefix: {
22548
24103
  Args: {
22549
24104
  p_custom_fields?: import("./types").Json;
@@ -22579,6 +24134,27 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
22579
24134
  online: boolean;
22580
24135
  }[];
22581
24136
  };
24137
+ pick_available_pick_days: {
24138
+ Args: {
24139
+ _max_days?: number;
24140
+ };
24141
+ Returns: {
24142
+ orders: number;
24143
+ pick_day: string;
24144
+ }[];
24145
+ };
24146
+ pick_buffer_order_ids: {
24147
+ Args: {
24148
+ _order_id: string;
24149
+ };
24150
+ Returns: string[];
24151
+ };
24152
+ pick_cart_breakdown: {
24153
+ Args: {
24154
+ _order_id: string;
24155
+ };
24156
+ Returns: import("./types").Json;
24157
+ };
22582
24158
  pick_claim_document: {
22583
24159
  Args: {
22584
24160
  _queue_item_id: string;
@@ -22632,6 +24208,7 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
22632
24208
  pick_claim_next_document: {
22633
24209
  Args: {
22634
24210
  _country_code: string;
24211
+ _pick_day?: string;
22635
24212
  _screen_id: string;
22636
24213
  _session_id: string;
22637
24214
  _station_id: string;
@@ -22783,6 +24360,14 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
22783
24360
  isSetofReturn: false;
22784
24361
  };
22785
24362
  };
24363
+ pick_complete_print_carts: {
24364
+ Args: {
24365
+ _cart_ids: string[];
24366
+ _queue_item_id: string;
24367
+ _session_id: string;
24368
+ };
24369
+ Returns: import("./types").Json;
24370
+ };
22786
24371
  pick_current_pick_day: {
22787
24372
  Args: never;
22788
24373
  Returns: string;
@@ -22819,6 +24404,65 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
22819
24404
  };
22820
24405
  Returns: string;
22821
24406
  };
24407
+ pick_enqueue_print_job_from_cart: {
24408
+ Args: {
24409
+ _cart_id: string;
24410
+ _is_herprint: boolean;
24411
+ _printer_id: string;
24412
+ _queue_item_id: string;
24413
+ _selected_cart: import("./types").Json;
24414
+ _session_id: string;
24415
+ };
24416
+ Returns: string;
24417
+ };
24418
+ pick_mark_printed: {
24419
+ Args: {
24420
+ _queue_item_id: string;
24421
+ _reden?: string;
24422
+ _session_id: string;
24423
+ };
24424
+ Returns: {
24425
+ announced_at: string;
24426
+ assigned_user_id: string | null;
24427
+ barcode: string | null;
24428
+ cancelled_at: string | null;
24429
+ cart_count: number;
24430
+ completed_at: string | null;
24431
+ country_code: string | null;
24432
+ created_at: string;
24433
+ customer_name: string | null;
24434
+ delivery_address: string | null;
24435
+ document_number: string | null;
24436
+ document_type_id: string | null;
24437
+ due_at: string | null;
24438
+ id: string;
24439
+ is_urgent: boolean;
24440
+ line_count: number;
24441
+ order_number: string | null;
24442
+ order_type: string | null;
24443
+ payload: import("./types").Json;
24444
+ print_count: number;
24445
+ print_job_id: string | null;
24446
+ printed_at: string | null;
24447
+ printed_by: string | null;
24448
+ printed_cart_ids: import("./types").Json;
24449
+ printer_id: string | null;
24450
+ priority: number;
24451
+ reference: string | null;
24452
+ route: string | null;
24453
+ screen_id: string | null;
24454
+ station_id: string | null;
24455
+ status_id: string | null;
24456
+ updated_at: string;
24457
+ warnings: import("./types").Json;
24458
+ };
24459
+ SetofOptions: {
24460
+ from: "*";
24461
+ to: "pick_queue";
24462
+ isOneToOne: true;
24463
+ isSetofReturn: false;
24464
+ };
24465
+ };
22822
24466
  pick_order_context: {
22823
24467
  Args: {
22824
24468
  _order_id?: string;
@@ -22839,6 +24483,12 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
22839
24483
  };
22840
24484
  Returns: import("./types").Json;
22841
24485
  };
24486
+ pick_print_jobs_status: {
24487
+ Args: {
24488
+ _job_ids: string[];
24489
+ };
24490
+ Returns: import("./types").Json[];
24491
+ };
22842
24492
  pick_print_plekken: {
22843
24493
  Args: never;
22844
24494
  Returns: {
@@ -22847,6 +24497,12 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
22847
24497
  omschrijving: string;
22848
24498
  }[];
22849
24499
  };
24500
+ pick_queue_cart_plan: {
24501
+ Args: {
24502
+ _queue_item_id: string;
24503
+ };
24504
+ Returns: import("./types").Json;
24505
+ };
22850
24506
  pick_reference_data_status: {
22851
24507
  Args: never;
22852
24508
  Returns: import("./types").Json;
@@ -22861,6 +24517,19 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
22861
24517
  };
22862
24518
  Returns: undefined;
22863
24519
  };
24520
+ pick_report_missing_cart_plan: {
24521
+ Args: never;
24522
+ Returns: import("./types").Json;
24523
+ };
24524
+ pick_reprint_cart: {
24525
+ Args: {
24526
+ _cart_id: string;
24527
+ _queue_item_id: string;
24528
+ _session_id: string;
24529
+ _throttle_seconds?: number;
24530
+ };
24531
+ Returns: string;
24532
+ };
22864
24533
  pick_reprint_document: {
22865
24534
  Args: {
22866
24535
  _queue_item_id: string;
@@ -22963,6 +24632,151 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
22963
24632
  isSetofReturn: false;
22964
24633
  };
22965
24634
  };
24635
+ pick_reset_print_job: {
24636
+ Args: {
24637
+ _cart_id: string;
24638
+ _job_id: string;
24639
+ _queue_item_id: string;
24640
+ _session_id: string;
24641
+ };
24642
+ Returns: {
24643
+ announced_at: string;
24644
+ assigned_user_id: string | null;
24645
+ barcode: string | null;
24646
+ cancelled_at: string | null;
24647
+ cart_count: number;
24648
+ completed_at: string | null;
24649
+ country_code: string | null;
24650
+ created_at: string;
24651
+ customer_name: string | null;
24652
+ delivery_address: string | null;
24653
+ document_number: string | null;
24654
+ document_type_id: string | null;
24655
+ due_at: string | null;
24656
+ id: string;
24657
+ is_urgent: boolean;
24658
+ line_count: number;
24659
+ order_number: string | null;
24660
+ order_type: string | null;
24661
+ payload: import("./types").Json;
24662
+ print_count: number;
24663
+ print_job_id: string | null;
24664
+ printed_at: string | null;
24665
+ printed_by: string | null;
24666
+ printed_cart_ids: import("./types").Json;
24667
+ printer_id: string | null;
24668
+ priority: number;
24669
+ reference: string | null;
24670
+ route: string | null;
24671
+ screen_id: string | null;
24672
+ station_id: string | null;
24673
+ status_id: string | null;
24674
+ updated_at: string;
24675
+ warnings: import("./types").Json;
24676
+ };
24677
+ SetofOptions: {
24678
+ from: "*";
24679
+ to: "pick_queue";
24680
+ isOneToOne: true;
24681
+ isSetofReturn: false;
24682
+ };
24683
+ };
24684
+ pick_reset_print_jobs: {
24685
+ Args: {
24686
+ _cart_ids: string[];
24687
+ _job_ids: string[];
24688
+ _queue_item_id: string;
24689
+ _session_id: string;
24690
+ };
24691
+ Returns: {
24692
+ announced_at: string;
24693
+ assigned_user_id: string | null;
24694
+ barcode: string | null;
24695
+ cancelled_at: string | null;
24696
+ cart_count: number;
24697
+ completed_at: string | null;
24698
+ country_code: string | null;
24699
+ created_at: string;
24700
+ customer_name: string | null;
24701
+ delivery_address: string | null;
24702
+ document_number: string | null;
24703
+ document_type_id: string | null;
24704
+ due_at: string | null;
24705
+ id: string;
24706
+ is_urgent: boolean;
24707
+ line_count: number;
24708
+ order_number: string | null;
24709
+ order_type: string | null;
24710
+ payload: import("./types").Json;
24711
+ print_count: number;
24712
+ print_job_id: string | null;
24713
+ printed_at: string | null;
24714
+ printed_by: string | null;
24715
+ printed_cart_ids: import("./types").Json;
24716
+ printer_id: string | null;
24717
+ priority: number;
24718
+ reference: string | null;
24719
+ route: string | null;
24720
+ screen_id: string | null;
24721
+ station_id: string | null;
24722
+ status_id: string | null;
24723
+ updated_at: string;
24724
+ warnings: import("./types").Json;
24725
+ };
24726
+ SetofOptions: {
24727
+ from: "*";
24728
+ to: "pick_queue";
24729
+ isOneToOne: true;
24730
+ isSetofReturn: false;
24731
+ };
24732
+ };
24733
+ pick_restore_to_queue: {
24734
+ Args: {
24735
+ _queue_item_id: string;
24736
+ _session_id: string;
24737
+ };
24738
+ Returns: {
24739
+ announced_at: string;
24740
+ assigned_user_id: string | null;
24741
+ barcode: string | null;
24742
+ cancelled_at: string | null;
24743
+ cart_count: number;
24744
+ completed_at: string | null;
24745
+ country_code: string | null;
24746
+ created_at: string;
24747
+ customer_name: string | null;
24748
+ delivery_address: string | null;
24749
+ document_number: string | null;
24750
+ document_type_id: string | null;
24751
+ due_at: string | null;
24752
+ id: string;
24753
+ is_urgent: boolean;
24754
+ line_count: number;
24755
+ order_number: string | null;
24756
+ order_type: string | null;
24757
+ payload: import("./types").Json;
24758
+ print_count: number;
24759
+ print_job_id: string | null;
24760
+ printed_at: string | null;
24761
+ printed_by: string | null;
24762
+ printed_cart_ids: import("./types").Json;
24763
+ printer_id: string | null;
24764
+ priority: number;
24765
+ reference: string | null;
24766
+ route: string | null;
24767
+ screen_id: string | null;
24768
+ station_id: string | null;
24769
+ status_id: string | null;
24770
+ updated_at: string;
24771
+ warnings: import("./types").Json;
24772
+ };
24773
+ SetofOptions: {
24774
+ from: "*";
24775
+ to: "pick_queue";
24776
+ isOneToOne: true;
24777
+ isSetofReturn: false;
24778
+ };
24779
+ };
22966
24780
  pick_seed_reference_data: {
22967
24781
  Args: never;
22968
24782
  Returns: import("./types").Json;
@@ -23012,6 +24826,12 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
23012
24826
  };
23013
24827
  Returns: string;
23014
24828
  };
24829
+ pick_sync_pick_day: {
24830
+ Args: {
24831
+ _day: string;
24832
+ };
24833
+ Returns: import("./types").Json;
24834
+ };
23015
24835
  pick_sync_queue_throttled: {
23016
24836
  Args: {
23017
24837
  _min_seconds?: number;
@@ -23241,6 +25061,20 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
23241
25061
  };
23242
25062
  Returns: boolean;
23243
25063
  };
25064
+ release_local_pdf_job: {
25065
+ Args: {
25066
+ _job_id: string;
25067
+ _writer_id: string;
25068
+ };
25069
+ Returns: boolean;
25070
+ };
25071
+ release_print_queue_lease: {
25072
+ Args: {
25073
+ _houder: string;
25074
+ _naam: string;
25075
+ };
25076
+ Returns: boolean;
25077
+ };
23244
25078
  release_stale_order_invoice_links: {
23245
25079
  Args: {
23246
25080
  _minutes?: number;
@@ -23261,6 +25095,12 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
23261
25095
  };
23262
25096
  Returns: import("./types").Json;
23263
25097
  };
25098
+ reset_cart_layer_positions: {
25099
+ Args: {
25100
+ p_cart_id: string;
25101
+ };
25102
+ Returns: number;
25103
+ };
23264
25104
  reset_floriday_sync_cursor: {
23265
25105
  Args: {
23266
25106
  p_connection_id: string;
@@ -23324,6 +25164,15 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
23324
25164
  };
23325
25165
  Returns: import("./types").Json;
23326
25166
  };
25167
+ roles_without_enum_mapping: {
25168
+ Args: never;
25169
+ Returns: {
25170
+ assignment_count: number;
25171
+ id: string;
25172
+ key: string;
25173
+ name: string;
25174
+ }[];
25175
+ };
23327
25176
  ruim_print_jobs_op: {
23328
25177
  Args: {
23329
25178
  _bewaar_dagen?: number;
@@ -23338,6 +25187,10 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
23338
25187
  Args: never;
23339
25188
  Returns: undefined;
23340
25189
  };
25190
+ run_floriday_stock_reconcile: {
25191
+ Args: never;
25192
+ Returns: undefined;
25193
+ };
23341
25194
  run_logistics_tasks_dispatch: {
23342
25195
  Args: never;
23343
25196
  Returns: undefined;
@@ -23356,18 +25209,98 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
23356
25209
  };
23357
25210
  Returns: import("./types").Json;
23358
25211
  };
25212
+ scan_complete_cart: {
25213
+ Args: {
25214
+ p_allow_reprint?: boolean;
25215
+ p_cart_id: string;
25216
+ p_print?: boolean;
25217
+ p_scanner_id?: string;
25218
+ };
25219
+ Returns: import("./types").Json;
25220
+ };
23359
25221
  scan_dashboard_stats: {
23360
25222
  Args: {
23361
25223
  p_dagen?: number;
23362
25224
  };
23363
25225
  Returns: import("./types").Json;
23364
25226
  };
25227
+ scan_eindcontrole: {
25228
+ Args: {
25229
+ p_barcode: string;
25230
+ p_scanner_id?: string;
25231
+ };
25232
+ Returns: import("./types").Json;
25233
+ };
23365
25234
  scan_finish_kar: {
23366
25235
  Args: {
23367
25236
  p_kar_id: string;
23368
25237
  };
23369
25238
  Returns: import("./types").Json;
23370
25239
  };
25240
+ scan_kar_compleet: {
25241
+ Args: {
25242
+ p_allow_reprint?: boolean;
25243
+ p_sessie_id: string;
25244
+ };
25245
+ Returns: import("./types").Json;
25246
+ };
25247
+ scan_kar_regels: {
25248
+ Args: {
25249
+ p_cart_id: string;
25250
+ };
25251
+ Returns: import("./types").Json;
25252
+ };
25253
+ scan_log_code: {
25254
+ Args: {
25255
+ p_code: string;
25256
+ p_latency_ms?: number;
25257
+ p_message?: string;
25258
+ p_result: string;
25259
+ p_scanner_key?: string;
25260
+ };
25261
+ Returns: string;
25262
+ };
25263
+ scan_open_pakbonnen: {
25264
+ Args: {
25265
+ p_dagen?: number;
25266
+ };
25267
+ Returns: import("./types").Json;
25268
+ };
25269
+ scan_pakbon_lookup: {
25270
+ Args: {
25271
+ p_barcode: string;
25272
+ };
25273
+ Returns: import("./types").Json;
25274
+ };
25275
+ scan_pakbon_opnieuw: {
25276
+ Args: {
25277
+ p_barcode: string;
25278
+ p_scanner_id?: string;
25279
+ };
25280
+ Returns: import("./types").Json;
25281
+ };
25282
+ scan_pakbon_toevoegen: {
25283
+ Args: {
25284
+ p_barcode: string;
25285
+ p_medewerker?: string;
25286
+ p_regels?: import("./types").Json;
25287
+ p_scanner_id: string;
25288
+ };
25289
+ Returns: import("./types").Json;
25290
+ };
25291
+ scan_print_restpakbon: {
25292
+ Args: {
25293
+ p_printer_id?: string;
25294
+ p_restpakbon_id: string;
25295
+ };
25296
+ Returns: import("./types").Json;
25297
+ };
25298
+ scan_print_verzendbrief: {
25299
+ Args: {
25300
+ p_sessie_id: string;
25301
+ };
25302
+ Returns: import("./types").Json;
25303
+ };
23371
25304
  scan_register_item: {
23372
25305
  Args: {
23373
25306
  p_kar_id: string;
@@ -23386,6 +25319,25 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
23386
25319
  };
23387
25320
  Returns: import("./types").Json;
23388
25321
  };
25322
+ scan_restpakbon_geprint: {
25323
+ Args: {
25324
+ p_id: string;
25325
+ p_print_job_id?: string;
25326
+ };
25327
+ Returns: undefined;
25328
+ };
25329
+ scan_sessie_annuleren: {
25330
+ Args: {
25331
+ p_sessie_id: string;
25332
+ };
25333
+ Returns: undefined;
25334
+ };
25335
+ scan_sessie_open: {
25336
+ Args: {
25337
+ p_scanner_id: string;
25338
+ };
25339
+ Returns: import("./types").Json;
25340
+ };
23389
25341
  scan_start_kar: {
23390
25342
  Args: {
23391
25343
  p_medewerker_id?: string;
@@ -23404,6 +25356,12 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
23404
25356
  };
23405
25357
  Returns: import("./types").Json;
23406
25358
  };
25359
+ scan_verzendbrief_regels: {
25360
+ Args: {
25361
+ p_sessie_id: string;
25362
+ };
25363
+ Returns: import("./types").Json;
25364
+ };
23407
25365
  schedule_floriday_additional_services_sync: {
23408
25366
  Args: {
23409
25367
  p_apikey: string;
@@ -23719,6 +25677,13 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
23719
25677
  };
23720
25678
  Returns: import("./types").Json;
23721
25679
  };
25680
+ swap_cart_layer_positions: {
25681
+ Args: {
25682
+ p_a: string;
25683
+ p_b: string;
25684
+ };
25685
+ Returns: undefined;
25686
+ };
23722
25687
  switch_time_log: {
23723
25688
  Args: {
23724
25689
  p_employee_id: string;
@@ -23751,6 +25716,12 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
23751
25716
  };
23752
25717
  Returns: undefined;
23753
25718
  };
25719
+ sync_order_item_fusten: {
25720
+ Args: {
25721
+ _order_item_id: string;
25722
+ };
25723
+ Returns: undefined;
25724
+ };
23754
25725
  sync_product_group_belading: {
23755
25726
  Args: {
23756
25727
  _group_id: string;
@@ -23857,6 +25828,12 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
23857
25828
  Args: never;
23858
25829
  Returns: string;
23859
25830
  };
25831
+ wake_print_queue: {
25832
+ Args: {
25833
+ _min_interval_ms?: number;
25834
+ };
25835
+ Returns: number;
25836
+ };
23860
25837
  werkbon_totalen: {
23861
25838
  Args: {
23862
25839
  _werkbon_id: string;
@@ -23889,10 +25866,18 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
23889
25866
  };
23890
25867
  Returns: import("./types").Json;
23891
25868
  };
25869
+ wo_set_status: {
25870
+ Args: {
25871
+ _reason?: string;
25872
+ _status: string;
25873
+ _work_order_id: string;
25874
+ };
25875
+ Returns: import("./types").Json;
25876
+ };
23892
25877
  };
23893
25878
  Enums: {
23894
25879
  ai_import_status: "nieuw" | "verwerken" | "bevestigen" | "klaar" | "mislukt";
23895
- app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie";
25880
+ app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie" | "superadmin";
23896
25881
  doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon" | "veilingbon" | "afleverbrief" | "veilingbrief";
23897
25882
  doc_orientation: "portrait" | "landscape";
23898
25883
  exact_env: "staging" | "live";