@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
@@ -779,6 +779,27 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
779
779
  };
780
780
  Relationships: [];
781
781
  };
782
+ artikelen_instellingen: {
783
+ Row: {
784
+ created_at: string;
785
+ id: number;
786
+ marge_procent: number;
787
+ updated_at: string;
788
+ };
789
+ Insert: {
790
+ created_at?: string;
791
+ id?: number;
792
+ marge_procent?: number;
793
+ updated_at?: string;
794
+ };
795
+ Update: {
796
+ created_at?: string;
797
+ id?: number;
798
+ marge_procent?: number;
799
+ updated_at?: string;
800
+ };
801
+ Relationships: [];
802
+ };
782
803
  artikelen_veldconfig: {
783
804
  Row: {
784
805
  bron_pad: string;
@@ -10454,6 +10475,30 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
10454
10475
  };
10455
10476
  Relationships: [];
10456
10477
  };
10478
+ logistics_cart_barcode_archief: {
10479
+ Row: {
10480
+ barcode: string;
10481
+ cart_id: string;
10482
+ created_at: string | null;
10483
+ gearchiveerd_op: string;
10484
+ order_id: string | null;
10485
+ };
10486
+ Insert: {
10487
+ barcode: string;
10488
+ cart_id: string;
10489
+ created_at?: string | null;
10490
+ gearchiveerd_op?: string;
10491
+ order_id?: string | null;
10492
+ };
10493
+ Update: {
10494
+ barcode?: string;
10495
+ cart_id?: string;
10496
+ created_at?: string | null;
10497
+ gearchiveerd_op?: string;
10498
+ order_id?: string | null;
10499
+ };
10500
+ Relationships: [];
10501
+ };
10457
10502
  logistics_control_scan: {
10458
10503
  Row: {
10459
10504
  approved_at: string | null;
@@ -16107,18 +16152,24 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
16107
16152
  Row: {
16108
16153
  id: boolean;
16109
16154
  last_cleanup_at: string | null;
16155
+ last_error: string | null;
16156
+ last_error_at: string | null;
16110
16157
  last_sync_at: string | null;
16111
16158
  updated_at: string;
16112
16159
  };
16113
16160
  Insert: {
16114
16161
  id?: boolean;
16115
16162
  last_cleanup_at?: string | null;
16163
+ last_error?: string | null;
16164
+ last_error_at?: string | null;
16116
16165
  last_sync_at?: string | null;
16117
16166
  updated_at?: string;
16118
16167
  };
16119
16168
  Update: {
16120
16169
  id?: boolean;
16121
16170
  last_cleanup_at?: string | null;
16171
+ last_error?: string | null;
16172
+ last_error_at?: string | null;
16122
16173
  last_sync_at?: string | null;
16123
16174
  updated_at?: string;
16124
16175
  };
@@ -16244,6 +16295,54 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
16244
16295
  };
16245
16296
  Relationships: [];
16246
16297
  };
16298
+ planning_confirmation_log: {
16299
+ Row: {
16300
+ created_at: string;
16301
+ end_at: string;
16302
+ id: string;
16303
+ outbox_id: string | null;
16304
+ planning_item_id: string;
16305
+ reason: string | null;
16306
+ recipient: string | null;
16307
+ start_at: string;
16308
+ status: string;
16309
+ };
16310
+ Insert: {
16311
+ created_at?: string;
16312
+ end_at: string;
16313
+ id?: string;
16314
+ outbox_id?: string | null;
16315
+ planning_item_id: string;
16316
+ reason?: string | null;
16317
+ recipient?: string | null;
16318
+ start_at: string;
16319
+ status: string;
16320
+ };
16321
+ Update: {
16322
+ created_at?: string;
16323
+ end_at?: string;
16324
+ id?: string;
16325
+ outbox_id?: string | null;
16326
+ planning_item_id?: string;
16327
+ reason?: string | null;
16328
+ recipient?: string | null;
16329
+ start_at?: string;
16330
+ status?: string;
16331
+ };
16332
+ Relationships: [{
16333
+ foreignKeyName: "planning_confirmation_log_planning_item_id_fkey";
16334
+ columns: ["planning_item_id"];
16335
+ isOneToOne: false;
16336
+ referencedRelation: "planning_items";
16337
+ referencedColumns: ["id"];
16338
+ }, {
16339
+ foreignKeyName: "planning_confirmation_log_planning_item_id_fkey";
16340
+ columns: ["planning_item_id"];
16341
+ isOneToOne: false;
16342
+ referencedRelation: "planning_overview";
16343
+ referencedColumns: ["id"];
16344
+ }];
16345
+ };
16247
16346
  planning_item_assistants: {
16248
16347
  Row: {
16249
16348
  created_at: string;
@@ -16328,6 +16427,60 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
16328
16427
  referencedColumns: ["id"];
16329
16428
  }];
16330
16429
  };
