@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
@@ -744,6 +744,27 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
744
744
  };
745
745
  Relationships: [];
746
746
  };
747
+ artikelen_instellingen: {
748
+ Row: {
749
+ created_at: string;
750
+ id: number;
751
+ marge_procent: number;
752
+ updated_at: string;
753
+ };
754
+ Insert: {
755
+ created_at?: string;
756
+ id?: number;
757
+ marge_procent?: number;
758
+ updated_at?: string;
759
+ };
760
+ Update: {
761
+ created_at?: string;
762
+ id?: number;
763
+ marge_procent?: number;
764
+ updated_at?: string;
765
+ };
766
+ Relationships: [];
767
+ };
747
768
  artikelen_veldconfig: {
748
769
  Row: {
749
770
  bron_pad: string;
@@ -10419,6 +10440,30 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
10419
10440
  };
10420
10441
  Relationships: [];
10421
10442
  };
10443
+ logistics_cart_barcode_archief: {
10444
+ Row: {
10445
+ barcode: string;
10446
+ cart_id: string;
10447
+ created_at: string | null;
10448
+ gearchiveerd_op: string;
10449
+ order_id: string | null;
10450
+ };
10451
+ Insert: {
10452
+ barcode: string;
10453
+ cart_id: string;
10454
+ created_at?: string | null;
10455
+ gearchiveerd_op?: string;
10456
+ order_id?: string | null;
10457
+ };
10458
+ Update: {
10459
+ barcode?: string;
10460
+ cart_id?: string;
10461
+ created_at?: string | null;
10462
+ gearchiveerd_op?: string;
10463
+ order_id?: string | null;
10464
+ };
10465
+ Relationships: [];
10466
+ };
10422
10467
  logistics_control_scan: {
10423
10468
  Row: {
10424
10469
  approved_at: string | null;
@@ -16072,18 +16117,24 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
16072
16117
  Row: {
16073
16118
  id: boolean;
16074
16119
  last_cleanup_at: string | null;
16120
+ last_error: string | null;
16121
+ last_error_at: string | null;
16075
16122
  last_sync_at: string | null;
16076
16123
  updated_at: string;
16077
16124
  };
16078
16125
  Insert: {
16079
16126
  id?: boolean;
16080
16127
  last_cleanup_at?: string | null;
16128
+ last_error?: string | null;
16129
+ last_error_at?: string | null;
16081
16130
  last_sync_at?: string | null;
16082
16131
  updated_at?: string;
16083
16132
  };
16084
16133
  Update: {
16085
16134
  id?: boolean;
16086
16135
  last_cleanup_at?: string | null;
16136
+ last_error?: string | null;
16137
+ last_error_at?: string | null;
16087
16138
  last_sync_at?: string | null;
16088
16139
  updated_at?: string;
16089
16140
  };
@@ -16209,6 +16260,54 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
16209
16260
  };
16210
16261
  Relationships: [];
16211
16262
  };
16263
+ planning_confirmation_log: {
16264
+ Row: {
16265
+ created_at: string;
16266
+ end_at: string;
16267
+ id: string;
16268
+ outbox_id: string | null;
16269
+ planning_item_id: string;
16270
+ reason: string | null;
16271
+ recipient: string | null;
16272
+ start_at: string;
16273
+ status: string;
16274
+ };
16275
+ Insert: {
16276
+ created_at?: string;
16277
+ end_at: string;
16278
+ id?: string;
16279
+ outbox_id?: string | null;
16280
+ planning_item_id: string;
16281
+ reason?: string | null;
16282
+ recipient?: string | null;
16283
+ start_at: string;
16284
+ status: string;
16285
+ };
16286
+ Update: {
16287
+ created_at?: string;
16288
+ end_at?: string;
16289
+ id?: string;
16290
+ outbox_id?: string | null;
16291
+ planning_item_id?: string;
16292
+ reason?: string | null;
16293
+ recipient?: string | null;
16294
+ start_at?: string;
16295
+ status?: string;
16296
+ };
16297
+ Relationships: [{
16298
+ foreignKeyName: "planning_confirmation_log_planning_item_id_fkey";
16299
+ columns: ["planning_item_id"];
16300
+ isOneToOne: false;
16301
+ referencedRelation: "planning_items";
16302
+ referencedColumns: ["id"];
16303
+ }, {
16304
+ foreignKeyName: "planning_confirmation_log_planning_item_id_fkey";
16305
+ columns: ["planning_item_id"];
16306
+ isOneToOne: false;
16307
+ referencedRelation: "planning_overview";
16308
+ referencedColumns: ["id"];
16309
+ }];
16310
+ };
16212
16311
  planning_item_assistants: {
16213
16312
  Row: {
16214
16313
  created_at: string;
@@ -16293,6 +16392,60 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
16293
16392
  referencedColumns: ["id"];
16294
16393
  }];
16295
16394
  };
