@flowselections/floriday-verkoop-module 1.0.65 → 1.0.67

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (57) hide show
  1. package/dist-lib/integrations/supabase/auth-middleware.d.ts +513 -3
  2. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  3. package/dist-lib/integrations/supabase/client.server.d.ts +513 -3
  4. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  5. package/dist-lib/integrations/supabase/types.d.ts +527 -3
  6. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  7. package/dist-lib/lib/buffer-events.functions.d.ts +513 -3
  8. package/dist-lib/lib/buffer-events.functions.d.ts.map +1 -1
  9. package/dist-lib/lib/cart-layers.functions.d.ts +2052 -12
  10. package/dist-lib/lib/cart-layers.functions.d.ts.map +1 -1
  11. package/dist-lib/lib/cart-lock.functions.d.ts +513 -3
  12. package/dist-lib/lib/cart-lock.functions.d.ts.map +1 -1
  13. package/dist-lib/lib/cart-planning-settings.functions.d.ts +5643 -33
  14. package/dist-lib/lib/cart-planning-settings.functions.d.ts.map +1 -1
  15. package/dist-lib/lib/cart-replan.functions.d.ts +1539 -9
  16. package/dist-lib/lib/cart-replan.functions.d.ts.map +1 -1
  17. package/dist-lib/lib/create-order.functions.d.ts +8721 -51
  18. package/dist-lib/lib/create-order.functions.d.ts.map +1 -1
  19. package/dist-lib/lib/floriday-logistic-labels.functions.d.ts +1026 -6
  20. package/dist-lib/lib/floriday-logistic-labels.functions.d.ts.map +1 -1
  21. package/dist-lib/lib/floriday-mirror.functions.d.ts +513 -3
  22. package/dist-lib/lib/floriday-mirror.functions.d.ts.map +1 -1
  23. package/dist-lib/lib/floriday-public.functions.d.ts +3591 -21
  24. package/dist-lib/lib/floriday-public.functions.d.ts.map +1 -1
  25. package/dist-lib/lib/floriday-writes.functions.d.ts +1026 -6
  26. package/dist-lib/lib/floriday-writes.functions.d.ts.map +1 -1
  27. package/dist-lib/lib/invoice-timing.functions.d.ts +2052 -12
  28. package/dist-lib/lib/invoice-timing.functions.d.ts.map +1 -1
  29. package/dist-lib/lib/load-carriers.functions.d.ts +513 -3
  30. package/dist-lib/lib/load-carriers.functions.d.ts.map +1 -1
  31. package/dist-lib/lib/logistics-engine.functions.d.ts +2565 -15
  32. package/dist-lib/lib/logistics-engine.functions.d.ts.map +1 -1
  33. package/dist-lib/lib/logistics-stock.functions.d.ts +1026 -6
  34. package/dist-lib/lib/logistics-stock.functions.d.ts.map +1 -1
  35. package/dist-lib/lib/order-addresses.functions.d.ts +513 -3
  36. package/dist-lib/lib/order-addresses.functions.d.ts.map +1 -1
  37. package/dist-lib/lib/order-buffers.functions.d.ts +1026 -6
  38. package/dist-lib/lib/order-buffers.functions.d.ts.map +1 -1
  39. package/dist-lib/lib/order-carrier.functions.d.ts +1026 -6
  40. package/dist-lib/lib/order-carrier.functions.d.ts.map +1 -1
  41. package/dist-lib/lib/order-fulfill.functions.d.ts +513 -3
  42. package/dist-lib/lib/order-fulfill.functions.d.ts.map +1 -1
  43. package/dist-lib/lib/order-item-packing.functions.d.ts +1539 -9
  44. package/dist-lib/lib/order-item-packing.functions.d.ts.map +1 -1
  45. package/dist-lib/lib/order-pickup.functions.d.ts +1026 -6
  46. package/dist-lib/lib/order-pickup.functions.d.ts.map +1 -1
  47. package/dist-lib/lib/order-shipments.functions.d.ts +2052 -12
  48. package/dist-lib/lib/order-shipments.functions.d.ts.map +1 -1
  49. package/dist-lib/lib/product-dimensions.functions.d.ts +1026 -6
  50. package/dist-lib/lib/product-dimensions.functions.d.ts.map +1 -1
  51. package/dist-lib/lib/salesorders-list.functions.d.ts +1026 -6
  52. package/dist-lib/lib/salesorders-list.functions.d.ts.map +1 -1
  53. package/dist-lib/lib/salesorders.functions.d.ts +3078 -18
  54. package/dist-lib/lib/salesorders.functions.d.ts.map +1 -1
  55. package/dist-lib/lib/stock-consumption-alerts.functions.d.ts +1026 -6
  56. package/dist-lib/lib/stock-consumption-alerts.functions.d.ts.map +1 -1
  57. package/package.json +5 -5
@@ -739,6 +739,27 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
739
739
  };
740
740
  Relationships: [];
741
741
  };
742
+ artikelen_instellingen: {
743
+ Row: {
744
+ created_at: string;
745
+ id: number;
746
+ marge_procent: number;
747
+ updated_at: string;
748
+ };
749
+ Insert: {
750
+ created_at?: string;
751
+ id?: number;
752
+ marge_procent?: number;
753
+ updated_at?: string;
754
+ };
755
+ Update: {
756
+ created_at?: string;
757
+ id?: number;
758
+ marge_procent?: number;
759
+ updated_at?: string;
760
+ };
761
+ Relationships: [];
762
+ };
742
763
  artikelen_veldconfig: {
743
764
  Row: {
744
765
  bron_pad: string;
@@ -10414,6 +10435,30 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
10414
10435
  };
10415
10436
  Relationships: [];
10416
10437
  };
10438
+ logistics_cart_barcode_archief: {
10439
+ Row: {
10440
+ barcode: string;
10441
+ cart_id: string;
10442
+ created_at: string | null;
10443
+ gearchiveerd_op: string;
10444
+ order_id: string | null;
10445
+ };
10446
+ Insert: {
10447
+ barcode: string;
10448
+ cart_id: string;
10449
+ created_at?: string | null;
10450
+ gearchiveerd_op?: string;
10451
+ order_id?: string | null;
10452
+ };
10453
+ Update: {
10454
+ barcode?: string;
10455
+ cart_id?: string;
10456
+ created_at?: string | null;
10457
+ gearchiveerd_op?: string;
10458
+ order_id?: string | null;
10459
+ };
10460
+ Relationships: [];
10461
+ };
10417
10462
  logistics_control_scan: {
10418
10463
  Row: {
10419
10464
  approved_at: string | null;
@@ -16067,18 +16112,24 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
16067
16112
  Row: {
16068
16113
  id: boolean;
16069
16114
  last_cleanup_at: string | null;
16115
+ last_error: string | null;
16116
+ last_error_at: string | null;
16070
16117
  last_sync_at: string | null;
16071
16118
  updated_at: string;
16072
16119
  };
16073
16120
  Insert: {
16074
16121
  id?: boolean;
16075
16122
  last_cleanup_at?: string | null;
16123
+ last_error?: string | null;
16124
+ last_error_at?: string | null;
16076
16125
  last_sync_at?: string | null;
16077
16126
  updated_at?: string;
16078
16127
  };
16079
16128
  Update: {
16080
16129
  id?: boolean;
16081
16130
  last_cleanup_at?: string | null;
16131
+ last_error?: string | null;
16132
+ last_error_at?: string | null;
16082
16133
  last_sync_at?: string | null;
16083
16134
  updated_at?: string;
16084
16135
  };
@@ -16204,6 +16255,54 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
16204
16255
  };
16205
16256
  Relationships: [];
16206
16257
  };
16258
+ planning_confirmation_log: {
16259
+ Row: {
16260
+ created_at: string;
16261
+ end_at: string;
16262
+ id: string;
16263
+ outbox_id: string | null;
16264
+ planning_item_id: string;
16265
+ reason: string | null;
16266
+ recipient: string | null;
16267
+ start_at: string;
16268
+ status: string;
16269
+ };
16270
+ Insert: {
16271
+ created_at?: string;
16272
+ end_at: string;
16273
+ id?: string;
16274
+ outbox_id?: string | null;
16275
+ planning_item_id: string;
16276
+ reason?: string | null;
16277
+ recipient?: string | null;
16278
+ start_at: string;
16279
+ status: string;
16280
+ };
16281
+ Update: {
16282
+ created_at?: string;
16283
+ end_at?: string;
16284
+ id?: string;
16285
+ outbox_id?: string | null;
16286
+ planning_item_id?: string;
16287
+ reason?: string | null;
16288
+ recipient?: string | null;
16289
+ start_at?: string;
16290
+ status?: string;
16291
+ };
16292
+ Relationships: [{
16293
+ foreignKeyName: "planning_confirmation_log_planning_item_id_fkey";
16294
+ columns: ["planning_item_id"];
16295
+ isOneToOne: false;
16296
+ referencedRelation: "planning_items";
16297
+ referencedColumns: ["id"];
16298
+ }, {
16299
+ foreignKeyName: "planning_confirmation_log_planning_item_id_fkey";
16300
+ columns: ["planning_item_id"];
16301
+ isOneToOne: false;
16302
+ referencedRelation: "planning_overview";
16303
+ referencedColumns: ["id"];
16304
+ }];
16305
+ };
16207
16306
  planning_item_assistants: {
16208
16307
  Row: {
16209
16308
  created_at: string;
@@ -16288,6 +16387,60 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
16288
16387
  referencedColumns: ["id"];
16289
16388
  }];
16290
16389
  };
16390
+ planning_mail_settings: {
16391
+ Row: {
16392
+ body_template: string;
16393
+ cc: string[];
16394
+ connection_id: string | null;
16395
+ created_at: string;
16396
+ enabled: boolean;
16397
+ id: boolean;
16398
+ reply_to: string | null;
16399
+ subject_template: string;
16400
+ timezone: string;
16401
+ updated_at: string;
16402
+ updated_by: string | null;
16403
+ };
16404
+ Insert: {
16405
+ body_template?: string;
16406
+ cc?: string[];
16407
+ connection_id?: string | null;
16408
+ created_at?: string;
16409
+ enabled?: boolean;
16410
+ id?: boolean;
16411
+ reply_to?: string | null;
16412
+ subject_template?: string;
16413
+ timezone?: string;
16414
+ updated_at?: string;
16415
+ updated_by?: string | null;
16416
+ };
16417
+ Update: {
16418
+ body_template?: string;
16419
+ cc?: string[];
16420
+ connection_id?: string | null;
16421
+ created_at?: string;
16422
+ enabled?: boolean;
16423
+ id?: boolean;
16424
+ reply_to?: string | null;
16425
+ subject_template?: string;
16426
+ timezone?: string;
16427
+ updated_at?: string;
16428
+ updated_by?: string | null;
16429
+ };
16430
+ Relationships: [{
16431
+ foreignKeyName: "planning_mail_settings_connection_id_fkey";
16432
+ columns: ["connection_id"];
16433
+ isOneToOne: false;
16434
+ referencedRelation: "email_auth_connections";
16435
+ referencedColumns: ["id"];
16436
+ }, {
16437
+ foreignKeyName: "planning_mail_settings_connection_id_fkey";
16438
+ columns: ["connection_id"];
16439
+ isOneToOne: false;
16440
+ referencedRelation: "email_auth_connections_safe";
16441
+ referencedColumns: ["id"];
16442
+ }];
16443
+ };
16291
16444
  planning_monteur_day_locations: {
16292
16445
  Row: {
16293
16446
  created_at: string;
@@ -17766,6 +17919,9 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
17766
17919
  lead_time_days: number | null;
17767
17920
  min_order_quantity: number | null;
17768
17921
  notes: string | null;
17922
+ previous_price_cents: number | null;
17923
+ price_source: string;
17924
+ price_updated_at: string | null;
17769
17925
  product_id: string;
17770
17926
  purchase_price_cents: number | null;
17771
17927
  supplier_article_number: string | null;
@@ -17779,6 +17935,9 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
17779
17935
  lead_time_days?: number | null;
17780
17936
  min_order_quantity?: number | null;
17781
17937
  notes?: string | null;
17938
+ previous_price_cents?: number | null;
17939
+ price_source?: string;
17940
+ price_updated_at?: string | null;
17782
17941
  product_id: string;
17783
17942
  purchase_price_cents?: number | null;
17784
17943
  supplier_article_number?: string | null;
@@ -17792,6 +17951,9 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
17792
17951
  lead_time_days?: number | null;
17793
17952
  min_order_quantity?: number | null;
17794
17953
  notes?: string | null;
17954
+ previous_price_cents?: number | null;
17955
+ price_source?: string;
17956
+ price_updated_at?: string | null;
17795
17957
  product_id?: string;
17796
17958
  purchase_price_cents?: number | null;
17797
17959
  supplier_article_number?: string | null;
@@ -18322,9 +18484,13 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
18322
18484
  purchase_order_items: {
18323
18485
  Row: {
18324
18486
  article_number: string | null;
18487
+ cancel_reason: string | null;
18488
+ cancelled_at: string | null;
18325
18489
  created_at: string;
18326
18490
  delivery_date: string | null;
18327
18491
  id: string;
18492
+ incoming_booked: number;
18493
+ line_status: string;
18328
18494
  name: string;
18329
18495
  note: string | null;
18330
18496
  pot_size: string | null;
@@ -18332,6 +18498,8 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
18332
18498
  product_type: string;
18333
18499
  purchase_order_id: string;
18334
18500
  quantity: number;
18501
+ received_at: string | null;
18502
+ received_booked: number;
18335
18503
  supplier_id: string | null;
18336
18504
  supplier_product_id: string | null;
18337
18505
  unit_price_cents: number;
@@ -18339,9 +18507,13 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
18339
18507
  };
18340
18508
  Insert: {
18341
18509
  article_number?: string | null;
18510
+ cancel_reason?: string | null;
18511
+ cancelled_at?: string | null;
18342
18512
  created_at?: string;
18343
18513
  delivery_date?: string | null;
18344
18514
  id?: string;
18515
+ incoming_booked?: number;
18516
+ line_status?: string;
18345
18517
  name?: string;
18346
18518
  note?: string | null;
18347
18519
  pot_size?: string | null;
@@ -18349,6 +18521,8 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
18349
18521
  product_type?: string;
18350
18522
  purchase_order_id: string;
18351
18523
  quantity?: number;
18524
+ received_at?: string | null;
18525
+ received_booked?: number;
18352
18526
  supplier_id?: string | null;
18353
18527
  supplier_product_id?: string | null;
18354
18528
  unit_price_cents?: number;
@@ -18356,9 +18530,13 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
18356
18530
  };
18357
18531
  Update: {
18358
18532
  article_number?: string | null;
18533
+ cancel_reason?: string | null;
18534
+ cancelled_at?: string | null;
18359
18535
  created_at?: string;
18360
18536
  delivery_date?: string | null;
18361
18537
  id?: string;
18538
+ incoming_booked?: number;
18539
+ line_status?: string;
18362
18540
  name?: string;
18363
18541
  note?: string | null;
18364
18542
  pot_size?: string | null;
@@ -18366,6 +18544,8 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
18366
18544
  product_type?: string;
18367
18545
  purchase_order_id?: string;
18368
18546
  quantity?: number;
18547
+ received_at?: string | null;
18548
+ received_booked?: number;
18369
18549
  supplier_id?: string | null;
18370
18550
  supplier_product_id?: string | null;
18371
18551
  unit_price_cents?: number;
@@ -18469,6 +18649,153 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
18469
18649
  referencedColumns: ["id"];
18470
18650
  }];
18471
18651
  };
18652
+ purchase_request_events: {
18653
+ Row: {
18654
+ created_at: string;
18655
+ details: import("../integrations/supabase/types").Json | null;
18656
+ event_type: string;
18657
+ id: string;
18658
+ request_id: string;
18659
+ };
18660
+ Insert: {
18661
+ created_at?: string;
18662
+ details?: import("../integrations/supabase/types").Json | null;
18663
+ event_type: string;
18664
+ id?: string;
18665
+ request_id: string;
18666
+ };
18667
+ Update: {
18668
+ created_at?: string;
18669
+ details?: import("../integrations/supabase/types").Json | null;
18670
+ event_type?: string;
18671
+ id?: string;
18672
+ request_id?: string;
18673
+ };
18674
+ Relationships: [{
18675
+ foreignKeyName: "purchase_request_events_request_id_fkey";
18676
+ columns: ["request_id"];
18677
+ isOneToOne: false;
18678
+ referencedRelation: "purchase_requests";
18679
+ referencedColumns: ["id"];
18680
+ }];
18681
+ };
18682
+ purchase_request_responses: {
18683
+ Row: {
18684
+ confirmed_date: string | null;
18685
+ confirmed_price_cents: number | null;
18686
+ confirmed_quantity: number;
18687
+ created_at: string;
18688
+ id: string;
18689
+ not_available: boolean;
18690
+ note: string | null;
18691
+ purchase_order_item_id: string;
18692
+ request_id: string;
18693
+ updated_at: string;
18694
+ };
18695
+ Insert: {
18696
+ confirmed_date?: string | null;
18697
+ confirmed_price_cents?: number | null;
18698
+ confirmed_quantity?: number;
18699
+ created_at?: string;
18700
+ id?: string;
18701
+ not_available?: boolean;
18702
+ note?: string | null;
18703
+ purchase_order_item_id: string;
18704
+ request_id: string;
18705
+ updated_at?: string;
18706
+ };
18707
+ Update: {
18708
+ confirmed_date?: string | null;
18709
+ confirmed_price_cents?: number | null;
18710
+ confirmed_quantity?: number;
18711
+ created_at?: string;
18712
+ id?: string;
18713
+ not_available?: boolean;
18714
+ note?: string | null;
18715
+ purchase_order_item_id?: string;
18716
+ request_id?: string;
18717
+ updated_at?: string;
18718
+ };
18719
+ Relationships: [{
18720
+ foreignKeyName: "purchase_request_responses_purchase_order_item_id_fkey";
18721
+ columns: ["purchase_order_item_id"];
18722
+ isOneToOne: false;
18723
+ referencedRelation: "purchase_order_items";
18724
+ referencedColumns: ["id"];
18725
+ }, {
18726
+ foreignKeyName: "purchase_request_responses_request_id_fkey";
18727
+ columns: ["request_id"];
18728
+ isOneToOne: false;
18729
+ referencedRelation: "purchase_requests";
18730
+ referencedColumns: ["id"];
18731
+ }];
18732
+ };
18733
+ purchase_requests: {
18734
+ Row: {
18735
+ created_at: string;
18736
+ expires_at: string;
18737
+ first_viewed_at: string | null;
18738
+ id: string;
18739
+ processed_at: string | null;
18740
+ purchase_order_id: string;
18741
+ responded_at: string | null;
18742
+ sent_at: string;
18743
+ status: string;
18744
+ supplier_id: string | null;
18745
+ supplier_name: string;
18746
+ supplier_note: string | null;
18747
+ to_address: string | null;
18748
+ token_hash: string;
18749
+ updated_at: string;
18750
+ };
18751
+ Insert: {
18752
+ created_at?: string;
18753
+ expires_at?: string;
18754
+ first_viewed_at?: string | null;
18755
+ id?: string;
18756
+ processed_at?: string | null;
18757
+ purchase_order_id: string;
18758
+ responded_at?: string | null;
18759
+ sent_at?: string;
18760
+ status?: string;
18761
+ supplier_id?: string | null;
18762
+ supplier_name?: string;
18763
+ supplier_note?: string | null;
18764
+ to_address?: string | null;
18765
+ token_hash: string;
18766
+ updated_at?: string;
18767
+ };
18768
+ Update: {
18769
+ created_at?: string;
18770
+ expires_at?: string;
18771
+ first_viewed_at?: string | null;
18772
+ id?: string;
18773
+ processed_at?: string | null;
18774
+ purchase_order_id?: string;
18775
+ responded_at?: string | null;
18776
+ sent_at?: string;
18777
+ status?: string;
18778
+ supplier_id?: string | null;
18779
+ supplier_name?: string;
18780
+ supplier_note?: string | null;
18781
+ to_address?: string | null;
18782
+ token_hash?: string;
18783
+ updated_at?: string;
18784
+ };
18785
+ Relationships: [{
18786
+ foreignKeyName: "purchase_requests_purchase_order_id_fkey";
18787
+ columns: ["purchase_order_id"];
18788
+ isOneToOne: false;
18789
+ referencedRelation: "purchase_orders";
18790
+ referencedColumns: ["id"];
18791
+ }, {
18792
+ foreignKeyName: "purchase_requests_supplier_id_fkey";
18793
+ columns: ["supplier_id"];
18794
+ isOneToOne: false;
18795
+ referencedRelation: "suppliers";
18796
+ referencedColumns: ["id"];
18797
+ }];
18798
+ };
18472
18799
  reception_notifications: {
18473
18800
  Row: {
18474
18801
  booking_id: string | null;
@@ -22894,7 +23221,7 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
22894
23221
  created_at: string;
22895
23222
  default_quantity: number;
22896
23223
  description: string | null;
22897
- duration_minutes: number | null;
23224
+ duration_minutes: number;
22898
23225
  id: string;
22899
23226
  mandaat_type: string | null;
22900
23227
  name: string;
@@ -22911,7 +23238,7 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
22911
23238
  created_at?: string;
22912
23239
  default_quantity?: number;
22913
23240
  description?: string | null;
22914
- duration_minutes?: number | null;
23241
+ duration_minutes?: number;
22915
23242
  id?: string;
22916
23243
  mandaat_type?: string | null;
22917
23244
  name: string;
@@ -22928,7 +23255,7 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
22928
23255
  created_at?: string;
22929
23256
  default_quantity?: number;
22930
23257
  description?: string | null;
22931
- duration_minutes?: number | null;
23258
+ duration_minutes?: number;
22932
23259
  id?: string;
22933
23260
  mandaat_type?: string | null;
22934
23261
  name?: string;
@@ -25924,6 +26251,31 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
25924
26251
  };
25925
26252
  Returns: import("../integrations/supabase/types").Json;
25926
26253
  };
26254
+ inkoop_cancel_line: {
26255
+ Args: {
26256
+ _item_id: string;
26257
+ _reason: string;
26258
+ };
26259
+ Returns: string;
26260
+ };
26261
+ inkoop_get_supplier_request: {
26262
+ Args: {
26263
+ _token: string;
26264
+ };
26265
+ Returns: import("../integrations/supabase/types").Json;
26266
+ };
26267
+ inkoop_hash_token: {
26268
+ Args: {
26269
+ _token: string;
26270
+ };
26271
+ Returns: string;
26272
+ };
26273
+ inkoop_html_escape: {
26274
+ Args: {
26275
+ _t: string;
26276
+ };
26277
+ Returns: string;
26278
+ };
25927
26279
  inkoop_list_artikelen: {
25928
26280
  Args: never;
25929
26281
  Returns: {
@@ -25948,9 +26300,17 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
25948
26300
  Args: never;
25949
26301
  Returns: string;
25950
26302
  };
26303
+ inkoop_process_request: {
26304
+ Args: {
26305
+ _request_id: string;
26306
+ };
26307
+ Returns: undefined;
26308
+ };
25951
26309
  inkoop_send_order: {
25952
26310
  Args: {
26311
+ _base_url?: string;
25953
26312
  _order_id: string;
26313
+ _resend?: boolean;
25954
26314
  };
25955
26315
  Returns: {
25956
26316
  outbox_id: string;
@@ -25965,6 +26325,26 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
25965
26325
  };
25966
26326
  Returns: undefined;
25967
26327
  };
26328
+ inkoop_stock_key: {
26329
+ Args: {
26330
+ p_product_id: string;
26331
+ };
26332
+ Returns: string;
26333
+ };
26334
+ inkoop_submit_supplier_response: {
26335
+ Args: {
26336
+ _lines: import("../integrations/supabase/types").Json;
26337
+ _note?: string;
26338
+ _token: string;
26339
+ };
26340
+ Returns: import("../integrations/supabase/types").Json;
26341
+ };
26342
+ inkoop_sync_item_stock: {
26343
+ Args: {
26344
+ p_item_id: string;
26345
+ };
26346
+ Returns: undefined;
26347
+ };
25968
26348
  instructie_get: {
25969
26349
  Args: {
25970
26350
  _sleutel: string;
@@ -26125,6 +26505,27 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
26125
26505
  };
26126
26506
  Returns: boolean;
26127
26507
  };
26508
+ layout_print_document: {
26509
+ Args: {
26510
+ _documentnaam: string;
26511
+ _documenttype: string;
26512
+ _herkomst?: string;
26513
+ _idempotentie_sleutel?: string;
26514
+ _is_herprint?: boolean;
26515
+ _kopieen?: number;
26516
+ _layout_id?: string;
26517
+ _payload?: import("../integrations/supabase/types").Json;
26518
+ _pdf_base64?: string;
26519
+ _pdf_url?: string;
26520
+ _print_plek_id?: string;
26521
+ _werkplek?: string;
26522
+ };
26523
+ Returns: {
26524
+ bestaand: boolean;
26525
+ job_id: string;
26526
+ printer_id: string;
26527
+ }[];
26528
+ };
26128
26529
  list_medewerkers: {
26129
26530
  Args: never;
26130
26531
  Returns: {
@@ -26402,6 +26803,12 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
26402
26803
  };
26403
26804
  Returns: number;
26404
26805
  };
26806
+ logistics_cart_barcode_opschonen: {
26807
+ Args: {
26808
+ p_portie?: number;
26809
+ };
26810
+ Returns: import("../integrations/supabase/types").Json;
26811
+ };
26405
26812
  logistics_cart_barcode_value: {
26406
26813
  Args: {
26407
26814
  _cart_id: string;
@@ -26821,6 +27228,13 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
26821
27228
  };
26822
27229
  Returns: import("../integrations/supabase/types").Json;
26823
27230
  };
27231
+ logistics_control_scan_print_own: {
27232
+ Args: {
27233
+ p_is_herprint?: boolean;
27234
+ p_scan_id: string;
27235
+ };
27236
+ Returns: import("../integrations/supabase/types").Json;
27237
+ };
26824
27238
  logistics_control_scan_retry: {
26825
27239
  Args: {
26826
27240
  _id: string;
@@ -27725,6 +28139,21 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
27725
28139
  };
27726
28140
  Returns: import("../integrations/supabase/types").Json;
27727
28141
  };
28142
+ logistics_print_via_layout: {
28143
+ Args: {
28144
+ _documentnaam: string;
28145
+ _documenttype: string;
28146
+ _herkomst: string;
28147
+ _idempotentie_sleutel: string;
28148
+ _is_herprint: boolean;
28149
+ _layout_id: string;
28150
+ _payload: import("../integrations/supabase/types").Json;
28151
+ _pdf_base64: string;
28152
+ _pdf_url: string;
28153
+ _print_plek_id: string;
28154
+ };
28155
+ Returns: import("../integrations/supabase/types").Json;
28156
+ };
27728
28157
  logistics_prune_buffer_member_queue: {
27729
28158
  Args: never;
27730
28159
  Returns: number;
@@ -28011,6 +28440,13 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
28011
28440
  };
28012
28441
  Returns: string;
28013
28442
  };
28443
+ logistics_shipping_note_status: {
28444
+ Args: {
28445
+ p_cart_id?: string;
28446
+ p_slip_job_id?: string;
28447
+ };
28448
+ Returns: import("../integrations/supabase/types").Json;
28449
+ };
28014
28450
  logistics_shipping_notes_wake_all: {
28015
28451
  Args: never;
28016
28452
  Returns: import("../integrations/supabase/types").Json;
@@ -28073,6 +28509,12 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
28073
28509
  };
28074
28510
  Returns: undefined;
28075
28511
  };