16430
+ planning_mail_settings: {
16431
+ Row: {
16432
+ body_template: string;
16433
+ cc: string[];
16434
+ connection_id: string | null;
16435
+ created_at: string;
16436
+ enabled: boolean;
16437
+ id: boolean;
16438
+ reply_to: string | null;
16439
+ subject_template: string;
16440
+ timezone: string;
16441
+ updated_at: string;
16442
+ updated_by: string | null;
16443
+ };
16444
+ Insert: {
16445
+ body_template?: string;
16446
+ cc?: string[];
16447
+ connection_id?: string | null;
16448
+ created_at?: string;
16449
+ enabled?: boolean;
16450
+ id?: boolean;
16451
+ reply_to?: string | null;
16452
+ subject_template?: string;
16453
+ timezone?: string;
16454
+ updated_at?: string;
16455
+ updated_by?: string | null;
16456
+ };
16457
+ Update: {
16458
+ body_template?: string;
16459
+ cc?: string[];
16460
+ connection_id?: string | null;
16461
+ created_at?: string;
16462
+ enabled?: boolean;
16463
+ id?: boolean;
16464
+ reply_to?: string | null;
16465
+ subject_template?: string;
16466
+ timezone?: string;
16467
+ updated_at?: string;
16468
+ updated_by?: string | null;
16469
+ };
16470
+ Relationships: [{
16471
+ foreignKeyName: "planning_mail_settings_connection_id_fkey";
16472
+ columns: ["connection_id"];
16473
+ isOneToOne: false;
16474
+ referencedRelation: "email_auth_connections";
16475
+ referencedColumns: ["id"];
16476
+ }, {
16477
+ foreignKeyName: "planning_mail_settings_connection_id_fkey";
16478
+ columns: ["connection_id"];
16479
+ isOneToOne: false;
16480
+ referencedRelation: "email_auth_connections_safe";
16481
+ referencedColumns: ["id"];
16482
+ }];
16483
+ };
16331
16484
  planning_monteur_day_locations: {
16332
16485
  Row: {
16333
16486
  created_at: string;
@@ -17806,6 +17959,9 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
17806
17959
  lead_time_days: number | null;
17807
17960
  min_order_quantity: number | null;
17808
17961
  notes: string | null;
17962
+ previous_price_cents: number | null;
17963
+ price_source: string;
17964
+ price_updated_at: string | null;
17809
17965
  product_id: string;
17810
17966
  purchase_price_cents: number | null;
17811
17967
  supplier_article_number: string | null;
@@ -17819,6 +17975,9 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
17819
17975
  lead_time_days?: number | null;
17820
17976
  min_order_quantity?: number | null;
17821
17977
  notes?: string | null;
17978
+ previous_price_cents?: number | null;
17979
+ price_source?: string;
17980
+ price_updated_at?: string | null;
17822
17981
  product_id: string;
17823
17982
  purchase_price_cents?: number | null;
17824
17983
  supplier_article_number?: string | null;
@@ -17832,6 +17991,9 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
17832
17991
  lead_time_days?: number | null;
17833
17992
  min_order_quantity?: number | null;
17834
17993
  notes?: string | null;
17994
+ previous_price_cents?: number | null;
17995
+ price_source?: string;
17996
+ price_updated_at?: string | null;
17835
17997
  product_id?: string;
17836
17998
  purchase_price_cents?: number | null;
17837
17999
  supplier_article_number?: string | null;
@@ -18362,9 +18524,13 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
18362
18524
  purchase_order_items: {
18363
18525
  Row: {
18364
18526
  article_number: string | null;
18527
+ cancel_reason: string | null;
18528
+ cancelled_at: string | null;
18365
18529
  created_at: string;
18366
18530
  delivery_date: string | null;
18367
18531
  id: string;
18532
+ incoming_booked: number;
18533
+ line_status: string;
18368
18534
  name: string;
18369
18535
  note: string | null;
18370
18536
  pot_size: string | null;
@@ -18372,6 +18538,8 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
18372
18538
  product_type: string;
18373
18539
  purchase_order_id: string;
18374
18540
  quantity: number;
18541
+ received_at: string | null;
18542
+ received_booked: number;
18375
18543
  supplier_id: string | null;
18376
18544
  supplier_product_id: string | null;
18377
18545
  unit_price_cents: number;
@@ -18379,9 +18547,13 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
18379
18547
  };
18380
18548
  Insert: {
18381
18549
  article_number?: string | null;
18550
+ cancel_reason?: string | null;
18551
+ cancelled_at?: string | null;
18382
18552
  created_at?: string;
18383
18553
  delivery_date?: string | null;
18384
18554
  id?: string;
18555
+ incoming_booked?: number;
18556
+ line_status?: string;
18385
18557
  name?: string;
18386
18558
  note?: string | null;
18387
18559
  pot_size?: string | null;
@@ -18389,6 +18561,8 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
18389
18561
  product_type?: string;
18390
18562
  purchase_order_id: string;
18391
18563
  quantity?: number;
18564
+ received_at?: string | null;
18565
+ received_booked?: number;
18392
18566
  supplier_id?: string | null;
18393
18567
  supplier_product_id?: string | null;
18394
18568
  unit_price_cents?: number;
@@ -18396,9 +18570,13 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
18396
18570
  };
18397
18571
  Update: {
18398
18572
  article_number?: string | null;
18573
+ cancel_reason?: string | null;
18574
+ cancelled_at?: string | null;
18399
18575
  created_at?: string;
18400
18576
  delivery_date?: string | null;
18401
18577
  id?: string;
18578
+ incoming_booked?: number;
18579
+ line_status?: string;
18402
18580
  name?: string;
18403
18581
  note?: string | null;
18404
18582
  pot_size?: string | null;
@@ -18406,6 +18584,8 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
18406
18584
  product_type?: string;
18407
18585
  purchase_order_id?: string;
18408
18586
  quantity?: number;
18587
+ received_at?: string | null;
18588
+ received_booked?: number;
18409
18589
  supplier_id?: string | null;
18410
18590
  supplier_product_id?: string | null;
18411
18591
  unit_price_cents?: number;
@@ -18509,6 +18689,153 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
18509
18689
  referencedColumns: ["id"];
18510
18690
  }];
18511
18691
  };
18692
+ purchase_request_events: {
18693
+ Row: {
18694
+ created_at: string;
18695
+ details: import("../integrations/supabase/types").Json | null;
18696
+ event_type: string;
18697
+ id: string;
18698
+ request_id: string;
18699
+ };
18700
+ Insert: {
18701
+ created_at?: string;
18702
+ details?: import("../integrations/supabase/types").Json | null;
18703
+ event_type: string;
18704
+ id?: string;
18705
+ request_id: string;
18706
+ };
18707
+ Update: {
18708
+ created_at?: string;
18709
+ details?: import("../integrations/supabase/types").Json | null;
18710
+ event_type?: string;
18711
+ id?: string;
18712
+ request_id?: string;
18713
+ };
18714
+ Relationships: [{
18715
+ foreignKeyName: "purchase_request_events_request_id_fkey";
18716
+ columns: ["request_id"];
18717
+ isOneToOne: false;
18718
+ referencedRelation: "purchase_requests";
18719
+ referencedColumns: ["id"];
18720
+ }];
18721
+ };
18722
+ purchase_request_responses: {
18723
+ Row: {
18724
+ confirmed_date: string | null;
18725
+ confirmed_price_cents: number | null;
18726
+ confirmed_quantity: number;
18727
+ created_at: string;
18728
+ id: string;
18729
+ not_available: boolean;
18730
+ note: string | null;
18731
+ purchase_order_item_id: string;
18732
+ request_id: string;
18733
+ updated_at: string;
18734
+ };
18735
+ Insert: {
18736
+ confirmed_date?: string | null;
18737
+ confirmed_price_cents?: number | null;
18738
+ confirmed_quantity?: number;
18739
+ created_at?: string;
18740
+ id?: string;
18741
+ not_available?: boolean;
18742
+ note?: string | null;
18743
+ purchase_order_item_id: string;
18744
+ request_id: string;
18745
+ updated_at?: string;
18746
+ };
18747
+ Update: {
18748
+ confirmed_date?: string | null;
18749
+ confirmed_price_cents?: number | null;
18750
+ confirmed_quantity?: number;
18751
+ created_at?: string;
18752
+ id?: string;
18753
+ not_available?: boolean;
18754
+ note?: string | null;
18755
+ purchase_order_item_id?: string;
18756
+ request_id?: string;
18757
+ updated_at?: string;
18758
+ };
18759
+ Relationships: [{
18760
+ foreignKeyName: "purchase_request_responses_purchase_order_item_id_fkey";
18761
+ columns: ["purchase_order_item_id"];
18762
+ isOneToOne: false;
18763
+ referencedRelation: "purchase_order_items";
18764
+ referencedColumns: ["id"];
18765
+ }, {
18766
+ foreignKeyName: "purchase_request_responses_request_id_fkey";
18767
+ columns: ["request_id"];
18768
+ isOneToOne: false;
18769
+ referencedRelation: "purchase_requests";
18770
+ referencedColumns: ["id"];
18771
+ }];
18772
+ };
18773
+ purchase_requests: {
18774
+ Row: {
18775
+ created_at: string;
18776
+ expires_at: string;
18777
+ first_viewed_at: string | null;
18778
+ id: string;
18779
+ processed_at: string | null;
18780
+ purchase_order_id: string;
18781
+ responded_at: string | null;
18782
+ sent_at: string;
18783
+ status: string;
18784
+ supplier_id: string | null;
18785
+ supplier_name: string;
18786
+ supplier_note: string | null;
18787
+ to_address: string | null;
18788
+ token_hash: string;
18789
+ updated_at: string;
18790
+ };
18791
+ Insert: {
18792
+ created_at?: string;
18793
+ expires_at?: string;
18794
+ first_viewed_at?: string | null;
18795
+ id?: string;
18796
+ processed_at?: string | null;
18797
+ purchase_order_id: string;
18798
+ responded_at?: string | null;
18799
+ sent_at?: string;
18800
+ status?: string;
18801
+ supplier_id?: string | null;
18802
+ supplier_name?: string;
18803
+ supplier_note?: string | null;
18804
+ to_address?: string | null;
18805
+ token_hash: string;
18806
+ updated_at?: string;
18807
+ };
18808
+ Update: {
18809
+ created_at?: string;
18810
+ expires_at?: string;
18811
+ first_viewed_at?: string | null;
18812
+ id?: string;
18813
+ processed_at?: string | null;
18814
+ purchase_order_id?: string;
18815
+ responded_at?: string | null;
18816
+ sent_at?: string;
18817
+ status?: string;
18818
+ supplier_id?: string | null;
18819
+ supplier_name?: string;
18820
+ supplier_note?: string | null;
18821
+ to_address?: string | null;
18822
+ token_hash?: string;
18823
+ updated_at?: string;
18824
+ };
18825
+ Relationships: [{
18826
+ foreignKeyName: "purchase_requests_purchase_order_id_fkey";
18827
+ columns: ["purchase_order_id"];
18828
+ isOneToOne: false;
18829
+ referencedRelation: "purchase_orders";
18830
+ referencedColumns: ["id"];
18831
+ }, {
18832
+ foreignKeyName: "purchase_requests_supplier_id_fkey";
18833
+ columns: ["supplier_id"];
18834
+ isOneToOne: false;
18835
+ referencedRelation: "suppliers";
18836
+ referencedColumns: ["id"];
18837
+ }];
18838
+ };
18512
18839
  reception_notifications: {
18513
18840
  Row: {
18514
18841
  booking_id: string | null;
@@ -22934,7 +23261,7 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
22934
23261
  created_at: string;
22935
23262
  default_quantity: number;
22936
23263
  description: string | null;
22937
- duration_minutes: number | null;
23264
+ duration_minutes: number;
22938
23265
  id: string;
22939
23266
  mandaat_type: string | null;
22940
23267
  name: string;
@@ -22951,7 +23278,7 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
22951
23278
  created_at?: string;
22952
23279
  default_quantity?: number;
22953
23280
  description?: string | null;
22954
- duration_minutes?: number | null;
23281
+ duration_minutes?: number;
22955
23282
  id?: string;
22956
23283
  mandaat_type?: string | null;
22957
23284
  name: string;
@@ -22968,7 +23295,7 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
22968
23295
  created_at?: string;
22969
23296
  default_quantity?: number;
22970
23297
  description?: string | null;
22971
- duration_minutes?: number | null;
23298
+ duration_minutes?: number;
22972
23299
  id?: string;
22973
23300
  mandaat_type?: string | null;
22974
23301
  name?: string;
@@ -25964,6 +26291,31 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
25964
26291
  };
25965
26292
  Returns: import("../integrations/supabase/types").Json;
25966
26293
  };
26294
+ inkoop_cancel_line: {
26295
+ Args: {
26296
+ _item_id: string;
26297
+ _reason: string;
26298
+ };
26299
+ Returns: string;
26300
+ };
26301
+ inkoop_get_supplier_request: {
26302
+ Args: {
26303
+ _token: string;
26304
+ };
26305
+ Returns: import("../integrations/supabase/types").Json;
26306
+ };
26307
+ inkoop_hash_token: {
26308
+ Args: {
26309
+ _token: string;
26310
+ };
26311
+ Returns: string;
26312
+ };
26313
+ inkoop_html_escape: {
26314
+ Args: {
26315
+ _t: string;
26316
+ };
26317
+ Returns: string;
26318
+ };
25967
26319
  inkoop_list_artikelen: {
25968
26320
  Args: never;
25969
26321
  Returns: {
@@ -25988,9 +26340,17 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
25988
26340
  Args: never;
25989
26341
  Returns: string;
25990
26342
  };
26343
+ inkoop_process_request: {
26344
+ Args: {
26345
+ _request_id: string;
26346
+ };
26347
+ Returns: undefined;
26348
+ };
25991
26349
  inkoop_send_order: {
25992
26350
  Args: {
26351
+ _base_url?: string;
25993
26352
  _order_id: string;
26353
+ _resend?: boolean;
25994
26354
  };
25995
26355
  Returns: {
25996
26356
  outbox_id: string;
@@ -26005,6 +26365,26 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
26005
26365
  };
26006
26366
  Returns: undefined;
26007
26367
  };
26368
+ inkoop_stock_key: {
26369
+ Args: {
26370
+ p_product_id: string;
26371
+ };
26372
+ Returns: string;
26373
+ };
26374
+ inkoop_submit_supplier_response: {
26375
+ Args: {
26376
+ _lines: import("../integrations/supabase/types").Json;
26377
+ _note?: string;
26378
+ _token: string;
26379
+ };
26380
+ Returns: import("../integrations/supabase/types").Json;
26381
+ };
26382
+ inkoop_sync_item_stock: {
26383
+ Args: {
26384
+ p_item_id: string;
26385
+ };
26386
+ Returns: undefined;
26387
+ };
26008
26388
  instructie_get: {
26009
26389
  Args: {
26010
26390
  _sleutel: string;
@@ -26165,6 +26545,27 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
26165
26545
  };
26166
26546
  Returns: boolean;
26167
26547
  };
26548
+ layout_print_document: {
26549
+ Args: {
26550
+ _documentnaam: string;
26551
+ _documenttype: string;
26552
+ _herkomst?: string;
26553
+ _idempotentie_sleutel?: string;
26554
+ _is_herprint?: boolean;
26555
+ _kopieen?: number;
26556
+ _layout_id?: string;
26557
+ _payload?: import("../integrations/supabase/types").Json;
26558
+ _pdf_base64?: string;
26559
+ _pdf_url?: string;
26560
+ _print_plek_id?: string;
26561
+ _werkplek?: string;
26562
+ };
26563
+ Returns: {
26564
+ bestaand: boolean;
26565
+ job_id: string;
26566
+ printer_id: string;
26567
+ }[];
26568
+ };
26168
26569
  list_medewerkers: {
26169
26570
  Args: never;
26170
26571
  Returns: {
@@ -26442,6 +26843,12 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
26442
26843
  };
26443
26844
  Returns: number;
26444
26845
  };
26846
+ logistics_cart_barcode_opschonen: {
26847
+ Args: {
26848
+ p_portie?: number;
26849
+ };
26850
+ Returns: import("../integrations/supabase/types").Json;
26851
+ };
26445
26852
  logistics_cart_barcode_value: {
26446
26853
  Args: {
26447
26854
  _cart_id: string;
@@ -26861,6 +27268,13 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
26861
27268
  };
26862
27269
  Returns: import("../integrations/supabase/types").Json;
26863
27270
  };
27271
+ logistics_control_scan_print_own: {
27272
+ Args: {
27273
+ p_is_herprint?: boolean;
27274
+ p_scan_id: string;
27275
+ };
27276
+ Returns: import("../integrations/supabase/types").Json;
27277
+ };
26864
27278
  logistics_control_scan_retry: {
26865
27279
  Args: {
26866
27280
  _id: string;
@@ -27765,6 +28179,21 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
27765
28179
  };
27766
28180
  Returns: import("../integrations/supabase/types").Json;
27767
28181
  };
28182
+ logistics_print_via_layout: {
28183
+ Args: {
28184
+ _documentnaam: string;
28185
+ _documenttype: string;
28186
+ _herkomst: string;
28187
+ _idempotentie_sleutel: string;
28188
+ _is_herprint: boolean;
28189
+ _layout_id: string;
28190
+ _payload: import("../integrations/supabase/types").Json;
28191
+ _pdf_base64: string;
28192
+ _pdf_url: string;
28193
+ _print_plek_id: string;
28194
+ };
28195
+ Returns: import("../integrations/supabase/types").Json;
28196
+ };
27768
28197
  logistics_prune_buffer_member_queue: {
27769
28198
  Args: never;
27770
28199
  Returns: number;
@@ -28051,6 +28480,13 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
28051
28480
  };
28052
28481
  Returns: string;
28053
28482
  };
28483
+ logistics_shipping_note_status: {
28484
+ Args: {
28485
+ p_cart_id?: string;
28486
+ p_slip_job_id?: string;
28487
+ };
28488
+ Returns: import("../integrations/supabase/types").Json;
28489
+ };
28054
28490
  logistics_shipping_notes_wake_all: {
28055
28491
  Args: never;
28056
28492
  Returns: import("../integrations/supabase/types").Json;
@@ -28113,6 +28549,12 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
28113
28549
  };
28114
28550
  Returns: undefined;
28115
28551
  };