16395
+ planning_mail_settings: {
16396
+ Row: {
16397
+ body_template: string;
16398
+ cc: string[];
16399
+ connection_id: string | null;
16400
+ created_at: string;
16401
+ enabled: boolean;
16402
+ id: boolean;
16403
+ reply_to: string | null;
16404
+ subject_template: string;
16405
+ timezone: string;
16406
+ updated_at: string;
16407
+ updated_by: string | null;
16408
+ };
16409
+ Insert: {
16410
+ body_template?: string;
16411
+ cc?: string[];
16412
+ connection_id?: string | null;
16413
+ created_at?: string;
16414
+ enabled?: boolean;
16415
+ id?: boolean;
16416
+ reply_to?: string | null;
16417
+ subject_template?: string;
16418
+ timezone?: string;
16419
+ updated_at?: string;
16420
+ updated_by?: string | null;
16421
+ };
16422
+ Update: {
16423
+ body_template?: string;
16424
+ cc?: string[];
16425
+ connection_id?: string | null;
16426
+ created_at?: string;
16427
+ enabled?: boolean;
16428
+ id?: boolean;
16429
+ reply_to?: string | null;
16430
+ subject_template?: string;
16431
+ timezone?: string;
16432
+ updated_at?: string;
16433
+ updated_by?: string | null;
16434
+ };
16435
+ Relationships: [{
16436
+ foreignKeyName: "planning_mail_settings_connection_id_fkey";
16437
+ columns: ["connection_id"];
16438
+ isOneToOne: false;
16439
+ referencedRelation: "email_auth_connections";
16440
+ referencedColumns: ["id"];
16441
+ }, {
16442
+ foreignKeyName: "planning_mail_settings_connection_id_fkey";
16443
+ columns: ["connection_id"];
16444
+ isOneToOne: false;
16445
+ referencedRelation: "email_auth_connections_safe";
16446
+ referencedColumns: ["id"];
16447
+ }];
16448
+ };
16296
16449
  planning_monteur_day_locations: {
16297
16450
  Row: {
16298
16451
  created_at: string;
@@ -17771,6 +17924,9 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
17771
17924
  lead_time_days: number | null;
17772
17925
  min_order_quantity: number | null;
17773
17926
  notes: string | null;
17927
+ previous_price_cents: number | null;
17928
+ price_source: string;
17929
+ price_updated_at: string | null;
17774
17930
  product_id: string;
17775
17931
  purchase_price_cents: number | null;
17776
17932
  supplier_article_number: string | null;
@@ -17784,6 +17940,9 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
17784
17940
  lead_time_days?: number | null;
17785
17941
  min_order_quantity?: number | null;
17786
17942
  notes?: string | null;
17943
+ previous_price_cents?: number | null;
17944
+ price_source?: string;
17945
+ price_updated_at?: string | null;
17787
17946
  product_id: string;
17788
17947
  purchase_price_cents?: number | null;
17789
17948
  supplier_article_number?: string | null;
@@ -17797,6 +17956,9 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
17797
17956
  lead_time_days?: number | null;
17798
17957
  min_order_quantity?: number | null;
17799
17958
  notes?: string | null;
17959
+ previous_price_cents?: number | null;
17960
+ price_source?: string;
17961
+ price_updated_at?: string | null;
17800
17962
  product_id?: string;
17801
17963
  purchase_price_cents?: number | null;
17802
17964
  supplier_article_number?: string | null;
@@ -18327,9 +18489,13 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
18327
18489
  purchase_order_items: {
18328
18490
  Row: {
18329
18491
  article_number: string | null;
18492
+ cancel_reason: string | null;
18493
+ cancelled_at: string | null;
18330
18494
  created_at: string;
18331
18495
  delivery_date: string | null;
18332
18496
  id: string;
18497
+ incoming_booked: number;
18498
+ line_status: string;
18333
18499
  name: string;
18334
18500
  note: string | null;
18335
18501
  pot_size: string | null;
@@ -18337,6 +18503,8 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
18337
18503
  product_type: string;
18338
18504
  purchase_order_id: string;
18339
18505
  quantity: number;
18506
+ received_at: string | null;
18507
+ received_booked: number;
18340
18508
  supplier_id: string | null;
18341
18509
  supplier_product_id: string | null;
18342
18510
  unit_price_cents: number;
@@ -18344,9 +18512,13 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
18344
18512
  };
18345
18513
  Insert: {
18346
18514
  article_number?: string | null;
18515
+ cancel_reason?: string | null;
18516
+ cancelled_at?: string | null;
18347
18517
  created_at?: string;
18348
18518
  delivery_date?: string | null;
18349
18519
  id?: string;
18520
+ incoming_booked?: number;
18521
+ line_status?: string;
18350
18522
  name?: string;
18351
18523
  note?: string | null;
18352
18524
  pot_size?: string | null;
@@ -18354,6 +18526,8 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
18354
18526
  product_type?: string;
18355
18527
  purchase_order_id: string;
18356
18528
  quantity?: number;
18529
+ received_at?: string | null;
18530
+ received_booked?: number;
18357
18531
  supplier_id?: string | null;
18358
18532
  supplier_product_id?: string | null;
18359
18533
  unit_price_cents?: number;
@@ -18361,9 +18535,13 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
18361
18535
  };
18362
18536
  Update: {
18363
18537
  article_number?: string | null;
18538
+ cancel_reason?: string | null;
18539
+ cancelled_at?: string | null;
18364
18540
  created_at?: string;
18365
18541
  delivery_date?: string | null;
18366
18542
  id?: string;
18543
+ incoming_booked?: number;
18544
+ line_status?: string;
18367
18545
  name?: string;
18368
18546
  note?: string | null;
18369
18547
  pot_size?: string | null;
@@ -18371,6 +18549,8 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
18371
18549
  product_type?: string;
18372
18550
  purchase_order_id?: string;
18373
18551
  quantity?: number;
18552
+ received_at?: string | null;
18553
+ received_booked?: number;
18374
18554
  supplier_id?: string | null;
18375
18555
  supplier_product_id?: string | null;
18376
18556
  unit_price_cents?: number;
@@ -18474,6 +18654,153 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
18474
18654
  referencedColumns: ["id"];
18475
18655
  }];
18476
18656
  };
18657
+ purchase_request_events: {
18658
+ Row: {
18659
+ created_at: string;
18660
+ details: import("../integrations/supabase/types").Json | null;
18661
+ event_type: string;
18662
+ id: string;
18663
+ request_id: string;
18664
+ };
18665
+ Insert: {
18666
+ created_at?: string;
18667
+ details?: import("../integrations/supabase/types").Json | null;
18668
+ event_type: string;
18669
+ id?: string;
18670
+ request_id: string;
18671
+ };
18672
+ Update: {
18673
+ created_at?: string;
18674
+ details?: import("../integrations/supabase/types").Json | null;
18675
+ event_type?: string;
18676
+ id?: string;
18677
+ request_id?: string;
18678
+ };
18679
+ Relationships: [{
18680
+ foreignKeyName: "purchase_request_events_request_id_fkey";
18681
+ columns: ["request_id"];
18682
+ isOneToOne: false;
18683
+ referencedRelation: "purchase_requests";
18684
+ referencedColumns: ["id"];
18685
+ }];
18686
+ };
18687
+ purchase_request_responses: {
18688
+ Row: {
18689
+ confirmed_date: string | null;
18690
+ confirmed_price_cents: number | null;
18691
+ confirmed_quantity: number;
18692
+ created_at: string;
18693
+ id: string;
18694
+ not_available: boolean;
18695
+ note: string | null;
18696
+ purchase_order_item_id: string;
18697
+ request_id: string;
18698
+ updated_at: string;
18699
+ };
18700
+ Insert: {
18701
+ confirmed_date?: string | null;
18702
+ confirmed_price_cents?: number | null;
18703
+ confirmed_quantity?: number;
18704
+ created_at?: string;
18705
+ id?: string;
18706
+ not_available?: boolean;
18707
+ note?: string | null;
18708
+ purchase_order_item_id: string;
18709
+ request_id: string;
18710
+ updated_at?: string;
18711
+ };
18712
+ Update: {
18713
+ confirmed_date?: string | null;
18714
+ confirmed_price_cents?: number | null;
18715
+ confirmed_quantity?: number;
18716
+ created_at?: string;
18717
+ id?: string;
18718
+ not_available?: boolean;
18719
+ note?: string | null;
18720
+ purchase_order_item_id?: string;
18721
+ request_id?: string;
18722
+ updated_at?: string;
18723
+ };
18724
+ Relationships: [{
18725
+ foreignKeyName: "purchase_request_responses_purchase_order_item_id_fkey";
18726
+ columns: ["purchase_order_item_id"];
18727
+ isOneToOne: false;
18728
+ referencedRelation: "purchase_order_items";
18729
+ referencedColumns: ["id"];
18730
+ }, {
18731
+ foreignKeyName: "purchase_request_responses_request_id_fkey";
18732
+ columns: ["request_id"];
18733
+ isOneToOne: false;
18734
+ referencedRelation: "purchase_requests";
18735
+ referencedColumns: ["id"];
18736
+ }];
18737
+ };
18738
+ purchase_requests: {
18739
+ Row: {
18740
+ created_at: string;
18741
+ expires_at: string;
18742
+ first_viewed_at: string | null;
18743
+ id: string;
18744
+ processed_at: string | null;
18745
+ purchase_order_id: string;
18746
+ responded_at: string | null;
18747
+ sent_at: string;
18748
+ status: string;
18749
+ supplier_id: string | null;
18750
+ supplier_name: string;
18751
+ supplier_note: string | null;
18752
+ to_address: string | null;
18753
+ token_hash: string;
18754
+ updated_at: string;
18755
+ };
18756
+ Insert: {
18757
+ created_at?: string;
18758
+ expires_at?: string;
18759
+ first_viewed_at?: string | null;
18760
+ id?: string;
18761
+ processed_at?: string | null;
18762
+ purchase_order_id: string;
18763
+ responded_at?: string | null;
18764
+ sent_at?: string;
18765
+ status?: string;
18766
+ supplier_id?: string | null;
18767
+ supplier_name?: string;
18768
+ supplier_note?: string | null;
18769
+ to_address?: string | null;
18770
+ token_hash: string;
18771
+ updated_at?: string;
18772
+ };
18773
+ Update: {
18774
+ created_at?: string;
18775
+ expires_at?: string;
18776
+ first_viewed_at?: string | null;
18777
+ id?: string;
18778
+ processed_at?: string | null;
18779
+ purchase_order_id?: string;
18780
+ responded_at?: string | null;
18781
+ sent_at?: string;
18782
+ status?: string;
18783
+ supplier_id?: string | null;
18784
+ supplier_name?: string;
18785
+ supplier_note?: string | null;
18786
+ to_address?: string | null;
18787
+ token_hash?: string;
18788
+ updated_at?: string;
18789
+ };
18790
+ Relationships: [{
18791
+ foreignKeyName: "purchase_requests_purchase_order_id_fkey";
18792
+ columns: ["purchase_order_id"];
18793
+ isOneToOne: false;
18794
+ referencedRelation: "purchase_orders";
18795
+ referencedColumns: ["id"];
18796
+ }, {
18797
+ foreignKeyName: "purchase_requests_supplier_id_fkey";
18798
+ columns: ["supplier_id"];
18799
+ isOneToOne: false;
18800
+ referencedRelation: "suppliers";
18801
+ referencedColumns: ["id"];
18802
+ }];
18803
+ };
18477
18804
  reception_notifications: {
18478
18805
  Row: {
18479
18806
  booking_id: string | null;
@@ -22899,7 +23226,7 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
22899
23226
  created_at: string;
22900
23227
  default_quantity: number;
22901
23228
  description: string | null;
22902
- duration_minutes: number | null;
23229
+ duration_minutes: number;
22903
23230
  id: string;
22904
23231
  mandaat_type: string | null;
22905
23232
  name: string;
@@ -22916,7 +23243,7 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
22916
23243
  created_at?: string;
22917
23244
  default_quantity?: number;
22918
23245
  description?: string | null;
22919
- duration_minutes?: number | null;
23246
+ duration_minutes?: number;
22920
23247
  id?: string;
22921
23248
  mandaat_type?: string | null;
22922
23249
  name: string;
@@ -22933,7 +23260,7 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
22933
23260
  created_at?: string;
22934
23261
  default_quantity?: number;
22935
23262
  description?: string | null;
22936
- duration_minutes?: number | null;
23263
+ duration_minutes?: number;
22937
23264
  id?: string;
22938
23265
  mandaat_type?: string | null;
22939
23266
  name?: string;
@@ -25929,6 +26256,31 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
25929
26256
  };
25930
26257
  Returns: import("../integrations/supabase/types").Json;
25931
26258
  };
26259
+ inkoop_cancel_line: {
26260
+ Args: {
26261
+ _item_id: string;
26262
+ _reason: string;
26263
+ };
26264
+ Returns: string;
26265
+ };
26266
+ inkoop_get_supplier_request: {
26267
+ Args: {
26268
+ _token: string;
26269
+ };
26270
+ Returns: import("../integrations/supabase/types").Json;
26271
+ };
26272
+ inkoop_hash_token: {
26273
+ Args: {
26274
+ _token: string;
26275
+ };
26276
+ Returns: string;
26277
+ };
26278
+ inkoop_html_escape: {
26279
+ Args: {
26280
+ _t: string;
26281
+ };
26282
+ Returns: string;
26283
+ };
25932
26284
  inkoop_list_artikelen: {
25933
26285
  Args: never;
25934
26286
  Returns: {
@@ -25953,9 +26305,17 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
25953
26305
  Args: never;
25954
26306
  Returns: string;
25955
26307
  };
26308
+ inkoop_process_request: {
26309
+ Args: {
26310
+ _request_id: string;
26311
+ };
26312
+ Returns: undefined;
26313
+ };
25956
26314
  inkoop_send_order: {
25957
26315
  Args: {
26316
+ _base_url?: string;
25958
26317
  _order_id: string;
26318
+ _resend?: boolean;
25959
26319
  };
25960
26320
  Returns: {
25961
26321
  outbox_id: string;
@@ -25970,6 +26330,26 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
25970
26330
  };
25971
26331
  Returns: undefined;
25972
26332
  };
26333
+ inkoop_stock_key: {
26334
+ Args: {
26335
+ p_product_id: string;
26336
+ };
26337
+ Returns: string;
26338
+ };
26339
+ inkoop_submit_supplier_response: {
26340
+ Args: {
26341
+ _lines: import("../integrations/supabase/types").Json;
26342
+ _note?: string;
26343
+ _token: string;
26344
+ };
26345
+ Returns: import("../integrations/supabase/types").Json;
26346
+ };
26347
+ inkoop_sync_item_stock: {
26348
+ Args: {
26349
+ p_item_id: string;
26350
+ };
26351
+ Returns: undefined;
26352
+ };
25973
26353
  instructie_get: {
25974
26354
  Args: {
25975
26355
  _sleutel: string;
@@ -26130,6 +26510,27 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
26130
26510
  };
26131
26511
  Returns: boolean;
26132
26512
  };
26513
+ layout_print_document: {
26514
+ Args: {
26515
+ _documentnaam: string;
26516
+ _documenttype: string;
26517
+ _herkomst?: string;
26518
+ _idempotentie_sleutel?: string;
26519
+ _is_herprint?: boolean;
26520
+ _kopieen?: number;
26521
+ _layout_id?: string;
26522
+ _payload?: import("../integrations/supabase/types").Json;
26523
+ _pdf_base64?: string;
26524
+ _pdf_url?: string;
26525
+ _print_plek_id?: string;
26526
+ _werkplek?: string;
26527
+ };
26528
+ Returns: {
26529
+ bestaand: boolean;
26530
+ job_id: string;
26531
+ printer_id: string;
26532
+ }[];
26533
+ };
26133
26534
  list_medewerkers: {
26134
26535
  Args: never;
26135
26536
  Returns: {
@@ -26407,6 +26808,12 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
26407
26808
  };
26408
26809
  Returns: number;
26409
26810
  };
26811
+ logistics_cart_barcode_opschonen: {
26812
+ Args: {
26813
+ p_portie?: number;
26814
+ };
26815
+ Returns: import("../integrations/supabase/types").Json;
26816
+ };
26410
26817
  logistics_cart_barcode_value: {
26411
26818
  Args: {
26412
26819
  _cart_id: string;
@@ -26826,6 +27233,13 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
26826
27233
  };
26827
27234
  Returns: import("../integrations/supabase/types").Json;
26828
27235
  };
27236
+ logistics_control_scan_print_own: {
27237
+ Args: {
27238
+ p_is_herprint?: boolean;
27239
+ p_scan_id: string;
27240
+ };
27241
+ Returns: import("../integrations/supabase/types").Json;
27242
+ };
26829
27243
  logistics_control_scan_retry: {
26830
27244
  Args: {
26831
27245
  _id: string;
@@ -27730,6 +28144,21 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
27730
28144
  };
27731
28145
  Returns: import("../integrations/supabase/types").Json;
27732
28146
  };
28147
+ logistics_print_via_layout: {
28148
+ Args: {
28149
+ _documentnaam: string;
28150
+ _documenttype: string;
28151
+ _herkomst: string;
28152
+ _idempotentie_sleutel: string;
28153
+ _is_herprint: boolean;
28154
+ _layout_id: string;
28155
+ _payload: import("../integrations/supabase/types").Json;
28156
+ _pdf_base64: string;
28157
+ _pdf_url: string;
28158
+ _print_plek_id: string;
28159
+ };
28160
+ Returns: import("../integrations/supabase/types").Json;
28161
+ };
27733
28162
  logistics_prune_buffer_member_queue: {
27734
28163
  Args: never;
27735
28164
  Returns: number;
@@ -28016,6 +28445,13 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
28016
28445
  };
28017
28446
  Returns: string;
28018
28447
  };
28448
+ logistics_shipping_note_status: {
28449
+ Args: {
28450
+ p_cart_id?: string;
28451
+ p_slip_job_id?: string;
28452
+ };
28453
+ Returns: import("../integrations/supabase/types").Json;
28454
+ };
28019
28455
  logistics_shipping_notes_wake_all: {
28020
28456
  Args: never;
28021
28457
  Returns: import("../integrations/supabase/types").Json;
@@ -28078,6 +28514,12 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
28078
28514
  };
28079
28515
  Returns: undefined;
28080
28516
  };
