@flowselections/scan-module 1.0.7 → 1.0.8

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.
@@ -1422,9 +1422,10 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
1422
1422
  Row: {
1423
1423
  assigned_at: string;
1424
1424
  cart_index: number;
1425
- cart_number: string | null;
1425
+ cart_number: string;
1426
1426
  day_seq: number | null;
1427
1427
  delivered_at: string | null;
1428
+ engine_cart_label: string | null;
1428
1429
  id: string;
1429
1430
  order_id: string;
1430
1431
  order_source: string;
@@ -1434,9 +1435,10 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
1434
1435
  Insert: {
1435
1436
  assigned_at?: string;
1436
1437
  cart_index: number;
1437
- cart_number?: string | null;
1438
+ cart_number: string;
1438
1439
  day_seq?: number | null;
1439
1440
  delivered_at?: string | null;
1441
+ engine_cart_label?: string | null;
1440
1442
  id?: string;
1441
1443
  order_id: string;
1442
1444
  order_source: string;
@@ -1446,9 +1448,10 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
1446
1448
  Update: {
1447
1449
  assigned_at?: string;
1448
1450
  cart_index?: number;
1449
- cart_number?: string | null;
1451
+ cart_number?: string;
1450
1452
  day_seq?: number | null;
1451
1453
  delivered_at?: string | null;
1454
+ engine_cart_label?: string | null;
1452
1455
  id?: string;
1453
1456
  order_id?: string;
1454
1457
  order_source?: string;
@@ -1823,6 +1826,42 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
1823
1826
  };
1824
1827
  Relationships: [];
1825
1828
  };
1829
+ customer_assortment_items: {
1830
+ Row: {
1831
+ created_at: string;
1832
+ customer_key: string;
1833
+ id: string;
1834
+ in_assortment: boolean;
1835
+ manual_override: boolean;
1836
+ source: string;
1837
+ synced_at: string | null;
1838
+ trade_item_key: string;
1839
+ updated_at: string;
1840
+ };
1841
+ Insert: {
1842
+ created_at?: string;
1843
+ customer_key: string;
1844
+ id?: string;
1845
+ in_assortment?: boolean;
1846
+ manual_override?: boolean;
1847
+ source?: string;
1848
+ synced_at?: string | null;
1849
+ trade_item_key: string;
1850
+ updated_at?: string;
1851
+ };
1852
+ Update: {
1853
+ created_at?: string;
1854
+ customer_key?: string;
1855
+ id?: string;
1856
+ in_assortment?: boolean;
1857
+ manual_override?: boolean;
1858
+ source?: string;
1859
+ synced_at?: string | null;
1860
+ trade_item_key?: string;
1861
+ updated_at?: string;
1862
+ };
1863
+ Relationships: [];
1864
+ };
1826
1865
  customer_audit_log: {
1827
1866
  Row: {
1828
1867
  action: string;
@@ -2225,6 +2264,63 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
2225
2264
  };
2226
2265
  Relationships: [];
2227
2266
  };
2267
+ customer_product_stickers: {
2268
+ Row: {
2269
+ content_hash: string | null;
2270
+ created_at: string;
2271
+ customer_key: string;
2272
+ file_name: string;
2273
+ file_path: string;
2274
+ file_size: number | null;
2275
+ floriday_sticker_id: string | null;
2276
+ floriday_synced_at: string | null;
2277
+ height_mm: number | null;
2278
+ id: string;
2279
+ mime_type: string | null;
2280
+ source: string;
2281
+ trade_item_key: string;
2282
+ updated_at: string;
2283
+ uploaded_by: string | null;
2284
+ width_mm: number | null;
2285
+ };
2286
+ Insert: {
2287
+ content_hash?: string | null;
2288
+ created_at?: string;
2289
+ customer_key: string;
2290
+ file_name: string;
2291
+ file_path: string;
2292
+ file_size?: number | null;
2293
+ floriday_sticker_id?: string | null;
2294
+ floriday_synced_at?: string | null;
2295
+ height_mm?: number | null;
2296
+ id?: string;
2297
+ mime_type?: string | null;
2298
+ source?: string;
2299
+ trade_item_key: string;
2300
+ updated_at?: string;
2301
+ uploaded_by?: string | null;
2302
+ width_mm?: number | null;
2303
+ };
2304
+ Update: {
2305
+ content_hash?: string | null;
2306
+ created_at?: string;
2307
+ customer_key?: string;
2308
+ file_name?: string;
2309
+ file_path?: string;
2310
+ file_size?: number | null;
2311
+ floriday_sticker_id?: string | null;
2312
+ floriday_synced_at?: string | null;
2313
+ height_mm?: number | null;
2314
+ id?: string;
2315
+ mime_type?: string | null;
2316
+ source?: string;
2317
+ trade_item_key?: string;
2318
+ updated_at?: string;
2319
+ uploaded_by?: string | null;
2320
+ width_mm?: number | null;
2321
+ };
2322
+ Relationships: [];
2323
+ };
2228
2324
  customer_selected_assortment: {
2229
2325
  Row: {
2230
2326
  article_number: string | null;
@@ -2273,6 +2369,30 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
2273
2369
  referencedColumns: ["id"];
2274
2370
  }];
2275
2371
  };
2372
+ customer_sticker_settings: {
2373
+ Row: {
2374
+ created_at: string;
2375
+ customer_key: string;
2376
+ height_mm: number;
2377
+ updated_at: string;
2378
+ width_mm: number;
2379
+ };
2380
+ Insert: {
2381
+ created_at?: string;
2382
+ customer_key: string;
2383
+ height_mm?: number;
2384
+ updated_at?: string;
2385
+ width_mm?: number;
2386
+ };
2387
+ Update: {
2388
+ created_at?: string;
2389
+ customer_key?: string;
2390
+ height_mm?: number;
2391
+ updated_at?: string;
2392
+ width_mm?: number;
2393
+ };
2394
+ Relationships: [];
2395
+ };
2276
2396
  customer_trade_settings: {
2277
2397
  Row: {
2278
2398
  category: string;
@@ -3598,6 +3718,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
3598
3718
  };
3599
3719
  email_auth_outbox: {
3600
3720
  Row: {
3721
+ attachments: import("./types").Json;
3601
3722
  attempts: number;
3602
3723
  bcc_addresses: string[];
3603
3724
  cc_addresses: string[];
@@ -3620,6 +3741,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
3620
3741
  updated_at: string;
3621
3742
  };
3622
3743
  Insert: {
3744
+ attachments?: import("./types").Json;
3623
3745
  attempts?: number;
3624
3746
  bcc_addresses?: string[];
3625
3747
  cc_addresses?: string[];
@@ -3642,6 +3764,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
3642
3764
  updated_at?: string;
3643
3765
  };
3644
3766
  Update: {
3767
+ attachments?: import("./types").Json;
3645
3768
  attempts?: number;
3646
3769
  bcc_addresses?: string[];
3647
3770
  cc_addresses?: string[];
@@ -5603,6 +5726,102 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
5603
5726
  referencedColumns: ["id"];
5604
5727
  }];
5605
5728
  };
5729
+ floriday_api_log: {
5730
+ Row: {
5731
+ action: string | null;
5732
+ caller: string | null;
5733
+ connection_id: string | null;
5734
+ created_at: string;
5735
+ cursor_from: number | null;
5736
+ direction: string;
5737
+ duration_ms: number | null;
5738
+ environment: string | null;
5739
+ error: string | null;
5740
+ floriday_id: string | null;
5741
+ floriday_reference: string | null;
5742
+ http_status: number;
5743
+ id: string;
5744
+ item_count: number | null;
5745
+ kind: string | null;
5746
+ local_id: string | null;
5747
+ local_reference: string | null;
5748
+ method: string;
5749
+ module: string | null;
5750
+ ok: boolean;
5751
+ path: string;
5752
+ request: import("./types").Json | null;
5753
+ resource_type: string | null;
5754
+ response: import("./types").Json | null;
5755
+ write_log_id: string | null;
5756
+ };
5757
+ Insert: {
5758
+ action?: string | null;
5759
+ caller?: string | null;
5760
+ connection_id?: string | null;
5761
+ created_at?: string;
5762
+ cursor_from?: number | null;
5763
+ direction: string;
5764
+ duration_ms?: number | null;
5765
+ environment?: string | null;
5766
+ error?: string | null;
5767
+ floriday_id?: string | null;
5768
+ floriday_reference?: string | null;
5769
+ http_status?: number;
5770
+ id?: string;
5771
+ item_count?: number | null;
5772
+ kind?: string | null;
5773
+ local_id?: string | null;
5774
+ local_reference?: string | null;
5775
+ method: string;
5776
+ module?: string | null;
5777
+ ok?: boolean;
5778
+ path: string;
5779
+ request?: import("./types").Json | null;
5780
+ resource_type?: string | null;
5781
+ response?: import("./types").Json | null;
5782
+ write_log_id?: string | null;
5783
+ };
5784
+ Update: {
5785
+ action?: string | null;
5786
+ caller?: string | null;
5787
+ connection_id?: string | null;
5788
+ created_at?: string;
5789
+ cursor_from?: number | null;
5790
+ direction?: string;
5791
+ duration_ms?: number | null;
5792
+ environment?: string | null;
5793
+ error?: string | null;
5794
+ floriday_id?: string | null;
5795
+ floriday_reference?: string | null;
5796
+ http_status?: number;
5797
+ id?: string;
5798
+ item_count?: number | null;
5799
+ kind?: string | null;
5800
+ local_id?: string | null;
5801
+ local_reference?: string | null;
5802
+ method?: string;
5803
+ module?: string | null;
5804
+ ok?: boolean;
5805
+ path?: string;
5806
+ request?: import("./types").Json | null;
5807
+ resource_type?: string | null;
5808
+ response?: import("./types").Json | null;
5809
+ write_log_id?: string | null;
5810
+ };
5811
+ Relationships: [{
5812
+ foreignKeyName: "floriday_api_log_connection_id_fkey";
5813
+ columns: ["connection_id"];
5814
+ isOneToOne: false;
5815
+ referencedRelation: "floriday_connections";
5816
+ referencedColumns: ["id"];
5817
+ }, {
5818
+ foreignKeyName: "floriday_api_log_write_log_id_fkey";
5819
+ columns: ["write_log_id"];
5820
+ isOneToOne: false;
5821
+ referencedRelation: "floriday_write_log";
5822
+ referencedColumns: ["id"];
5823
+ }];
5824
+ };
5606
5825
  floriday_auction_letters_cache: {
5607
5826
  Row: {
5608
5827
  auction_letter_code: string;
@@ -6803,6 +7022,69 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
6803
7022
  referencedColumns: ["id"];
6804
7023
  }];
6805
7024
  };
7025
+ floriday_link_templates: {
7026
+ Row: {
7027
+ created_at: string;
7028
+ floriday_url_template: string | null;
7029
+ is_active: boolean;
7030
+ label: string;
7031
+ local_url_template: string | null;
7032
+ resource_type: string;
7033
+ updated_at: string;
7034
+ };
7035
+ Insert: {
7036
+ created_at?: string;
7037
+ floriday_url_template?: string | null;
7038
+ is_active?: boolean;
7039
+ label: string;
7040
+ local_url_template?: string | null;
7041
+ resource_type: string;
7042
+ updated_at?: string;
7043
+ };
7044
+ Update: {
7045
+ created_at?: string;
7046
+ floriday_url_template?: string | null;
7047
+ is_active?: boolean;
7048
+ label?: string;
7049
+ local_url_template?: string | null;
7050
+ resource_type?: string;
7051
+ updated_at?: string;
7052
+ };
7053
+ Relationships: [];
7054
+ };
7055
+ floriday_log_retention: {
7056
+ Row: {
7057
+ created_at: string;
7058
+ direction: string | null;
7059
+ id: string;
7060
+ keep_failed_days: number | null;
7061
+ keep_ok_days: number | null;
7062
+ note: string | null;
7063
+ resource_type: string | null;
7064
+ updated_at: string;
7065
+ };
7066
+ Insert: {
7067
+ created_at?: string;
7068
+ direction?: string | null;
7069
+ id?: string;
7070
+ keep_failed_days?: number | null;
7071
+ keep_ok_days?: number | null;
7072
+ note?: string | null;
7073
+ resource_type?: string | null;
7074
+ updated_at?: string;
7075
+ };
7076
+ Update: {
7077
+ created_at?: string;
7078
+ direction?: string | null;
7079
+ id?: string;
7080
+ keep_failed_days?: number | null;
7081
+ keep_ok_days?: number | null;
7082
+ note?: string | null;
7083
+ resource_type?: string | null;
7084
+ updated_at?: string;
7085
+ };
7086
+ Relationships: [];
7087
+ };
6806
7088
  floriday_logistic_labels_cache: {
6807
7089
  Row: {
6808
7090
  byte_size: number | null;
@@ -8519,8 +8801,48 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
8519
8801
  };
8520
8802
  Relationships: [];
8521
8803
  };