28552
+ logistics_slip_note_retry: {
28553
+ Args: {
28554
+ _id: string;
28555
+ };
28556
+ Returns: import("../integrations/supabase/types").Json;
28557
+ };
28116
28558
  logistics_sticker_follows_slip: {
28117
28559
  Args: never;
28118
28560
  Returns: boolean;
@@ -28857,6 +29299,10 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
28857
29299
  };
28858
29300
  Returns: string;
28859
29301
  };
29302
+ pick_is_reference_admin: {
29303
+ Args: never;
29304
+ Returns: boolean;
29305
+ };
28860
29306
  pick_mark_printed: {
28861
29307
  Args: {
28862
29308
  _queue_item_id: string;
@@ -29280,6 +29726,12 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
29280
29726
  };
29281
29727
  Returns: import("../integrations/supabase/types").Json;
29282
29728
  };
29729
+ pick_verify_rows: {
29730
+ Args: {
29731
+ _rows: import("../integrations/supabase/types").Json;
29732
+ };
29733
+ Returns: import("../integrations/supabase/types").Json;
29734
+ };
29283
29735
  pickstation_get_orders_raw: {
29284
29736
  Args: never;
29285
29737
  Returns: import("../integrations/supabase/types").Json;
@@ -29460,6 +29912,12 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
29460
29912
  };
29461
29913
  Returns: import("../integrations/supabase/types").Json;
29462
29914
  };
29915
+ quote_create_from_scratch: {
29916
+ Args: {
29917
+ _payload: import("../integrations/supabase/types").Json;
29918
+ };
29919
+ Returns: import("../integrations/supabase/types").Json;
29920
+ };
29463
29921
  quote_create_from_source: {
29464
29922
  Args: {
29465
29923
  _payload?: import("../integrations/supabase/types").Json;
@@ -29510,6 +29968,13 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
29510
29968
  };
29511
29969
  Returns: string;
29512
29970
  };
29971
+ quote_sync_work_order: {
29972
+ Args: {
29973
+ _monteur_instructies?: string;
29974
+ _offerte_id: string;
29975
+ };
29976
+ Returns: boolean;
29977
+ };
29513
29978
  recompute_all_reserved_stock: {
29514
29979
  Args: never;
29515
29980
  Returns: undefined;
@@ -29730,6 +30195,13 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
29730
30195
  };
29731
30196
  Returns: import("../integrations/supabase/types").Json;
29732
30197
  };
30198
+ scan_controleer_pincode: {
30199
+ Args: {
30200
+ p_pin: string;
30201
+ p_scanner_id: string;
30202
+ };
30203
+ Returns: boolean;
30204
+ };
29733
30205
  scan_dashboard_stats: {
29734
30206
  Args: {
29735
30207
  p_dagen?: number;
@@ -29749,6 +30221,12 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
29749
30221
  };
29750
30222
  Returns: import("../integrations/supabase/types").Json;
29751
30223
  };
30224
+ scan_heeft_pincode: {
30225
+ Args: {
30226
+ p_scanner_id: string;
30227
+ };
30228
+ Returns: boolean;
30229
+ };
29752
30230
  scan_kar_compleet: {
29753
30231
  Args: {
29754
30232
  p_allow_reprint?: boolean;
@@ -29766,6 +30244,7 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
29766
30244
  Args: {
29767
30245
  p_code: string;
29768
30246
  p_latency_ms?: number;
30247
+ p_medewerker?: string;
29769
30248
  p_message?: string;
29770
30249
  p_result: string;
29771
30250
  p_scanner_key?: string;
@@ -29838,6 +30317,22 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
29838
30317
  };
29839
30318
  Returns: undefined;
29840
30319
  };
30320
+ scan_scanner_info: {
30321
+ Args: {
30322
+ p_slug: string;
30323
+ };
30324
+ Returns: {
30325
+ actief: boolean;
30326
+ heeft_pincode: boolean;
30327
+ id: string;
30328
+ naam: string;
30329
+ omschrijving: string;
30330
+ printer_id: string;
30331
+ type: string;
30332
+ vereist_medewerker: boolean;
30333
+ werkplek: string;
30334
+ }[];
30335
+ };
29841
30336
  scan_sessie_annuleren: {
29842
30337
  Args: {
29843
30338
  p_sessie_id: string;
@@ -30800,6 +31295,21 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
30800
31295
  };
30801
31296
  Returns: import("../integrations/supabase/types").Json;
30802
31297
  };
31298
+ wo_list_colleague_planning: {
31299
+ Args: {
31300
+ _from: string;
31301
+ _monteur_id: string;
31302
+ _to: string;
31303
+ };
31304
+ Returns: {
31305
+ end_at: string;
31306
+ id: string;
31307
+ role: string;
31308
+ start_at: string;
31309
+ status: string;
31310
+ werkbon_id: string;
31311
+ }[];
31312
+ };
30803
31313
  wo_list_offerte_requests: {
30804
31314
  Args: {
30805
31315
  _status?: string;
@@ -31626,6 +32136,27 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
31626
32136
  };
31627
32137
  Relationships: [];
31628
32138
  };
32139
+ artikelen_instellingen: {
32140
+ Row: {
32141
+ created_at: string;
32142
+ id: number;
32143
+ marge_procent: number;
32144
+ updated_at: string;
32145
+ };
32146
+ Insert: {
32147
+ created_at?: string;
32148
+ id?: number;
32149
+ marge_procent?: number;
32150
+ updated_at?: string;
32151
+ };
32152
+ Update: {
32153
+ created_at?: string;
32154
+ id?: number;
32155
+ marge_procent?: number;
32156
+ updated_at?: string;
32157
+ };
32158
+ Relationships: [];
32159
+ };
31629
32160
  artikelen_veldconfig: {
31630
32161
  Row: {
31631
32162
  bron_pad: string;
@@ -41301,6 +41832,30 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
41301
41832
  };
41302
41833
  Relationships: [];
41303
41834
  };
41835
+ logistics_cart_barcode_archief: {
41836
+ Row: {
41837
+ barcode: string;
41838
+ cart_id: string;
41839
+ created_at: string | null;
41840
+ gearchiveerd_op: string;
41841
+ order_id: string | null;
41842
+ };
41843
+ Insert: {
41844
+ barcode: string;
41845
+ cart_id: string;
41846
+ created_at?: string | null;
41847
+ gearchiveerd_op?: string;
41848
+ order_id?: string | null;
41849
+ };
41850
+ Update: {
41851
+ barcode?: string;
41852
+ cart_id?: string;
41853
+ created_at?: string | null;
41854
+ gearchiveerd_op?: string;
41855
+ order_id?: string | null;
41856
+ };
41857
+ Relationships: [];
41858
+ };
41304
41859
  logistics_control_scan: {
41305
41860
  Row: {
41306
41861
  approved_at: string | null;
@@ -46954,18 +47509,24 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
46954
47509
  Row: {
46955
47510
  id: boolean;
46956
47511
  last_cleanup_at: string | null;
47512
+ last_error: string | null;
47513
+ last_error_at: string | null;
46957
47514
  last_sync_at: string | null;
46958
47515
  updated_at: string;
46959
47516
  };
46960
47517
  Insert: {
46961
47518
  id?: boolean;
46962
47519
  last_cleanup_at?: string | null;
47520
+ last_error?: string | null;
47521
+ last_error_at?: string | null;
46963
47522
  last_sync_at?: string | null;
46964
47523
  updated_at?: string;
46965
47524
  };
46966
47525
  Update: {
46967
47526
  id?: boolean;
46968
47527
  last_cleanup_at?: string | null;
47528
+ last_error?: string | null;
47529
+ last_error_at?: string | null;
46969
47530
  last_sync_at?: string | null;
46970
47531
  updated_at?: string;
46971
47532
  };
@@ -47091,6 +47652,54 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
47091
47652
  };
47092
47653
  Relationships: [];
47093
47654
  };
47655
+ planning_confirmation_log: {
47656
+ Row: {
47657
+ created_at: string;
47658
+ end_at: string;
47659
+ id: string;
47660
+ outbox_id: string | null;
47661
+ planning_item_id: string;
47662
+ reason: string | null;
47663
+ recipient: string | null;
47664
+ start_at: string;
47665
+ status: string;
47666
+ };
47667
+ Insert: {
47668
+ created_at?: string;
47669
+ end_at: string;
47670
+ id?: string;
47671
+ outbox_id?: string | null;
47672
+ planning_item_id: string;
47673
+ reason?: string | null;
47674
+ recipient?: string | null;
47675
+ start_at: string;
47676
+ status: string;
47677
+ };
47678
+ Update: {
47679
+ created_at?: string;
47680
+ end_at?: string;
47681
+ id?: string;
47682
+ outbox_id?: string | null;
47683
+ planning_item_id?: string;
47684
+ reason?: string | null;
47685
+ recipient?: string | null;
47686
+ start_at?: string;
47687
+ status?: string;
47688
+ };
47689
+ Relationships: [{
47690
+ foreignKeyName: "planning_confirmation_log_planning_item_id_fkey";
47691
+ columns: ["planning_item_id"];
47692
+ isOneToOne: false;
47693
+ referencedRelation: "planning_items";
47694
+ referencedColumns: ["id"];
47695
+ }, {
47696
+ foreignKeyName: "planning_confirmation_log_planning_item_id_fkey";
47697
+ columns: ["planning_item_id"];
47698
+ isOneToOne: false;
47699
+ referencedRelation: "planning_overview";
47700
+ referencedColumns: ["id"];
47701
+ }];
47702
+ };
47094
47703
  planning_item_assistants: {
47095
47704
  Row: {
47096
47705
  created_at: string;
@@ -47175,6 +47784,60 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
47175
47784
  referencedColumns: ["id"];
47176
47785
  }];
47177
47786
  };