28517
+ logistics_slip_note_retry: {
28518
+ Args: {
28519
+ _id: string;
28520
+ };
28521
+ Returns: import("../integrations/supabase/types").Json;
28522
+ };
28081
28523
  logistics_sticker_follows_slip: {
28082
28524
  Args: never;
28083
28525
  Returns: boolean;
@@ -28822,6 +29264,10 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
28822
29264
  };
28823
29265
  Returns: string;
28824
29266
  };
29267
+ pick_is_reference_admin: {
29268
+ Args: never;
29269
+ Returns: boolean;
29270
+ };
28825
29271
  pick_mark_printed: {
28826
29272
  Args: {
28827
29273
  _queue_item_id: string;
@@ -29245,6 +29691,12 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
29245
29691
  };
29246
29692
  Returns: import("../integrations/supabase/types").Json;
29247
29693
  };
29694
+ pick_verify_rows: {
29695
+ Args: {
29696
+ _rows: import("../integrations/supabase/types").Json;
29697
+ };
29698
+ Returns: import("../integrations/supabase/types").Json;
29699
+ };
29248
29700
  pickstation_get_orders_raw: {
29249
29701
  Args: never;
29250
29702
  Returns: import("../integrations/supabase/types").Json;
@@ -29425,6 +29877,12 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
29425
29877
  };
