@flowselections/layout-maker 1.36.7 → 1.38.4

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 (67) hide show
  1. package/README.md +139 -139
  2. package/dist-lib/components/AfdrukKnop.d.ts +19 -19
  3. package/dist-lib/components/NetwerkPrintersDialog.d.ts +7 -7
  4. package/dist-lib/components/PaginaDocument.d.ts +4 -1
  5. package/dist-lib/components/PaginaDocument.d.ts.map +1 -1
  6. package/dist-lib/components/PaginaDocument.js +10 -5
  7. package/dist-lib/components/PakbonBuilderPage.d.ts.map +1 -1
  8. package/dist-lib/components/PakbonBuilderPage.js +4 -2
  9. package/dist-lib/components/PakbonPreview.d.ts +4 -2
  10. package/dist-lib/components/PakbonPreview.d.ts.map +1 -1
  11. package/dist-lib/components/PakbonPreview.js +55 -12
  12. package/dist-lib/components/PakbonSectiesPanel.d.ts +2 -2
  13. package/dist-lib/components/PakbonSectiesPanel.d.ts.map +1 -1
  14. package/dist-lib/components/PakbonSectiesPanel.js +3 -2
  15. package/dist-lib/components/PrinterSetupWizard.js +3 -3
  16. package/dist-lib/components/PrintersRedirectPage.d.ts +1 -1
  17. package/dist-lib/components/PrintersRedirectPage.js +14 -14
  18. package/dist-lib/index.d.ts +4 -2
  19. package/dist-lib/index.d.ts.map +1 -1
  20. package/dist-lib/index.js +3 -2
  21. package/dist-lib/integrations/supabase/auth-middleware.d.ts +1240 -812
  22. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  23. package/dist-lib/integrations/supabase/client.server.d.ts +1240 -812
  24. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  25. package/dist-lib/integrations/supabase/client.server.js +1 -1
  26. package/dist-lib/integrations/supabase/moduleClient.d.ts +24008 -0
  27. package/dist-lib/integrations/supabase/moduleClient.d.ts.map +1 -0
  28. package/dist-lib/integrations/supabase/moduleClient.js +29 -0
  29. package/dist-lib/integrations/supabase/types.d.ts +1231 -821
  30. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  31. package/dist-lib/lib/aiLayout.functions.d.ts +1240 -812
  32. package/dist-lib/lib/aiLayout.functions.d.ts.map +1 -1
  33. package/dist-lib/lib/aiLayout.server.js +9 -9
  34. package/dist-lib/lib/browserPrint.js +1 -1
  35. package/dist-lib/lib/code128.d.ts +5 -0
  36. package/dist-lib/lib/code128.d.ts.map +1 -0
  37. package/dist-lib/lib/code128.js +51 -0
  38. package/dist-lib/lib/htmlPdf.server.d.ts.map +1 -1
  39. package/dist-lib/lib/htmlPdf.server.js +58 -0
  40. package/dist-lib/lib/layoutPreview.d.ts.map +1 -1
  41. package/dist-lib/lib/layoutPreview.js +11 -8
  42. package/dist-lib/lib/orderData.server.d.ts.map +1 -1
  43. package/dist-lib/lib/orderData.server.js +6 -0
  44. package/dist-lib/lib/pakbonBuilder.d.ts +28 -2
  45. package/dist-lib/lib/pakbonBuilder.d.ts.map +1 -1
  46. package/dist-lib/lib/pakbonBuilder.js +69 -8
  47. package/dist-lib/lib/pakbonHtml.d.ts +14 -2
  48. package/dist-lib/lib/pakbonHtml.d.ts.map +1 -1
  49. package/dist-lib/lib/pakbonHtml.js +155 -63
  50. package/dist-lib/lib/pakbonScan.d.ts +44 -0
  51. package/dist-lib/lib/pakbonScan.d.ts.map +1 -0
  52. package/dist-lib/lib/pakbonScan.js +105 -0
  53. package/dist-lib/lib/printQueue.server.d.ts +7 -0
  54. package/dist-lib/lib/printQueue.server.d.ts.map +1 -1
  55. package/dist-lib/lib/printQueue.server.js +247 -26
  56. package/dist-lib/lib/printService.functions.d.ts +4445 -2733
  57. package/dist-lib/lib/printService.functions.d.ts.map +1 -1
  58. package/dist-lib/lib/productiebonHtml.js +15 -15
  59. package/dist-lib/lib/profielHtml.js +18 -18
  60. package/dist-lib/lib/supabaseAdmin.server.d.ts +5 -5
  61. package/dist-lib/lib/supabaseAdmin.server.js +43 -43
  62. package/dist-lib/lib/supabaseClient.d.ts +1 -3
  63. package/dist-lib/lib/supabaseClient.d.ts.map +1 -1
  64. package/dist-lib/lib/supabaseClient.js +4 -8
  65. package/dist-lib/lib/testpagina.js +3 -3
  66. package/dist-lib/lib/testprint.js +4 -4
  67. package/package.json +151 -151
@@ -5982,10 +5982,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
5982
5982
  };
5983
5983
  floriday_connections: {
5984
5984
  Row: {
5985
- access_token: string | null;
5986
5985
  api_key: string;
5987
- client_id: string;
5988
- client_secret: string;
5989
5986
  created_at: string;
5990
5987
  customers_endpoint: string | null;
5991
5988
  environment: string;
@@ -6000,10 +5997,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
6000
5997
  updated_at: string;
6001
5998
  };
6002
5999
  Insert: {
6003
- access_token?: string | null;
6004
6000
  api_key: string;
6005
- client_id: string;
6006
- client_secret: string;
6007
6001
  created_at?: string;
6008
6002
  customers_endpoint?: string | null;
6009
6003
  environment: string;
@@ -6018,10 +6012,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
6018
6012
  updated_at?: string;
6019
6013
  };
6020
6014
  Update: {
6021
- access_token?: string | null;
6022
6015
  api_key?: string;
6023
- client_id?: string;
6024
- client_secret?: string;
6025
6016
  created_at?: string;
6026
6017
  customers_endpoint?: string | null;
6027
6018
  environment?: string;
@@ -6105,6 +6096,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
6105
6096
  attempts: number;
6106
6097
  connection_id: string;
6107
6098
  created_at: string;
6099
+ dead_lettered_at: string | null;
6108
6100
  desired_available: boolean | null;
6109
6101
  gateway_attempt_id: string | null;
6110
6102
  id: string;
@@ -6113,9 +6105,13 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
6113
6105
  locked_by: string | null;
6114
6106
  next_attempt_at: string;
6115
6107
  number_of_pieces: number;
6108
+ product_id: string | null;
6116
6109
  sent_at: string | null;
6117
6110
  status: string;
6111
+ stock_mode: string | null;
6118
6112
  superseded_by: string | null;
6113
+ target_week: number | null;
6114
+ target_year: number | null;
6119
6115
  trade_item_id: string;
6120
6116
  updated_at: string;
6121
6117
  user_id: string;
@@ -6124,6 +6120,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
6124
6120
  attempts?: number;
6125
6121
  connection_id: string;
6126
6122
  created_at?: string;
6123
+ dead_lettered_at?: string | null;
6127
6124
  desired_available?: boolean | null;
6128
6125
  gateway_attempt_id?: string | null;
6129
6126
  id?: string;
@@ -6132,9 +6129,13 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
6132
6129
  locked_by?: string | null;
6133
6130
  next_attempt_at?: string;
6134
6131
  number_of_pieces?: number;
6132
+ product_id?: string | null;
6135
6133
  sent_at?: string | null;
6136
6134
  status?: string;
6135
+ stock_mode?: string | null;
6137
6136
  superseded_by?: string | null;
6137
+ target_week?: number | null;
6138
+ target_year?: number | null;
6138
6139
  trade_item_id: string;
6139
6140
  updated_at?: string;
6140
6141
  user_id: string;
@@ -6143,6 +6144,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
6143
6144
  attempts?: number;
6144
6145
  connection_id?: string;
6145
6146
  created_at?: string;
6147
+ dead_lettered_at?: string | null;
6146
6148
  desired_available?: boolean | null;
6147
6149
  gateway_attempt_id?: string | null;
6148
6150
  id?: string;
@@ -6151,9 +6153,13 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
6151
6153
  locked_by?: string | null;
6152
6154
  next_attempt_at?: string;
6153
6155
  number_of_pieces?: number;
6156
+ product_id?: string | null;
6154
6157
  sent_at?: string | null;
6155
6158
  status?: string;
6159
+ stock_mode?: string | null;
6156
6160
  superseded_by?: string | null;
6161
+ target_week?: number | null;
6162
+ target_year?: number | null;
6157
6163
  trade_item_id?: string;
6158
6164
  updated_at?: string;
6159
6165
  user_id?: string;
@@ -6562,6 +6568,87 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
6562
6568
  referencedColumns: ["id"];
6563
6569
  }];
6564
6570
  };
6571
+ floriday_inventory_settings: {
6572
+ Row: {
6573
+ buffer_quantity: number;
6574
+ connection_id: string;
6575
+ created_at: string;
6576
+ desired_availability: boolean;
6577
+ desired_quantity: number;
6578
+ fixed_quantity: number | null;
6579
+ floriday_trade_item_id: string | null;
6580
+ id: string;
6581
+ last_confirmed_at: string | null;
6582
+ last_enqueued_at: string | null;
6583
+ last_published_at: string | null;
6584
+ last_sync_error: string | null;
6585
+ manual_quantity: number | null;
6586
+ maximum_quantity: number | null;
6587
+ product_id: string;
6588
+ quantity_control: string;
6589
+ remote_available: boolean | null;
6590
+ remote_checked_at: string | null;
6591
+ remote_quantity: number | null;
6592
+ stock_mode: string;
6593
+ sync_status: string;
6594
+ updated_at: string;
6595
+ updated_by: string | null;
6596
+ user_id: string;
6597
+ };
6598
+ Insert: {
6599
+ buffer_quantity?: number;
6600
+ connection_id: string;
6601
+ created_at?: string;
6602
+ desired_availability?: boolean;
6603
+ desired_quantity?: number;
6604
+ fixed_quantity?: number | null;
6605
+ floriday_trade_item_id?: string | null;
6606
+ id?: string;
6607
+ last_confirmed_at?: string | null;
6608
+ last_enqueued_at?: string | null;
6609
+ last_published_at?: string | null;
6610
+ last_sync_error?: string | null;
6611
+ manual_quantity?: number | null;
6612
+ maximum_quantity?: number | null;
6613
+ product_id: string;
6614
+ quantity_control?: string;
6615
+ remote_available?: boolean | null;
6616
+ remote_checked_at?: string | null;
6617
+ remote_quantity?: number | null;
6618
+ stock_mode?: string;
6619
+ sync_status?: string;
6620
+ updated_at?: string;
6621
+ updated_by?: string | null;
6622
+ user_id: string;
6623
+ };
6624
+ Update: {
6625
+ buffer_quantity?: number;
6626
+ connection_id?: string;
6627
+ created_at?: string;
6628
+ desired_availability?: boolean;
6629
+ desired_quantity?: number;
6630
+ fixed_quantity?: number | null;
6631
+ floriday_trade_item_id?: string | null;
6632
+ id?: string;
6633
+ last_confirmed_at?: string | null;
6634
+ last_enqueued_at?: string | null;
6635
+ last_published_at?: string | null;
6636
+ last_sync_error?: string | null;
6637
+ manual_quantity?: number | null;
6638
+ maximum_quantity?: number | null;
6639
+ product_id?: string;
6640
+ quantity_control?: string;
6641
+ remote_available?: boolean | null;
6642
+ remote_checked_at?: string | null;
6643
+ remote_quantity?: number | null;
6644
+ stock_mode?: string;
6645
+ sync_status?: string;
6646
+ updated_at?: string;
6647
+ updated_by?: string | null;
6648
+ user_id?: string;
6649
+ };
6650
+ Relationships: [];
6651
+ };
6565
6652
  floriday_invoices_cache: {
6566
6653
  Row: {
6567
6654
  buyer_organization_id: string | null;
@@ -6850,6 +6937,39 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
6850
6937
  };
6851
6938
  Relationships: [];
6852
6939
  };