47787
+ planning_mail_settings: {
47788
+ Row: {
47789
+ body_template: string;
47790
+ cc: string[];
47791
+ connection_id: string | null;
47792
+ created_at: string;
47793
+ enabled: boolean;
47794
+ id: boolean;
47795
+ reply_to: string | null;
47796
+ subject_template: string;
47797
+ timezone: string;
47798
+ updated_at: string;
47799
+ updated_by: string | null;
47800
+ };
47801
+ Insert: {
47802
+ body_template?: string;
47803
+ cc?: string[];
47804
+ connection_id?: string | null;
47805
+ created_at?: string;
47806
+ enabled?: boolean;
47807
+ id?: boolean;
47808
+ reply_to?: string | null;
47809
+ subject_template?: string;
47810
+ timezone?: string;
47811
+ updated_at?: string;
47812
+ updated_by?: string | null;
47813
+ };
47814
+ Update: {
47815
+ body_template?: string;
47816
+ cc?: string[];
47817
+ connection_id?: string | null;
47818
+ created_at?: string;
47819
+ enabled?: boolean;
47820
+ id?: boolean;
47821
+ reply_to?: string | null;
47822
+ subject_template?: string;
47823
+ timezone?: string;
47824
+ updated_at?: string;
47825
+ updated_by?: string | null;
47826
+ };
47827
+ Relationships: [{
47828
+ foreignKeyName: "planning_mail_settings_connection_id_fkey";
47829
+ columns: ["connection_id"];
47830
+ isOneToOne: false;
47831
+ referencedRelation: "email_auth_connections";
47832
+ referencedColumns: ["id"];
47833
+ }, {
47834
+ foreignKeyName: "planning_mail_settings_connection_id_fkey";
47835
+ columns: ["connection_id"];
47836
+ isOneToOne: false;
47837
+ referencedRelation: "email_auth_connections_safe";
47838
+ referencedColumns: ["id"];
47839
+ }];
47840
+ };
47178
47841
  planning_monteur_day_locations: {
47179
47842
  Row: {
47180
47843
  created_at: string;
@@ -48653,6 +49316,9 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
48653
49316
  lead_time_days: number | null;
48654
49317
  min_order_quantity: number | null;
48655
49318
  notes: string | null;
49319
+ previous_price_cents: number | null;
49320
+ price_source: string;
49321
+ price_updated_at: string | null;
48656
49322
  product_id: string;
48657
49323
  purchase_price_cents: number | null;
48658
49324
  supplier_article_number: string | null;
@@ -48666,6 +49332,9 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
48666
49332
  lead_time_days?: number | null;
48667
49333
  min_order_quantity?: number | null;
48668
49334
  notes?: string | null;
49335
+ previous_price_cents?: number | null;
49336
+ price_source?: string;
49337
+ price_updated_at?: string | null;
48669
49338
  product_id: string;
48670
49339
  purchase_price_cents?: number | null;
48671
49340
  supplier_article_number?: string | null;
@@ -48679,6 +49348,9 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
48679
49348
  lead_time_days?: number | null;
48680
49349
  min_order_quantity?: number | null;
48681
49350
  notes?: string | null;
49351
+ previous_price_cents?: number | null;
49352
+ price_source?: string;
49353
+ price_updated_at?: string | null;
48682
49354
  product_id?: string;
48683
49355
  purchase_price_cents?: number | null;
48684
49356
  supplier_article_number?: string | null;
@@ -49209,9 +49881,13 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
49209
49881
  purchase_order_items: {
49210
49882
  Row: {
49211
49883
  article_number: string | null;
49884
+ cancel_reason: string | null;
49885
+ cancelled_at: string | null;
49212
49886
  created_at: string;
49213
49887
  delivery_date: string | null;
49214
49888
  id: string;
49889
+ incoming_booked: number;
49890
+ line_status: string;
49215
49891
  name: string;
49216
49892
  note: string | null;
49217
49893
  pot_size: string | null;
@@ -49219,6 +49895,8 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
49219
49895
  product_type: string;
49220
49896
  purchase_order_id: string;
49221
49897
  quantity: number;
49898
+ received_at: string | null;
49899
+ received_booked: number;
49222
49900
  supplier_id: string | null;
49223
49901
  supplier_product_id: string | null;
49224
49902
  unit_price_cents: number;
@@ -49226,9 +49904,13 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
49226
49904
  };
49227
49905
  Insert: {
49228
49906
  article_number?: string | null;
49907
+ cancel_reason?: string | null;
49908
+ cancelled_at?: string | null;
49229
49909
  created_at?: string;
49230
49910
  delivery_date?: string | null;
49231
49911
  id?: string;
49912
+ incoming_booked?: number;
49913
+ line_status?: string;
49232
49914
  name?: string;
49233
49915
  note?: string | null;
49234
49916
  pot_size?: string | null;
@@ -49236,6 +49918,8 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
49236
49918
  product_type?: string;
49237
49919
  purchase_order_id: string;
49238
49920
  quantity?: number;
49921
+ received_at?: string | null;
49922
+ received_booked?: number;
49239
49923
  supplier_id?: string | null;
49240
49924
  supplier_product_id?: string | null;
49241
49925
  unit_price_cents?: number;
@@ -49243,9 +49927,13 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
49243
49927
  };
49244
49928
  Update: {
49245
49929
  article_number?: string | null;
49930
+ cancel_reason?: string | null;
49931
+ cancelled_at?: string | null;
49246
49932
  created_at?: string;
49247
49933
  delivery_date?: string | null;
49248
49934
  id?: string;
49935
+ incoming_booked?: number;
49936
+ line_status?: string;
49249
49937
  name?: string;
49250
49938
  note?: string | null;
49251
49939
  pot_size?: string | null;
@@ -49253,6 +49941,8 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
49253
49941
  product_type?: string;
49254
49942
  purchase_order_id?: string;
49255
49943
  quantity?: number;
49944
+ received_at?: string | null;
49945
+ received_booked?: number;
49256
49946
  supplier_id?: string | null;
49257
49947
  supplier_product_id?: string | null;
49258
49948
  unit_price_cents?: number;
@@ -49356,6 +50046,153 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
49356
50046
  referencedColumns: ["id"];
49357
50047
  }];
49358
50048
  };
50049
+ purchase_request_events: {
50050
+ Row: {
50051
+ created_at: string;
50052
+ details: import("../integrations/supabase/types").Json | null;
50053
+ event_type: string;
50054
+ id: string;
50055
+ request_id: string;
50056
+ };
50057
+ Insert: {
50058
+ created_at?: string;
50059
+ details?: import("../integrations/supabase/types").Json | null;
50060
+ event_type: string;
50061
+ id?: string;
50062
+ request_id: string;
50063
+ };
50064
+ Update: {
50065
+ created_at?: string;
50066
+ details?: import("../integrations/supabase/types").Json | null;
50067
+ event_type?: string;
50068
+ id?: string;
50069
+ request_id?: string;
50070
+ };
50071
+ Relationships: [{
50072
+ foreignKeyName: "purchase_request_events_request_id_fkey";
50073
+ columns: ["request_id"];
50074
+ isOneToOne: false;
50075
+ referencedRelation: "purchase_requests";
50076
+ referencedColumns: ["id"];
50077
+ }];
50078
+ };
50079
+ purchase_request_responses: {
50080
+ Row: {
50081
+ confirmed_date: string | null;
50082
+ confirmed_price_cents: number | null;
50083
+ confirmed_quantity: number;
50084
+ created_at: string;
50085
+ id: string;
50086
+ not_available: boolean;
50087
+ note: string | null;
50088
+ purchase_order_item_id: string;
50089
+ request_id: string;
50090
+ updated_at: string;
50091
+ };
50092
+ Insert: {
50093
+ confirmed_date?: string | null;
50094
+ confirmed_price_cents?: number | null;
50095
+ confirmed_quantity?: number;
50096
+ created_at?: string;
50097
+ id?: string;
50098
+ not_available?: boolean;
50099
+ note?: string | null;
50100
+ purchase_order_item_id: string;
50101
+ request_id: string;
50102
+ updated_at?: string;
50103
+ };
50104
+ Update: {
50105
+ confirmed_date?: string | null;
50106
+ confirmed_price_cents?: number | null;
50107
+ confirmed_quantity?: number;
50108
+ created_at?: string;
50109
+ id?: string;
50110
+ not_available?: boolean;
50111
+ note?: string | null;
50112
+ purchase_order_item_id?: string;
50113
+ request_id?: string;
50114
+ updated_at?: string;
50115
+ };
50116
+ Relationships: [{
50117
+ foreignKeyName: "purchase_request_responses_purchase_order_item_id_fkey";
50118
+ columns: ["purchase_order_item_id"];
50119
+ isOneToOne: false;
50120
+ referencedRelation: "purchase_order_items";
50121
+ referencedColumns: ["id"];
50122
+ }, {
50123
+ foreignKeyName: "purchase_request_responses_request_id_fkey";
50124
+ columns: ["request_id"];
50125
+ isOneToOne: false;
50126
+ referencedRelation: "purchase_requests";
50127
+ referencedColumns: ["id"];
50128
+ }];
50129
+ };
50130
+ purchase_requests: {
50131
+ Row: {
50132
+ created_at: string;
50133
+ expires_at: string;
50134
+ first_viewed_at: string | null;
50135
+ id: string;
50136
+ processed_at: string | null;
50137
+ purchase_order_id: string;
50138
+ responded_at: string | null;
50139
+ sent_at: string;
50140
+ status: string;
50141
+ supplier_id: string | null;
50142
+ supplier_name: string;
50143
+ supplier_note: string | null;
50144
+ to_address: string | null;
50145
+ token_hash: string;
50146
+ updated_at: string;
50147
+ };
50148
+ Insert: {
50149
+ created_at?: string;
50150
+ expires_at?: string;
50151
+ first_viewed_at?: string | null;
50152
+ id?: string;
50153
+ processed_at?: string | null;
50154
+ purchase_order_id: string;
50155
+ responded_at?: string | null;
50156
+ sent_at?: string;
50157
+ status?: string;
50158
+ supplier_id?: string | null;
50159
+ supplier_name?: string;
50160
+ supplier_note?: string | null;
50161
+ to_address?: string | null;
50162
+ token_hash: string;
50163
+ updated_at?: string;
50164
+ };
50165
+ Update: {
50166
+ created_at?: string;
50167
+ expires_at?: string;
50168
+ first_viewed_at?: string | null;
50169
+ id?: string;
50170
+ processed_at?: string | null;
50171
+ purchase_order_id?: string;
50172
+ responded_at?: string | null;
50173
+ sent_at?: string;
50174
+ status?: string;
50175
+ supplier_id?: string | null;
50176
+ supplier_name?: string;
50177
+ supplier_note?: string | null;
50178
+ to_address?: string | null;
50179
+ token_hash?: string;
50180
+ updated_at?: string;
50181
+ };
50182
+ Relationships: [{
50183
+ foreignKeyName: "purchase_requests_purchase_order_id_fkey";
50184
+ columns: ["purchase_order_id"];
50185
+ isOneToOne: false;
50186
+ referencedRelation: "purchase_orders";
50187
+ referencedColumns: ["id"];
50188
+ }, {
50189
+ foreignKeyName: "purchase_requests_supplier_id_fkey";
50190
+ columns: ["supplier_id"];
50191
+ isOneToOne: false;
50192
+ referencedRelation: "suppliers";
50193
+ referencedColumns: ["id"];
50194
+ }];
50195
+ };
49359
50196
  reception_notifications: {
49360
50197
  Row: {
49361
50198
  booking_id: string | null;
@@ -53781,7 +54618,7 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
53781
54618
  created_at: string;
53782
54619
  default_quantity: number;
53783
54620
  description: string | null;
53784
- duration_minutes: number | null;
54621
+ duration_minutes: number;
53785
54622
  id: string;
53786
54623
  mandaat_type: string | null;
53787
54624
  name: string;
@@ -53798,7 +54635,7 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
53798
54635
  created_at?: string;
53799
54636
  default_quantity?: number;
53800
54637
  description?: string | null;
53801
- duration_minutes?: number | null;
54638
+ duration_minutes?: number;
53802
54639
  id?: string;
53803
54640
  mandaat_type?: string | null;
53804
54641
  name: string;
@@ -53815,7 +54652,7 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
53815
54652
  created_at?: string;
53816
54653
  default_quantity?: number;
53817
54654
  description?: string | null;
53818
- duration_minutes?: number | null;
54655
+ duration_minutes?: number;
53819
54656
  id?: string;
53820
54657
  mandaat_type?: string | null;
53821
54658
  name?: string;
@@ -56811,6 +57648,31 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
56811
57648
  };
56812
57649
  Returns: import("../integrations/supabase/types").Json;
56813
57650
  };
57651
+ inkoop_cancel_line: {
57652
+ Args: {
57653
+ _item_id: string;
57654
+ _reason: string;
57655
+ };
57656
+ Returns: string;
57657
+ };
57658
+ inkoop_get_supplier_request: {
57659
+ Args: {
57660
+ _token: string;
57661
+ };
57662
+ Returns: import("../integrations/supabase/types").Json;
57663
+ };
57664
+ inkoop_hash_token: {
57665
+ Args: {
57666
+ _token: string;
57667
+ };
57668
+ Returns: string;
57669
+ };
57670
+ inkoop_html_escape: {
57671
+ Args: {
57672
+ _t: string;
57673
+ };
57674
+ Returns: string;
57675
+ };
56814
57676
  inkoop_list_artikelen: {
56815
57677
  Args: never;
56816
57678
  Returns: {
@@ -56835,9 +57697,17 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
56835
57697
  Args: never;
56836
57698
  Returns: string;
56837
57699
  };
57700
+ inkoop_process_request: {
57701
+ Args: {
57702
+ _request_id: string;
57703
+ };
57704
+ Returns: undefined;
57705
+ };
56838
57706
  inkoop_send_order: {
56839
57707
  Args: {
57708
+ _base_url?: string;
56840
57709
  _order_id: string;
57710
+ _resend?: boolean;
56841
57711
  };
56842
57712
  Returns: {
56843
57713
  outbox_id: string;
@@ -56852,6 +57722,26 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
56852
57722
  };
56853
57723
  Returns: undefined;
56854
57724
  };
57725
+ inkoop_stock_key: {
57726
+ Args: {
57727
+ p_product_id: string;
57728
+ };
57729
+ Returns: string;
57730
+ };
57731
+ inkoop_submit_supplier_response: {
57732
+ Args: {
57733
+ _lines: import("../integrations/supabase/types").Json;
57734
+ _note?: string;
57735
+ _token: string;
57736
+ };
57737
+ Returns: import("../integrations/supabase/types").Json;
57738
+ };
57739
+ inkoop_sync_item_stock: {
57740
+ Args: {
57741
+ p_item_id: string;
57742
+ };
57743
+ Returns: undefined;
57744
+ };
56855
57745
  instructie_get: {
56856
57746
  Args: {
56857
57747
  _sleutel: string;
@@ -57012,6 +57902,27 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
57012
57902
  };
57013
57903
  Returns: boolean;
57014
57904
  };
57905
+ layout_print_document: {
57906
+ Args: {
57907
+ _documentnaam: string;
57908
+ _documenttype: string;
57909
+ _herkomst?: string;
57910
+ _idempotentie_sleutel?: string;
57911
+ _is_herprint?: boolean;
57912
+ _kopieen?: number;
57913
+ _layout_id?: string;
57914
+ _payload?: import("../integrations/supabase/types").Json;
57915
+ _pdf_base64?: string;
57916
+ _pdf_url?: string;
57917
+ _print_plek_id?: string;
57918
+ _werkplek?: string;
57919
+ };
57920
+ Returns: {
57921
+ bestaand: boolean;
57922
+ job_id: string;
57923
+ printer_id: string;
57924
+ }[];
57925
+ };
57015
57926
  list_medewerkers: {
57016
57927
  Args: never;
57017
57928
  Returns: {
@@ -57289,6 +58200,12 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
57289
58200
  };
57290
58201
  Returns: number;
57291
58202
  };
58203
+ logistics_cart_barcode_opschonen: {
58204
+ Args: {
58205
+ p_portie?: number;
58206
+ };
58207
+ Returns: import("../integrations/supabase/types").Json;
58208
+ };
57292
58209
  logistics_cart_barcode_value: {
57293
58210
  Args: {
57294
58211
  _cart_id: string;
@@ -57708,6 +58625,13 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
57708
58625
  };
57709
58626
  Returns: import("../integrations/supabase/types").Json;
57710
58627
  };
58628
+ logistics_control_scan_print_own: {
58629
+ Args: {
58630
+ p_is_herprint?: boolean;
58631
+ p_scan_id: string;
58632
+ };
58633
+ Returns: import("../integrations/supabase/types").Json;
58634
+ };
57711
58635
  logistics_control_scan_retry: {
57712
58636
  Args: {
57713
58637
  _id: string;
@@ -58612,6 +59536,21 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
58612
59536
  };
58613
59537
  Returns: import("../integrations/supabase/types").Json;
58614
59538
  };
59539
+ logistics_print_via_layout: {
59540
+ Args: {
59541
+ _documentnaam: string;
59542
+ _documenttype: string;
59543
+ _herkomst: string;
59544
+ _idempotentie_sleutel: string;
59545
+ _is_herprint: boolean;
59546
+ _layout_id: string;
59547
+ _payload: import("../integrations/supabase/types").Json;
59548
+ _pdf_base64: string;
59549
+ _pdf_url: string;
59550
+ _print_plek_id: string;
59551
+ };
59552
+ Returns: import("../integrations/supabase/types").Json;
59553
+ };
58615
59554
  logistics_prune_buffer_member_queue: {
58616
59555
  Args: never;
58617
59556
  Returns: number;
@@ -58898,6 +59837,13 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
58898
59837
  };
58899
59838
  Returns: string;
58900
59839
  };
59840
+ logistics_shipping_note_status: {
59841
+ Args: {
59842
+ p_cart_id?: string;
59843
+ p_slip_job_id?: string;
59844
+ };
59845
+ Returns: import("../integrations/supabase/types").Json;
59846
+ };
58901
59847
  logistics_shipping_notes_wake_all: {
58902
59848
  Args: never;
58903
59849
  Returns: import("../integrations/supabase/types").Json;
@@ -58960,6 +59906,12 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
58960
59906
  };
58961
59907
  Returns: undefined;
58962
59908
  };