29426
29878
  Returns: import("../integrations/supabase/types").Json;
29427
29879
  };
29880
+ quote_create_from_scratch: {
29881
+ Args: {
29882
+ _payload: import("../integrations/supabase/types").Json;
29883
+ };
29884
+ Returns: import("../integrations/supabase/types").Json;
29885
+ };
29428
29886
  quote_create_from_source: {
29429
29887
  Args: {
29430
29888
  _payload?: import("../integrations/supabase/types").Json;
@@ -29475,6 +29933,13 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
29475
29933
  };
29476
29934
  Returns: string;
29477
29935
  };
29936
+ quote_sync_work_order: {
29937
+ Args: {
29938
+ _monteur_instructies?: string;
29939
+ _offerte_id: string;
29940
+ };
29941
+ Returns: boolean;
29942
+ };
29478
29943
  recompute_all_reserved_stock: {
29479
29944
  Args: never;
29480
29945
  Returns: undefined;
@@ -29695,6 +30160,13 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
29695
30160
  };
29696
30161
  Returns: import("../integrations/supabase/types").Json;
29697
30162
  };
30163
+ scan_controleer_pincode: {
30164
+ Args: {
30165
+ p_pin: string;
30166
+ p_scanner_id: string;
30167
+ };
30168
+ Returns: boolean;
30169
+ };
29698
30170
  scan_dashboard_stats: {
29699
30171
  Args: {
29700
30172
  p_dagen?: number;
@@ -29714,6 +30186,12 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
29714
30186
  };
29715
30187
  Returns: import("../integrations/supabase/types").Json;
29716
30188
  };