8804
+ itk_handover_afspraken: {
8805
+ Row: {
8806
+ afgesproken_door: string | null;
8807
+ afgesproken_op: string;
8808
+ besluit: string;
8809
+ created_at: string;
8810
+ item: string;
8811
+ modules: string[];
8812
+ sleutel: string;
8813
+ soort: string;
8814
+ updated_at: string;
8815
+ versie_vingerafdruk: string;
8816
+ };
8817
+ Insert: {
8818
+ afgesproken_door?: string | null;
8819
+ afgesproken_op?: string;
8820
+ besluit?: string;
8821
+ created_at?: string;
8822
+ item?: string;
8823
+ modules?: string[];
8824
+ sleutel: string;
8825
+ soort?: string;
8826
+ updated_at?: string;
8827
+ versie_vingerafdruk?: string;
8828
+ };
8829
+ Update: {
8830
+ afgesproken_door?: string | null;
8831
+ afgesproken_op?: string;
8832
+ besluit?: string;
8833
+ created_at?: string;
8834
+ item?: string;
8835
+ modules?: string[];
8836
+ sleutel?: string;
8837
+ soort?: string;
8838
+ updated_at?: string;
8839
+ versie_vingerafdruk?: string;
8840
+ };
8841
+ Relationships: [];
8842
+ };
8522
8843
  itk_handover_github_scan: {
8523
8844
  Row: {
8845
+ genegeerd_op: string | null;
8524
8846
  gescand_op: string;
8525
8847
  gevonden: boolean;
8526
8848
  melding: string | null;
@@ -8528,6 +8850,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
8528
8850
  repo: string;
8529
8851
  };
8530
8852
  Insert: {
8853
+ genegeerd_op?: string | null;
8531
8854
  gescand_op?: string;
8532
8855
  gevonden?: boolean;
8533
8856
  melding?: string | null;
@@ -8535,6 +8858,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
8535
8858
  repo: string;
8536
8859
  };
8537
8860
  Update: {
8861
+ genegeerd_op?: string | null;
8538
8862
  gescand_op?: string;
8539
8863
  gevonden?: boolean;
8540
8864
  melding?: string | null;
@@ -8543,13 +8867,45 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
8543
8867
  };
8544
8868
  Relationships: [];
8545
8869
  };
8870
+ itk_handover_github_voortgang: {
8871
+ Row: {
8872
+ bijgewerkt_op: string;
8873
+ huidige_repo: string | null;
8874
+ id: boolean;
8875
+ klaar: number;
8876
+ loopt: boolean;
8877
+ totaal: number;
8878
+ };
8879
+ Insert: {
8880
+ bijgewerkt_op?: string;
8881
+ huidige_repo?: string | null;
8882
+ id?: boolean;
8883
+ klaar?: number;
8884
+ loopt?: boolean;
8885
+ totaal?: number;
8886
+ };
8887
+ Update: {
8888
+ bijgewerkt_op?: string;
8889
+ huidige_repo?: string | null;
8890
+ id?: boolean;
8891
+ klaar?: number;
8892
+ loopt?: boolean;
8893
+ totaal?: number;
8894
+ };
8895
+ Relationships: [];
8896
+ };
8546
8897
  itk_handover_module_meta: {
8547
8898
  Row: {
8548
8899
  check_aangevraagd_op: string | null;
8549
8900
  check_nodig: boolean;
8550
8901
  check_reden: string | null;
8551
8902
  created_at: string;
8903
+ md_bron: boolean;
8904
+ md_bron_op: string | null;
8905
+ md_bron_pad: string | null;
8552
8906
  module_id: string;
8907
+ nieuw_gezien: boolean;
8908
+ nieuw_gezien_op: string | null;
8553
8909
  project_url: string | null;
8554
8910
  publicatie_url: string | null;
8555
8911
  updated_at: string;
@@ -8559,7 +8915,12 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
8559
8915
  check_nodig?: boolean;
8560
8916
  check_reden?: string | null;
8561
8917
  created_at?: string;
8918
+ md_bron?: boolean;
8919
+ md_bron_op?: string | null;
8920
+ md_bron_pad?: string | null;
8562
8921
  module_id: string;
8922
+ nieuw_gezien?: boolean;
8923
+ nieuw_gezien_op?: string | null;
8563
8924
  project_url?: string | null;
8564
8925
  publicatie_url?: string | null;
8565
8926
  updated_at?: string;
@@ -8569,13 +8930,45 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
8569
8930
  check_nodig?: boolean;
8570
8931
  check_reden?: string | null;
8571
8932
  created_at?: string;
8933
+ md_bron?: boolean;
8934
+ md_bron_op?: string | null;
8935
+ md_bron_pad?: string | null;
8572
8936
  module_id?: string;
8937
+ nieuw_gezien?: boolean;
8938
+ nieuw_gezien_op?: string | null;
8573
8939
  project_url?: string | null;
8574
8940
  publicatie_url?: string | null;
8575
8941
  updated_at?: string;
8576
8942
  };
8577
8943
  Relationships: [];
8578
8944
  };