59909
+ logistics_slip_note_retry: {
59910
+ Args: {
59911
+ _id: string;
59912
+ };
59913
+ Returns: import("../integrations/supabase/types").Json;
59914
+ };
58963
59915
  logistics_sticker_follows_slip: {
58964
59916
  Args: never;
58965
59917
  Returns: boolean;
@@ -59704,6 +60656,10 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
59704
60656
  };
59705
60657
  Returns: string;
59706
60658
  };
60659
+ pick_is_reference_admin: {
60660
+ Args: never;
60661
+ Returns: boolean;
60662
+ };
59707
60663
  pick_mark_printed: {
59708
60664
  Args: {
59709
60665
  _queue_item_id: string;
@@ -60127,6 +61083,12 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
60127
61083
  };
60128
61084
  Returns: import("../integrations/supabase/types").Json;
60129
61085
  };
61086
+ pick_verify_rows: {
61087
+ Args: {
61088
+ _rows: import("../integrations/supabase/types").Json;
61089
+ };
61090
+ Returns: import("../integrations/supabase/types").Json;
61091
+ };
60130
61092
  pickstation_get_orders_raw: {
60131
61093
  Args: never;
60132
61094
  Returns: import("../integrations/supabase/types").Json;
@@ -60307,6 +61269,12 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
60307
61269
  };
60308
61270
  Returns: import("../integrations/supabase/types").Json;
60309
61271
  };