30189
+ scan_heeft_pincode: {
30190
+ Args: {
30191
+ p_scanner_id: string;
30192
+ };
30193
+ Returns: boolean;
30194
+ };
29717
30195
  scan_kar_compleet: {
29718
30196
  Args: {
29719
30197
  p_allow_reprint?: boolean;
@@ -29731,6 +30209,7 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
29731
30209
  Args: {
29732
30210
  p_code: string;
29733
30211
  p_latency_ms?: number;
30212
+ p_medewerker?: string;
29734
30213
  p_message?: string;
29735
30214
  p_result: string;
29736
30215
  p_scanner_key?: string;
@@ -29803,6 +30282,22 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
29803
30282
  };
29804
30283
  Returns: undefined;
29805
30284
  };
30285
+ scan_scanner_info: {
30286
+ Args: {
30287
+ p_slug: string;
30288
+ };
30289
+ Returns: {
30290
+ actief: boolean;
30291
+ heeft_pincode: boolean;
30292
+ id: string;
30293
+ naam: string;
30294
+ omschrijving: string;
30295
+ printer_id: string;
30296
+ type: string;
30297
+ vereist_medewerker: boolean;
30298
+ werkplek: string;
30299
+ }[];
30300
+ };
29806
30301
  scan_sessie_annuleren: {
29807
30302
  Args: {
29808
30303
  p_sessie_id: string;
@@ -30765,6 +31260,21 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
30765
31260
  };
30766
31261
  Returns: import("../integrations/supabase/types").Json;
30767
31262
  };
31263
+ wo_list_colleague_planning: {
31264
+ Args: {
31265
+ _from: string;
31266
+ _monteur_id: string;
31267
+ _to: string;
31268
+ };
31269
+ Returns: {
31270
+ end_at: string;
31271
+ id: string;
31272
+ role: string;
31273
+ start_at: string;
31274
+ status: string;
31275
+ werkbon_id: string;
31276
+ }[];
31277
+ };
30768
31278
  wo_list_offerte_requests: {
30769
31279
  Args: {
30770
31280
  _status?: string;
@@ -31582,6 +32092,27 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
31582
32092
  };
31583
32093
  Relationships: [];
31584
32094
  };
32095
+ artikelen_instellingen: {
32096
+ Row: {
32097
+ created_at: string;
32098
+ id: number;
32099
+ marge_procent: number;
32100
+ updated_at: string;
32101
+ };
32102
+ Insert: {
32103
+ created_at?: string;
32104
+ id?: number;
32105
+ marge_procent?: number;
32106
+ updated_at?: string;
32107
+ };
32108
+ Update: {
32109
+ created_at?: string;
32110
+ id?: number;
32111
+ marge_procent?: number;
32112
+ updated_at?: string;
32113
+ };
32114
+ Relationships: [];
32115
+ };
31585
32116
  artikelen_veldconfig: {
31586
32117
  Row: {
31587
32118
  bron_pad: string;
@@ -41257,6 +41788,30 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
41257
41788
  };
41258
41789
  Relationships: [];
41259
41790
  };
41791
+ logistics_cart_barcode_archief: {
41792
+ Row: {
41793
+ barcode: string;
41794
+ cart_id: string;
41795
+ created_at: string | null;
41796
+ gearchiveerd_op: string;
41797
+ order_id: string | null;
41798
+ };
41799
+ Insert: {
41800
+ barcode: string;
41801
+ cart_id: string;
41802
+ created_at?: string | null;
41803
+ gearchiveerd_op?: string;
41804
+ order_id?: string | null;
41805
+ };
41806
+ Update: {
41807
+ barcode?: string;
41808
+ cart_id?: string;
41809
+ created_at?: string | null;
41810
+ gearchiveerd_op?: string;
41811
+ order_id?: string | null;
41812
+ };
41813
+ Relationships: [];
41814
+ };
41260
41815
  logistics_control_scan: {
41261
41816
  Row: {
41262
41817
  approved_at: string | null;
@@ -46910,18 +47465,24 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
46910
47465
  Row: {
46911
47466
  id: boolean;
46912
47467
  last_cleanup_at: string | null;
47468
+ last_error: string | null;
47469
+ last_error_at: string | null;
46913
47470
  last_sync_at: string | null;
46914
47471
  updated_at: string;
46915
47472
  };
46916
47473
  Insert: {
46917
47474
  id?: boolean;
46918
47475
  last_cleanup_at?: string | null;
47476
+ last_error?: string | null;
47477
+ last_error_at?: string | null;
46919
47478
  last_sync_at?: string | null;
46920
47479
  updated_at?: string;
46921
47480
  };
46922
47481
  Update: {
46923
47482
  id?: boolean;
46924
47483
  last_cleanup_at?: string | null;
47484
+ last_error?: string | null;
47485
+ last_error_at?: string | null;
46925
47486
  last_sync_at?: string | null;
46926
47487
  updated_at?: string;
46927
47488
  };
@@ -47047,6 +47608,54 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
47047
47608
  };
47048
47609
  Relationships: [];
47049
47610
  };
47611
+ planning_confirmation_log: {
47612
+ Row: {
47613
+ created_at: string;
47614
+ end_at: string;
47615
+ id: string;
47616
+ outbox_id: string | null;
47617
+ planning_item_id: string;
47618
+ reason: string | null;
47619
+ recipient: string | null;
47620
+ start_at: string;
47621
+ status: string;
47622
+ };
47623
+ Insert: {
47624
+ created_at?: string;
47625
+ end_at: string;
47626
+ id?: string;
47627
+ outbox_id?: string | null;
47628
+ planning_item_id: string;
47629
+ reason?: string | null;
47630
+ recipient?: string | null;
47631
+ start_at: string;
47632
+ status: string;
47633
+ };
47634
+ Update: {
47635
+ created_at?: string;
47636
+ end_at?: string;
47637
+ id?: string;
47638
+ outbox_id?: string | null;
47639
+ planning_item_id?: string;
47640
+ reason?: string | null;
47641
+ recipient?: string | null;
47642
+ start_at?: string;
47643
+ status?: string;
47644
+ };
47645
+ Relationships: [{
47646
+ foreignKeyName: "planning_confirmation_log_planning_item_id_fkey";
47647
+ columns: ["planning_item_id"];
47648
+ isOneToOne: false;
47649
+ referencedRelation: "planning_items";
47650
+ referencedColumns: ["id"];
47651
+ }, {
47652
+ foreignKeyName: "planning_confirmation_log_planning_item_id_fkey";
47653
+ columns: ["planning_item_id"];
47654
+ isOneToOne: false;
47655
+ referencedRelation: "planning_overview";
47656
+ referencedColumns: ["id"];
47657
+ }];
47658
+ };
47050
47659
  planning_item_assistants: {
47051
47660
  Row: {
47052
47661
  created_at: string;
@@ -47131,6 +47740,60 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
47131
47740
  referencedColumns: ["id"];
47132
47741
  }];
47133
47742
  };