28512
+ logistics_slip_note_retry: {
28513
+ Args: {
28514
+ _id: string;
28515
+ };
28516
+ Returns: import("../integrations/supabase/types").Json;
28517
+ };
28076
28518
  logistics_sticker_follows_slip: {
28077
28519
  Args: never;
28078
28520
  Returns: boolean;
@@ -28817,6 +29259,10 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
28817
29259
  };
28818
29260
  Returns: string;
28819
29261
  };
29262
+ pick_is_reference_admin: {
29263
+ Args: never;
29264
+ Returns: boolean;
29265
+ };
28820
29266
  pick_mark_printed: {
28821
29267
  Args: {
28822
29268
  _queue_item_id: string;
@@ -29240,6 +29686,12 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
29240
29686
  };
29241
29687
  Returns: import("../integrations/supabase/types").Json;
29242
29688
  };
29689
+ pick_verify_rows: {
29690
+ Args: {
29691
+ _rows: import("../integrations/supabase/types").Json;
29692
+ };
29693
+ Returns: import("../integrations/supabase/types").Json;
29694
+ };
29243
29695
  pickstation_get_orders_raw: {
29244
29696
  Args: never;
29245
29697
  Returns: import("../integrations/supabase/types").Json;
@@ -29420,6 +29872,12 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
29420
29872
  };
29421
29873
  Returns: import("../integrations/supabase/types").Json;
29422
29874
  };
29875
+ quote_create_from_scratch: {
29876
+ Args: {
29877
+ _payload: import("../integrations/supabase/types").Json;
29878
+ };
29879
+ Returns: import("../integrations/supabase/types").Json;
29880
+ };
29423
29881
  quote_create_from_source: {
29424
29882
  Args: {
29425
29883
  _payload?: import("../integrations/supabase/types").Json;
@@ -29470,6 +29928,13 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
29470
29928
  };
29471
29929
  Returns: string;
29472
29930
  };
29931
+ quote_sync_work_order: {
29932
+ Args: {
29933
+ _monteur_instructies?: string;
29934
+ _offerte_id: string;
29935
+ };
29936
+ Returns: boolean;
29937
+ };
29473
29938
  recompute_all_reserved_stock: {
29474
29939
  Args: never;
29475
29940
  Returns: undefined;
@@ -29690,6 +30155,13 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
29690
30155
  };
29691
30156
  Returns: import("../integrations/supabase/types").Json;
29692
30157
  };
30158
+ scan_controleer_pincode: {
30159
+ Args: {
30160
+ p_pin: string;
30161
+ p_scanner_id: string;
30162
+ };
30163
+ Returns: boolean;
30164
+ };
29693
30165
  scan_dashboard_stats: {
29694
30166
  Args: {
29695
30167
  p_dagen?: number;
@@ -29709,6 +30181,12 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
29709
30181
  };
29710
30182
  Returns: import("../integrations/supabase/types").Json;
29711
30183
  };
30184
+ scan_heeft_pincode: {
30185
+ Args: {
30186
+ p_scanner_id: string;
30187
+ };
30188
+ Returns: boolean;
30189
+ };
29712
30190
  scan_kar_compleet: {
29713
30191
  Args: {
29714
30192
  p_allow_reprint?: boolean;
@@ -29726,6 +30204,7 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
29726
30204
  Args: {
29727
30205
  p_code: string;
29728
30206
  p_latency_ms?: number;
30207
+ p_medewerker?: string;
29729
30208
  p_message?: string;
29730
30209
  p_result: string;
29731
30210
  p_scanner_key?: string;
@@ -29798,6 +30277,22 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
29798
30277
  };
29799
30278
  Returns: undefined;
29800
30279
  };
30280
+ scan_scanner_info: {
30281
+ Args: {
30282
+ p_slug: string;
30283
+ };
30284
+ Returns: {
30285
+ actief: boolean;
30286
+ heeft_pincode: boolean;
30287
+ id: string;
30288
+ naam: string;
30289
+ omschrijving: string;
30290
+ printer_id: string;
30291
+ type: string;
30292
+ vereist_medewerker: boolean;
30293
+ werkplek: string;
30294
+ }[];
30295
+ };
29801
30296
  scan_sessie_annuleren: {
29802
30297
  Args: {
29803
30298
  p_sessie_id: string;
@@ -30760,6 +31255,21 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
30760
31255
  };
30761
31256
  Returns: import("../integrations/supabase/types").Json;
30762
31257
  };
31258
+ wo_list_colleague_planning: {
31259
+ Args: {
31260
+ _from: string;
31261
+ _monteur_id: string;
31262
+ _to: string;
31263
+ };
31264
+ Returns: {
31265
+ end_at: string;
31266
+ id: string;
31267
+ role: string;
31268
+ start_at: string;
31269
+ status: string;
31270
+ werkbon_id: string;
31271
+ }[];
31272
+ };
30763
31273
  wo_list_offerte_requests: {
30764
31274
  Args: {
30765
31275
  _status?: string;
@@ -31569,6 +32079,27 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
31569
32079
  };
31570
32080
  Relationships: [];
31571
32081
  };
32082
+ artikelen_instellingen: {
32083
+ Row: {
32084
+ created_at: string;
32085
+ id: number;
32086
+ marge_procent: number;
32087
+ updated_at: string;
32088
+ };
32089
+ Insert: {
32090
+ created_at?: string;
32091
+ id?: number;
32092
+ marge_procent?: number;
32093
+ updated_at?: string;
32094
+ };
32095
+ Update: {
32096
+ created_at?: string;
32097
+ id?: number;
32098
+ marge_procent?: number;
32099
+ updated_at?: string;
32100
+ };
32101
+ Relationships: [];
32102
+ };
31572
32103
  artikelen_veldconfig: {
31573
32104
  Row: {
31574
32105
  bron_pad: string;
@@ -41244,6 +41775,30 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
41244
41775
  };
41245
41776
  Relationships: [];
41246
41777
  };
41778
+ logistics_cart_barcode_archief: {
41779
+ Row: {
41780
+ barcode: string;
41781
+ cart_id: string;
41782
+ created_at: string | null;
41783
+ gearchiveerd_op: string;
41784
+ order_id: string | null;
41785
+ };
41786
+ Insert: {
41787
+ barcode: string;
41788
+ cart_id: string;
41789
+ created_at?: string | null;
41790
+ gearchiveerd_op?: string;
41791
+ order_id?: string | null;
41792
+ };
41793
+ Update: {
41794
+ barcode?: string;
41795
+ cart_id?: string;
41796
+ created_at?: string | null;
41797
+ gearchiveerd_op?: string;
41798
+ order_id?: string | null;
41799
+ };
41800
+ Relationships: [];
41801
+ };
41247
41802
  logistics_control_scan: {
41248
41803
  Row: {
41249
41804
  approved_at: string | null;
@@ -46897,18 +47452,24 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
46897
47452
  Row: {
46898
47453
  id: boolean;
46899
47454
  last_cleanup_at: string | null;
47455
+ last_error: string | null;
47456
+ last_error_at: string | null;
46900
47457
  last_sync_at: string | null;
46901
47458
  updated_at: string;
46902
47459
  };
46903
47460
  Insert: {
46904
47461
  id?: boolean;
46905
47462
  last_cleanup_at?: string | null;
47463
+ last_error?: string | null;
47464
+ last_error_at?: string | null;
46906
47465
  last_sync_at?: string | null;
46907
47466
  updated_at?: string;
46908
47467
  };
46909
47468
  Update: {
46910
47469
  id?: boolean;
46911
47470
  last_cleanup_at?: string | null;
47471
+ last_error?: string | null;
47472
+ last_error_at?: string | null;
46912
47473
  last_sync_at?: string | null;
46913
47474
  updated_at?: string;
46914
47475
  };
@@ -47034,6 +47595,54 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
47034
47595
  };
47035
47596
  Relationships: [];
47036
47597
  };
47598
+ planning_confirmation_log: {
47599
+ Row: {
47600
+ created_at: string;
47601
+ end_at: string;
47602
+ id: string;
47603
+ outbox_id: string | null;
47604
+ planning_item_id: string;
47605
+ reason: string | null;
47606
+ recipient: string | null;
47607
+ start_at: string;
47608
+ status: string;
47609
+ };
47610
+ Insert: {
47611
+ created_at?: string;
47612
+ end_at: string;
47613
+ id?: string;
47614
+ outbox_id?: string | null;
47615
+ planning_item_id: string;
47616
+ reason?: string | null;
47617
+ recipient?: string | null;
47618
+ start_at: string;
47619
+ status: string;
47620
+ };
47621
+ Update: {
47622
+ created_at?: string;
47623
+ end_at?: string;
47624
+ id?: string;
47625
+ outbox_id?: string | null;
47626
+ planning_item_id?: string;
47627
+ reason?: string | null;
47628
+ recipient?: string | null;
47629
+ start_at?: string;
47630
+ status?: string;
47631
+ };
47632
+ Relationships: [{
47633
+ foreignKeyName: "planning_confirmation_log_planning_item_id_fkey";
47634
+ columns: ["planning_item_id"];
47635
+ isOneToOne: false;
47636
+ referencedRelation: "planning_items";
47637
+ referencedColumns: ["id"];
47638
+ }, {
47639
+ foreignKeyName: "planning_confirmation_log_planning_item_id_fkey";
47640
+ columns: ["planning_item_id"];
47641
+ isOneToOne: false;
47642
+ referencedRelation: "planning_overview";
47643
+ referencedColumns: ["id"];
47644
+ }];
47645
+ };
47037
47646
  planning_item_assistants: {
47038
47647
  Row: {
47039
47648
  created_at: string;
@@ -47118,6 +47727,60 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
47118
47727
  referencedColumns: ["id"];
47119
47728
  }];
47120
47729
  };