61272
+ quote_create_from_scratch: {
61273
+ Args: {
61274
+ _payload: import("../integrations/supabase/types").Json;
61275
+ };
61276
+ Returns: import("../integrations/supabase/types").Json;
61277
+ };
60310
61278
  quote_create_from_source: {
60311
61279
  Args: {
60312
61280
  _payload?: import("../integrations/supabase/types").Json;
@@ -60357,6 +61325,13 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
60357
61325
  };
60358
61326
  Returns: string;
60359
61327
  };
61328
+ quote_sync_work_order: {
61329
+ Args: {
61330
+ _monteur_instructies?: string;
61331
+ _offerte_id: string;
61332
+ };
61333
+ Returns: boolean;
61334
+ };
60360
61335
  recompute_all_reserved_stock: {
60361
61336
  Args: never;
60362
61337
  Returns: undefined;
@@ -60577,6 +61552,13 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
60577
61552
  };
60578
61553
  Returns: import("../integrations/supabase/types").Json;
60579
61554
  };
61555
+ scan_controleer_pincode: {
61556
+ Args: {
61557
+ p_pin: string;
61558
+ p_scanner_id: string;
61559
+ };
61560
+ Returns: boolean;
61561
+ };
60580
61562
  scan_dashboard_stats: {
60581
61563
  Args: {
60582
61564
  p_dagen?: number;
@@ -60596,6 +61578,12 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
60596
61578
  };
60597
61579
  Returns: import("../integrations/supabase/types").Json;
60598
61580
  };
61581
+ scan_heeft_pincode: {
61582
+ Args: {
61583
+ p_scanner_id: string;
61584
+ };
61585
+ Returns: boolean;
61586
+ };
60599
61587
  scan_kar_compleet: {
60600
61588
  Args: {
60601
61589
  p_allow_reprint?: boolean;
@@ -60613,6 +61601,7 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
60613
61601
  Args: {
60614
61602
  p_code: string;
60615
61603
  p_latency_ms?: number;
61604
+ p_medewerker?: string;
60616
61605
  p_message?: string;
60617
61606
  p_result: string;
60618
61607
  p_scanner_key?: string;
@@ -60685,6 +61674,22 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
60685
61674
  };
60686
61675
  Returns: undefined;
60687
61676
  };
61677
+ scan_scanner_info: {
61678
+ Args: {
61679
+ p_slug: string;
61680
+ };
61681
+ Returns: {
61682
+ actief: boolean;
61683
+ heeft_pincode: boolean;
61684
+ id: string;
61685
+ naam: string;
61686
+ omschrijving: string;
61687
+ printer_id: string;
61688
+ type: string;
61689
+ vereist_medewerker: boolean;
61690
+ werkplek: string;
61691
+ }[];
61692
+ };
60688
61693
  scan_sessie_annuleren: {
60689
61694
  Args: {
60690
61695
  p_sessie_id: string;
@@ -61647,6 +62652,21 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
61647
62652
  };
61648
62653
  Returns: import("../integrations/supabase/types").Json;
61649
62654
  };
62655
+ wo_list_colleague_planning: {
62656
+ Args: {
62657
+ _from: string;
62658
+ _monteur_id: string;
62659
+ _to: string;
62660
+ };
62661
+ Returns: {
62662
+ end_at: string;
62663
+ id: string;
62664
+ role: string;
62665
+ start_at: string;
62666
+ status: string;
62667
+ werkbon_id: string;
62668
+ }[];
62669
+ };
61650
62670
  wo_list_offerte_requests: {
61651
62671
  Args: {
61652
62672
  _status?: string;
@@ -62477,6 +63497,27 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
62477
63497
  };
62478
63498
  Relationships: [];
62479
63499
  };
63500
+ artikelen_instellingen: {
63501
+ Row: {
63502
+ created_at: string;
63503
+ id: number;
63504
+ marge_procent: number;
63505
+ updated_at: string;
63506
+ };
63507
+ Insert: {
63508
+ created_at?: string;
63509
+ id?: number;
63510
+ marge_procent?: number;
63511
+ updated_at?: string;
63512
+ };
63513
+ Update: {
63514
+ created_at?: string;
63515
+ id?: number;
63516
+ marge_procent?: number;
63517
+ updated_at?: string;
63518
+ };
63519
+ Relationships: [];
63520
+ };
62480
63521
  artikelen_veldconfig: {
62481
63522
  Row: {
62482
63523
  bron_pad: string;
@@ -72152,6 +73193,30 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
72152
73193
  };
72153
73194
  Relationships: [];
72154
73195
  };
73196
+ logistics_cart_barcode_archief: {
73197
+ Row: {
73198
+ barcode: string;
73199
+ cart_id: string;
73200
+ created_at: string | null;
73201
+ gearchiveerd_op: string;
73202
+ order_id: string | null;
73203
+ };
73204
+ Insert: {
73205
+ barcode: string;
73206
+ cart_id: string;
73207
+ created_at?: string | null;
73208
+ gearchiveerd_op?: string;
73209
+ order_id?: string | null;
73210
+ };
73211
+ Update: {
73212
+ barcode?: string;
73213
+ cart_id?: string;
73214
+ created_at?: string | null;
73215
+ gearchiveerd_op?: string;
73216
+ order_id?: string | null;
73217
+ };
73218
+ Relationships: [];
73219
+ };
72155
73220
  logistics_control_scan: {
72156
73221
  Row: {
72157
73222
  approved_at: string | null;
@@ -77805,18 +78870,24 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
77805
78870
  Row: {
77806
78871
  id: boolean;
77807
78872
  last_cleanup_at: string | null;
78873
+ last_error: string | null;
78874
+ last_error_at: string | null;
77808
78875
  last_sync_at: string | null;
77809
78876
  updated_at: string;
77810
78877
  };
77811
78878
  Insert: {
77812
78879
  id?: boolean;
77813
78880
  last_cleanup_at?: string | null;
78881
+ last_error?: string | null;
78882
+ last_error_at?: string | null;
77814
78883
  last_sync_at?: string | null;
77815
78884
  updated_at?: string;
77816
78885
  };
77817
78886
  Update: {
77818
78887
  id?: boolean;
77819
78888
  last_cleanup_at?: string | null;
78889
+ last_error?: string | null;
78890
+ last_error_at?: string | null;
77820
78891
  last_sync_at?: string | null;
77821
78892
  updated_at?: string;
77822
78893
  };
@@ -77942,6 +79013,54 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
77942
79013
  };
77943
79014
  Relationships: [];
77944
79015
  };
79016
+ planning_confirmation_log: {
79017
+ Row: {
79018
+ created_at: string;
79019
+ end_at: string;
79020
+ id: string;
79021
+ outbox_id: string | null;
79022
+ planning_item_id: string;
79023
+ reason: string | null;
79024
+ recipient: string | null;
79025
+ start_at: string;
79026
+ status: string;
79027
+ };
79028
+ Insert: {
79029
+ created_at?: string;
79030
+ end_at: string;
79031
+ id?: string;
79032
+ outbox_id?: string | null;
79033
+ planning_item_id: string;
79034
+ reason?: string | null;
79035
+ recipient?: string | null;
79036
+ start_at: string;
79037
+ status: string;
79038
+ };
79039
+ Update: {
79040
+ created_at?: string;
79041
+ end_at?: string;
79042
+ id?: string;
79043
+ outbox_id?: string | null;
79044
+ planning_item_id?: string;
79045
+ reason?: string | null;
79046
+ recipient?: string | null;
79047
+ start_at?: string;
79048
+ status?: string;
79049
+ };
79050
+ Relationships: [{
79051
+ foreignKeyName: "planning_confirmation_log_planning_item_id_fkey";
79052
+ columns: ["planning_item_id"];
79053
+ isOneToOne: false;
79054
+ referencedRelation: "planning_items";
79055
+ referencedColumns: ["id"];
79056
+ }, {
79057
+ foreignKeyName: "planning_confirmation_log_planning_item_id_fkey";
79058
+ columns: ["planning_item_id"];
79059
+ isOneToOne: false;
79060
+ referencedRelation: "planning_overview";
79061
+ referencedColumns: ["id"];
79062
+ }];
79063
+ };
77945
79064
  planning_item_assistants: {
77946
79065
  Row: {
77947
79066
  created_at: string;
@@ -78026,6 +79145,60 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
78026
79145
  referencedColumns: ["id"];
78027
79146
  }];
78028
79147
  };
