@flowselections/scan-module 1.0.6 → 1.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1422,9 +1422,10 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
1422
1422
  Row: {
1423
1423
  assigned_at: string;
1424
1424
  cart_index: number;
1425
- cart_number: string | null;
1425
+ cart_number: string;
1426
1426
  day_seq: number | null;
1427
1427
  delivered_at: string | null;
1428
+ engine_cart_label: string | null;
1428
1429
  id: string;
1429
1430
  order_id: string;
1430
1431
  order_source: string;
@@ -1434,9 +1435,10 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
1434
1435
  Insert: {
1435
1436
  assigned_at?: string;
1436
1437
  cart_index: number;
1437
- cart_number?: string | null;
1438
+ cart_number: string;
1438
1439
  day_seq?: number | null;
1439
1440
  delivered_at?: string | null;
1441
+ engine_cart_label?: string | null;
1440
1442
  id?: string;
1441
1443
  order_id: string;
1442
1444
  order_source: string;
@@ -1446,9 +1448,10 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
1446
1448
  Update: {
1447
1449
  assigned_at?: string;
1448
1450
  cart_index?: number;
1449
- cart_number?: string | null;
1451
+ cart_number?: string;
1450
1452
  day_seq?: number | null;
1451
1453
  delivered_at?: string | null;
1454
+ engine_cart_label?: string | null;
1452
1455
  id?: string;
1453
1456
  order_id?: string;
1454
1457
  order_source?: string;
@@ -1823,6 +1826,42 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
1823
1826
  };
1824
1827
  Relationships: [];
1825
1828
  };
1829
+ customer_assortment_items: {
1830
+ Row: {
1831
+ created_at: string;
1832
+ customer_key: string;
1833
+ id: string;
1834
+ in_assortment: boolean;
1835
+ manual_override: boolean;
1836
+ source: string;
1837
+ synced_at: string | null;
1838
+ trade_item_key: string;
1839
+ updated_at: string;
1840
+ };
1841
+ Insert: {
1842
+ created_at?: string;
1843
+ customer_key: string;
1844
+ id?: string;
1845
+ in_assortment?: boolean;
1846
+ manual_override?: boolean;
1847
+ source?: string;
1848
+ synced_at?: string | null;
1849
+ trade_item_key: string;
1850
+ updated_at?: string;
1851
+ };
1852
+ Update: {
1853
+ created_at?: string;
1854
+ customer_key?: string;
1855
+ id?: string;
1856
+ in_assortment?: boolean;
1857
+ manual_override?: boolean;
1858
+ source?: string;
1859
+ synced_at?: string | null;
1860
+ trade_item_key?: string;
1861
+ updated_at?: string;
1862
+ };
1863
+ Relationships: [];
1864
+ };
1826
1865
  customer_audit_log: {
1827
1866
  Row: {
1828
1867
  action: string;
@@ -2155,6 +2194,8 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
2155
2194
  created_at: string;
2156
2195
  currency: string;
2157
2196
  distribute_over: string | null;
2197
+ external_id: string | null;
2198
+ external_synced_at: string | null;
2158
2199
  group_type: string;
2159
2200
  handling_fee: number | null;
2160
2201
  id: string;
@@ -2167,6 +2208,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
2167
2208
  rounding: string;
2168
2209
  rounding_step: number;
2169
2210
  sort_order: number;
2211
+ source: string;
2170
2212
  unit: string;
2171
2213
  updated_at: string;
2172
2214
  };
@@ -2177,6 +2219,8 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
2177
2219
  created_at?: string;
2178
2220
  currency?: string;
2179
2221
  distribute_over?: string | null;
2222
+ external_id?: string | null;
2223
+ external_synced_at?: string | null;
2180
2224
  group_type?: string;
2181
2225
  handling_fee?: number | null;
2182
2226
  id?: string;
@@ -2189,6 +2233,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
2189
2233
  rounding?: string;
2190
2234
  rounding_step?: number;
2191
2235
  sort_order?: number;
2236
+ source?: string;
2192
2237
  unit?: string;
2193
2238
  updated_at?: string;
2194
2239
  };
@@ -2199,6 +2244,8 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
2199
2244
  created_at?: string;
2200
2245
  currency?: string;
2201
2246
  distribute_over?: string | null;
2247
+ external_id?: string | null;
2248
+ external_synced_at?: string | null;
2202
2249
  group_type?: string;
2203
2250
  handling_fee?: number | null;
2204
2251
  id?: string;
@@ -2211,11 +2258,69 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
2211
2258
  rounding?: string;
2212
2259
  rounding_step?: number;
2213
2260
  sort_order?: number;
2261
+ source?: string;
2214
2262
  unit?: string;
2215
2263
  updated_at?: string;
2216
2264
  };
2217
2265
  Relationships: [];
2218
2266
  };
2267
+ customer_product_stickers: {
2268
+ Row: {
2269
+ content_hash: string | null;
2270
+ created_at: string;
2271
+ customer_key: string;
2272
+ file_name: string;
2273
+ file_path: string;
2274
+ file_size: number | null;
2275
+ floriday_sticker_id: string | null;
2276
+ floriday_synced_at: string | null;
2277
+ height_mm: number | null;
2278
+ id: string;
2279
+ mime_type: string | null;
2280
+ source: string;
2281
+ trade_item_key: string;
2282
+ updated_at: string;
2283
+ uploaded_by: string | null;
2284
+ width_mm: number | null;
2285
+ };
2286
+ Insert: {
2287
+ content_hash?: string | null;
2288
+ created_at?: string;
2289
+ customer_key: string;
2290
+ file_name: string;
2291
+ file_path: string;
2292
+ file_size?: number | null;
2293
+ floriday_sticker_id?: string | null;
2294
+ floriday_synced_at?: string | null;
2295
+ height_mm?: number | null;
2296
+ id?: string;
2297
+ mime_type?: string | null;
2298
+ source?: string;
2299
+ trade_item_key: string;
2300
+ updated_at?: string;
2301
+ uploaded_by?: string | null;
2302
+ width_mm?: number | null;
2303
+ };
2304
+ Update: {
2305
+ content_hash?: string | null;
2306
+ created_at?: string;
2307
+ customer_key?: string;
2308
+ file_name?: string;
2309
+ file_path?: string;
2310
+ file_size?: number | null;
2311
+ floriday_sticker_id?: string | null;
2312
+ floriday_synced_at?: string | null;
2313
+ height_mm?: number | null;
2314
+ id?: string;
2315
+ mime_type?: string | null;
2316
+ source?: string;
2317
+ trade_item_key?: string;
2318
+ updated_at?: string;
2319
+ uploaded_by?: string | null;
2320
+ width_mm?: number | null;
2321
+ };
2322
+ Relationships: [];
2323
+ };
2219
2324
  customer_selected_assortment: {
2220
2325
  Row: {
2221
2326
  article_number: string | null;
@@ -2264,6 +2369,30 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
2264
2369
  referencedColumns: ["id"];
2265
2370
  }];
2266
2371
  };
2372
+ customer_sticker_settings: {
2373
+ Row: {
2374
+ created_at: string;
2375
+ customer_key: string;
2376
+ height_mm: number;
2377
+ updated_at: string;
2378
+ width_mm: number;
2379
+ };
2380
+ Insert: {
2381
+ created_at?: string;
2382
+ customer_key: string;
2383
+ height_mm?: number;
2384
+ updated_at?: string;
2385
+ width_mm?: number;
2386
+ };
2387
+ Update: {
2388
+ created_at?: string;
2389
+ customer_key?: string;
2390
+ height_mm?: number;
2391
+ updated_at?: string;
2392
+ width_mm?: number;
2393
+ };
2394
+ Relationships: [];
2395
+ };
2267
2396
  customer_trade_settings: {
2268
2397
  Row: {
2269
2398
  category: string;
@@ -3589,6 +3718,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
3589
3718
  };
3590
3719
  email_auth_outbox: {
3591
3720
  Row: {
3721
+ attachments: import("./types").Json;
3592
3722
  attempts: number;
3593
3723
  bcc_addresses: string[];
3594
3724
  cc_addresses: string[];
@@ -3611,6 +3741,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
3611
3741
  updated_at: string;
3612
3742
  };
3613
3743
  Insert: {
3744
+ attachments?: import("./types").Json;
3614
3745
  attempts?: number;
3615
3746
  bcc_addresses?: string[];
3616
3747
  cc_addresses?: string[];
@@ -3633,6 +3764,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
3633
3764
  updated_at?: string;
3634
3765
  };
3635
3766
  Update: {
3767
+ attachments?: import("./types").Json;
3636
3768
  attempts?: number;
3637
3769
  bcc_addresses?: string[];
3638
3770
  cc_addresses?: string[];
@@ -5594,6 +5726,102 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
5594
5726
  referencedColumns: ["id"];
5595
5727
  }];
5596
5728
  };
5729
+ floriday_api_log: {
5730
+ Row: {
5731
+ action: string | null;
5732
+ caller: string | null;
5733
+ connection_id: string | null;
5734
+ created_at: string;
5735
+ cursor_from: number | null;
5736
+ direction: string;
5737
+ duration_ms: number | null;
5738
+ environment: string | null;
5739
+ error: string | null;
5740
+ floriday_id: string | null;
5741
+ floriday_reference: string | null;
5742
+ http_status: number;
5743
+ id: string;
5744
+ item_count: number | null;
5745
+ kind: string | null;
5746
+ local_id: string | null;
5747
+ local_reference: string | null;
5748
+ method: string;
5749
+ module: string | null;
5750
+ ok: boolean;
5751
+ path: string;
5752
+ request: import("./types").Json | null;
5753
+ resource_type: string | null;
5754
+ response: import("./types").Json | null;
5755
+ write_log_id: string | null;
5756
+ };
5757
+ Insert: {
5758
+ action?: string | null;
5759
+ caller?: string | null;
5760
+ connection_id?: string | null;
5761
+ created_at?: string;
5762
+ cursor_from?: number | null;
5763
+ direction: string;
5764
+ duration_ms?: number | null;
5765
+ environment?: string | null;
5766
+ error?: string | null;
5767
+ floriday_id?: string | null;
5768
+ floriday_reference?: string | null;
5769
+ http_status?: number;
5770
+ id?: string;
5771
+ item_count?: number | null;
5772
+ kind?: string | null;
5773
+ local_id?: string | null;
5774
+ local_reference?: string | null;
5775
+ method: string;
5776
+ module?: string | null;
5777
+ ok?: boolean;
5778
+ path: string;
5779
+ request?: import("./types").Json | null;
5780
+ resource_type?: string | null;
5781
+ response?: import("./types").Json | null;
5782
+ write_log_id?: string | null;
5783
+ };
5784
+ Update: {
5785
+ action?: string | null;
5786
+ caller?: string | null;
5787
+ connection_id?: string | null;
5788
+ created_at?: string;
5789
+ cursor_from?: number | null;
5790
+ direction?: string;
5791
+ duration_ms?: number | null;
5792
+ environment?: string | null;
5793
+ error?: string | null;
5794
+ floriday_id?: string | null;
5795
+ floriday_reference?: string | null;
5796
+ http_status?: number;
5797
+ id?: string;
5798
+ item_count?: number | null;
5799
+ kind?: string | null;
5800
+ local_id?: string | null;
5801
+ local_reference?: string | null;
5802
+ method?: string;
5803
+ module?: string | null;
5804
+ ok?: boolean;
5805
+ path?: string;
5806
+ request?: import("./types").Json | null;
5807
+ resource_type?: string | null;
5808
+ response?: import("./types").Json | null;
5809
+ write_log_id?: string | null;
5810
+ };
5811
+ Relationships: [{
5812
+ foreignKeyName: "floriday_api_log_connection_id_fkey";
5813
+ columns: ["connection_id"];
5814
+ isOneToOne: false;
5815
+ referencedRelation: "floriday_connections";
5816
+ referencedColumns: ["id"];
5817
+ }, {
5818
+ foreignKeyName: "floriday_api_log_write_log_id_fkey";
5819
+ columns: ["write_log_id"];
5820
+ isOneToOne: false;
5821
+ referencedRelation: "floriday_write_log";
5822
+ referencedColumns: ["id"];
5823
+ }];
5824
+ };
5597
5825
  floriday_auction_letters_cache: {
5598
5826
  Row: {
5599
5827
  auction_letter_code: string;
@@ -5801,6 +6029,84 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
5801
6029
  referencedColumns: ["id"];
5802
6030
  }];
5803
6031
  };
6032
+ floriday_catalog_prices_cache: {
6033
+ Row: {
6034
+ connection_id: string;
6035
+ created_at: string;
6036
+ currency: string;
6037
+ id: string;
6038
+ is_deleted: boolean;
6039
+ price: number | null;
6040
+ price_group_id: string | null;
6041
+ price_group_name: string | null;
6042
+ price_type: string;
6043
+ raw: import("./types").Json | null;
6044
+ sales_unit: string | null;
6045
+ sequence_number: number;
6046
+ supplier_article_code: string | null;
6047
+ supply_line_id: string;
6048
+ synced_at: string;
6049
+ trade_item_id: string | null;
6050
+ updated_at: string;
6051
+ valid_from: string | null;
6052
+ valid_to: string | null;
6053
+ week: number | null;
6054
+ year: number | null;
6055
+ };
6056
+ Insert: {
6057
+ connection_id: string;
6058
+ created_at?: string;
6059
+ currency?: string;
6060
+ id?: string;
6061
+ is_deleted?: boolean;
6062
+ price?: number | null;
6063
+ price_group_id?: string | null;
6064
+ price_group_name?: string | null;
6065
+ price_type?: string;
6066
+ raw?: import("./types").Json | null;
6067
+ sales_unit?: string | null;
6068
+ sequence_number?: number;
6069
+ supplier_article_code?: string | null;
6070
+ supply_line_id: string;
6071
+ synced_at?: string;
6072
+ trade_item_id?: string | null;
6073
+ updated_at?: string;
6074
+ valid_from?: string | null;
6075
+ valid_to?: string | null;
6076
+ week?: number | null;
6077
+ year?: number | null;
6078
+ };
6079
+ Update: {
6080
+ connection_id?: string;
6081
+ created_at?: string;
6082
+ currency?: string;
6083
+ id?: string;
6084
+ is_deleted?: boolean;
6085
+ price?: number | null;
6086
+ price_group_id?: string | null;
6087
+ price_group_name?: string | null;
6088
+ price_type?: string;
6089
+ raw?: import("./types").Json | null;
6090
+ sales_unit?: string | null;
6091
+ sequence_number?: number;
6092
+ supplier_article_code?: string | null;
6093
+ supply_line_id?: string;
6094
+ synced_at?: string;
6095
+ trade_item_id?: string | null;
6096
+ updated_at?: string;
6097
+ valid_from?: string | null;
6098
+ valid_to?: string | null;
6099
+ week?: number | null;
6100
+ year?: number | null;
6101
+ };
6102
+ Relationships: [{
6103
+ foreignKeyName: "floriday_catalog_prices_cache_connection_id_fkey";
6104
+ columns: ["connection_id"];
6105
+ isOneToOne: false;
6106
+ referencedRelation: "floriday_connections";
6107
+ referencedColumns: ["id"];
6108
+ }];
6109
+ };
5804
6110
  floriday_clock_presales_cache: {
5805
6111
  Row: {
5806
6112
  buyer_organization_id: string | null;
@@ -6716,6 +7022,69 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
6716
7022
  referencedColumns: ["id"];
6717
7023
  }];
6718
7024
  };
7025
+ floriday_link_templates: {
7026
+ Row: {
7027
+ created_at: string;
7028
+ floriday_url_template: string | null;
7029
+ is_active: boolean;
7030
+ label: string;
7031
+ local_url_template: string | null;
7032
+ resource_type: string;
7033
+ updated_at: string;
7034
+ };
7035
+ Insert: {
7036
+ created_at?: string;
7037
+ floriday_url_template?: string | null;
7038
+ is_active?: boolean;
7039
+ label: string;
7040
+ local_url_template?: string | null;
7041
+ resource_type: string;
7042
+ updated_at?: string;
7043
+ };
7044
+ Update: {
7045
+ created_at?: string;
7046
+ floriday_url_template?: string | null;
7047
+ is_active?: boolean;
7048
+ label?: string;
7049
+ local_url_template?: string | null;
7050
+ resource_type?: string;
7051
+ updated_at?: string;
7052
+ };
7053
+ Relationships: [];
7054
+ };
7055
+ floriday_log_retention: {
7056
+ Row: {
7057
+ created_at: string;
7058
+ direction: string | null;
7059
+ id: string;
7060
+ keep_failed_days: number | null;
7061
+ keep_ok_days: number | null;
7062
+ note: string | null;
7063
+ resource_type: string | null;
7064
+ updated_at: string;
7065
+ };
7066
+ Insert: {
7067
+ created_at?: string;
7068
+ direction?: string | null;
7069
+ id?: string;
7070
+ keep_failed_days?: number | null;
7071
+ keep_ok_days?: number | null;
7072
+ note?: string | null;
7073
+ resource_type?: string | null;
7074
+ updated_at?: string;
7075
+ };
7076
+ Update: {
7077
+ created_at?: string;
7078
+ direction?: string | null;
7079
+ id?: string;
7080
+ keep_failed_days?: number | null;
7081
+ keep_ok_days?: number | null;
7082
+ note?: string | null;
7083
+ resource_type?: string | null;
7084
+ updated_at?: string;
7085
+ };
7086
+ Relationships: [];
7087
+ };
6719
7088
  floriday_logistic_labels_cache: {
6720
7089
  Row: {
6721
7090
  byte_size: number | null;
@@ -8432,8 +8801,48 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
8432
8801
  };
8433
8802
  Relationships: [];
8434
8803
  };