47730
+ planning_mail_settings: {
47731
+ Row: {
47732
+ body_template: string;
47733
+ cc: string[];
47734
+ connection_id: string | null;
47735
+ created_at: string;
47736
+ enabled: boolean;
47737
+ id: boolean;
47738
+ reply_to: string | null;
47739
+ subject_template: string;
47740
+ timezone: string;
47741
+ updated_at: string;
47742
+ updated_by: string | null;
47743
+ };
47744
+ Insert: {
47745
+ body_template?: string;
47746
+ cc?: string[];
47747
+ connection_id?: string | null;
47748
+ created_at?: string;
47749
+ enabled?: boolean;
47750
+ id?: boolean;
47751
+ reply_to?: string | null;
47752
+ subject_template?: string;
47753
+ timezone?: string;
47754
+ updated_at?: string;
47755
+ updated_by?: string | null;
47756
+ };
47757
+ Update: {
47758
+ body_template?: string;
47759
+ cc?: string[];
47760
+ connection_id?: string | null;
47761
+ created_at?: string;
47762
+ enabled?: boolean;
47763
+ id?: boolean;
47764
+ reply_to?: string | null;
47765
+ subject_template?: string;
47766
+ timezone?: string;
47767
+ updated_at?: string;
47768
+ updated_by?: string | null;
47769
+ };
47770
+ Relationships: [{
47771
+ foreignKeyName: "planning_mail_settings_connection_id_fkey";
47772
+ columns: ["connection_id"];
47773
+ isOneToOne: false;
47774
+ referencedRelation: "email_auth_connections";
47775
+ referencedColumns: ["id"];
47776
+ }, {
47777
+ foreignKeyName: "planning_mail_settings_connection_id_fkey";
47778
+ columns: ["connection_id"];
47779
+ isOneToOne: false;
47780
+ referencedRelation: "email_auth_connections_safe";
47781
+ referencedColumns: ["id"];
47782
+ }];
47783
+ };
47121
47784
  planning_monteur_day_locations: {
47122
47785
  Row: {
47123
47786
  created_at: string;
@@ -48596,6 +49259,9 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
48596
49259
  lead_time_days: number | null;
48597
49260
  min_order_quantity: number | null;
48598
49261
  notes: string | null;
49262
+ previous_price_cents: number | null;
49263
+ price_source: string;
49264
+ price_updated_at: string | null;
48599
49265
  product_id: string;
48600
49266
  purchase_price_cents: number | null;
48601
49267
  supplier_article_number: string | null;
@@ -48609,6 +49275,9 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
48609
49275
  lead_time_days?: number | null;
48610
49276
  min_order_quantity?: number | null;
48611
49277
  notes?: string | null;
49278
+ previous_price_cents?: number | null;
49279
+ price_source?: string;
49280
+ price_updated_at?: string | null;
48612
49281
  product_id: string;
48613
49282
  purchase_price_cents?: number | null;
48614
49283
  supplier_article_number?: string | null;
@@ -48622,6 +49291,9 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
48622
49291
  lead_time_days?: number | null;
48623
49292
  min_order_quantity?: number | null;
48624
49293
  notes?: string | null;
49294
+ previous_price_cents?: number | null;
49295
+ price_source?: string;
49296
+ price_updated_at?: string | null;
48625
49297
  product_id?: string;
48626
49298
  purchase_price_cents?: number | null;
48627
49299
  supplier_article_number?: string | null;
@@ -49152,9 +49824,13 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
49152
49824
  purchase_order_items: {
49153
49825
  Row: {
49154
49826
  article_number: string | null;
49827
+ cancel_reason: string | null;
49828
+ cancelled_at: string | null;
49155
49829
  created_at: string;
49156
49830
  delivery_date: string | null;
49157
49831
  id: string;
49832
+ incoming_booked: number;
49833
+ line_status: string;
49158
49834
  name: string;
49159
49835
  note: string | null;
49160
49836
  pot_size: string | null;
@@ -49162,6 +49838,8 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
49162
49838
  product_type: string;
49163
49839
  purchase_order_id: string;
49164
49840
  quantity: number;
49841
+ received_at: string | null;
49842
+ received_booked: number;
49165
49843
  supplier_id: string | null;
49166
49844
  supplier_product_id: string | null;
49167
49845
  unit_price_cents: number;
@@ -49169,9 +49847,13 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
49169
49847
  };
49170
49848
  Insert: {
49171
49849
  article_number?: string | null;
49850
+ cancel_reason?: string | null;
49851
+ cancelled_at?: string | null;
49172
49852
  created_at?: string;
49173
49853
  delivery_date?: string | null;
49174
49854
  id?: string;
49855
+ incoming_booked?: number;
49856
+ line_status?: string;
49175
49857
  name?: string;
49176
49858
  note?: string | null;
49177
49859
  pot_size?: string | null;
@@ -49179,6 +49861,8 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
49179
49861
  product_type?: string;
49180
49862
  purchase_order_id: string;
49181
49863
  quantity?: number;
49864
+ received_at?: string | null;
49865
+ received_booked?: number;
49182
49866
  supplier_id?: string | null;
49183
49867
  supplier_product_id?: string | null;
49184
49868
  unit_price_cents?: number;
@@ -49186,9 +49870,13 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
49186
49870
  };
49187
49871
  Update: {
49188
49872
  article_number?: string | null;
49873
+ cancel_reason?: string | null;
49874
+ cancelled_at?: string | null;
49189
49875
  created_at?: string;
49190
49876
  delivery_date?: string | null;
49191
49877
  id?: string;
49878
+ incoming_booked?: number;
49879
+ line_status?: string;
49192
49880
  name?: string;
49193
49881
  note?: string | null;
49194
49882
  pot_size?: string | null;
@@ -49196,6 +49884,8 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
49196
49884
  product_type?: string;
49197
49885
  purchase_order_id?: string;
49198
49886
  quantity?: number;
49887
+ received_at?: string | null;
49888
+ received_booked?: number;
49199
49889
  supplier_id?: string | null;
49200
49890
  supplier_product_id?: string | null;
49201
49891
  unit_price_cents?: number;
@@ -49299,6 +49989,153 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
49299
49989
  referencedColumns: ["id"];
49300
49990
  }];
49301
49991
  };
49992
+ purchase_request_events: {
49993
+ Row: {
49994
+ created_at: string;
49995
+ details: import("../integrations/supabase/types").Json | null;
49996
+ event_type: string;
49997
+ id: string;
49998
+ request_id: string;
49999
+ };
50000
+ Insert: {
50001
+ created_at?: string;
50002
+ details?: import("../integrations/supabase/types").Json | null;
50003
+ event_type: string;
50004
+ id?: string;
50005
+ request_id: string;
50006
+ };
50007
+ Update: {
50008
+ created_at?: string;
50009
+ details?: import("../integrations/supabase/types").Json | null;
50010
+ event_type?: string;
50011
+ id?: string;
50012
+ request_id?: string;
50013
+ };
50014
+ Relationships: [{
50015
+ foreignKeyName: "purchase_request_events_request_id_fkey";
50016
+ columns: ["request_id"];
50017
+ isOneToOne: false;
50018
+ referencedRelation: "purchase_requests";
50019
+ referencedColumns: ["id"];
50020
+ }];
50021
+ };
50022
+ purchase_request_responses: {
50023
+ Row: {
50024
+ confirmed_date: string | null;
50025
+ confirmed_price_cents: number | null;
50026
+ confirmed_quantity: number;
50027
+ created_at: string;
50028
+ id: string;
50029
+ not_available: boolean;
50030
+ note: string | null;
50031
+ purchase_order_item_id: string;
50032
+ request_id: string;
50033
+ updated_at: string;
50034
+ };
50035
+ Insert: {
50036
+ confirmed_date?: string | null;
50037
+ confirmed_price_cents?: number | null;
50038
+ confirmed_quantity?: number;
50039
+ created_at?: string;
50040
+ id?: string;
50041
+ not_available?: boolean;
50042
+ note?: string | null;
50043
+ purchase_order_item_id: string;
50044
+ request_id: string;
50045
+ updated_at?: string;
50046
+ };
50047
+ Update: {
50048
+ confirmed_date?: string | null;
50049
+ confirmed_price_cents?: number | null;
50050
+ confirmed_quantity?: number;
50051
+ created_at?: string;
50052
+ id?: string;
50053
+ not_available?: boolean;
50054
+ note?: string | null;
50055
+ purchase_order_item_id?: string;
50056
+ request_id?: string;
50057
+ updated_at?: string;
50058
+ };
50059
+ Relationships: [{
50060
+ foreignKeyName: "purchase_request_responses_purchase_order_item_id_fkey";
50061
+ columns: ["purchase_order_item_id"];
50062
+ isOneToOne: false;
50063
+ referencedRelation: "purchase_order_items";
50064
+ referencedColumns: ["id"];
50065
+ }, {
50066
+ foreignKeyName: "purchase_request_responses_request_id_fkey";
50067
+ columns: ["request_id"];
50068
+ isOneToOne: false;
50069
+ referencedRelation: "purchase_requests";
50070
+ referencedColumns: ["id"];
50071
+ }];
50072
+ };
50073
+ purchase_requests: {
50074
+ Row: {
50075
+ created_at: string;
50076
+ expires_at: string;
50077
+ first_viewed_at: string | null;
50078
+ id: string;
50079
+ processed_at: string | null;
50080
+ purchase_order_id: string;
50081
+ responded_at: string | null;
50082
+ sent_at: string;
50083
+ status: string;
50084
+ supplier_id: string | null;
50085
+ supplier_name: string;
50086
+ supplier_note: string | null;
50087
+ to_address: string | null;
50088
+ token_hash: string;
50089
+ updated_at: string;
50090
+ };
50091
+ Insert: {
50092
+ created_at?: string;
50093
+ expires_at?: string;
50094
+ first_viewed_at?: string | null;
50095
+ id?: string;
50096
+ processed_at?: string | null;
50097
+ purchase_order_id: string;
50098
+ responded_at?: string | null;
50099
+ sent_at?: string;
50100
+ status?: string;
50101
+ supplier_id?: string | null;
50102
+ supplier_name?: string;
50103
+ supplier_note?: string | null;
50104
+ to_address?: string | null;
50105
+ token_hash: string;
50106
+ updated_at?: string;
50107
+ };
50108
+ Update: {
50109
+ created_at?: string;
50110
+ expires_at?: string;
50111
+ first_viewed_at?: string | null;
50112
+ id?: string;
50113
+ processed_at?: string | null;
50114
+ purchase_order_id?: string;
50115
+ responded_at?: string | null;
50116
+ sent_at?: string;
50117
+ status?: string;
50118
+ supplier_id?: string | null;
50119
+ supplier_name?: string;
50120
+ supplier_note?: string | null;
50121
+ to_address?: string | null;
50122
+ token_hash?: string;
50123
+ updated_at?: string;
50124
+ };
50125
+ Relationships: [{
50126
+ foreignKeyName: "purchase_requests_purchase_order_id_fkey";
50127
+ columns: ["purchase_order_id"];
50128
+ isOneToOne: false;
50129
+ referencedRelation: "purchase_orders";
50130
+ referencedColumns: ["id"];
50131
+ }, {
50132
+ foreignKeyName: "purchase_requests_supplier_id_fkey";
50133
+ columns: ["supplier_id"];
50134
+ isOneToOne: false;
50135
+ referencedRelation: "suppliers";
50136
+ referencedColumns: ["id"];
50137
+ }];
50138
+ };
49302
50139
  reception_notifications: {
49303
50140
  Row: {
49304
50141
  booking_id: string | null;
@@ -53724,7 +54561,7 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
53724
54561
  created_at: string;
53725
54562
  default_quantity: number;
53726
54563
  description: string | null;
53727
- duration_minutes: number | null;
54564
+ duration_minutes: number;
53728
54565
  id: string;
53729
54566
  mandaat_type: string | null;
53730
54567
  name: string;
@@ -53741,7 +54578,7 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
53741
54578
  created_at?: string;
53742
54579
  default_quantity?: number;
53743
54580
  description?: string | null;
53744
- duration_minutes?: number | null;
54581
+ duration_minutes?: number;
53745
54582
  id?: string;
53746
54583
  mandaat_type?: string | null;
53747
54584
  name: string;
@@ -53758,7 +54595,7 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
53758
54595
  created_at?: string;
53759
54596
  default_quantity?: number;
53760
54597
  description?: string | null;
53761
- duration_minutes?: number | null;
54598
+ duration_minutes?: number;
53762
54599
  id?: string;
53763
54600
  mandaat_type?: string | null;
53764
54601
  name?: string;
@@ -56754,6 +57591,31 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
56754
57591
  };
56755
57592
  Returns: import("../integrations/supabase/types").Json;
56756
57593
  };
57594
+ inkoop_cancel_line: {
57595
+ Args: {
57596
+ _item_id: string;
57597
+ _reason: string;
57598
+ };
57599
+ Returns: string;
57600
+ };
57601
+ inkoop_get_supplier_request: {
57602
+ Args: {
57603
+ _token: string;
57604
+ };
57605
+ Returns: import("../integrations/supabase/types").Json;
57606
+ };
57607
+ inkoop_hash_token: {
57608
+ Args: {
57609
+ _token: string;
57610
+ };
57611
+ Returns: string;
57612
+ };
57613
+ inkoop_html_escape: {
57614
+ Args: {
57615
+ _t: string;
57616
+ };
57617
+ Returns: string;
57618
+ };
56757
57619
  inkoop_list_artikelen: {
56758
57620
  Args: never;
56759
57621
  Returns: {
@@ -56778,9 +57640,17 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
56778
57640
  Args: never;
56779
57641
  Returns: string;
56780
57642
  };
57643
+ inkoop_process_request: {
57644
+ Args: {
57645
+ _request_id: string;
57646
+ };
57647
+ Returns: undefined;
57648
+ };
56781
57649
  inkoop_send_order: {
56782
57650
  Args: {
57651
+ _base_url?: string;
56783
57652
  _order_id: string;
57653
+ _resend?: boolean;
56784
57654
  };
56785
57655
  Returns: {
56786
57656
  outbox_id: string;
@@ -56795,6 +57665,26 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
56795
57665
  };
56796
57666
  Returns: undefined;
56797
57667
  };
57668
+ inkoop_stock_key: {
57669
+ Args: {
57670
+ p_product_id: string;
57671
+ };
57672
+ Returns: string;
57673
+ };
57674
+ inkoop_submit_supplier_response: {
57675
+ Args: {
57676
+ _lines: import("../integrations/supabase/types").Json;
57677
+ _note?: string;
57678
+ _token: string;
57679
+ };
57680
+ Returns: import("../integrations/supabase/types").Json;
57681
+ };
57682
+ inkoop_sync_item_stock: {
57683
+ Args: {
57684
+ p_item_id: string;
57685
+ };
57686
+ Returns: undefined;
57687
+ };
56798
57688
  instructie_get: {
56799
57689
  Args: {
56800
57690
  _sleutel: string;
@@ -56955,6 +57845,27 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
56955
57845
  };
56956
57846
  Returns: boolean;
56957
57847
  };
57848
+ layout_print_document: {
57849
+ Args: {
57850
+ _documentnaam: string;
57851
+ _documenttype: string;
57852
+ _herkomst?: string;
57853
+ _idempotentie_sleutel?: string;
57854
+ _is_herprint?: boolean;
57855
+ _kopieen?: number;
57856
+ _layout_id?: string;
57857
+ _payload?: import("../integrations/supabase/types").Json;
57858
+ _pdf_base64?: string;
57859
+ _pdf_url?: string;
57860
+ _print_plek_id?: string;
57861
+ _werkplek?: string;
57862
+ };
57863
+ Returns: {
57864
+ bestaand: boolean;
57865
+ job_id: string;
57866
+ printer_id: string;
57867
+ }[];
57868
+ };
56958
57869
  list_medewerkers: {
56959
57870
  Args: never;
56960
57871
  Returns: {
@@ -57232,6 +58143,12 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
57232
58143
  };
57233
58144
  Returns: number;
57234
58145
  };
58146
+ logistics_cart_barcode_opschonen: {
58147
+ Args: {
58148
+ p_portie?: number;
58149
+ };
58150
+ Returns: import("../integrations/supabase/types").Json;
58151
+ };
57235
58152
  logistics_cart_barcode_value: {
57236
58153
  Args: {
57237
58154
  _cart_id: string;
@@ -57651,6 +58568,13 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
57651
58568
  };
57652
58569
  Returns: import("../integrations/supabase/types").Json;
57653
58570
  };
58571
+ logistics_control_scan_print_own: {
58572
+ Args: {
58573
+ p_is_herprint?: boolean;
58574
+ p_scan_id: string;
58575
+ };
58576
+ Returns: import("../integrations/supabase/types").Json;
58577
+ };
57654
58578
  logistics_control_scan_retry: {
57655
58579
  Args: {
57656
58580
  _id: string;
@@ -58555,6 +59479,21 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
58555
59479
  };
58556
59480
  Returns: import("../integrations/supabase/types").Json;
58557
59481
  };
59482
+ logistics_print_via_layout: {
59483
+ Args: {
59484
+ _documentnaam: string;
59485
+ _documenttype: string;
59486
+ _herkomst: string;
59487
+ _idempotentie_sleutel: string;
59488
+ _is_herprint: boolean;
59489
+ _layout_id: string;
59490
+ _payload: import("../integrations/supabase/types").Json;
59491
+ _pdf_base64: string;
59492
+ _pdf_url: string;
59493
+ _print_plek_id: string;
59494
+ };
59495
+ Returns: import("../integrations/supabase/types").Json;
59496
+ };
58558
59497
  logistics_prune_buffer_member_queue: {
58559
59498
  Args: never;
58560
59499
  Returns: number;
@@ -58841,6 +59780,13 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
58841
59780
  };
58842
59781
  Returns: string;
58843
59782
  };
59783
+ logistics_shipping_note_status: {
59784
+ Args: {
59785
+ p_cart_id?: string;
59786
+ p_slip_job_id?: string;
59787
+ };
59788
+ Returns: import("../integrations/supabase/types").Json;
59789
+ };
58844
59790
  logistics_shipping_notes_wake_all: {
58845
59791
  Args: never;
58846
59792
  Returns: import("../integrations/supabase/types").Json;
@@ -58903,6 +59849,12 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
58903
59849
  };
58904
59850
  Returns: undefined;
58905
59851
  };
59852
+ logistics_slip_note_retry: {
59853
+ Args: {
59854
+ _id: string;
59855
+ };
59856
+ Returns: import("../integrations/supabase/types").Json;
59857
+ };
58906
59858
  logistics_sticker_follows_slip: {
58907
59859
  Args: never;
58908
59860
  Returns: boolean;
@@ -59647,6 +60599,10 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
59647
60599
  };
59648
60600
  Returns: string;
59649
60601
  };
60602
+ pick_is_reference_admin: {
60603
+ Args: never;
60604
+ Returns: boolean;
60605
+ };
59650
60606
  pick_mark_printed: {
59651
60607
  Args: {
59652
60608
  _queue_item_id: string;
@@ -60070,6 +61026,12 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
60070
61026
  };
60071
61027
  Returns: import("../integrations/supabase/types").Json;
60072
61028
  };
61029
+ pick_verify_rows: {
61030
+ Args: {
61031
+ _rows: import("../integrations/supabase/types").Json;
61032
+ };
61033
+ Returns: import("../integrations/supabase/types").Json;
61034
+ };
60073
61035
  pickstation_get_orders_raw: {
60074
61036
  Args: never;
60075
61037
  Returns: import("../integrations/supabase/types").Json;
@@ -60250,6 +61212,12 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
60250
61212
  };
60251
61213
  Returns: import("../integrations/supabase/types").Json;
60252
61214
  };
61215
+ quote_create_from_scratch: {
61216
+ Args: {
61217
+ _payload: import("../integrations/supabase/types").Json;
61218
+ };
61219
+ Returns: import("../integrations/supabase/types").Json;
61220
+ };
60253
61221
  quote_create_from_source: {
60254
61222
  Args: {
60255
61223
  _payload?: import("../integrations/supabase/types").Json;
@@ -60300,6 +61268,13 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
60300
61268
  };
60301
61269
  Returns: string;
60302
61270
  };
61271
+ quote_sync_work_order: {
61272
+ Args: {
61273
+ _monteur_instructies?: string;
61274
+ _offerte_id: string;
61275
+ };
61276
+ Returns: boolean;
61277
+ };
60303
61278
  recompute_all_reserved_stock: {
60304
61279
  Args: never;
60305
61280
  Returns: undefined;
@@ -60520,6 +61495,13 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
60520
61495
  };
60521
61496
  Returns: import("../integrations/supabase/types").Json;
60522
61497
  };
61498
+ scan_controleer_pincode: {
61499
+ Args: {
61500
+ p_pin: string;
61501
+ p_scanner_id: string;
61502
+ };
61503
+ Returns: boolean;
61504
+ };
60523
61505
  scan_dashboard_stats: {
60524
61506
  Args: {
60525
61507
  p_dagen?: number;
@@ -60539,6 +61521,12 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
60539
61521
  };
60540
61522
  Returns: import("../integrations/supabase/types").Json;
60541
61523
  };
61524
+ scan_heeft_pincode: {
61525
+ Args: {
61526
+ p_scanner_id: string;
61527
+ };
61528
+ Returns: boolean;
61529
+ };
60542
61530
  scan_kar_compleet: {
60543
61531
  Args: {
60544
61532
  p_allow_reprint?: boolean;
@@ -60556,6 +61544,7 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
60556
61544
  Args: {
60557
61545
  p_code: string;
60558
61546
  p_latency_ms?: number;
61547
+ p_medewerker?: string;
60559
61548
  p_message?: string;
60560
61549
  p_result: string;
60561
61550
  p_scanner_key?: string;
@@ -60628,6 +61617,22 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
60628
61617
  };
60629
61618
  Returns: undefined;
60630
61619
  };
61620
+ scan_scanner_info: {
61621
+ Args: {
61622
+ p_slug: string;
61623
+ };
61624
+ Returns: {
61625
+ actief: boolean;
61626
+ heeft_pincode: boolean;
61627
+ id: string;
61628
+ naam: string;
61629
+ omschrijving: string;
61630
+ printer_id: string;
61631
+ type: string;
61632
+ vereist_medewerker: boolean;
61633
+ werkplek: string;
61634
+ }[];
61635
+ };
60631
61636
  scan_sessie_annuleren: {
60632
61637
  Args: {
60633
61638
  p_sessie_id: string;
@@ -61590,6 +62595,21 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
61590
62595
  };
61591
62596
  Returns: import("../integrations/supabase/types").Json;
61592
62597
  };
62598
+ wo_list_colleague_planning: {
62599
+ Args: {
62600
+ _from: string;
62601
+ _monteur_id: string;
62602
+ _to: string;
62603
+ };
62604
+ Returns: {
62605
+ end_at: string;
62606
+ id: string;
62607
+ role: string;
62608
+ start_at: string;
62609
+ status: string;
62610
+ werkbon_id: string;
62611
+ }[];
62612
+ };
61593
62613
  wo_list_offerte_requests: {
61594
62614
  Args: {
61595
62615
  _status?: string;
@@ -62408,6 +63428,27 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
62408
63428
  };
62409
63429
  Relationships: [];
62410
63430
  };
63431
+ artikelen_instellingen: {
63432
+ Row: {
63433
+ created_at: string;
63434
+ id: number;
63435
+ marge_procent: number;
63436
+ updated_at: string;
63437
+ };
63438
+ Insert: {
63439
+ created_at?: string;
63440
+ id?: number;
63441
+ marge_procent?: number;
63442
+ updated_at?: string;
63443
+ };
63444
+ Update: {
63445
+ created_at?: string;
63446
+ id?: number;
63447
+ marge_procent?: number;
63448
+ updated_at?: string;
63449
+ };
63450
+ Relationships: [];
63451
+ };
62411
63452
  artikelen_veldconfig: {
62412
63453
  Row: {
62413
63454
  bron_pad: string;
@@ -72083,6 +73124,30 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
72083
73124
  };
72084
73125
  Relationships: [];
72085
73126
  };
73127
+ logistics_cart_barcode_archief: {
73128
+ Row: {
73129
+ barcode: string;
73130
+ cart_id: string;
73131
+ created_at: string | null;
73132
+ gearchiveerd_op: string;
73133
+ order_id: string | null;
73134
+ };
73135
+ Insert: {
73136
+ barcode: string;
73137
+ cart_id: string;
73138
+ created_at?: string | null;
73139
+ gearchiveerd_op?: string;
73140
+ order_id?: string | null;
73141
+ };
73142
+ Update: {
73143
+ barcode?: string;
73144
+ cart_id?: string;
73145
+ created_at?: string | null;
73146
+ gearchiveerd_op?: string;
73147
+ order_id?: string | null;
73148
+ };
73149
+ Relationships: [];
73150
+ };
72086
73151
  logistics_control_scan: {
72087
73152
  Row: {
72088
73153
  approved_at: string | null;
@@ -77736,18 +78801,24 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
77736
78801
  Row: {
77737
78802
  id: boolean;
77738
78803
  last_cleanup_at: string | null;
78804
+ last_error: string | null;
78805
+ last_error_at: string | null;
77739
78806
  last_sync_at: string | null;
77740
78807
  updated_at: string;
77741
78808
  };
77742
78809
  Insert: {
77743
78810
  id?: boolean;
77744
78811
  last_cleanup_at?: string | null;
78812
+ last_error?: string | null;
78813
+ last_error_at?: string | null;
77745
78814
  last_sync_at?: string | null;
77746
78815
  updated_at?: string;
77747
78816
  };
77748
78817
  Update: {
77749
78818
  id?: boolean;
77750
78819
  last_cleanup_at?: string | null;
78820
+ last_error?: string | null;
78821
+ last_error_at?: string | null;
77751
78822
  last_sync_at?: string | null;
77752
78823
  updated_at?: string;
77753
78824
  };
@@ -77873,6 +78944,54 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
77873
78944
  };
77874
78945
  Relationships: [];
77875
78946
  };
78947
+ planning_confirmation_log: {
78948
+ Row: {
78949
+ created_at: string;
78950
+ end_at: string;
78951
+ id: string;
78952
+ outbox_id: string | null;
78953
+ planning_item_id: string;
78954
+ reason: string | null;
78955
+ recipient: string | null;
78956
+ start_at: string;
78957
+ status: string;
78958
+ };
78959
+ Insert: {
78960
+ created_at?: string;
78961
+ end_at: string;
78962
+ id?: string;
78963
+ outbox_id?: string | null;
78964
+ planning_item_id: string;
78965
+ reason?: string | null;
78966
+ recipient?: string | null;
78967
+ start_at: string;
78968
+ status: string;
78969
+ };
78970
+ Update: {
78971
+ created_at?: string;
78972
+ end_at?: string;
78973
+ id?: string;
78974
+ outbox_id?: string | null;
78975
+ planning_item_id?: string;
78976
+ reason?: string | null;
78977
+ recipient?: string | null;
78978
+ start_at?: string;
78979
+ status?: string;
78980
+ };
78981
+ Relationships: [{
78982
+ foreignKeyName: "planning_confirmation_log_planning_item_id_fkey";
78983
+ columns: ["planning_item_id"];
78984
+ isOneToOne: false;
78985
+ referencedRelation: "planning_items";
78986
+ referencedColumns: ["id"];
78987
+ }, {
78988
+ foreignKeyName: "planning_confirmation_log_planning_item_id_fkey";
78989
+ columns: ["planning_item_id"];
78990
+ isOneToOne: false;
78991
+ referencedRelation: "planning_overview";
78992
+ referencedColumns: ["id"];
78993
+ }];
78994
+ };
77876
78995
  planning_item_assistants: {
77877
78996
  Row: {
77878
78997
  created_at: string;
@@ -77957,6 +79076,60 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
77957
79076
  referencedColumns: ["id"];
77958
79077
  }];
77959
79078
  };