47743
+ planning_mail_settings: {
47744
+ Row: {
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
+ Insert: {
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
+ Update: {
47771
+ body_template?: string;
47772
+ cc?: string[];
47773
+ connection_id?: string | null;
47774
+ created_at?: string;
47775
+ enabled?: boolean;
47776
+ id?: boolean;
47777
+ reply_to?: string | null;
47778
+ subject_template?: string;
47779
+ timezone?: string;
47780
+ updated_at?: string;
47781
+ updated_by?: string | null;
47782
+ };
47783
+ Relationships: [{
47784
+ foreignKeyName: "planning_mail_settings_connection_id_fkey";
47785
+ columns: ["connection_id"];
47786
+ isOneToOne: false;
47787
+ referencedRelation: "email_auth_connections";
47788
+ referencedColumns: ["id"];
47789
+ }, {
47790
+ foreignKeyName: "planning_mail_settings_connection_id_fkey";
47791
+ columns: ["connection_id"];
47792
+ isOneToOne: false;
47793
+ referencedRelation: "email_auth_connections_safe";
47794
+ referencedColumns: ["id"];
47795
+ }];
47796
+ };
47134
47797
  planning_monteur_day_locations: {
47135
47798
  Row: {
47136
47799
  created_at: string;
@@ -48609,6 +49272,9 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
48609
49272
  lead_time_days: number | null;
48610
49273
  min_order_quantity: number | null;
48611
49274
  notes: string | null;
49275
+ previous_price_cents: number | null;
49276
+ price_source: string;
49277
+ price_updated_at: string | null;
48612
49278
  product_id: string;
48613
49279
  purchase_price_cents: number | null;
48614
49280
  supplier_article_number: string | null;
@@ -48622,6 +49288,9 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
48622
49288
  lead_time_days?: number | null;
48623
49289
  min_order_quantity?: number | null;
48624
49290
  notes?: string | null;
49291
+ previous_price_cents?: number | null;
49292
+ price_source?: string;
49293
+ price_updated_at?: string | null;
48625
49294
  product_id: string;
48626
49295
  purchase_price_cents?: number | null;
48627
49296
  supplier_article_number?: string | null;
@@ -48635,6 +49304,9 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
48635
49304
  lead_time_days?: number | null;
48636
49305
  min_order_quantity?: number | null;
48637
49306
  notes?: string | null;
49307
+ previous_price_cents?: number | null;
49308
+ price_source?: string;
49309
+ price_updated_at?: string | null;
48638
49310
  product_id?: string;
48639
49311
  purchase_price_cents?: number | null;
48640
49312
  supplier_article_number?: string | null;
@@ -49165,9 +49837,13 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
49165
49837
  purchase_order_items: {
49166
49838
  Row: {
49167
49839
  article_number: string | null;
49840
+ cancel_reason: string | null;
49841
+ cancelled_at: string | null;
49168
49842
  created_at: string;
49169
49843
  delivery_date: string | null;
49170
49844
  id: string;
49845
+ incoming_booked: number;
49846
+ line_status: string;
49171
49847
  name: string;
49172
49848
  note: string | null;
49173
49849
  pot_size: string | null;
@@ -49175,6 +49851,8 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
49175
49851
  product_type: string;
49176
49852
  purchase_order_id: string;
49177
49853
  quantity: number;
49854
+ received_at: string | null;
49855
+ received_booked: number;
49178
49856
  supplier_id: string | null;
49179
49857
  supplier_product_id: string | null;
49180
49858
  unit_price_cents: number;
@@ -49182,9 +49860,13 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
49182
49860
  };
49183
49861
  Insert: {
49184
49862
  article_number?: string | null;
49863
+ cancel_reason?: string | null;
49864
+ cancelled_at?: string | null;
49185
49865
  created_at?: string;
49186
49866
  delivery_date?: string | null;
49187
49867
  id?: string;
49868
+ incoming_booked?: number;
49869
+ line_status?: string;
49188
49870
  name?: string;
49189
49871
  note?: string | null;
49190
49872
  pot_size?: string | null;
@@ -49192,6 +49874,8 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
49192
49874
  product_type?: string;
49193
49875
  purchase_order_id: string;
49194
49876
  quantity?: number;
49877
+ received_at?: string | null;
49878
+ received_booked?: number;
49195
49879
  supplier_id?: string | null;
49196
49880
  supplier_product_id?: string | null;
49197
49881
  unit_price_cents?: number;
@@ -49199,9 +49883,13 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
49199
49883
  };
49200
49884
  Update: {
49201
49885
  article_number?: string | null;
49886
+ cancel_reason?: string | null;
49887
+ cancelled_at?: string | null;
49202
49888
  created_at?: string;
49203
49889
  delivery_date?: string | null;
49204
49890
  id?: string;
49891
+ incoming_booked?: number;
49892
+ line_status?: string;
49205
49893
  name?: string;
49206
49894
  note?: string | null;
49207
49895
  pot_size?: string | null;
@@ -49209,6 +49897,8 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
49209
49897
  product_type?: string;
49210
49898
  purchase_order_id?: string;
49211
49899
  quantity?: number;
49900
+ received_at?: string | null;
49901
+ received_booked?: number;
49212
49902
  supplier_id?: string | null;
49213
49903
  supplier_product_id?: string | null;
49214
49904
  unit_price_cents?: number;
@@ -49312,6 +50002,153 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
49312
50002
  referencedColumns: ["id"];
49313
50003
  }];
49314
50004
  };
50005
+ purchase_request_events: {
50006
+ Row: {
50007
+ created_at: string;
50008
+ details: import("../integrations/supabase/types").Json | null;
50009
+ event_type: string;
50010
+ id: string;
50011
+ request_id: string;
50012
+ };
50013
+ Insert: {
50014
+ created_at?: string;
50015
+ details?: import("../integrations/supabase/types").Json | null;
50016
+ event_type: string;
50017
+ id?: string;
50018
+ request_id: string;
50019
+ };
50020
+ Update: {
50021
+ created_at?: string;
50022
+ details?: import("../integrations/supabase/types").Json | null;
50023
+ event_type?: string;
50024
+ id?: string;
50025
+ request_id?: string;
50026
+ };
50027
+ Relationships: [{
50028
+ foreignKeyName: "purchase_request_events_request_id_fkey";
50029
+ columns: ["request_id"];
50030
+ isOneToOne: false;
50031
+ referencedRelation: "purchase_requests";
50032
+ referencedColumns: ["id"];
50033
+ }];
50034
+ };
50035
+ purchase_request_responses: {
50036
+ Row: {
50037
+ confirmed_date: string | null;
50038
+ confirmed_price_cents: number | null;
50039
+ confirmed_quantity: number;
50040
+ created_at: string;
50041
+ id: string;
50042
+ not_available: boolean;
50043
+ note: string | null;
50044
+ purchase_order_item_id: string;
50045
+ request_id: string;
50046
+ updated_at: string;
50047
+ };
50048
+ Insert: {
50049
+ confirmed_date?: string | null;
50050
+ confirmed_price_cents?: number | null;
50051
+ confirmed_quantity?: number;
50052
+ created_at?: string;
50053
+ id?: string;
50054
+ not_available?: boolean;
50055
+ note?: string | null;
50056
+ purchase_order_item_id: string;
50057
+ request_id: string;
50058
+ updated_at?: string;
50059
+ };
50060
+ Update: {
50061
+ confirmed_date?: string | null;
50062
+ confirmed_price_cents?: number | null;
50063
+ confirmed_quantity?: number;
50064
+ created_at?: string;
50065
+ id?: string;
50066
+ not_available?: boolean;
50067
+ note?: string | null;
50068
+ purchase_order_item_id?: string;
50069
+ request_id?: string;
50070
+ updated_at?: string;
50071
+ };
50072
+ Relationships: [{
50073
+ foreignKeyName: "purchase_request_responses_purchase_order_item_id_fkey";
50074
+ columns: ["purchase_order_item_id"];
50075
+ isOneToOne: false;
50076
+ referencedRelation: "purchase_order_items";
50077
+ referencedColumns: ["id"];
50078
+ }, {
50079
+ foreignKeyName: "purchase_request_responses_request_id_fkey";
50080
+ columns: ["request_id"];
50081
+ isOneToOne: false;
50082
+ referencedRelation: "purchase_requests";
50083
+ referencedColumns: ["id"];
50084
+ }];
50085
+ };
50086
+ purchase_requests: {
50087
+ Row: {
50088
+ created_at: string;
50089
+ expires_at: string;
50090
+ first_viewed_at: string | null;
50091
+ id: string;
50092
+ processed_at: string | null;
50093
+ purchase_order_id: string;
50094
+ responded_at: string | null;
50095
+ sent_at: string;
50096
+ status: string;
50097
+ supplier_id: string | null;
50098
+ supplier_name: string;
50099
+ supplier_note: string | null;
50100
+ to_address: string | null;
50101
+ token_hash: string;
50102
+ updated_at: string;
50103
+ };
50104
+ Insert: {
50105
+ created_at?: string;
50106
+ expires_at?: string;
50107
+ first_viewed_at?: string | null;
50108
+ id?: string;
50109
+ processed_at?: string | null;
50110
+ purchase_order_id: string;
50111
+ responded_at?: string | null;
50112
+ sent_at?: string;
50113
+ status?: string;
50114
+ supplier_id?: string | null;
50115
+ supplier_name?: string;
50116
+ supplier_note?: string | null;
50117
+ to_address?: string | null;
50118
+ token_hash: string;
50119
+ updated_at?: string;
50120
+ };
50121
+ Update: {
50122
+ created_at?: string;
50123
+ expires_at?: string;
50124
+ first_viewed_at?: string | null;
50125
+ id?: string;
50126
+ processed_at?: string | null;
50127
+ purchase_order_id?: string;
50128
+ responded_at?: string | null;
50129
+ sent_at?: string;
50130
+ status?: string;
50131
+ supplier_id?: string | null;
50132
+ supplier_name?: string;
50133
+ supplier_note?: string | null;
50134
+ to_address?: string | null;
50135
+ token_hash?: string;
50136
+ updated_at?: string;
50137
+ };
50138
+ Relationships: [{
50139
+ foreignKeyName: "purchase_requests_purchase_order_id_fkey";
50140
+ columns: ["purchase_order_id"];
50141
+ isOneToOne: false;
50142
+ referencedRelation: "purchase_orders";
50143
+ referencedColumns: ["id"];
50144
+ }, {
50145
+ foreignKeyName: "purchase_requests_supplier_id_fkey";
50146
+ columns: ["supplier_id"];
50147
+ isOneToOne: false;
50148
+ referencedRelation: "suppliers";
50149
+ referencedColumns: ["id"];
50150
+ }];
50151
+ };
49315
50152
  reception_notifications: {
49316
50153
  Row: {
49317
50154
  booking_id: string | null;
@@ -53737,7 +54574,7 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
53737
54574
  created_at: string;
53738
54575
  default_quantity: number;
53739
54576
  description: string | null;
53740
- duration_minutes: number | null;
54577
+ duration_minutes: number;
53741
54578
  id: string;
53742
54579
  mandaat_type: string | null;
53743
54580
  name: string;
@@ -53754,7 +54591,7 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
53754
54591
  created_at?: string;
53755
54592
  default_quantity?: number;
53756
54593
  description?: string | null;
53757
- duration_minutes?: number | null;
54594
+ duration_minutes?: number;
53758
54595
  id?: string;
53759
54596
  mandaat_type?: string | null;
53760
54597
  name: string;
@@ -53771,7 +54608,7 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
53771
54608
  created_at?: string;
53772
54609
  default_quantity?: number;
53773
54610
  description?: string | null;
53774
- duration_minutes?: number | null;
54611
+ duration_minutes?: number;
53775
54612
  id?: string;
53776
54613
  mandaat_type?: string | null;
53777
54614
  name?: string;
@@ -56767,6 +57604,31 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
56767
57604
  };
56768
57605
  Returns: import("../integrations/supabase/types").Json;
56769
57606
  };
57607
+ inkoop_cancel_line: {
57608
+ Args: {
57609
+ _item_id: string;
57610
+ _reason: string;
57611
+ };
57612
+ Returns: string;
57613
+ };
57614
+ inkoop_get_supplier_request: {
57615
+ Args: {
57616
+ _token: string;
57617
+ };
57618
+ Returns: import("../integrations/supabase/types").Json;
57619
+ };
57620
+ inkoop_hash_token: {
57621
+ Args: {
57622
+ _token: string;
57623
+ };
57624
+ Returns: string;
57625
+ };
57626
+ inkoop_html_escape: {
57627
+ Args: {
57628
+ _t: string;
57629
+ };
57630
+ Returns: string;
57631
+ };
56770
57632
  inkoop_list_artikelen: {
56771
57633
  Args: never;
56772
57634
  Returns: {
@@ -56791,9 +57653,17 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
56791
57653
  Args: never;
56792
57654
  Returns: string;
56793
57655
  };
57656
+ inkoop_process_request: {
57657
+ Args: {
57658
+ _request_id: string;
57659
+ };
57660
+ Returns: undefined;
57661
+ };
56794
57662
  inkoop_send_order: {
56795
57663
  Args: {
57664
+ _base_url?: string;
56796
57665
  _order_id: string;
57666
+ _resend?: boolean;
56797
57667
  };
56798
57668
  Returns: {
56799
57669
  outbox_id: string;
@@ -56808,6 +57678,26 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
56808
57678
  };
56809
57679
  Returns: undefined;
56810
57680
  };
57681
+ inkoop_stock_key: {
57682
+ Args: {
57683
+ p_product_id: string;
57684
+ };
57685
+ Returns: string;
57686
+ };
57687
+ inkoop_submit_supplier_response: {
57688
+ Args: {
57689
+ _lines: import("../integrations/supabase/types").Json;
57690
+ _note?: string;
57691
+ _token: string;
57692
+ };
57693
+ Returns: import("../integrations/supabase/types").Json;
57694
+ };
57695
+ inkoop_sync_item_stock: {
57696
+ Args: {
57697
+ p_item_id: string;
57698
+ };
57699
+ Returns: undefined;
57700
+ };
56811
57701
  instructie_get: {
56812
57702
  Args: {
56813
57703
  _sleutel: string;
@@ -56968,6 +57858,27 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
56968
57858
  };
56969
57859
  Returns: boolean;
56970
57860
  };
57861
+ layout_print_document: {
57862
+ Args: {
57863
+ _documentnaam: string;
57864
+ _documenttype: string;
57865
+ _herkomst?: string;
57866
+ _idempotentie_sleutel?: string;
57867
+ _is_herprint?: boolean;
57868
+ _kopieen?: number;
57869
+ _layout_id?: string;
57870
+ _payload?: import("../integrations/supabase/types").Json;
57871
+ _pdf_base64?: string;
57872
+ _pdf_url?: string;
57873
+ _print_plek_id?: string;
57874
+ _werkplek?: string;
57875
+ };
57876
+ Returns: {
57877
+ bestaand: boolean;
57878
+ job_id: string;
57879
+ printer_id: string;
57880
+ }[];
57881
+ };
56971
57882
  list_medewerkers: {
56972
57883
  Args: never;
56973
57884
  Returns: {
@@ -57245,6 +58156,12 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
57245
58156
  };
57246
58157
  Returns: number;
57247
58158
  };
58159
+ logistics_cart_barcode_opschonen: {
58160
+ Args: {
58161
+ p_portie?: number;
58162
+ };
58163
+ Returns: import("../integrations/supabase/types").Json;
58164
+ };
57248
58165
  logistics_cart_barcode_value: {
57249
58166
  Args: {
57250
58167
  _cart_id: string;
@@ -57664,6 +58581,13 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
57664
58581
  };
57665
58582
  Returns: import("../integrations/supabase/types").Json;
57666
58583
  };
58584
+ logistics_control_scan_print_own: {
58585
+ Args: {
58586
+ p_is_herprint?: boolean;
58587
+ p_scan_id: string;
58588
+ };
58589
+ Returns: import("../integrations/supabase/types").Json;
58590
+ };
57667
58591
  logistics_control_scan_retry: {
57668
58592
  Args: {
57669
58593
  _id: string;
@@ -58568,6 +59492,21 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
58568
59492
  };
58569
59493
  Returns: import("../integrations/supabase/types").Json;
58570
59494
  };
59495
+ logistics_print_via_layout: {
59496
+ Args: {
59497
+ _documentnaam: string;
59498
+ _documenttype: string;
59499
+ _herkomst: string;
59500
+ _idempotentie_sleutel: string;
59501
+ _is_herprint: boolean;
59502
+ _layout_id: string;
59503
+ _payload: import("../integrations/supabase/types").Json;
59504
+ _pdf_base64: string;
59505
+ _pdf_url: string;
59506
+ _print_plek_id: string;
59507
+ };
59508
+ Returns: import("../integrations/supabase/types").Json;
59509
+ };
58571
59510
  logistics_prune_buffer_member_queue: {
58572
59511
  Args: never;
58573
59512
  Returns: number;
@@ -58854,6 +59793,13 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
58854
59793
  };
58855
59794
  Returns: string;
58856
59795
  };
59796
+ logistics_shipping_note_status: {
59797
+ Args: {
59798
+ p_cart_id?: string;
59799
+ p_slip_job_id?: string;
59800
+ };
59801
+ Returns: import("../integrations/supabase/types").Json;
59802
+ };
58857
59803
  logistics_shipping_notes_wake_all: {
58858
59804
  Args: never;
58859
59805
  Returns: import("../integrations/supabase/types").Json;
@@ -58916,6 +59862,12 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
58916
59862
  };
58917
59863
  Returns: undefined;
58918
59864
  };
59865
+ logistics_slip_note_retry: {
59866
+ Args: {
59867
+ _id: string;
59868
+ };
59869
+ Returns: import("../integrations/supabase/types").Json;
59870
+ };
58919
59871
  logistics_sticker_follows_slip: {
58920
59872
  Args: never;
58921
59873
  Returns: boolean;
@@ -59660,6 +60612,10 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
59660
60612
  };
59661
60613
  Returns: string;
59662
60614
  };
60615
+ pick_is_reference_admin: {
60616
+ Args: never;
60617
+ Returns: boolean;
60618
+ };
59663
60619
  pick_mark_printed: {
59664
60620
  Args: {
59665
60621
  _queue_item_id: string;
@@ -60083,6 +61039,12 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
60083
61039
  };
60084
61040
  Returns: import("../integrations/supabase/types").Json;
60085
61041
  };
61042
+ pick_verify_rows: {
61043
+ Args: {
61044
+ _rows: import("../integrations/supabase/types").Json;
61045
+ };
61046
+ Returns: import("../integrations/supabase/types").Json;
61047
+ };
60086
61048
  pickstation_get_orders_raw: {
60087
61049
  Args: never;
60088
61050
  Returns: import("../integrations/supabase/types").Json;
@@ -60263,6 +61225,12 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
60263
61225
  };
60264
61226
  Returns: import("../integrations/supabase/types").Json;
60265
61227
  };