8435
- itk_handover_github_scan: {
8804
+ itk_handover_afspraken: {
8436
8805
  Row: {
8806
+ afgesproken_door: string | null;
8807
+ afgesproken_op: string;
8808
+ besluit: string;
8809
+ created_at: string;
8810
+ item: string;
8811
+ modules: string[];
8812
+ sleutel: string;
8813
+ soort: string;
8814
+ updated_at: string;
8815
+ versie_vingerafdruk: string;
8816
+ };
8817
+ Insert: {
8818
+ afgesproken_door?: string | null;
8819
+ afgesproken_op?: string;
8820
+ besluit?: string;
8821
+ created_at?: string;
8822
+ item?: string;
8823
+ modules?: string[];
8824
+ sleutel: string;
8825
+ soort?: string;
8826
+ updated_at?: string;
8827
+ versie_vingerafdruk?: string;
8828
+ };
8829
+ Update: {
8830
+ afgesproken_door?: string | null;
8831
+ afgesproken_op?: string;
8832
+ besluit?: string;
8833
+ created_at?: string;
8834
+ item?: string;
8835
+ modules?: string[];
8836
+ sleutel?: string;
8837
+ soort?: string;
8838
+ updated_at?: string;
8839
+ versie_vingerafdruk?: string;
8840
+ };
8841
+ Relationships: [];
8842
+ };
8843
+ itk_handover_github_scan: {
8844
+ Row: {
8845
+ genegeerd_op: string | null;
8437
8846
  gescand_op: string;
8438
8847
  gevonden: boolean;
8439
8848
  melding: string | null;
@@ -8441,6 +8850,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
8441
8850
  repo: string;
8442
8851
  };
8443
8852
  Insert: {
8853
+ genegeerd_op?: string | null;
8444
8854
  gescand_op?: string;
8445
8855
  gevonden?: boolean;
8446
8856
  melding?: string | null;
@@ -8448,6 +8858,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
8448
8858
  repo: string;
8449
8859
  };
8450
8860
  Update: {
8861
+ genegeerd_op?: string | null;
8451
8862
  gescand_op?: string;
8452
8863
  gevonden?: boolean;
8453
8864
  melding?: string | null;
@@ -8456,13 +8867,45 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
8456
8867
  };
8457
8868
  Relationships: [];
8458
8869
  };
8870
+ itk_handover_github_voortgang: {
8871
+ Row: {
8872
+ bijgewerkt_op: string;
8873
+ huidige_repo: string | null;
8874
+ id: boolean;
8875
+ klaar: number;
8876
+ loopt: boolean;
8877
+ totaal: number;
8878
+ };
8879
+ Insert: {
8880
+ bijgewerkt_op?: string;
8881
+ huidige_repo?: string | null;
8882
+ id?: boolean;
8883
+ klaar?: number;
8884
+ loopt?: boolean;
8885
+ totaal?: number;
8886
+ };
8887
+ Update: {
8888
+ bijgewerkt_op?: string;
8889
+ huidige_repo?: string | null;
8890
+ id?: boolean;
8891
+ klaar?: number;
8892
+ loopt?: boolean;
8893
+ totaal?: number;
8894
+ };
8895
+ Relationships: [];
8896
+ };
8459
8897
  itk_handover_module_meta: {
8460
8898
  Row: {
8461
8899
  check_aangevraagd_op: string | null;
8462
8900
  check_nodig: boolean;
8463
8901
  check_reden: string | null;
8464
8902
  created_at: string;
8903
+ md_bron: boolean;
8904
+ md_bron_op: string | null;
8905
+ md_bron_pad: string | null;
8465
8906
  module_id: string;
8907
+ nieuw_gezien: boolean;
8908
+ nieuw_gezien_op: string | null;
8466
8909
  project_url: string | null;
8467
8910
  publicatie_url: string | null;
8468
8911
  updated_at: string;
@@ -8472,7 +8915,12 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
8472
8915
  check_nodig?: boolean;
8473
8916
  check_reden?: string | null;
8474
8917
  created_at?: string;
8918
+ md_bron?: boolean;
8919
+ md_bron_op?: string | null;
8920
+ md_bron_pad?: string | null;
8475
8921
  module_id: string;
8922
+ nieuw_gezien?: boolean;
8923
+ nieuw_gezien_op?: string | null;
8476
8924
  project_url?: string | null;
8477
8925
  publicatie_url?: string | null;
8478
8926
  updated_at?: string;
@@ -8482,13 +8930,45 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
8482
8930
  check_nodig?: boolean;
8483
8931
  check_reden?: string | null;
8484
8932
  created_at?: string;
8933
+ md_bron?: boolean;
8934
+ md_bron_op?: string | null;
8935
+ md_bron_pad?: string | null;
8485
8936
  module_id?: string;
8937
+ nieuw_gezien?: boolean;
8938
+ nieuw_gezien_op?: string | null;
8486
8939
  project_url?: string | null;
8487
8940
  publicatie_url?: string | null;
8488
8941
  updated_at?: string;
8489
8942
  };
8490
8943
  Relationships: [];
8491
8944
  };
8945
+ itk_handover_module_naam: {
8946
+ Row: {
8947
+ bron_repo: string;
8948
+ created_at: string;
8949
+ module_id: string;
8950
+ standaardnaam: string | null;
8951
+ updated_at: string;
8952
+ weergavenaam: string;
8953
+ };
8954
+ Insert: {
8955
+ bron_repo?: string;
8956
+ created_at?: string;
8957
+ module_id: string;
8958
+ standaardnaam?: string | null;
8959
+ updated_at?: string;
8960
+ weergavenaam: string;
8961
+ };
8962
+ Update: {
8963
+ bron_repo?: string;
8964
+ created_at?: string;
8965
+ module_id?: string;
8966
+ standaardnaam?: string | null;
8967
+ updated_at?: string;
8968
+ weergavenaam?: string;
8969
+ };
8970
+ Relationships: [];
8971
+ };
8492
8972
  itk_handover_project_modules: {
8493
8973
  Row: {
8494
8974
  created_at: string;
@@ -8602,6 +9082,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
8602
9082
  };
8603
9083
  itk_module_handovers: {
8604
9084
  Row: {
9085
+ bekende_risicos: string[];
8605
9086
  bevindingen: string | null;
8606
9087
  bezit_tabellen: string[];
8607
9088
  bron_commit: string | null;
@@ -8620,6 +9101,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
8620
9101
  inhoud_md: string;
8621
9102
  is_actueel: boolean;
8622
9103
  is_gearchiveerd: boolean;
9104
+ laatst_bevestigd_op: string | null;
8623
9105
  laatst_gecontroleerd_op: string | null;
8624
9106
  module_id: string;
8625
9107
  module_titel: string;
@@ -8629,6 +9111,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
8629
9111
  versie: number;
8630
9112
  };
8631
9113
  Insert: {
9114
+ bekende_risicos?: string[];
8632
9115
  bevindingen?: string | null;
8633
9116
  bezit_tabellen?: string[];
8634
9117
  bron_commit?: string | null;
@@ -8647,6 +9130,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
8647
9130
  inhoud_md: string;
8648
9131
  is_actueel?: boolean;
8649
9132
  is_gearchiveerd?: boolean;
9133
+ laatst_bevestigd_op?: string | null;
8650
9134
  laatst_gecontroleerd_op?: string | null;
8651
9135
  module_id: string;
8652
9136
  module_titel: string;
@@ -8656,6 +9140,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
8656
9140
  versie?: number;
8657
9141
  };
8658
9142
  Update: {
9143
+ bekende_risicos?: string[];
8659
9144
  bevindingen?: string | null;
8660
9145
  bezit_tabellen?: string[];
8661
9146
  bron_commit?: string | null;
@@ -8674,6 +9159,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
8674
9159
  inhoud_md?: string;
8675
9160
  is_actueel?: boolean;
8676
9161
  is_gearchiveerd?: boolean;
9162
+ laatst_bevestigd_op?: string | null;
8677
9163
  laatst_gecontroleerd_op?: string | null;
8678
9164
  module_id?: string;
8679
9165
  module_titel?: string;
@@ -8882,6 +9368,54 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
8882
9368
  };
8883
9369
  Relationships: [];
8884
9370
  };
9371
+ itk_offerte_werkbon_queue: {
9372
+ Row: {
9373
+ bron_werkbon_id: string | null;
9374
+ created_at: string;
9375
+ foutmelding: string | null;
9376
+ id: string;
9377
+ offerte_id: string;
9378
+ payload: import("./types").Json;
9379
+ status: string;
9380
+ updated_at: string;
9381
+ verwerkt_op: string | null;
9382
+ werkbon_id: string | null;
9383
+ werkbon_nummer: string | null;
9384
+ };
9385
+ Insert: {
9386
+ bron_werkbon_id?: string | null;
9387
+ created_at?: string;
9388
+ foutmelding?: string | null;
9389
+ id?: string;
9390
+ offerte_id: string;
9391
+ payload?: import("./types").Json;
9392
+ status?: string;
9393
+ updated_at?: string;
9394
+ verwerkt_op?: string | null;
9395
+ werkbon_id?: string | null;
9396
+ werkbon_nummer?: string | null;
9397
+ };
9398
+ Update: {
9399
+ bron_werkbon_id?: string | null;
9400
+ created_at?: string;
9401
+ foutmelding?: string | null;
9402
+ id?: string;
9403
+ offerte_id?: string;
9404
+ payload?: import("./types").Json;
9405
+ status?: string;
9406
+ updated_at?: string;
9407
+ verwerkt_op?: string | null;
9408
+ werkbon_id?: string | null;
9409
+ werkbon_nummer?: string | null;
9410
+ };
9411
+ Relationships: [{
9412
+ foreignKeyName: "itk_offerte_werkbon_queue_offerte_id_fkey";
9413
+ columns: ["offerte_id"];
9414
+ isOneToOne: false;
9415
+ referencedRelation: "itk_offertes";
9416
+ referencedColumns: ["id"];
9417
+ }];
9418
+ };
8885
9419
  itk_offertes: {
8886
9420
  Row: {
8887
9421
  ai_generated: boolean;
@@ -9074,6 +9608,30 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
9074
9608
  referencedColumns: ["id"];
9075
9609
  }];
9076
9610
  };
9611
+ job_locks: {
9612
+ Row: {
9613
+ created_at: string;
9614
+ lock_key: string;
9615
+ locked_until: string;
9616
+ owner: string | null;
9617
+ updated_at: string;
9618
+ };
9619
+ Insert: {
9620
+ created_at?: string;
9621
+ lock_key: string;
9622
+ locked_until: string;
9623
+ owner?: string | null;
9624
+ updated_at?: string;
9625
+ };
9626
+ Update: {
9627
+ created_at?: string;
9628
+ lock_key?: string;
9629
+ locked_until?: string;
9630
+ owner?: string | null;
9631
+ updated_at?: string;
9632
+ };
9633
+ Relationships: [];
9634
+ };
9077
9635
  layout_logos: {
9078
9636
  Row: {
9079
9637
  bestand_url: string;
@@ -10043,6 +10601,36 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
10043
10601
  };
10044
10602
  Relationships: [];
10045
10603
  };
10604
+ logistics_floriday_push_refusals: {
10605
+ Row: {
10606
+ action: string | null;
10607
+ created_at: string;
10608
+ id: string;
10609
+ order_ref: string;
10610
+ reason: string;
10611
+ source_module: string | null;
10612
+ source_shell: string | null;
10613
+ };
10614
+ Insert: {
10615
+ action?: string | null;
10616
+ created_at?: string;
10617
+ id?: string;
10618
+ order_ref: string;
10619
+ reason: string;
10620
+ source_module?: string | null;
10621
+ source_shell?: string | null;
10622
+ };
10623
+ Update: {
10624
+ action?: string | null;
10625
+ created_at?: string;
10626
+ id?: string;
10627
+ order_ref?: string;
10628
+ reason?: string;
10629
+ source_module?: string | null;
10630
+ source_shell?: string | null;
10631
+ };
10632
+ Relationships: [];
10633
+ };
10046
10634
  logistics_floriday_pushes: {
10047
10635
  Row: {
10048
10636
  attempts: number;
@@ -10118,6 +10706,42 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
10118
10706
  };
10119
10707
  Relationships: [];
10120
10708
  };
10709
+ logistics_floriday_status_sends: {
10710
+ Row: {
10711
+ action: string;
10712
+ created_at: string;
10713
+ detail: string | null;
10714
+ http_status: number | null;
10715
+ id: string;
10716
+ ok: boolean;
10717
+ order_ref: string;
10718
+ source_module: string | null;
10719
+ source_shell: string | null;
10720
+ };
10721
+ Insert: {
10722
+ action: string;
10723
+ created_at?: string;
10724
+ detail?: string | null;
10725
+ http_status?: number | null;
10726
+ id?: string;
10727
+ ok?: boolean;
10728
+ order_ref: string;
10729
+ source_module?: string | null;
10730
+ source_shell?: string | null;
10731
+ };
10732
+ Update: {
10733
+ action?: string;
10734
+ created_at?: string;
10735
+ detail?: string | null;
10736
+ http_status?: number | null;
10737
+ id?: string;
10738
+ ok?: boolean;
10739
+ order_ref?: string;
10740
+ source_module?: string | null;
10741
+ source_shell?: string | null;
10742
+ };
10743
+ Relationships: [];
10744
+ };
10121
10745
  logistics_formulas: {
10122
10746
  Row: {
10123
10747
  created_at: string;
@@ -10190,6 +10814,144 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
10190
10814
  };
10191
10815
  Relationships: [];
10192
10816
  };
10817
+ logistics_opening_exceptions: {
10818
+ Row: {
10819
+ closes: string | null;
10820
+ created_at: string;
10821
+ day: string;
10822
+ id: string;
10823
+ is_closed: boolean;
10824
+ note: string | null;
10825
+ opens: string | null;
10826
+ };
10827
+ Insert: {
10828
+ closes?: string | null;
10829
+ created_at?: string;
10830
+ day: string;
10831
+ id?: string;
10832
+ is_closed?: boolean;
10833
+ note?: string | null;
10834
+ opens?: string | null;
10835
+ };
10836
+ Update: {
10837
+ closes?: string | null;
10838
+ created_at?: string;
10839
+ day?: string;
10840
+ id?: string;
10841
+ is_closed?: boolean;
10842
+ note?: string | null;
10843
+ opens?: string | null;
10844
+ };
10845
+ Relationships: [];
10846
+ };
10847
+ logistics_opening_hours: {
10848
+ Row: {
10849
+ closes: string;
10850
+ created_at: string;
10851
+ id: string;
10852
+ is_active: boolean;
10853
+ note: string | null;
10854
+ opens: string;
10855
+ weekday: number;
10856
+ };
10857
+ Insert: {
10858
+ closes: string;
10859
+ created_at?: string;
10860
+ id?: string;
10861
+ is_active?: boolean;
10862
+ note?: string | null;
10863
+ opens: string;
10864
+ weekday: number;
10865
+ };
10866
+ Update: {
10867
+ closes?: string;
10868
+ created_at?: string;
10869
+ id?: string;
10870
+ is_active?: boolean;
10871
+ note?: string | null;
10872
+ opens?: string;
10873
+ weekday?: number;
10874
+ };
10875
+ Relationships: [];
10876
+ };
10877
+ logistics_order_merges: {
10878
+ Row: {
10879
+ group_key: string;
10880
+ id: string;
10881
+ items_moved: number;
10882
+ kept_order_id: string;
10883
+ kept_order_number: string | null;
10884
+ merged_at: string;
10885
+ merged_order_id: string;
10886
+ merged_order_number: string | null;
10887
+ sales_order_id: string | null;
10888
+ };
10889
+ Insert: {
10890
+ group_key: string;
10891
+ id?: string;
10892
+ items_moved?: number;
10893
+ kept_order_id: string;
10894
+ kept_order_number?: string | null;
10895
+ merged_at?: string;
10896
+ merged_order_id: string;
10897
+ merged_order_number?: string | null;
10898
+ sales_order_id?: string | null;
10899
+ };
10900
+ Update: {
10901
+ group_key?: string;
10902
+ id?: string;
10903
+ items_moved?: number;
10904
+ kept_order_id?: string;
10905
+ kept_order_number?: string | null;
10906
+ merged_at?: string;
10907
+ merged_order_id?: string;
10908
+ merged_order_number?: string | null;
10909
+ sales_order_id?: string | null;
10910
+ };
10911
+ Relationships: [];
10912
+ };
10913
+ logistics_pick_data_requests: {
10914
+ Row: {
10915
+ actions: import("./types").Json;
10916
+ created_at: string;
10917
+ event_id: string | null;
10918
+ finished_at: string | null;
10919
+ id: string;
10920
+ missing: import("./types").Json;
10921
+ order_ref: string;
10922
+ reason: string | null;
10923
+ result: import("./types").Json | null;
10924
+ status: string;
10925
+ unit_ref: string | null;
10926
+ };
10927
+ Insert: {
10928
+ actions?: import("./types").Json;
10929
+ created_at?: string;
10930
+ event_id?: string | null;
10931
+ finished_at?: string | null;
10932
+ id?: string;
10933
+ missing?: import("./types").Json;
10934
+ order_ref: string;
10935
+ reason?: string | null;
10936
+ result?: import("./types").Json | null;
10937
+ status?: string;
10938
+ unit_ref?: string | null;
10939
+ };
10940
+ Update: {
10941
+ actions?: import("./types").Json;
10942
+ created_at?: string;
10943
+ event_id?: string | null;
10944
+ finished_at?: string | null;
10945
+ id?: string;
10946
+ missing?: import("./types").Json;
10947
+ order_ref?: string;
10948
+ reason?: string | null;
10949
+ result?: import("./types").Json | null;
10950
+ status?: string;
10951
+ unit_ref?: string | null;
10952
+ };
10953
+ Relationships: [];
10954
+ };
10193
10955
  logistics_pickup_moments: {
10194
10956
  Row: {
10195
10957
  carrier_ref: string | null;
@@ -10226,17 +10988,42 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
10226
10988
  };
10227
10989
  Relationships: [];
10228
10990
  };
10229
- logistics_plan_queue: {
10991
+ logistics_plan_locks: {
10230
10992
  Row: {
10231
- attempts: number;
10232
- claimed_at: string | null;
10233
- enqueued_at: string;
10234
- error: string | null;
10235
- id: string;
10236
- next_attempt_at: string;
10237
- order_id: string;
10238
- reason: string;
10239
- status: string;
10993
+ created_at: string;
10994
+ lock_key: string;
10995
+ locked_until: string;
10996
+ owner: string | null;
10997
+ updated_at: string;
10998
+ };
10999
+ Insert: {
11000
+ created_at?: string;
11001
+ lock_key: string;
11002
+ locked_until: string;
11003
+ owner?: string | null;
11004
+ updated_at?: string;
11005
+ };
11006
+ Update: {
11007
+ created_at?: string;
11008
+ lock_key?: string;
11009
+ locked_until?: string;
11010
+ owner?: string | null;
11011
+ updated_at?: string;
11012
+ };
11013
+ Relationships: [];
11014
+ };
11015
+ logistics_plan_queue: {
11016
+ Row: {
11017
+ attempts: number;
11018
+ claimed_at: string | null;
11019
+ enqueued_at: string;
11020
+ error: string | null;
11021
+ id: string;
11022
+ next_attempt_at: string;
11023
+ order_id: string;
11024
+ reason: string;
11025
+ reason_code: string | null;
11026
+ status: string;
10240
11027
  updated_at: string;
10241
11028
  };
10242
11029
  Insert: {
@@ -10248,6 +11035,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
10248
11035
  next_attempt_at?: string;
10249
11036
  order_id: string;
10250
11037
  reason?: string;
11038
+ reason_code?: string | null;
10251
11039
  status?: string;
10252
11040
  updated_at?: string;
10253
11041
  };
@@ -10260,6 +11048,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
10260
11048
  next_attempt_at?: string;
10261
11049
  order_id?: string;
10262
11050
  reason?: string;
11051
+ reason_code?: string | null;
10263
11052
  status?: string;
10264
11053
  updated_at?: string;
10265
11054
  };
@@ -10646,6 +11435,69 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
10646
11435
  };
10647
11436
  Relationships: [];
10648
11437
  };