6940
+ floriday_sales_order_ingest: {
6941
+ Row: {
6942
+ connection_id: string;
6943
+ created_at: string;
6944
+ id: string;
6945
+ impact: import("./types.js").Json;
6946
+ order_status: string | null;
6947
+ order_version: number;
6948
+ processed_at: string;
6949
+ sales_order_id: string;
6950
+ };
6951
+ Insert: {
6952
+ connection_id: string;
6953
+ created_at?: string;
6954
+ id?: string;
6955
+ impact?: import("./types.js").Json;
6956
+ order_status?: string | null;
6957
+ order_version?: number;
6958
+ processed_at?: string;
6959
+ sales_order_id: string;
6960
+ };
6961
+ Update: {
6962
+ connection_id?: string;
6963
+ created_at?: string;
6964
+ id?: string;
6965
+ impact?: import("./types.js").Json;
6966
+ order_status?: string | null;
6967
+ order_version?: number;
6968
+ processed_at?: string;
6969
+ sales_order_id?: string;
6970
+ };
6971
+ Relationships: [];
6972
+ };
6853
6973
  floriday_sales_strategies_cache: {
6854
6974
  Row: {
6855
6975
  connection_id: string;
@@ -6949,6 +7069,39 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
6949
7069
  };
6950
7070
  Relationships: [];
6951
7071
  };
7072
+ floriday_sync_cursors: {
7073
+ Row: {
7074
+ connection_id: string;
7075
+ created_at: string;
7076
+ id: string;
7077
+ last_error: string | null;
7078
+ last_sync_at: string | null;
7079
+ resource_type: string;
7080
+ sequence_number: number;
7081
+ updated_at: string;
7082
+ };
7083
+ Insert: {
7084
+ connection_id: string;
7085
+ created_at?: string;
7086
+ id?: string;
7087
+ last_error?: string | null;
7088
+ last_sync_at?: string | null;
7089
+ resource_type: string;
7090
+ sequence_number?: number;
7091
+ updated_at?: string;
7092
+ };
7093
+ Update: {
7094
+ connection_id?: string;
7095
+ created_at?: string;
7096
+ id?: string;
7097
+ last_error?: string | null;
7098
+ last_sync_at?: string | null;
7099
+ resource_type?: string;
7100
+ sequence_number?: number;
7101
+ updated_at?: string;
7102
+ };
7103
+ Relationships: [];
7104
+ };
6952
7105
  floriday_sync_state: {
6953
7106
  Row: {
6954
7107
  connection_id: string;
@@ -7639,6 +7792,42 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
7639
7792
  };
7640
7793
  Relationships: [];
7641
7794
  };
7795
+ inventory_stock_snapshots: {
7796
+ Row: {
7797
+ connection_id: string;
7798
+ created_at: string;
7799
+ erp_available_quantity: number;
7800
+ floriday_desired_quantity: number;
7801
+ floriday_remote_quantity: number | null;
7802
+ granularity: string;
7803
+ id: string;
7804
+ snapshot_at: string;
7805
+ user_id: string | null;
7806
+ };
7807
+ Insert: {
7808
+ connection_id: string;
7809
+ created_at?: string;
7810
+ erp_available_quantity?: number;
7811
+ floriday_desired_quantity?: number;
7812
+ floriday_remote_quantity?: number | null;
7813
+ granularity?: string;
7814
+ id?: string;
7815
+ snapshot_at?: string;
7816
+ user_id?: string | null;
7817
+ };
7818
+ Update: {
7819
+ connection_id?: string;
7820
+ created_at?: string;
7821
+ erp_available_quantity?: number;
7822
+ floriday_desired_quantity?: number;
7823
+ floriday_remote_quantity?: number | null;
7824
+ granularity?: string;
7825
+ id?: string;
7826
+ snapshot_at?: string;
7827
+ user_id?: string | null;
7828
+ };
7829
+ Relationships: [];
7830
+ };
7642
7831
  invoice_items: {
7643
7832
  Row: {
7644
7833
  created_at: string;
@@ -8147,13 +8336,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
8147
8336
  segment?: Database["public"]["Enums"]["itk_customer_segment"];
8148
8337
  updated_at?: string;
8149
8338
  };
8150
- Relationships: [{
8151
- foreignKeyName: "itk_customers_legacy_customer_id_fkey";
8152
- columns: ["legacy_customer_id"];
8153
- isOneToOne: false;
8154
- referencedRelation: "customers";
8155
- referencedColumns: ["id"];
8156
- }];
8339
+ Relationships: [];
8157
8340
  };
8158
8341
  itk_dynamic_fields: {
8159
8342
  Row: {
@@ -8185,6 +8368,180 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
8185
8368
  };
8186
8369
  Relationships: [];
8187
8370
  };
8371
+ itk_handover_rechten: {
8372
+ Row: {
8373
+ created_at: string;
8374
+ id: string;
8375
+ module_id: string;
8376
+ rol: Database["public"]["Enums"]["app_role"] | null;
8377
+ updated_at: string;
8378
+ user_id: string | null;
8379
+ };
8380
+ Insert: {
8381
+ created_at?: string;
8382
+ id?: string;
8383
+ module_id: string;
8384
+ rol?: Database["public"]["Enums"]["app_role"] | null;
8385
+ updated_at?: string;
8386
+ user_id?: string | null;
8387
+ };
8388
+ Update: {
8389
+ created_at?: string;
8390
+ id?: string;
8391
+ module_id?: string;
8392
+ rol?: Database["public"]["Enums"]["app_role"] | null;
8393
+ updated_at?: string;
8394
+ user_id?: string | null;
8395
+ };
8396
+ Relationships: [];
8397
+ };
8398
+ itk_handover_tokens: {
8399
+ Row: {
8400
+ aangemaakt_door: string | null;
8401
+ created_at: string;
8402
+ id: string;
8403
+ is_actief: boolean;
8404
+ laatst_gebruikt_op: string | null;
8405
+ label: string;
8406
+ module_id: string;
8407
+ token_hash: string;
8408
+ updated_at: string;
8409
+ verloopt_op: string | null;
8410
+ };
8411
+ Insert: {
8412
+ aangemaakt_door?: string | null;
8413
+ created_at?: string;
8414
+ id?: string;
8415
+ is_actief?: boolean;
8416
+ laatst_gebruikt_op?: string | null;
8417
+ label?: string;
8418
+ module_id: string;
8419
+ token_hash: string;
8420
+ updated_at?: string;
8421
+ verloopt_op?: string | null;
8422
+ };
8423
+ Update: {
8424
+ aangemaakt_door?: string | null;
8425
+ created_at?: string;
8426
+ id?: string;
8427
+ is_actief?: boolean;
8428
+ laatst_gebruikt_op?: string | null;
8429
+ label?: string;
8430
+ module_id?: string;
8431
+ token_hash?: string;
8432
+ updated_at?: string;
8433
+ verloopt_op?: string | null;
8434
+ };
8435
+ Relationships: [];
8436
+ };
8437
+ itk_module_handovers: {
8438
+ Row: {
8439
+ bevindingen: string | null;
8440
+ bezit_tabellen: string[];
8441
+ conflicten_snapshot: import("./types.js").Json;
8442
+ contractfuncties: string[];
8443
+ created_at: string;
8444
+ eigenaar_module_id: string | null;
8445
+ gepubliceerd_door: string | null;
8446
+ gepubliceerd_op: string;
8447
+ herzieningstermijn_dagen: number;
8448
+ id: string;
8449
+ inhoud_md: string;
8450
+ is_actueel: boolean;
8451
+ module_id: string;
8452
+ module_titel: string;
8453
+ ontbrekende_contracten: string[];
8454
+ samenvatting: string | null;
8455
+ updated_at: string;
8456
+ versie: number;
8457
+ };
8458
+ Insert: {
8459
+ bevindingen?: string | null;
8460
+ bezit_tabellen?: string[];
8461
+ conflicten_snapshot?: import("./types.js").Json;
8462
+ contractfuncties?: string[];
8463
+ created_at?: string;
8464
+ eigenaar_module_id?: string | null;
8465
+ gepubliceerd_door?: string | null;
8466
+ gepubliceerd_op?: string;
8467
+ herzieningstermijn_dagen?: number;
8468
+ id?: string;
8469
+ inhoud_md: string;
8470
+ is_actueel?: boolean;
8471
+ module_id: string;
8472
+ module_titel: string;
8473
+ ontbrekende_contracten?: string[];
8474
+ samenvatting?: string | null;
8475
+ updated_at?: string;
8476
+ versie?: number;
8477
+ };
8478
+ Update: {
8479
+ bevindingen?: string | null;
8480
+ bezit_tabellen?: string[];
8481
+ conflicten_snapshot?: import("./types.js").Json;
8482
+ contractfuncties?: string[];
8483
+ created_at?: string;
8484
+ eigenaar_module_id?: string | null;
8485
+ gepubliceerd_door?: string | null;
8486
+ gepubliceerd_op?: string;
8487
+ herzieningstermijn_dagen?: number;
8488
+ id?: string;
8489
+ inhoud_md?: string;
8490
+ is_actueel?: boolean;
8491
+ module_id?: string;
8492
+ module_titel?: string;
8493
+ ontbrekende_contracten?: string[];
8494
+ samenvatting?: string | null;
8495
+ updated_at?: string;
8496
+ versie?: number;
8497
+ };
8498
+ Relationships: [];
8499
+ };
8500
+ itk_module_instructies: {
8501
+ Row: {
8502
+ created_at: string;
8503
+ eigenaar_module_id: string;
8504
+ gepubliceerd_door: string | null;
8505
+ gepubliceerd_op: string;
8506
+ id: string;
8507
+ inhoud_md: string;
8508
+ is_actueel: boolean;
8509
+ sleutel: string;
8510
+ titel: string;
8511
+ toelichting: string | null;
8512
+ updated_at: string;
8513
+ versie: number;
8514
+ };
8515
+ Insert: {
8516
+ created_at?: string;
8517
+ eigenaar_module_id?: string;
8518
+ gepubliceerd_door?: string | null;
8519
+ gepubliceerd_op?: string;
8520
+ id?: string;
8521
+ inhoud_md: string;
8522
+ is_actueel?: boolean;
8523
+ sleutel: string;
8524
+ titel: string;
8525
+ toelichting?: string | null;
8526
+ updated_at?: string;
8527
+ versie?: number;
8528
+ };
8529
+ Update: {
8530
+ created_at?: string;
8531
+ eigenaar_module_id?: string;
8532
+ gepubliceerd_door?: string | null;
8533
+ gepubliceerd_op?: string;
8534
+ id?: string;
8535
+ inhoud_md?: string;
8536
+ is_actueel?: boolean;
8537
+ sleutel?: string;
8538
+ titel?: string;
8539
+ toelichting?: string | null;
8540
+ updated_at?: string;
8541
+ versie?: number;
8542
+ };
8543
+ Relationships: [];
8544
+ };
8188
8545
  itk_offerte_events: {
8189
8546
  Row: {
8190
8547
  created_at: string;
@@ -9043,6 +9400,27 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
9043
9400
  };
9044
9401
  Relationships: [];
9045
9402
  };
9403
+ logistics_cart_barcode: {
9404
+ Row: {
9405
+ barcode: string;
9406
+ cart_id: string;
9407
+ created_at: string;
9408
+ order_id: string | null;
9409
+ };
9410
+ Insert: {
9411
+ barcode: string;
9412
+ cart_id: string;
9413
+ created_at?: string;
9414
+ order_id?: string | null;
9415
+ };
9416
+ Update: {
9417
+ barcode?: string;
9418
+ cart_id?: string;
9419
+ created_at?: string;
9420
+ order_id?: string | null;
9421
+ };
9422
+ Relationships: [];
9423
+ };
9046
9424
  logistics_decisions: {
9047
9425
  Row: {
9048
9426
  created_at: string;
@@ -9871,6 +10249,36 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
9871
10249
  referencedColumns: ["id"];
9872
10250
  }];
9873
10251
  };