61228
+ quote_create_from_scratch: {
61229
+ Args: {
61230
+ _payload: import("../integrations/supabase/types").Json;
61231
+ };
61232
+ Returns: import("../integrations/supabase/types").Json;
61233
+ };
60266
61234
  quote_create_from_source: {
60267
61235
  Args: {
60268
61236
  _payload?: import("../integrations/supabase/types").Json;
@@ -60313,6 +61281,13 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
60313
61281
  };
60314
61282
  Returns: string;
60315
61283
  };
61284
+ quote_sync_work_order: {
61285
+ Args: {
61286
+ _monteur_instructies?: string;
61287
+ _offerte_id: string;
61288
+ };
61289
+ Returns: boolean;
61290
+ };
60316
61291
  recompute_all_reserved_stock: {
60317
61292
  Args: never;
60318
61293
  Returns: undefined;
@@ -60533,6 +61508,13 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
60533
61508
  };
60534
61509
  Returns: import("../integrations/supabase/types").Json;
60535
61510
  };
61511
+ scan_controleer_pincode: {
61512
+ Args: {
61513
+ p_pin: string;
61514
+ p_scanner_id: string;
61515
+ };
61516
+ Returns: boolean;
61517
+ };
60536
61518
  scan_dashboard_stats: {
60537
61519
  Args: {
60538
61520
  p_dagen?: number;
@@ -60552,6 +61534,12 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
60552
61534
  };
60553
61535
  Returns: import("../integrations/supabase/types").Json;
60554
61536
  };