11438
+ logistics_slip_shipping_note: {
11439
+ Row: {
11440
+ attempts: number;
11441
+ batch_key: string | null;
11442
+ cart_id: string | null;
11443
+ created_at: string;
11444
+ error: string | null;
11445
+ error_code: string | null;
11446
+ fulfillment_order_id: string | null;
11447
+ id: string;
11448
+ locked_until: string | null;
11449
+ next_attempt_at: string | null;
11450
+ order_id: string | null;
11451
+ order_number: string | null;
11452
+ print_job_id: string | null;
11453
+ printer_id: string | null;
11454
+ retry_class: string | null;
11455
+ slip_job_id: string;
11456
+ status: string;
11457
+ updated_at: string;
11458
+ };
11459
+ Insert: {
11460
+ attempts?: number;
11461
+ batch_key?: string | null;
11462
+ cart_id?: string | null;
11463
+ created_at?: string;
11464
+ error?: string | null;
11465
+ error_code?: string | null;
11466
+ fulfillment_order_id?: string | null;
11467
+ id?: string;
11468
+ locked_until?: string | null;
11469
+ next_attempt_at?: string | null;
11470
+ order_id?: string | null;
11471
+ order_number?: string | null;
11472
+ print_job_id?: string | null;
11473
+ printer_id?: string | null;
11474
+ retry_class?: string | null;
11475
+ slip_job_id: string;
11476
+ status?: string;
11477
+ updated_at?: string;
11478
+ };
11479
+ Update: {
11480
+ attempts?: number;
11481
+ batch_key?: string | null;
11482
+ cart_id?: string | null;
11483
+ created_at?: string;
11484
+ error?: string | null;
11485
+ error_code?: string | null;
11486
+ fulfillment_order_id?: string | null;
11487
+ id?: string;
11488
+ locked_until?: string | null;
11489
+ next_attempt_at?: string | null;
11490
+ order_id?: string | null;
11491
+ order_number?: string | null;
11492
+ print_job_id?: string | null;
11493
+ printer_id?: string | null;
11494
+ retry_class?: string | null;
11495
+ slip_job_id?: string;
11496
+ status?: string;
11497
+ updated_at?: string;
11498
+ };
11499
+ Relationships: [];
11500
+ };
10649
11501
  logistics_staff_planning: {
10650
11502
  Row: {
10651
11503
  created_at: string;
@@ -10964,6 +11816,279 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
10964
11816
  referencedColumns: ["id"];
10965
11817
  }];
10966
11818
  };
11819
+ logistics_tick_heartbeat: {
11820
+ Row: {
11821
+ id: boolean;
11822
+ last_tick_at: string;
11823
+ };
11824
+ Insert: {
11825
+ id?: boolean;
11826
+ last_tick_at?: string;
11827
+ };
11828
+ Update: {
11829
+ id?: boolean;
11830
+ last_tick_at?: string;
11831
+ };
11832
+ Relationships: [];
11833
+ };
11834
+ logistics_time_settings: {
11835
+ Row: {
11836
+ id: boolean;
11837
+ timezone: string;
11838
+ updated_at: string;
11839
+ };
11840
+ Insert: {
11841
+ id?: boolean;
11842
+ timezone: string;
11843
+ updated_at?: string;
11844
+ };
11845
+ Update: {
11846
+ id?: boolean;
11847
+ timezone?: string;
11848
+ updated_at?: string;
11849
+ };
11850
+ Relationships: [];
11851
+ };
11852
+ logistics_trace_events: {
11853
+ Row: {
11854
+ actor: string | null;
11855
+ attempts: number;
11856
+ calc: import("./types").Json | null;
11857
+ cart_ref: string | null;
11858
+ created_at: string;
11859
+ db_action: string | null;
11860
+ db_new: import("./types").Json | null;
11861
+ db_old: import("./types").Json | null;
11862
+ db_record: string | null;
11863
+ db_table: string | null;
11864
+ decision: string | null;
11865
+ duration_ms: number | null;
11866
+ error: string | null;
11867
+ error_class: string | null;
11868
+ external_action: string | null;
11869
+ external_ref: string | null;
11870
+ external_response: import("./types").Json | null;
11871
+ external_status: string | null;
11872
+ external_system: string | null;
11873
+ id: string;
11874
+ input: import("./types").Json | null;
11875
+ next_attempt_at: string | null;
11876
+ next_step: string | null;
11877
+ node_id: string | null;
11878
+ order_ref: string | null;
11879
+ order_source: string | null;
11880
+ output: import("./types").Json | null;
11881
+ phase: string;
11882
+ reads: import("./types").Json | null;
11883
+ reason: string | null;
11884
+ rule: string | null;
11885
+ slip_ref: string | null;
11886
+ status: string;
11887
+ step: string;
11888
+ trace_id: string;
11889
+ values_used: import("./types").Json | null;
11890
+ };
11891
+ Insert: {
11892
+ actor?: string | null;
11893
+ attempts?: number;
11894
+ calc?: import("./types").Json | null;
11895
+ cart_ref?: string | null;
11896
+ created_at?: string;
11897
+ db_action?: string | null;
11898
+ db_new?: import("./types").Json | null;
11899
+ db_old?: import("./types").Json | null;
11900
+ db_record?: string | null;
11901
+ db_table?: string | null;
11902
+ decision?: string | null;
11903
+ duration_ms?: number | null;
11904
+ error?: string | null;
11905
+ error_class?: string | null;
11906
+ external_action?: string | null;
11907
+ external_ref?: string | null;
11908
+ external_response?: import("./types").Json | null;
11909
+ external_status?: string | null;
11910
+ external_system?: string | null;
11911
+ id?: string;
11912
+ input?: import("./types").Json | null;
11913
+ next_attempt_at?: string | null;
11914
+ next_step?: string | null;
11915
+ node_id?: string | null;
11916
+ order_ref?: string | null;
11917
+ order_source?: string | null;
11918
+ output?: import("./types").Json | null;
11919
+ phase: string;
11920
+ reads?: import("./types").Json | null;
11921
+ reason?: string | null;
11922
+ rule?: string | null;
11923
+ slip_ref?: string | null;
11924
+ status: string;
11925
+ step: string;
11926
+ trace_id?: string;
11927
+ values_used?: import("./types").Json | null;
11928
+ };
11929
+ Update: {
11930
+ actor?: string | null;
11931
+ attempts?: number;
11932
+ calc?: import("./types").Json | null;
11933
+ cart_ref?: string | null;
11934
+ created_at?: string;
11935
+ db_action?: string | null;
11936
+ db_new?: import("./types").Json | null;
11937
+ db_old?: import("./types").Json | null;
11938
+ db_record?: string | null;
11939
+ db_table?: string | null;
11940
+ decision?: string | null;
11941
+ duration_ms?: number | null;
11942
+ error?: string | null;
11943
+ error_class?: string | null;
11944
+ external_action?: string | null;
11945
+ external_ref?: string | null;
11946
+ external_response?: import("./types").Json | null;
11947
+ external_status?: string | null;
11948
+ external_system?: string | null;
11949
+ id?: string;
11950
+ input?: import("./types").Json | null;
11951
+ next_attempt_at?: string | null;
11952
+ next_step?: string | null;
11953
+ node_id?: string | null;
11954
+ order_ref?: string | null;
11955
+ order_source?: string | null;
11956
+ output?: import("./types").Json | null;
11957
+ phase?: string;
11958
+ reads?: import("./types").Json | null;
11959
+ reason?: string | null;
11960
+ rule?: string | null;
11961
+ slip_ref?: string | null;
11962
+ status?: string;
11963
+ step?: string;
11964
+ trace_id?: string;
11965
+ values_used?: import("./types").Json | null;
11966
+ };
11967
+ Relationships: [];
11968
+ };
11969
+ logistics_trace_events_archive: {
11970
+ Row: {
11971
+ actor: string | null;
11972
+ attempts: number;
11973
+ calc: import("./types").Json | null;
11974
+ cart_ref: string | null;
11975
+ created_at: string;
11976
+ db_action: string | null;
11977
+ db_new: import("./types").Json | null;
11978
+ db_old: import("./types").Json | null;
11979
+ db_record: string | null;
11980
+ db_table: string | null;
11981
+ decision: string | null;
11982
+ duration_ms: number | null;
11983
+ error: string | null;
11984
+ error_class: string | null;
11985
+ external_action: string | null;
11986
+ external_ref: string | null;
11987
+ external_response: import("./types").Json | null;
11988
+ external_status: string | null;
11989
+ external_system: string | null;
11990
+ id: string;
11991
+ input: import("./types").Json | null;
11992
+ next_attempt_at: string | null;
11993
+ next_step: string | null;
11994
+ node_id: string | null;
11995
+ order_ref: string | null;
11996
+ order_source: string | null;
11997
+ output: import("./types").Json | null;
11998
+ phase: string;
11999
+ reads: import("./types").Json | null;
12000
+ reason: string | null;
12001
+ rule: string | null;
12002
+ slip_ref: string | null;
12003
+ status: string;
12004
+ step: string;
12005
+ superseded_at: string;
12006
+ superseded_reason: string | null;
12007
+ trace_id: string;
12008
+ values_used: import("./types").Json | null;
12009
+ };
12010
+ Insert: {
12011
+ actor?: string | null;
12012
+ attempts?: number;
12013
+ calc?: import("./types").Json | null;
12014
+ cart_ref?: string | null;
12015
+ created_at?: string;
12016
+ db_action?: string | null;
12017
+ db_new?: import("./types").Json | null;
12018
+ db_old?: import("./types").Json | null;
12019
+ db_record?: string | null;
12020
+ db_table?: string | null;
12021
+ decision?: string | null;
12022
+ duration_ms?: number | null;
12023
+ error?: string | null;
12024
+ error_class?: string | null;
12025
+ external_action?: string | null;
12026
+ external_ref?: string | null;
12027
+ external_response?: import("./types").Json | null;
12028
+ external_status?: string | null;
12029
+ external_system?: string | null;
12030
+ id?: string;
12031
+ input?: import("./types").Json | null;
12032
+ next_attempt_at?: string | null;
12033
+ next_step?: string | null;
12034
+ node_id?: string | null;
12035
+ order_ref?: string | null;
12036
+ order_source?: string | null;
12037
+ output?: import("./types").Json | null;
12038
+ phase: string;
12039
+ reads?: import("./types").Json | null;
12040
+ reason?: string | null;
12041
+ rule?: string | null;
12042
+ slip_ref?: string | null;
12043
+ status: string;
12044
+ step: string;
12045
+ superseded_at?: string;
12046
+ superseded_reason?: string | null;
12047
+ trace_id?: string;
12048
+ values_used?: import("./types").Json | null;
12049
+ };
12050
+ Update: {
12051
+ actor?: string | null;
12052
+ attempts?: number;
12053
+ calc?: import("./types").Json | null;
12054
+ cart_ref?: string | null;
12055
+ created_at?: string;
12056
+ db_action?: string | null;
12057
+ db_new?: import("./types").Json | null;
12058
+ db_old?: import("./types").Json | null;
12059
+ db_record?: string | null;
12060
+ db_table?: string | null;
12061
+ decision?: string | null;
12062
+ duration_ms?: number | null;
12063
+ error?: string | null;
12064
+ error_class?: string | null;
12065
+ external_action?: string | null;
12066
+ external_ref?: string | null;
12067
+ external_response?: import("./types").Json | null;
12068
+ external_status?: string | null;
12069
+ external_system?: string | null;
12070
+ id?: string;
12071
+ input?: import("./types").Json | null;
12072
+ next_attempt_at?: string | null;
12073
+ next_step?: string | null;
12074
+ node_id?: string | null;
12075
+ order_ref?: string | null;
12076
+ order_source?: string | null;
12077
+ output?: import("./types").Json | null;
12078
+ phase?: string;
12079
+ reads?: import("./types").Json | null;
12080
+ reason?: string | null;
12081
+ rule?: string | null;
12082
+ slip_ref?: string | null;
12083
+ status?: string;
12084
+ step?: string;
12085
+ superseded_at?: string;
12086
+ superseded_reason?: string | null;
12087
+ trace_id?: string;
12088
+ values_used?: import("./types").Json | null;
12089
+ };
12090
+ Relationships: [];
12091
+ };
10967
12092
  logistics_variables: {
10968
12093
  Row: {
10969
12094
  created_at: string;
@@ -11111,6 +12236,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
11111
12236
  has_attachments: boolean;
11112
12237
  id: string;
11113
12238
  message_id: string | null;
12239
+ preview: string | null;
11114
12240
  profile_id: string | null;
11115
12241
  raw_size: number | null;
11116
12242
  received_at: string | null;
@@ -11134,6 +12260,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
11134
12260
  has_attachments?: boolean;
11135
12261
  id?: string;
11136
12262
  message_id?: string | null;
12263
+ preview?: string | null;
11137
12264
  profile_id?: string | null;
11138
12265
  raw_size?: number | null;
11139
12266
  received_at?: string | null;
@@ -11157,6 +12284,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
11157
12284
  has_attachments?: boolean;
11158
12285
  id?: string;
11159
12286
  message_id?: string | null;
12287
+ preview?: string | null;
11160
12288
  profile_id?: string | null;
11161
12289
  raw_size?: number | null;
11162
12290
  received_at?: string | null;
@@ -11188,6 +12316,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
11188
12316
  };
11189
12317
  mailbox_order_proposals: {
11190
12318
  Row: {
12319
+ ai_ok: boolean | null;
11191
12320
  ai_validation: import("./types").Json | null;
11192
12321
  confidence: number | null;
11193
12322
  created_at: string;
@@ -11205,6 +12334,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
11205
12334
  updated_at: string;
11206
12335
  };
11207
12336
  Insert: {
12337
+ ai_ok?: boolean | null;
11208
12338
  ai_validation?: import("./types").Json | null;
11209
12339
  confidence?: number | null;
11210
12340
  created_at?: string;
@@ -11222,6 +12352,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
11222
12352
  updated_at?: string;
11223
12353
  };
11224
12354
  Update: {
12355
+ ai_ok?: boolean | null;
11225
12356
  ai_validation?: import("./types").Json | null;
11226
12357
  confidence?: number | null;
11227
12358
  created_at?: string;
@@ -13354,6 +14485,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
13354
14485
  customer_name: string;
13355
14486
  deleted_at: string | null;
13356
14487
  delivery_date: string | null;
14488
+ floriday_order_group_key: string | null;
13357
14489
  floriday_sales_order_id: string | null;
13358
14490
  id: string;
13359
14491
  invoice_due_at: string | null;
@@ -13381,6 +14513,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
13381
14513
  customer_name?: string;
13382
14514
  deleted_at?: string | null;
13383
14515
  delivery_date?: string | null;
14516
+ floriday_order_group_key?: string | null;
13384
14517
  floriday_sales_order_id?: string | null;
13385
14518
  id?: string;
13386
14519
  invoice_due_at?: string | null;
@@ -13408,6 +14541,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
13408
14541
  customer_name?: string;
13409
14542
  deleted_at?: string | null;
13410
14543
  delivery_date?: string | null;
14544
+ floriday_order_group_key?: string | null;
13411
14545
  floriday_sales_order_id?: string | null;
13412
14546
  id?: string;
13413
14547
  invoice_due_at?: string | null;
@@ -13601,6 +14735,27 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
13601
14735
  };
13602
14736
  Relationships: [];
13603
14737
  };
14738
+ pick_buffer_event_cursor: {
14739
+ Row: {
14740
+ created_at: string;
14741
+ id: boolean;
14742
+ last_event_at: string;
14743
+ updated_at: string;
14744
+ };
14745
+ Insert: {
14746
+ created_at?: string;
14747
+ id?: boolean;
14748
+ last_event_at?: string;
14749
+ updated_at?: string;
14750
+ };
14751
+ Update: {
14752
+ created_at?: string;
14753
+ id?: boolean;
14754
+ last_event_at?: string;
14755
+ updated_at?: string;
14756
+ };
14757
+ Relationships: [];
14758
+ };
13604
14759
  pick_countries: {
13605
14760
  Row: {
13606
14761
  active: boolean;
@@ -14687,64 +15842,181 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
14687
15842
  referencedColumns: ["id"];
14688
15843
  }];
14689
15844
  };