79079
+ planning_mail_settings: {
79080
+ Row: {
79081
+ body_template: string;
79082
+ cc: string[];
79083
+ connection_id: string | null;
79084
+ created_at: string;
79085
+ enabled: boolean;
79086
+ id: boolean;
79087
+ reply_to: string | null;
79088
+ subject_template: string;
79089
+ timezone: string;
79090
+ updated_at: string;
79091
+ updated_by: string | null;
79092
+ };
79093
+ Insert: {
79094
+ body_template?: string;
79095
+ cc?: string[];
79096
+ connection_id?: string | null;
79097
+ created_at?: string;
79098
+ enabled?: boolean;
79099
+ id?: boolean;
79100
+ reply_to?: string | null;
79101
+ subject_template?: string;
79102
+ timezone?: string;
79103
+ updated_at?: string;
79104
+ updated_by?: string | null;
79105
+ };
79106
+ Update: {
79107
+ body_template?: string;
79108
+ cc?: string[];
79109
+ connection_id?: string | null;
79110
+ created_at?: string;
79111
+ enabled?: boolean;
79112
+ id?: boolean;
79113
+ reply_to?: string | null;
79114
+ subject_template?: string;
79115
+ timezone?: string;
79116
+ updated_at?: string;
79117
+ updated_by?: string | null;
79118
+ };
79119
+ Relationships: [{
79120
+ foreignKeyName: "planning_mail_settings_connection_id_fkey";
79121
+ columns: ["connection_id"];
79122
+ isOneToOne: false;
79123
+ referencedRelation: "email_auth_connections";
79124
+ referencedColumns: ["id"];
79125
+ }, {
79126
+ foreignKeyName: "planning_mail_settings_connection_id_fkey";
79127
+ columns: ["connection_id"];
79128
+ isOneToOne: false;
79129
+ referencedRelation: "email_auth_connections_safe";
79130
+ referencedColumns: ["id"];
79131
+ }];
79132
+ };
77960
79133
  planning_monteur_day_locations: {
77961
79134
  Row: {
77962
79135
  created_at: string;
@@ -79435,6 +80608,9 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
79435
80608
  lead_time_days: number | null;
79436
80609
  min_order_quantity: number | null;
79437
80610
  notes: string | null;
80611
+ previous_price_cents: number | null;
80612
+ price_source: string;
80613
+ price_updated_at: string | null;
79438
80614
  product_id: string;
79439
80615
  purchase_price_cents: number | null;
79440
80616
  supplier_article_number: string | null;
@@ -79448,6 +80624,9 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
79448
80624
  lead_time_days?: number | null;
79449
80625
  min_order_quantity?: number | null;
79450
80626
  notes?: string | null;
80627
+ previous_price_cents?: number | null;
80628
+ price_source?: string;
80629
+ price_updated_at?: string | null;
79451
80630
  product_id: string;
79452
80631
  purchase_price_cents?: number | null;
79453
80632
  supplier_article_number?: string | null;
@@ -79461,6 +80640,9 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
79461
80640
  lead_time_days?: number | null;
79462
80641
  min_order_quantity?: number | null;
79463
80642
  notes?: string | null;
80643
+ previous_price_cents?: number | null;
80644
+ price_source?: string;
80645
+ price_updated_at?: string | null;
79464
80646
  product_id?: string;
79465
80647
  purchase_price_cents?: number | null;
79466
80648
  supplier_article_number?: string | null;
@@ -79991,9 +81173,13 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
79991
81173
  purchase_order_items: {
79992
81174
  Row: {
79993
81175
  article_number: string | null;
81176
+ cancel_reason: string | null;
81177
+ cancelled_at: string | null;
79994
81178
  created_at: string;
79995
81179
  delivery_date: string | null;
79996
81180
  id: string;
81181
+ incoming_booked: number;
81182
+ line_status: string;
79997
81183
  name: string;
79998
81184
  note: string | null;
79999
81185
  pot_size: string | null;
@@ -80001,6 +81187,8 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
80001
81187
  product_type: string;
80002
81188
  purchase_order_id: string;
80003
81189
  quantity: number;
81190
+ received_at: string | null;
81191
+ received_booked: number;
80004
81192
  supplier_id: string | null;
80005
81193
  supplier_product_id: string | null;
80006
81194
  unit_price_cents: number;
@@ -80008,9 +81196,13 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
80008
81196
  };
80009
81197
  Insert: {
80010
81198
  article_number?: string | null;
81199
+ cancel_reason?: string | null;
81200
+ cancelled_at?: string | null;
80011
81201
  created_at?: string;
80012
81202
  delivery_date?: string | null;
80013
81203
  id?: string;
81204
+ incoming_booked?: number;
81205
+ line_status?: string;
80014
81206
  name?: string;
80015
81207
  note?: string | null;
80016
81208
  pot_size?: string | null;
@@ -80018,6 +81210,8 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
80018
81210
  product_type?: string;
80019
81211
  purchase_order_id: string;
80020
81212
  quantity?: number;
81213
+ received_at?: string | null;
81214
+ received_booked?: number;
80021
81215
  supplier_id?: string | null;
80022
81216
  supplier_product_id?: string | null;
80023
81217
  unit_price_cents?: number;
@@ -80025,9 +81219,13 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
80025
81219
  };
80026
81220
  Update: {
80027
81221
  article_number?: string | null;
81222
+ cancel_reason?: string | null;
81223
+ cancelled_at?: string | null;
80028
81224
  created_at?: string;
80029
81225
  delivery_date?: string | null;
80030
81226
  id?: string;
81227
+ incoming_booked?: number;
81228
+ line_status?: string;
80031
81229
  name?: string;
80032
81230
  note?: string | null;
80033
81231
  pot_size?: string | null;
@@ -80035,6 +81233,8 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
80035
81233
  product_type?: string;
80036
81234
  purchase_order_id?: string;
80037
81235
  quantity?: number;
81236
+ received_at?: string | null;
81237
+ received_booked?: number;
80038
81238
  supplier_id?: string | null;
80039
81239
  supplier_product_id?: string | null;
80040
81240
  unit_price_cents?: number;
@@ -80138,6 +81338,153 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
80138
81338
  referencedColumns: ["id"];
80139
81339
  }];
80140
81340
  };
81341
+ purchase_request_events: {
81342
+ Row: {
81343
+ created_at: string;
81344
+ details: import("../integrations/supabase/types").Json | null;
81345
+ event_type: string;
81346
+ id: string;
81347
+ request_id: string;
81348
+ };
81349
+ Insert: {
81350
+ created_at?: string;
81351
+ details?: import("../integrations/supabase/types").Json | null;
81352
+ event_type: string;
81353
+ id?: string;
81354
+ request_id: string;
81355
+ };
81356
+ Update: {
81357
+ created_at?: string;
81358
+ details?: import("../integrations/supabase/types").Json | null;
81359
+ event_type?: string;
81360
+ id?: string;
81361
+ request_id?: string;
81362
+ };
81363
+ Relationships: [{
81364
+ foreignKeyName: "purchase_request_events_request_id_fkey";
81365
+ columns: ["request_id"];
81366
+ isOneToOne: false;
81367
+ referencedRelation: "purchase_requests";
81368
+ referencedColumns: ["id"];
81369
+ }];
81370
+ };
81371
+ purchase_request_responses: {
81372
+ Row: {
81373
+ confirmed_date: string | null;
81374
+ confirmed_price_cents: number | null;
81375
+ confirmed_quantity: number;
81376
+ created_at: string;
81377
+ id: string;
81378
+ not_available: boolean;
81379
+ note: string | null;
81380
+ purchase_order_item_id: string;
81381
+ request_id: string;
81382
+ updated_at: string;
81383
+ };
81384
+ Insert: {
81385
+ confirmed_date?: string | null;
81386
+ confirmed_price_cents?: number | null;
81387
+ confirmed_quantity?: number;
81388
+ created_at?: string;
81389
+ id?: string;
81390
+ not_available?: boolean;
81391
+ note?: string | null;
81392
+ purchase_order_item_id: string;
81393
+ request_id: string;
81394
+ updated_at?: string;
81395
+ };
81396
+ Update: {
81397
+ confirmed_date?: string | null;
81398
+ confirmed_price_cents?: number | null;
81399
+ confirmed_quantity?: number;
81400
+ created_at?: string;
81401
+ id?: string;
81402
+ not_available?: boolean;
81403
+ note?: string | null;
81404
+ purchase_order_item_id?: string;
81405
+ request_id?: string;
81406
+ updated_at?: string;
81407
+ };
81408
+ Relationships: [{
81409
+ foreignKeyName: "purchase_request_responses_purchase_order_item_id_fkey";
81410
+ columns: ["purchase_order_item_id"];
81411
+ isOneToOne: false;
81412
+ referencedRelation: "purchase_order_items";
81413
+ referencedColumns: ["id"];
81414
+ }, {
81415
+ foreignKeyName: "purchase_request_responses_request_id_fkey";
81416
+ columns: ["request_id"];
81417
+ isOneToOne: false;
81418
+ referencedRelation: "purchase_requests";
81419
+ referencedColumns: ["id"];
81420
+ }];
81421
+ };
81422
+ purchase_requests: {
81423
+ Row: {
81424
+ created_at: string;
81425
+ expires_at: string;
81426
+ first_viewed_at: string | null;
81427
+ id: string;
81428
+ processed_at: string | null;
81429
+ purchase_order_id: string;
81430
+ responded_at: string | null;
81431
+ sent_at: string;
81432
+ status: string;
81433
+ supplier_id: string | null;
81434
+ supplier_name: string;
81435
+ supplier_note: string | null;
81436
+ to_address: string | null;
81437
+ token_hash: string;
81438
+ updated_at: string;
81439
+ };
81440
+ Insert: {
81441
+ created_at?: string;
81442
+ expires_at?: string;
81443
+ first_viewed_at?: string | null;
81444
+ id?: string;
81445
+ processed_at?: string | null;
81446
+ purchase_order_id: string;
81447
+ responded_at?: string | null;
81448
+ sent_at?: string;
81449
+ status?: string;
81450
+ supplier_id?: string | null;
81451
+ supplier_name?: string;
81452
+ supplier_note?: string | null;
81453
+ to_address?: string | null;
81454
+ token_hash: string;
81455
+ updated_at?: string;
81456
+ };
81457
+ Update: {
81458
+ created_at?: string;
81459
+ expires_at?: string;
81460
+ first_viewed_at?: string | null;
81461
+ id?: string;
81462
+ processed_at?: string | null;
81463
+ purchase_order_id?: string;
81464
+ responded_at?: string | null;
81465
+ sent_at?: string;
81466
+ status?: string;
81467
+ supplier_id?: string | null;
81468
+ supplier_name?: string;
81469
+ supplier_note?: string | null;
81470
+ to_address?: string | null;
81471
+ token_hash?: string;
81472
+ updated_at?: string;
81473
+ };
81474
+ Relationships: [{
81475
+ foreignKeyName: "purchase_requests_purchase_order_id_fkey";
81476
+ columns: ["purchase_order_id"];
81477
+ isOneToOne: false;
81478
+ referencedRelation: "purchase_orders";
81479
+ referencedColumns: ["id"];
81480
+ }, {
81481
+ foreignKeyName: "purchase_requests_supplier_id_fkey";
81482
+ columns: ["supplier_id"];
81483
+ isOneToOne: false;
81484
+ referencedRelation: "suppliers";
81485
+ referencedColumns: ["id"];
81486
+ }];
81487
+ };
80141
81488
  reception_notifications: {
80142
81489
  Row: {
80143
81490
  booking_id: string | null;
@@ -84563,7 +85910,7 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
84563
85910
  created_at: string;
84564
85911
  default_quantity: number;
84565
85912
  description: string | null;
84566
- duration_minutes: number | null;
85913
+ duration_minutes: number;
84567
85914
  id: string;
84568
85915
  mandaat_type: string | null;
84569
85916
  name: string;
@@ -84580,7 +85927,7 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
84580
85927
  created_at?: string;
84581
85928
  default_quantity?: number;
84582
85929
  description?: string | null;
84583
- duration_minutes?: number | null;
85930
+ duration_minutes?: number;
84584
85931
  id?: string;
84585
85932
  mandaat_type?: string | null;
84586
85933
  name: string;
@@ -84597,7 +85944,7 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
84597
85944
  created_at?: string;
84598
85945
  default_quantity?: number;
84599
85946
  description?: string | null;
84600
- duration_minutes?: number | null;
85947
+ duration_minutes?: number;
84601
85948
  id?: string;
84602
85949
  mandaat_type?: string | null;
84603
85950
  name?: string;
@@ -87593,6 +88940,31 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
87593
88940
  };
87594
88941
  Returns: import("../integrations/supabase/types").Json;
87595
88942
  };
88943
+ inkoop_cancel_line: {
88944
+ Args: {
88945
+ _item_id: string;
88946
+ _reason: string;
88947
+ };
88948
+ Returns: string;
88949
+ };
88950
+ inkoop_get_supplier_request: {
88951
+ Args: {
88952
+ _token: string;
88953
+ };
88954
+ Returns: import("../integrations/supabase/types").Json;
88955
+ };
88956
+ inkoop_hash_token: {
88957
+ Args: {
88958
+ _token: string;
88959
+ };
88960
+ Returns: string;
88961
+ };
88962
+ inkoop_html_escape: {
88963
+ Args: {
88964
+ _t: string;
88965
+ };
88966
+ Returns: string;
88967
+ };
87596
88968
  inkoop_list_artikelen: {
87597
88969
  Args: never;
87598
88970
  Returns: {
@@ -87617,9 +88989,17 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
87617
88989
  Args: never;
87618
88990
  Returns: string;
87619
88991
  };
88992
+ inkoop_process_request: {
88993
+ Args: {
88994
+ _request_id: string;
88995
+ };
88996
+ Returns: undefined;
88997
+ };
87620
88998
  inkoop_send_order: {
87621
88999
  Args: {
89000
+ _base_url?: string;
87622
89001
  _order_id: string;
89002
+ _resend?: boolean;
87623
89003
  };
87624
89004
  Returns: {
87625
89005
  outbox_id: string;
@@ -87634,6 +89014,26 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
87634
89014
  };
87635
89015
  Returns: undefined;
87636
89016
  };
89017
+ inkoop_stock_key: {
89018
+ Args: {
89019
+ p_product_id: string;
89020
+ };
89021
+ Returns: string;
89022
+ };
89023
+ inkoop_submit_supplier_response: {
89024
+ Args: {
89025
+ _lines: import("../integrations/supabase/types").Json;
89026
+ _note?: string;
89027
+ _token: string;
89028
+ };
89029
+ Returns: import("../integrations/supabase/types").Json;
89030
+ };
89031
+ inkoop_sync_item_stock: {
89032
+ Args: {
89033
+ p_item_id: string;
89034
+ };
89035
+ Returns: undefined;
89036
+ };
87637
89037
  instructie_get: {
87638
89038
  Args: {
87639
89039
  _sleutel: string;
@@ -87794,6 +89194,27 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
87794
89194
  };
87795
89195
  Returns: boolean;
87796
89196
  };
89197
+ layout_print_document: {
89198
+ Args: {
89199
+ _documentnaam: string;
89200
+ _documenttype: string;
89201
+ _herkomst?: string;
89202
+ _idempotentie_sleutel?: string;
89203
+ _is_herprint?: boolean;
89204
+ _kopieen?: number;
89205
+ _layout_id?: string;
89206
+ _payload?: import("../integrations/supabase/types").Json;
89207
+ _pdf_base64?: string;
89208
+ _pdf_url?: string;
89209
+ _print_plek_id?: string;
89210
+ _werkplek?: string;
89211
+ };
89212
+ Returns: {
89213
+ bestaand: boolean;
89214
+ job_id: string;
89215
+ printer_id: string;
89216
+ }[];
89217
+ };
87797
89218
  list_medewerkers: {
87798
89219
  Args: never;
87799
89220
  Returns: {
@@ -88071,6 +89492,12 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
88071
89492
  };
88072
89493
  Returns: number;
88073
89494
  };
89495
+ logistics_cart_barcode_opschonen: {
89496
+ Args: {
89497
+ p_portie?: number;
89498
+ };
89499
+ Returns: import("../integrations/supabase/types").Json;
89500
+ };
88074
89501
  logistics_cart_barcode_value: {
88075
89502
  Args: {
88076
89503
  _cart_id: string;
@@ -88490,6 +89917,13 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
88490
89917
  };
88491
89918
  Returns: import("../integrations/supabase/types").Json;
88492
89919
  };
89920
+ logistics_control_scan_print_own: {
89921
+ Args: {
89922
+ p_is_herprint?: boolean;
89923
+ p_scan_id: string;
89924
+ };
89925
+ Returns: import("../integrations/supabase/types").Json;
89926
+ };
88493
89927
  logistics_control_scan_retry: {
88494
89928
  Args: {
88495
89929
  _id: string;
@@ -89394,6 +90828,21 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
89394
90828
  };
89395
90829
  Returns: import("../integrations/supabase/types").Json;
89396
90830
  };
90831
+ logistics_print_via_layout: {
90832
+ Args: {
90833
+ _documentnaam: string;
90834
+ _documenttype: string;
90835
+ _herkomst: string;
90836
+ _idempotentie_sleutel: string;
90837
+ _is_herprint: boolean;
90838
+ _layout_id: string;
90839
+ _payload: import("../integrations/supabase/types").Json;
90840
+ _pdf_base64: string;
90841
+ _pdf_url: string;
90842
+ _print_plek_id: string;
90843
+ };
90844
+ Returns: import("../integrations/supabase/types").Json;
90845
+ };
89397
90846
  logistics_prune_buffer_member_queue: {
89398
90847
  Args: never;
89399
90848
  Returns: number;
@@ -89680,6 +91129,13 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
89680
91129
  };
89681
91130
  Returns: string;
89682
91131
  };
91132
+ logistics_shipping_note_status: {
91133
+ Args: {
91134
+ p_cart_id?: string;
91135
+ p_slip_job_id?: string;
91136
+ };
91137
+ Returns: import("../integrations/supabase/types").Json;
91138
+ };
89683
91139
  logistics_shipping_notes_wake_all: {
89684
91140
  Args: never;
89685
91141
  Returns: import("../integrations/supabase/types").Json;
@@ -89742,6 +91198,12 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
89742
91198
  };
89743
91199
  Returns: undefined;
89744
91200
  };
91201
+ logistics_slip_note_retry: {
91202
+ Args: {
91203
+ _id: string;
91204
+ };
91205
+ Returns: import("../integrations/supabase/types").Json;
91206
+ };
89745
91207
  logistics_sticker_follows_slip: {
89746
91208
  Args: never;
89747
91209
  Returns: boolean;
@@ -90486,6 +91948,10 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
90486
91948
  };
90487
91949
  Returns: string;
90488
91950
  };
91951
+ pick_is_reference_admin: {
91952
+ Args: never;
91953
+ Returns: boolean;
91954
+ };
90489
91955
  pick_mark_printed: {
90490
91956
  Args: {
90491
91957
  _queue_item_id: string;
@@ -90909,6 +92375,12 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
90909
92375
  };
90910
92376
  Returns: import("../integrations/supabase/types").Json;
90911
92377
  };
92378
+ pick_verify_rows: {
92379
+ Args: {
92380
+ _rows: import("../integrations/supabase/types").Json;
92381
+ };
92382
+ Returns: import("../integrations/supabase/types").Json;
92383
+ };
90912
92384
  pickstation_get_orders_raw: {
90913
92385
  Args: never;
90914
92386
  Returns: import("../integrations/supabase/types").Json;
@@ -91089,6 +92561,12 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
91089
92561
  };
91090
92562
  Returns: import("../integrations/supabase/types").Json;
91091
92563
  };
92564
+ quote_create_from_scratch: {
92565
+ Args: {
92566
+ _payload: import("../integrations/supabase/types").Json;
92567
+ };
92568
+ Returns: import("../integrations/supabase/types").Json;
92569
+ };
91092
92570
  quote_create_from_source: {
91093
92571
  Args: {
91094
92572
  _payload?: import("../integrations/supabase/types").Json;
@@ -91139,6 +92617,13 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
91139
92617
  };
91140
92618
  Returns: string;
91141
92619
  };
92620
+ quote_sync_work_order: {
92621
+ Args: {
92622
+ _monteur_instructies?: string;
92623
+ _offerte_id: string;
92624
+ };
92625
+ Returns: boolean;
92626
+ };
91142
92627
  recompute_all_reserved_stock: {
91143
92628
  Args: never;
91144
92629
  Returns: undefined;
@@ -91359,6 +92844,13 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
91359
92844
  };
91360
92845
  Returns: import("../integrations/supabase/types").Json;
91361
92846
  };
92847
+ scan_controleer_pincode: {
92848
+ Args: {
92849
+ p_pin: string;
92850
+ p_scanner_id: string;
92851
+ };
92852
+ Returns: boolean;
92853
+ };
91362
92854
  scan_dashboard_stats: {
91363
92855
  Args: {
91364
92856
  p_dagen?: number;
@@ -91378,6 +92870,12 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
91378
92870
  };
91379
92871
  Returns: import("../integrations/supabase/types").Json;
91380
92872
  };
92873
+ scan_heeft_pincode: {
92874
+ Args: {
92875
+ p_scanner_id: string;
92876
+ };
92877
+ Returns: boolean;
92878
+ };
91381
92879
  scan_kar_compleet: {
91382
92880
  Args: {
91383
92881
  p_allow_reprint?: boolean;
@@ -91395,6 +92893,7 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
91395
92893
  Args: {
91396
92894
  p_code: string;
91397
92895
  p_latency_ms?: number;
92896
+ p_medewerker?: string;
91398
92897
  p_message?: string;
91399
92898
  p_result: string;
91400
92899
  p_scanner_key?: string;
@@ -91467,6 +92966,22 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
91467
92966
  };
91468
92967
  Returns: undefined;
91469
92968
  };
92969
+ scan_scanner_info: {
92970
+ Args: {
92971
+ p_slug: string;
92972
+ };
92973
+ Returns: {
92974
+ actief: boolean;
92975
+ heeft_pincode: boolean;
92976
+ id: string;
92977
+ naam: string;
92978
+ omschrijving: string;
92979
+ printer_id: string;
92980
+ type: string;
92981
+ vereist_medewerker: boolean;
92982
+ werkplek: string;
92983
+ }[];
92984
+ };
91470
92985
  scan_sessie_annuleren: {
91471
92986
  Args: {
91472
92987
  p_sessie_id: string;
@@ -92429,6 +93944,21 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
92429
93944
  };
92430
93945
  Returns: import("../integrations/supabase/types").Json;
92431
93946
  };
93947
+ wo_list_colleague_planning: {
93948
+ Args: {
93949
+ _from: string;
93950
+ _monteur_id: string;
93951
+ _to: string;
93952
+ };
93953
+ Returns: {
93954
+ end_at: string;
93955
+ id: string;
93956
+ role: string;
93957
+ start_at: string;
93958
+ status: string;
93959
+ werkbon_id: string;
93960
+ }[];
93961
+ };
92432
93962
  wo_list_offerte_requests: {
92433
93963
  Args: {
92434
93964
  _status?: string;
@@ -93265,6 +94795,27 @@ export declare const getSalesOrderDetail: import("@tanstack/start-client-core").
93265
94795
  };
93266
94796
  Relationships: [];
93267
94797
  };
94798
+ artikelen_instellingen: {
94799
+ Row: {
94800
+ created_at: string;
94801
+ id: number;
94802
+ marge_procent: number;
94803
+ updated_at: string;
94804
+ };
94805
+ Insert: {
94806
+ created_at?: string;
94807
+ id?: number;
94808
+ marge_procent?: number;
94809
+ updated_at?: string;
94810
+ };
94811
+ Update: {
94812
+ created_at?: string;
94813
+ id?: number;
94814
+ marge_procent?: number;
94815
+ updated_at?: string;
94816
+ };
94817
+ Relationships: [];
94818
+ };
93268
94819
  artikelen_veldconfig: {
93269
94820
  Row: {
93270
94821
  bron_pad: string;
@@ -102940,6 +104491,30 @@ export declare const getSalesOrderDetail: import("@tanstack/start-client-core").
102940
104491
  };
102941
104492
  Relationships: [];
102942
104493
  };
104494
+ logistics_cart_barcode_archief: {
104495
+ Row: {
104496
+ barcode: string;
104497
+ cart_id: string;
104498
+ created_at: string | null;
104499
+ gearchiveerd_op: string;
104500
+ order_id: string | null;
104501
+ };
104502
+ Insert: {
104503
+ barcode: string;
104504
+ cart_id: string;
104505
+ created_at?: string | null;
104506
+ gearchiveerd_op?: string;
104507
+ order_id?: string | null;
104508
+ };
104509
+ Update: {
104510
+ barcode?: string;
104511
+ cart_id?: string;
104512
+ created_at?: string | null;
104513
+ gearchiveerd_op?: string;
104514
+ order_id?: string | null;
104515
+ };
104516
+ Relationships: [];
104517
+ };
102943
104518
  logistics_control_scan: {
102944
104519
  Row: {
102945
104520
  approved_at: string | null;
@@ -108593,18 +110168,24 @@ export declare const getSalesOrderDetail: import("@tanstack/start-client-core").
108593
110168
  Row: {
108594
110169
  id: boolean;
108595
110170
  last_cleanup_at: string | null;
110171
+ last_error: string | null;
110172
+ last_error_at: string | null;
108596
110173
  last_sync_at: string | null;
108597
110174
  updated_at: string;
108598
110175
  };
108599
110176
  Insert: {
108600
110177
  id?: boolean;
108601
110178
  last_cleanup_at?: string | null;
110179
+ last_error?: string | null;
110180
+ last_error_at?: string | null;
108602
110181
  last_sync_at?: string | null;
108603
110182
  updated_at?: string;
108604
110183
  };
108605
110184
  Update: {
108606
110185
  id?: boolean;
108607
110186
  last_cleanup_at?: string | null;
110187
+ last_error?: string | null;
110188
+ last_error_at?: string | null;
108608
110189
  last_sync_at?: string | null;
108609
110190
  updated_at?: string;
108610
110191
  };
@@ -108730,6 +110311,54 @@ export declare const getSalesOrderDetail: import("@tanstack/start-client-core").
108730
110311
  };
108731
110312
  Relationships: [];
108732
110313
  };
110314
+ planning_confirmation_log: {
110315
+ Row: {
110316
+ created_at: string;
110317
+ end_at: string;
110318
+ id: string;
110319
+ outbox_id: string | null;
110320
+ planning_item_id: string;
110321
+ reason: string | null;
110322
+ recipient: string | null;
110323
+ start_at: string;
110324
+ status: string;
110325
+ };
110326
+ Insert: {
110327
+ created_at?: string;
110328
+ end_at: string;
110329
+ id?: string;
110330
+ outbox_id?: string | null;
110331
+ planning_item_id: string;
110332
+ reason?: string | null;
110333
+ recipient?: string | null;
110334
+ start_at: string;
110335
+ status: string;
110336
+ };
110337
+ Update: {
110338
+ created_at?: string;
110339
+ end_at?: string;
110340
+ id?: string;
110341
+ outbox_id?: string | null;
110342
+ planning_item_id?: string;
110343
+ reason?: string | null;
110344
+ recipient?: string | null;
110345
+ start_at?: string;
110346
+ status?: string;
110347
+ };
110348
+ Relationships: [{
110349
+ foreignKeyName: "planning_confirmation_log_planning_item_id_fkey";
110350
+ columns: ["planning_item_id"];
110351
+ isOneToOne: false;
110352
+ referencedRelation: "planning_items";
110353
+ referencedColumns: ["id"];
110354
+ }, {
110355
+ foreignKeyName: "planning_confirmation_log_planning_item_id_fkey";
110356
+ columns: ["planning_item_id"];
110357
+ isOneToOne: false;
110358
+ referencedRelation: "planning_overview";
110359
+ referencedColumns: ["id"];
110360
+ }];
110361
+ };
108733
110362
  planning_item_assistants: {
108734
110363
  Row: {
108735
110364
  created_at: string;
@@ -108814,6 +110443,60 @@ export declare const getSalesOrderDetail: import("@tanstack/start-client-core").
108814
110443
  referencedColumns: ["id"];
108815
110444
  }];
108816
110445
  };