10252
+ logistics_shipping_note_scan: {
10253
+ Row: {
10254
+ barcode: string;
10255
+ cart_id: string;
10256
+ id: string;
10257
+ is_reprint: boolean;
10258
+ order_id: string | null;
10259
+ print_job_id: string | null;
10260
+ scanned_at: string;
10261
+ };
10262
+ Insert: {
10263
+ barcode: string;
10264
+ cart_id: string;
10265
+ id?: string;
10266
+ is_reprint?: boolean;
10267
+ order_id?: string | null;
10268
+ print_job_id?: string | null;
10269
+ scanned_at?: string;
10270
+ };
10271
+ Update: {
10272
+ barcode?: string;
10273
+ cart_id?: string;
10274
+ id?: string;
10275
+ is_reprint?: boolean;
10276
+ order_id?: string | null;
10277
+ print_job_id?: string | null;
10278
+ scanned_at?: string;
10279
+ };
10280
+ Relationships: [];
10281
+ };
9874
10282
  logistics_staff_planning: {
9875
10283
  Row: {
9876
10284
  created_at: string;
@@ -11926,6 +12334,8 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
11926
12334
  order_buffers: {
11927
12335
  Row: {
11928
12336
  buffer_key: string;
12337
+ close_at: string | null;
12338
+ closed_at: string | null;
11929
12339
  created_at: string;
11930
12340
  customer_id: string | null;
11931
12341
  grouping_mode: string;
@@ -11937,6 +12347,8 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
11937
12347
  };
11938
12348
  Insert: {
11939
12349
  buffer_key: string;
12350
+ close_at?: string | null;
12351
+ closed_at?: string | null;
11940
12352
  created_at?: string;
11941
12353
  customer_id?: string | null;
11942
12354
  grouping_mode: string;
@@ -11948,6 +12360,8 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
11948
12360
  };
11949
12361
  Update: {
11950
12362
  buffer_key?: string;
12363
+ close_at?: string | null;
12364
+ closed_at?: string | null;
11951
12365
  created_at?: string;
11952
12366
  customer_id?: string | null;
11953
12367
  grouping_mode?: string;
@@ -11964,10 +12378,12 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
11964
12378
  boxes: number | null;
11965
12379
  cart_id: string;
11966
12380
  crates: number;
12381
+ crates_in_layer: number | null;
11967
12382
  crates_per_layer: number;
11968
12383
  created_at: string;
11969
12384
  id: string;
11970
12385
  layer_fraction: number;
12386
+ layer_index: number | null;
11971
12387
  layer_share_pct: number;
11972
12388
  layers_per_cart: number;
11973
12389
  order_item_id: string | null;
@@ -11980,10 +12396,12 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
11980
12396
  boxes?: number | null;
11981
12397
  cart_id: string;
11982
12398
  crates: number;
12399
+ crates_in_layer?: number | null;
11983
12400
  crates_per_layer?: number;
11984
12401
  created_at?: string;
11985
12402
  id?: string;
11986
12403
  layer_fraction?: number;
12404
+ layer_index?: number | null;
11987
12405
  layer_share_pct?: number;
11988
12406
  layers_per_cart?: number;
11989
12407
  order_item_id?: string | null;
@@ -11996,10 +12414,12 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
11996
12414
  boxes?: number | null;
11997
12415
  cart_id?: string;
11998
12416
  crates?: number;
12417
+ crates_in_layer?: number | null;
11999
12418
  crates_per_layer?: number;
12000
12419
  created_at?: string;
12001
12420
  id?: string;
12002
12421
  layer_fraction?: number;
12422
+ layer_index?: number | null;
12003
12423
  layer_share_pct?: number;
12004
12424
  layers_per_cart?: number;
12005
12425
  order_item_id?: string | null;
@@ -12039,6 +12459,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
12039
12459
  id: string;
12040
12460
  is_auto: boolean;
12041
12461
  is_complete: boolean;
12462
+ layout_method: string | null;
12042
12463
  max_layers: number | null;
12043
12464
  moved_at: string | null;
12044
12465
  moved_from_moment_id: string | null;
@@ -12063,6 +12484,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
12063
12484
  id?: string;
12064
12485
  is_auto?: boolean;
12065
12486
  is_complete?: boolean;
12487
+ layout_method?: string | null;
12066
12488
  max_layers?: number | null;
12067
12489
  moved_at?: string | null;
12068
12490
  moved_from_moment_id?: string | null;
@@ -12087,6 +12509,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
12087
12509
  id?: string;
12088
12510
  is_auto?: boolean;
12089
12511
  is_complete?: boolean;
12512
+ layout_method?: string | null;
12090
12513
  max_layers?: number | null;
12091
12514
  moved_at?: string | null;
12092
12515
  moved_from_moment_id?: string | null;
@@ -12535,12 +12958,69 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
12535
12958
  };
12536
12959
  Relationships: [];
12537
12960
  };
12538
- pick_countries: {
12961
+ pakbon_barcode_inhoud: {
12539
12962
  Row: {
12540
- active: boolean;
12541
- code: string;
12963
+ barcode: string;
12964
+ cart_id: string | null;
12965
+ cart_index: number | null;
12966
+ cart_label: string | null;
12967
+ cart_total: number | null;
12542
12968
  created_at: string;
12543
- flag: string | null;
12969
+ is_herprint: boolean;
12970
+ klant_naam: string | null;
12971
+ klant_nummer: string | null;
12972
+ layout_id: string | null;
12973
+ layout_variant: string | null;
12974
+ order_nummer: string | null;
12975
+ order_ref: string | null;
12976
+ print_job_id: string | null;
12977
+ regels: import("./types.js").Json;
12978
+ updated_at: string;
12979
+ };
12980
+ Insert: {
12981
+ barcode: string;
12982
+ cart_id?: string | null;
12983
+ cart_index?: number | null;
12984
+ cart_label?: string | null;
12985
+ cart_total?: number | null;
12986
+ created_at?: string;
12987
+ is_herprint?: boolean;
12988
+ klant_naam?: string | null;
12989
+ klant_nummer?: string | null;
12990
+ layout_id?: string | null;
12991
+ layout_variant?: string | null;
12992
+ order_nummer?: string | null;
12993
+ order_ref?: string | null;
12994
+ print_job_id?: string | null;
12995
+ regels?: import("./types.js").Json;
12996
+ updated_at?: string;
12997
+ };
12998
+ Update: {
12999
+ barcode?: string;
13000
+ cart_id?: string | null;
13001
+ cart_index?: number | null;
13002
+ cart_label?: string | null;
13003
+ cart_total?: number | null;
13004
+ created_at?: string;
13005
+ is_herprint?: boolean;
13006
+ klant_naam?: string | null;
13007
+ klant_nummer?: string | null;
13008
+ layout_id?: string | null;
13009
+ layout_variant?: string | null;
13010
+ order_nummer?: string | null;
13011
+ order_ref?: string | null;
13012
+ print_job_id?: string | null;
13013
+ regels?: import("./types.js").Json;
13014
+ updated_at?: string;
13015
+ };
13016
+ Relationships: [];
13017
+ };
13018
+ pick_countries: {
13019
+ Row: {
13020
+ active: boolean;
13021
+ code: string;
13022
+ created_at: string;
13023
+ flag: string | null;
12544
13024
  id: string;
12545
13025
  name: string;
12546
13026
  sort_order: number;
@@ -12692,6 +13172,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
12692
13172
  print_job_id: string | null;
12693
13173
  printed_at: string | null;
12694
13174
  printed_by: string | null;
13175
+ printed_cart_ids: import("./types.js").Json;
12695
13176
  printer_id: string | null;
12696
13177
  priority: number;
12697
13178
  reference: string | null;
@@ -12726,6 +13207,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
12726
13207
  print_job_id?: string | null;
12727
13208
  printed_at?: string | null;
12728
13209
  printed_by?: string | null;
13210
+ printed_cart_ids?: import("./types.js").Json;
12729
13211
  printer_id?: string | null;
12730
13212
  priority?: number;
12731
13213
  reference?: string | null;
@@ -12760,6 +13242,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
12760
13242
  print_job_id?: string | null;
12761
13243
  printed_at?: string | null;
12762
13244
  printed_by?: string | null;
13245
+ printed_cart_ids?: import("./types.js").Json;
12763
13246
  printer_id?: string | null;
12764
13247
  priority?: number;
12765
13248
  reference?: string | null;
@@ -13559,6 +14042,12 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
13559
14042
  isOneToOne: false;
13560
14043
  referencedRelation: "planning_items";
13561
14044
  referencedColumns: ["id"];
14045
+ }, {
14046
+ foreignKeyName: "planning_item_assistants_planning_item_id_fkey";
14047
+ columns: ["planning_item_id"];
14048
+ isOneToOne: false;
14049
+ referencedRelation: "planning_overview";
14050
+ referencedColumns: ["id"];
13562
14051
  }];
13563
14052
  };
13564
14053
  planning_items: {
@@ -14668,6 +15157,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
14668
15157
  created_at: string;
14669
15158
  custom_fields: import("./types.js").Json;
14670
15159
  floriday_trade_item_id: string | null;
15160
+ fust_type_id: string | null;
14671
15161
  id: string;
14672
15162
  image_url: string | null;
14673
15163
  incoming_quantity: number;
@@ -14675,6 +15165,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
14675
15165
  layers_per_cart: number;
14676
15166
  location: string;
14677
15167
  min_quantity: number;
15168
+ plant_height_cm: number | null;
14678
15169
  plants_per_crate: number;
14679
15170
  product: string;
14680
15171
  product_type: string;
@@ -14694,6 +15185,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
14694
15185
  created_at?: string;
14695
15186
  custom_fields?: import("./types.js").Json;
14696
15187
  floriday_trade_item_id?: string | null;
15188
+ fust_type_id?: string | null;
14697
15189
  id?: string;
14698
15190
  image_url?: string | null;
14699
15191
  incoming_quantity?: number;
@@ -14701,6 +15193,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
14701
15193
  layers_per_cart?: number;
14702
15194
  location: string;
14703
15195
  min_quantity?: number;
15196
+ plant_height_cm?: number | null;
14704
15197
  plants_per_crate?: number;
14705
15198
  product: string;
14706
15199
  product_type?: string;
@@ -14720,6 +15213,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
14720
15213
  created_at?: string;
14721
15214
  custom_fields?: import("./types.js").Json;
14722
15215
  floriday_trade_item_id?: string | null;
15216
+ fust_type_id?: string | null;
14723
15217
  id?: string;
14724
15218
  image_url?: string | null;
14725
15219
  incoming_quantity?: number;
@@ -14727,6 +15221,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
14727
15221
  layers_per_cart?: number;
14728
15222
  location?: string;
14729
15223
  min_quantity?: number;
15224
+ plant_height_cm?: number | null;
14730
15225
  plants_per_crate?: number;
14731
15226
  product?: string;
14732
15227
  product_type?: string;
@@ -14738,7 +15233,13 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
14738
15233
  updated_at?: string;
14739
15234
  weight?: string | null;
14740
15235
  };
14741
- Relationships: [];
15236
+ Relationships: [{
15237
+ foreignKeyName: "products_fust_type_id_fkey";
15238
+ columns: ["fust_type_id"];
15239
+ isOneToOne: false;
15240
+ referencedRelation: "fust_types";
15241
+ referencedColumns: ["id"];
15242
+ }];
14742
15243
  };
14743
15244
  profile_modules: {
14744
15245
  Row: {
@@ -15136,642 +15637,198 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
15136
15637
  referencedColumns: ["id"];
15137
15638
  }];
15138
15639
  };