79148
+ planning_mail_settings: {
79149
+ Row: {
79150
+ body_template: string;
79151
+ cc: string[];
79152
+ connection_id: string | null;
79153
+ created_at: string;
79154
+ enabled: boolean;
79155
+ id: boolean;
79156
+ reply_to: string | null;
79157
+ subject_template: string;
79158
+ timezone: string;
79159
+ updated_at: string;
79160
+ updated_by: string | null;
79161
+ };
79162
+ Insert: {
79163
+ body_template?: string;
79164
+ cc?: string[];
79165
+ connection_id?: string | null;
79166
+ created_at?: string;
79167
+ enabled?: boolean;
79168
+ id?: boolean;
79169
+ reply_to?: string | null;
79170
+ subject_template?: string;
79171
+ timezone?: string;
79172
+ updated_at?: string;
79173
+ updated_by?: string | null;
79174
+ };
79175
+ Update: {
79176
+ body_template?: string;
79177
+ cc?: string[];
79178
+ connection_id?: string | null;
79179
+ created_at?: string;
79180
+ enabled?: boolean;
79181
+ id?: boolean;
79182
+ reply_to?: string | null;
79183
+ subject_template?: string;
79184
+ timezone?: string;
79185
+ updated_at?: string;
79186
+ updated_by?: string | null;
79187
+ };
79188
+ Relationships: [{
79189
+ foreignKeyName: "planning_mail_settings_connection_id_fkey";
79190
+ columns: ["connection_id"];
79191
+ isOneToOne: false;
79192
+ referencedRelation: "email_auth_connections";
79193
+ referencedColumns: ["id"];
79194
+ }, {
79195
+ foreignKeyName: "planning_mail_settings_connection_id_fkey";
79196
+ columns: ["connection_id"];
79197
+ isOneToOne: false;
79198
+ referencedRelation: "email_auth_connections_safe";
79199
+ referencedColumns: ["id"];
79200
+ }];
79201
+ };
78029
79202
  planning_monteur_day_locations: {
78030
79203
  Row: {
78031
79204
  created_at: string;
@@ -79504,6 +80677,9 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
79504
80677
  lead_time_days: number | null;
79505
80678
  min_order_quantity: number | null;
79506
80679
  notes: string | null;
80680
+ previous_price_cents: number | null;
80681
+ price_source: string;
80682
+ price_updated_at: string | null;
79507
80683
  product_id: string;
79508
80684
  purchase_price_cents: number | null;
79509
80685
  supplier_article_number: string | null;
@@ -79517,6 +80693,9 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
79517
80693
  lead_time_days?: number | null;
79518
80694
  min_order_quantity?: number | null;
79519
80695
  notes?: string | null;
80696
+ previous_price_cents?: number | null;
80697
+ price_source?: string;
80698
+ price_updated_at?: string | null;
79520
80699
  product_id: string;
79521
80700
  purchase_price_cents?: number | null;
79522
80701
  supplier_article_number?: string | null;
@@ -79530,6 +80709,9 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
79530
80709
  lead_time_days?: number | null;
79531
80710
  min_order_quantity?: number | null;
79532
80711
  notes?: string | null;
80712
+ previous_price_cents?: number | null;
80713
+ price_source?: string;
80714
+ price_updated_at?: string | null;
79533
80715
  product_id?: string;
79534
80716
  purchase_price_cents?: number | null;
79535
80717
  supplier_article_number?: string | null;
@@ -80060,9 +81242,13 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
80060
81242
  purchase_order_items: {
80061
81243
  Row: {
80062
81244
  article_number: string | null;
81245
+ cancel_reason: string | null;
81246
+ cancelled_at: string | null;
80063
81247
  created_at: string;
80064
81248
  delivery_date: string | null;
80065
81249
  id: string;
81250
+ incoming_booked: number;
81251
+ line_status: string;
80066
81252
  name: string;
80067
81253
  note: string | null;
80068
81254
  pot_size: string | null;
@@ -80070,6 +81256,8 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
80070
81256
  product_type: string;
80071
81257
  purchase_order_id: string;
80072
81258
  quantity: number;
81259
+ received_at: string | null;
81260
+ received_booked: number;
80073
81261
  supplier_id: string | null;
80074
81262
  supplier_product_id: string | null;
80075
81263
  unit_price_cents: number;
@@ -80077,9 +81265,13 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
80077
81265
  };
80078
81266
  Insert: {
80079
81267
  article_number?: string | null;
81268
+ cancel_reason?: string | null;
81269
+ cancelled_at?: string | null;
80080
81270
  created_at?: string;
80081
81271
  delivery_date?: string | null;
80082
81272
  id?: string;
81273
+ incoming_booked?: number;
81274
+ line_status?: string;
80083
81275
  name?: string;
80084
81276
  note?: string | null;
80085
81277
  pot_size?: string | null;
@@ -80087,6 +81279,8 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
80087
81279
  product_type?: string;
80088
81280
  purchase_order_id: string;
80089
81281
  quantity?: number;
81282
+ received_at?: string | null;
81283
+ received_booked?: number;
80090
81284
  supplier_id?: string | null;
80091
81285
  supplier_product_id?: string | null;
80092
81286
  unit_price_cents?: number;
@@ -80094,9 +81288,13 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
80094
81288
  };
80095
81289
  Update: {
80096
81290
  article_number?: string | null;
81291
+ cancel_reason?: string | null;
81292
+ cancelled_at?: string | null;
80097
81293
  created_at?: string;
80098
81294
  delivery_date?: string | null;
80099
81295
  id?: string;
81296
+ incoming_booked?: number;
81297
+ line_status?: string;
80100
81298
  name?: string;
80101
81299
  note?: string | null;
80102
81300
  pot_size?: string | null;
@@ -80104,6 +81302,8 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
80104
81302
  product_type?: string;
80105
81303
  purchase_order_id?: string;
80106
81304
  quantity?: number;
81305
+ received_at?: string | null;
81306
+ received_booked?: number;
80107
81307
  supplier_id?: string | null;
80108
81308
  supplier_product_id?: string | null;
80109
81309
  unit_price_cents?: number;
@@ -80207,6 +81407,153 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
80207
81407
  referencedColumns: ["id"];
80208
81408
  }];
80209
81409
  };
81410
+ purchase_request_events: {
81411
+ Row: {
81412
+ created_at: string;
81413
+ details: import("../integrations/supabase/types").Json | null;
81414
+ event_type: string;
81415
+ id: string;
81416
+ request_id: string;
81417
+ };
81418
+ Insert: {
81419
+ created_at?: string;
81420
+ details?: import("../integrations/supabase/types").Json | null;
81421
+ event_type: string;
81422
+ id?: string;
81423
+ request_id: string;
81424
+ };
81425
+ Update: {
81426
+ created_at?: string;
81427
+ details?: import("../integrations/supabase/types").Json | null;
81428
+ event_type?: string;
81429
+ id?: string;
81430
+ request_id?: string;
81431
+ };
81432
+ Relationships: [{
81433
+ foreignKeyName: "purchase_request_events_request_id_fkey";
81434
+ columns: ["request_id"];
81435
+ isOneToOne: false;
81436
+ referencedRelation: "purchase_requests";
81437
+ referencedColumns: ["id"];
81438
+ }];
81439
+ };
81440
+ purchase_request_responses: {
81441
+ Row: {
81442
+ confirmed_date: string | null;
81443
+ confirmed_price_cents: number | null;
81444
+ confirmed_quantity: number;
81445
+ created_at: string;
81446
+ id: string;
81447
+ not_available: boolean;
81448
+ note: string | null;
81449
+ purchase_order_item_id: string;
81450
+ request_id: string;
81451
+ updated_at: string;
81452
+ };
81453
+ Insert: {
81454
+ confirmed_date?: string | null;
81455
+ confirmed_price_cents?: number | null;
81456
+ confirmed_quantity?: number;
81457
+ created_at?: string;
81458
+ id?: string;
81459
+ not_available?: boolean;
81460
+ note?: string | null;
81461
+ purchase_order_item_id: string;
81462
+ request_id: string;
81463
+ updated_at?: string;
81464
+ };
81465
+ Update: {
81466
+ confirmed_date?: string | null;
81467
+ confirmed_price_cents?: number | null;
81468
+ confirmed_quantity?: number;
81469
+ created_at?: string;
81470
+ id?: string;
81471
+ not_available?: boolean;
81472
+ note?: string | null;
81473
+ purchase_order_item_id?: string;
81474
+ request_id?: string;
81475
+ updated_at?: string;
81476
+ };
81477
+ Relationships: [{
81478
+ foreignKeyName: "purchase_request_responses_purchase_order_item_id_fkey";
81479
+ columns: ["purchase_order_item_id"];
81480
+ isOneToOne: false;
81481
+ referencedRelation: "purchase_order_items";
81482
+ referencedColumns: ["id"];
81483
+ }, {
81484
+ foreignKeyName: "purchase_request_responses_request_id_fkey";
81485
+ columns: ["request_id"];
81486
+ isOneToOne: false;
81487
+ referencedRelation: "purchase_requests";
81488
+ referencedColumns: ["id"];
81489
+ }];
81490
+ };
81491
+ purchase_requests: {
81492
+ Row: {
81493
+ created_at: string;
81494
+ expires_at: string;
81495
+ first_viewed_at: string | null;
81496
+ id: string;
81497
+ processed_at: string | null;
81498
+ purchase_order_id: string;
81499
+ responded_at: string | null;
81500
+ sent_at: string;
81501
+ status: string;
81502
+ supplier_id: string | null;
81503
+ supplier_name: string;
81504
+ supplier_note: string | null;
81505
+ to_address: string | null;
81506
+ token_hash: string;
81507
+ updated_at: string;
81508
+ };
81509
+ Insert: {
81510
+ created_at?: string;
81511
+ expires_at?: string;
81512
+ first_viewed_at?: string | null;
81513
+ id?: string;
81514
+ processed_at?: string | null;
81515
+ purchase_order_id: string;
81516
+ responded_at?: string | null;
81517
+ sent_at?: string;
81518
+ status?: string;
81519
+ supplier_id?: string | null;
81520
+ supplier_name?: string;
81521
+ supplier_note?: string | null;
81522
+ to_address?: string | null;
81523
+ token_hash: string;
81524
+ updated_at?: string;
81525
+ };
81526
+ Update: {
81527
+ created_at?: string;
81528
+ expires_at?: string;
81529
+ first_viewed_at?: string | null;
81530
+ id?: string;
81531
+ processed_at?: string | null;
81532
+ purchase_order_id?: string;
81533
+ responded_at?: string | null;
81534
+ sent_at?: string;
81535
+ status?: string;
81536
+ supplier_id?: string | null;
81537
+ supplier_name?: string;
81538
+ supplier_note?: string | null;
81539
+ to_address?: string | null;
81540
+ token_hash?: string;
81541
+ updated_at?: string;
81542
+ };
81543
+ Relationships: [{
81544
+ foreignKeyName: "purchase_requests_purchase_order_id_fkey";
81545
+ columns: ["purchase_order_id"];
81546
+ isOneToOne: false;
81547
+ referencedRelation: "purchase_orders";
81548
+ referencedColumns: ["id"];
81549
+ }, {
81550
+ foreignKeyName: "purchase_requests_supplier_id_fkey";
81551
+ columns: ["supplier_id"];
81552
+ isOneToOne: false;
81553
+ referencedRelation: "suppliers";
81554
+ referencedColumns: ["id"];
81555
+ }];
81556
+ };
80210
81557
  reception_notifications: {
80211
81558
  Row: {
80212
81559
  booking_id: string | null;
@@ -84632,7 +85979,7 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
84632
85979
  created_at: string;
84633
85980
  default_quantity: number;
84634
85981
  description: string | null;
84635
- duration_minutes: number | null;
85982
+ duration_minutes: number;
84636
85983
  id: string;
84637
85984
  mandaat_type: string | null;
84638
85985
  name: string;
@@ -84649,7 +85996,7 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
84649
85996
  created_at?: string;
84650
85997
  default_quantity?: number;
84651
85998
  description?: string | null;
84652
- duration_minutes?: number | null;
85999
+ duration_minutes?: number;
84653
86000
  id?: string;
84654
86001
  mandaat_type?: string | null;
84655
86002
  name: string;
@@ -84666,7 +86013,7 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
84666
86013
  created_at?: string;
84667
86014
  default_quantity?: number;
84668
86015
  description?: string | null;
84669
- duration_minutes?: number | null;
86016
+ duration_minutes?: number;
84670
86017
  id?: string;
84671
86018
  mandaat_type?: string | null;
84672
86019
  name?: string;
@@ -87662,6 +89009,31 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
87662
89009
  };
87663
89010
  Returns: import("../integrations/supabase/types").Json;
87664
89011
  };
89012
+ inkoop_cancel_line: {
89013
+ Args: {
89014
+ _item_id: string;
89015
+ _reason: string;
89016
+ };
89017
+ Returns: string;
89018
+ };
89019
+ inkoop_get_supplier_request: {
89020
+ Args: {
89021
+ _token: string;
89022
+ };
89023
+ Returns: import("../integrations/supabase/types").Json;
89024
+ };
89025
+ inkoop_hash_token: {
89026
+ Args: {
89027
+ _token: string;
89028
+ };
89029
+ Returns: string;
89030
+ };
89031
+ inkoop_html_escape: {
89032
+ Args: {
89033
+ _t: string;
89034
+ };
89035
+ Returns: string;
89036
+ };
87665
89037
  inkoop_list_artikelen: {
87666
89038
  Args: never;
87667
89039
  Returns: {
@@ -87686,9 +89058,17 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
87686
89058
  Args: never;
87687
89059
  Returns: string;
87688
89060
  };
89061
+ inkoop_process_request: {
89062
+ Args: {
89063
+ _request_id: string;
89064
+ };
89065
+ Returns: undefined;
89066
+ };
87689
89067
  inkoop_send_order: {
87690
89068
  Args: {
89069
+ _base_url?: string;
87691
89070
  _order_id: string;
89071
+ _resend?: boolean;
87692
89072
  };
87693
89073
  Returns: {
87694
89074
  outbox_id: string;
@@ -87703,6 +89083,26 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
87703
89083
  };
87704
89084
  Returns: undefined;
87705
89085
  };
89086
+ inkoop_stock_key: {
89087
+ Args: {
89088
+ p_product_id: string;
89089
+ };
89090
+ Returns: string;
89091
+ };
89092
+ inkoop_submit_supplier_response: {
89093
+ Args: {
89094
+ _lines: import("../integrations/supabase/types").Json;
89095
+ _note?: string;
89096
+ _token: string;
89097
+ };
89098
+ Returns: import("../integrations/supabase/types").Json;
89099
+ };
89100
+ inkoop_sync_item_stock: {
89101
+ Args: {
89102
+ p_item_id: string;
89103
+ };
89104
+ Returns: undefined;
89105
+ };
87706
89106
  instructie_get: {
87707
89107
  Args: {
87708
89108
  _sleutel: string;
@@ -87863,6 +89263,27 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
87863
89263
  };
87864
89264
  Returns: boolean;
87865
89265
  };
89266
+ layout_print_document: {
89267
+ Args: {
89268
+ _documentnaam: string;
89269
+ _documenttype: string;
89270
+ _herkomst?: string;
89271
+ _idempotentie_sleutel?: string;
89272
+ _is_herprint?: boolean;
89273
+ _kopieen?: number;
89274
+ _layout_id?: string;
89275
+ _payload?: import("../integrations/supabase/types").Json;
89276
+ _pdf_base64?: string;
89277
+ _pdf_url?: string;
89278
+ _print_plek_id?: string;
89279
+ _werkplek?: string;
89280
+ };
89281
+ Returns: {
89282
+ bestaand: boolean;
89283
+ job_id: string;
89284
+ printer_id: string;
89285
+ }[];
89286
+ };
87866
89287
  list_medewerkers: {
87867
89288
  Args: never;
87868
89289
  Returns: {
@@ -88140,6 +89561,12 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
88140
89561
  };
88141
89562
  Returns: number;
88142
89563
  };
89564
+ logistics_cart_barcode_opschonen: {
89565
+ Args: {
89566
+ p_portie?: number;
89567
+ };
89568
+ Returns: import("../integrations/supabase/types").Json;
89569
+ };
88143
89570
  logistics_cart_barcode_value: {
88144
89571
  Args: {
88145
89572
  _cart_id: string;
@@ -88559,6 +89986,13 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
88559
89986
  };
88560
89987
  Returns: import("../integrations/supabase/types").Json;
88561
89988
  };
89989
+ logistics_control_scan_print_own: {
89990
+ Args: {
89991
+ p_is_herprint?: boolean;
89992
+ p_scan_id: string;
89993
+ };
89994
+ Returns: import("../integrations/supabase/types").Json;
89995
+ };
88562
89996
  logistics_control_scan_retry: {
88563
89997
  Args: {
88564
89998
  _id: string;
@@ -89463,6 +90897,21 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
89463
90897
  };
89464
90898
  Returns: import("../integrations/supabase/types").Json;
89465
90899
  };
90900
+ logistics_print_via_layout: {
90901
+ Args: {
90902
+ _documentnaam: string;
90903
+ _documenttype: string;
90904
+ _herkomst: string;
90905
+ _idempotentie_sleutel: string;
90906
+ _is_herprint: boolean;
90907
+ _layout_id: string;
90908
+ _payload: import("../integrations/supabase/types").Json;
90909
+ _pdf_base64: string;
90910
+ _pdf_url: string;
90911
+ _print_plek_id: string;
90912
+ };
90913
+ Returns: import("../integrations/supabase/types").Json;
90914
+ };
89466
90915
  logistics_prune_buffer_member_queue: {
89467
90916
  Args: never;
89468
90917
  Returns: number;
@@ -89749,6 +91198,13 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
89749
91198
  };
89750
91199
  Returns: string;
89751
91200
  };
91201
+ logistics_shipping_note_status: {
91202
+ Args: {
91203
+ p_cart_id?: string;
91204
+ p_slip_job_id?: string;
91205
+ };
91206
+ Returns: import("../integrations/supabase/types").Json;
91207
+ };
89752
91208
  logistics_shipping_notes_wake_all: {
89753
91209
  Args: never;
89754
91210
  Returns: import("../integrations/supabase/types").Json;
@@ -89811,6 +91267,12 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
89811
91267
  };
89812
91268
  Returns: undefined;
89813
91269
  };