110446
+ planning_mail_settings: {
110447
+ Row: {
110448
+ body_template: string;
110449
+ cc: string[];
110450
+ connection_id: string | null;
110451
+ created_at: string;
110452
+ enabled: boolean;
110453
+ id: boolean;
110454
+ reply_to: string | null;
110455
+ subject_template: string;
110456
+ timezone: string;
110457
+ updated_at: string;
110458
+ updated_by: string | null;
110459
+ };
110460
+ Insert: {
110461
+ body_template?: string;
110462
+ cc?: string[];
110463
+ connection_id?: string | null;
110464
+ created_at?: string;
110465
+ enabled?: boolean;
110466
+ id?: boolean;
110467
+ reply_to?: string | null;
110468
+ subject_template?: string;
110469
+ timezone?: string;
110470
+ updated_at?: string;
110471
+ updated_by?: string | null;
110472
+ };
110473
+ Update: {
110474
+ body_template?: string;
110475
+ cc?: string[];
110476
+ connection_id?: string | null;
110477
+ created_at?: string;
110478
+ enabled?: boolean;
110479
+ id?: boolean;
110480
+ reply_to?: string | null;
110481
+ subject_template?: string;
110482
+ timezone?: string;
110483
+ updated_at?: string;
110484
+ updated_by?: string | null;
110485
+ };
110486
+ Relationships: [{
110487
+ foreignKeyName: "planning_mail_settings_connection_id_fkey";
110488
+ columns: ["connection_id"];
110489
+ isOneToOne: false;
110490
+ referencedRelation: "email_auth_connections";
110491
+ referencedColumns: ["id"];
110492
+ }, {
110493
+ foreignKeyName: "planning_mail_settings_connection_id_fkey";
110494
+ columns: ["connection_id"];
110495
+ isOneToOne: false;
110496
+ referencedRelation: "email_auth_connections_safe";
110497
+ referencedColumns: ["id"];
110498
+ }];
110499
+ };
108817
110500
  planning_monteur_day_locations: {
108818
110501
  Row: {
108819
110502
  created_at: string;
@@ -110292,6 +111975,9 @@ export declare const getSalesOrderDetail: import("@tanstack/start-client-core").
110292
111975
  lead_time_days: number | null;
110293
111976
  min_order_quantity: number | null;
110294
111977
  notes: string | null;
111978
+ previous_price_cents: number | null;
111979
+ price_source: string;
111980
+ price_updated_at: string | null;
110295
111981
  product_id: string;
110296
111982
  purchase_price_cents: number | null;
110297
111983
  supplier_article_number: string | null;
@@ -110305,6 +111991,9 @@ export declare const getSalesOrderDetail: import("@tanstack/start-client-core").
110305
111991
  lead_time_days?: number | null;
110306
111992
  min_order_quantity?: number | null;
110307
111993
  notes?: string | null;
111994
+ previous_price_cents?: number | null;
111995
+ price_source?: string;
111996
+ price_updated_at?: string | null;
110308
111997
  product_id: string;
110309
111998
  purchase_price_cents?: number | null;
110310
111999
  supplier_article_number?: string | null;
@@ -110318,6 +112007,9 @@ export declare const getSalesOrderDetail: import("@tanstack/start-client-core").
110318
112007
  lead_time_days?: number | null;
110319
112008
  min_order_quantity?: number | null;
110320
112009
  notes?: string | null;
112010
+ previous_price_cents?: number | null;
112011
+ price_source?: string;
112012
+ price_updated_at?: string | null;
110321
112013
  product_id?: string;
110322
112014
  purchase_price_cents?: number | null;
110323
112015
  supplier_article_number?: string | null;
@@ -110848,9 +112540,13 @@ export declare const getSalesOrderDetail: import("@tanstack/start-client-core").
110848
112540
  purchase_order_items: {
110849
112541
  Row: {
110850
112542
  article_number: string | null;
112543
+ cancel_reason: string | null;
112544
+ cancelled_at: string | null;
110851
112545
  created_at: string;
110852
112546
  delivery_date: string | null;
110853
112547
  id: string;
112548
+ incoming_booked: number;
112549
+ line_status: string;
110854
112550
  name: string;
110855
112551
  note: string | null;
110856
112552
  pot_size: string | null;
@@ -110858,6 +112554,8 @@ export declare const getSalesOrderDetail: import("@tanstack/start-client-core").
110858
112554
  product_type: string;
110859
112555
  purchase_order_id: string;
110860
112556
  quantity: number;
112557
+ received_at: string | null;
112558
+ received_booked: number;
110861
112559
  supplier_id: string | null;
110862
112560
  supplier_product_id: string | null;
110863
112561
  unit_price_cents: number;
@@ -110865,9 +112563,13 @@ export declare const getSalesOrderDetail: import("@tanstack/start-client-core").
110865
112563
  };
110866
112564
  Insert: {
110867
112565
  article_number?: string | null;
112566
+ cancel_reason?: string | null;
112567
+ cancelled_at?: string | null;
110868
112568
  created_at?: string;
110869
112569
  delivery_date?: string | null;
110870
112570
  id?: string;
112571
+ incoming_booked?: number;
112572
+ line_status?: string;
110871
112573
  name?: string;
110872
112574
  note?: string | null;
110873
112575
  pot_size?: string | null;
@@ -110875,6 +112577,8 @@ export declare const getSalesOrderDetail: import("@tanstack/start-client-core").
110875
112577
  product_type?: string;
110876
112578
  purchase_order_id: string;
110877
112579
  quantity?: number;
112580
+ received_at?: string | null;
112581
+ received_booked?: number;
110878
112582
  supplier_id?: string | null;
110879
112583
  supplier_product_id?: string | null;
110880
112584
  unit_price_cents?: number;
@@ -110882,9 +112586,13 @@ export declare const getSalesOrderDetail: import("@tanstack/start-client-core").
110882
112586
  };
110883
112587
  Update: {
110884
112588
  article_number?: string | null;
112589
+ cancel_reason?: string | null;
112590
+ cancelled_at?: string | null;
110885
112591
  created_at?: string;
110886
112592
  delivery_date?: string | null;
110887
112593
  id?: string;
112594
+ incoming_booked?: number;
112595
+ line_status?: string;
110888
112596
  name?: string;
110889
112597
  note?: string | null;
110890
112598
  pot_size?: string | null;
@@ -110892,6 +112600,8 @@ export declare const getSalesOrderDetail: import("@tanstack/start-client-core").
110892
112600
  product_type?: string;
110893
112601
  purchase_order_id?: string;
110894
112602
  quantity?: number;
112603
+ received_at?: string | null;
112604
+ received_booked?: number;
110895
112605
  supplier_id?: string | null;
110896
112606
  supplier_product_id?: string | null;
110897
112607
  unit_price_cents?: number;
@@ -110995,6 +112705,153 @@ export declare const getSalesOrderDetail: import("@tanstack/start-client-core").
110995
112705
  referencedColumns: ["id"];
110996
112706
  }];
110997
112707
  };
112708
+ purchase_request_events: {
112709
+ Row: {
112710
+ created_at: string;
112711
+ details: import("../integrations/supabase/types").Json | null;
112712
+ event_type: string;
112713
+ id: string;
112714
+ request_id: string;
112715
+ };
112716
+ Insert: {
112717
+ created_at?: string;
112718
+ details?: import("../integrations/supabase/types").Json | null;
112719
+ event_type: string;
112720
+ id?: string;
112721
+ request_id: string;
112722
+ };
112723
+ Update: {
112724
+ created_at?: string;
112725
+ details?: import("../integrations/supabase/types").Json | null;
112726
+ event_type?: string;
112727
+ id?: string;
112728
+ request_id?: string;
112729
+ };
112730
+ Relationships: [{
112731
+ foreignKeyName: "purchase_request_events_request_id_fkey";
112732
+ columns: ["request_id"];
112733
+ isOneToOne: false;
112734
+ referencedRelation: "purchase_requests";
112735
+ referencedColumns: ["id"];
112736
+ }];
112737
+ };
112738
+ purchase_request_responses: {
112739
+ Row: {
112740
+ confirmed_date: string | null;
112741
+ confirmed_price_cents: number | null;
112742
+ confirmed_quantity: number;
112743
+ created_at: string;
112744
+ id: string;
112745
+ not_available: boolean;
112746
+ note: string | null;
112747
+ purchase_order_item_id: string;
112748
+ request_id: string;
112749
+ updated_at: string;
112750
+ };
112751
+ Insert: {
112752
+ confirmed_date?: string | null;
112753
+ confirmed_price_cents?: number | null;
112754
+ confirmed_quantity?: number;
112755
+ created_at?: string;
112756
+ id?: string;
112757
+ not_available?: boolean;
112758
+ note?: string | null;
112759
+ purchase_order_item_id: string;
112760
+ request_id: string;
112761
+ updated_at?: string;
112762
+ };
112763
+ Update: {
112764
+ confirmed_date?: string | null;
112765
+ confirmed_price_cents?: number | null;
112766
+ confirmed_quantity?: number;
112767
+ created_at?: string;
112768
+ id?: string;
112769
+ not_available?: boolean;
112770
+ note?: string | null;
112771
+ purchase_order_item_id?: string;
112772
+ request_id?: string;
112773
+ updated_at?: string;
112774
+ };
112775
+ Relationships: [{
112776
+ foreignKeyName: "purchase_request_responses_purchase_order_item_id_fkey";
112777
+ columns: ["purchase_order_item_id"];
112778
+ isOneToOne: false;
112779
+ referencedRelation: "purchase_order_items";
112780
+ referencedColumns: ["id"];
112781
+ }, {
112782
+ foreignKeyName: "purchase_request_responses_request_id_fkey";
112783
+ columns: ["request_id"];
112784
+ isOneToOne: false;
112785
+ referencedRelation: "purchase_requests";
112786
+ referencedColumns: ["id"];
112787
+ }];
112788
+ };
112789
+ purchase_requests: {
112790
+ Row: {
112791
+ created_at: string;
112792
+ expires_at: string;
112793
+ first_viewed_at: string | null;
112794
+ id: string;
112795
+ processed_at: string | null;
112796
+ purchase_order_id: string;
112797
+ responded_at: string | null;
112798
+ sent_at: string;
112799
+ status: string;
112800
+ supplier_id: string | null;
112801
+ supplier_name: string;
112802
+ supplier_note: string | null;
112803
+ to_address: string | null;
112804
+ token_hash: string;
112805
+ updated_at: string;
112806
+ };
112807
+ Insert: {
112808
+ created_at?: string;
112809
+ expires_at?: string;
112810
+ first_viewed_at?: string | null;
112811
+ id?: string;
112812
+ processed_at?: string | null;
112813
+ purchase_order_id: string;
112814
+ responded_at?: string | null;
112815
+ sent_at?: string;
112816
+ status?: string;
112817
+ supplier_id?: string | null;
112818
+ supplier_name?: string;
112819
+ supplier_note?: string | null;
112820
+ to_address?: string | null;
112821
+ token_hash: string;
112822
+ updated_at?: string;
112823
+ };
112824
+ Update: {
112825
+ created_at?: string;
112826
+ expires_at?: string;
112827
+ first_viewed_at?: string | null;
112828
+ id?: string;
112829
+ processed_at?: string | null;
112830
+ purchase_order_id?: string;
112831
+ responded_at?: string | null;
112832
+ sent_at?: string;
112833
+ status?: string;
112834
+ supplier_id?: string | null;
112835
+ supplier_name?: string;
112836
+ supplier_note?: string | null;
112837
+ to_address?: string | null;
112838
+ token_hash?: string;
112839
+ updated_at?: string;
112840
+ };
112841
+ Relationships: [{
112842
+ foreignKeyName: "purchase_requests_purchase_order_id_fkey";
112843
+ columns: ["purchase_order_id"];
112844
+ isOneToOne: false;
112845
+ referencedRelation: "purchase_orders";
112846
+ referencedColumns: ["id"];
112847
+ }, {
112848
+ foreignKeyName: "purchase_requests_supplier_id_fkey";
112849
+ columns: ["supplier_id"];
112850
+ isOneToOne: false;
112851
+ referencedRelation: "suppliers";
112852
+ referencedColumns: ["id"];
112853
+ }];
112854
+ };
110998
112855
  reception_notifications: {
110999
112856
  Row: {
111000
112857
  booking_id: string | null;
@@ -115420,7 +117277,7 @@ export declare const getSalesOrderDetail: import("@tanstack/start-client-core").
115420
117277
  created_at: string;
115421
117278
  default_quantity: number;
115422
117279
  description: string | null;
115423
- duration_minutes: number | null;
117280
+ duration_minutes: number;
115424
117281
  id: string;
115425
117282
  mandaat_type: string | null;
115426
117283
  name: string;
@@ -115437,7 +117294,7 @@ export declare const getSalesOrderDetail: import("@tanstack/start-client-core").
115437
117294
  created_at?: string;
115438
117295
  default_quantity?: number;
115439
117296
  description?: string | null;
115440
- duration_minutes?: number | null;
117297
+ duration_minutes?: number;
115441
117298
  id?: string;
115442
117299
  mandaat_type?: string | null;
115443
117300
  name: string;
@@ -115454,7 +117311,7 @@ export declare const getSalesOrderDetail: import("@tanstack/start-client-core").
115454
117311
  created_at?: string;
115455
117312
  default_quantity?: number;
115456
117313
  description?: string | null;
115457
- duration_minutes?: number | null;
117314
+ duration_minutes?: number;
115458
117315
  id?: string;
115459
117316
  mandaat_type?: string | null;
115460
117317
  name?: string;
@@ -118450,6 +120307,31 @@ export declare const getSalesOrderDetail: import("@tanstack/start-client-core").
118450
120307
  };
118451
120308
  Returns: import("../integrations/supabase/types").Json;
118452
120309
  };
120310
+ inkoop_cancel_line: {
120311
+ Args: {
120312
+ _item_id: string;
120313
+ _reason: string;
120314
+ };
120315
+ Returns: string;
120316
+ };
120317
+ inkoop_get_supplier_request: {
120318
+ Args: {
120319
+ _token: string;
120320
+ };
120321
+ Returns: import("../integrations/supabase/types").Json;
120322
+ };
120323
+ inkoop_hash_token: {
120324
+ Args: {
120325
+ _token: string;
120326
+ };
120327
+ Returns: string;
120328
+ };
120329
+ inkoop_html_escape: {
120330
+ Args: {
120331
+ _t: string;
120332
+ };
120333
+ Returns: string;
120334
+ };
118453
120335
  inkoop_list_artikelen: {
118454
120336
  Args: never;
118455
120337
  Returns: {
@@ -118474,9 +120356,17 @@ export declare const getSalesOrderDetail: import("@tanstack/start-client-core").
118474
120356
  Args: never;
118475
120357
  Returns: string;
118476
120358
  };
120359
+ inkoop_process_request: {
120360
+ Args: {
120361
+ _request_id: string;
120362
+ };
120363
+ Returns: undefined;
120364
+ };
118477
120365
  inkoop_send_order: {
118478
120366
  Args: {
120367
+ _base_url?: string;
118479
120368
  _order_id: string;
120369
+ _resend?: boolean;
118480
120370
  };
118481
120371
  Returns: {
118482
120372
  outbox_id: string;
@@ -118491,6 +120381,26 @@ export declare const getSalesOrderDetail: import("@tanstack/start-client-core").
118491
120381
  };
118492
120382
  Returns: undefined;
118493
120383
  };
120384
+ inkoop_stock_key: {
120385
+ Args: {
120386
+ p_product_id: string;
120387
+ };
120388
+ Returns: string;
120389
+ };
120390
+ inkoop_submit_supplier_response: {
120391
+ Args: {
120392
+ _lines: import("../integrations/supabase/types").Json;
120393
+ _note?: string;
120394
+ _token: string;
120395
+ };
120396
+ Returns: import("../integrations/supabase/types").Json;
120397
+ };
120398
+ inkoop_sync_item_stock: {
120399
+ Args: {
120400
+ p_item_id: string;
120401
+ };
120402
+ Returns: undefined;
120403
+ };
118494
120404
  instructie_get: {
118495
120405
  Args: {
118496
120406
  _sleutel: string;
@@ -118651,6 +120561,27 @@ export declare const getSalesOrderDetail: import("@tanstack/start-client-core").
118651
120561
  };
118652
120562
  Returns: boolean;
118653
120563
  };
120564
+ layout_print_document: {
120565
+ Args: {
120566
+ _documentnaam: string;
120567
+ _documenttype: string;
120568
+ _herkomst?: string;
120569
+ _idempotentie_sleutel?: string;
120570
+ _is_herprint?: boolean;
120571
+ _kopieen?: number;
120572
+ _layout_id?: string;
120573
+ _payload?: import("../integrations/supabase/types").Json;
120574
+ _pdf_base64?: string;
120575
+ _pdf_url?: string;
120576
+ _print_plek_id?: string;
120577
+ _werkplek?: string;
120578
+ };
120579
+ Returns: {
120580
+ bestaand: boolean;
120581
+ job_id: string;
120582
+ printer_id: string;
120583
+ }[];
120584
+ };
118654
120585
  list_medewerkers: {
118655
120586
  Args: never;
118656
120587
  Returns: {
@@ -118928,6 +120859,12 @@ export declare const getSalesOrderDetail: import("@tanstack/start-client-core").
118928
120859
  };
118929
120860
  Returns: number;
118930
120861
  };
120862
+ logistics_cart_barcode_opschonen: {
120863
+ Args: {
120864
+ p_portie?: number;
120865
+ };
120866
+ Returns: import("../integrations/supabase/types").Json;
120867
+ };
118931
120868
  logistics_cart_barcode_value: {
118932
120869
  Args: {
118933
120870
  _cart_id: string;
@@ -119347,6 +121284,13 @@ export declare const getSalesOrderDetail: import("@tanstack/start-client-core").
119347
121284
  };
119348
121285
  Returns: import("../integrations/supabase/types").Json;
119349
121286
  };
121287
+ logistics_control_scan_print_own: {
121288
+ Args: {
121289
+ p_is_herprint?: boolean;
121290
+ p_scan_id: string;
121291
+ };
121292
+ Returns: import("../integrations/supabase/types").Json;
121293
+ };
119350
121294
  logistics_control_scan_retry: {
119351
121295
  Args: {
119352
121296
  _id: string;
@@ -120251,6 +122195,21 @@ export declare const getSalesOrderDetail: import("@tanstack/start-client-core").
120251
122195
  };
120252
122196
  Returns: import("../integrations/supabase/types").Json;
120253
122197
  };
122198
+ logistics_print_via_layout: {
122199
+ Args: {
122200
+ _documentnaam: string;
122201
+ _documenttype: string;
122202
+ _herkomst: string;
122203
+ _idempotentie_sleutel: string;
122204
+ _is_herprint: boolean;
122205
+ _layout_id: string;
122206
+ _payload: import("../integrations/supabase/types").Json;
122207
+ _pdf_base64: string;
122208
+ _pdf_url: string;
122209
+ _print_plek_id: string;
122210
+ };
122211
+ Returns: import("../integrations/supabase/types").Json;
122212
+ };
120254
122213
  logistics_prune_buffer_member_queue: {
120255
122214
  Args: never;
120256
122215
  Returns: number;
@@ -120537,6 +122496,13 @@ export declare const getSalesOrderDetail: import("@tanstack/start-client-core").
120537
122496
  };
120538
122497
  Returns: string;
120539
122498
  };
122499
+ logistics_shipping_note_status: {
122500
+ Args: {
122501
+ p_cart_id?: string;
122502
+ p_slip_job_id?: string;
122503
+ };
122504
+ Returns: import("../integrations/supabase/types").Json;
122505
+ };
120540
122506
  logistics_shipping_notes_wake_all: {
120541
122507
  Args: never;
120542
122508
  Returns: import("../integrations/supabase/types").Json;
@@ -120599,6 +122565,12 @@ export declare const getSalesOrderDetail: import("@tanstack/start-client-core").
120599
122565
  };
120600
122566
  Returns: undefined;
120601
122567
  };
