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