14690
- print_agents: {
15845
+ price_list_rows: {
14691
15846
  Row: {
14692
- actief: boolean;
15847
+ action: string;
14693
15848
  created_at: string;
14694
- gemelde_printers: import("./types").Json;
14695
15849
  id: string;
14696
- laatst_gezien: string | null;
14697
- locatie: string;
14698
- naam: string;
14699
- pairing_code_hash: string | null;
14700
- pairing_expires_at: string | null;
14701
- pairing_used_at: string | null;
14702
- token_hash: string;
14703
- updated_at: string;
14704
- versie: string;
15850
+ message: string | null;
15851
+ parsed: import("./types").Json;
15852
+ price_list_id: string;
15853
+ raw: import("./types").Json;
15854
+ row_number: number;
15855
+ supplier_product_id: string | null;
14705
15856
  };
14706
15857
  Insert: {
14707
- actief?: boolean;
15858
+ action?: string;
14708
15859
  created_at?: string;
14709
- gemelde_printers?: import("./types").Json;
14710
15860
  id?: string;
14711
- laatst_gezien?: string | null;
14712
- locatie?: string;
14713
- naam: string;
14714
- pairing_code_hash?: string | null;
14715
- pairing_expires_at?: string | null;
14716
- pairing_used_at?: string | null;
14717
- token_hash: string;
14718
- updated_at?: string;
14719
- versie?: string;
15861
+ message?: string | null;
15862
+ parsed?: import("./types").Json;
15863
+ price_list_id: string;
15864
+ raw?: import("./types").Json;
15865
+ row_number: number;
15866
+ supplier_product_id?: string | null;
14720
15867
  };
14721
15868
  Update: {
14722
- actief?: boolean;
15869
+ action?: string;
14723
15870
  created_at?: string;
14724
- gemelde_printers?: import("./types").Json;
14725
15871
  id?: string;
14726
- laatst_gezien?: string | null;
14727
- locatie?: string;
14728
- naam?: string;
14729
- pairing_code_hash?: string | null;
14730
- pairing_expires_at?: string | null;
14731
- pairing_used_at?: string | null;
14732
- token_hash?: string;
14733
- updated_at?: string;
14734
- versie?: string;
15872
+ message?: string | null;
15873
+ parsed?: import("./types").Json;
15874
+ price_list_id?: string;
15875
+ raw?: import("./types").Json;
15876
+ row_number?: number;
15877
+ supplier_product_id?: string | null;
14735
15878
  };
14736
- Relationships: [];
15879
+ Relationships: [{
15880
+ foreignKeyName: "price_list_rows_price_list_id_fkey";
15881
+ columns: ["price_list_id"];
15882
+ isOneToOne: false;
15883
+ referencedRelation: "price_lists";
15884
+ referencedColumns: ["id"];
15885
+ }, {
15886
+ foreignKeyName: "price_list_rows_supplier_product_id_fkey";
15887
+ columns: ["supplier_product_id"];
15888
+ isOneToOne: false;
15889
+ referencedRelation: "supplier_products";
15890
+ referencedColumns: ["id"];
15891
+ }];
14737
15892
  };
14738
- print_dedupe_events: {
15893
+ price_lists: {
14739
15894
  Row: {
14740
- bestaande_job_id: string | null;
14741
15895
  created_at: string;
14742
- detail: string | null;
14743
- documentnaam: string | null;
14744
- documenttype: string | null;
15896
+ created_by: string | null;
15897
+ file_hash: string | null;
15898
+ file_name: string;
15899
+ file_path: string | null;
15900
+ headers: string[];
14745
15901
  id: string;
14746
- idempotentie_sleutel: string;
14747
- reden: string;
15902
+ preview: import("./types").Json;
15903
+ processed_at: string | null;
15904
+ reason: string | null;
15905
+ row_count: number;
15906
+ sheet_name: string | null;
15907
+ source: string;
15908
+ stats: import("./types").Json;
15909
+ status: string;
15910
+ supplier_guess: string | null;
15911
+ supplier_id: string | null;
15912
+ updated_at: string;
15913
+ };
15914
+ Insert: {
15915
+ created_at?: string;
15916
+ created_by?: string | null;
15917
+ file_hash?: string | null;
15918
+ file_name: string;
15919
+ file_path?: string | null;
15920
+ headers?: string[];
15921
+ id?: string;
15922
+ preview?: import("./types").Json;
15923
+ processed_at?: string | null;
15924
+ reason?: string | null;
15925
+ row_count?: number;
15926
+ sheet_name?: string | null;
15927
+ source?: string;
15928
+ stats?: import("./types").Json;
15929
+ status?: string;
15930
+ supplier_guess?: string | null;
15931
+ supplier_id?: string | null;
15932
+ updated_at?: string;
15933
+ };
15934
+ Update: {
15935
+ created_at?: string;
15936
+ created_by?: string | null;
15937
+ file_hash?: string | null;
15938
+ file_name?: string;
15939
+ file_path?: string | null;
15940
+ headers?: string[];
15941
+ id?: string;
15942
+ preview?: import("./types").Json;
15943
+ processed_at?: string | null;
15944
+ reason?: string | null;
15945
+ row_count?: number;
15946
+ sheet_name?: string | null;
15947
+ source?: string;
15948
+ stats?: import("./types").Json;
15949
+ status?: string;
15950
+ supplier_guess?: string | null;
15951
+ supplier_id?: string | null;
15952
+ updated_at?: string;
15953
+ };
15954
+ Relationships: [{
15955
+ foreignKeyName: "price_lists_supplier_id_fkey";
15956
+ columns: ["supplier_id"];
15957
+ isOneToOne: false;
15958
+ referencedRelation: "suppliers";
15959
+ referencedColumns: ["id"];
15960
+ }];
15961
+ };
15962
+ print_agents: {
15963
+ Row: {
15964
+ actief: boolean;
15965
+ created_at: string;
15966
+ gemelde_printers: import("./types").Json;
15967
+ id: string;
15968
+ laatst_gezien: string | null;
15969
+ locatie: string;
15970
+ naam: string;
15971
+ pairing_code_hash: string | null;
15972
+ pairing_expires_at: string | null;
15973
+ pairing_used_at: string | null;
15974
+ token_hash: string;
15975
+ updated_at: string;
15976
+ versie: string;
15977
+ };
15978
+ Insert: {
15979
+ actief?: boolean;
15980
+ created_at?: string;
15981
+ gemelde_printers?: import("./types").Json;
15982
+ id?: string;
15983
+ laatst_gezien?: string | null;
15984
+ locatie?: string;
15985
+ naam: string;
15986
+ pairing_code_hash?: string | null;
15987
+ pairing_expires_at?: string | null;
15988
+ pairing_used_at?: string | null;
15989
+ token_hash: string;
15990
+ updated_at?: string;
15991
+ versie?: string;
15992
+ };
15993
+ Update: {
15994
+ actief?: boolean;
15995
+ created_at?: string;
15996
+ gemelde_printers?: import("./types").Json;
15997
+ id?: string;
15998
+ laatst_gezien?: string | null;
15999
+ locatie?: string;
16000
+ naam?: string;
16001
+ pairing_code_hash?: string | null;
16002
+ pairing_expires_at?: string | null;
16003
+ pairing_used_at?: string | null;
16004
+ token_hash?: string;
16005
+ updated_at?: string;
16006
+ versie?: string;
16007
+ };
16008
+ Relationships: [];
16009
+ };
16010
+ print_dedupe_events: {
16011
+ Row: {
16012
+ bestaande_job_id: string | null;
16013
+ created_at: string;
16014
+ detail: string | null;
16015
+ documentnaam: string | null;
16016
+ documenttype: string | null;
16017
+ id: string;
16018
+ idempotentie_sleutel: string;
16019
+ reden: string;
14748
16020
  };
14749
16021
  Insert: {
14750
16022
  bestaande_job_id?: string | null;
@@ -16244,30 +17516,108 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
16244
17516
  referencedColumns: ["id"];
16245
17517
  }];
16246
17518
  };
17519
+ purchase_order_dispatches: {
17520
+ Row: {
17521
+ created_at: string;
17522
+ id: string;
17523
+ last_error: string | null;
17524
+ outbox_id: string | null;
17525
+ purchase_order_id: string;
17526
+ status: string;
17527
+ supplier_id: string | null;
17528
+ supplier_name: string;
17529
+ to_address: string;
17530
+ updated_at: string;
17531
+ };
17532
+ Insert: {
17533
+ created_at?: string;
17534
+ id?: string;
17535
+ last_error?: string | null;
17536
+ outbox_id?: string | null;
17537
+ purchase_order_id: string;
17538
+ status?: string;
17539
+ supplier_id?: string | null;
17540
+ supplier_name?: string;
17541
+ to_address: string;
17542
+ updated_at?: string;
17543
+ };
17544
+ Update: {
17545
+ created_at?: string;
17546
+ id?: string;
17547
+ last_error?: string | null;
17548
+ outbox_id?: string | null;
17549
+ purchase_order_id?: string;
17550
+ status?: string;
17551
+ supplier_id?: string | null;
17552
+ supplier_name?: string;
17553
+ to_address?: string;
17554
+ updated_at?: string;
17555
+ };
17556
+ Relationships: [{
17557
+ foreignKeyName: "purchase_order_dispatches_purchase_order_id_fkey";
17558
+ columns: ["purchase_order_id"];
17559
+ isOneToOne: false;
17560
+ referencedRelation: "purchase_orders";
17561
+ referencedColumns: ["id"];
17562
+ }, {
17563
+ foreignKeyName: "purchase_order_dispatches_supplier_id_fkey";
17564
+ columns: ["supplier_id"];
17565
+ isOneToOne: false;
17566
+ referencedRelation: "suppliers";
17567
+ referencedColumns: ["id"];
17568
+ }];
17569
+ };
16247
17570
  purchase_order_items: {
16248
17571
  Row: {
17572
+ article_number: string | null;
16249
17573
  created_at: string;
17574
+ delivery_date: string | null;
16250
17575
  id: string;
17576
+ name: string;
17577
+ note: string | null;
17578
+ pot_size: string | null;
16251
17579
  product_id: string | null;
16252
17580
  product_type: string;
16253
17581
  purchase_order_id: string;
16254
17582
  quantity: number;
17583
+ supplier_id: string | null;
17584
+ supplier_product_id: string | null;
17585
+ unit_price_cents: number;
17586
+ updated_at: string;
16255
17587
  };
16256
17588
  Insert: {
17589
+ article_number?: string | null;
16257
17590
  created_at?: string;
17591
+ delivery_date?: string | null;
16258
17592
  id?: string;
17593
+ name?: string;
17594
+ note?: string | null;
17595
+ pot_size?: string | null;
16259
17596
  product_id?: string | null;
16260
17597
  product_type?: string;
16261
17598
  purchase_order_id: string;
16262
17599
  quantity?: number;
17600
+ supplier_id?: string | null;
17601
+ supplier_product_id?: string | null;
17602
+ unit_price_cents?: number;
17603
+ updated_at?: string;
16263
17604
  };
16264
17605
  Update: {
17606
+ article_number?: string | null;
16265
17607
  created_at?: string;
17608
+ delivery_date?: string | null;
16266
17609
  id?: string;
17610
+ name?: string;
17611
+ note?: string | null;
17612
+ pot_size?: string | null;
16267
17613
  product_id?: string | null;
16268
17614
  product_type?: string;
16269
17615
  purchase_order_id?: string;
16270
17616
  quantity?: number;
17617
+ supplier_id?: string | null;
17618
+ supplier_product_id?: string | null;
17619
+ unit_price_cents?: number;
17620
+ updated_at?: string;
16271
17621
  };
16272
17622
  Relationships: [{
16273
17623
  foreignKeyName: "purchase_order_items_product_id_fkey";
@@ -16287,43 +17637,70 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
16287
17637
  isOneToOne: false;
16288
17638
  referencedRelation: "purchase_orders";
16289
17639
  referencedColumns: ["id"];
17640
+ }, {
17641
+ foreignKeyName: "purchase_order_items_supplier_id_fkey";
17642
+ columns: ["supplier_id"];
17643
+ isOneToOne: false;
17644
+ referencedRelation: "suppliers";
17645
+ referencedColumns: ["id"];
17646
+ }, {
17647
+ foreignKeyName: "purchase_order_items_supplier_product_id_fkey";
17648
+ columns: ["supplier_product_id"];
17649
+ isOneToOne: false;
17650
+ referencedRelation: "supplier_products";
17651
+ referencedColumns: ["id"];
16290
17652
  }];
16291
17653
  };
16292
17654
  purchase_orders: {
16293
17655
  Row: {
17656
+ contact_person: string | null;
16294
17657
  created_at: string;
17658
+ created_by: string | null;
16295
17659
  expected_delivery_date: string;
16296
17660
  id: string;
16297
17661
  location_id: string | null;
16298
17662
  notes: string | null;
16299
17663
  order_number: string;
17664
+ reference: string | null;
17665
+ sent_at: string | null;
16300
17666
  status: string;
16301
17667
  supplier_id: string | null;
16302
17668
  supplier_name: string;
17669
+ total_cents: number;
16303
17670
  updated_at: string;
16304
17671
  };
16305
17672
  Insert: {
17673
+ contact_person?: string | null;
16306
17674
  created_at?: string;
16307
- expected_delivery_date: string;
17675
+ created_by?: string | null;
17676
+ expected_delivery_date?: string;
16308
17677
  id?: string;
16309
17678
  location_id?: string | null;
16310
17679
  notes?: string | null;
16311
- order_number: string;
17680
+ order_number?: string;
17681
+ reference?: string | null;
17682
+ sent_at?: string | null;
16312
17683
  status?: string;
16313
17684
  supplier_id?: string | null;
16314
17685
  supplier_name?: string;
17686
+ total_cents?: number;
16315
17687
  updated_at?: string;
16316
17688
  };
16317
17689
  Update: {
17690
+ contact_person?: string | null;
16318
17691
  created_at?: string;
17692
+ created_by?: string | null;
16319
17693
  expected_delivery_date?: string;
16320
17694
  id?: string;
16321
17695
  location_id?: string | null;
16322
17696
  notes?: string | null;
16323
17697
  order_number?: string;
17698
+ reference?: string | null;
17699
+ sent_at?: string | null;
16324
17700
  status?: string;
16325
17701
  supplier_id?: string | null;
16326
17702
  supplier_name?: string;
17703
+ total_cents?: number;
16327
17704
  updated_at?: string;
16328
17705
  };
16329
17706
  Relationships: [{
@@ -17210,101 +18587,293 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
17210
18587
  };
17211
18588
  Relationships: [];
17212
18589
  };
17213
- supplier_products: {
18590
+ supplier_contacts: {
17214
18591
  Row: {
17215
- article_number: string | null;
17216
18592
  created_at: string;
18593
+ email: string | null;
17217
18594
  id: string;
18595
+ is_primary: boolean;
17218
18596
  name: string;
17219
- notes: string | null;
17220
- pot_size: string | null;
17221
- price: number | null;
17222
- quantity: number | null;
18597
+ phone: string | null;
18598
+ role: string | null;
17223
18599
  supplier_id: string;
17224
- unit: string;
17225
18600
  updated_at: string;
17226
18601
  };
17227
18602
  Insert: {
17228
- article_number?: string | null;
17229
18603
  created_at?: string;
18604
+ email?: string | null;
17230
18605
  id?: string;
18606
+ is_primary?: boolean;
17231
18607
  name: string;
17232
- notes?: string | null;
17233
- pot_size?: string | null;
17234
- price?: number | null;
17235
- quantity?: number | null;
18608
+ phone?: string | null;
18609
+ role?: string | null;
17236
18610
  supplier_id: string;
17237
- unit?: string;
17238
18611
  updated_at?: string;
17239
18612
  };
17240
18613
  Update: {
17241
- article_number?: string | null;
17242
18614
  created_at?: string;
18615
+ email?: string | null;
17243
18616
  id?: string;
18617
+ is_primary?: boolean;
17244
18618
  name?: string;
17245
- notes?: string | null;
17246
- pot_size?: string | null;
17247
- price?: number | null;
17248
- quantity?: number | null;
18619
+ phone?: string | null;
18620
+ role?: string | null;
17249
18621
  supplier_id?: string;
17250
- unit?: string;
17251
18622
  updated_at?: string;
17252
18623
  };
17253
18624
  Relationships: [{
17254
- foreignKeyName: "supplier_products_supplier_id_fkey";
18625
+ foreignKeyName: "supplier_contacts_supplier_id_fkey";
17255
18626
  columns: ["supplier_id"];
17256
18627
  isOneToOne: false;
17257
18628
  referencedRelation: "suppliers";
17258
18629
  referencedColumns: ["id"];
17259
18630
  }];
17260
18631
  };
17261
- suppliers: {
18632
+ supplier_price_history: {
17262
18633
  Row: {
17263
- address: string | null;
17264
- column_mappings: import("./types").Json | null;
17265
- contact_person: string | null;
17266
18634
  created_at: string;
17267
- default_product_type: string;
17268
- email: string | null;
17269
18635
  id: string;
17270
- imported_file_name: string | null;
17271
- name: string;
17272
- notes: string | null;
17273
- phone: string | null;
17274
- updated_at: string;
18636
+ new_price_cents: number;
18637
+ old_price_cents: number | null;
18638
+ price_list_id: string | null;
18639
+ supplier_id: string | null;
18640
+ supplier_product_id: string;
17275
18641
  };
17276
18642
  Insert: {
17277
- address?: string | null;
17278
- column_mappings?: import("./types").Json | null;
17279
- contact_person?: string | null;
17280
18643
  created_at?: string;
17281
- default_product_type?: string;
17282
- email?: string | null;
17283
18644
  id?: string;
17284
- imported_file_name?: string | null;
17285
- name: string;
17286
- notes?: string | null;
17287
- phone?: string | null;
17288
- updated_at?: string;
18645
+ new_price_cents: number;
18646
+ old_price_cents?: number | null;
18647
+ price_list_id?: string | null;
18648
+ supplier_id?: string | null;
18649
+ supplier_product_id: string;
17289
18650
  };
17290
18651
  Update: {
17291
- address?: string | null;
17292
- column_mappings?: import("./types").Json | null;
17293
- contact_person?: string | null;
17294
18652
  created_at?: string;
17295
- default_product_type?: string;
17296
- email?: string | null;
17297
18653
  id?: string;
17298
- imported_file_name?: string | null;
17299
- name?: string;
17300
- notes?: string | null;
17301
- phone?: string | null;
17302
- updated_at?: string;
18654
+ new_price_cents?: number;
18655
+ old_price_cents?: number | null;
18656
+ price_list_id?: string | null;
18657
+ supplier_id?: string | null;
18658
+ supplier_product_id?: string;
17303
18659
  };
17304
- Relationships: [];
17305
- };
17306
- tba_article_cache: {
17307
- Row: {
18660
+ Relationships: [{
18661
+ foreignKeyName: "supplier_price_history_price_list_id_fkey";
18662
+ columns: ["price_list_id"];
18663
+ isOneToOne: false;
18664
+ referencedRelation: "price_lists";
18665
+ referencedColumns: ["id"];
18666
+ }, {
18667
+ foreignKeyName: "supplier_price_history_supplier_product_id_fkey";
18668
+ columns: ["supplier_product_id"];
18669
+ isOneToOne: false;
18670
+ referencedRelation: "supplier_products";
18671
+ referencedColumns: ["id"];
18672
+ }];
18673
+ };
18674
+ supplier_price_list_mappings: {
18675
+ Row: {
18676
+ column_map: import("./types").Json;
18677
+ created_at: string;
18678
+ deactivate_missing: boolean;
18679
+ decimal_separator: string;
18680
+ expected_headers: string[];
18681
+ extract_pot_from_name: boolean;
18682
+ header_row: number;
18683
+ id: string;
18684
+ max_error_ratio: number;
18685
+ price_is_cents: boolean;
18686
+ sheet_name: string | null;
18687
+ supplier_id: string;
18688
+ updated_at: string;
18689
+ };
18690
+ Insert: {
18691
+ column_map?: import("./types").Json;
18692
+ created_at?: string;
18693
+ deactivate_missing?: boolean;
18694
+ decimal_separator?: string;
18695
+ expected_headers?: string[];
18696
+ extract_pot_from_name?: boolean;
18697
+ header_row?: number;
18698
+ id?: string;
18699
+ max_error_ratio?: number;
18700
+ price_is_cents?: boolean;
18701
+ sheet_name?: string | null;
18702
+ supplier_id: string;
18703
+ updated_at?: string;
18704
+ };
18705
+ Update: {
18706
+ column_map?: import("./types").Json;
18707
+ created_at?: string;
18708
+ deactivate_missing?: boolean;
18709
+ decimal_separator?: string;
18710
+ expected_headers?: string[];
18711
+ extract_pot_from_name?: boolean;
18712
+ header_row?: number;
18713
+ id?: string;
18714
+ max_error_ratio?: number;
18715
+ price_is_cents?: boolean;
18716
+ sheet_name?: string | null;
18717
+ supplier_id?: string;
18718
+ updated_at?: string;
18719
+ };
18720
+ Relationships: [{
18721
+ foreignKeyName: "supplier_price_list_mappings_supplier_id_fkey";
18722
+ columns: ["supplier_id"];
18723
+ isOneToOne: true;
18724
+ referencedRelation: "suppliers";
18725
+ referencedColumns: ["id"];
18726
+ }];
18727
+ };
18728
+ supplier_products: {
18729
+ Row: {
18730
+ article_number: string | null;
18731
+ available_quantity: number;
18732
+ created_at: string;
18733
+ height: string | null;
18734
+ id: string;
18735
+ is_active: boolean;
18736
+ min_order: number;
18737
+ name: string;
18738
+ notes: string | null;
18739
+ order_unit: number;
18740
+ pot_size: string | null;
18741
+ price: number | null;
18742
+ price_cents: number;
18743
+ quality: string | null;
18744
+ quantity: number | null;
18745
+ supplier_id: string;
18746
+ unit: string;
18747
+ updated_at: string;
18748
+ };
18749
+ Insert: {
18750
+ article_number?: string | null;
18751
+ available_quantity?: number;
18752
+ created_at?: string;
18753
+ height?: string | null;
18754
+ id?: string;
18755
+ is_active?: boolean;
18756
+ min_order?: number;
18757
+ name: string;
18758
+ notes?: string | null;
18759
+ order_unit?: number;
18760
+ pot_size?: string | null;
18761
+ price?: number | null;
18762
+ price_cents?: number;
18763
+ quality?: string | null;
18764
+ quantity?: number | null;
18765
+ supplier_id: string;
18766
+ unit?: string;
18767
+ updated_at?: string;
18768
+ };
18769
+ Update: {
18770
+ article_number?: string | null;
18771
+ available_quantity?: number;
18772
+ created_at?: string;
18773
+ height?: string | null;
18774
+ id?: string;
18775
+ is_active?: boolean;
18776
+ min_order?: number;
18777
+ name?: string;
18778
+ notes?: string | null;
18779
+ order_unit?: number;
18780
+ pot_size?: string | null;
18781
+ price?: number | null;
18782
+ price_cents?: number;
18783
+ quality?: string | null;
18784
+ quantity?: number | null;
18785
+ supplier_id?: string;
18786
+ unit?: string;
18787
+ updated_at?: string;
18788
+ };
18789
+ Relationships: [{
18790
+ foreignKeyName: "supplier_products_supplier_id_fkey";
18791
+ columns: ["supplier_id"];
18792
+ isOneToOne: false;
18793
+ referencedRelation: "suppliers";
18794
+ referencedColumns: ["id"];
18795
+ }];
18796
+ };
18797
+ suppliers: {
18798
+ Row: {
18799
+ address: string | null;
18800
+ category: string | null;
18801
+ column_mappings: import("./types").Json | null;
18802
+ contact_person: string | null;
18803
+ created_at: string;
18804
+ default_product_type: string;
18805
+ email: string | null;
18806
+ id: string;
18807
+ imported_file_name: string | null;
18808
+ is_preferred: boolean;
18809
+ kvk_number: string | null;
18810
+ lead_time_days: number | null;
18811
+ min_order_amount_cents: number;
18812
+ name: string;
18813
+ notes: string | null;
18814
+ order_days: string[];
18815
+ order_email: string | null;
18816
+ payment_terms_days: number | null;
18817
+ phone: string | null;
18818
+ status: string;
18819
+ updated_at: string;
18820
+ vat_number: string | null;
18821
+ website: string | null;
18822
+ };
18823
+ Insert: {
18824
+ address?: string | null;
18825
+ category?: string | null;
18826
+ column_mappings?: import("./types").Json | null;
18827
+ contact_person?: string | null;
18828
+ created_at?: string;
18829
+ default_product_type?: string;
18830
+ email?: string | null;
18831
+ id?: string;
18832
+ imported_file_name?: string | null;
18833
+ is_preferred?: boolean;
18834
+ kvk_number?: string | null;
18835
+ lead_time_days?: number | null;
18836
+ min_order_amount_cents?: number;
18837
+ name: string;
18838
+ notes?: string | null;
18839
+ order_days?: string[];
18840
+ order_email?: string | null;
18841
+ payment_terms_days?: number | null;
18842
+ phone?: string | null;
18843
+ status?: string;
18844
+ updated_at?: string;
18845
+ vat_number?: string | null;
18846
+ website?: string | null;
18847
+ };
18848
+ Update: {
18849
+ address?: string | null;
18850
+ category?: string | null;
18851
+ column_mappings?: import("./types").Json | null;
18852
+ contact_person?: string | null;
18853
+ created_at?: string;
18854
+ default_product_type?: string;
18855
+ email?: string | null;
18856
+ id?: string;
18857
+ imported_file_name?: string | null;
18858
+ is_preferred?: boolean;
18859
+ kvk_number?: string | null;
18860
+ lead_time_days?: number | null;
18861
+ min_order_amount_cents?: number;
18862
+ name?: string;
18863
+ notes?: string | null;
18864
+ order_days?: string[];
18865
+ order_email?: string | null;
18866
+ payment_terms_days?: number | null;
18867
+ phone?: string | null;
18868
+ status?: string;
18869
+ updated_at?: string;
18870
+ vat_number?: string | null;
18871
+ website?: string | null;
18872
+ };
18873
+ Relationships: [];
18874
+ };
18875
+ tba_article_cache: {
18876
+ Row: {
17308
18877
  article_number: string;
17309
18878
  created_at: string;
17310
18879
  fetched_at: string;
@@ -18301,11 +19870,13 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
18301
19870
  auto_invoice_trigger_statuses: string[];
18302
19871
  created_at: string;
18303
19872
  debtor_gl_account: string;
19873
+ default_article_code: string | null;
18304
19874
  default_credit_invoice_type: string | null;
18305
19875
  default_gl_account: string;
18306
19876
  default_invoice_type: string;
18307
19877
  default_payment_term_days: number;
18308
19878
  default_vat_code: string;
19879
+ email_purpose: string | null;
18309
19880
  home_country_code: string;
18310
19881
  invoice_enabled_ao: boolean;
18311
19882
  invoice_enabled_fo: boolean;
@@ -18327,11 +19898,13 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
18327
19898
  auto_invoice_trigger_statuses?: string[];
18328
19899
  created_at?: string;
18329
19900
  debtor_gl_account?: string;
19901
+ default_article_code?: string | null;
18330
19902
  default_credit_invoice_type?: string | null;
18331
19903
  default_gl_account?: string;
18332
19904
  default_invoice_type?: string;
18333
19905
  default_payment_term_days?: number;
18334
19906
  default_vat_code?: string;
19907
+ email_purpose?: string | null;
18335
19908
  home_country_code?: string;
18336
19909
  invoice_enabled_ao?: boolean;
18337
19910
  invoice_enabled_fo?: boolean;
@@ -18353,11 +19926,13 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
18353
19926
  auto_invoice_trigger_statuses?: string[];
18354
19927
  created_at?: string;
18355
19928
  debtor_gl_account?: string;
19929
+ default_article_code?: string | null;
18356
19930
  default_credit_invoice_type?: string | null;
18357
19931
  default_gl_account?: string;
18358
19932
  default_invoice_type?: string;
18359
19933
  default_payment_term_days?: number;
18360
19934
  default_vat_code?: string;
19935
+ email_purpose?: string | null;
18361
19936
  home_country_code?: string;
18362
19937
  invoice_enabled_ao?: boolean;
18363
19938
  invoice_enabled_fo?: boolean;
@@ -19250,6 +20825,36 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
19250
20825
  referencedColumns: ["id"];
19251
20826
  }];
19252
20827
  };
20828
+ voorraad_buffer_state: {
20829
+ Row: {
20830
+ buffer_id: string;
20831
+ buffer_key: string | null;
20832
+ closed_at: string | null;
20833
+ created_at: string;
20834
+ detached_orders: import("./types").Json;
20835
+ reason: string | null;
20836
+ updated_at: string;
20837
+ };
20838
+ Insert: {
20839
+ buffer_id: string;
20840
+ buffer_key?: string | null;
20841
+ closed_at?: string | null;
20842
+ created_at?: string;
20843
+ detached_orders?: import("./types").Json;
20844
+ reason?: string | null;
20845
+ updated_at?: string;
20846
+ };
20847
+ Update: {
20848
+ buffer_id?: string;
20849
+ buffer_key?: string | null;
20850
+ closed_at?: string | null;
20851
+ created_at?: string;
20852
+ detached_orders?: import("./types").Json;
20853
+ reason?: string | null;
20854
+ updated_at?: string;
20855
+ };
20856
+ Relationships: [];
20857
+ };
19253
20858
  voorraad_custom_fields: {
19254
20859
  Row: {
19255
20860
  created_at: string;
@@ -19292,6 +20897,36 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
19292
20897
  };
19293
20898
  Relationships: [];
19294
20899
  };
20900
+ voorraad_logistics_event_log: {
20901
+ Row: {
20902
+ created_at: string;
20903
+ event_id: string;
20904
+ event_type: string;
20905
+ order_ref: string | null;
20906
+ processed_at: string;
20907
+ result: import("./types").Json;
20908
+ updated_at: string;
20909
+ };
20910
+ Insert: {
20911
+ created_at?: string;
20912
+ event_id: string;
20913
+ event_type: string;
20914
+ order_ref?: string | null;
20915
+ processed_at?: string;
20916
+ result?: import("./types").Json;
20917
+ updated_at?: string;
20918
+ };
20919
+ Update: {
20920
+ created_at?: string;
20921
+ event_id?: string;
20922
+ event_type?: string;
20923
+ order_ref?: string | null;
20924
+ processed_at?: string;
20925
+ result?: import("./types").Json;
20926
+ updated_at?: string;
20927
+ };
20928
+ Relationships: [];
20929
+ };
19295
20930
  voorraad_media_upload_failures: {
19296
20931
  Row: {
19297
20932
  action: string;
@@ -19559,6 +21194,42 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
19559
21194
  referencedColumns: ["id"];
19560
21195
  }];
19561
21196
  };
21197
+ werkbon_email_state: {
21198
+ Row: {
21199
+ created_at: string;
21200
+ event_id: string;
21201
+ id: string;
21202
+ is_archived: boolean;
21203
+ is_read: boolean;
21204
+ updated_at: string;
21205
+ werkbon_id: string | null;
21206
+ };
21207
+ Insert: {
21208
+ created_at?: string;
21209
+ event_id: string;
21210
+ id?: string;
21211
+ is_archived?: boolean;
21212
+ is_read?: boolean;
21213
+ updated_at?: string;
21214
+ werkbon_id?: string | null;
21215
+ };
21216
+ Update: {
21217
+ created_at?: string;
21218
+ event_id?: string;
21219
+ id?: string;
21220
+ is_archived?: boolean;
21221
+ is_read?: boolean;
21222
+ updated_at?: string;
21223
+ werkbon_id?: string | null;
21224
+ };
21225
+ Relationships: [{
21226
+ foreignKeyName: "werkbon_email_state_event_id_fkey";
21227
+ columns: ["event_id"];
21228
+ isOneToOne: true;
21229
+ referencedRelation: "email_auth_events";
21230
+ referencedColumns: ["id"];
21231
+ }];
21232
+ };
19562
21233
  werkbon_export_runs: {
19563
21234
  Row: {
19564
21235
  created_at: string;
@@ -19712,38 +21383,179 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
19712
21383
  };
19713
21384
  Relationships: [];
19714
21385
  };
19715
- werkbon_materials: {
21386
+ werkbon_mail_ai_settings: {
19716
21387
  Row: {
19717
- article_number: string | null;
19718
21388
  created_at: string;
19719
- created_by: string | null;
19720
- description: string;
19721
- id: string;
19722
- quantity: number;
19723
- source: string;
19724
- unit: string;
19725
- unit_price_cents: number;
21389
+ id: boolean;
21390
+ required_fields: string[];
21391
+ system_prompt: string;
19726
21392
  updated_at: string;
19727
- werkbon_id: string;
21393
+ updated_by: string | null;
19728
21394
  };
19729
21395
  Insert: {
19730
- article_number?: string | null;
19731
21396
  created_at?: string;
19732
- created_by?: string | null;
19733
- description: string;
19734
- id?: string;
19735
- quantity?: number;
19736
- source?: string;
19737
- unit?: string;
19738
- unit_price_cents?: number;
21397
+ id?: boolean;
21398
+ required_fields?: string[];
21399
+ system_prompt?: string;
19739
21400
  updated_at?: string;
19740
- werkbon_id: string;
21401
+ updated_by?: string | null;
19741
21402
  };
19742
21403
  Update: {
19743
- article_number?: string | null;
19744
21404
  created_at?: string;
19745
- created_by?: string | null;
19746
- description?: string;
21405
+ id?: boolean;
21406
+ required_fields?: string[];
21407
+ system_prompt?: string;
21408
+ updated_at?: string;
21409
+ updated_by?: string | null;
21410
+ };
21411
+ Relationships: [];
21412
+ };
21413
+ werkbon_mail_bodies: {
21414
+ Row: {
21415
+ created_at: string;
21416
+ event_id: string;
21417
+ fetch_error: string | null;
21418
+ fetched_at: string | null;
21419
+ html: string | null;
21420
+ updated_at: string;
21421
+ };
21422
+ Insert: {
21423
+ created_at?: string;
21424
+ event_id: string;
21425
+ fetch_error?: string | null;
21426
+ fetched_at?: string | null;
21427
+ html?: string | null;
21428
+ updated_at?: string;
21429
+ };
21430
+ Update: {
21431
+ created_at?: string;
21432
+ event_id?: string;
21433
+ fetch_error?: string | null;
21434
+ fetched_at?: string | null;
21435
+ html?: string | null;
21436
+ updated_at?: string;
21437
+ };
21438
+ Relationships: [];
21439
+ };
21440
+ werkbon_mail_inline_assets: {
21441
+ Row: {
21442
+ content_id: string | null;
21443
+ created_at: string;
21444
+ event_id: string;
21445
+ filename: string | null;
21446
+ id: string;
21447
+ is_inline: boolean;
21448
+ mime_type: string | null;
21449
+ size_bytes: number | null;
21450
+ storage_path: string;
21451
+ };
21452
+ Insert: {
21453
+ content_id?: string | null;
21454
+ created_at?: string;
21455
+ event_id: string;
21456
+ filename?: string | null;
21457
+ id?: string;
21458
+ is_inline?: boolean;
21459
+ mime_type?: string | null;
21460
+ size_bytes?: number | null;
21461
+ storage_path: string;
21462
+ };
21463
+ Update: {
21464
+ content_id?: string | null;
21465
+ created_at?: string;
21466
+ event_id?: string;
21467
+ filename?: string | null;
21468
+ id?: string;
21469
+ is_inline?: boolean;
21470
+ mime_type?: string | null;
21471
+ size_bytes?: number | null;
21472
+ storage_path?: string;
21473
+ };
21474
+ Relationships: [];
21475
+ };
21476
+ werkbon_mail_settings: {
21477
+ Row: {
21478
+ connection_id: string | null;
21479
+ connection_ids: string[];
21480
+ created_at: string;
21481
+ id: boolean;
21482
+ purposes: string[];
21483
+ source: string;
21484
+ updated_at: string;
21485
+ };
21486
+ Insert: {
21487
+ connection_id?: string | null;
21488
+ connection_ids?: string[];
21489
+ created_at?: string;
21490
+ id?: boolean;
21491
+ purposes?: string[];
21492
+ source?: string;
21493
+ updated_at?: string;
21494
+ };
21495
+ Update: {
21496
+ connection_id?: string | null;
21497
+ connection_ids?: string[];
21498
+ created_at?: string;
21499
+ id?: boolean;
21500
+ purposes?: string[];
21501
+ source?: string;
21502
+ updated_at?: string;
21503
+ };
21504
+ Relationships: [];
21505
+ };
21506
+ werkbon_mail_user_settings: {
21507
+ Row: {
21508
+ created_at: string;
21509
+ email_purpose: string | null;
21510
+ updated_at: string;
21511
+ user_id: string;
21512
+ };
21513
+ Insert: {
21514
+ created_at?: string;
21515
+ email_purpose?: string | null;
21516
+ updated_at?: string;
21517
+ user_id: string;
21518
+ };
21519
+ Update: {
21520
+ created_at?: string;
21521
+ email_purpose?: string | null;
21522
+ updated_at?: string;
21523
+ user_id?: string;
21524
+ };
21525
+ Relationships: [];
21526
+ };
21527
+ werkbon_materials: {
21528
+ Row: {
21529
+ article_number: string | null;
21530
+ created_at: string;
21531
+ created_by: string | null;
21532
+ description: string;
21533
+ id: string;
21534
+ quantity: number;
21535
+ source: string;
21536
+ unit: string;
21537
+ unit_price_cents: number;
21538
+ updated_at: string;
21539
+ werkbon_id: string;
21540
+ };
21541
+ Insert: {
21542
+ article_number?: string | null;
21543
+ created_at?: string;
21544
+ created_by?: string | null;
21545
+ description: string;
21546
+ id?: string;
21547
+ quantity?: number;
21548
+ source?: string;
21549
+ unit?: string;
21550
+ unit_price_cents?: number;
21551
+ updated_at?: string;
21552
+ werkbon_id: string;
21553
+ };
21554
+ Update: {
21555
+ article_number?: string | null;
21556
+ created_at?: string;
21557
+ created_by?: string | null;
21558
+ description?: string;
19747
21559
  id?: string;
19748
21560
  quantity?: number;
19749
21561
  source?: string;
@@ -20051,6 +21863,156 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
20051
21863
  referencedColumns: ["id"];
20052
21864
  }];
20053
21865
  };
21866
+ werkbon_proposal_lines: {
21867
+ Row: {
21868
+ article_number: string | null;
21869
+ created_at: string;
21870
+ description: string | null;
21871
+ id: string;
21872
+ line_type: string;
21873
+ note: string | null;
21874
+ package_id: string | null;
21875
+ proposal_id: string;
21876
+ quantity: number | null;
21877
+ sort_order: number;
21878
+ unit: string | null;
21879
+ updated_at: string;
21880
+ };
21881
+ Insert: {
21882
+ article_number?: string | null;
21883
+ created_at?: string;
21884
+ description?: string | null;
21885
+ id?: string;
21886
+ line_type?: string;
21887
+ note?: string | null;
21888
+ package_id?: string | null;
21889
+ proposal_id: string;
21890
+ quantity?: number | null;
21891
+ sort_order?: number;
21892
+ unit?: string | null;
21893
+ updated_at?: string;
21894
+ };
21895
+ Update: {
21896
+ article_number?: string | null;
21897
+ created_at?: string;
21898
+ description?: string | null;
21899
+ id?: string;
21900
+ line_type?: string;
21901
+ note?: string | null;
21902
+ package_id?: string | null;
21903
+ proposal_id?: string;
21904
+ quantity?: number | null;
21905
+ sort_order?: number;
21906
+ unit?: string | null;
21907
+ updated_at?: string;
21908
+ };
21909
+ Relationships: [{
21910
+ foreignKeyName: "werkbon_proposal_lines_proposal_id_fkey";
21911
+ columns: ["proposal_id"];
21912
+ isOneToOne: false;
21913
+ referencedRelation: "werkbon_proposals";
21914
+ referencedColumns: ["id"];
21915
+ }];
21916
+ };
21917
+ werkbon_proposals: {
21918
+ Row: {
21919
+ analysed: boolean;
21920
+ budget_mandate_cents: number;
21921
+ complaint_description: string | null;
21922
+ contact_id: string | null;
21923
+ created_at: string;
21924
+ created_werkbon_id: string | null;
21925
+ customer_id: string | null;
21926
+ deadline_date: string | null;
21927
+ estimated_days: number | null;
21928
+ estimated_duration_minutes: number | null;
21929
+ event_id: string;
21930
+ external_id: string | null;
21931
+ externe_referentie: string | null;
21932
+ from_email: string | null;
21933
+ from_name: string | null;
21934
+ id: string;
21935
+ internal_notes: string | null;
21936
+ parsed_payload: import("./types").Json;
21937
+ received_at: string | null;
21938
+ reviewed_at: string | null;
21939
+ reviewed_by: string | null;
21940
+ room_number: string | null;
21941
+ scheduled_end_time: string | null;
21942
+ scheduled_start_time: string | null;
21943
+ status: string;
21944
+ subject: string | null;
21945
+ technician_id: string | null;
21946
+ technician_task_description: string | null;
21947
+ updated_at: string;
21948
+ work_address: string | null;
21949
+ };
21950
+ Insert: {
21951
+ analysed?: boolean;
21952
+ budget_mandate_cents?: number;
21953
+ complaint_description?: string | null;
21954
+ contact_id?: string | null;
21955
+ created_at?: string;
21956
+ created_werkbon_id?: string | null;
21957
+ customer_id?: string | null;
21958
+ deadline_date?: string | null;
21959
+ estimated_days?: number | null;
21960
+ estimated_duration_minutes?: number | null;
21961
+ event_id: string;
21962
+ external_id?: string | null;
21963
+ externe_referentie?: string | null;
21964
+ from_email?: string | null;
21965
+ from_name?: string | null;
21966
+ id?: string;
21967
+ internal_notes?: string | null;
21968
+ parsed_payload?: import("./types").Json;
21969
+ received_at?: string | null;
21970
+ reviewed_at?: string | null;
21971
+ reviewed_by?: string | null;
21972
+ room_number?: string | null;
21973
+ scheduled_end_time?: string | null;
21974
+ scheduled_start_time?: string | null;
21975
+ status?: string;
21976
+ subject?: string | null;
21977
+ technician_id?: string | null;
21978
+ technician_task_description?: string | null;
21979
+ updated_at?: string;
21980
+ work_address?: string | null;
21981
+ };
21982
+ Update: {
21983
+ analysed?: boolean;
21984
+ budget_mandate_cents?: number;
21985
+ complaint_description?: string | null;
21986
+ contact_id?: string | null;
21987
+ created_at?: string;
21988
+ created_werkbon_id?: string | null;
21989
+ customer_id?: string | null;
21990
+ deadline_date?: string | null;
21991
+ estimated_days?: number | null;
21992
+ estimated_duration_minutes?: number | null;
21993
+ event_id?: string;
21994
+ external_id?: string | null;
21995
+ externe_referentie?: string | null;
21996
+ from_email?: string | null;
21997
+ from_name?: string | null;
21998
+ id?: string;
21999
+ internal_notes?: string | null;
22000
+ parsed_payload?: import("./types").Json;
22001
+ received_at?: string | null;
22002
+ reviewed_at?: string | null;
22003
+ reviewed_by?: string | null;
22004
+ room_number?: string | null;
22005
+ scheduled_end_time?: string | null;
22006
+ scheduled_start_time?: string | null;
22007
+ status?: string;
22008
+ subject?: string | null;
22009
+ technician_id?: string | null;
22010
+ technician_task_description?: string | null;
22011
+ updated_at?: string;
22012
+ work_address?: string | null;
22013
+ };
22014
+ Relationships: [];
22015
+ };
20054
22016
  werkbon_time_logs: {
20055
22017
  Row: {
20056
22018
  activity: string;
@@ -20104,6 +22066,9 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
20104
22066
  created_at: string;
20105
22067
  created_by: string | null;
20106
22068
  customer_id: string | null;
22069
+ deadline_date: string | null;
22070
+ estimated_days: number | null;
22071
+ estimated_duration_minutes: number | null;
20107
22072
  externe_referentie: string | null;
20108
22073
  extra_costs_cents: number;
20109
22074
  first_time_fix: boolean | null;
@@ -20134,6 +22099,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
20134
22099
  updated_at: string;
20135
22100
  version: number;
20136
22101
  work_address: string | null;
22102
+ workday_hours: number | null;
20137
22103
  };
20138
22104
  Insert: {
20139
22105
  assigned_user_id?: string | null;
@@ -20142,6 +22108,9 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
20142
22108
  created_at?: string;
20143
22109
  created_by?: string | null;
20144
22110
  customer_id?: string | null;
22111
+ deadline_date?: string | null;
22112
+ estimated_days?: number | null;
22113
+ estimated_duration_minutes?: number | null;
20145
22114
  externe_referentie?: string | null;
20146
22115
  extra_costs_cents?: number;
20147
22116
  first_time_fix?: boolean | null;
@@ -20172,6 +22141,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
20172
22141
  updated_at?: string;
20173
22142
  version?: number;
20174
22143
  work_address?: string | null;
22144
+ workday_hours?: number | null;
20175
22145
  };
20176
22146
  Update: {
20177
22147
  assigned_user_id?: string | null;
@@ -20180,6 +22150,9 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
20180
22150
  created_at?: string;
20181
22151
  created_by?: string | null;
20182
22152
  customer_id?: string | null;
22153
+ deadline_date?: string | null;
22154
+ estimated_days?: number | null;
22155
+ estimated_duration_minutes?: number | null;
20183
22156
  externe_referentie?: string | null;
20184
22157
  extra_costs_cents?: number;
20185
22158
  first_time_fix?: boolean | null;
@@ -20210,6 +22183,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
20210
22183
  updated_at?: string;
20211
22184
  version?: number;
20212
22185
  work_address?: string | null;
22186
+ workday_hours?: number | null;
20213
22187
  };
20214
22188
  Relationships: [{
20215
22189
  foreignKeyName: "werkbonnen_parent_werkbon_id_fkey";
@@ -21414,6 +23388,10 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
21414
23388
  };
21415
23389
  Returns: string;
21416
23390
  };
23391
+ backfill_cart_numbers_day_seq: {
23392
+ Args: never;
23393
+ Returns: number;
23394
+ };
21417
23395
  backfill_open_order_reservations: {
21418
23396
  Args: never;
21419
23397
  Returns: {
@@ -21452,6 +23430,15 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
21452
23430
  Args: never;
21453
23431
  Returns: boolean;
21454
23432
  };
23433
+ cancel_open_print_jobs: {
23434
+ Args: {
23435
+ _cutoff: string;
23436
+ };
23437
+ Returns: {
23438
+ extern_job_id: string;
23439
+ id: string;
23440
+ }[];
23441
+ };
21455
23442
  check_offer_product_available_stock: {
21456
23443
  Args: {
21457
23444
  p_campaign_product_id: string;
@@ -21891,8 +23878,6 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
21891
23878
  cart_index: number;
21892
23879
  cart_number: string;
21893
23880
  cart_number_id: string;
21894
- cart_seq: number;
21895
- cart_total: number;
21896
23881
  order_id: string;
21897
23882
  order_number: string;
21898
23883
  order_source: string;
@@ -22117,9 +24102,20 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
22117
24102
  };
22118
24103
  Returns: boolean;
22119
24104
  };
22120
- floriday_capture_stock_snapshot: {
22121
- Args: never;
22122
- Returns: number;
24105
+ floriday_adopt_connection: {
24106
+ Args: {
24107
+ p_new: string;
24108
+ p_old: string;
24109
+ };
24110
+ Returns: import("./types").Json;
24111
+ };
24112
+ floriday_autoheal_connections: {
24113
+ Args: never;
24114
+ Returns: import("./types").Json;
24115
+ };
24116
+ floriday_capture_stock_snapshot: {
24117
+ Args: never;
24118
+ Returns: number;
22123
24119
  };
22124
24120
  floriday_cleanup_stock_queue_v2: {
22125
24121
  Args: never;
@@ -22174,6 +24170,12 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
22174
24170
  };
22175
24171
  Returns: undefined;
22176
24172
  };
24173
+ floriday_relink_products: {
24174
+ Args: {
24175
+ p_connection_id?: string;
24176
+ };
24177
+ Returns: import("./types").Json;
24178
+ };
22177
24179
  floriday_requeue_dead_letters: {
22178
24180
  Args: {
22179
24181
  p_connection_id?: string;
@@ -22396,6 +24398,27 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
22396
24398
  Args: never;
22397
24399
  Returns: string;
22398
24400
  };
24401
+ handover_afspraak_intrekken: {
24402
+ Args: {
24403
+ _sleutel: string;
24404
+ };
24405
+ Returns: boolean;
24406
+ };
24407
+ handover_afspraak_zetten: {
24408
+ Args: {
24409
+ _besluit: string;
24410
+ _item: string;
24411
+ _modules: string[];
24412
+ _sleutel: string;
24413
+ _soort: string;
24414
+ _versie_vingerafdruk: string;
24415
+ };
24416
+ Returns: boolean;
24417
+ };
24418
+ handover_afspraken: {
24419
+ Args: never;
24420
+ Returns: import("./types").Json;
24421
+ };
22399
24422
  handover_archief_lijst: {
22400
24423
  Args: never;
22401
24424
  Returns: import("./types").Json;
@@ -22413,6 +24436,12 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
22413
24436
  };
22414
24437
  Returns: boolean;
22415
24438
  };
24439
+ handover_check_afronden_na_scan: {
24440
+ Args: {
24441
+ _module_ids: string[];
24442
+ };
24443
+ Returns: number;
24444
+ };
22416
24445
  handover_check_markeren: {
22417
24446
  Args: {
22418
24447
  _module_ids: string[];
@@ -22456,6 +24485,14 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
22456
24485
  };
22457
24486
  Returns: boolean;
22458
24487
  };
24488
+ handover_md_bron_zetten: {
24489
+ Args: {
24490
+ _md: boolean;
24491
+ _module_id: string;
24492
+ _pad?: string;
24493
+ };
24494
+ Returns: boolean;
24495
+ };
22459
24496
  handover_module_meta_zetten: {
22460
24497
  Args: {
22461
24498
  _module_id: string;
@@ -22464,6 +24501,24 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
22464
24501
  };
22465
24502
  Returns: boolean;
22466
24503
  };
24504
+ handover_naam_zetten: {
24505
+ Args: {
24506
+ _bron_repo?: string;
24507
+ _module_id: string;
24508
+ _weergavenaam?: string;
24509
+ };
24510
+ Returns: boolean;
24511
+ };
24512
+ handover_namen: {
24513
+ Args: never;
24514
+ Returns: import("./types").Json;
24515
+ };
24516
+ handover_nieuw_gezien: {
24517
+ Args: {
24518
+ _module_id: string;
24519
+ };
24520
+ Returns: boolean;
24521
+ };
22467
24522
  handover_norm_naam: {
22468
24523
  Args: {
22469
24524
  _naam: string;
@@ -22500,6 +24555,24 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
22500
24555
  _versie_label?: string;
22501
24556
  };
22502
24557
  Returns: import("./types").Json;
24558
+ } | {
24559
+ Args: {
24560
+ _bekende_risicos?: string[];
24561
+ _bezit_tabellen?: string[];
24562
+ _bron_soort?: string;
24563
+ _commit?: string;
24564
+ _contractfuncties?: string[];
24565
+ _inhoud_md: string;
24566
+ _laatst_bevestigd_op?: string;
24567
+ _module_id: string;
24568
+ _module_titel: string;
24569
+ _ontbrekende_contracten?: string[];
24570
+ _pad?: string;
24571
+ _repo?: string;
24572
+ _samenvatting?: string;
24573
+ _versie_label?: string;
24574
+ };
24575
+ Returns: import("./types").Json;
22503
24576
  };
22504
24577
  handover_publish_via_token: {
22505
24578
  Args: {
@@ -22597,6 +24670,27 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
22597
24670
  Args: never;
22598
24671
  Returns: boolean;
22599
24672
  };
24673
+ inkoop_apply_price_list: {
24674
+ Args: {
24675
+ _price_list_id: string;
24676
+ _rows: import("./types").Json;
24677
+ };
24678
+ Returns: import("./types").Json;
24679
+ };
24680
+ inkoop_next_order_number: {
24681
+ Args: never;
24682
+ Returns: string;
24683
+ };
24684
+ inkoop_send_order: {
24685
+ Args: {
24686
+ _order_id: string;
24687
+ };
24688
+ Returns: {
24689
+ outbox_id: string;
24690
+ supplier_name: string;
24691
+ to_address: string;
24692
+ }[];
24693
+ };
22600
24694
  instructie_get: {
22601
24695
  Args: {
22602
24696
  _sleutel: string;
@@ -22656,6 +24750,13 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
22656
24750
  };
22657
24751
  Returns: import("./types").Json;
22658
24752
  };
24753
+ invoice_source_lines: {
24754
+ Args: {
24755
+ _source_id: string;
24756
+ _source_type: string;
24757
+ };
24758
+ Returns: import("./types").Json;
24759
+ };
22659
24760
  is_authenticated: {
22660
24761
  Args: never;
22661
24762
  Returns: boolean;
@@ -22795,6 +24896,10 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
22795
24896
  };
22796
24897
  Returns: string;
22797
24898
  };
24899
+ logistics_active_layout_method: {
24900
+ Args: never;
24901
+ Returns: string;
24902
+ };
22798
24903
  logistics_active_pick_workdays: {
22799
24904
  Args: never;
22800
24905
  Returns: string[];
@@ -22846,6 +24951,30 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
22846
24951
  };
22847
24952
  Returns: import("./types").Json;
22848
24953
  };
24954
+ logistics_block_reason_code: {
24955
+ Args: {
24956
+ p_details?: import("./types").Json;
24957
+ p_reason: string;
24958
+ };
24959
+ Returns: string;
24960
+ };
24961
+ logistics_blocked_orders: {
24962
+ Args: never;
24963
+ Returns: {
24964
+ attempts: number;
24965
+ blocked_since: string;
24966
+ delivery_date: string;
24967
+ order_id: string;
24968
+ order_ref: string;
24969
+ queue_id: string;
24970
+ reason: string;
24971
+ reason_code: string;
24972
+ }[];
24973
+ };
24974
+ logistics_blocked_overview: {
24975
+ Args: never;
24976
+ Returns: import("./types").Json;
24977
+ };
22849
24978
  logistics_buffer_criteria: {
22850
24979
  Args: {
22851
24980
  p_settings: import("./types").Json;
@@ -22860,6 +24989,39 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
22860
24989
  };
22861
24990
  Returns: import("./types").Json;
22862
24991
  };
24992
+ logistics_buffer_detach_late_orders: {
24993
+ Args: {
24994
+ p_buffer?: string;
24995
+ };
24996
+ Returns: import("./types").Json;
24997
+ };
24998
+ logistics_buffer_frozen_order: {
24999
+ Args: {
25000
+ p_order_id: string;
25001
+ };
25002
+ Returns: boolean;
25003
+ };
25004
+ logistics_buffer_handled: {
25005
+ Args: {
25006
+ p_buffer: string;
25007
+ };
25008
+ Returns: boolean;
25009
+ };
25010
+ logistics_buffer_notify: {
25011
+ Args: {
25012
+ p_event_type: string;
25013
+ p_idempotency_key: string;
25014
+ p_order_ref: string;
25015
+ p_payload: import("./types").Json;
25016
+ };
25017
+ Returns: string;
25018
+ };
25019
+ logistics_buffer_open_key: {
25020
+ Args: {
25021
+ p_base_key: string;
25022
+ };
25023
+ Returns: string;
25024
+ };
22863
25025
  logistics_buffer_simulate: {
22864
25026
  Args: {
22865
25027
  p_orders?: import("./types").Json;
@@ -22912,6 +25074,12 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
22912
25074
  };
22913
25075
  Returns: string;
22914
25076
  };
25077
+ logistics_cart_checkin_at: {
25078
+ Args: {
25079
+ p_cart_id: string;
25080
+ };
25081
+ Returns: string;
25082
+ };
22915
25083
  logistics_cart_handled: {
22916
25084
  Args: {
22917
25085
  p_cart_index: number;
@@ -22945,10 +25113,22 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
22945
25113
  task_status: string;
22946
25114
  }[];
22947
25115
  };
25116
+ logistics_cart_is_full: {
25117
+ Args: {
25118
+ p_cart_id: string;
25119
+ };
25120
+ Returns: boolean;
25121
+ };
22948
25122
  logistics_cart_layout_method: {
22949
25123
  Args: never;
22950
25124
  Returns: import("./types").Json;
22951
25125
  };
25126
+ logistics_cart_order_refs: {
25127
+ Args: {
25128
+ p_cart_id: string;
25129
+ };
25130
+ Returns: string[];
25131
+ };
22952
25132
  logistics_cart_plan_overview: {
22953
25133
  Args: {
22954
25134
  p_days?: number;
@@ -22968,6 +25148,24 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
22968
25148
  };
22969
25149
  Returns: import("./types").Json;
22970
25150
  };
25151
+ logistics_cart_plan_status_core: {
25152
+ Args: {
25153
+ p_ref: string;
25154
+ };
25155
+ Returns: import("./types").Json;
25156
+ };
25157
+ logistics_cart_release_reason: {
25158
+ Args: {
25159
+ p_cart_id: string;
25160
+ };
25161
+ Returns: string;
25162
+ };
25163
+ logistics_cart_released: {
25164
+ Args: {
25165
+ p_cart_id: string;
25166
+ };
25167
+ Returns: boolean;
25168
+ };
22971
25169
  logistics_cart_seq: {
22972
25170
  Args: {
22973
25171
  p_order_uuid?: string;
@@ -23018,6 +25216,10 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
23018
25216
  unit_ref: string;
23019
25217
  }[];
23020
25218
  };
25219
+ logistics_carts_per_print: {
25220
+ Args: never;
25221
+ Returns: number;
25222
+ };
23021
25223
  logistics_check_order_allowed: {
23022
25224
  Args: {
23023
25225
  p_lines: import("./types").Json;
@@ -23121,6 +25323,16 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
23121
25323
  isSetofReturn: false;
23122
25324
  };
23123
25325
  };
25326
+ logistics_cleanup_orphan_print_jobs: {
25327
+ Args: never;
25328
+ Returns: import("./types").Json;
25329
+ };
25330
+ logistics_cleanup_tasks: {
25331
+ Args: {
25332
+ p_limit?: number;
25333
+ };
25334
+ Returns: import("./types").Json;
25335
+ };
23124
25336
  logistics_complete_task: {
23125
25337
  Args: {
23126
25338
  p_result?: import("./types").Json;
@@ -23183,6 +25395,12 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
23183
25395
  station_carts: number;
23184
25396
  }[];
23185
25397
  };
25398
+ logistics_control_complete_cart: {
25399
+ Args: {
25400
+ p_cart_id: string;
25401
+ };
25402
+ Returns: number;
25403
+ };
23186
25404
  logistics_control_scan_approve: {
23187
25405
  Args: {
23188
25406
  p_allow_reprint?: boolean;
@@ -23262,6 +25480,15 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
23262
25480
  Args: never;
23263
25481
  Returns: import("./types").Json;
23264
25482
  };
25483
+ logistics_day_windows: {
25484
+ Args: {
25485
+ p_day: string;
25486
+ };
25487
+ Returns: {
25488
+ win_end: string;
25489
+ win_start: string;
25490
+ }[];
25491
+ };
23265
25492
  logistics_delay_customer_email: {
23266
25493
  Args: {
23267
25494
  p_customer: string;
@@ -23329,6 +25556,17 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
23329
25556
  };
23330
25557
  Returns: import("./types").Json;
23331
25558
  };
25559
+ logistics_enqueue_shipping_note_with_slip: {
25560
+ Args: {
25561
+ _cart_id: string;
25562
+ _is_herprint: boolean;
25563
+ _printer_id: string;
25564
+ _queue_item_id: string;
25565
+ _session_id: string;
25566
+ _slip_job_id: string;
25567
+ };
25568
+ Returns: string;
25569
+ };
23332
25570
  logistics_enqueue_sticker_with_slip: {
23333
25571
  Args: {
23334
25572
  _cart_id: string;
@@ -23346,6 +25584,20 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
23346
25584
  };
23347
25585
  Returns: string;
23348
25586
  };
25587
+ logistics_ensure_pick_data: {
25588
+ Args: {
25589
+ p_event_id?: string;
25590
+ p_missing?: import("./types").Json;
25591
+ p_ref: string;
25592
+ };
25593
+ Returns: import("./types").Json;
25594
+ };
25595
+ logistics_ensure_shipping_notes: {
25596
+ Args: {
25597
+ p_limit?: number;
25598
+ };
25599
+ Returns: import("./types").Json;
25600
+ };
23349
25601
  logistics_fail_task: {
23350
25602
  Args: {
23351
25603
  p_error: string;
@@ -23391,6 +25643,10 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
23391
25643
  isSetofReturn: false;
23392
25644
  };
23393
25645
  };
25646
+ logistics_fix_wrong_shipping_notes: {
25647
+ Args: never;
25648
+ Returns: import("./types").Json;
25649
+ };
23394
25650
  logistics_floriday_cart_plan: {
23395
25651
  Args: {
23396
25652
  p_order_id: string;
@@ -23418,6 +25674,10 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
23418
25674
  revision: number;
23419
25675
  }[];
23420
25676
  };
25677
+ logistics_floriday_delivery_note_create_enabled: {
25678
+ Args: never;
25679
+ Returns: boolean;
25680
+ };
23421
25681
  logistics_floriday_finish_push: {
23422
25682
  Args: {
23423
25683
  _error?: string;
@@ -23467,6 +25727,38 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
23467
25727
  };
23468
25728
  Returns: string;
23469
25729
  };
25730
+ logistics_floriday_gate_status: {
25731
+ Args: never;
25732
+ Returns: import("./types").Json;
25733
+ };
25734
+ logistics_floriday_log_refusal: {
25735
+ Args: {
25736
+ _action?: string;
25737
+ _module?: string;
25738
+ _order_ref: string;
25739
+ _reason: string;
25740
+ _shell?: string;
25741
+ };
25742
+ Returns: undefined;
25743
+ };
25744
+ logistics_floriday_log_send: {
25745
+ Args: {
25746
+ _action: string;
25747
+ _detail?: string;
25748
+ _http_status?: number;
25749
+ _module?: string;
25750
+ _ok: boolean;
25751
+ _order_ref: string;
25752
+ _shell?: string;
25753
+ };
25754
+ Returns: undefined;
25755
+ };
25756
+ logistics_floriday_order_approved: {
25757
+ Args: {
25758
+ _order_ref: string;
25759
+ };
25760
+ Returns: boolean;
25761
+ };
23470
25762
  logistics_floriday_prune_pushes: {
23471
25763
  Args: {
23472
25764
  _days?: number;
@@ -23481,6 +25773,20 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
23481
25773
  };
23482
25774
  Returns: string;
23483
25775
  };
25776
+ logistics_floriday_status_updates_enabled: {
25777
+ Args: never;
25778
+ Returns: boolean;
25779
+ };
25780
+ logistics_floriday_stock_updates_enabled: {
25781
+ Args: never;
25782
+ Returns: boolean;
25783
+ };
25784
+ logistics_floriday_write_allowed: {
25785
+ Args: {
25786
+ _action: string;
25787
+ };
25788
+ Returns: boolean;
25789
+ };
23484
25790
  logistics_fulfill_barcode_requests: {
23485
25791
  Args: {
23486
25792
  p_limit?: number;
@@ -23501,6 +25807,16 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
23501
25807
  };
23502
25808
  Returns: boolean;
23503
25809
  };
25810
+ logistics_layout_method_status: {
25811
+ Args: never;
25812
+ Returns: import("./types").Json;
25813
+ };
25814
+ logistics_link_order_items: {
25815
+ Args: {
25816
+ p_order?: string;
25817
+ };
25818
+ Returns: import("./types").Json;
25819
+ };
23504
25820
  logistics_live_carriers: {
23505
25821
  Args: {
23506
25822
  p_order_ref: string;
@@ -23513,32 +25829,92 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
23513
25829
  };
23514
25830
  Returns: number;
23515
25831
  };
23516
- logistics_next_workday_date: {
25832
+ logistics_merge_floriday_lines: {
23517
25833
  Args: {
23518
- p_date: string;
23519
- p_days?: string[];
25834
+ p_order_id: string;
23520
25835
  };
23521
25836
  Returns: string;
23522
25837
  };
23523
- logistics_next_workday_not_past: {
25838
+ logistics_merge_lines_enabled: {
25839
+ Args: never;
25840
+ Returns: boolean;
25841
+ };
25842
+ logistics_merge_partial_carts: {
25843
+ Args: {
25844
+ p_limit?: number;
25845
+ };
25846
+ Returns: import("./types").Json;
25847
+ };
25848
+ logistics_next_workday_date: {
25849
+ Args: {
25850
+ p_date: string;
25851
+ p_days?: string[];
25852
+ };
25853
+ Returns: string;
25854
+ };
25855
+ logistics_next_workday_not_past: {
23524
25856
  Args: {
23525
25857
  p_days: string[];
23526
25858
  p_ts: string;
23527
25859
  };
23528
25860
  Returns: string;
23529
25861
  };
25862
+ logistics_normalize_product_label: {
25863
+ Args: {
25864
+ p_label: string;
25865
+ };
25866
+ Returns: string;
25867
+ };
23530
25868
  logistics_not_past: {
23531
25869
  Args: {
23532
25870
  p_ts: string;
23533
25871
  };
23534
25872
  Returns: string;
23535
25873
  };
25874
+ logistics_opening_timezone: {
25875
+ Args: never;
25876
+ Returns: string;
25877
+ };
25878
+ logistics_order_cart_approval: {
25879
+ Args: {
25880
+ _order_ref: string;
25881
+ };
25882
+ Returns: {
25883
+ approved: number;
25884
+ total: number;
25885
+ }[];
25886
+ };
23536
25887
  logistics_order_cart_count: {
23537
25888
  Args: {
23538
25889
  p_order_ref: string;
23539
25890
  };
23540
25891
  Returns: number;
23541
25892
  };
25893
+ logistics_order_changed: {
25894
+ Args: {
25895
+ p_order_id: string;
25896
+ p_reason?: string;
25897
+ };
25898
+ Returns: undefined;
25899
+ };
25900
+ logistics_order_documents_ready: {
25901
+ Args: {
25902
+ p_order_ref: string;
25903
+ };
25904
+ Returns: import("./types").Json;
25905
+ };
25906
+ logistics_order_documents_ready_bool: {
25907
+ Args: {
25908
+ p_order_ref: string;
25909
+ };
25910
+ Returns: boolean;
25911
+ };
25912
+ logistics_order_frozen: {
25913
+ Args: {
25914
+ p_order_id: string;
25915
+ };
25916
+ Returns: boolean;
25917
+ };
23542
25918
  logistics_order_handled: {
23543
25919
  Args: {
23544
25920
  p_order_uuid: string;
@@ -23552,6 +25928,18 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
23552
25928
  };
23553
25929
  Returns: boolean;
23554
25930
  };
25931
+ logistics_order_merge_key: {
25932
+ Args: {
25933
+ p_group_key: string;
25934
+ };
25935
+ Returns: string;
25936
+ };
25937
+ logistics_order_mergeable: {
25938
+ Args: {
25939
+ p_order_id: string;
25940
+ };
25941
+ Returns: boolean;
25942
+ };
23555
25943
  logistics_order_overview: {
23556
25944
  Args: {
23557
25945
  p_from?: string;
@@ -23589,6 +25977,12 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
23589
25977
  };
23590
25978
  Returns: string;
23591
25979
  };
25980
+ logistics_payload_is_floriday: {
25981
+ Args: {
25982
+ _payload: import("./types").Json;
25983
+ };
25984
+ Returns: boolean;
25985
+ };
23592
25986
  logistics_pick_agenda: {
23593
25987
  Args: {
23594
25988
  p_from?: string;
@@ -23617,6 +26011,10 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
23617
26011
  Args: never;
23618
26012
  Returns: import("./types").Json;
23619
26013
  };
26014
+ logistics_pick_partial_mode: {
26015
+ Args: never;
26016
+ Returns: string;
26017
+ };
23620
26018
  logistics_pick_start_estimate: {
23621
26019
  Args: {
23622
26020
  p_order: import("./types").Json;
@@ -23666,6 +26064,12 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
23666
26064
  order_id: string;
23667
26065
  }[];
23668
26066
  };
26067
+ logistics_plan_defer: {
26068
+ Args: {
26069
+ p_id: string;
26070
+ };
26071
+ Returns: undefined;
26072
+ };
23669
26073
  logistics_plan_enqueue: {
23670
26074
  Args: {
23671
26075
  p_order_id: string;
@@ -23679,6 +26083,18 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
23679
26083
  };
23680
26084
  Returns: boolean;
23681
26085
  };
26086
+ logistics_plan_error_class: {
26087
+ Args: {
26088
+ p_error: string;
26089
+ };
26090
+ Returns: string;
26091
+ };
26092
+ logistics_plan_error_text: {
26093
+ Args: {
26094
+ p_error: string;
26095
+ };
26096
+ Returns: string;
26097
+ };
23682
26098
  logistics_plan_finish: {
23683
26099
  Args: {
23684
26100
  p_error?: string;
@@ -23707,14 +26123,86 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
23707
26123
  Args: never;
23708
26124
  Returns: undefined;
23709
26125
  };
26126
+ logistics_plan_lock_acquire: {
26127
+ Args: {
26128
+ _key: string;
26129
+ _owner?: string;
26130
+ _ttl_seconds?: number;
26131
+ };
26132
+ Returns: boolean;
26133
+ };
26134
+ logistics_plan_lock_release: {
26135
+ Args: {
26136
+ _key: string;
26137
+ _owner?: string;
26138
+ };
26139
+ Returns: undefined;
26140
+ };
26141
+ logistics_plan_progress: {
26142
+ Args: {
26143
+ p_refs: string[];
26144
+ };
26145
+ Returns: {
26146
+ cart_plan_ready: boolean;
26147
+ cart_plan_reason: string;
26148
+ cart_plan_released: boolean;
26149
+ plan_progress: number;
26150
+ plan_state: string;
26151
+ plan_state_since: string;
26152
+ unit_ref: string;
26153
+ }[];
26154
+ };
26155
+ logistics_plan_progress_pct: {
26156
+ Args: {
26157
+ p_order_id: string;
26158
+ };
26159
+ Returns: number;
26160
+ };
23710
26161
  logistics_plan_prune: {
23711
26162
  Args: never;
23712
26163
  Returns: number;
23713
26164
  };
26165
+ logistics_plan_queue_list: {
26166
+ Args: {
26167
+ p_limit?: number;
26168
+ };
26169
+ Returns: {
26170
+ attempts: number;
26171
+ claimed_at: string;
26172
+ customer_name: string;
26173
+ enqueued_at: string;
26174
+ error_class: string;
26175
+ error_raw: string;
26176
+ error_text: string;
26177
+ id: string;
26178
+ max_attempts: number;
26179
+ next_attempt_at: string;
26180
+ order_created_at: string;
26181
+ order_id: string;
26182
+ order_number: string;
26183
+ progress_pct: number;
26184
+ reason: string;
26185
+ stand: string;
26186
+ status: string;
26187
+ updated_at: string;
26188
+ }[];
26189
+ };
23714
26190
  logistics_plan_release_stale: {
23715
26191
  Args: never;
23716
26192
  Returns: number;
23717
26193
  };
26194
+ logistics_plan_reset_queue: {
26195
+ Args: {
26196
+ p_scope?: string;
26197
+ };
26198
+ Returns: number;
26199
+ };
26200
+ logistics_plan_retry: {
26201
+ Args: {
26202
+ p_order_ids: string[];
26203
+ };
26204
+ Returns: number;
26205
+ };
23718
26206
  logistics_plan_setting: {
23719
26207
  Args: {
23720
26208
  p_default: number;
@@ -23722,6 +26210,22 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
23722
26210
  };
23723
26211
  Returns: number;
23724
26212
  };
26213
+ logistics_plan_state_for: {
26214
+ Args: {
26215
+ p_ref: string;
26216
+ };
26217
+ Returns: import("./types").Json;
26218
+ };
26219
+ logistics_plan_timeout_running: {
26220
+ Args: never;
26221
+ Returns: number;
26222
+ };
26223
+ logistics_prepare_pick_documents: {
26224
+ Args: {
26225
+ p_limit?: number;
26226
+ };
26227
+ Returns: import("./types").Json;
26228
+ };
23725
26229
  logistics_prune_buffer_member_queue: {
23726
26230
  Args: never;
23727
26231
  Returns: number;
@@ -23762,12 +26266,42 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
23762
26266
  Args: never;
23763
26267
  Returns: import("./types").Json;
23764
26268
  };
26269
+ logistics_refresh_pick_queue_status: {
26270
+ Args: {
26271
+ p_ref: string;
26272
+ };
26273
+ Returns: number;
26274
+ };
23765
26275
  logistics_refresh_pickup_moments: {
23766
26276
  Args: {
23767
26277
  p_weeks?: number;
23768
26278
  };
23769
26279
  Returns: import("./types").Json;
23770
26280
  };
26281
+ logistics_refresh_plan_state: {
26282
+ Args: {
26283
+ p_limit?: number;
26284
+ };
26285
+ Returns: import("./types").Json;
26286
+ };
26287
+ logistics_replan_all: {
26288
+ Args: {
26289
+ p_reason?: string;
26290
+ };
26291
+ Returns: import("./types").Json;
26292
+ };
26293
+ logistics_replan_all_force: {
26294
+ Args: {
26295
+ p_reason?: string;
26296
+ };
26297
+ Returns: import("./types").Json;
26298
+ };
26299
+ logistics_replan_order_journey: {
26300
+ Args: {
26301
+ p_order_ref: string;
26302
+ };
26303
+ Returns: import("./types").Json;
26304
+ };
23771
26305
  logistics_report_delay: {
23772
26306
  Args: {
23773
26307
  p_expected_date?: string;
@@ -23821,6 +26355,12 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
23821
26355
  };
23822
26356
  Returns: import("./types").Json;
23823
26357
  };
26358
+ logistics_resolve_product_id: {
26359
+ Args: {
26360
+ p_label: string;
26361
+ };
26362
+ Returns: string;
26363
+ };
23824
26364
  logistics_resolve_settings: {
23825
26365
  Args: {
23826
26366
  p_config_id: string;
@@ -23864,91 +26404,361 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
23864
26404
  };
23865
26405
  Returns: import("./types").Json;
23866
26406
  };
23867
- logistics_scan_delays: {
23868
- Args: never;
23869
- Returns: number;
23870
- };
23871
- logistics_scan_order_stock: {
26407
+ logistics_scan_delays: {
26408
+ Args: never;
26409
+ Returns: number;
26410
+ };
26411
+ logistics_scan_order_stock: {
26412
+ Args: {
26413
+ p_order_id: string;
26414
+ };
26415
+ Returns: string;
26416
+ };
26417
+ logistics_scan_resolve: {
26418
+ Args: {
26419
+ p_code: string;
26420
+ };
26421
+ Returns: import("./types").Json;
26422
+ };
26423
+ logistics_schedule_tasks: {
26424
+ Args: never;
26425
+ Returns: number;
26426
+ } | {
26427
+ Args: {
26428
+ p_order_ref?: string;
26429
+ };
26430
+ Returns: number;
26431
+ };
26432
+ logistics_set_order_priority: {
26433
+ Args: {
26434
+ p_order_ref: string;
26435
+ p_priority: number;
26436
+ p_user_id?: string;
26437
+ };
26438
+ Returns: number;
26439
+ };
26440
+ logistics_set_pick_day: {
26441
+ Args: {
26442
+ p_order_ref: string;
26443
+ p_pick_day: string;
26444
+ };
26445
+ Returns: import("./types").Json;
26446
+ };
26447
+ logistics_shift_to_workday: {
26448
+ Args: {
26449
+ p_days: string[];
26450
+ p_ts: string;
26451
+ };
26452
+ Returns: string;
26453
+ };
26454
+ logistics_shipping_note_diagnose: {
26455
+ Args: {
26456
+ p_order_number: string;
26457
+ };
26458
+ Returns: import("./types").Json;
26459
+ };
26460
+ logistics_shipping_note_follows_slip: {
26461
+ Args: never;
26462
+ Returns: boolean;
26463
+ };
26464
+ logistics_shipping_note_from_barcode: {
26465
+ Args: {
26466
+ p_allow_reprint?: boolean;
26467
+ p_barcode: string;
26468
+ p_station_id?: string;
26469
+ };
26470
+ Returns: import("./types").Json;
26471
+ };
26472
+ logistics_shipping_note_job_for_slip: {
26473
+ Args: {
26474
+ _slip_job_id: string;
26475
+ };
26476
+ Returns: string;
26477
+ };
26478
+ logistics_shipping_notes_wake_all: {
26479
+ Args: never;
26480
+ Returns: import("./types").Json;
26481
+ };
26482
+ logistics_slip_is_floriday: {
26483
+ Args: {
26484
+ _slip_job_id: string;
26485
+ };
26486
+ Returns: boolean;
26487
+ };
26488
+ logistics_slip_note_claim: {
26489
+ Args: {
26490
+ _lease_seconds?: number;
26491
+ _limit?: number;
26492
+ };
26493
+ Returns: {
26494
+ attempts: number;
26495
+ batch_key: string | null;
26496
+ cart_id: string | null;
26497
+ created_at: string;
26498
+ error: string | null;
26499
+ error_code: string | null;
26500
+ fulfillment_order_id: string | null;
26501
+ id: string;
26502
+ locked_until: string | null;
26503
+ next_attempt_at: string | null;
26504
+ order_id: string | null;
26505
+ order_number: string | null;
26506
+ print_job_id: string | null;
26507
+ printer_id: string | null;
26508
+ retry_class: string | null;
26509
+ slip_job_id: string;
26510
+ status: string;
26511
+ updated_at: string;
26512
+ }[];
26513
+ SetofOptions: {
26514
+ from: "*";
26515
+ to: "logistics_slip_shipping_note";
26516
+ isOneToOne: false;
26517
+ isSetofReturn: true;
26518
+ };
26519
+ };
26520
+ logistics_slip_note_finish: {
26521
+ Args: {
26522
+ _error?: string;
26523
+ _error_code?: string;
26524
+ _fulfillment_order_id?: string;
26525
+ _id: string;
26526
+ _ok: boolean;
26527
+ _print_job_id?: string;
26528
+ _status?: string;
26529
+ };
26530
+ Returns: undefined;
26531
+ };
26532
+ logistics_slip_note_keep_waiting: {
26533
+ Args: {
26534
+ _class?: string;
26535
+ _id: string;
26536
+ _reason: string;
26537
+ };
26538
+ Returns: undefined;
26539
+ };
26540
+ logistics_sticker_follows_slip: {
26541
+ Args: never;
26542
+ Returns: boolean;
26543
+ };
26544
+ logistics_subtract_working_minutes: {
26545
+ Args: {
26546
+ p_deadline: string;
26547
+ p_max_workdays?: number;
26548
+ p_minutes: number;
26549
+ };
26550
+ Returns: import("./types").Json;
26551
+ };
26552
+ logistics_supersede_stale_tasks: {
26553
+ Args: {
26554
+ p_keep: string[];
26555
+ p_order_ref: string;
26556
+ p_run_id: string;
26557
+ p_user_id: string;
26558
+ };
26559
+ Returns: number;
26560
+ };
26561
+ logistics_sync_pick_queue: {
26562
+ Args: never;
26563
+ Returns: import("./types").Json;
26564
+ };
26565
+ logistics_sync_task_carriers: {
26566
+ Args: {
26567
+ p_order_ref?: string;
26568
+ };
26569
+ Returns: number;
26570
+ };
26571
+ logistics_task_owner: {
26572
+ Args: {
26573
+ p_task_type: string;
26574
+ };
26575
+ Returns: string;
26576
+ };
26577
+ logistics_task_pick_minutes: {
26578
+ Args: {
26579
+ p_payload: import("./types").Json;
26580
+ p_settings: import("./types").Json;
26581
+ };
26582
+ Returns: number;
26583
+ };
26584
+ logistics_task_retention_days: {
26585
+ Args: never;
26586
+ Returns: number;
26587
+ };
26588
+ logistics_tick_ping: {
26589
+ Args: never;
26590
+ Returns: string;
26591
+ };
26592
+ logistics_timezone_options: {
26593
+ Args: never;
26594
+ Returns: {
26595
+ name: string;
26596
+ }[];
26597
+ };
26598
+ logistics_trace: {
26599
+ Args: {
26600
+ p: import("./types").Json;
26601
+ };
26602
+ Returns: string;
26603
+ };
26604
+ logistics_trace_all_orders: {
26605
+ Args: {
26606
+ p_limit?: number;
26607
+ p_search?: string;
26608
+ };
26609
+ Returns: import("./types").Json;
26610
+ };
26611
+ logistics_trace_archive_order: {
26612
+ Args: {
26613
+ p_order_ref: string;
26614
+ p_reason: string;
26615
+ };
26616
+ Returns: number;
26617
+ };
26618
+ logistics_trace_batch: {
26619
+ Args: {
26620
+ p: import("./types").Json;
26621
+ };
26622
+ Returns: number;
26623
+ };
26624
+ logistics_trace_derive: {
26625
+ Args: {
26626
+ p: import("./types").Json;
26627
+ };
26628
+ Returns: number;
26629
+ };
26630
+ logistics_trace_node: {
26631
+ Args: {
26632
+ p_op?: string;
26633
+ p_status?: string;
26634
+ p_table: string;
26635
+ };
26636
+ Returns: string;
26637
+ };
26638
+ logistics_trace_order_journey_start: {
26639
+ Args: {
26640
+ p_order_id: string;
26641
+ p_reason?: string;
26642
+ };
26643
+ Returns: string;
26644
+ };
26645
+ logistics_trace_order_origin: {
26646
+ Args: {
26647
+ p_order_id: string;
26648
+ };
26649
+ Returns: undefined;
26650
+ };
26651
+ logistics_trace_order_overview: {
26652
+ Args: {
26653
+ p_error_class?: string;
26654
+ p_limit?: number;
26655
+ p_search?: string;
26656
+ p_since?: string;
26657
+ p_source?: string;
26658
+ p_state?: string;
26659
+ p_step?: string;
26660
+ };
26661
+ Returns: import("./types").Json;
26662
+ };
26663
+ logistics_trace_order_state: {
26664
+ Args: {
26665
+ p_order_ref: string;
26666
+ };
26667
+ Returns: import("./types").Json;
26668
+ };
26669
+ logistics_trace_order_step: {
26670
+ Args: {
26671
+ p_class?: string;
26672
+ p_decision?: string;
26673
+ p_error?: string;
26674
+ p_next_step?: string;
26675
+ p_node: string;
26676
+ p_order_id: string;
26677
+ p_reason?: string;
26678
+ p_status: string;
26679
+ p_step: string;
26680
+ };
26681
+ Returns: undefined;
26682
+ };
26683
+ logistics_trace_orders: {
26684
+ Args: {
26685
+ p_limit?: number;
26686
+ p_search?: string;
26687
+ p_since?: string;
26688
+ p_status?: string;
26689
+ };
26690
+ Returns: import("./types").Json;
26691
+ };
26692
+ logistics_trace_pick_state: {
23872
26693
  Args: {
23873
- p_order_id: string;
26694
+ p_order_number: string;
23874
26695
  };
23875
- Returns: string;
26696
+ Returns: undefined;
23876
26697
  };
23877
- logistics_scan_resolve: {
26698
+ logistics_trace_progress: {
23878
26699
  Args: {
23879
- p_code: string;
26700
+ p_limit?: number;
23880
26701
  };
23881
26702
  Returns: import("./types").Json;
23882
26703
  };
23883
- logistics_schedule_tasks: {
23884
- Args: never;
23885
- Returns: number;
23886
- };
23887
- logistics_set_order_priority: {
26704
+ logistics_trace_progress_order: {
23888
26705
  Args: {
23889
26706
  p_order_ref: string;
23890
- p_priority: number;
23891
- p_user_id?: string;
23892
26707
  };
23893
- Returns: number;
26708
+ Returns: import("./types").Json;
23894
26709
  };
23895
- logistics_set_pick_day: {
26710
+ logistics_trace_redact: {
23896
26711
  Args: {
23897
- p_order_ref: string;
23898
- p_pick_day: string;
26712
+ p: import("./types").Json;
23899
26713
  };
23900
26714
  Returns: import("./types").Json;
23901
26715
  };
23902
- logistics_shift_to_workday: {
26716
+ logistics_trace_source_node: {
23903
26717
  Args: {
23904
- p_days: string[];
23905
- p_ts: string;
26718
+ p_source: string;
23906
26719
  };
23907
26720
  Returns: string;
23908
26721
  };
23909
- logistics_shipping_note_from_barcode: {
26722
+ logistics_trace_step_once: {
23910
26723
  Args: {
23911
- p_allow_reprint?: boolean;
23912
- p_barcode: string;
23913
- p_station_id?: string;
26724
+ p_decision: string;
26725
+ p_next_step?: string;
26726
+ p_node: string;
26727
+ p_order_id: string;
26728
+ p_reason: string;
26729
+ p_status: string;
26730
+ p_step: string;
23914
26731
  };
23915
- Returns: import("./types").Json;
23916
- };
23917
- logistics_sticker_follows_slip: {
23918
- Args: never;
23919
- Returns: boolean;
26732
+ Returns: undefined;
23920
26733
  };
23921
- logistics_supersede_stale_tasks: {
26734
+ logistics_trace_stock_check: {
23922
26735
  Args: {
23923
- p_keep: string[];
23924
- p_order_ref: string;
23925
- p_run_id: string;
23926
- p_user_id: string;
26736
+ p_order_id: string;
23927
26737
  };
23928
- Returns: number;
23929
- };
23930
- logistics_sync_pick_queue: {
23931
- Args: never;
23932
- Returns: import("./types").Json;
26738
+ Returns: undefined;
23933
26739
  };
23934
- logistics_sync_task_carriers: {
26740
+ logistics_trace_timeline: {
23935
26741
  Args: {
23936
- p_order_ref?: string;
26742
+ p_limit?: number;
26743
+ p_order_ref: string;
23937
26744
  };
23938
- Returns: number;
26745
+ Returns: import("./types").Json;
23939
26746
  };
23940
- logistics_task_owner: {
26747
+ logistics_trace_version_events: {
23941
26748
  Args: {
23942
- p_task_type: string;
26749
+ p_from?: string;
26750
+ p_limit?: number;
26751
+ p_order_ref: string;
26752
+ p_to?: string;
26753
+ p_version_id: string;
23943
26754
  };
23944
- Returns: string;
26755
+ Returns: import("./types").Json;
23945
26756
  };
23946
- logistics_task_pick_minutes: {
26757
+ logistics_trace_versions: {
23947
26758
  Args: {
23948
- p_payload: import("./types").Json;
23949
- p_settings: import("./types").Json;
26759
+ p_order_ref: string;
23950
26760
  };
23951
- Returns: number;
26761
+ Returns: import("./types").Json;
23952
26762
  };
23953
26763
  logistics_upsert_task: {
23954
26764
  Args: {
@@ -23969,6 +26779,16 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
23969
26779
  };
23970
26780
  Returns: string;
23971
26781
  };
26782
+ logistics_valid_timezone: {
26783
+ Args: {
26784
+ _tz: string;
26785
+ };
26786
+ Returns: boolean;
26787
+ };
26788
+ logistics_working_hours_status: {
26789
+ Args: never;
26790
+ Returns: import("./types").Json;
26791
+ };
23972
26792
  logistics_write_buffer_layer_positions: {
23973
26793
  Args: {
23974
26794
  p_buffer_id: string;
@@ -24134,6 +26954,10 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
24134
26954
  online: boolean;
24135
26955
  }[];
24136
26956
  };
26957
+ pick_apply_buffer_events: {
26958
+ Args: never;
26959
+ Returns: import("./types").Json;
26960
+ };
24137
26961
  pick_available_pick_days: {
24138
26962
  Args: {
24139
26963
  _max_days?: number;
@@ -24977,6 +27801,18 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
24977
27801
  };
24978
27802
  Returns: undefined;
24979
27803
  };
27804
+ prune_floriday_api_log: {
27805
+ Args: never;
27806
+ Returns: number;
27807
+ };
27808
+ quote_ack_work_order: {
27809
+ Args: {
27810
+ _queue_id: string;
27811
+ _werkbon_id: string;
27812
+ _werkbon_nummer?: string;
27813
+ };
27814
+ Returns: boolean;
27815
+ };
24980
27816
  quote_create_from_source: {
24981
27817
  Args: {
24982
27818
  _payload?: import("./types").Json;
@@ -24985,6 +27821,13 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
24985
27821
  };
24986
27822
  Returns: string;
24987
27823
  };
27824
+ quote_fail_work_order: {
27825
+ Args: {
27826
+ _foutmelding: string;
27827
+ _queue_id: string;
27828
+ };
27829
+ Returns: boolean;
27830
+ };
24988
27831
  quote_get_billable_lines: {
24989
27832
  Args: {
24990
27833
  _quotation_id: string;
@@ -25001,6 +27844,12 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
25001
27844
  Args: never;
25002
27845
  Returns: import("./types").Json;
25003
27846
  };
27847
+ quote_list_pending_work_orders: {
27848
+ Args: {
27849
+ _limit?: number;
27850
+ };
27851
+ Returns: import("./types").Json;
27852
+ };
25004
27853
  quote_list_sources: {
25005
27854
  Args: {
25006
27855
  _limit?: number;
@@ -25008,6 +27857,12 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
25008
27857
  };
25009
27858
  Returns: import("./types").Json;
25010
27859
  };
27860
+ quote_queue_follow_up: {
27861
+ Args: {
27862
+ _offerte_id: string;
27863
+ };
27864
+ Returns: string;
27865
+ };
25011
27866
  recompute_all_reserved_stock: {
25012
27867
  Args: never;
25013
27868
  Returns: undefined;
@@ -25061,6 +27916,12 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
25061
27916
  };
25062
27917
  Returns: boolean;
25063
27918
  };
27919
+ release_job_lock: {
27920
+ Args: {
27921
+ _key: string;
27922
+ };
27923
+ Returns: undefined;
27924
+ };
25064
27925
  release_local_pdf_job: {
25065
27926
  Args: {
25066
27927
  _job_id: string;
@@ -25404,6 +28265,13 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
25404
28265
  };
25405
28266
  Returns: number;
25406
28267
  };
28268
+ schedule_floriday_catalog_prices_sync: {
28269
+ Args: {
28270
+ p_apikey: string;
28271
+ p_url: string;
28272
+ };
28273
+ Returns: number;
28274
+ };
25407
28275
  schedule_floriday_clock_presales_sync: {
25408
28276
  Args: {
25409
28277
  p_apikey: string;
@@ -25676,6 +28544,52 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
25676
28544
  p_end_time: string;
25677
28545
  };
25678
28546
  Returns: import("./types").Json;
28547
+ } | {
28548
+ Args: {
28549
+ p_end_lat?: number;
28550
+ p_end_lng?: number;
28551
+ p_log_id: string;
28552
+ };
28553
+ Returns: {
28554
+ auto_stop_reason: string | null;
28555
+ auto_stopped: boolean;
28556
+ created_at: string;
28557
+ current_latitude: number | null;
28558
+ current_longitude: number | null;
28559
+ current_position_updated_at: string | null;
28560
+ employee_id: string;
28561
+ end_latitude: number | null;
28562
+ end_longitude: number | null;
28563
+ end_time: string | null;
28564
+ eta_distance_km: number | null;
28565
+ eta_minutes: number | null;
28566
+ eta_updated_at: string | null;
28567
+ hour_category: string | null;
28568
+ id: string;
28569
+ last_reminder_at: string | null;
28570
+ notes: string | null;
28571
+ overtime_hours: number;
28572
+ overtime_type: string | null;
28573
+ regular_hours: number;
28574
+ reminder_count: number;
28575
+ requires_review: boolean;
28576
+ start_latitude: number | null;
28577
+ start_longitude: number | null;
28578
+ start_time: string;
28579
+ travel_cost: number | null;
28580
+ travel_distance_km: number | null;
28581
+ travel_duration_min: number | null;
28582
+ travel_time_minutes: number | null;
28583
+ type: string;
28584
+ updated_at: string;
28585
+ work_order_id: string | null;
28586
+ };
28587
+ SetofOptions: {
28588
+ from: "*";
28589
+ to: "time_logs";
28590
+ isOneToOne: true;
28591
+ isSetofReturn: false;
28592
+ };
25679
28593
  };
25680
28594
  swap_cart_layer_positions: {
25681
28595
  Args: {
@@ -25704,6 +28618,10 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
25704
28618
  };
25705
28619
  Returns: undefined;
25706
28620
  };
28621
+ sync_floriday_prices_into_price_groups: {
28622
+ Args: never;
28623
+ Returns: number;
28624
+ };
25707
28625
  sync_layer_stock: {
25708
28626
  Args: {
25709
28627
  p_product_id: string;
@@ -25749,6 +28667,14 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
25749
28667
  row_count: number;
25750
28668
  }[];
25751
28669
  };
28670
+ try_acquire_job_lock: {
28671
+ Args: {
28672
+ _key: string;
28673
+ _owner?: string;
28674
+ _seconds?: number;
28675
+ };
28676
+ Returns: boolean;
28677
+ };
25752
28678
  try_debtor_lock: {
25753
28679
  Args: {
25754
28680
  _group_key: string;
@@ -25820,14 +28746,99 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
25820
28746
  };
25821
28747
  Returns: undefined;
25822
28748
  };
28749
+ uren_employee_day_hours: {
28750
+ Args: {
28751
+ _day: string;
28752
+ _employee_id: string;
28753
+ };
28754
+ Returns: number;
28755
+ };
25823
28756
  uren_is_beheerder: {
25824
28757
  Args: never;
25825
28758
  Returns: boolean;
25826
28759
  };
28760
+ uren_list_medewerkers: {
28761
+ Args: never;
28762
+ Returns: {
28763
+ avatar_url: string;
28764
+ color: string;
28765
+ display_name: string;
28766
+ email: string;
28767
+ hours_fri: number;
28768
+ hours_mon: number;
28769
+ hours_thu: number;
28770
+ hours_tue: number;
28771
+ hours_wed: number;
28772
+ id: string;
28773
+ is_active: boolean;
28774
+ leave_balance_hours: number;
28775
+ persnr: string;
28776
+ phone: string;
28777
+ roles: string[];
28778
+ }[];
28779
+ };
25827
28780
  uren_my_monteur_id: {
25828
28781
  Args: never;
25829
28782
  Returns: string;
25830
28783
  };
28784
+ uren_planning_dagagenda: {
28785
+ Args: {
28786
+ _tot: string;
28787
+ _van: string;
28788
+ };
28789
+ Returns: {
28790
+ end_at: string;
28791
+ id: string;
28792
+ is_tweede_man: boolean;
28793
+ notes: string;
28794
+ start_at: string;
28795
+ status: Database["public"]["Enums"]["planning_item_status"];
28796
+ werkbon_id: string;
28797
+ }[];
28798
+ };
28799
+ uren_set_planning_item_status: {
28800
+ Args: {
28801
+ _id: string;
28802
+ _status: Database["public"]["Enums"]["planning_item_status"];
28803
+ };
28804
+ Returns: undefined;
28805
+ };
28806
+ uren_set_planning_status: {
28807
+ Args: {
28808
+ p_status: Database["public"]["Enums"]["planning_item_status"];
28809
+ p_werkbon_id: string;
28810
+ };
28811
+ Returns: number;
28812
+ };
28813
+ uren_stop_time_log: {
28814
+ Args: {
28815
+ p_employee_id: string;
28816
+ p_end_lat?: number;
28817
+ p_end_lng?: number;
28818
+ p_end_time: string;
28819
+ };
28820
+ Returns: import("./types").Json;
28821
+ };
28822
+ uren_switch_time_log: {
28823
+ Args: {
28824
+ p_employee_id: string;
28825
+ p_start_lat?: number;
28826
+ p_start_lng?: number;
28827
+ p_type: string;
28828
+ p_work_order_id?: string;
28829
+ };
28830
+ Returns: import("./types").Json;
28831
+ };
28832
+ uren_sync_sick_time_off: {
28833
+ Args: {
28834
+ _period_id: string;
28835
+ };
28836
+ Returns: number;
28837
+ };
28838
+ voorraad_cleanup_old_rows: {
28839
+ Args: never;
28840
+ Returns: import("./types").Json;
28841
+ };
25831
28842
  wake_print_queue: {
25832
28843
  Args: {
25833
28844
  _min_interval_ms?: number;
@@ -25866,6 +28877,25 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
25866
28877
  };
25867
28878
  Returns: import("./types").Json;
25868
28879
  };
28880
+ wo_list_offerte_requests: {
28881
+ Args: {
28882
+ _status?: string;
28883
+ };
28884
+ Returns: import("./types").Json;
28885
+ };
28886
+ wo_process_offerte_request: {
28887
+ Args: {
28888
+ _queue_id: string;
28889
+ };
28890
+ Returns: import("./types").Json;
28891
+ };
28892
+ wo_reject_offerte_request: {
28893
+ Args: {
28894
+ _queue_id: string;
28895
+ _reden?: string;
28896
+ };
28897
+ Returns: import("./types").Json;
28898
+ };
25869
28899
  wo_set_status: {
25870
28900
  Args: {
25871
28901
  _reason?: string;