122568
+ logistics_slip_note_retry: {
122569
+ Args: {
122570
+ _id: string;
122571
+ };
122572
+ Returns: import("../integrations/supabase/types").Json;
122573
+ };
120602
122574
  logistics_sticker_follows_slip: {
120603
122575
  Args: never;
120604
122576
  Returns: boolean;
@@ -121343,6 +123315,10 @@ export declare const getSalesOrderDetail: import("@tanstack/start-client-core").
121343
123315
  };
121344
123316
  Returns: string;
121345
123317
  };
123318
+ pick_is_reference_admin: {
123319
+ Args: never;
123320
+ Returns: boolean;
123321
+ };
121346
123322
  pick_mark_printed: {
121347
123323
  Args: {
121348
123324
  _queue_item_id: string;
@@ -121766,6 +123742,12 @@ export declare const getSalesOrderDetail: import("@tanstack/start-client-core").
121766
123742
  };
121767
123743
  Returns: import("../integrations/supabase/types").Json;
121768
123744
  };
123745
+ pick_verify_rows: {
123746
+ Args: {
123747
+ _rows: import("../integrations/supabase/types").Json;
123748
+ };
123749
+ Returns: import("../integrations/supabase/types").Json;
123750
+ };
121769
123751
  pickstation_get_orders_raw: {
121770
123752
  Args: never;
121771
123753
  Returns: import("../integrations/supabase/types").Json;
@@ -121946,6 +123928,12 @@ export declare const getSalesOrderDetail: import("@tanstack/start-client-core").
121946
123928
  };
121947
123929
  Returns: import("../integrations/supabase/types").Json;
121948
123930
  };
123931
+ quote_create_from_scratch: {
123932
+ Args: {
123933
+ _payload: import("../integrations/supabase/types").Json;
123934
+ };
123935
+ Returns: import("../integrations/supabase/types").Json;
123936
+ };
121949
123937
  quote_create_from_source: {
121950
123938
  Args: {
121951
123939
  _payload?: import("../integrations/supabase/types").Json;
@@ -121996,6 +123984,13 @@ export declare const getSalesOrderDetail: import("@tanstack/start-client-core").
121996
123984
  };
121997
123985
  Returns: string;
121998
123986
  };
123987
+ quote_sync_work_order: {
123988
+ Args: {
123989
+ _monteur_instructies?: string;
123990
+ _offerte_id: string;
123991
+ };
123992
+ Returns: boolean;
123993
+ };
121999
123994
  recompute_all_reserved_stock: {
122000
123995
  Args: never;
122001
123996
  Returns: undefined;
@@ -122216,6 +124211,13 @@ export declare const getSalesOrderDetail: import("@tanstack/start-client-core").
122216
124211
  };
122217
124212
  Returns: import("../integrations/supabase/types").Json;
122218
124213
  };
124214
+ scan_controleer_pincode: {
124215
+ Args: {
124216
+ p_pin: string;
124217
+ p_scanner_id: string;
124218
+ };
124219
+ Returns: boolean;
124220
+ };
122219
124221
  scan_dashboard_stats: {
122220
124222
  Args: {
122221
124223
  p_dagen?: number;
@@ -122235,6 +124237,12 @@ export declare const getSalesOrderDetail: import("@tanstack/start-client-core").
122235
124237
  };
122236
124238
  Returns: import("../integrations/supabase/types").Json;
122237
124239
  };