61537
+ scan_heeft_pincode: {
61538
+ Args: {
61539
+ p_scanner_id: string;
61540
+ };
61541
+ Returns: boolean;
61542
+ };
60555
61543
  scan_kar_compleet: {
60556
61544
  Args: {
60557
61545
  p_allow_reprint?: boolean;
@@ -60569,6 +61557,7 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
60569
61557
  Args: {
60570
61558
  p_code: string;
60571
61559
  p_latency_ms?: number;
61560
+ p_medewerker?: string;
60572
61561
  p_message?: string;
60573
61562
  p_result: string;
60574
61563
  p_scanner_key?: string;
@@ -60641,6 +61630,22 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
60641
61630
  };
60642
61631
  Returns: undefined;
60643
61632
  };
61633
+ scan_scanner_info: {
61634
+ Args: {
61635
+ p_slug: string;
61636
+ };
61637
+ Returns: {
61638
+ actief: boolean;
61639
+ heeft_pincode: boolean;
61640
+ id: string;
61641
+ naam: string;
61642
+ omschrijving: string;
61643
+ printer_id: string;
61644
+ type: string;
61645
+ vereist_medewerker: boolean;
61646
+ werkplek: string;
61647
+ }[];
61648
+ };
60644
61649
  scan_sessie_annuleren: {
60645
61650
  Args: {
60646
61651
  p_sessie_id: string;
@@ -61603,6 +62608,21 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
61603
62608
  };
61604
62609
  Returns: import("../integrations/supabase/types").Json;
61605
62610
  };
62611
+ wo_list_colleague_planning: {
62612
+ Args: {
62613
+ _from: string;
62614
+ _monteur_id: string;
62615
+ _to: string;
62616
+ };
62617
+ Returns: {
62618
+ end_at: string;
62619
+ id: string;
62620
+ role: string;
62621
+ start_at: string;
62622
+ status: string;
62623
+ werkbon_id: string;
62624
+ }[];
62625
+ };
61606
62626
  wo_list_offerte_requests: {
61607
62627
  Args: {
61608
62628
  _status?: string;