8945
+ itk_handover_module_naam: {
8946
+ Row: {
8947
+ bron_repo: string;
8948
+ created_at: string;
8949
+ module_id: string;
8950
+ standaardnaam: string | null;
8951
+ updated_at: string;
8952
+ weergavenaam: string;
8953
+ };
8954
+ Insert: {
8955
+ bron_repo?: string;
8956
+ created_at?: string;
8957
+ module_id: string;
8958
+ standaardnaam?: string | null;
8959
+ updated_at?: string;
8960
+ weergavenaam: string;
8961
+ };
8962
+ Update: {
8963
+ bron_repo?: string;
8964
+ created_at?: string;
8965
+ module_id?: string;
8966
+ standaardnaam?: string | null;
8967
+ updated_at?: string;
8968
+ weergavenaam?: string;
8969
+ };
8970
+ Relationships: [];
8971
+ };
8579
8972
  itk_handover_project_modules: {
8580
8973
  Row: {
8581
8974
  created_at: string;
@@ -8689,6 +9082,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
8689
9082
  };
8690
9083
  itk_module_handovers: {
8691
9084
  Row: {
9085
+ bekende_risicos: string[];
8692
9086
  bevindingen: string | null;
8693
9087
  bezit_tabellen: string[];
8694
9088
  bron_commit: string | null;
@@ -8707,6 +9101,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
8707
9101
  inhoud_md: string;
8708
9102
  is_actueel: boolean;
8709
9103
  is_gearchiveerd: boolean;
9104
+ laatst_bevestigd_op: string | null;
8710
9105
  laatst_gecontroleerd_op: string | null;
8711
9106
  module_id: string;
8712
9107
  module_titel: string;
@@ -8716,6 +9111,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
8716
9111
  versie: number;
8717
9112
  };
8718
9113
  Insert: {
9114
+ bekende_risicos?: string[];
8719
9115
  bevindingen?: string | null;
8720
9116
  bezit_tabellen?: string[];
8721
9117
  bron_commit?: string | null;
@@ -8734,6 +9130,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
8734
9130
  inhoud_md: string;
8735
9131
  is_actueel?: boolean;
8736
9132
  is_gearchiveerd?: boolean;
9133
+ laatst_bevestigd_op?: string | null;
8737
9134
  laatst_gecontroleerd_op?: string | null;
8738
9135
  module_id: string;
8739
9136
  module_titel: string;
@@ -8743,6 +9140,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
8743
9140
  versie?: number;
8744
9141
  };
8745
9142
  Update: {
9143
+ bekende_risicos?: string[];
8746
9144
  bevindingen?: string | null;
8747
9145
  bezit_tabellen?: string[];
8748
9146
  bron_commit?: string | null;
@@ -8761,6 +9159,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
8761
9159
  inhoud_md?: string;
8762
9160
  is_actueel?: boolean;
8763
9161
  is_gearchiveerd?: boolean;
9162
+ laatst_bevestigd_op?: string | null;
8764
9163
  laatst_gecontroleerd_op?: string | null;
8765
9164
  module_id?: string;
8766
9165
  module_titel?: string;
@@ -8969,25 +9368,73 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
8969
9368
  };
8970
9369
  Relationships: [];
8971
9370
  };
8972
- itk_offertes: {
9371
+ itk_offerte_werkbon_queue: {
8973
9372
  Row: {
8974
- ai_generated: boolean;
8975
- approved_at: string | null;
8976
- binnen_mandaat: boolean;
8977
- contact_id: string | null;
8978
- converted_at: string | null;
9373
+ bron_werkbon_id: string | null;
8979
9374
  created_at: string;
8980
- created_by: string | null;
8981
- customer_id: string | null;
8982
- follow_up_werkbon_id: string | null;
9375
+ foutmelding: string | null;
8983
9376
  id: string;
8984
- jaar: number;
8985
- mandaat_restant_cents: number;
8986
- notities: string | null;
8987
- offerte_number: string | null;
8988
- omschrijving: string;
8989
- rejected_at: string | null;
8990
- sent_at: string | null;
9377
+ offerte_id: string;
9378
+ payload: import("./types").Json;
9379
+ status: string;
9380
+ updated_at: string;
9381
+ verwerkt_op: string | null;
9382
+ werkbon_id: string | null;
9383
+ werkbon_nummer: string | null;
9384
+ };
9385
+ Insert: {
9386
+ bron_werkbon_id?: string | null;
9387
+ created_at?: string;
9388
+ foutmelding?: string | null;
9389
+ id?: string;
9390
+ offerte_id: string;
9391
+ payload?: import("./types").Json;
9392
+ status?: string;
9393
+ updated_at?: string;
9394
+ verwerkt_op?: string | null;
9395
+ werkbon_id?: string | null;
9396
+ werkbon_nummer?: string | null;
9397
+ };
9398
+ Update: {
9399
+ bron_werkbon_id?: string | null;
9400
+ created_at?: string;
9401
+ foutmelding?: string | null;
9402
+ id?: string;
9403
+ offerte_id?: string;
9404
+ payload?: import("./types").Json;
9405
+ status?: string;
9406
+ updated_at?: string;
9407
+ verwerkt_op?: string | null;
9408
+ werkbon_id?: string | null;
9409
+ werkbon_nummer?: string | null;
9410
+ };
9411
+ Relationships: [{
9412
+ foreignKeyName: "itk_offerte_werkbon_queue_offerte_id_fkey";
9413
+ columns: ["offerte_id"];
9414
+ isOneToOne: false;
9415
+ referencedRelation: "itk_offertes";
9416
+ referencedColumns: ["id"];
9417
+ }];
9418
+ };
9419
+ itk_offertes: {
9420
+ Row: {
9421
+ ai_generated: boolean;
9422
+ approved_at: string | null;
9423
+ binnen_mandaat: boolean;
9424
+ contact_id: string | null;
9425
+ converted_at: string | null;
9426
+ created_at: string;
9427
+ created_by: string | null;
9428
+ customer_id: string | null;
9429
+ follow_up_werkbon_id: string | null;
9430
+ id: string;
9431
+ jaar: number;
9432
+ mandaat_restant_cents: number;
9433
+ notities: string | null;
9434
+ offerte_number: string | null;
9435
+ omschrijving: string;
9436
+ rejected_at: string | null;
9437
+ sent_at: string | null;
8991
9438
  source_number: string | null;
8992
9439
  source_ref: string | null;
8993
9440
  source_type: string;
@@ -10427,6 +10874,42 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
10427
10874
  };
10428
10875
  Relationships: [];
10429
10876
  };
10877
+ logistics_order_merges: {
10878
+ Row: {
10879
+ group_key: string;
10880
+ id: string;
10881
+ items_moved: number;
10882
+ kept_order_id: string;
10883
+ kept_order_number: string | null;
10884
+ merged_at: string;
10885
+ merged_order_id: string;
10886
+ merged_order_number: string | null;
10887
+ sales_order_id: string | null;
10888
+ };
10889
+ Insert: {
10890
+ group_key: string;
10891
+ id?: string;
10892
+ items_moved?: number;
10893
+ kept_order_id: string;
10894
+ kept_order_number?: string | null;
10895
+ merged_at?: string;
10896
+ merged_order_id: string;
10897
+ merged_order_number?: string | null;
10898
+ sales_order_id?: string | null;
10899
+ };
10900
+ Update: {
10901
+ group_key?: string;
10902
+ id?: string;
10903
+ items_moved?: number;
10904
+ kept_order_id?: string;
10905
+ kept_order_number?: string | null;
10906
+ merged_at?: string;
10907
+ merged_order_id?: string;
10908
+ merged_order_number?: string | null;
10909
+ sales_order_id?: string | null;
10910
+ };
10911
+ Relationships: [];
10912
+ };
10430
10913
  logistics_pick_data_requests: {
10431
10914
  Row: {
10432
10915
  actions: import("./types").Json;
@@ -10505,6 +10988,30 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
10505
10988
  };
10506
10989
  Relationships: [];
10507
10990
  };
10991
+ logistics_plan_locks: {
10992
+ Row: {
10993
+ created_at: string;
10994
+ lock_key: string;
10995
+ locked_until: string;
10996
+ owner: string | null;
10997
+ updated_at: string;
10998
+ };
10999
+ Insert: {
11000
+ created_at?: string;
11001
+ lock_key: string;
11002
+ locked_until: string;
11003
+ owner?: string | null;
11004
+ updated_at?: string;
11005
+ };
11006
+ Update: {
11007
+ created_at?: string;
11008
+ lock_key?: string;
11009
+ locked_until?: string;
11010
+ owner?: string | null;
11011
+ updated_at?: string;
11012
+ };
11013
+ Relationships: [];
11014
+ };
10508
11015
  logistics_plan_queue: {
10509
11016
  Row: {
10510
11017
  attempts: number;
@@ -11342,6 +11849,246 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
11342
11849
  };
11343
11850
  Relationships: [];
11344
11851
  };
11852
+ logistics_trace_events: {
11853
+ Row: {
11854
+ actor: string | null;
11855
+ attempts: number;
11856
+ calc: import("./types").Json | null;
11857
+ cart_ref: string | null;
11858
+ created_at: string;
11859
+ db_action: string | null;
11860
+ db_new: import("./types").Json | null;
11861
+ db_old: import("./types").Json | null;
11862
+ db_record: string | null;
11863
+ db_table: string | null;
11864
+ decision: string | null;
11865
+ duration_ms: number | null;
11866
+ error: string | null;
11867
+ error_class: string | null;
11868
+ external_action: string | null;
11869
+ external_ref: string | null;
11870
+ external_response: import("./types").Json | null;
11871
+ external_status: string | null;
11872
+ external_system: string | null;
11873
+ id: string;
11874
+ input: import("./types").Json | null;
11875
+ next_attempt_at: string | null;
11876
+ next_step: string | null;
11877
+ node_id: string | null;
11878
+ order_ref: string | null;
11879
+ order_source: string | null;
11880
+ output: import("./types").Json | null;
11881
+ phase: string;
11882
+ reads: import("./types").Json | null;
11883
+ reason: string | null;
11884
+ rule: string | null;
11885
+ slip_ref: string | null;
11886
+ status: string;
11887
+ step: string;
11888
+ trace_id: string;
11889
+ values_used: import("./types").Json | null;
11890
+ };
11891
+ Insert: {
11892
+ actor?: string | null;
11893
+ attempts?: number;
11894
+ calc?: import("./types").Json | null;
11895
+ cart_ref?: string | null;
11896
+ created_at?: string;
11897
+ db_action?: string | null;
11898
+ db_new?: import("./types").Json | null;
11899
+ db_old?: import("./types").Json | null;
11900
+ db_record?: string | null;
11901
+ db_table?: string | null;
11902
+ decision?: string | null;
11903
+ duration_ms?: number | null;
11904
+ error?: string | null;
11905
+ error_class?: string | null;
11906
+ external_action?: string | null;
11907
+ external_ref?: string | null;
11908
+ external_response?: import("./types").Json | null;
11909
+ external_status?: string | null;
11910
+ external_system?: string | null;
11911
+ id?: string;
11912
+ input?: import("./types").Json | null;
11913
+ next_attempt_at?: string | null;
11914
+ next_step?: string | null;
11915
+ node_id?: string | null;
11916
+ order_ref?: string | null;
11917
+ order_source?: string | null;
11918
+ output?: import("./types").Json | null;
11919
+ phase: string;
11920
+ reads?: import("./types").Json | null;
11921
+ reason?: string | null;
11922
+ rule?: string | null;
11923
+ slip_ref?: string | null;
11924
+ status: string;
11925
+ step: string;
11926
+ trace_id?: string;
11927
+ values_used?: import("./types").Json | null;
11928
+ };
11929
+ Update: {
11930
+ actor?: string | null;
11931
+ attempts?: number;
11932
+ calc?: import("./types").Json | null;
11933
+ cart_ref?: string | null;
11934
+ created_at?: string;
11935
+ db_action?: string | null;
11936
+ db_new?: import("./types").Json | null;
11937
+ db_old?: import("./types").Json | null;
11938
+ db_record?: string | null;
11939
+ db_table?: string | null;
11940
+ decision?: string | null;
11941
+ duration_ms?: number | null;
11942
+ error?: string | null;
11943
+ error_class?: string | null;
11944
+ external_action?: string | null;
11945
+ external_ref?: string | null;
11946
+ external_response?: import("./types").Json | null;
11947
+ external_status?: string | null;
11948
+ external_system?: string | null;
11949
+ id?: string;
11950
+ input?: import("./types").Json | null;
11951
+ next_attempt_at?: string | null;
11952
+ next_step?: string | null;
11953
+ node_id?: string | null;
11954
+ order_ref?: string | null;
11955
+ order_source?: string | null;
11956
+ output?: import("./types").Json | null;
11957
+ phase?: string;
11958
+ reads?: import("./types").Json | null;
11959
+ reason?: string | null;
11960
+ rule?: string | null;
11961
+ slip_ref?: string | null;
11962
+ status?: string;
11963
+ step?: string;
11964
+ trace_id?: string;
11965
+ values_used?: import("./types").Json | null;
11966
+ };
11967
+ Relationships: [];
11968
+ };
11969
+ logistics_trace_events_archive: {
11970
+ Row: {
11971
+ actor: string | null;
11972
+ attempts: number;
11973
+ calc: import("./types").Json | null;
11974
+ cart_ref: string | null;
11975
+ created_at: string;
11976
+ db_action: string | null;
11977
+ db_new: import("./types").Json | null;
11978
+ db_old: import("./types").Json | null;
11979
+ db_record: string | null;
11980
+ db_table: string | null;
11981
+ decision: string | null;
11982
+ duration_ms: number | null;
11983
+ error: string | null;
11984
+ error_class: string | null;
11985
+ external_action: string | null;
11986
+ external_ref: string | null;
11987
+ external_response: import("./types").Json | null;
11988
+ external_status: string | null;
11989
+ external_system: string | null;
11990
+ id: string;
11991
+ input: import("./types").Json | null;
11992
+ next_attempt_at: string | null;
11993
+ next_step: string | null;
11994
+ node_id: string | null;
11995
+ order_ref: string | null;
11996
+ order_source: string | null;
11997
+ output: import("./types").Json | null;
11998
+ phase: string;
11999
+ reads: import("./types").Json | null;
12000
+ reason: string | null;
12001
+ rule: string | null;
12002
+ slip_ref: string | null;
12003
+ status: string;
12004
+ step: string;
12005
+ superseded_at: string;
12006
+ superseded_reason: string | null;
12007
+ trace_id: string;
12008
+ values_used: import("./types").Json | null;
12009
+ };
12010
+ Insert: {
12011
+ actor?: string | null;
12012
+ attempts?: number;
12013
+ calc?: import("./types").Json | null;
12014
+ cart_ref?: string | null;
12015
+ created_at?: string;
12016
+ db_action?: string | null;
12017
+ db_new?: import("./types").Json | null;
12018
+ db_old?: import("./types").Json | null;
12019
+ db_record?: string | null;
12020
+ db_table?: string | null;
12021
+ decision?: string | null;
12022
+ duration_ms?: number | null;
12023
+ error?: string | null;
12024
+ error_class?: string | null;
12025
+ external_action?: string | null;
12026
+ external_ref?: string | null;
12027
+ external_response?: import("./types").Json | null;
12028
+ external_status?: string | null;
12029
+ external_system?: string | null;
12030
+ id?: string;
12031
+ input?: import("./types").Json | null;
12032
+ next_attempt_at?: string | null;
12033
+ next_step?: string | null;
12034
+ node_id?: string | null;
12035
+ order_ref?: string | null;
12036
+ order_source?: string | null;
12037
+ output?: import("./types").Json | null;
12038
+ phase: string;
12039
+ reads?: import("./types").Json | null;
12040
+ reason?: string | null;
12041
+ rule?: string | null;
12042
+ slip_ref?: string | null;
12043
+ status: string;
12044
+ step: string;
12045
+ superseded_at?: string;
12046
+ superseded_reason?: string | null;
12047
+ trace_id?: string;
12048
+ values_used?: import("./types").Json | null;
12049
+ };
12050
+ Update: {
12051
+ actor?: string | null;
12052
+ attempts?: number;
12053
+ calc?: import("./types").Json | null;
12054
+ cart_ref?: string | null;
12055
+ created_at?: string;
12056
+ db_action?: string | null;
12057
+ db_new?: import("./types").Json | null;
12058
+ db_old?: import("./types").Json | null;
12059
+ db_record?: string | null;
12060
+ db_table?: string | null;
12061
+ decision?: string | null;
12062
+ duration_ms?: number | null;
12063
+ error?: string | null;
12064
+ error_class?: string | null;
12065
+ external_action?: string | null;
12066
+ external_ref?: string | null;
12067
+ external_response?: import("./types").Json | null;
12068
+ external_status?: string | null;
12069
+ external_system?: string | null;
12070
+ id?: string;
12071
+ input?: import("./types").Json | null;
12072
+ next_attempt_at?: string | null;
12073
+ next_step?: string | null;
12074
+ node_id?: string | null;
12075
+ order_ref?: string | null;
12076
+ order_source?: string | null;
12077
+ output?: import("./types").Json | null;
12078
+ phase?: string;
12079
+ reads?: import("./types").Json | null;
12080
+ reason?: string | null;
12081
+ rule?: string | null;
12082
+ slip_ref?: string | null;
12083
+ status?: string;
12084
+ step?: string;
12085
+ superseded_at?: string;
12086
+ superseded_reason?: string | null;
12087
+ trace_id?: string;
12088
+ values_used?: import("./types").Json | null;
12089
+ };
12090
+ Relationships: [];
12091
+ };
11345
12092
  logistics_variables: {
11346
12093
  Row: {
11347
12094
  created_at: string;
@@ -11489,6 +12236,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
11489
12236
  has_attachments: boolean;
11490
12237
  id: string;
11491
12238
  message_id: string | null;
12239
+ preview: string | null;
11492
12240
  profile_id: string | null;
11493
12241
  raw_size: number | null;
11494
12242
  received_at: string | null;
@@ -11512,6 +12260,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
11512
12260
  has_attachments?: boolean;
11513
12261
  id?: string;
11514
12262
  message_id?: string | null;
12263
+ preview?: string | null;
11515
12264
  profile_id?: string | null;
11516
12265
  raw_size?: number | null;
11517
12266
  received_at?: string | null;
@@ -11535,6 +12284,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
11535
12284
  has_attachments?: boolean;
11536
12285
  id?: string;
11537
12286
  message_id?: string | null;
12287
+ preview?: string | null;
11538
12288
  profile_id?: string | null;
11539
12289
  raw_size?: number | null;
11540
12290
  received_at?: string | null;
@@ -11566,6 +12316,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
11566
12316
  };
11567
12317
  mailbox_order_proposals: {
11568
12318
  Row: {
12319
+ ai_ok: boolean | null;
11569
12320
  ai_validation: import("./types").Json | null;
11570
12321
  confidence: number | null;
11571
12322
  created_at: string;
@@ -11583,6 +12334,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
11583
12334
  updated_at: string;
11584
12335
  };
11585
12336
  Insert: {
12337
+ ai_ok?: boolean | null;
11586
12338
  ai_validation?: import("./types").Json | null;
11587
12339
  confidence?: number | null;
11588
12340
  created_at?: string;
@@ -11600,6 +12352,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
11600
12352
  updated_at?: string;
11601
12353
  };
11602
12354
  Update: {
12355
+ ai_ok?: boolean | null;
11603
12356
  ai_validation?: import("./types").Json | null;
11604
12357
  confidence?: number | null;
11605
12358
  created_at?: string;
@@ -15089,6 +15842,123 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
15089
15842
  referencedColumns: ["id"];
15090
15843
  }];
15091
15844
  };
15845
+ price_list_rows: {
15846
+ Row: {
15847
+ action: string;
15848
+ created_at: string;
15849
+ id: string;
15850
+ message: string | null;
15851
+ parsed: import("./types").Json;
15852
+ price_list_id: string;
15853
+ raw: import("./types").Json;
15854
+ row_number: number;
15855
+ supplier_product_id: string | null;
15856
+ };
15857
+ Insert: {
15858
+ action?: string;
15859
+ created_at?: string;
15860
+ id?: string;
15861
+ message?: string | null;
15862
+ parsed?: import("./types").Json;
15863
+ price_list_id: string;
15864
+ raw?: import("./types").Json;
15865
+ row_number: number;
15866
+ supplier_product_id?: string | null;
15867
+ };
15868
+ Update: {
15869
+ action?: string;
15870
+ created_at?: string;
15871
+ id?: string;
15872
+ message?: string | null;
15873
+ parsed?: import("./types").Json;
15874
+ price_list_id?: string;
15875
+ raw?: import("./types").Json;
15876
+ row_number?: number;
15877
+ supplier_product_id?: string | null;
15878
+ };
15879
+ Relationships: [{
15880
+ foreignKeyName: "price_list_rows_price_list_id_fkey";
15881
+ columns: ["price_list_id"];
15882
+ isOneToOne: false;
15883
+ referencedRelation: "price_lists";
15884
+ referencedColumns: ["id"];
15885
+ }, {
15886
+ foreignKeyName: "price_list_rows_supplier_product_id_fkey";
15887
+ columns: ["supplier_product_id"];
15888
+ isOneToOne: false;
15889
+ referencedRelation: "supplier_products";
15890
+ referencedColumns: ["id"];
15891
+ }];
15892
+ };
15893
+ price_lists: {
15894
+ Row: {
15895
+ created_at: string;
15896
+ created_by: string | null;
15897
+ file_hash: string | null;
15898
+ file_name: string;
15899
+ file_path: string | null;
15900
+ headers: string[];
15901
+ id: string;
15902
+ preview: import("./types").Json;
15903
+ processed_at: string | null;
15904
+ reason: string | null;
15905
+ row_count: number;
15906
+ sheet_name: string | null;
15907
+ source: string;
15908
+ stats: import("./types").Json;
15909
+ status: string;
15910
+ supplier_guess: string | null;
15911
+ supplier_id: string | null;
15912
+ updated_at: string;
15913
+ };
15914
+ Insert: {
15915
+ created_at?: string;
15916
+ created_by?: string | null;
15917
+ file_hash?: string | null;
15918
+ file_name: string;
15919
+ file_path?: string | null;
15920
+ headers?: string[];
15921
+ id?: string;
15922
+ preview?: import("./types").Json;
15923
+ processed_at?: string | null;
15924
+ reason?: string | null;
15925
+ row_count?: number;
15926
+ sheet_name?: string | null;
15927
+ source?: string;
15928
+ stats?: import("./types").Json;
15929
+ status?: string;
15930
+ supplier_guess?: string | null;
15931
+ supplier_id?: string | null;
15932
+ updated_at?: string;
15933
+ };
15934
+ Update: {
15935
+ created_at?: string;
15936
+ created_by?: string | null;
15937
+ file_hash?: string | null;
15938
+ file_name?: string;
15939
+ file_path?: string | null;
15940
+ headers?: string[];
15941
+ id?: string;
15942
+ preview?: import("./types").Json;
15943
+ processed_at?: string | null;
15944
+ reason?: string | null;
15945
+ row_count?: number;
15946
+ sheet_name?: string | null;
15947
+ source?: string;
15948
+ stats?: import("./types").Json;
15949
+ status?: string;
15950
+ supplier_guess?: string | null;
15951
+ supplier_id?: string | null;
15952
+ updated_at?: string;
15953
+ };
15954
+ Relationships: [{
15955
+ foreignKeyName: "price_lists_supplier_id_fkey";
15956
+ columns: ["supplier_id"];
15957
+ isOneToOne: false;
15958
+ referencedRelation: "suppliers";
15959
+ referencedColumns: ["id"];
15960
+ }];
15961
+ };
15092
15962
  print_agents: {
15093
15963
  Row: {
15094
15964
  actief: boolean;
@@ -16646,30 +17516,108 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
16646
17516
  referencedColumns: ["id"];
16647
17517
  }];
16648
17518
  };
16649
- purchase_order_items: {
17519
+ purchase_order_dispatches: {
16650
17520
  Row: {
16651
17521
  created_at: string;
16652
17522
  id: string;
16653
- product_id: string | null;
16654
- product_type: string;
17523
+ last_error: string | null;
17524
+ outbox_id: string | null;
16655
17525
  purchase_order_id: string;
16656
- quantity: number;
17526
+ status: string;
17527
+ supplier_id: string | null;
17528
+ supplier_name: string;
17529
+ to_address: string;
17530
+ updated_at: string;
16657
17531
  };
16658
17532
  Insert: {
16659
17533
  created_at?: string;
16660
17534
  id?: string;
16661
- product_id?: string | null;
16662
- product_type?: string;
17535
+ last_error?: string | null;
17536
+ outbox_id?: string | null;
16663
17537
  purchase_order_id: string;
16664
- quantity?: number;
17538
+ status?: string;
17539
+ supplier_id?: string | null;
17540
+ supplier_name?: string;
17541
+ to_address: string;
17542
+ updated_at?: string;
16665
17543
  };
16666
17544
  Update: {
16667
17545
  created_at?: string;
16668
17546
  id?: string;
16669
- product_id?: string | null;
16670
- product_type?: string;
16671
- purchase_order_id?: string;
17547
+ last_error?: string | null;
17548
+ outbox_id?: string | null;
17549
+ purchase_order_id?: string;
17550
+ status?: string;
17551
+ supplier_id?: string | null;
17552
+ supplier_name?: string;
17553
+ to_address?: string;
17554
+ updated_at?: string;
17555
+ };
17556
+ Relationships: [{
17557
+ foreignKeyName: "purchase_order_dispatches_purchase_order_id_fkey";
17558
+ columns: ["purchase_order_id"];
17559
+ isOneToOne: false;
17560
+ referencedRelation: "purchase_orders";
17561
+ referencedColumns: ["id"];
17562
+ }, {
17563
+ foreignKeyName: "purchase_order_dispatches_supplier_id_fkey";
17564
+ columns: ["supplier_id"];
17565
+ isOneToOne: false;
17566
+ referencedRelation: "suppliers";
17567
+ referencedColumns: ["id"];
17568
+ }];
17569
+ };
17570
+ purchase_order_items: {
17571
+ Row: {
17572
+ article_number: string | null;
17573
+ created_at: string;
17574
+ delivery_date: string | null;
17575
+ id: string;
17576
+ name: string;
17577
+ note: string | null;
17578
+ pot_size: string | null;
17579
+ product_id: string | null;
17580
+ product_type: string;
17581
+ purchase_order_id: string;
17582
+ quantity: number;
17583
+ supplier_id: string | null;
17584
+ supplier_product_id: string | null;
17585
+ unit_price_cents: number;
17586
+ updated_at: string;
17587
+ };
17588
+ Insert: {
17589
+ article_number?: string | null;
17590
+ created_at?: string;
17591
+ delivery_date?: string | null;
17592
+ id?: string;
17593
+ name?: string;
17594
+ note?: string | null;
17595
+ pot_size?: string | null;
17596
+ product_id?: string | null;
17597
+ product_type?: string;
17598
+ purchase_order_id: string;
17599
+ quantity?: number;
17600
+ supplier_id?: string | null;
17601
+ supplier_product_id?: string | null;
17602
+ unit_price_cents?: number;
17603
+ updated_at?: string;
17604
+ };
17605
+ Update: {
17606
+ article_number?: string | null;
17607
+ created_at?: string;
17608
+ delivery_date?: string | null;
17609
+ id?: string;
17610
+ name?: string;
17611
+ note?: string | null;
17612
+ pot_size?: string | null;
17613
+ product_id?: string | null;
17614
+ product_type?: string;
17615
+ purchase_order_id?: string;
16672
17616
  quantity?: number;
17617
+ supplier_id?: string | null;
17618
+ supplier_product_id?: string | null;
17619
+ unit_price_cents?: number;
17620
+ updated_at?: string;
16673
17621
  };
16674
17622
  Relationships: [{
16675
17623
  foreignKeyName: "purchase_order_items_product_id_fkey";
@@ -16689,43 +17637,70 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
16689
17637
  isOneToOne: false;
16690
17638
  referencedRelation: "purchase_orders";
16691
17639
  referencedColumns: ["id"];
17640
+ }, {
17641
+ foreignKeyName: "purchase_order_items_supplier_id_fkey";
17642
+ columns: ["supplier_id"];
17643
+ isOneToOne: false;
17644
+ referencedRelation: "suppliers";
17645
+ referencedColumns: ["id"];
17646
+ }, {
17647
+ foreignKeyName: "purchase_order_items_supplier_product_id_fkey";
17648
+ columns: ["supplier_product_id"];
17649
+ isOneToOne: false;
17650
+ referencedRelation: "supplier_products";
17651
+ referencedColumns: ["id"];
16692
17652
  }];
16693
17653
  };
16694
17654
  purchase_orders: {
16695
17655
  Row: {
17656
+ contact_person: string | null;
16696
17657
  created_at: string;
17658
+ created_by: string | null;
16697
17659
  expected_delivery_date: string;
16698
17660
  id: string;
16699
17661
  location_id: string | null;
16700
17662
  notes: string | null;
16701
17663
  order_number: string;
17664
+ reference: string | null;
17665
+ sent_at: string | null;
16702
17666
  status: string;
16703
17667
  supplier_id: string | null;
16704
17668
  supplier_name: string;
17669
+ total_cents: number;
16705
17670
  updated_at: string;
16706
17671
  };
16707
17672
  Insert: {
17673
+ contact_person?: string | null;
16708
17674
  created_at?: string;
16709
- expected_delivery_date: string;
17675
+ created_by?: string | null;
17676
+ expected_delivery_date?: string;
16710
17677
  id?: string;
16711
17678
  location_id?: string | null;
16712
17679
  notes?: string | null;
16713
- order_number: string;
17680
+ order_number?: string;
17681
+ reference?: string | null;
17682
+ sent_at?: string | null;
16714
17683
  status?: string;
16715
17684
  supplier_id?: string | null;
16716
17685
  supplier_name?: string;
17686
+ total_cents?: number;
16717
17687
  updated_at?: string;
16718
17688
  };
16719
17689
  Update: {
17690
+ contact_person?: string | null;
16720
17691
  created_at?: string;
17692
+ created_by?: string | null;
16721
17693
  expected_delivery_date?: string;
16722
17694
  id?: string;
16723
17695
  location_id?: string | null;
16724
17696
  notes?: string | null;
16725
17697
  order_number?: string;
17698
+ reference?: string | null;
17699
+ sent_at?: string | null;
16726
17700
  status?: string;
16727
17701
  supplier_id?: string | null;
16728
17702
  supplier_name?: string;
17703
+ total_cents?: number;
16729
17704
  updated_at?: string;
16730
17705
  };
16731
17706
  Relationships: [{
@@ -17612,15 +18587,160 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
17612
18587
  };
17613
18588
  Relationships: [];
17614
18589
  };
18590
+ supplier_contacts: {
18591
+ Row: {
18592
+ created_at: string;
18593
+ email: string | null;
18594
+ id: string;
18595
+ is_primary: boolean;
18596
+ name: string;
18597
+ phone: string | null;
18598
+ role: string | null;
18599
+ supplier_id: string;
18600
+ updated_at: string;
18601
+ };
18602
+ Insert: {
18603
+ created_at?: string;
18604
+ email?: string | null;
18605
+ id?: string;
18606
+ is_primary?: boolean;
18607
+ name: string;
18608
+ phone?: string | null;
18609
+ role?: string | null;
18610
+ supplier_id: string;
18611
+ updated_at?: string;
18612
+ };
18613
+ Update: {
18614
+ created_at?: string;
18615
+ email?: string | null;
18616
+ id?: string;
18617
+ is_primary?: boolean;
18618
+ name?: string;
18619
+ phone?: string | null;
18620
+ role?: string | null;
18621
+ supplier_id?: string;
18622
+ updated_at?: string;
18623
+ };
18624
+ Relationships: [{
18625
+ foreignKeyName: "supplier_contacts_supplier_id_fkey";
18626
+ columns: ["supplier_id"];
18627
+ isOneToOne: false;
18628
+ referencedRelation: "suppliers";
18629
+ referencedColumns: ["id"];
18630
+ }];
18631
+ };
18632
+ supplier_price_history: {
18633
+ Row: {
18634
+ created_at: string;
18635
+ id: string;
18636
+ new_price_cents: number;
18637
+ old_price_cents: number | null;
18638
+ price_list_id: string | null;
18639
+ supplier_id: string | null;
18640
+ supplier_product_id: string;
18641
+ };
18642
+ Insert: {
18643
+ created_at?: string;
18644
+ id?: string;
18645
+ new_price_cents: number;
18646
+ old_price_cents?: number | null;
18647
+ price_list_id?: string | null;
18648
+ supplier_id?: string | null;
18649
+ supplier_product_id: string;
18650
+ };
18651
+ Update: {
18652
+ created_at?: string;
18653
+ id?: string;
18654
+ new_price_cents?: number;
18655
+ old_price_cents?: number | null;
18656
+ price_list_id?: string | null;
18657
+ supplier_id?: string | null;
18658
+ supplier_product_id?: string;
18659
+ };
18660
+ Relationships: [{
18661
+ foreignKeyName: "supplier_price_history_price_list_id_fkey";
18662
+ columns: ["price_list_id"];
18663
+ isOneToOne: false;
18664
+ referencedRelation: "price_lists";
18665
+ referencedColumns: ["id"];
18666
+ }, {
18667
+ foreignKeyName: "supplier_price_history_supplier_product_id_fkey";
18668
+ columns: ["supplier_product_id"];
18669
+ isOneToOne: false;
18670
+ referencedRelation: "supplier_products";
18671
+ referencedColumns: ["id"];
18672
+ }];
18673
+ };
18674
+ supplier_price_list_mappings: {
18675
+ Row: {
18676
+ column_map: import("./types").Json;
18677
+ created_at: string;
18678
+ deactivate_missing: boolean;
18679
+ decimal_separator: string;
18680
+ expected_headers: string[];
18681
+ extract_pot_from_name: boolean;
18682
+ header_row: number;
18683
+ id: string;
18684
+ max_error_ratio: number;
18685
+ price_is_cents: boolean;
18686
+ sheet_name: string | null;
18687
+ supplier_id: string;
18688
+ updated_at: string;
18689
+ };
18690
+ Insert: {
18691
+ column_map?: import("./types").Json;
18692
+ created_at?: string;
18693
+ deactivate_missing?: boolean;
18694
+ decimal_separator?: string;
18695
+ expected_headers?: string[];
18696
+ extract_pot_from_name?: boolean;
18697
+ header_row?: number;
18698
+ id?: string;
18699
+ max_error_ratio?: number;
18700
+ price_is_cents?: boolean;
18701
+ sheet_name?: string | null;
18702
+ supplier_id: string;
18703
+ updated_at?: string;
18704
+ };
18705
+ Update: {
18706
+ column_map?: import("./types").Json;
18707
+ created_at?: string;
18708
+ deactivate_missing?: boolean;
18709
+ decimal_separator?: string;
18710
+ expected_headers?: string[];
18711
+ extract_pot_from_name?: boolean;
18712
+ header_row?: number;
18713
+ id?: string;
18714
+ max_error_ratio?: number;
18715
+ price_is_cents?: boolean;
18716
+ sheet_name?: string | null;
18717
+ supplier_id?: string;
18718
+ updated_at?: string;
18719
+ };
18720
+ Relationships: [{
18721
+ foreignKeyName: "supplier_price_list_mappings_supplier_id_fkey";
18722
+ columns: ["supplier_id"];
18723
+ isOneToOne: true;
18724
+ referencedRelation: "suppliers";
18725
+ referencedColumns: ["id"];
18726
+ }];
18727
+ };
17615
18728
  supplier_products: {
17616
18729
  Row: {
17617
18730
  article_number: string | null;
18731
+ available_quantity: number;
17618
18732
  created_at: string;
18733
+ height: string | null;
17619
18734
  id: string;
18735
+ is_active: boolean;
18736
+ min_order: number;
17620
18737
  name: string;
17621
18738
  notes: string | null;
18739
+ order_unit: number;
17622
18740
  pot_size: string | null;
17623
18741
  price: number | null;
18742
+ price_cents: number;
18743
+ quality: string | null;
17624
18744
  quantity: number | null;
17625
18745
  supplier_id: string;
17626
18746
  unit: string;
@@ -17628,12 +18748,19 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
17628
18748
  };
17629
18749
  Insert: {
17630
18750
  article_number?: string | null;
18751
+ available_quantity?: number;
17631
18752
  created_at?: string;
18753
+ height?: string | null;
17632
18754
  id?: string;
18755
+ is_active?: boolean;
18756
+ min_order?: number;
17633
18757
  name: string;
17634
18758
  notes?: string | null;
18759
+ order_unit?: number;
17635
18760
  pot_size?: string | null;
17636
18761
  price?: number | null;
18762
+ price_cents?: number;
18763
+ quality?: string | null;
17637
18764
  quantity?: number | null;
17638
18765
  supplier_id: string;
17639
18766
  unit?: string;
@@ -17641,12 +18768,19 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
17641
18768
  };
17642
18769
  Update: {
17643
18770
  article_number?: string | null;
18771
+ available_quantity?: number;
17644
18772
  created_at?: string;
18773
+ height?: string | null;
17645
18774
  id?: string;
18775
+ is_active?: boolean;
18776
+ min_order?: number;
17646
18777
  name?: string;
17647
18778
  notes?: string | null;
18779
+ order_unit?: number;
17648
18780
  pot_size?: string | null;
17649
18781
  price?: number | null;
18782
+ price_cents?: number;
18783
+ quality?: string | null;
17650
18784
  quantity?: number | null;
17651
18785
  supplier_id?: string;
17652
18786
  unit?: string;
@@ -17663,6 +18797,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
17663
18797
  suppliers: {
17664
18798
  Row: {
17665
18799
  address: string | null;
18800
+ category: string | null;
17666
18801
  column_mappings: import("./types").Json | null;
17667
18802
  contact_person: string | null;
17668
18803
  created_at: string;
@@ -17670,13 +18805,24 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
17670
18805
  email: string | null;
17671
18806
  id: string;
17672
18807
  imported_file_name: string | null;
18808
+ is_preferred: boolean;
18809
+ kvk_number: string | null;
18810
+ lead_time_days: number | null;
18811
+ min_order_amount_cents: number;
17673
18812
  name: string;
17674
18813
  notes: string | null;
18814
+ order_days: string[];
18815
+ order_email: string | null;
18816
+ payment_terms_days: number | null;
17675
18817
  phone: string | null;
18818
+ status: string;
17676
18819
  updated_at: string;
18820
+ vat_number: string | null;
18821
+ website: string | null;
17677
18822
  };
17678
18823
  Insert: {
17679
18824
  address?: string | null;
18825
+ category?: string | null;
17680
18826
  column_mappings?: import("./types").Json | null;
17681
18827
  contact_person?: string | null;
17682
18828
  created_at?: string;
@@ -17684,13 +18830,24 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
17684
18830
  email?: string | null;
17685
18831
  id?: string;
17686
18832
  imported_file_name?: string | null;
18833
+ is_preferred?: boolean;
18834
+ kvk_number?: string | null;
18835
+ lead_time_days?: number | null;
18836
+ min_order_amount_cents?: number;
17687
18837
  name: string;
17688
18838
  notes?: string | null;
18839
+ order_days?: string[];
18840
+ order_email?: string | null;
18841
+ payment_terms_days?: number | null;
17689
18842
  phone?: string | null;
18843
+ status?: string;
17690
18844
  updated_at?: string;
18845
+ vat_number?: string | null;
18846
+ website?: string | null;
17691
18847
  };
17692
18848
  Update: {
17693
18849
  address?: string | null;
18850
+ category?: string | null;
17694
18851
  column_mappings?: import("./types").Json | null;
17695
18852
  contact_person?: string | null;
17696
18853
  created_at?: string;
@@ -17698,10 +18855,20 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
17698
18855
  email?: string | null;
17699
18856
  id?: string;
17700
18857
  imported_file_name?: string | null;
18858
+ is_preferred?: boolean;
18859
+ kvk_number?: string | null;
18860
+ lead_time_days?: number | null;
18861
+ min_order_amount_cents?: number;
17701
18862
  name?: string;
17702
18863
  notes?: string | null;
18864
+ order_days?: string[];
18865
+ order_email?: string | null;
18866
+ payment_terms_days?: number | null;
17703
18867
  phone?: string | null;
18868
+ status?: string;
17704
18869
  updated_at?: string;
18870
+ vat_number?: string | null;
18871
+ website?: string | null;
17705
18872
  };
17706
18873
  Relationships: [];
17707
18874
  };
@@ -18703,11 +19870,13 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
18703
19870
  auto_invoice_trigger_statuses: string[];
18704
19871
  created_at: string;
18705
19872
  debtor_gl_account: string;
19873
+ default_article_code: string | null;
18706
19874
  default_credit_invoice_type: string | null;
18707
19875
  default_gl_account: string;
18708
19876
  default_invoice_type: string;
18709
19877
  default_payment_term_days: number;
18710
19878
  default_vat_code: string;
19879
+ email_purpose: string | null;
18711
19880
  home_country_code: string;
18712
19881
  invoice_enabled_ao: boolean;
18713
19882
  invoice_enabled_fo: boolean;
@@ -18729,11 +19898,13 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
18729
19898
  auto_invoice_trigger_statuses?: string[];
18730
19899
  created_at?: string;
18731
19900
  debtor_gl_account?: string;
19901
+ default_article_code?: string | null;
18732
19902
  default_credit_invoice_type?: string | null;
18733
19903
  default_gl_account?: string;
18734
19904
  default_invoice_type?: string;
18735
19905
  default_payment_term_days?: number;
18736
19906
  default_vat_code?: string;
19907
+ email_purpose?: string | null;
18737
19908
  home_country_code?: string;
18738
19909
  invoice_enabled_ao?: boolean;
18739
19910
  invoice_enabled_fo?: boolean;
@@ -18755,11 +19926,13 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
18755
19926
  auto_invoice_trigger_statuses?: string[];
18756
19927
  created_at?: string;
18757
19928
  debtor_gl_account?: string;
19929
+ default_article_code?: string | null;
18758
19930
  default_credit_invoice_type?: string | null;
18759
19931
  default_gl_account?: string;
18760
19932
  default_invoice_type?: string;
18761
19933
  default_payment_term_days?: number;
18762
19934
  default_vat_code?: string;
19935
+ email_purpose?: string | null;
18763
19936
  home_country_code?: string;
18764
19937
  invoice_enabled_ao?: boolean;
18765
19938
  invoice_enabled_fo?: boolean;
@@ -20021,6 +21194,42 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
20021
21194
  referencedColumns: ["id"];
20022
21195
  }];
20023
21196
  };
21197
+ werkbon_email_state: {
21198
+ Row: {
21199
+ created_at: string;
21200
+ event_id: string;
21201
+ id: string;
21202
+ is_archived: boolean;
21203
+ is_read: boolean;
21204
+ updated_at: string;
21205
+ werkbon_id: string | null;
21206
+ };
21207
+ Insert: {
21208
+ created_at?: string;
21209
+ event_id: string;
21210
+ id?: string;
21211
+ is_archived?: boolean;
21212
+ is_read?: boolean;
21213
+ updated_at?: string;
21214
+ werkbon_id?: string | null;
21215
+ };
21216
+ Update: {
21217
+ created_at?: string;
21218
+ event_id?: string;
21219
+ id?: string;
21220
+ is_archived?: boolean;
21221
+ is_read?: boolean;
21222
+ updated_at?: string;
21223
+ werkbon_id?: string | null;
21224
+ };
21225
+ Relationships: [{
21226
+ foreignKeyName: "werkbon_email_state_event_id_fkey";
21227
+ columns: ["event_id"];
21228
+ isOneToOne: true;
21229
+ referencedRelation: "email_auth_events";
21230
+ referencedColumns: ["id"];
21231
+ }];
21232
+ };
20024
21233
  werkbon_export_runs: {
20025
21234
  Row: {
20026
21235
  created_at: string;
@@ -20174,32 +21383,173 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
20174
21383
  };
20175
21384
  Relationships: [];
20176
21385
  };
20177
- werkbon_materials: {
21386
+ werkbon_mail_ai_settings: {
20178
21387
  Row: {
20179
- article_number: string | null;
20180
21388
  created_at: string;
20181
- created_by: string | null;
20182
- description: string;
20183
- id: string;
20184
- quantity: number;
20185
- source: string;
20186
- unit: string;
20187
- unit_price_cents: number;
21389
+ id: boolean;
21390
+ required_fields: string[];
21391
+ system_prompt: string;
20188
21392
  updated_at: string;
20189
- werkbon_id: string;
21393
+ updated_by: string | null;
20190
21394
  };
20191
21395
  Insert: {
20192
- article_number?: string | null;
20193
21396
  created_at?: string;
20194
- created_by?: string | null;
20195
- description: string;
20196
- id?: string;
20197
- quantity?: number;
20198
- source?: string;
20199
- unit?: string;
20200
- unit_price_cents?: number;
20201
- updated_at?: string;
20202
- werkbon_id: string;
21397
+ id?: boolean;
21398
+ required_fields?: string[];
21399
+ system_prompt?: string;
21400
+ updated_at?: string;
21401
+ updated_by?: string | null;
21402
+ };
21403
+ Update: {
21404
+ created_at?: string;
21405
+ id?: boolean;
21406
+ required_fields?: string[];
21407
+ system_prompt?: string;
21408
+ updated_at?: string;
21409
+ updated_by?: string | null;
21410
+ };
21411
+ Relationships: [];
21412
+ };
21413
+ werkbon_mail_bodies: {
21414
+ Row: {
21415
+ created_at: string;
21416
+ event_id: string;
21417
+ fetch_error: string | null;
21418
+ fetched_at: string | null;
21419
+ html: string | null;
21420
+ updated_at: string;
21421
+ };
21422
+ Insert: {
21423
+ created_at?: string;
21424
+ event_id: string;
21425
+ fetch_error?: string | null;
21426
+ fetched_at?: string | null;
21427
+ html?: string | null;
21428
+ updated_at?: string;
21429
+ };
21430
+ Update: {
21431
+ created_at?: string;
21432
+ event_id?: string;
21433
+ fetch_error?: string | null;
21434
+ fetched_at?: string | null;
21435
+ html?: string | null;
21436
+ updated_at?: string;
21437
+ };
21438
+ Relationships: [];
21439
+ };
21440
+ werkbon_mail_inline_assets: {
21441
+ Row: {
21442
+ content_id: string | null;
21443
+ created_at: string;
21444
+ event_id: string;
21445
+ filename: string | null;
21446
+ id: string;
21447
+ is_inline: boolean;
21448
+ mime_type: string | null;
21449
+ size_bytes: number | null;
21450
+ storage_path: string;
21451
+ };
21452
+ Insert: {
21453
+ content_id?: string | null;
21454
+ created_at?: string;
21455
+ event_id: string;
21456
+ filename?: string | null;
21457
+ id?: string;
21458
+ is_inline?: boolean;
21459
+ mime_type?: string | null;
21460
+ size_bytes?: number | null;
21461
+ storage_path: string;
21462
+ };
21463
+ Update: {
21464
+ content_id?: string | null;
21465
+ created_at?: string;
21466
+ event_id?: string;
21467
+ filename?: string | null;
21468
+ id?: string;
21469
+ is_inline?: boolean;
21470
+ mime_type?: string | null;
21471
+ size_bytes?: number | null;
21472
+ storage_path?: string;
21473
+ };
21474
+ Relationships: [];
21475
+ };
21476
+ werkbon_mail_settings: {
21477
+ Row: {
21478
+ connection_id: string | null;
21479
+ connection_ids: string[];
21480
+ created_at: string;
21481
+ id: boolean;
21482
+ purposes: string[];
21483
+ source: string;
21484
+ updated_at: string;
21485
+ };
21486
+ Insert: {
21487
+ connection_id?: string | null;
21488
+ connection_ids?: string[];
21489
+ created_at?: string;
21490
+ id?: boolean;
21491
+ purposes?: string[];
21492
+ source?: string;
21493
+ updated_at?: string;
21494
+ };
21495
+ Update: {
21496
+ connection_id?: string | null;
21497
+ connection_ids?: string[];
21498
+ created_at?: string;
21499
+ id?: boolean;
21500
+ purposes?: string[];
21501
+ source?: string;
21502
+ updated_at?: string;
21503
+ };
21504
+ Relationships: [];
21505
+ };
21506
+ werkbon_mail_user_settings: {
21507
+ Row: {
21508
+ created_at: string;
21509
+ email_purpose: string | null;
21510
+ updated_at: string;
21511
+ user_id: string;
21512
+ };
21513
+ Insert: {
21514
+ created_at?: string;
21515
+ email_purpose?: string | null;
21516
+ updated_at?: string;
21517
+ user_id: string;
21518
+ };
21519
+ Update: {
21520
+ created_at?: string;
21521
+ email_purpose?: string | null;
21522
+ updated_at?: string;
21523
+ user_id?: string;
21524
+ };
21525
+ Relationships: [];
21526
+ };
21527
+ werkbon_materials: {
21528
+ Row: {
21529
+ article_number: string | null;
21530
+ created_at: string;
21531
+ created_by: string | null;
21532
+ description: string;
21533
+ id: string;
21534
+ quantity: number;
21535
+ source: string;
21536
+ unit: string;
21537
+ unit_price_cents: number;
21538
+ updated_at: string;
21539
+ werkbon_id: string;
21540
+ };
21541
+ Insert: {
21542
+ article_number?: string | null;
21543
+ created_at?: string;
21544
+ created_by?: string | null;
21545
+ description: string;
21546
+ id?: string;
21547
+ quantity?: number;
21548
+ source?: string;
21549
+ unit?: string;
21550
+ unit_price_cents?: number;
21551
+ updated_at?: string;
21552
+ werkbon_id: string;
20203
21553
  };
20204
21554
  Update: {
20205
21555
  article_number?: string | null;
@@ -20513,6 +21863,156 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
20513
21863
  referencedColumns: ["id"];
20514
21864
  }];
20515
21865
  };
21866
+ werkbon_proposal_lines: {
21867
+ Row: {
21868
+ article_number: string | null;
21869
+ created_at: string;
21870
+ description: string | null;
21871
+ id: string;
21872
+ line_type: string;
21873
+ note: string | null;
21874
+ package_id: string | null;
21875
+ proposal_id: string;
21876
+ quantity: number | null;
21877
+ sort_order: number;
21878
+ unit: string | null;
21879
+ updated_at: string;
21880
+ };
21881
+ Insert: {
21882
+ article_number?: string | null;
21883
+ created_at?: string;
21884
+ description?: string | null;
21885
+ id?: string;
21886
+ line_type?: string;
21887
+ note?: string | null;
21888
+ package_id?: string | null;
21889
+ proposal_id: string;
21890
+ quantity?: number | null;
21891
+ sort_order?: number;
21892
+ unit?: string | null;
21893
+ updated_at?: string;
21894
+ };
21895
+ Update: {
21896
+ article_number?: string | null;
21897
+ created_at?: string;
21898
+ description?: string | null;
21899
+ id?: string;
21900
+ line_type?: string;
21901
+ note?: string | null;
21902
+ package_id?: string | null;
21903
+ proposal_id?: string;
21904
+ quantity?: number | null;
21905
+ sort_order?: number;
21906
+ unit?: string | null;
21907
+ updated_at?: string;
21908
+ };
21909
+ Relationships: [{
21910
+ foreignKeyName: "werkbon_proposal_lines_proposal_id_fkey";
21911
+ columns: ["proposal_id"];
21912
+ isOneToOne: false;
21913
+ referencedRelation: "werkbon_proposals";
21914
+ referencedColumns: ["id"];
21915
+ }];
21916
+ };
21917
+ werkbon_proposals: {
21918
+ Row: {
21919
+ analysed: boolean;
21920
+ budget_mandate_cents: number;
21921
+ complaint_description: string | null;
21922
+ contact_id: string | null;
21923
+ created_at: string;
21924
+ created_werkbon_id: string | null;
21925
+ customer_id: string | null;
21926
+ deadline_date: string | null;
21927
+ estimated_days: number | null;
21928
+ estimated_duration_minutes: number | null;
21929
+ event_id: string;
21930
+ external_id: string | null;
21931
+ externe_referentie: string | null;
21932
+ from_email: string | null;
21933
+ from_name: string | null;
21934
+ id: string;
21935
+ internal_notes: string | null;
21936
+ parsed_payload: import("./types").Json;
21937
+ received_at: string | null;
21938
+ reviewed_at: string | null;
21939
+ reviewed_by: string | null;
21940
+ room_number: string | null;
21941
+ scheduled_end_time: string | null;
21942
+ scheduled_start_time: string | null;
21943
+ status: string;
21944
+ subject: string | null;
21945
+ technician_id: string | null;
21946
+ technician_task_description: string | null;
21947
+ updated_at: string;
21948
+ work_address: string | null;
21949
+ };
21950
+ Insert: {
21951
+ analysed?: boolean;
21952
+ budget_mandate_cents?: number;
21953
+ complaint_description?: string | null;
21954
+ contact_id?: string | null;
21955
+ created_at?: string;
21956
+ created_werkbon_id?: string | null;
21957
+ customer_id?: string | null;
21958
+ deadline_date?: string | null;
21959
+ estimated_days?: number | null;
21960
+ estimated_duration_minutes?: number | null;
21961
+ event_id: string;
21962
+ external_id?: string | null;
21963
+ externe_referentie?: string | null;
21964
+ from_email?: string | null;
21965
+ from_name?: string | null;
21966
+ id?: string;
21967
+ internal_notes?: string | null;
21968
+ parsed_payload?: import("./types").Json;
21969
+ received_at?: string | null;
21970
+ reviewed_at?: string | null;
21971
+ reviewed_by?: string | null;
21972
+ room_number?: string | null;
21973
+ scheduled_end_time?: string | null;
21974
+ scheduled_start_time?: string | null;
21975
+ status?: string;
21976
+ subject?: string | null;
21977
+ technician_id?: string | null;
21978
+ technician_task_description?: string | null;
21979
+ updated_at?: string;
21980
+ work_address?: string | null;
21981
+ };
21982
+ Update: {
21983
+ analysed?: boolean;
21984
+ budget_mandate_cents?: number;
21985
+ complaint_description?: string | null;
21986
+ contact_id?: string | null;
21987
+ created_at?: string;
21988
+ created_werkbon_id?: string | null;
21989
+ customer_id?: string | null;
21990
+ deadline_date?: string | null;
21991
+ estimated_days?: number | null;
21992
+ estimated_duration_minutes?: number | null;
21993
+ event_id?: string;
21994
+ external_id?: string | null;
21995
+ externe_referentie?: string | null;
21996
+ from_email?: string | null;
21997
+ from_name?: string | null;
21998
+ id?: string;
21999
+ internal_notes?: string | null;
22000
+ parsed_payload?: import("./types").Json;
22001
+ received_at?: string | null;
22002
+ reviewed_at?: string | null;
22003
+ reviewed_by?: string | null;
22004
+ room_number?: string | null;
22005
+ scheduled_end_time?: string | null;
22006
+ scheduled_start_time?: string | null;
22007
+ status?: string;
22008
+ subject?: string | null;
22009
+ technician_id?: string | null;
22010
+ technician_task_description?: string | null;
22011
+ updated_at?: string;
22012
+ work_address?: string | null;
22013
+ };
22014
+ Relationships: [];
22015
+ };
20516
22016
  werkbon_time_logs: {
20517
22017
  Row: {
20518
22018
  activity: string;
@@ -20566,6 +22066,9 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
20566
22066
  created_at: string;
20567
22067
  created_by: string | null;
20568
22068
  customer_id: string | null;
22069
+ deadline_date: string | null;
22070
+ estimated_days: number | null;
22071
+ estimated_duration_minutes: number | null;
20569
22072
  externe_referentie: string | null;
20570
22073
  extra_costs_cents: number;
20571
22074
  first_time_fix: boolean | null;
@@ -20596,6 +22099,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
20596
22099
  updated_at: string;
20597
22100
  version: number;
20598
22101
  work_address: string | null;
22102
+ workday_hours: number | null;
20599
22103
  };
20600
22104
  Insert: {
20601
22105
  assigned_user_id?: string | null;
@@ -20604,6 +22108,9 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
20604
22108
  created_at?: string;
20605
22109
  created_by?: string | null;
20606
22110
  customer_id?: string | null;
22111
+ deadline_date?: string | null;
22112
+ estimated_days?: number | null;
22113
+ estimated_duration_minutes?: number | null;
20607
22114
  externe_referentie?: string | null;
20608
22115
  extra_costs_cents?: number;
20609
22116
  first_time_fix?: boolean | null;
@@ -20634,6 +22141,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
20634
22141
  updated_at?: string;
20635
22142
  version?: number;
20636
22143
  work_address?: string | null;
22144
+ workday_hours?: number | null;
20637
22145
  };
20638
22146
  Update: {
20639
22147
  assigned_user_id?: string | null;
@@ -20642,6 +22150,9 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
20642
22150
  created_at?: string;
20643
22151
  created_by?: string | null;
20644
22152
  customer_id?: string | null;
22153
+ deadline_date?: string | null;
22154
+ estimated_days?: number | null;
22155
+ estimated_duration_minutes?: number | null;
20645
22156
  externe_referentie?: string | null;
20646
22157
  extra_costs_cents?: number;
20647
22158
  first_time_fix?: boolean | null;
@@ -20672,6 +22183,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
20672
22183
  updated_at?: string;
20673
22184
  version?: number;
20674
22185
  work_address?: string | null;
22186
+ workday_hours?: number | null;
20675
22187
  };
20676
22188
  Relationships: [{
20677
22189
  foreignKeyName: "werkbonnen_parent_werkbon_id_fkey";
@@ -21876,6 +23388,10 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
21876
23388
  };
21877
23389
  Returns: string;
21878
23390
  };
23391
+ backfill_cart_numbers_day_seq: {
23392
+ Args: never;
23393
+ Returns: number;
23394
+ };
21879
23395
  backfill_open_order_reservations: {
21880
23396
  Args: never;
21881
23397
  Returns: {
@@ -22362,8 +23878,6 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
22362
23878
  cart_index: number;
22363
23879
  cart_number: string;
22364
23880
  cart_number_id: string;
22365
- cart_seq: number;
22366
- cart_total: number;
22367
23881
  order_id: string;
22368
23882
  order_number: string;
22369
23883
  order_source: string;
@@ -22884,6 +24398,27 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
22884
24398
  Args: never;
22885
24399
  Returns: string;
22886
24400
  };
24401
+ handover_afspraak_intrekken: {
24402
+ Args: {
24403
+ _sleutel: string;
24404
+ };
24405
+ Returns: boolean;
24406
+ };
24407
+ handover_afspraak_zetten: {
24408
+ Args: {
24409
+ _besluit: string;
24410
+ _item: string;
24411
+ _modules: string[];
24412
+ _sleutel: string;
24413
+ _soort: string;
24414
+ _versie_vingerafdruk: string;
24415
+ };
24416
+ Returns: boolean;
24417
+ };
24418
+ handover_afspraken: {
24419
+ Args: never;
24420
+ Returns: import("./types").Json;
24421
+ };
22887
24422
  handover_archief_lijst: {
22888
24423
  Args: never;
22889
24424
  Returns: import("./types").Json;
@@ -22901,6 +24436,12 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
22901
24436
  };
22902
24437
  Returns: boolean;
22903
24438
  };
24439
+ handover_check_afronden_na_scan: {
24440
+ Args: {
24441
+ _module_ids: string[];
24442
+ };
24443
+ Returns: number;
24444
+ };
22904
24445
  handover_check_markeren: {
22905
24446
  Args: {
22906
24447
  _module_ids: string[];
@@ -22944,6 +24485,14 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
22944
24485
  };
22945
24486
  Returns: boolean;
22946
24487
  };
24488
+ handover_md_bron_zetten: {
24489
+ Args: {
24490
+ _md: boolean;
24491
+ _module_id: string;
24492
+ _pad?: string;
24493
+ };
24494
+ Returns: boolean;
24495
+ };
22947
24496
  handover_module_meta_zetten: {
22948
24497
  Args: {
22949
24498
  _module_id: string;
@@ -22952,6 +24501,24 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
22952
24501
  };
22953
24502
  Returns: boolean;
22954
24503
  };
24504
+ handover_naam_zetten: {
24505
+ Args: {
24506
+ _bron_repo?: string;
24507
+ _module_id: string;
24508
+ _weergavenaam?: string;
24509
+ };
24510
+ Returns: boolean;
24511
+ };
24512
+ handover_namen: {
24513
+ Args: never;
24514
+ Returns: import("./types").Json;
24515
+ };
24516
+ handover_nieuw_gezien: {
24517
+ Args: {
24518
+ _module_id: string;
24519
+ };
24520
+ Returns: boolean;
24521
+ };
22955
24522
  handover_norm_naam: {
22956
24523
  Args: {
22957
24524
  _naam: string;
@@ -22988,6 +24555,24 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
22988
24555
  _versie_label?: string;
22989
24556
  };
22990
24557
  Returns: import("./types").Json;
24558
+ } | {
24559
+ Args: {
24560
+ _bekende_risicos?: string[];
24561
+ _bezit_tabellen?: string[];
24562
+ _bron_soort?: string;
24563
+ _commit?: string;
24564
+ _contractfuncties?: string[];
24565
+ _inhoud_md: string;
24566
+ _laatst_bevestigd_op?: string;
24567
+ _module_id: string;
24568
+ _module_titel: string;
24569
+ _ontbrekende_contracten?: string[];
24570
+ _pad?: string;
24571
+ _repo?: string;
24572
+ _samenvatting?: string;
24573
+ _versie_label?: string;
24574
+ };
24575
+ Returns: import("./types").Json;
22991
24576
  };
22992
24577
  handover_publish_via_token: {
22993
24578
  Args: {
@@ -23085,6 +24670,27 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
23085
24670
  Args: never;
23086
24671
  Returns: boolean;
23087
24672
  };
24673
+ inkoop_apply_price_list: {
24674
+ Args: {
24675
+ _price_list_id: string;
24676
+ _rows: import("./types").Json;
24677
+ };
24678
+ Returns: import("./types").Json;
24679
+ };
24680
+ inkoop_next_order_number: {
24681
+ Args: never;
24682
+ Returns: string;
24683
+ };
24684
+ inkoop_send_order: {
24685
+ Args: {
24686
+ _order_id: string;
24687
+ };
24688
+ Returns: {
24689
+ outbox_id: string;
24690
+ supplier_name: string;
24691
+ to_address: string;
24692
+ }[];
24693
+ };
23088
24694
  instructie_get: {
23089
24695
  Args: {
23090
24696
  _sleutel: string;
@@ -23144,6 +24750,13 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
23144
24750
  };
23145
24751
  Returns: import("./types").Json;
23146
24752
  };
24753
+ invoice_source_lines: {
24754
+ Args: {
24755
+ _source_id: string;
24756
+ _source_type: string;
24757
+ };
24758
+ Returns: import("./types").Json;
24759
+ };
23147
24760
  is_authenticated: {
23148
24761
  Args: never;
23149
24762
  Returns: boolean;
@@ -23714,6 +25327,12 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
23714
25327
  Args: never;
23715
25328
  Returns: import("./types").Json;
23716
25329
  };
25330
+ logistics_cleanup_tasks: {
25331
+ Args: {
25332
+ p_limit?: number;
25333
+ };
25334
+ Returns: import("./types").Json;
25335
+ };
23717
25336
  logistics_complete_task: {
23718
25337
  Args: {
23719
25338
  p_result?: import("./types").Json;
@@ -24210,6 +25829,16 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
24210
25829
  };
24211
25830
  Returns: number;
24212
25831
  };
25832
+ logistics_merge_floriday_lines: {
25833
+ Args: {
25834
+ p_order_id: string;
25835
+ };
25836
+ Returns: string;
25837
+ };
25838
+ logistics_merge_lines_enabled: {
25839
+ Args: never;
25840
+ Returns: boolean;
25841
+ };
24213
25842
  logistics_merge_partial_carts: {
24214
25843
  Args: {
24215
25844
  p_limit?: number;
@@ -24246,12 +25875,46 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
24246
25875
  Args: never;
24247
25876
  Returns: string;
24248
25877
  };
25878
+ logistics_order_cart_approval: {
25879
+ Args: {
25880
+ _order_ref: string;
25881
+ };
25882
+ Returns: {
25883
+ approved: number;
25884
+ total: number;
25885
+ }[];
25886
+ };
24249
25887
  logistics_order_cart_count: {
24250
25888
  Args: {
24251
25889
  p_order_ref: string;
24252
25890
  };
24253
25891
  Returns: number;
24254
25892
  };
25893
+ logistics_order_changed: {
25894
+ Args: {
25895
+ p_order_id: string;
25896
+ p_reason?: string;
25897
+ };
25898
+ Returns: undefined;
25899
+ };
25900
+ logistics_order_documents_ready: {
25901
+ Args: {
25902
+ p_order_ref: string;
25903
+ };
25904
+ Returns: import("./types").Json;
25905
+ };
25906
+ logistics_order_documents_ready_bool: {
25907
+ Args: {
25908
+ p_order_ref: string;
25909
+ };
25910
+ Returns: boolean;
25911
+ };
25912
+ logistics_order_frozen: {
25913
+ Args: {
25914
+ p_order_id: string;
25915
+ };
25916
+ Returns: boolean;
25917
+ };
24255
25918
  logistics_order_handled: {
24256
25919
  Args: {
24257
25920
  p_order_uuid: string;
@@ -24265,6 +25928,18 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
24265
25928
  };
24266
25929
  Returns: boolean;
24267
25930
  };
25931
+ logistics_order_merge_key: {
25932
+ Args: {
25933
+ p_group_key: string;
25934
+ };
25935
+ Returns: string;
25936
+ };
25937
+ logistics_order_mergeable: {
25938
+ Args: {
25939
+ p_order_id: string;
25940
+ };
25941
+ Returns: boolean;
25942
+ };
24268
25943
  logistics_order_overview: {
24269
25944
  Args: {
24270
25945
  p_from?: string;
@@ -24389,6 +26064,12 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
24389
26064
  order_id: string;
24390
26065
  }[];
24391
26066
  };
26067
+ logistics_plan_defer: {
26068
+ Args: {
26069
+ p_id: string;
26070
+ };
26071
+ Returns: undefined;
26072
+ };
24392
26073
  logistics_plan_enqueue: {
24393
26074
  Args: {
24394
26075
  p_order_id: string;
@@ -24402,6 +26083,18 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
24402
26083
  };
24403
26084
  Returns: boolean;
24404
26085
  };
26086
+ logistics_plan_error_class: {
26087
+ Args: {
26088
+ p_error: string;
26089
+ };
26090
+ Returns: string;
26091
+ };
26092
+ logistics_plan_error_text: {
26093
+ Args: {
26094
+ p_error: string;
26095
+ };
26096
+ Returns: string;
26097
+ };
24405
26098
  logistics_plan_finish: {
24406
26099
  Args: {
24407
26100
  p_error?: string;
@@ -24430,6 +26123,21 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
24430
26123
  Args: never;
24431
26124
  Returns: undefined;
24432
26125
  };
26126
+ logistics_plan_lock_acquire: {
26127
+ Args: {
26128
+ _key: string;
26129
+ _owner?: string;
26130
+ _ttl_seconds?: number;
26131
+ };
26132
+ Returns: boolean;
26133
+ };
26134
+ logistics_plan_lock_release: {
26135
+ Args: {
26136
+ _key: string;
26137
+ _owner?: string;
26138
+ };
26139
+ Returns: undefined;
26140
+ };
24433
26141
  logistics_plan_progress: {
24434
26142
  Args: {
24435
26143
  p_refs: string[];
@@ -24444,14 +26152,51 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
24444
26152
  unit_ref: string;
24445
26153
  }[];
24446
26154
  };
26155
+ logistics_plan_progress_pct: {
26156
+ Args: {
26157
+ p_order_id: string;
26158
+ };
26159
+ Returns: number;
26160
+ };
24447
26161
  logistics_plan_prune: {
24448
26162
  Args: never;
24449
26163
  Returns: number;
24450
26164
  };
26165
+ logistics_plan_queue_list: {
26166
+ Args: {
26167
+ p_limit?: number;
26168
+ };
26169
+ Returns: {
26170
+ attempts: number;
26171
+ claimed_at: string;
26172
+ customer_name: string;
26173
+ enqueued_at: string;
26174
+ error_class: string;
26175
+ error_raw: string;
26176
+ error_text: string;
26177
+ id: string;
26178
+ max_attempts: number;
26179
+ next_attempt_at: string;
26180
+ order_created_at: string;
26181
+ order_id: string;
26182
+ order_number: string;
26183
+ progress_pct: number;
26184
+ reason: string;
26185
+ stand: string;
26186
+ status: string;
26187
+ updated_at: string;
26188
+ }[];
26189
+ };
24451
26190
  logistics_plan_release_stale: {
24452
26191
  Args: never;
24453
26192
  Returns: number;
24454
26193
  };
26194
+ logistics_plan_reset_queue: {
26195
+ Args: {
26196
+ p_scope?: string;
26197
+ };
26198
+ Returns: number;
26199
+ };
24455
26200
  logistics_plan_retry: {
24456
26201
  Args: {
24457
26202
  p_order_ids: string[];
@@ -24471,6 +26216,10 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
24471
26216
  };
24472
26217
  Returns: import("./types").Json;
24473
26218
  };
26219
+ logistics_plan_timeout_running: {
26220
+ Args: never;
26221
+ Returns: number;
26222
+ };
24474
26223
  logistics_prepare_pick_documents: {
24475
26224
  Args: {
24476
26225
  p_limit?: number;
@@ -24547,6 +26296,12 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
24547
26296
  };
24548
26297
  Returns: import("./types").Json;
24549
26298
  };
26299
+ logistics_replan_order_journey: {
26300
+ Args: {
26301
+ p_order_ref: string;
26302
+ };
26303
+ Returns: import("./types").Json;
26304
+ };
24550
26305
  logistics_report_delay: {
24551
26306
  Args: {
24552
26307
  p_expected_date?: string;
@@ -24668,6 +26423,11 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
24668
26423
  logistics_schedule_tasks: {
24669
26424
  Args: never;
24670
26425
  Returns: number;
26426
+ } | {
26427
+ Args: {
26428
+ p_order_ref?: string;
26429
+ };
26430
+ Returns: number;
24671
26431
  };
24672
26432
  logistics_set_order_priority: {
24673
26433
  Args: {
@@ -24691,6 +26451,12 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
24691
26451
  };
24692
26452
  Returns: string;
24693
26453
  };
26454
+ logistics_shipping_note_diagnose: {
26455
+ Args: {
26456
+ p_order_number: string;
26457
+ };
26458
+ Returns: import("./types").Json;
26459
+ };
24694
26460
  logistics_shipping_note_follows_slip: {
24695
26461
  Args: never;
24696
26462
  Returns: boolean;
@@ -24815,6 +26581,10 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
24815
26581
  };
24816
26582
  Returns: number;
24817
26583
  };
26584
+ logistics_task_retention_days: {
26585
+ Args: never;
26586
+ Returns: number;
26587
+ };
24818
26588
  logistics_tick_ping: {
24819
26589
  Args: never;
24820
26590
  Returns: string;
@@ -24825,6 +26595,171 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
24825
26595
  name: string;
24826
26596
  }[];
24827
26597
  };
26598
+ logistics_trace: {
26599
+ Args: {
26600
+ p: import("./types").Json;
26601
+ };
26602
+ Returns: string;
26603
+ };
26604
+ logistics_trace_all_orders: {
26605
+ Args: {
26606
+ p_limit?: number;
26607
+ p_search?: string;
26608
+ };
26609
+ Returns: import("./types").Json;
26610
+ };
26611
+ logistics_trace_archive_order: {
26612
+ Args: {
26613
+ p_order_ref: string;
26614
+ p_reason: string;
26615
+ };
26616
+ Returns: number;
26617
+ };
26618
+ logistics_trace_batch: {
26619
+ Args: {
26620
+ p: import("./types").Json;
26621
+ };
26622
+ Returns: number;
26623
+ };
26624
+ logistics_trace_derive: {
26625
+ Args: {
26626
+ p: import("./types").Json;
26627
+ };
26628
+ Returns: number;
26629
+ };
26630
+ logistics_trace_node: {
26631
+ Args: {
26632
+ p_op?: string;
26633
+ p_status?: string;
26634
+ p_table: string;
26635
+ };
26636
+ Returns: string;
26637
+ };
26638
+ logistics_trace_order_journey_start: {
26639
+ Args: {
26640
+ p_order_id: string;
26641
+ p_reason?: string;
26642
+ };
26643
+ Returns: string;
26644
+ };
26645
+ logistics_trace_order_origin: {
26646
+ Args: {
26647
+ p_order_id: string;
26648
+ };
26649
+ Returns: undefined;
26650
+ };
26651
+ logistics_trace_order_overview: {
26652
+ Args: {
26653
+ p_error_class?: string;
26654
+ p_limit?: number;
26655
+ p_search?: string;
26656
+ p_since?: string;
26657
+ p_source?: string;
26658
+ p_state?: string;
26659
+ p_step?: string;
26660
+ };
26661
+ Returns: import("./types").Json;
26662
+ };
26663
+ logistics_trace_order_state: {
26664
+ Args: {
26665
+ p_order_ref: string;
26666
+ };
26667
+ Returns: import("./types").Json;
26668
+ };
26669
+ logistics_trace_order_step: {
26670
+ Args: {
26671
+ p_class?: string;
26672
+ p_decision?: string;
26673
+ p_error?: string;
26674
+ p_next_step?: string;
26675
+ p_node: string;
26676
+ p_order_id: string;
26677
+ p_reason?: string;
26678
+ p_status: string;
26679
+ p_step: string;
26680
+ };
26681
+ Returns: undefined;
26682
+ };
26683
+ logistics_trace_orders: {
26684
+ Args: {
26685
+ p_limit?: number;
26686
+ p_search?: string;
26687
+ p_since?: string;
26688
+ p_status?: string;
26689
+ };
26690
+ Returns: import("./types").Json;
26691
+ };
26692
+ logistics_trace_pick_state: {
26693
+ Args: {
26694
+ p_order_number: string;
26695
+ };
26696
+ Returns: undefined;
26697
+ };
26698
+ logistics_trace_progress: {
26699
+ Args: {
26700
+ p_limit?: number;
26701
+ };
26702
+ Returns: import("./types").Json;
26703
+ };
26704
+ logistics_trace_progress_order: {
26705
+ Args: {
26706
+ p_order_ref: string;
26707
+ };
26708
+ Returns: import("./types").Json;
26709
+ };
26710
+ logistics_trace_redact: {
26711
+ Args: {
26712
+ p: import("./types").Json;
26713
+ };
26714
+ Returns: import("./types").Json;
26715
+ };
26716
+ logistics_trace_source_node: {
26717
+ Args: {
26718
+ p_source: string;
26719
+ };
26720
+ Returns: string;
26721
+ };
26722
+ logistics_trace_step_once: {
26723
+ Args: {
26724
+ p_decision: string;
26725
+ p_next_step?: string;
26726
+ p_node: string;
26727
+ p_order_id: string;
26728
+ p_reason: string;
26729
+ p_status: string;
26730
+ p_step: string;
26731
+ };
26732
+ Returns: undefined;
26733
+ };
26734
+ logistics_trace_stock_check: {
26735
+ Args: {
26736
+ p_order_id: string;
26737
+ };
26738
+ Returns: undefined;
26739
+ };
26740
+ logistics_trace_timeline: {
26741
+ Args: {
26742
+ p_limit?: number;
26743
+ p_order_ref: string;
26744
+ };
26745
+ Returns: import("./types").Json;
26746
+ };
26747
+ logistics_trace_version_events: {
26748
+ Args: {
26749
+ p_from?: string;
26750
+ p_limit?: number;
26751
+ p_order_ref: string;
26752
+ p_to?: string;
26753
+ p_version_id: string;
26754
+ };
26755
+ Returns: import("./types").Json;
26756
+ };
26757
+ logistics_trace_versions: {
26758
+ Args: {
26759
+ p_order_ref: string;
26760
+ };
26761
+ Returns: import("./types").Json;
26762
+ };
24828
26763
  logistics_upsert_task: {
24829
26764
  Args: {
24830
26765
  p_buffer_ref: string;
@@ -25866,6 +27801,18 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
25866
27801
  };
25867
27802
  Returns: undefined;
25868
27803
  };
27804
+ prune_floriday_api_log: {
27805
+ Args: never;
27806
+ Returns: number;
27807
+ };
27808
+ quote_ack_work_order: {
27809
+ Args: {
27810
+ _queue_id: string;
27811
+ _werkbon_id: string;
27812
+ _werkbon_nummer?: string;
27813
+ };
27814
+ Returns: boolean;
27815
+ };
25869
27816
  quote_create_from_source: {
25870
27817
  Args: {
25871
27818
  _payload?: import("./types").Json;
@@ -25874,6 +27821,13 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
25874
27821
  };
25875
27822
  Returns: string;
25876
27823
  };
27824
+ quote_fail_work_order: {
27825
+ Args: {
27826
+ _foutmelding: string;
27827
+ _queue_id: string;
27828
+ };
27829
+ Returns: boolean;
27830
+ };
25877
27831
  quote_get_billable_lines: {
25878
27832
  Args: {
25879
27833
  _quotation_id: string;
@@ -25890,6 +27844,12 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
25890
27844
  Args: never;
25891
27845
  Returns: import("./types").Json;
25892
27846
  };
27847
+ quote_list_pending_work_orders: {
27848
+ Args: {
27849
+ _limit?: number;
27850
+ };
27851
+ Returns: import("./types").Json;
27852
+ };
25893
27853
  quote_list_sources: {
25894
27854
  Args: {
25895
27855
  _limit?: number;
@@ -25897,6 +27857,12 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
25897
27857
  };
25898
27858
  Returns: import("./types").Json;
25899
27859
  };
27860
+ quote_queue_follow_up: {
27861
+ Args: {
27862
+ _offerte_id: string;
27863
+ };
27864
+ Returns: string;
27865
+ };
25900
27866
  recompute_all_reserved_stock: {
25901
27867
  Args: never;
25902
27868
  Returns: undefined;
@@ -26578,6 +28544,52 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
26578
28544
  p_end_time: string;
26579
28545
  };
26580
28546
  Returns: import("./types").Json;
28547
+ } | {
28548
+ Args: {
28549
+ p_end_lat?: number;
28550
+ p_end_lng?: number;
28551
+ p_log_id: string;
28552
+ };
28553
+ Returns: {
28554
+ auto_stop_reason: string | null;
28555
+ auto_stopped: boolean;
28556
+ created_at: string;
28557
+ current_latitude: number | null;
28558
+ current_longitude: number | null;
28559
+ current_position_updated_at: string | null;
28560
+ employee_id: string;
28561
+ end_latitude: number | null;
28562
+ end_longitude: number | null;
28563
+ end_time: string | null;
28564
+ eta_distance_km: number | null;
28565
+ eta_minutes: number | null;
28566
+ eta_updated_at: string | null;
28567
+ hour_category: string | null;
28568
+ id: string;
28569
+ last_reminder_at: string | null;
28570
+ notes: string | null;
28571
+ overtime_hours: number;
28572
+ overtime_type: string | null;
28573
+ regular_hours: number;
28574
+ reminder_count: number;
28575
+ requires_review: boolean;
28576
+ start_latitude: number | null;
28577
+ start_longitude: number | null;
28578
+ start_time: string;
28579
+ travel_cost: number | null;
28580
+ travel_distance_km: number | null;
28581
+ travel_duration_min: number | null;
28582
+ travel_time_minutes: number | null;
28583
+ type: string;
28584
+ updated_at: string;
28585
+ work_order_id: string | null;
28586
+ };
28587
+ SetofOptions: {
28588
+ from: "*";
28589
+ to: "time_logs";
28590
+ isOneToOne: true;
28591
+ isSetofReturn: false;
28592
+ };
26581
28593
  };
26582
28594
  swap_cart_layer_positions: {
26583
28595
  Args: {
@@ -26734,14 +28746,99 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
26734
28746
  };
26735
28747
  Returns: undefined;
26736
28748
  };
28749
+ uren_employee_day_hours: {
28750
+ Args: {
28751
+ _day: string;
28752
+ _employee_id: string;
28753
+ };
28754
+ Returns: number;
28755
+ };
26737
28756
  uren_is_beheerder: {
26738
28757
  Args: never;
26739
28758
  Returns: boolean;
26740
28759
  };
28760
+ uren_list_medewerkers: {
28761
+ Args: never;
28762
+ Returns: {
28763
+ avatar_url: string;
28764
+ color: string;
28765
+ display_name: string;
28766
+ email: string;
28767
+ hours_fri: number;
28768
+ hours_mon: number;
28769
+ hours_thu: number;
28770
+ hours_tue: number;
28771
+ hours_wed: number;
28772
+ id: string;
28773
+ is_active: boolean;
28774
+ leave_balance_hours: number;
28775
+ persnr: string;
28776
+ phone: string;
28777
+ roles: string[];
28778
+ }[];
28779
+ };
26741
28780
  uren_my_monteur_id: {
26742
28781
  Args: never;
26743
28782
  Returns: string;
26744
28783
  };
28784
+ uren_planning_dagagenda: {
28785
+ Args: {
28786
+ _tot: string;
28787
+ _van: string;
28788
+ };
28789
+ Returns: {
28790
+ end_at: string;
28791
+ id: string;
28792
+ is_tweede_man: boolean;
28793
+ notes: string;
28794
+ start_at: string;
28795
+ status: Database["public"]["Enums"]["planning_item_status"];
28796
+ werkbon_id: string;
28797
+ }[];
28798
+ };
28799
+ uren_set_planning_item_status: {
28800
+ Args: {
28801
+ _id: string;
28802
+ _status: Database["public"]["Enums"]["planning_item_status"];
28803
+ };
28804
+ Returns: undefined;
28805
+ };
28806
+ uren_set_planning_status: {
28807
+ Args: {
28808
+ p_status: Database["public"]["Enums"]["planning_item_status"];
28809
+ p_werkbon_id: string;
28810
+ };
28811
+ Returns: number;
28812
+ };
28813
+ uren_stop_time_log: {
28814
+ Args: {
28815
+ p_employee_id: string;
28816
+ p_end_lat?: number;
28817
+ p_end_lng?: number;
28818
+ p_end_time: string;
28819
+ };
28820
+ Returns: import("./types").Json;
28821
+ };
28822
+ uren_switch_time_log: {
28823
+ Args: {
28824
+ p_employee_id: string;
28825
+ p_start_lat?: number;
28826
+ p_start_lng?: number;
28827
+ p_type: string;
28828
+ p_work_order_id?: string;
28829
+ };
28830
+ Returns: import("./types").Json;
28831
+ };
28832
+ uren_sync_sick_time_off: {
28833
+ Args: {
28834
+ _period_id: string;
28835
+ };
28836
+ Returns: number;
28837
+ };
28838
+ voorraad_cleanup_old_rows: {
28839
+ Args: never;
28840
+ Returns: import("./types").Json;
28841
+ };
26745
28842
  wake_print_queue: {
26746
28843
  Args: {
26747
28844
  _min_interval_ms?: number;
@@ -26780,6 +28877,25 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
26780
28877
  };
26781
28878
  Returns: import("./types").Json;
26782
28879
  };
28880
+ wo_list_offerte_requests: {
28881
+ Args: {
28882
+ _status?: string;
28883
+ };
28884
+ Returns: import("./types").Json;
28885
+ };
28886
+ wo_process_offerte_request: {
28887
+ Args: {
28888
+ _queue_id: string;
28889
+ };
28890
+ Returns: import("./types").Json;
28891
+ };
28892
+ wo_reject_offerte_request: {
28893
+ Args: {
28894
+ _queue_id: string;
28895
+ _reden?: string;
28896
+ };
28897
+ Returns: import("./types").Json;
28898
+ };
26783
28899
  wo_set_status: {
26784
28900
  Args: {
26785
28901
  _reason?: string;