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