15139
- quote_activities: {
15640
+ reception_notifications: {
15140
15641
  Row: {
15642
+ booking_id: string | null;
15141
15643
  created_at: string;
15142
- event_type: string;
15143
15644
  id: string;
15144
- metadata: import("./types.js").Json;
15145
- quote_id: string;
15146
- user_id: string | null;
15645
+ is_read: boolean;
15646
+ message: string;
15647
+ recipient_email: string | null;
15648
+ title: string;
15649
+ type: string;
15147
15650
  };
15148
15651
  Insert: {
15652
+ booking_id?: string | null;
15149
15653
  created_at?: string;
15150
- event_type: string;
15151
15654
  id?: string;
15152
- metadata?: import("./types.js").Json;
15153
- quote_id: string;
15154
- user_id?: string | null;
15655
+ is_read?: boolean;
15656
+ message: string;
15657
+ recipient_email?: string | null;
15658
+ title: string;
15659
+ type: string;
15155
15660
  };
15156
15661
  Update: {
15662
+ booking_id?: string | null;
15157
15663
  created_at?: string;
15158
- event_type?: string;
15159
15664
  id?: string;
15160
- metadata?: import("./types.js").Json;
15161
- quote_id?: string;
15162
- user_id?: string | null;
15665
+ is_read?: boolean;
15666
+ message?: string;
15667
+ recipient_email?: string | null;
15668
+ title?: string;
15669
+ type?: string;
15163
15670
  };
15164
15671
  Relationships: [{
15165
- foreignKeyName: "quote_activities_quote_id_fkey";
15166
- columns: ["quote_id"];
15672
+ foreignKeyName: "reception_notifications_booking_id_fkey";
15673
+ columns: ["booking_id"];
15167
15674
  isOneToOne: false;
15168
- referencedRelation: "quotes";
15675
+ referencedRelation: "bookings";
15169
15676
  referencedColumns: ["id"];
15170
15677
  }];
15171
15678
  };
15172
- quote_attachments: {
15679
+ role_assignments: {
15173
15680
  Row: {
15174
15681
  created_at: string;
15175
- file_name: string;
15176
- file_size: number | null;
15177
- file_url: string;
15178
15682
  id: string;
15179
- mime_type: string | null;
15180
- quote_id: string;
15683
+ role_id: string;
15684
+ user_id: string;
15181
15685
  };
15182
15686
  Insert: {
15183
15687
  created_at?: string;
15184
- file_name: string;
15185
- file_size?: number | null;
15186
- file_url: string;
15187
15688
  id?: string;
15188
- mime_type?: string | null;
15189
- quote_id: string;
15689
+ role_id: string;
15690
+ user_id: string;
15190
15691
  };
15191
15692
  Update: {
15192
15693
  created_at?: string;
15193
- file_name?: string;
15194
- file_size?: number | null;
15195
- file_url?: string;
15196
15694
  id?: string;
15197
- mime_type?: string | null;
15198
- quote_id?: string;
15695
+ role_id?: string;
15696
+ user_id?: string;
15199
15697
  };
15200
15698
  Relationships: [{
15201
- foreignKeyName: "quote_attachments_quote_id_fkey";
15202
- columns: ["quote_id"];
15699
+ foreignKeyName: "role_assignments_role_id_fkey";
15700
+ columns: ["role_id"];
15203
15701
  isOneToOne: false;
15204
- referencedRelation: "quotes";
15702
+ referencedRelation: "roles";
15205
15703
  referencedColumns: ["id"];
15206
15704
  }];
15207
15705
  };
15208
- quote_field_options: {
15706
+ role_permissions: {
15209
15707
  Row: {
15210
- created_at: string;
15211
- field_id: string;
15708
+ can_edit: boolean;
15709
+ can_view: boolean;
15710
+ feature_id: string;
15212
15711
  id: string;
15213
- label: string;
15214
- sort_order: number;
15215
- value: string;
15712
+ module_id: string;
15713
+ role_id: string;
15714
+ updated_at: string;
15216
15715
  };
15217
15716
  Insert: {
15218
- created_at?: string;
15219
- field_id: string;
15717
+ can_edit?: boolean;
15718
+ can_view?: boolean;
15719
+ feature_id?: string;
15220
15720
  id?: string;
15221
- label: string;
15222
- sort_order?: number;
15223
- value: string;
15721
+ module_id: string;
15722
+ role_id: string;
15723
+ updated_at?: string;
15224
15724
  };
15225
15725
  Update: {
15226
- created_at?: string;
15227
- field_id?: string;
15726
+ can_edit?: boolean;
15727
+ can_view?: boolean;
15728
+ feature_id?: string;
15228
15729
  id?: string;
15229
- label?: string;
15230
- sort_order?: number;
15231
- value?: string;
15730
+ module_id?: string;
15731
+ role_id?: string;
15732
+ updated_at?: string;
15232
15733
  };
15233
15734
  Relationships: [{
15234
- foreignKeyName: "quote_field_options_field_id_fkey";
15235
- columns: ["field_id"];
15735
+ foreignKeyName: "role_permissions_role_id_fkey";
15736
+ columns: ["role_id"];
15236
15737
  isOneToOne: false;
15237
- referencedRelation: "quote_field_settings";
15738
+ referencedRelation: "roles";
15238
15739
  referencedColumns: ["id"];
15239
15740
  }];
15240
15741
  };
15241
- quote_field_settings: {
15742
+ roles: {
15242
15743
  Row: {
15243
15744
  created_at: string;
15244
- default_value: string | null;
15245
- field_key: string;
15246
- field_type: string;
15247
15745
  id: string;
15248
- is_system: boolean;
15249
- label: string;
15250
- required: boolean;
15251
- sort_order: number;
15746
+ is_protected: boolean;
15747
+ key: string;
15748
+ name: string;
15252
15749
  updated_at: string;
15253
- visible: boolean;
15254
15750
  };
15255
15751
  Insert: {
15256
15752
  created_at?: string;
15257
- default_value?: string | null;
15258
- field_key: string;
15259
- field_type: string;
15260
15753
  id?: string;
15261
- is_system?: boolean;
15262
- label: string;
15263
- required?: boolean;
15264
- sort_order?: number;
15754
+ is_protected?: boolean;
15755
+ key: string;
15756
+ name: string;
15265
15757
  updated_at?: string;
15266
- visible?: boolean;
15267
15758
  };
15268
15759
  Update: {
15269
15760
  created_at?: string;
15270
- default_value?: string | null;
15271
- field_key?: string;
15272
- field_type?: string;
15273
15761
  id?: string;
15274
- is_system?: boolean;
15275
- label?: string;
15276
- required?: boolean;
15277
- sort_order?: number;
15762
+ is_protected?: boolean;
15763
+ key?: string;
15764
+ name?: string;
15278
15765
  updated_at?: string;
15279
- visible?: boolean;
15280
15766
  };
15281
15767
  Relationships: [];
15282
15768
  };
15283
- quote_items: {
15284
- Row: {
15285
- category: string | null;
15286
- created_at: string;
15287
- description: string;
15288
- id: string;
15289
- line_total: number;
15290
- module_id: string | null;
15291
- name: string | null;
15292
- quantity: number;
15293
- quote_id: string;
15294
- sort_order: number;
15295
- unit_price: number;
15296
- };
15297
- Insert: {
15298
- category?: string | null;
15299
- created_at?: string;
15300
- description?: string;
15301
- id?: string;
15302
- line_total?: number;
15303
- module_id?: string | null;
15304
- name?: string | null;
15305
- quantity?: number;
15306
- quote_id: string;
15307
- sort_order?: number;
15308
- unit_price?: number;
15309
- };
15310
- Update: {
15311
- category?: string | null;
15312
- created_at?: string;
15313
- description?: string;
15314
- id?: string;
15315
- line_total?: number;
15316
- module_id?: string | null;
15317
- name?: string | null;
15318
- quantity?: number;
15319
- quote_id?: string;
15320
- sort_order?: number;
15321
- unit_price?: number;
15322
- };
15323
- Relationships: [{
15324
- foreignKeyName: "quote_items_module_id_fkey";
15325
- columns: ["module_id"];
15326
- isOneToOne: false;
15327
- referencedRelation: "quote_modules";
15328
- referencedColumns: ["id"];
15329
- }, {
15330
- foreignKeyName: "quote_items_quote_id_fkey";
15331
- columns: ["quote_id"];
15332
- isOneToOne: false;
15333
- referencedRelation: "quotes";
15334
- referencedColumns: ["id"];
15335
- }];
15336
- };
15337
- quote_modules: {
15769
+ rooms: {
15338
15770
  Row: {
15339
- category: string | null;
15771
+ capacity: number;
15772
+ color_code: string | null;
15340
15773
  created_at: string;
15341
15774
  description: string | null;
15775
+ hourly_rate: number;
15342
15776
  id: string;
15777
+ image_url: string | null;
15343
15778
  is_active: boolean;
15344
15779
  name: string;
15345
- price: number;
15346
- sort_order: number;
15347
- updated_at: string;
15348
15780
  };
15349
15781
  Insert: {
15350
- category?: string | null;
15782
+ capacity?: number;
15783
+ color_code?: string | null;
15351
15784
  created_at?: string;
15352
15785
  description?: string | null;
15786
+ hourly_rate?: number;
15353
15787
  id?: string;
15788
+ image_url?: string | null;
15354
15789
  is_active?: boolean;
15355
15790
  name: string;
15356
- price?: number;
15357
- sort_order?: number;
15358
- updated_at?: string;
15359
15791
  };
15360
15792
  Update: {
15361
- category?: string | null;
15793
+ capacity?: number;
15794
+ color_code?: string | null;
15362
15795
  created_at?: string;
15363
15796
  description?: string | null;
15797
+ hourly_rate?: number;
15364
15798
  id?: string;
15799
+ image_url?: string | null;
15365
15800
  is_active?: boolean;
15366
15801
  name?: string;
15367
- price?: number;
15368
- sort_order?: number;
15369
- updated_at?: string;
15370
15802
  };
15371
15803
  Relationships: [];
15372
15804
  };
15373
- quote_templates: {
15805
+ scan_kar_items: {
15374
15806
  Row: {
15375
- created_at: string;
15376
- description: string | null;
15377
- field_values: import("./types.js").Json;
15807
+ barcode: string;
15378
15808
  id: string;
15379
- is_default: boolean;
15380
- items: import("./types.js").Json;
15381
- name: string;
15382
- updated_at: string;
15383
- vat_rate: number;
15809
+ kar_id: string;
15810
+ pakbon_id: string;
15811
+ pakbon_item_id: string;
15812
+ product_id: string | null;
15813
+ product_name: string;
15814
+ quantity: number;
15815
+ scanned_at: string;
15816
+ scanned_by: string | null;
15384
15817
  };
15385
15818
  Insert: {
15386
- created_at?: string;
15387
- description?: string | null;
15388
- field_values?: import("./types.js").Json;
15819
+ barcode: string;
15389
15820
  id?: string;
15390
- is_default?: boolean;
15391
- items?: import("./types.js").Json;
15392
- name: string;
15393
- updated_at?: string;
15394
- vat_rate?: number;
15821
+ kar_id: string;
15822
+ pakbon_id: string;
15823
+ pakbon_item_id: string;
15824
+ product_id?: string | null;
15825
+ product_name: string;
15826
+ quantity?: number;
15827
+ scanned_at?: string;
15828
+ scanned_by?: string | null;
15395
15829
  };
15396
15830
  Update: {
15397
- created_at?: string;
15398
- description?: string | null;
15399
- field_values?: import("./types.js").Json;
15400
- id?: string;
15401
- is_default?: boolean;
15402
- items?: import("./types.js").Json;
15403
- name?: string;
15404
- updated_at?: string;
15405
- vat_rate?: number;
15406
- };
15407
- Relationships: [];
15408
- };
15409
- quote_terms: {
15410
- Row: {
15411
- content: string | null;
15412
- created_at: string;
15413
- file_url: string | null;
15414
- id: string;
15415
- is_active: boolean;
15416
- name: string;
15417
- published_at: string | null;
15418
- updated_at: string;
15419
- version: string;
15420
- };
15421
- Insert: {
15422
- content?: string | null;
15423
- created_at?: string;
15424
- file_url?: string | null;
15425
- id?: string;
15426
- is_active?: boolean;
15427
- name: string;
15428
- published_at?: string | null;
15429
- updated_at?: string;
15430
- version?: string;
15431
- };
15432
- Update: {
15433
- content?: string | null;
15434
- created_at?: string;
15435
- file_url?: string | null;
15436
- id?: string;
15437
- is_active?: boolean;
15438
- name?: string;
15439
- published_at?: string | null;
15440
- updated_at?: string;
15441
- version?: string;
15442
- };
15443
- Relationships: [];
15444
- };
15445
- quotes: {
15446
- Row: {
15447
- accepted_at: string | null;
15448
- archived_at: string | null;
15449
- contact_id: string | null;
15450
- created_at: string;
15451
- customer_id: string | null;
15452
- discount: number;
15453
- expires_at: string | null;
15454
- field_values: import("./types.js").Json;
15455
- id: string;
15456
- notes: string | null;
15457
- owner_id: string | null;
15458
- personal_message: string | null;
15459
- project_id: string | null;
15460
- prospect_id: string | null;
15461
- public_token: string;
15462
- quote_number: string | null;
15463
- recipient_email: string | null;
15464
- recipient_name: string | null;
15465
- rejected_at: string | null;
15466
- sent_at: string | null;
15467
- status: string;
15468
- subtotal: number;
15469
- template_id: string | null;
15470
- terms_id: string | null;
15471
- title: string;
15472
- total: number;
15473
- updated_at: string;
15474
- valid_until: string | null;
15475
- vat_amount: number;
15476
- vat_rate: number;
15477
- viewed_at: string | null;
15478
- };
15479
- Insert: {
15480
- accepted_at?: string | null;
15481
- archived_at?: string | null;
15482
- contact_id?: string | null;
15483
- created_at?: string;
15484
- customer_id?: string | null;
15485
- discount?: number;
15486
- expires_at?: string | null;
15487
- field_values?: import("./types.js").Json;
15488
- id?: string;
15489
- notes?: string | null;
15490
- owner_id?: string | null;
15491
- personal_message?: string | null;
15492
- project_id?: string | null;
15493
- prospect_id?: string | null;
15494
- public_token?: string;
15495
- quote_number?: string | null;
15496
- recipient_email?: string | null;
15497
- recipient_name?: string | null;
15498
- rejected_at?: string | null;
15499
- sent_at?: string | null;
15500
- status?: string;
15501
- subtotal?: number;
15502
- template_id?: string | null;
15503
- terms_id?: string | null;
15504
- title?: string;
15505
- total?: number;
15506
- updated_at?: string;
15507
- valid_until?: string | null;
15508
- vat_amount?: number;
15509
- vat_rate?: number;
15510
- viewed_at?: string | null;
15511
- };
15512
- Update: {
15513
- accepted_at?: string | null;
15514
- archived_at?: string | null;
15515
- contact_id?: string | null;
15516
- created_at?: string;
15517
- customer_id?: string | null;
15518
- discount?: number;
15519
- expires_at?: string | null;
15520
- field_values?: import("./types.js").Json;
15521
- id?: string;
15522
- notes?: string | null;
15523
- owner_id?: string | null;
15524
- personal_message?: string | null;
15525
- project_id?: string | null;
15526
- prospect_id?: string | null;
15527
- public_token?: string;
15528
- quote_number?: string | null;
15529
- recipient_email?: string | null;
15530
- recipient_name?: string | null;
15531
- rejected_at?: string | null;
15532
- sent_at?: string | null;
15533
- status?: string;
15534
- subtotal?: number;
15535
- template_id?: string | null;
15536
- terms_id?: string | null;
15537
- title?: string;
15538
- total?: number;
15539
- updated_at?: string;
15540
- valid_until?: string | null;
15541
- vat_amount?: number;
15542
- vat_rate?: number;
15543
- viewed_at?: string | null;
15544
- };
15545
- Relationships: [{
15546
- foreignKeyName: "quotes_contact_id_fkey";
15547
- columns: ["contact_id"];
15548
- isOneToOne: false;
15549
- referencedRelation: "customer_contacts";
15550
- referencedColumns: ["id"];
15551
- }, {
15552
- foreignKeyName: "quotes_customer_id_fkey";
15553
- columns: ["customer_id"];
15554
- isOneToOne: false;
15555
- referencedRelation: "customers";
15556
- referencedColumns: ["id"];
15557
- }, {
15558
- foreignKeyName: "quotes_project_id_fkey";
15559
- columns: ["project_id"];
15560
- isOneToOne: false;
15561
- referencedRelation: "projects";
15562
- referencedColumns: ["id"];
15563
- }, {
15564
- foreignKeyName: "quotes_prospect_id_fkey";
15565
- columns: ["prospect_id"];
15566
- isOneToOne: false;
15567
- referencedRelation: "prospects";
15568
- referencedColumns: ["id"];
15569
- }, {
15570
- foreignKeyName: "quotes_template_id_fkey";
15571
- columns: ["template_id"];
15572
- isOneToOne: false;
15573
- referencedRelation: "quote_templates";
15574
- referencedColumns: ["id"];
15575
- }, {
15576
- foreignKeyName: "quotes_terms_id_fkey";
15577
- columns: ["terms_id"];
15578
- isOneToOne: false;
15579
- referencedRelation: "quote_terms";
15580
- referencedColumns: ["id"];
15581
- }];
15582
- };
15583
- reception_notifications: {
15584
- Row: {
15585
- booking_id: string | null;
15586
- created_at: string;
15587
- id: string;
15588
- is_read: boolean;
15589
- message: string;
15590
- recipient_email: string | null;
15591
- title: string;
15592
- type: string;
15593
- };
15594
- Insert: {
15595
- booking_id?: string | null;
15596
- created_at?: string;
15597
- id?: string;
15598
- is_read?: boolean;
15599
- message: string;
15600
- recipient_email?: string | null;
15601
- title: string;
15602
- type: string;
15603
- };
15604
- Update: {
15605
- booking_id?: string | null;
15606
- created_at?: string;
15607
- id?: string;
15608
- is_read?: boolean;
15609
- message?: string;
15610
- recipient_email?: string | null;
15611
- title?: string;
15612
- type?: string;
15613
- };
15614
- Relationships: [{
15615
- foreignKeyName: "reception_notifications_booking_id_fkey";
15616
- columns: ["booking_id"];
15617
- isOneToOne: false;
15618
- referencedRelation: "bookings";
15619
- referencedColumns: ["id"];
15620
- }];
15621
- };
15622
- role_assignments: {
15623
- Row: {
15624
- created_at: string;
15625
- id: string;
15626
- role_id: string;
15627
- user_id: string;
15628
- };
15629
- Insert: {
15630
- created_at?: string;
15631
- id?: string;
15632
- role_id: string;
15633
- user_id: string;
15634
- };
15635
- Update: {
15636
- created_at?: string;
15637
- id?: string;
15638
- role_id?: string;
15639
- user_id?: string;
15640
- };
15641
- Relationships: [{
15642
- foreignKeyName: "role_assignments_role_id_fkey";
15643
- columns: ["role_id"];
15644
- isOneToOne: false;
15645
- referencedRelation: "roles";
15646
- referencedColumns: ["id"];
15647
- }];
15648
- };
15649
- role_permissions: {
15650
- Row: {
15651
- can_edit: boolean;
15652
- can_view: boolean;
15653
- feature_id: string;
15654
- id: string;
15655
- module_id: string;
15656
- role_id: string;
15657
- updated_at: string;
15658
- };
15659
- Insert: {
15660
- can_edit?: boolean;
15661
- can_view?: boolean;
15662
- feature_id?: string;
15663
- id?: string;
15664
- module_id: string;
15665
- role_id: string;
15666
- updated_at?: string;
15667
- };
15668
- Update: {
15669
- can_edit?: boolean;
15670
- can_view?: boolean;
15671
- feature_id?: string;
15672
- id?: string;
15673
- module_id?: string;
15674
- role_id?: string;
15675
- updated_at?: string;
15676
- };
15677
- Relationships: [{
15678
- foreignKeyName: "role_permissions_role_id_fkey";
15679
- columns: ["role_id"];
15680
- isOneToOne: false;
15681
- referencedRelation: "roles";
15682
- referencedColumns: ["id"];
15683
- }];
15684
- };
15685
- roles: {
15686
- Row: {
15687
- created_at: string;
15688
- id: string;
15689
- is_protected: boolean;
15690
- key: string;
15691
- name: string;
15692
- updated_at: string;
15693
- };
15694
- Insert: {
15695
- created_at?: string;
15696
- id?: string;
15697
- is_protected?: boolean;
15698
- key: string;
15699
- name: string;
15700
- updated_at?: string;
15701
- };
15702
- Update: {
15703
- created_at?: string;
15704
- id?: string;
15705
- is_protected?: boolean;
15706
- key?: string;
15707
- name?: string;
15708
- updated_at?: string;
15709
- };
15710
- Relationships: [];
15711
- };
15712
- rooms: {
15713
- Row: {
15714
- capacity: number;
15715
- color_code: string | null;
15716
- created_at: string;
15717
- description: string | null;
15718
- hourly_rate: number;
15719
- id: string;
15720
- image_url: string | null;
15721
- is_active: boolean;
15722
- name: string;
15723
- };
15724
- Insert: {
15725
- capacity?: number;
15726
- color_code?: string | null;
15727
- created_at?: string;
15728
- description?: string | null;
15729
- hourly_rate?: number;
15730
- id?: string;
15731
- image_url?: string | null;
15732
- is_active?: boolean;
15733
- name: string;
15734
- };
15735
- Update: {
15736
- capacity?: number;
15737
- color_code?: string | null;
15738
- created_at?: string;
15739
- description?: string | null;
15740
- hourly_rate?: number;
15741
- id?: string;
15742
- image_url?: string | null;
15743
- is_active?: boolean;
15744
- name?: string;
15745
- };
15746
- Relationships: [];
15747
- };
15748
- scan_kar_items: {
15749
- Row: {
15750
- barcode: string;
15751
- id: string;
15752
- kar_id: string;
15753
- pakbon_id: string;
15754
- pakbon_item_id: string;
15755
- product_id: string | null;
15756
- product_name: string;
15757
- quantity: number;
15758
- scanned_at: string;
15759
- scanned_by: string | null;
15760
- };
15761
- Insert: {
15762
- barcode: string;
15763
- id?: string;
15764
- kar_id: string;
15765
- pakbon_id: string;
15766
- pakbon_item_id: string;
15767
- product_id?: string | null;
15768
- product_name: string;
15769
- quantity?: number;
15770
- scanned_at?: string;
15771
- scanned_by?: string | null;
15772
- };
15773
- Update: {
15774
- barcode?: string;
15831
+ barcode?: string;
15775
15832
  id?: string;
15776
15833
  kar_id?: string;
15777
15834
  pakbon_id?: string;
@@ -16701,7 +16758,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
16701
16758
  foreignKeyName: "time_logs_work_order_id_fkey";
16702
16759
  columns: ["work_order_id"];
16703
16760
  isOneToOne: false;
16704
- referencedRelation: "work_orders";
16761
+ referencedRelation: "werkbonnen";
16705
16762
  referencedColumns: ["id"];
16706
16763
  }];
16707
16764
  };
@@ -16833,6 +16890,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
16833
16890
  };
16834
16891
  trade_item_stock: {
16835
16892
  Row: {
16893
+ change_source: string;
16836
16894
  connection_id: string;
16837
16895
  created_at: string;
16838
16896
  id: string;
@@ -16846,6 +16904,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
16846
16904
  user_id: string;
16847
16905
  };
16848
16906
  Insert: {
16907
+ change_source?: string;
16849
16908
  connection_id: string;
16850
16909
  created_at?: string;
16851
16910
  id?: string;
@@ -16859,6 +16918,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
16859
16918
  user_id: string;
16860
16919
  };
16861
16920
  Update: {
16921
+ change_source?: string;
16862
16922
  connection_id?: string;
16863
16923
  created_at?: string;
16864
16924
  id?: string;
@@ -17918,266 +17978,116 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
17918
17978
  created_at?: string;
17919
17979
  daily_threshold_hours?: number | null;
17920
17980
  id?: string;
17921
- include_travel?: boolean | null;
17922
- monteur_id: string;
17923
- ov02_percentage?: number | null;
17924
- ov03_percentage?: number | null;
17925
- updated_at?: string;
17926
- weekly_threshold_hours?: number | null;
17927
- workday_end?: string | null;
17928
- workday_start?: string | null;
17929
- };
17930
- Update: {
17931
- break_minutes?: number | null;
17932
- contract_hours_per_week?: number;
17933
- created_at?: string;
17934
- daily_threshold_hours?: number | null;
17935
- id?: string;
17936
- include_travel?: boolean | null;
17937
- monteur_id?: string;
17938
- ov02_percentage?: number | null;
17939
- ov03_percentage?: number | null;
17940
- updated_at?: string;
17941
- weekly_threshold_hours?: number | null;
17942
- workday_end?: string | null;
17943
- workday_start?: string | null;
17944
- };
17945
- Relationships: [];
17946
- };
17947
- uren_entries: {
17948
- Row: {
17949
- created_at: string;
17950
- created_by: string | null;
17951
- entry_date: string;
17952
- hours: number;
17953
- id: string;
17954
- kind: string;
17955
- monteur_id: string;
17956
- note: string | null;
17957
- source: string;
17958
- travel_km: number;
17959
- updated_at: string;
17960
- werkbon_id: string | null;
17961
- };
17962
- Insert: {
17963
- created_at?: string;
17964
- created_by?: string | null;
17965
- entry_date: string;
17966
- hours?: number;
17967
- id?: string;
17968
- kind?: string;
17969
- monteur_id: string;
17970
- note?: string | null;
17971
- source?: string;
17972
- travel_km?: number;
17973
- updated_at?: string;
17974
- werkbon_id?: string | null;
17975
- };
17976
- Update: {
17977
- created_at?: string;
17978
- created_by?: string | null;
17979
- entry_date?: string;
17980
- hours?: number;
17981
- id?: string;
17982
- kind?: string;
17983
- monteur_id?: string;
17984
- note?: string | null;
17985
- source?: string;
17986
- travel_km?: number;
17987
- updated_at?: string;
17988
- werkbon_id?: string | null;
17989
- };
17990
- Relationships: [{
17991
- foreignKeyName: "uren_entries_werkbon_id_fkey";
17992
- columns: ["werkbon_id"];
17993
- isOneToOne: false;
17994
- referencedRelation: "werkbonnen";
17995
- referencedColumns: ["id"];
17996
- }];
17997
- };
17998
- uren_exports: {
17999
- Row: {
18000
- created_at: string;
18001
- created_by: string | null;
18002
- file_name: string | null;
18003
- id: string;
18004
- monteur_ids: string[];
18005
- period_end: string;
18006
- period_start: string;
18007
- row_count: number;
18008
- };
18009
- Insert: {
18010
- created_at?: string;
18011
- created_by?: string | null;
18012
- file_name?: string | null;
18013
- id?: string;
18014
- monteur_ids?: string[];
18015
- period_end: string;
18016
- period_start: string;
18017
- row_count?: number;
18018
- };
18019
- Update: {
18020
- created_at?: string;
18021
- created_by?: string | null;
18022
- file_name?: string | null;
18023
- id?: string;
18024
- monteur_ids?: string[];
18025
- period_end?: string;
18026
- period_start?: string;
18027
- row_count?: number;
18028
- };
18029
- Relationships: [];
18030
- };
18031
- uren_offerte_regels: {
18032
- Row: {
18033
- created_at: string;
18034
- description: string;
18035
- duration_minutes: number;
18036
- id: string;
18037
- offerte_id: string;
18038
- package_id: string | null;
18039
- quantity: number;
18040
- sort_order: number;
18041
- total_cents: number;
18042
- unit_price_cents: number;
18043
- };
18044
- Insert: {
18045
- created_at?: string;
18046
- description: string;
18047
- duration_minutes?: number;
18048
- id?: string;
18049
- offerte_id: string;
18050
- package_id?: string | null;
18051
- quantity?: number;
18052
- sort_order?: number;
18053
- total_cents?: number;
18054
- unit_price_cents?: number;
18055
- };
18056
- Update: {
18057
- created_at?: string;
18058
- description?: string;
18059
- duration_minutes?: number;
18060
- id?: string;
18061
- offerte_id?: string;
18062
- package_id?: string | null;
18063
- quantity?: number;
18064
- sort_order?: number;
18065
- total_cents?: number;
18066
- unit_price_cents?: number;
18067
- };
18068
- Relationships: [{
18069
- foreignKeyName: "uren_offerte_regels_offerte_id_fkey";
18070
- columns: ["offerte_id"];
18071
- isOneToOne: false;
18072
- referencedRelation: "uren_offertes";
18073
- referencedColumns: ["id"];
18074
- }, {
18075
- foreignKeyName: "uren_offerte_regels_package_id_fkey";
18076
- columns: ["package_id"];
18077
- isOneToOne: false;
18078
- referencedRelation: "werkbon_packages";
18079
- referencedColumns: ["id"];
18080
- }];
18081
- };
18082
- uren_offerte_velden: {
18083
- Row: {
18084
- created_at: string;
18085
- field_type: string;
18086
- id: string;
18087
- key: string;
18088
- label: string;
18089
- options: string[];
18090
- required: boolean;
18091
- sort_order: number;
18092
- updated_at: string;
18093
- };
18094
- Insert: {
18095
- created_at?: string;
18096
- field_type?: string;
18097
- id?: string;
18098
- key: string;
18099
- label: string;
18100
- options?: string[];
18101
- required?: boolean;
18102
- sort_order?: number;
17981
+ include_travel?: boolean | null;
17982
+ monteur_id: string;
17983
+ ov02_percentage?: number | null;
17984
+ ov03_percentage?: number | null;
18103
17985
  updated_at?: string;
17986
+ weekly_threshold_hours?: number | null;
17987
+ workday_end?: string | null;
17988
+ workday_start?: string | null;
18104
17989
  };
18105
17990
  Update: {
17991
+ break_minutes?: number | null;
17992
+ contract_hours_per_week?: number;
18106
17993
  created_at?: string;
18107
- field_type?: string;
17994
+ daily_threshold_hours?: number | null;
18108
17995
  id?: string;
18109
- key?: string;
18110
- label?: string;
18111
- options?: string[];
18112
- required?: boolean;
18113
- sort_order?: number;
17996
+ include_travel?: boolean | null;
17997
+ monteur_id?: string;
17998
+ ov02_percentage?: number | null;
17999
+ ov03_percentage?: number | null;
18114
18000
  updated_at?: string;
18001
+ weekly_threshold_hours?: number | null;
18002
+ workday_end?: string | null;
18003
+ workday_start?: string | null;
18115
18004
  };
18116
18005
  Relationships: [];
18117
18006
  };
18118
- uren_offertes: {
18007
+ uren_entries: {
18119
18008
  Row: {
18120
18009
  created_at: string;
18121
18010
  created_by: string | null;
18122
- customer_id: string | null;
18123
- customer_name: string | null;
18124
- dynamic_fields: import("./types.js").Json;
18125
- estimated_minutes: number;
18011
+ entry_date: string;
18012
+ hours: number;
18126
18013
  id: string;
18014
+ kind: string;
18015
+ monteur_id: string;
18127
18016
  note: string | null;
18128
- quote_number: string | null;
18129
- status: string;
18130
- title: string;
18131
- total_excl_cents: number;
18132
- total_incl_cents: number;
18017
+ source: string;
18018
+ travel_km: number;
18133
18019
  updated_at: string;
18134
- valid_until: string | null;
18135
- vat_percentage: number;
18020
+ werkbon_id: string | null;
18136
18021
  };
18137
18022
  Insert: {
18138
18023
  created_at?: string;
18139
18024
  created_by?: string | null;
18140
- customer_id?: string | null;
18141
- customer_name?: string | null;
18142
- dynamic_fields?: import("./types.js").Json;
18143
- estimated_minutes?: number;
18025
+ entry_date: string;
18026
+ hours?: number;
18144
18027
  id?: string;
18028
+ kind?: string;
18029
+ monteur_id: string;
18145
18030
  note?: string | null;
18146
- quote_number?: string | null;
18147
- status?: string;
18148
- title?: string;
18149
- total_excl_cents?: number;
18150
- total_incl_cents?: number;
18031
+ source?: string;
18032
+ travel_km?: number;
18151
18033
  updated_at?: string;
18152
- valid_until?: string | null;
18153
- vat_percentage?: number;
18034
+ werkbon_id?: string | null;
18154
18035
  };
18155
18036
  Update: {
18156
18037
  created_at?: string;
18157
18038
  created_by?: string | null;
18158
- customer_id?: string | null;
18159
- customer_name?: string | null;
18160
- dynamic_fields?: import("./types.js").Json;
18161
- estimated_minutes?: number;
18039
+ entry_date?: string;
18040
+ hours?: number;
18162
18041
  id?: string;
18042
+ kind?: string;
18043
+ monteur_id?: string;
18163
18044
  note?: string | null;
18164
- quote_number?: string | null;
18165
- status?: string;
18166
- title?: string;
18167
- total_excl_cents?: number;
18168
- total_incl_cents?: number;
18045
+ source?: string;
18046
+ travel_km?: number;
18169
18047
  updated_at?: string;
18170
- valid_until?: string | null;
18171
- vat_percentage?: number;
18048
+ werkbon_id?: string | null;
18172
18049
  };
18173
18050
  Relationships: [{
18174
- foreignKeyName: "uren_offertes_customer_id_fkey";
18175
- columns: ["customer_id"];
18051
+ foreignKeyName: "uren_entries_werkbon_id_fkey";
18052
+ columns: ["werkbon_id"];
18176
18053
  isOneToOne: false;
18177
- referencedRelation: "itk_customers";
18054
+ referencedRelation: "werkbonnen";
18178
18055
  referencedColumns: ["id"];
18179
18056
  }];
18180
18057
  };
18058
+ uren_exports: {
18059
+ Row: {
18060
+ created_at: string;
18061
+ created_by: string | null;
18062
+ file_name: string | null;
18063
+ id: string;
18064
+ monteur_ids: string[];
18065
+ period_end: string;
18066
+ period_start: string;
18067
+ row_count: number;
18068
+ };
18069
+ Insert: {
18070
+ created_at?: string;
18071
+ created_by?: string | null;
18072
+ file_name?: string | null;
18073
+ id?: string;
18074
+ monteur_ids?: string[];
18075
+ period_end: string;
18076
+ period_start: string;
18077
+ row_count?: number;
18078
+ };
18079
+ Update: {
18080
+ created_at?: string;
18081
+ created_by?: string | null;
18082
+ file_name?: string | null;
18083
+ id?: string;
18084
+ monteur_ids?: string[];
18085
+ period_end?: string;
18086
+ period_start?: string;
18087
+ row_count?: number;
18088
+ };
18089
+ Relationships: [];
18090
+ };
18181
18091
  uren_settings: {
18182
18092
  Row: {
18183
18093
  break_minutes: number;
@@ -19864,6 +19774,37 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
19864
19774
  };
19865
19775
  Relationships: [];
19866
19776
  };
19777
+ planning_overview: {
19778
+ Row: {
19779
+ assigned_monteur_id: string | null;
19780
+ assistants: import("./types.js").Json | null;
19781
+ budget_mandate_cents: number | null;
19782
+ created_at: string | null;
19783
+ created_by: string | null;
19784
+ customer_id: string | null;
19785
+ customer_name: string | null;
19786
+ duration_minutes: number | null;
19787
+ end_at: string | null;
19788
+ id: string | null;
19789
+ needs_detail_review: boolean | null;
19790
+ notes: string | null;
19791
+ project_number: string | null;
19792
+ review_reasons: string[] | null;
19793
+ start_at: string | null;
19794
+ status: Database["public"]["Enums"]["planning_item_status"] | null;
19795
+ updated_at: string | null;
19796
+ viewer_role: string | null;
19797
+ werkbon_id: string | null;
19798
+ work_address: string | null;
19799
+ };
19800
+ Relationships: [{
19801
+ foreignKeyName: "planning_items_werkbon_id_fkey";
19802
+ columns: ["werkbon_id"];
19803
+ isOneToOne: false;
19804
+ referencedRelation: "werkbonnen";
19805
+ referencedColumns: ["id"];
19806
+ }];
19807
+ };
19867
19808
  product_group_stock_view: {
19868
19809
  Row: {
19869
19810
  item_count: number | null;
@@ -20459,6 +20400,18 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
20459
20400
  Args: never;
20460
20401
  Returns: number;
20461
20402
  };
20403
+ calculate_floriday_desired_stock: {
20404
+ Args: {
20405
+ p_connection_id: string;
20406
+ p_product_id: string;
20407
+ };
20408
+ Returns: {
20409
+ desired_availability: boolean;
20410
+ desired_quantity: number;
20411
+ erp_available: number;
20412
+ stock_mode: string;
20413
+ }[];
20414
+ };
20462
20415
  calculate_layer_stock: {
20463
20416
  Args: {
20464
20417
  p_product_id: string;
@@ -20553,6 +20506,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
20553
20506
  attempts: number;
20554
20507
  connection_id: string;
20555
20508
  created_at: string;
20509
+ dead_lettered_at: string | null;
20556
20510
  desired_available: boolean | null;
20557
20511
  gateway_attempt_id: string | null;
20558
20512
  id: string;
@@ -20561,9 +20515,13 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
20561
20515
  locked_by: string | null;
20562
20516
  next_attempt_at: string;
20563
20517
  number_of_pieces: number;
20518
+ product_id: string | null;
20564
20519
  sent_at: string | null;
20565
20520
  status: string;
20521
+ stock_mode: string | null;
20566
20522
  superseded_by: string | null;
20523
+ target_week: number | null;
20524
+ target_year: number | null;
20567
20525
  trade_item_id: string;
20568
20526
  updated_at: string;
20569
20527
  user_id: string;
@@ -21044,6 +21002,24 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
21044
21002
  };
21045
21003
  Returns: string;
21046
21004
  };
21005
+ floriday_capture_stock_snapshot: {
21006
+ Args: never;
21007
+ Returns: number;
21008
+ };
21009
+ floriday_cleanup_stock_queue_v2: {
21010
+ Args: never;
21011
+ Returns: undefined;
21012
+ };
21013
+ floriday_compact_stock_snapshots: {
21014
+ Args: never;
21015
+ Returns: undefined;
21016
+ };
21017
+ floriday_default_owner: {
21018
+ Args: {
21019
+ p_connection_id: string;
21020
+ };
21021
+ Returns: string;
21022
+ };
21047
21023
  floriday_effective_price: {
21048
21024
  Args: {
21049
21025
  _buyer_id: string;
@@ -21061,6 +21037,34 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
21061
21037
  source_id: string;
21062
21038
  }[];
21063
21039
  };
21040
+ floriday_fill_publish_horizon: {
21041
+ Args: never;
21042
+ Returns: number;
21043
+ };
21044
+ floriday_ingest_sales_orders: {
21045
+ Args: {
21046
+ p_limit?: number;
21047
+ };
21048
+ Returns: number;
21049
+ };
21050
+ floriday_publish_horizon_weeks: {
21051
+ Args: never;
21052
+ Returns: number;
21053
+ };
21054
+ floriday_recompute_inventory: {
21055
+ Args: {
21056
+ p_connection_id: string;
21057
+ p_force?: boolean;
21058
+ p_product_id: string;
21059
+ };
21060
+ Returns: undefined;
21061
+ };
21062
+ floriday_requeue_dead_letters: {
21063
+ Args: {
21064
+ p_connection_id?: string;
21065
+ };
21066
+ Returns: number;
21067
+ };
21064
21068
  format_cart_number: {
21065
21069
  Args: {
21066
21070
  p_pick_date: string;
@@ -21248,34 +21252,159 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
21248
21252
  };
21249
21253
  get_product_group_available_stock: {
21250
21254
  Args: {
21251
- p_group_id: string;
21255
+ p_group_id: string;
21256
+ };
21257
+ Returns: number;
21258
+ };
21259
+ get_room_busy_windows: {
21260
+ Args: {
21261
+ p_from: string;
21262
+ p_to: string;
21263
+ };
21264
+ Returns: {
21265
+ end_time: string;
21266
+ room_id: string;
21267
+ start_time: string;
21268
+ status: string;
21269
+ }[];
21270
+ };
21271
+ get_twinfield_cron_jobs: {
21272
+ Args: never;
21273
+ Returns: {
21274
+ active: boolean;
21275
+ jobname: string;
21276
+ schedule: string;
21277
+ url: string;
21278
+ }[];
21279
+ };
21280
+ get_user_tenant_id: {
21281
+ Args: never;
21282
+ Returns: string;
21283
+ };
21284
+ handover_get: {
21285
+ Args: {
21286
+ _module_id: string;
21287
+ };
21288
+ Returns: import("./types.js").Json;
21289
+ };
21290
+ handover_kern_naam: {
21291
+ Args: {
21292
+ _naam: string;
21293
+ };
21294
+ Returns: string;
21295
+ };
21296
+ handover_ketenmodel: {
21297
+ Args: never;
21298
+ Returns: import("./types.js").Json;
21299
+ };
21300
+ handover_kruisconflicten: {
21301
+ Args: never;
21302
+ Returns: import("./types.js").Json;
21303
+ };
21304
+ handover_list: {
21305
+ Args: never;
21306
+ Returns: import("./types.js").Json;
21307
+ };
21308
+ handover_mag_schrijven: {
21309
+ Args: {
21310
+ _module_id: string;
21311
+ };
21312
+ Returns: boolean;
21313
+ };
21314
+ handover_norm_naam: {
21315
+ Args: {
21316
+ _naam: string;
21317
+ };
21318
+ Returns: string;
21319
+ };
21320
+ handover_publish: {
21321
+ Args: {
21322
+ _bevindingen?: string;
21323
+ _bezit_tabellen?: string[];
21324
+ _conflicten_snapshot?: import("./types.js").Json;
21325
+ _contractfuncties?: string[];
21326
+ _inhoud_md: string;
21327
+ _module_id: string;
21328
+ _module_titel: string;
21329
+ _ontbrekende_contracten?: string[];
21330
+ _samenvatting?: string;
21331
+ };
21332
+ Returns: number;
21333
+ };
21334
+ handover_publish_via_token: {
21335
+ Args: {
21336
+ _bevindingen?: string;
21337
+ _bezit_tabellen?: string[];
21338
+ _conflicten_snapshot?: import("./types.js").Json;
21339
+ _contractfuncties?: string[];
21340
+ _inhoud_md: string;
21341
+ _module_id: string;
21342
+ _module_titel: string;
21343
+ _ontbrekende_contracten?: string[];
21344
+ _samenvatting?: string;
21345
+ _token_hash: string;
21346
+ };
21347
+ Returns: number;
21348
+ };
21349
+ handover_status: {
21350
+ Args: never;
21351
+ Returns: import("./types.js").Json;
21352
+ };
21353
+ handover_synonym_kern: {
21354
+ Args: {
21355
+ _naam: string;
21356
+ };
21357
+ Returns: string;
21358
+ };
21359
+ handover_token_intrekken: {
21360
+ Args: {
21361
+ _id: string;
21362
+ };
21363
+ Returns: boolean;
21364
+ };
21365
+ handover_token_lijst: {
21366
+ Args: never;
21367
+ Returns: import("./types.js").Json;
21368
+ };
21369
+ handover_token_maken: {
21370
+ Args: {
21371
+ _label?: string;
21372
+ _module_id: string;
21373
+ };
21374
+ Returns: string;
21375
+ };
21376
+ handover_update: {
21377
+ Args: {
21378
+ _bezit_tabellen?: string[];
21379
+ _contractfuncties?: string[];
21380
+ _herzieningstermijn_dagen?: number;
21381
+ _inhoud_md?: string;
21382
+ _module_id: string;
21383
+ _module_titel?: string;
21384
+ _samenvatting?: string;
21385
+ _versie: number;
21386
+ };
21387
+ Returns: boolean;
21388
+ } | {
21389
+ Args: {
21390
+ _bevindingen?: string;
21391
+ _bezit_tabellen?: string[];
21392
+ _contractfuncties?: string[];
21393
+ _herzieningstermijn_dagen?: number;
21394
+ _inhoud_md?: string;
21395
+ _module_id: string;
21396
+ _module_titel?: string;
21397
+ _ontbrekende_contracten?: string[];
21398
+ _samenvatting?: string;
21399
+ _versie: number;
21252
21400
  };
21253
- Returns: number;
21401
+ Returns: boolean;
21254
21402
  };
21255
- get_room_busy_windows: {
21403
+ handover_versies: {
21256
21404
  Args: {
21257
- p_from: string;
21258
- p_to: string;
21405
+ _module_id: string;
21259
21406
  };
21260
- Returns: {
21261
- end_time: string;
21262
- room_id: string;
21263
- start_time: string;
21264
- status: string;
21265
- }[];
21266
- };
21267
- get_twinfield_cron_jobs: {
21268
- Args: never;
21269
- Returns: {
21270
- active: boolean;
21271
- jobname: string;
21272
- schedule: string;
21273
- url: string;
21274
- }[];
21275
- };
21276
- get_user_tenant_id: {
21277
- Args: never;
21278
- Returns: string;
21407
+ Returns: import("./types.js").Json;
21279
21408
  };
21280
21409
  has_module_permission: {
21281
21410
  Args: {
@@ -21296,6 +21425,25 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
21296
21425
  Args: never;
21297
21426
  Returns: boolean;
21298
21427
  };
21428
+ instructie_get: {
21429
+ Args: {
21430
+ _sleutel: string;
21431
+ };
21432
+ Returns: import("./types.js").Json;
21433
+ };
21434
+ instructie_list: {
21435
+ Args: never;
21436
+ Returns: import("./types.js").Json;
21437
+ };
21438
+ instructie_publish: {
21439
+ Args: {
21440
+ _inhoud_md: string;
21441
+ _sleutel: string;
21442
+ _titel: string;
21443
+ _toelichting?: string;
21444
+ };
21445
+ Returns: number;
21446
+ };
21299
21447
  invoice_create_from_source: {
21300
21448
  Args: {
21301
21449
  _payload?: import("./types.js").Json;
@@ -21520,6 +21668,12 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
21520
21668
  };
21521
21669
  Returns: boolean;
21522
21670
  };
21671
+ logistics_barcode_lookup: {
21672
+ Args: {
21673
+ p_barcode: string;
21674
+ };
21675
+ Returns: import("./types.js").Json;
21676
+ };
21523
21677
  logistics_buffer_criteria: {
21524
21678
  Args: {
21525
21679
  p_settings: import("./types.js").Json;
@@ -21580,6 +21734,12 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
21580
21734
  };
21581
21735
  Returns: number;
21582
21736
  };
21737
+ logistics_cart_barcode_value: {
21738
+ Args: {
21739
+ _cart_id: string;
21740
+ };
21741
+ Returns: string;
21742
+ };
21583
21743
  logistics_cart_index: {
21584
21744
  Args: {
21585
21745
  p_from?: string;
@@ -21589,6 +21749,10 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
21589
21749
  cart_id: string;
21590
21750
  cart_index: number;
21591
21751
  cart_label: string;
21752
+ delivery_date: string;
21753
+ is_announced: boolean;
21754
+ is_controlled: boolean;
21755
+ is_printed: boolean;
21592
21756
  is_shared: boolean;
21593
21757
  order_number: string;
21594
21758
  order_source: string;
@@ -21599,6 +21763,12 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
21599
21763
  task_status: string;
21600
21764
  }[];
21601
21765
  };
21766
+ logistics_cart_slip_plan: {
21767
+ Args: {
21768
+ p_order_id: string;
21769
+ };
21770
+ Returns: import("./types.js").Json;
21771
+ };
21602
21772
  logistics_check_order_allowed: {
21603
21773
  Args: {
21604
21774
  p_lines: import("./types.js").Json;
@@ -21751,11 +21921,15 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
21751
21921
  Args: never;
21752
21922
  Returns: {
21753
21923
  agenda_carts: number;
21924
+ announced_carts: number;
21754
21925
  control_carts: number;
21926
+ delivery_carts: number;
21755
21927
  ok: boolean;
21756
21928
  orphan_tasks: number;
21757
21929
  pick_date: string;
21758
21930
  raw_carts: number;
21931
+ sales_carts: number;
21932
+ station_carts: number;
21759
21933
  }[];
21760
21934
  };
21761
21935
  logistics_delay_customer_email: {
@@ -21771,12 +21945,35 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
21771
21945
  subject: string;
21772
21946
  }[];
21773
21947
  };
21948
+ logistics_delivery_agenda: {
21949
+ Args: {
21950
+ p_from?: string;
21951
+ p_to?: string;
21952
+ };
21953
+ Returns: {
21954
+ announced_count: number;
21955
+ cart_count: number;
21956
+ controlled_count: number;
21957
+ delivery_date: string;
21958
+ order_count: number;
21959
+ orders: import("./types.js").Json;
21960
+ plant_count: number;
21961
+ printed_count: number;
21962
+ }[];
21963
+ };
21774
21964
  logistics_document_layout: {
21775
21965
  Args: {
21776
21966
  _document_code: string;
21777
21967
  };
21778
21968
  Returns: import("./types.js").Json;
21779
21969
  };
21970
+ logistics_document_layout_v2: {
21971
+ Args: {
21972
+ _document_code: string;
21973
+ _is_partial?: boolean;
21974
+ };
21975
+ Returns: import("./types.js").Json;
21976
+ };
21780
21977
  logistics_document_station: {
21781
21978
  Args: {
21782
21979
  _document_code: string;
@@ -21802,6 +21999,12 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
21802
21999
  };
21803
22000
  Returns: import("./types.js").Json;
21804
22001
  };
22002
+ logistics_ensure_cart_barcode: {
22003
+ Args: {
22004
+ _cart_id: string;
22005
+ };
22006
+ Returns: string;
22007
+ };
21805
22008
  logistics_fail_task: {
21806
22009
  Args: {
21807
22010
  p_error: string;
@@ -21847,6 +22050,16 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
21847
22050
  isSetofReturn: false;
21848
22051
  };
21849
22052
  };
22053
+ logistics_floriday_cart_plan: {
22054
+ Args: {
22055
+ p_order_id: string;
22056
+ };
22057
+ Returns: {
22058
+ carrier_type: string;
22059
+ idx: number;
22060
+ packages: number;
22061
+ }[];
22062
+ };
21850
22063
  logistics_floriday_claim_pushes: {
21851
22064
  Args: {
21852
22065
  _lease_seconds?: number;
@@ -21998,10 +22211,21 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
21998
22211
  shifted_count: number;
21999
22212
  }[];
22000
22213
  };
22214
+ logistics_pick_barcode_enabled: {
22215
+ Args: never;
22216
+ Returns: boolean;
22217
+ };
22001
22218
  logistics_pick_email_purpose: {
22002
22219
  Args: never;
22003
22220
  Returns: string;
22004
22221
  };
22222
+ logistics_pick_start_estimate: {
22223
+ Args: {
22224
+ p_order: import("./types.js").Json;
22225
+ s: import("./types.js").Json;
22226
+ };
22227
+ Returns: string;
22228
+ };
22005
22229
  logistics_plan_all: {
22006
22230
  Args: {
22007
22231
  p_user_id?: string;
@@ -22052,6 +22276,13 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
22052
22276
  };
22053
22277
  Returns: undefined;
22054
22278
  };
22279
+ logistics_plan_floriday_order: {
22280
+ Args: {
22281
+ p_buffer_id?: string;
22282
+ p_order_id: string;
22283
+ };
22284
+ Returns: number;
22285
+ };
22055
22286
  logistics_plan_impact_orders: {
22056
22287
  Args: {
22057
22288
  p_order_id: string;
@@ -22245,6 +22476,14 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
22245
22476
  };
22246
22477
  Returns: string;
22247
22478
  };
22479
+ logistics_shipping_note_from_barcode: {
22480
+ Args: {
22481
+ p_allow_reprint?: boolean;
22482
+ p_barcode: string;
22483
+ p_station_id?: string;
22484
+ };
22485
+ Returns: import("./types.js").Json;
22486
+ };
22248
22487
  logistics_supersede_stale_tasks: {
22249
22488
  Args: {
22250
22489
  p_keep: string[];
@@ -22466,6 +22705,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
22466
22705
  print_job_id: string | null;
22467
22706
  printed_at: string | null;
22468
22707
  printed_by: string | null;
22708
+ printed_cart_ids: import("./types.js").Json;
22469
22709
  printer_id: string | null;
22470
22710
  priority: number;
22471
22711
  reference: string | null;
@@ -22515,6 +22755,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
22515
22755
  print_job_id: string | null;
22516
22756
  printed_at: string | null;
22517
22757
  printed_by: string | null;
22758
+ printed_cart_ids: import("./types.js").Json;
22518
22759
  printer_id: string | null;
22519
22760
  priority: number;
22520
22761
  reference: string | null;
@@ -22569,6 +22810,56 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
22569
22810
  print_job_id: string | null;
22570
22811
  printed_at: string | null;
22571
22812
  printed_by: string | null;
22813
+ printed_cart_ids: import("./types.js").Json;
22814
+ printer_id: string | null;
22815
+ priority: number;
22816
+ reference: string | null;
22817
+ route: string | null;
22818
+ screen_id: string | null;
22819
+ station_id: string | null;
22820
+ status_id: string | null;
22821
+ updated_at: string;
22822
+ warnings: import("./types.js").Json;
22823
+ };
22824
+ SetofOptions: {
22825
+ from: "*";
22826
+ to: "pick_queue";
22827
+ isOneToOne: true;
22828
+ isSetofReturn: false;
22829
+ };
22830
+ };
22831
+ pick_complete_print_cart: {
22832
+ Args: {
22833
+ _cart_id: string;
22834
+ _printer_id: string;
22835
+ _queue_item_id: string;
22836
+ _session_id: string;
22837
+ };
22838
+ Returns: {
22839
+ announced_at: string;
22840
+ assigned_user_id: string | null;
22841
+ barcode: string | null;
22842
+ cancelled_at: string | null;
22843
+ cart_count: number;
22844
+ completed_at: string | null;
22845
+ country_code: string | null;
22846
+ created_at: string;
22847
+ customer_name: string | null;
22848
+ delivery_address: string | null;
22849
+ document_number: string | null;
22850
+ document_type_id: string | null;
22851
+ due_at: string | null;
22852
+ id: string;
22853
+ is_urgent: boolean;
22854
+ line_count: number;
22855
+ order_number: string | null;
22856
+ order_type: string | null;
22857
+ payload: import("./types.js").Json;
22858
+ print_count: number;
22859
+ print_job_id: string | null;
22860
+ printed_at: string | null;
22861
+ printed_by: string | null;
22862
+ printed_cart_ids: import("./types.js").Json;
22572
22863
  printer_id: string | null;
22573
22864
  priority: number;
22574
22865
  reference: string | null;
@@ -22612,6 +22903,15 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
22612
22903
  _session_id?: string;
22613
22904
  };
22614
22905
  Returns: string;
22906
+ } | {
22907
+ Args: {
22908
+ _cart_id: string;
22909
+ _is_herprint: boolean;
22910
+ _printer_id: string;
22911
+ _queue_item_id: string;
22912
+ _session_id: string;
22913
+ };
22914
+ Returns: string;
22615
22915
  };
22616
22916
  pick_order_context: {
22617
22917
  Args: {
@@ -22692,6 +22992,54 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
22692
22992
  print_job_id: string | null;
22693
22993
  printed_at: string | null;
22694
22994
  printed_by: string | null;
22995
+ printed_cart_ids: import("./types.js").Json;
22996
+ printer_id: string | null;
22997
+ priority: number;
22998
+ reference: string | null;
22999
+ route: string | null;
23000
+ screen_id: string | null;
23001
+ station_id: string | null;
23002
+ status_id: string | null;
23003
+ updated_at: string;
23004
+ warnings: import("./types.js").Json;
23005
+ };
23006
+ SetofOptions: {
23007
+ from: "*";
23008
+ to: "pick_queue";
23009
+ isOneToOne: true;
23010
+ isSetofReturn: false;
23011
+ };
23012
+ } | {
23013
+ Args: {
23014
+ _cart_id?: string;
23015
+ _queue_item_id: string;
23016
+ _session_id: string;
23017
+ };
23018
+ Returns: {
23019
+ announced_at: string;
23020
+ assigned_user_id: string | null;
23021
+ barcode: string | null;
23022
+ cancelled_at: string | null;
23023
+ cart_count: number;
23024
+ completed_at: string | null;
23025
+ country_code: string | null;
23026
+ created_at: string;
23027
+ customer_name: string | null;
23028
+ delivery_address: string | null;
23029
+ document_number: string | null;
23030
+ document_type_id: string | null;
23031
+ due_at: string | null;
23032
+ id: string;
23033
+ is_urgent: boolean;
23034
+ line_count: number;
23035
+ order_number: string | null;
23036
+ order_type: string | null;
23037
+ payload: import("./types.js").Json;
23038
+ print_count: number;
23039
+ print_job_id: string | null;
23040
+ printed_at: string | null;
23041
+ printed_by: string | null;
23042
+ printed_cart_ids: import("./types.js").Json;
22695
23043
  printer_id: string | null;
22696
23044
  priority: number;
22697
23045
  reference: string | null;
@@ -22804,6 +23152,66 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
22804
23152
  };
22805
23153
  Returns: undefined;
22806
23154
  };
23155
+ planning_cancel_item: {
23156
+ Args: {
23157
+ _id: string;
23158
+ };
23159
+ Returns: undefined;
23160
+ };
23161
+ planning_list: {
23162
+ Args: {
23163
+ _from: string;
23164
+ _to: string;
23165
+ };
23166
+ Returns: {
23167
+ assigned_monteur_id: string | null;
23168
+ assistants: import("./types.js").Json | null;
23169
+ budget_mandate_cents: number | null;
23170
+ created_at: string | null;
23171
+ created_by: string | null;
23172
+ customer_id: string | null;
23173
+ customer_name: string | null;
23174
+ duration_minutes: number | null;
23175
+ end_at: string | null;
23176
+ id: string | null;
23177
+ needs_detail_review: boolean | null;
23178
+ notes: string | null;
23179
+ project_number: string | null;
23180
+ review_reasons: string[] | null;
23181
+ start_at: string | null;
23182
+ status: Database["public"]["Enums"]["planning_item_status"] | null;
23183
+ updated_at: string | null;
23184
+ viewer_role: string | null;
23185
+ werkbon_id: string | null;
23186
+ work_address: string | null;
23187
+ }[];
23188
+ SetofOptions: {
23189
+ from: "*";
23190
+ to: "planning_overview";
23191
+ isOneToOne: false;
23192
+ isSetofReturn: true;
23193
+ };
23194
+ };
23195
+ planning_set_assistants: {
23196
+ Args: {
23197
+ _monteur_ids: string[];
23198
+ _planning_item_id: string;
23199
+ };
23200
+ Returns: undefined;
23201
+ };
23202
+ planning_upsert_item: {
23203
+ Args: {
23204
+ _assigned_monteur_id: string;
23205
+ _end_at: string;
23206
+ _notes?: string;
23207
+ _start_at: string;
23208
+ _werkbon_id: string;
23209
+ };
23210
+ Returns: {
23211
+ action: string;
23212
+ id: string;
23213
+ }[];
23214
+ };
22807
23215
  print_preview_toestaan: {
22808
23216
  Args: {
22809
23217
  _max?: number;
@@ -23385,6 +23793,26 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
23385
23793
  };
23386
23794
  Returns: string[];
23387
23795
  };
23796
+ start_time_log_at: {
23797
+ Args: {
23798
+ p_clicked_at?: string;
23799
+ p_employee_id: string;
23800
+ p_start_lat?: number;
23801
+ p_start_lng?: number;
23802
+ p_type: string;
23803
+ p_work_order_id?: string;
23804
+ };
23805
+ Returns: import("./types.js").Json;
23806
+ };
23807
+ stop_time_log: {
23808
+ Args: {
23809
+ p_employee_id: string;
23810
+ p_end_lat?: number;
23811
+ p_end_lng?: number;
23812
+ p_end_time: string;
23813
+ };
23814
+ Returns: import("./types.js").Json;
23815
+ };
23388
23816
  switch_time_log: {
23389
23817
  Args: {
23390
23818
  p_employee_id: string;