91270
+ logistics_slip_note_retry: {
91271
+ Args: {
91272
+ _id: string;
91273
+ };
91274
+ Returns: import("../integrations/supabase/types").Json;
91275
+ };
89814
91276
  logistics_sticker_follows_slip: {
89815
91277
  Args: never;
89816
91278
  Returns: boolean;
@@ -90555,6 +92017,10 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
90555
92017
  };
90556
92018
  Returns: string;
90557
92019
  };
92020
+ pick_is_reference_admin: {
92021
+ Args: never;
92022
+ Returns: boolean;
92023
+ };
90558
92024
  pick_mark_printed: {
90559
92025
  Args: {
90560
92026
  _queue_item_id: string;
@@ -90978,6 +92444,12 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
90978
92444
  };
90979
92445
  Returns: import("../integrations/supabase/types").Json;
90980
92446
  };
92447
+ pick_verify_rows: {
92448
+ Args: {
92449
+ _rows: import("../integrations/supabase/types").Json;
92450
+ };
92451
+ Returns: import("../integrations/supabase/types").Json;
92452
+ };
90981
92453
  pickstation_get_orders_raw: {
90982
92454
  Args: never;
90983
92455
  Returns: import("../integrations/supabase/types").Json;
@@ -91158,6 +92630,12 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
91158
92630
  };
91159
92631
  Returns: import("../integrations/supabase/types").Json;
91160
92632
  };
92633
+ quote_create_from_scratch: {
92634
+ Args: {
92635
+ _payload: import("../integrations/supabase/types").Json;
92636
+ };
92637
+ Returns: import("../integrations/supabase/types").Json;
92638
+ };
91161
92639
  quote_create_from_source: {
91162
92640
  Args: {
91163
92641
  _payload?: import("../integrations/supabase/types").Json;
@@ -91208,6 +92686,13 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
91208
92686
  };
91209
92687
  Returns: string;
91210
92688
  };
92689
+ quote_sync_work_order: {
92690
+ Args: {
92691
+ _monteur_instructies?: string;
92692
+ _offerte_id: string;
92693
+ };
92694
+ Returns: boolean;
92695
+ };
91211
92696
  recompute_all_reserved_stock: {
91212
92697
  Args: never;
91213
92698
  Returns: undefined;
@@ -91428,6 +92913,13 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
91428
92913
  };
91429
92914
  Returns: import("../integrations/supabase/types").Json;
91430
92915
  };
92916
+ scan_controleer_pincode: {
92917
+ Args: {
92918
+ p_pin: string;
92919
+ p_scanner_id: string;
92920
+ };
92921
+ Returns: boolean;
92922
+ };
91431
92923
  scan_dashboard_stats: {
91432
92924
  Args: {
91433
92925
  p_dagen?: number;
@@ -91447,6 +92939,12 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
91447
92939
  };
91448
92940
  Returns: import("../integrations/supabase/types").Json;
91449
92941
  };
92942
+ scan_heeft_pincode: {
92943
+ Args: {
92944
+ p_scanner_id: string;
92945
+ };
92946
+ Returns: boolean;
92947
+ };
91450
92948
  scan_kar_compleet: {
91451
92949
  Args: {
91452
92950
  p_allow_reprint?: boolean;
@@ -91464,6 +92962,7 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
91464
92962
  Args: {
91465
92963
  p_code: string;
91466
92964
  p_latency_ms?: number;
92965
+ p_medewerker?: string;
91467
92966
  p_message?: string;
91468
92967
  p_result: string;
91469
92968
  p_scanner_key?: string;
@@ -91536,6 +93035,22 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
91536
93035
  };
91537
93036
  Returns: undefined;
91538
93037
  };
93038
+ scan_scanner_info: {
93039
+ Args: {
93040
+ p_slug: string;
93041
+ };
93042
+ Returns: {
93043
+ actief: boolean;
93044
+ heeft_pincode: boolean;
93045
+ id: string;
93046
+ naam: string;
93047
+ omschrijving: string;
93048
+ printer_id: string;
93049
+ type: string;
93050
+ vereist_medewerker: boolean;
93051
+ werkplek: string;
93052
+ }[];
93053
+ };
91539
93054
  scan_sessie_annuleren: {
91540
93055
  Args: {
91541
93056
  p_sessie_id: string;
@@ -92498,6 +94013,21 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
92498
94013
  };
92499
94014
  Returns: import("../integrations/supabase/types").Json;
92500
94015
  };
94016
+ wo_list_colleague_planning: {
94017
+ Args: {
94018
+ _from: string;
94019
+ _monteur_id: string;
94020
+ _to: string;
94021
+ };
94022
+ Returns: {
94023
+ end_at: string;
94024
+ id: string;
94025
+ role: string;
94026
+ start_at: string;
94027
+ status: string;
94028
+ werkbon_id: string;
94029
+ }[];
94030
+ };
92501
94031
  wo_list_offerte_requests: {
92502
94032
  Args: {
92503
94033
  _status?: string;