124240
+ scan_heeft_pincode: {
124241
+ Args: {
124242
+ p_scanner_id: string;
124243
+ };
124244
+ Returns: boolean;
124245
+ };
122238
124246
  scan_kar_compleet: {
122239
124247
  Args: {
122240
124248
  p_allow_reprint?: boolean;
@@ -122252,6 +124260,7 @@ export declare const getSalesOrderDetail: import("@tanstack/start-client-core").
122252
124260
  Args: {
122253
124261
  p_code: string;
122254
124262
  p_latency_ms?: number;
124263
+ p_medewerker?: string;
122255
124264
  p_message?: string;
122256
124265
  p_result: string;
122257
124266
  p_scanner_key?: string;
@@ -122324,6 +124333,22 @@ export declare const getSalesOrderDetail: import("@tanstack/start-client-core").
122324
124333
  };
122325
124334
  Returns: undefined;
122326
124335
  };
124336
+ scan_scanner_info: {
124337
+ Args: {
124338
+ p_slug: string;
124339
+ };
124340
+ Returns: {
124341
+ actief: boolean;
124342
+ heeft_pincode: boolean;
124343
+ id: string;
124344
+ naam: string;
124345
+ omschrijving: string;
124346
+ printer_id: string;
124347
+ type: string;
124348
+ vereist_medewerker: boolean;
124349
+ werkplek: string;
124350
+ }[];
124351
+ };
122327
124352
  scan_sessie_annuleren: {
122328
124353
  Args: {
122329
124354
  p_sessie_id: string;
@@ -123286,6 +125311,21 @@ export declare const getSalesOrderDetail: import("@tanstack/start-client-core").
123286
125311
  };
123287
125312
  Returns: import("../integrations/supabase/types").Json;
123288
125313
  };
125314
+ wo_list_colleague_planning: {
125315
+ Args: {
125316
+ _from: string;
125317
+ _monteur_id: string;
125318
+ _to: string;
125319
+ };
125320
+ Returns: {
125321
+ end_at: string;
125322
+ id: string;
125323
+ role: string;
125324
+ start_at: string;
125325
+ status: string;
125326
+ werkbon_id: string;
125327
+ }[];
125328
+ };
123289
125329
  wo_list_offerte_requests: {
123290
125330
  Args: {
123291
125331
  _status?: string;
@@ -124093,6 +126133,27 @@ export declare const setSalesOrderControlled: import("@tanstack/start-client-cor
124093
126133
  };
124094
126134
  Relationships: [];
124095
126135
  };
126136
+ artikelen_instellingen: {
126137
+ Row: {
126138
+ created_at: string;
126139
+ id: number;
126140
+ marge_procent: number;
126141
+ updated_at: string;
126142
+ };
126143
+ Insert: {
126144
+ created_at?: string;
126145
+ id?: number;
126146
+ marge_procent?: number;
126147
+ updated_at?: string;
126148
+ };
126149
+ Update: {
126150
+ created_at?: string;
126151
+ id?: number;
126152
+ marge_procent?: number;
126153
+ updated_at?: string;
126154
+ };
126155
+ Relationships: [];
126156
+ };
124096
126157
  artikelen_veldconfig: {
124097
126158
  Row: {
124098
126159
  bron_pad: string;
@@ -133768,6 +135829,30 @@ export declare const setSalesOrderControlled: import("@tanstack/start-client-cor
133768
135829
  };
133769
135830
  Relationships: [];
133770
135831
  };
135832
+ logistics_cart_barcode_archief: {
135833
+ Row: {
135834
+ barcode: string;
135835
+ cart_id: string;
135836
+ created_at: string | null;
135837
+ gearchiveerd_op: string;
135838
+ order_id: string | null;
135839
+ };
135840
+ Insert: {
135841
+ barcode: string;
135842
+ cart_id: string;
135843
+ created_at?: string | null;
135844
+ gearchiveerd_op?: string;
135845
+ order_id?: string | null;
135846
+ };
135847
+ Update: {
135848
+ barcode?: string;
135849
+ cart_id?: string;
135850
+ created_at?: string | null;
135851
+ gearchiveerd_op?: string;
135852
+ order_id?: string | null;
135853
+ };
135854
+ Relationships: [];
135855
+ };
133771
135856
  logistics_control_scan: {
133772
135857
  Row: {
133773
135858
  approved_at: string | null;
@@ -139421,18 +141506,24 @@ export declare const setSalesOrderControlled: import("@tanstack/start-client-cor
139421
141506
  Row: {
139422
141507
  id: boolean;
139423
141508
  last_cleanup_at: string | null;
141509
+ last_error: string | null;
141510
+ last_error_at: string | null;
139424
141511
  last_sync_at: string | null;
139425
141512
  updated_at: string;
139426
141513
  };
139427
141514
  Insert: {
139428
141515
  id?: boolean;
139429
141516
  last_cleanup_at?: string | null;
141517
+ last_error?: string | null;
141518
+ last_error_at?: string | null;
139430
141519
  last_sync_at?: string | null;
139431
141520
  updated_at?: string;
139432
141521
  };
139433
141522
  Update: {
139434
141523
  id?: boolean;
139435
141524
  last_cleanup_at?: string | null;
141525
+ last_error?: string | null;
141526
+ last_error_at?: string | null;
139436
141527
  last_sync_at?: string | null;
139437
141528
  updated_at?: string;
139438
141529
  };
@@ -139558,6 +141649,54 @@ export declare const setSalesOrderControlled: import("@tanstack/start-client-cor
139558
141649
  };
139559
141650
  Relationships: [];
139560
141651
  };
141652
+ planning_confirmation_log: {
141653
+ Row: {
141654
+ created_at: string;
141655
+ end_at: string;
141656
+ id: string;
141657
+ outbox_id: string | null;
141658
+ planning_item_id: string;
141659
+ reason: string | null;
141660
+ recipient: string | null;
141661
+ start_at: string;
141662
+ status: string;
141663
+ };
141664
+ Insert: {
141665
+ created_at?: string;
141666
+ end_at: string;
141667
+ id?: string;
141668
+ outbox_id?: string | null;
141669
+ planning_item_id: string;
141670
+ reason?: string | null;
141671
+ recipient?: string | null;
141672
+ start_at: string;
141673
+ status: string;
141674
+ };
141675
+ Update: {
141676
+ created_at?: string;
141677
+ end_at?: string;
141678
+ id?: string;
141679
+ outbox_id?: string | null;
141680
+ planning_item_id?: string;
141681
+ reason?: string | null;
141682
+ recipient?: string | null;
141683
+ start_at?: string;
141684
+ status?: string;
141685
+ };
141686
+ Relationships: [{
141687
+ foreignKeyName: "planning_confirmation_log_planning_item_id_fkey";
141688
+ columns: ["planning_item_id"];
141689
+ isOneToOne: false;
141690
+ referencedRelation: "planning_items";
141691
+ referencedColumns: ["id"];
141692
+ }, {
141693
+ foreignKeyName: "planning_confirmation_log_planning_item_id_fkey";
141694
+ columns: ["planning_item_id"];
141695
+ isOneToOne: false;
141696
+ referencedRelation: "planning_overview";
141697
+ referencedColumns: ["id"];
141698
+ }];
141699
+ };
139561
141700
  planning_item_assistants: {
139562
141701
  Row: {
139563
141702
  created_at: string;
@@ -139642,6 +141781,60 @@ export declare const setSalesOrderControlled: import("@tanstack/start-client-cor
139642
141781
  referencedColumns: ["id"];
139643
141782
  }];
139644
141783
  };
141784
+ planning_mail_settings: {
141785
+ Row: {
141786
+ body_template: string;
141787
+ cc: string[];
141788
+ connection_id: string | null;
141789
+ created_at: string;
141790
+ enabled: boolean;
141791
+ id: boolean;
141792
+ reply_to: string | null;
141793
+ subject_template: string;
141794
+ timezone: string;
141795
+ updated_at: string;
141796
+ updated_by: string | null;
141797
+ };
141798
+ Insert: {
141799
+ body_template?: string;
141800
+ cc?: string[];
141801
+ connection_id?: string | null;
141802
+ created_at?: string;
141803
+ enabled?: boolean;
141804
+ id?: boolean;
141805
+ reply_to?: string | null;
141806
+ subject_template?: string;
141807
+ timezone?: string;
141808
+ updated_at?: string;
141809
+ updated_by?: string | null;
141810
+ };
141811
+ Update: {
141812
+ body_template?: string;
141813
+ cc?: string[];
141814
+ connection_id?: string | null;
141815
+ created_at?: string;
141816
+ enabled?: boolean;
141817
+ id?: boolean;
141818
+ reply_to?: string | null;
141819
+ subject_template?: string;
141820
+ timezone?: string;
141821
+ updated_at?: string;
141822
+ updated_by?: string | null;
141823
+ };
141824
+ Relationships: [{
141825
+ foreignKeyName: "planning_mail_settings_connection_id_fkey";
141826
+ columns: ["connection_id"];
141827
+ isOneToOne: false;
141828
+ referencedRelation: "email_auth_connections";
141829
+ referencedColumns: ["id"];
141830
+ }, {
141831
+ foreignKeyName: "planning_mail_settings_connection_id_fkey";
141832
+ columns: ["connection_id"];
141833
+ isOneToOne: false;
141834
+ referencedRelation: "email_auth_connections_safe";
141835
+ referencedColumns: ["id"];
141836
+ }];
141837
+ };
139645
141838
  planning_monteur_day_locations: {
139646
141839
  Row: {
139647
141840
  created_at: string;
@@ -141120,6 +143313,9 @@ export declare const setSalesOrderControlled: import("@tanstack/start-client-cor
141120
143313
  lead_time_days: number | null;
141121
143314
  min_order_quantity: number | null;
141122
143315
  notes: string | null;
143316
+ previous_price_cents: number | null;
143317
+ price_source: string;
143318
+ price_updated_at: string | null;
141123
143319
  product_id: string;
141124
143320
  purchase_price_cents: number | null;
141125
143321
  supplier_article_number: string | null;
@@ -141133,6 +143329,9 @@ export declare const setSalesOrderControlled: import("@tanstack/start-client-cor
141133
143329
  lead_time_days?: number | null;
141134
143330
  min_order_quantity?: number | null;
141135
143331
  notes?: string | null;
143332
+ previous_price_cents?: number | null;
143333
+ price_source?: string;
143334
+ price_updated_at?: string | null;
141136
143335
  product_id: string;
141137
143336
  purchase_price_cents?: number | null;
141138
143337
  supplier_article_number?: string | null;
@@ -141146,6 +143345,9 @@ export declare const setSalesOrderControlled: import("@tanstack/start-client-cor
141146
143345
  lead_time_days?: number | null;
141147
143346
  min_order_quantity?: number | null;
141148
143347
  notes?: string | null;
143348
+ previous_price_cents?: number | null;
143349
+ price_source?: string;
143350
+ price_updated_at?: string | null;
141149
143351
  product_id?: string;
141150
143352
  purchase_price_cents?: number | null;
141151
143353
  supplier_article_number?: string | null;
@@ -141676,9 +143878,13 @@ export declare const setSalesOrderControlled: import("@tanstack/start-client-cor
141676
143878
  purchase_order_items: {
141677
143879
  Row: {
141678
143880
  article_number: string | null;
143881
+ cancel_reason: string | null;
143882
+ cancelled_at: string | null;
141679
143883
  created_at: string;
141680
143884
  delivery_date: string | null;
141681
143885
  id: string;
143886
+ incoming_booked: number;
143887
+ line_status: string;
141682
143888
  name: string;
141683
143889
  note: string | null;
141684
143890
  pot_size: string | null;
@@ -141686,6 +143892,8 @@ export declare const setSalesOrderControlled: import("@tanstack/start-client-cor
141686
143892
  product_type: string;
141687
143893
  purchase_order_id: string;
141688
143894
  quantity: number;
143895
+ received_at: string | null;
143896
+ received_booked: number;
141689
143897
  supplier_id: string | null;
141690
143898
  supplier_product_id: string | null;
141691
143899
  unit_price_cents: number;
@@ -141693,9 +143901,13 @@ export declare const setSalesOrderControlled: import("@tanstack/start-client-cor
141693
143901
  };
141694
143902
  Insert: {
141695
143903
  article_number?: string | null;
143904
+ cancel_reason?: string | null;
143905
+ cancelled_at?: string | null;
141696
143906
  created_at?: string;
141697
143907
  delivery_date?: string | null;
141698
143908
  id?: string;
143909
+ incoming_booked?: number;
143910
+ line_status?: string;
141699
143911
  name?: string;
141700
143912
  note?: string | null;
141701
143913
  pot_size?: string | null;
@@ -141703,6 +143915,8 @@ export declare const setSalesOrderControlled: import("@tanstack/start-client-cor
141703
143915
  product_type?: string;
141704
143916
  purchase_order_id: string;
141705
143917
  quantity?: number;
143918
+ received_at?: string | null;
143919
+ received_booked?: number;
141706
143920
  supplier_id?: string | null;
141707
143921
  supplier_product_id?: string | null;
141708
143922
  unit_price_cents?: number;
@@ -141710,9 +143924,13 @@ export declare const setSalesOrderControlled: import("@tanstack/start-client-cor
141710
143924
  };
141711
143925
  Update: {
141712
143926
  article_number?: string | null;
143927
+ cancel_reason?: string | null;
143928
+ cancelled_at?: string | null;
141713
143929
  created_at?: string;
141714
143930
  delivery_date?: string | null;
141715
143931
  id?: string;
143932
+ incoming_booked?: number;
143933
+ line_status?: string;
141716
143934
  name?: string;
141717
143935
  note?: string | null;
141718
143936
  pot_size?: string | null;
@@ -141720,6 +143938,8 @@ export declare const setSalesOrderControlled: import("@tanstack/start-client-cor
141720
143938
  product_type?: string;
141721
143939
  purchase_order_id?: string;
141722
143940
  quantity?: number;
143941
+ received_at?: string | null;
143942
+ received_booked?: number;
141723
143943
  supplier_id?: string | null;
141724
143944
  supplier_product_id?: string | null;
141725
143945
  unit_price_cents?: number;
@@ -141823,6 +144043,153 @@ export declare const setSalesOrderControlled: import("@tanstack/start-client-cor
141823
144043
  referencedColumns: ["id"];
141824
144044
  }];
141825
144045
  };
144046
+ purchase_request_events: {
144047
+ Row: {
144048
+ created_at: string;
144049
+ details: import("../integrations/supabase/types").Json | null;
144050
+ event_type: string;
144051
+ id: string;
144052
+ request_id: string;
144053
+ };
144054
+ Insert: {
144055
+ created_at?: string;
144056
+ details?: import("../integrations/supabase/types").Json | null;
144057
+ event_type: string;
144058
+ id?: string;
144059
+ request_id: string;
144060
+ };
144061
+ Update: {
144062
+ created_at?: string;
144063
+ details?: import("../integrations/supabase/types").Json | null;
144064
+ event_type?: string;
144065
+ id?: string;
144066
+ request_id?: string;
144067
+ };
144068
+ Relationships: [{
144069
+ foreignKeyName: "purchase_request_events_request_id_fkey";
144070
+ columns: ["request_id"];
144071
+ isOneToOne: false;
144072
+ referencedRelation: "purchase_requests";
144073
+ referencedColumns: ["id"];
144074
+ }];
144075
+ };
144076
+ purchase_request_responses: {
144077
+ Row: {
144078
+ confirmed_date: string | null;
144079
+ confirmed_price_cents: number | null;
144080
+ confirmed_quantity: number;
144081
+ created_at: string;
144082
+ id: string;
144083
+ not_available: boolean;
144084
+ note: string | null;
144085
+ purchase_order_item_id: string;
144086
+ request_id: string;
144087
+ updated_at: string;
144088
+ };
144089
+ Insert: {
144090
+ confirmed_date?: string | null;
144091
+ confirmed_price_cents?: number | null;
144092
+ confirmed_quantity?: number;
144093
+ created_at?: string;
144094
+ id?: string;
144095
+ not_available?: boolean;
144096
+ note?: string | null;
144097
+ purchase_order_item_id: string;
144098
+ request_id: string;
144099
+ updated_at?: string;
144100
+ };
144101
+ Update: {
144102
+ confirmed_date?: string | null;
144103
+ confirmed_price_cents?: number | null;
144104
+ confirmed_quantity?: number;
144105
+ created_at?: string;
144106
+ id?: string;
144107
+ not_available?: boolean;
144108
+ note?: string | null;
144109
+ purchase_order_item_id?: string;
144110
+ request_id?: string;
144111
+ updated_at?: string;
144112
+ };
144113
+ Relationships: [{
144114
+ foreignKeyName: "purchase_request_responses_purchase_order_item_id_fkey";
144115
+ columns: ["purchase_order_item_id"];
144116
+ isOneToOne: false;
144117
+ referencedRelation: "purchase_order_items";
144118
+ referencedColumns: ["id"];
144119
+ }, {
144120
+ foreignKeyName: "purchase_request_responses_request_id_fkey";
144121
+ columns: ["request_id"];
144122
+ isOneToOne: false;
144123
+ referencedRelation: "purchase_requests";
144124
+ referencedColumns: ["id"];
144125
+ }];
144126
+ };
144127
+ purchase_requests: {
144128
+ Row: {
144129
+ created_at: string;
144130
+ expires_at: string;
144131
+ first_viewed_at: string | null;
144132
+ id: string;
144133
+ processed_at: string | null;
144134
+ purchase_order_id: string;
144135
+ responded_at: string | null;
144136
+ sent_at: string;
144137
+ status: string;
144138
+ supplier_id: string | null;
144139
+ supplier_name: string;
144140
+ supplier_note: string | null;
144141
+ to_address: string | null;
144142
+ token_hash: string;
144143
+ updated_at: string;
144144
+ };
144145
+ Insert: {
144146
+ created_at?: string;
144147
+ expires_at?: string;
144148
+ first_viewed_at?: string | null;
144149
+ id?: string;
144150
+ processed_at?: string | null;
144151
+ purchase_order_id: string;
144152
+ responded_at?: string | null;
144153
+ sent_at?: string;
144154
+ status?: string;
144155
+ supplier_id?: string | null;
144156
+ supplier_name?: string;
144157
+ supplier_note?: string | null;
144158
+ to_address?: string | null;
144159
+ token_hash: string;
144160
+ updated_at?: string;
144161
+ };
144162
+ Update: {
144163
+ created_at?: string;
144164
+ expires_at?: string;
144165
+ first_viewed_at?: string | null;
144166
+ id?: string;
144167
+ processed_at?: string | null;
144168
+ purchase_order_id?: string;
144169
+ responded_at?: string | null;
144170
+ sent_at?: string;
144171
+ status?: string;
144172
+ supplier_id?: string | null;
144173
+ supplier_name?: string;
144174
+ supplier_note?: string | null;
144175
+ to_address?: string | null;
144176
+ token_hash?: string;
144177
+ updated_at?: string;
144178
+ };
144179
+ Relationships: [{
144180
+ foreignKeyName: "purchase_requests_purchase_order_id_fkey";
144181
+ columns: ["purchase_order_id"];
144182
+ isOneToOne: false;
144183
+ referencedRelation: "purchase_orders";
144184
+ referencedColumns: ["id"];
144185
+ }, {
144186
+ foreignKeyName: "purchase_requests_supplier_id_fkey";
144187
+ columns: ["supplier_id"];
144188
+ isOneToOne: false;
144189
+ referencedRelation: "suppliers";
144190
+ referencedColumns: ["id"];
144191
+ }];
144192
+ };
141826
144193
  reception_notifications: {
141827
144194
  Row: {
141828
144195
  booking_id: string | null;
@@ -146248,7 +148615,7 @@ export declare const setSalesOrderControlled: import("@tanstack/start-client-cor
146248
148615
  created_at: string;
146249
148616
  default_quantity: number;
146250
148617
  description: string | null;
146251
- duration_minutes: number | null;
148618
+ duration_minutes: number;
146252
148619
  id: string;
146253
148620
  mandaat_type: string | null;
146254
148621
  name: string;
@@ -146265,7 +148632,7 @@ export declare const setSalesOrderControlled: import("@tanstack/start-client-cor
146265
148632
  created_at?: string;
146266
148633
  default_quantity?: number;
146267
148634
  description?: string | null;
146268
- duration_minutes?: number | null;
148635
+ duration_minutes?: number;
146269
148636
  id?: string;
146270
148637
  mandaat_type?: string | null;
146271
148638
  name: string;
@@ -146282,7 +148649,7 @@ export declare const setSalesOrderControlled: import("@tanstack/start-client-cor
146282
148649
  created_at?: string;
146283
148650
  default_quantity?: number;
146284
148651
  description?: string | null;
146285
- duration_minutes?: number | null;
148652
+ duration_minutes?: number;
146286
148653
  id?: string;
146287
148654
  mandaat_type?: string | null;
146288
148655
  name?: string;
@@ -149278,6 +151645,31 @@ export declare const setSalesOrderControlled: import("@tanstack/start-client-cor
149278
151645
  };
149279
151646
  Returns: import("../integrations/supabase/types").Json;
149280
151647
  };
151648
+ inkoop_cancel_line: {
151649
+ Args: {
151650
+ _item_id: string;
151651
+ _reason: string;
151652
+ };
151653
+ Returns: string;
151654
+ };
151655
+ inkoop_get_supplier_request: {
151656
+ Args: {
151657
+ _token: string;
151658
+ };
151659
+ Returns: import("../integrations/supabase/types").Json;
151660
+ };
151661
+ inkoop_hash_token: {
151662
+ Args: {
151663
+ _token: string;
151664
+ };
151665
+ Returns: string;
151666
+ };
151667
+ inkoop_html_escape: {
151668
+ Args: {
151669
+ _t: string;
151670
+ };
151671
+ Returns: string;
151672
+ };
149281
151673
  inkoop_list_artikelen: {
149282
151674
  Args: never;
149283
151675
  Returns: {
@@ -149302,9 +151694,17 @@ export declare const setSalesOrderControlled: import("@tanstack/start-client-cor
149302
151694
  Args: never;
149303
151695
  Returns: string;
149304
151696
  };
151697
+ inkoop_process_request: {
151698
+ Args: {
151699
+ _request_id: string;
151700
+ };
151701
+ Returns: undefined;
151702
+ };
149305
151703
  inkoop_send_order: {
149306
151704
  Args: {
151705
+ _base_url?: string;
149307
151706
  _order_id: string;
151707
+ _resend?: boolean;
149308
151708
  };
149309
151709
  Returns: {
149310
151710
  outbox_id: string;
@@ -149319,6 +151719,26 @@ export declare const setSalesOrderControlled: import("@tanstack/start-client-cor
149319
151719
  };
149320
151720
  Returns: undefined;
149321
151721
  };
151722
+ inkoop_stock_key: {
151723
+ Args: {
151724
+ p_product_id: string;
151725
+ };
151726
+ Returns: string;
151727
+ };
151728
+ inkoop_submit_supplier_response: {
151729
+ Args: {
151730
+ _lines: import("../integrations/supabase/types").Json;
151731
+ _note?: string;
151732
+ _token: string;
151733
+ };
151734
+ Returns: import("../integrations/supabase/types").Json;
151735
+ };
151736
+ inkoop_sync_item_stock: {
151737
+ Args: {
151738
+ p_item_id: string;
151739
+ };
151740
+ Returns: undefined;
151741
+ };
149322
151742
  instructie_get: {
149323
151743
  Args: {
149324
151744
  _sleutel: string;
@@ -149479,6 +151899,27 @@ export declare const setSalesOrderControlled: import("@tanstack/start-client-cor
149479
151899
  };
149480
151900
  Returns: boolean;
149481
151901
  };
151902
+ layout_print_document: {
151903
+ Args: {
151904
+ _documentnaam: string;
151905
+ _documenttype: string;
151906
+ _herkomst?: string;
151907
+ _idempotentie_sleutel?: string;
151908
+ _is_herprint?: boolean;
151909
+ _kopieen?: number;
151910
+ _layout_id?: string;
151911
+ _payload?: import("../integrations/supabase/types").Json;
151912
+ _pdf_base64?: string;
151913
+ _pdf_url?: string;
151914
+ _print_plek_id?: string;
151915
+ _werkplek?: string;
151916
+ };
151917
+ Returns: {
151918
+ bestaand: boolean;
151919
+ job_id: string;
151920
+ printer_id: string;
151921
+ }[];
151922
+ };
149482
151923
  list_medewerkers: {
149483
151924
  Args: never;
149484
151925
  Returns: {
@@ -149756,6 +152197,12 @@ export declare const setSalesOrderControlled: import("@tanstack/start-client-cor
149756
152197
  };
149757
152198
  Returns: number;
149758
152199
  };
152200
+ logistics_cart_barcode_opschonen: {
152201
+ Args: {
152202
+ p_portie?: number;
152203
+ };
152204
+ Returns: import("../integrations/supabase/types").Json;
152205
+ };
149759
152206
  logistics_cart_barcode_value: {
149760
152207
  Args: {
149761
152208
  _cart_id: string;
@@ -150175,6 +152622,13 @@ export declare const setSalesOrderControlled: import("@tanstack/start-client-cor
150175
152622
  };
150176
152623
  Returns: import("../integrations/supabase/types").Json;
150177
152624
  };
152625
+ logistics_control_scan_print_own: {
152626
+ Args: {
152627
+ p_is_herprint?: boolean;
152628
+ p_scan_id: string;
152629
+ };
152630
+ Returns: import("../integrations/supabase/types").Json;
152631
+ };
150178
152632
  logistics_control_scan_retry: {
150179
152633
  Args: {
150180
152634
  _id: string;
@@ -151079,6 +153533,21 @@ export declare const setSalesOrderControlled: import("@tanstack/start-client-cor
151079
153533
  };
151080
153534
  Returns: import("../integrations/supabase/types").Json;
151081
153535
  };
153536
+ logistics_print_via_layout: {
153537
+ Args: {
153538
+ _documentnaam: string;
153539
+ _documenttype: string;
153540
+ _herkomst: string;
153541
+ _idempotentie_sleutel: string;
153542
+ _is_herprint: boolean;
153543
+ _layout_id: string;
153544
+ _payload: import("../integrations/supabase/types").Json;
153545
+ _pdf_base64: string;
153546
+ _pdf_url: string;
153547
+ _print_plek_id: string;
153548
+ };
153549
+ Returns: import("../integrations/supabase/types").Json;
153550
+ };
151082
153551
  logistics_prune_buffer_member_queue: {
151083
153552
  Args: never;
151084
153553
  Returns: number;
@@ -151365,6 +153834,13 @@ export declare const setSalesOrderControlled: import("@tanstack/start-client-cor
151365
153834
  };
151366
153835
  Returns: string;
151367
153836
  };
153837
+ logistics_shipping_note_status: {
153838
+ Args: {
153839
+ p_cart_id?: string;
153840
+ p_slip_job_id?: string;
153841
+ };
153842
+ Returns: import("../integrations/supabase/types").Json;
153843
+ };
151368
153844
  logistics_shipping_notes_wake_all: {
151369
153845
  Args: never;
151370
153846
  Returns: import("../integrations/supabase/types").Json;
@@ -151427,6 +153903,12 @@ export declare const setSalesOrderControlled: import("@tanstack/start-client-cor
151427
153903
  };
151428
153904
  Returns: undefined;
151429
153905
  };
153906
+ logistics_slip_note_retry: {
153907
+ Args: {
153908
+ _id: string;
153909
+ };
153910
+ Returns: import("../integrations/supabase/types").Json;
153911
+ };
151430
153912
  logistics_sticker_follows_slip: {
151431
153913
  Args: never;
151432
153914
  Returns: boolean;
@@ -152171,6 +154653,10 @@ export declare const setSalesOrderControlled: import("@tanstack/start-client-cor
152171
154653
  };
152172
154654
  Returns: string;
152173
154655
  };
154656
+ pick_is_reference_admin: {
154657
+ Args: never;
154658
+ Returns: boolean;
154659
+ };
152174
154660
  pick_mark_printed: {
152175
154661
  Args: {
152176
154662
  _queue_item_id: string;
@@ -152594,6 +155080,12 @@ export declare const setSalesOrderControlled: import("@tanstack/start-client-cor
152594
155080
  };
152595
155081
  Returns: import("../integrations/supabase/types").Json;
152596
155082
  };
155083
+ pick_verify_rows: {
155084
+ Args: {
155085
+ _rows: import("../integrations/supabase/types").Json;
155086
+ };
155087
+ Returns: import("../integrations/supabase/types").Json;
155088
+ };
152597
155089
  pickstation_get_orders_raw: {
152598
155090
  Args: never;
152599
155091
  Returns: import("../integrations/supabase/types").Json;
@@ -152774,6 +155266,12 @@ export declare const setSalesOrderControlled: import("@tanstack/start-client-cor
152774
155266
  };
152775
155267
  Returns: import("../integrations/supabase/types").Json;
152776
155268
  };
155269
+ quote_create_from_scratch: {
155270
+ Args: {
155271
+ _payload: import("../integrations/supabase/types").Json;
155272
+ };
155273
+ Returns: import("../integrations/supabase/types").Json;
155274
+ };
152777
155275
  quote_create_from_source: {
152778
155276
  Args: {
152779
155277
  _payload?: import("../integrations/supabase/types").Json;
@@ -152824,6 +155322,13 @@ export declare const setSalesOrderControlled: import("@tanstack/start-client-cor
152824
155322
  };
152825
155323
  Returns: string;
152826
155324
  };
155325
+ quote_sync_work_order: {
155326
+ Args: {
155327
+ _monteur_instructies?: string;
155328
+ _offerte_id: string;
155329
+ };
155330
+ Returns: boolean;
155331
+ };
152827
155332
  recompute_all_reserved_stock: {
152828
155333
  Args: never;
152829
155334
  Returns: undefined;
@@ -153044,6 +155549,13 @@ export declare const setSalesOrderControlled: import("@tanstack/start-client-cor
153044
155549
  };
153045
155550
  Returns: import("../integrations/supabase/types").Json;
153046
155551
  };
155552
+ scan_controleer_pincode: {
155553
+ Args: {
155554
+ p_pin: string;
155555
+ p_scanner_id: string;
155556
+ };
155557
+ Returns: boolean;
155558
+ };
153047
155559
  scan_dashboard_stats: {
153048
155560
  Args: {
153049
155561
  p_dagen?: number;
@@ -153063,6 +155575,12 @@ export declare const setSalesOrderControlled: import("@tanstack/start-client-cor
153063
155575
  };
153064
155576
  Returns: import("../integrations/supabase/types").Json;
153065
155577
  };
155578
+ scan_heeft_pincode: {
155579
+ Args: {
155580
+ p_scanner_id: string;
155581
+ };
155582
+ Returns: boolean;
155583
+ };
153066
155584
  scan_kar_compleet: {
153067
155585
  Args: {
153068
155586
  p_allow_reprint?: boolean;
@@ -153080,6 +155598,7 @@ export declare const setSalesOrderControlled: import("@tanstack/start-client-cor
153080
155598
  Args: {
153081
155599
  p_code: string;
153082
155600
  p_latency_ms?: number;
155601
+ p_medewerker?: string;
153083
155602
  p_message?: string;
153084
155603
  p_result: string;
153085
155604
  p_scanner_key?: string;
@@ -153152,6 +155671,22 @@ export declare const setSalesOrderControlled: import("@tanstack/start-client-cor
153152
155671
  };
153153
155672
  Returns: undefined;
153154
155673
  };
155674
+ scan_scanner_info: {
155675
+ Args: {
155676
+ p_slug: string;
155677
+ };
155678
+ Returns: {
155679
+ actief: boolean;
155680
+ heeft_pincode: boolean;
155681
+ id: string;
155682
+ naam: string;
155683
+ omschrijving: string;
155684
+ printer_id: string;
155685
+ type: string;
155686
+ vereist_medewerker: boolean;
155687
+ werkplek: string;
155688
+ }[];
155689
+ };
153155
155690
  scan_sessie_annuleren: {
153156
155691
  Args: {
153157
155692
  p_sessie_id: string;
@@ -154114,6 +156649,21 @@ export declare const setSalesOrderControlled: import("@tanstack/start-client-cor
154114
156649
  };
154115
156650
  Returns: import("../integrations/supabase/types").Json;
154116
156651
  };
156652
+ wo_list_colleague_planning: {
156653
+ Args: {
156654
+ _from: string;
156655
+ _monteur_id: string;
156656
+ _to: string;
156657
+ };
156658
+ Returns: {
156659
+ end_at: string;
156660
+ id: string;
156661
+ role: string;
156662
+ start_at: string;
156663
+ status: string;
156664
+ werkbon_id: string;
156665
+ }[];
156666
+ };
154117
156667
  wo_list_offerte_requests: {
154118
156668
  Args: {
154119
156669
  _status?: string;
@@ -154936,6 +157486,27 @@ export declare const getFloridaySyncHealth: import("@tanstack/start-client-core"
154936
157486
  };
154937
157487
  Relationships: [];
154938
157488
  };
157489
+ artikelen_instellingen: {
157490
+ Row: {
157491
+ created_at: string;
157492
+ id: number;
157493
+ marge_procent: number;
157494
+ updated_at: string;
157495
+ };
157496
+ Insert: {
157497
+ created_at?: string;
157498
+ id?: number;
157499
+ marge_procent?: number;
157500
+ updated_at?: string;
157501
+ };
157502
+ Update: {
157503
+ created_at?: string;
157504
+ id?: number;
157505
+ marge_procent?: number;
157506
+ updated_at?: string;
157507
+ };
157508
+ Relationships: [];
157509
+ };
154939
157510
  artikelen_veldconfig: {
154940
157511
  Row: {
154941
157512
  bron_pad: string;
@@ -164611,6 +167182,30 @@ export declare const getFloridaySyncHealth: import("@tanstack/start-client-core"
164611
167182
  };
164612
167183
  Relationships: [];
164613
167184
  };
167185
+ logistics_cart_barcode_archief: {
167186
+ Row: {
167187
+ barcode: string;
167188
+ cart_id: string;
167189
+ created_at: string | null;
167190
+ gearchiveerd_op: string;
167191
+ order_id: string | null;
167192
+ };
167193
+ Insert: {
167194
+ barcode: string;
167195
+ cart_id: string;
167196
+ created_at?: string | null;
167197
+ gearchiveerd_op?: string;
167198
+ order_id?: string | null;
167199
+ };
167200
+ Update: {
167201
+ barcode?: string;
167202
+ cart_id?: string;
167203
+ created_at?: string | null;
167204
+ gearchiveerd_op?: string;
167205
+ order_id?: string | null;
167206
+ };
167207
+ Relationships: [];
167208
+ };
164614
167209
  logistics_control_scan: {
164615
167210
  Row: {
164616
167211
  approved_at: string | null;
@@ -170264,18 +172859,24 @@ export declare const getFloridaySyncHealth: import("@tanstack/start-client-core"
170264
172859
  Row: {
170265
172860
  id: boolean;
170266
172861
  last_cleanup_at: string | null;
172862
+ last_error: string | null;
172863
+ last_error_at: string | null;
170267
172864
  last_sync_at: string | null;
170268
172865
  updated_at: string;
170269
172866
  };
170270
172867
  Insert: {
170271
172868
  id?: boolean;
170272
172869
  last_cleanup_at?: string | null;
172870
+ last_error?: string | null;
172871
+ last_error_at?: string | null;
170273
172872
  last_sync_at?: string | null;
170274
172873
  updated_at?: string;
170275
172874
  };
170276
172875
  Update: {
170277
172876
  id?: boolean;
170278
172877
  last_cleanup_at?: string | null;
172878
+ last_error?: string | null;
172879
+ last_error_at?: string | null;
170279
172880
  last_sync_at?: string | null;
170280
172881
  updated_at?: string;
170281
172882
  };
@@ -170401,6 +173002,54 @@ export declare const getFloridaySyncHealth: import("@tanstack/start-client-core"
170401
173002
  };
170402
173003
  Relationships: [];
170403
173004
  };
173005
+ planning_confirmation_log: {
173006
+ Row: {
173007
+ created_at: string;
173008
+ end_at: string;
173009
+ id: string;
173010
+ outbox_id: string | null;
173011
+ planning_item_id: string;
173012
+ reason: string | null;
173013
+ recipient: string | null;
173014
+ start_at: string;
173015
+ status: string;
173016
+ };
173017
+ Insert: {
173018
+ created_at?: string;
173019
+ end_at: string;
173020
+ id?: string;
173021
+ outbox_id?: string | null;
173022
+ planning_item_id: string;
173023
+ reason?: string | null;
173024
+ recipient?: string | null;
173025
+ start_at: string;
173026
+ status: string;
173027
+ };
173028
+ Update: {
173029
+ created_at?: string;
173030
+ end_at?: string;
173031
+ id?: string;
173032
+ outbox_id?: string | null;
173033
+ planning_item_id?: string;
173034
+ reason?: string | null;
173035
+ recipient?: string | null;
173036
+ start_at?: string;
173037
+ status?: string;
173038
+ };
173039
+ Relationships: [{
173040
+ foreignKeyName: "planning_confirmation_log_planning_item_id_fkey";
173041
+ columns: ["planning_item_id"];
173042
+ isOneToOne: false;
173043
+ referencedRelation: "planning_items";
173044
+ referencedColumns: ["id"];
173045
+ }, {
173046
+ foreignKeyName: "planning_confirmation_log_planning_item_id_fkey";
173047
+ columns: ["planning_item_id"];
173048
+ isOneToOne: false;
173049
+ referencedRelation: "planning_overview";
173050
+ referencedColumns: ["id"];
173051
+ }];
173052
+ };
170404
173053
  planning_item_assistants: {
170405
173054
  Row: {
170406
173055
  created_at: string;
@@ -170485,6 +173134,60 @@ export declare const getFloridaySyncHealth: import("@tanstack/start-client-core"
170485
173134
  referencedColumns: ["id"];
170486
173135
  }];
170487
173136
  };
173137
+ planning_mail_settings: {
173138
+ Row: {
173139
+ body_template: string;
173140
+ cc: string[];
173141
+ connection_id: string | null;
173142
+ created_at: string;
173143
+ enabled: boolean;
173144
+ id: boolean;
173145
+ reply_to: string | null;
173146
+ subject_template: string;
173147
+ timezone: string;
173148
+ updated_at: string;
173149
+ updated_by: string | null;
173150
+ };
173151
+ Insert: {
173152
+ body_template?: string;
173153
+ cc?: string[];
173154
+ connection_id?: string | null;
173155
+ created_at?: string;
173156
+ enabled?: boolean;
173157
+ id?: boolean;
173158
+ reply_to?: string | null;
173159
+ subject_template?: string;
173160
+ timezone?: string;
173161
+ updated_at?: string;
173162
+ updated_by?: string | null;
173163
+ };
173164
+ Update: {
173165
+ body_template?: string;
173166
+ cc?: string[];
173167
+ connection_id?: string | null;
173168
+ created_at?: string;
173169
+ enabled?: boolean;
173170
+ id?: boolean;
173171
+ reply_to?: string | null;
173172
+ subject_template?: string;
173173
+ timezone?: string;
173174
+ updated_at?: string;
173175
+ updated_by?: string | null;
173176
+ };
173177
+ Relationships: [{
173178
+ foreignKeyName: "planning_mail_settings_connection_id_fkey";
173179
+ columns: ["connection_id"];
173180
+ isOneToOne: false;
173181
+ referencedRelation: "email_auth_connections";
173182
+ referencedColumns: ["id"];
173183
+ }, {
173184
+ foreignKeyName: "planning_mail_settings_connection_id_fkey";
173185
+ columns: ["connection_id"];
173186
+ isOneToOne: false;
173187
+ referencedRelation: "email_auth_connections_safe";
173188
+ referencedColumns: ["id"];
173189
+ }];
173190
+ };
170488
173191
  planning_monteur_day_locations: {
170489
173192
  Row: {
170490
173193
  created_at: string;
@@ -171963,6 +174666,9 @@ export declare const getFloridaySyncHealth: import("@tanstack/start-client-core"
171963
174666
  lead_time_days: number | null;
171964
174667
  min_order_quantity: number | null;
171965
174668
  notes: string | null;
174669
+ previous_price_cents: number | null;
174670
+ price_source: string;
174671
+ price_updated_at: string | null;
171966
174672
  product_id: string;
171967
174673
  purchase_price_cents: number | null;
171968
174674
  supplier_article_number: string | null;
@@ -171976,6 +174682,9 @@ export declare const getFloridaySyncHealth: import("@tanstack/start-client-core"
171976
174682
  lead_time_days?: number | null;
171977
174683
  min_order_quantity?: number | null;
171978
174684
  notes?: string | null;
174685
+ previous_price_cents?: number | null;
174686
+ price_source?: string;
174687
+ price_updated_at?: string | null;
171979
174688
  product_id: string;
171980
174689
  purchase_price_cents?: number | null;
171981
174690
  supplier_article_number?: string | null;
@@ -171989,6 +174698,9 @@ export declare const getFloridaySyncHealth: import("@tanstack/start-client-core"
171989
174698
  lead_time_days?: number | null;
171990
174699
  min_order_quantity?: number | null;
171991
174700
  notes?: string | null;
174701
+ previous_price_cents?: number | null;
174702
+ price_source?: string;
174703
+ price_updated_at?: string | null;
171992
174704
  product_id?: string;
171993
174705
  purchase_price_cents?: number | null;
171994
174706
  supplier_article_number?: string | null;
@@ -172519,9 +175231,13 @@ export declare const getFloridaySyncHealth: import("@tanstack/start-client-core"
172519
175231
  purchase_order_items: {
172520
175232
  Row: {
172521
175233
  article_number: string | null;
175234
+ cancel_reason: string | null;
175235
+ cancelled_at: string | null;
172522
175236
  created_at: string;
172523
175237
  delivery_date: string | null;
172524
175238
  id: string;
175239
+ incoming_booked: number;
175240
+ line_status: string;
172525
175241
  name: string;
172526
175242
  note: string | null;
172527
175243
  pot_size: string | null;
@@ -172529,6 +175245,8 @@ export declare const getFloridaySyncHealth: import("@tanstack/start-client-core"
172529
175245
  product_type: string;
172530
175246
  purchase_order_id: string;
172531
175247
  quantity: number;
175248
+ received_at: string | null;
175249
+ received_booked: number;
172532
175250
  supplier_id: string | null;
172533
175251
  supplier_product_id: string | null;
172534
175252
  unit_price_cents: number;
@@ -172536,9 +175254,13 @@ export declare const getFloridaySyncHealth: import("@tanstack/start-client-core"
172536
175254
  };
172537
175255
  Insert: {
172538
175256
  article_number?: string | null;
175257
+ cancel_reason?: string | null;
175258
+ cancelled_at?: string | null;
172539
175259
  created_at?: string;
172540
175260
  delivery_date?: string | null;
172541
175261
  id?: string;
175262
+ incoming_booked?: number;
175263
+ line_status?: string;
172542
175264
  name?: string;
172543
175265
  note?: string | null;
172544
175266
  pot_size?: string | null;
@@ -172546,6 +175268,8 @@ export declare const getFloridaySyncHealth: import("@tanstack/start-client-core"
172546
175268
  product_type?: string;
172547
175269
  purchase_order_id: string;
172548
175270
  quantity?: number;
175271
+ received_at?: string | null;
175272
+ received_booked?: number;
172549
175273
  supplier_id?: string | null;
172550
175274
  supplier_product_id?: string | null;
172551
175275
  unit_price_cents?: number;
@@ -172553,9 +175277,13 @@ export declare const getFloridaySyncHealth: import("@tanstack/start-client-core"
172553
175277
  };
172554
175278
  Update: {
172555
175279
  article_number?: string | null;
175280
+ cancel_reason?: string | null;
175281
+ cancelled_at?: string | null;
172556
175282
  created_at?: string;
172557
175283
  delivery_date?: string | null;
172558
175284
  id?: string;
175285
+ incoming_booked?: number;
175286
+ line_status?: string;
172559
175287
  name?: string;
172560
175288
  note?: string | null;
172561
175289
  pot_size?: string | null;
@@ -172563,6 +175291,8 @@ export declare const getFloridaySyncHealth: import("@tanstack/start-client-core"
172563
175291
  product_type?: string;
172564
175292
  purchase_order_id?: string;
172565
175293
  quantity?: number;
175294
+ received_at?: string | null;
175295
+ received_booked?: number;
172566
175296
  supplier_id?: string | null;
172567
175297
  supplier_product_id?: string | null;
172568
175298
  unit_price_cents?: number;
@@ -172666,6 +175396,153 @@ export declare const getFloridaySyncHealth: import("@tanstack/start-client-core"
172666
175396
  referencedColumns: ["id"];
172667
175397
  }];
172668
175398
  };
175399
+ purchase_request_events: {
175400
+ Row: {
175401
+ created_at: string;
175402
+ details: import("../integrations/supabase/types").Json | null;
175403
+ event_type: string;
175404
+ id: string;
175405
+ request_id: string;
175406
+ };
175407
+ Insert: {
175408
+ created_at?: string;
175409
+ details?: import("../integrations/supabase/types").Json | null;
175410
+ event_type: string;
175411
+ id?: string;
175412
+ request_id: string;
175413
+ };
175414
+ Update: {
175415
+ created_at?: string;
175416
+ details?: import("../integrations/supabase/types").Json | null;
175417
+ event_type?: string;
175418
+ id?: string;
175419
+ request_id?: string;
175420
+ };
175421
+ Relationships: [{
175422
+ foreignKeyName: "purchase_request_events_request_id_fkey";
175423
+ columns: ["request_id"];
175424
+ isOneToOne: false;
175425
+ referencedRelation: "purchase_requests";
175426
+ referencedColumns: ["id"];
175427
+ }];
175428
+ };
175429
+ purchase_request_responses: {
175430
+ Row: {
175431
+ confirmed_date: string | null;
175432
+ confirmed_price_cents: number | null;
175433
+ confirmed_quantity: number;
175434
+ created_at: string;
175435
+ id: string;
175436
+ not_available: boolean;
175437
+ note: string | null;
175438
+ purchase_order_item_id: string;
175439
+ request_id: string;
175440
+ updated_at: string;
175441
+ };
175442
+ Insert: {
175443
+ confirmed_date?: string | null;
175444
+ confirmed_price_cents?: number | null;
175445
+ confirmed_quantity?: number;
175446
+ created_at?: string;
175447
+ id?: string;
175448
+ not_available?: boolean;
175449
+ note?: string | null;
175450
+ purchase_order_item_id: string;
175451
+ request_id: string;
175452
+ updated_at?: string;
175453
+ };
175454
+ Update: {
175455
+ confirmed_date?: string | null;
175456
+ confirmed_price_cents?: number | null;
175457
+ confirmed_quantity?: number;
175458
+ created_at?: string;
175459
+ id?: string;
175460
+ not_available?: boolean;
175461
+ note?: string | null;
175462
+ purchase_order_item_id?: string;
175463
+ request_id?: string;
175464
+ updated_at?: string;
175465
+ };
175466
+ Relationships: [{
175467
+ foreignKeyName: "purchase_request_responses_purchase_order_item_id_fkey";
175468
+ columns: ["purchase_order_item_id"];
175469
+ isOneToOne: false;
175470
+ referencedRelation: "purchase_order_items";
175471
+ referencedColumns: ["id"];
175472
+ }, {
175473
+ foreignKeyName: "purchase_request_responses_request_id_fkey";
175474
+ columns: ["request_id"];
175475
+ isOneToOne: false;
175476
+ referencedRelation: "purchase_requests";
175477
+ referencedColumns: ["id"];
175478
+ }];
175479
+ };
175480
+ purchase_requests: {
175481
+ Row: {
175482
+ created_at: string;
175483
+ expires_at: string;
175484
+ first_viewed_at: string | null;
175485
+ id: string;
175486
+ processed_at: string | null;
175487
+ purchase_order_id: string;
175488
+ responded_at: string | null;
175489
+ sent_at: string;
175490
+ status: string;
175491
+ supplier_id: string | null;
175492
+ supplier_name: string;
175493
+ supplier_note: string | null;
175494
+ to_address: string | null;
175495
+ token_hash: string;
175496
+ updated_at: string;
175497
+ };
175498
+ Insert: {
175499
+ created_at?: string;
175500
+ expires_at?: string;
175501
+ first_viewed_at?: string | null;
175502
+ id?: string;
175503
+ processed_at?: string | null;
175504
+ purchase_order_id: string;
175505
+ responded_at?: string | null;
175506
+ sent_at?: string;
175507
+ status?: string;
175508
+ supplier_id?: string | null;
175509
+ supplier_name?: string;
175510
+ supplier_note?: string | null;
175511
+ to_address?: string | null;
175512
+ token_hash: string;
175513
+ updated_at?: string;
175514
+ };
175515
+ Update: {
175516
+ created_at?: string;
175517
+ expires_at?: string;
175518
+ first_viewed_at?: string | null;
175519
+ id?: string;
175520
+ processed_at?: string | null;
175521
+ purchase_order_id?: string;
175522
+ responded_at?: string | null;
175523
+ sent_at?: string;
175524
+ status?: string;
175525
+ supplier_id?: string | null;
175526
+ supplier_name?: string;
175527
+ supplier_note?: string | null;
175528
+ to_address?: string | null;
175529
+ token_hash?: string;
175530
+ updated_at?: string;
175531
+ };
175532
+ Relationships: [{
175533
+ foreignKeyName: "purchase_requests_purchase_order_id_fkey";
175534
+ columns: ["purchase_order_id"];
175535
+ isOneToOne: false;
175536
+ referencedRelation: "purchase_orders";
175537
+ referencedColumns: ["id"];
175538
+ }, {
175539
+ foreignKeyName: "purchase_requests_supplier_id_fkey";
175540
+ columns: ["supplier_id"];
175541
+ isOneToOne: false;
175542
+ referencedRelation: "suppliers";
175543
+ referencedColumns: ["id"];
175544
+ }];
175545
+ };
172669
175546
  reception_notifications: {
172670
175547
  Row: {
172671
175548
  booking_id: string | null;
@@ -177091,7 +179968,7 @@ export declare const getFloridaySyncHealth: import("@tanstack/start-client-core"
177091
179968
  created_at: string;
177092
179969
  default_quantity: number;
177093
179970
  description: string | null;
177094
- duration_minutes: number | null;
179971
+ duration_minutes: number;
177095
179972
  id: string;
177096
179973
  mandaat_type: string | null;
177097
179974
  name: string;
@@ -177108,7 +179985,7 @@ export declare const getFloridaySyncHealth: import("@tanstack/start-client-core"
177108
179985
  created_at?: string;
177109
179986
  default_quantity?: number;
177110
179987
  description?: string | null;
177111
- duration_minutes?: number | null;
179988
+ duration_minutes?: number;
177112
179989
  id?: string;
177113
179990
  mandaat_type?: string | null;
177114
179991
  name: string;
@@ -177125,7 +180002,7 @@ export declare const getFloridaySyncHealth: import("@tanstack/start-client-core"
177125
180002
  created_at?: string;
177126
180003
  default_quantity?: number;
177127
180004
  description?: string | null;
177128
- duration_minutes?: number | null;
180005
+ duration_minutes?: number;
177129
180006
  id?: string;
177130
180007
  mandaat_type?: string | null;
177131
180008
  name?: string;
@@ -180121,6 +182998,31 @@ export declare const getFloridaySyncHealth: import("@tanstack/start-client-core"
180121
182998
  };
180122
182999
  Returns: import("../integrations/supabase/types").Json;
180123
183000
  };
183001
+ inkoop_cancel_line: {
183002
+ Args: {
183003
+ _item_id: string;
183004
+ _reason: string;
183005
+ };
183006
+ Returns: string;
183007
+ };
183008
+ inkoop_get_supplier_request: {
183009
+ Args: {
183010
+ _token: string;
183011
+ };
183012
+ Returns: import("../integrations/supabase/types").Json;
183013
+ };
183014
+ inkoop_hash_token: {
183015
+ Args: {
183016
+ _token: string;
183017
+ };
183018
+ Returns: string;
183019
+ };
183020
+ inkoop_html_escape: {
183021
+ Args: {
183022
+ _t: string;
183023
+ };
183024
+ Returns: string;
183025
+ };
180124
183026
  inkoop_list_artikelen: {
180125
183027
  Args: never;
180126
183028
  Returns: {
@@ -180145,9 +183047,17 @@ export declare const getFloridaySyncHealth: import("@tanstack/start-client-core"
180145
183047
  Args: never;
180146
183048
  Returns: string;
180147
183049
  };
183050
+ inkoop_process_request: {
183051
+ Args: {
183052
+ _request_id: string;
183053
+ };
183054
+ Returns: undefined;
183055
+ };
180148
183056
  inkoop_send_order: {
180149
183057
  Args: {
183058
+ _base_url?: string;
180150
183059
  _order_id: string;
183060
+ _resend?: boolean;
180151
183061
  };
180152
183062
  Returns: {
180153
183063
  outbox_id: string;
@@ -180162,6 +183072,26 @@ export declare const getFloridaySyncHealth: import("@tanstack/start-client-core"
180162
183072
  };
180163
183073
  Returns: undefined;
180164
183074
  };
183075
+ inkoop_stock_key: {
183076
+ Args: {
183077
+ p_product_id: string;
183078
+ };
183079
+ Returns: string;
183080
+ };
183081
+ inkoop_submit_supplier_response: {
183082
+ Args: {
183083
+ _lines: import("../integrations/supabase/types").Json;
183084
+ _note?: string;
183085
+ _token: string;
183086
+ };
183087
+ Returns: import("../integrations/supabase/types").Json;
183088
+ };
183089
+ inkoop_sync_item_stock: {
183090
+ Args: {
183091
+ p_item_id: string;
183092
+ };
183093
+ Returns: undefined;
183094
+ };
180165
183095
  instructie_get: {
180166
183096
  Args: {
180167
183097
  _sleutel: string;
@@ -180322,6 +183252,27 @@ export declare const getFloridaySyncHealth: import("@tanstack/start-client-core"
180322
183252
  };
180323
183253
  Returns: boolean;
180324
183254
  };
183255
+ layout_print_document: {
183256
+ Args: {
183257
+ _documentnaam: string;
183258
+ _documenttype: string;
183259
+ _herkomst?: string;
183260
+ _idempotentie_sleutel?: string;
183261
+ _is_herprint?: boolean;
183262
+ _kopieen?: number;
183263
+ _layout_id?: string;
183264
+ _payload?: import("../integrations/supabase/types").Json;
183265
+ _pdf_base64?: string;
183266
+ _pdf_url?: string;
183267
+ _print_plek_id?: string;
183268
+ _werkplek?: string;
183269
+ };
183270
+ Returns: {
183271
+ bestaand: boolean;
183272
+ job_id: string;
183273
+ printer_id: string;
183274
+ }[];
183275
+ };
180325
183276
  list_medewerkers: {
180326
183277
  Args: never;
180327
183278
  Returns: {
@@ -180599,6 +183550,12 @@ export declare const getFloridaySyncHealth: import("@tanstack/start-client-core"
180599
183550
  };
180600
183551
  Returns: number;
180601
183552
  };
183553
+ logistics_cart_barcode_opschonen: {
183554
+ Args: {
183555
+ p_portie?: number;
183556
+ };
183557
+ Returns: import("../integrations/supabase/types").Json;
183558
+ };
180602
183559
  logistics_cart_barcode_value: {
180603
183560
  Args: {
180604
183561
  _cart_id: string;
@@ -181018,6 +183975,13 @@ export declare const getFloridaySyncHealth: import("@tanstack/start-client-core"
181018
183975
  };
181019
183976
  Returns: import("../integrations/supabase/types").Json;
181020
183977
  };
183978
+ logistics_control_scan_print_own: {
183979
+ Args: {
183980
+ p_is_herprint?: boolean;
183981
+ p_scan_id: string;
183982
+ };
183983
+ Returns: import("../integrations/supabase/types").Json;
183984
+ };
181021
183985
  logistics_control_scan_retry: {
181022
183986
  Args: {
181023
183987
  _id: string;
@@ -181922,6 +184886,21 @@ export declare const getFloridaySyncHealth: import("@tanstack/start-client-core"
181922
184886
  };
181923
184887
  Returns: import("../integrations/supabase/types").Json;
181924
184888
  };
184889
+ logistics_print_via_layout: {
184890
+ Args: {
184891
+ _documentnaam: string;
184892
+ _documenttype: string;
184893
+ _herkomst: string;
184894
+ _idempotentie_sleutel: string;
184895
+ _is_herprint: boolean;
184896
+ _layout_id: string;
184897
+ _payload: import("../integrations/supabase/types").Json;
184898
+ _pdf_base64: string;
184899
+ _pdf_url: string;
184900
+ _print_plek_id: string;
184901
+ };
184902
+ Returns: import("../integrations/supabase/types").Json;
184903
+ };
181925
184904
  logistics_prune_buffer_member_queue: {
181926
184905
  Args: never;
181927
184906
  Returns: number;
@@ -182208,6 +185187,13 @@ export declare const getFloridaySyncHealth: import("@tanstack/start-client-core"
182208
185187
  };
182209
185188
  Returns: string;
182210
185189
  };
185190
+ logistics_shipping_note_status: {
185191
+ Args: {
185192
+ p_cart_id?: string;
185193
+ p_slip_job_id?: string;
185194
+ };
185195
+ Returns: import("../integrations/supabase/types").Json;
185196
+ };
182211
185197
  logistics_shipping_notes_wake_all: {
182212
185198
  Args: never;
182213
185199
  Returns: import("../integrations/supabase/types").Json;
@@ -182270,6 +185256,12 @@ export declare const getFloridaySyncHealth: import("@tanstack/start-client-core"
182270
185256
  };
182271
185257
  Returns: undefined;
182272
185258
  };
185259
+ logistics_slip_note_retry: {
185260
+ Args: {
185261
+ _id: string;
185262
+ };
185263
+ Returns: import("../integrations/supabase/types").Json;
185264
+ };
182273
185265
  logistics_sticker_follows_slip: {
182274
185266
  Args: never;
182275
185267
  Returns: boolean;
@@ -183014,6 +186006,10 @@ export declare const getFloridaySyncHealth: import("@tanstack/start-client-core"
183014
186006
  };
183015
186007
  Returns: string;
183016
186008
  };
186009
+ pick_is_reference_admin: {
186010
+ Args: never;
186011
+ Returns: boolean;
186012
+ };
183017
186013
  pick_mark_printed: {
183018
186014
  Args: {
183019
186015
  _queue_item_id: string;
@@ -183437,6 +186433,12 @@ export declare const getFloridaySyncHealth: import("@tanstack/start-client-core"
183437
186433
  };
183438
186434
  Returns: import("../integrations/supabase/types").Json;
183439
186435
  };
186436
+ pick_verify_rows: {
186437
+ Args: {
186438
+ _rows: import("../integrations/supabase/types").Json;
186439
+ };
186440
+ Returns: import("../integrations/supabase/types").Json;
186441
+ };
183440
186442
  pickstation_get_orders_raw: {
183441
186443
  Args: never;
183442
186444
  Returns: import("../integrations/supabase/types").Json;
@@ -183617,6 +186619,12 @@ export declare const getFloridaySyncHealth: import("@tanstack/start-client-core"
183617
186619
  };
183618
186620
  Returns: import("../integrations/supabase/types").Json;
183619
186621
  };
186622
+ quote_create_from_scratch: {
186623
+ Args: {
186624
+ _payload: import("../integrations/supabase/types").Json;
186625
+ };
186626
+ Returns: import("../integrations/supabase/types").Json;
186627
+ };
183620
186628
  quote_create_from_source: {
183621
186629
  Args: {
183622
186630
  _payload?: import("../integrations/supabase/types").Json;
@@ -183667,6 +186675,13 @@ export declare const getFloridaySyncHealth: import("@tanstack/start-client-core"
183667
186675
  };
183668
186676
  Returns: string;
183669
186677
  };
186678
+ quote_sync_work_order: {
186679
+ Args: {
186680
+ _monteur_instructies?: string;
186681
+ _offerte_id: string;
186682
+ };
186683
+ Returns: boolean;
186684
+ };
183670
186685
  recompute_all_reserved_stock: {
183671
186686
  Args: never;
183672
186687
  Returns: undefined;
@@ -183887,6 +186902,13 @@ export declare const getFloridaySyncHealth: import("@tanstack/start-client-core"
183887
186902
  };
183888
186903
  Returns: import("../integrations/supabase/types").Json;
183889
186904
  };
186905
+ scan_controleer_pincode: {
186906
+ Args: {
186907
+ p_pin: string;
186908
+ p_scanner_id: string;
186909
+ };
186910
+ Returns: boolean;
186911
+ };
183890
186912
  scan_dashboard_stats: {
183891
186913
  Args: {
183892
186914
  p_dagen?: number;
@@ -183906,6 +186928,12 @@ export declare const getFloridaySyncHealth: import("@tanstack/start-client-core"
183906
186928
  };
183907
186929
  Returns: import("../integrations/supabase/types").Json;
183908
186930
  };
186931
+ scan_heeft_pincode: {
186932
+ Args: {
186933
+ p_scanner_id: string;
186934
+ };
186935
+ Returns: boolean;
186936
+ };
183909
186937
  scan_kar_compleet: {
183910
186938
  Args: {
183911
186939
  p_allow_reprint?: boolean;
@@ -183923,6 +186951,7 @@ export declare const getFloridaySyncHealth: import("@tanstack/start-client-core"
183923
186951
  Args: {
183924
186952
  p_code: string;
183925
186953
  p_latency_ms?: number;
186954
+ p_medewerker?: string;
183926
186955
  p_message?: string;
183927
186956
  p_result: string;
183928
186957
  p_scanner_key?: string;
@@ -183995,6 +187024,22 @@ export declare const getFloridaySyncHealth: import("@tanstack/start-client-core"
183995
187024
  };
183996
187025
  Returns: undefined;
183997
187026
  };
187027
+ scan_scanner_info: {
187028
+ Args: {
187029
+ p_slug: string;
187030
+ };
187031
+ Returns: {
187032
+ actief: boolean;
187033
+ heeft_pincode: boolean;
187034
+ id: string;
187035
+ naam: string;
187036
+ omschrijving: string;
187037
+ printer_id: string;
187038
+ type: string;
187039
+ vereist_medewerker: boolean;
187040
+ werkplek: string;
187041
+ }[];
187042
+ };
183998
187043
  scan_sessie_annuleren: {
183999
187044
  Args: {
184000
187045
  p_sessie_id: string;
@@ -184957,6 +188002,21 @@ export declare const getFloridaySyncHealth: import("@tanstack/start-client-core"
184957
188002
  };
184958
188003
  Returns: import("../integrations/supabase/types").Json;
184959
188004
  };
188005
+ wo_list_colleague_planning: {
188006
+ Args: {
188007
+ _from: string;
188008
+ _monteur_id: string;
188009
+ _to: string;
188010
+ };
188011
+ Returns: {
188012
+ end_at: string;
188013
+ id: string;
188014
+ role: string;
188015
+ start_at: string;
188016
+ status: string;
188017
+ werkbon_id: string;
188018
+ }[];
188019
+ };
184960
188020
  wo_list_offerte_requests: {
184961
188021
  Args: {
184962
188022
  _status?: string;