@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
@@ -734,6 +734,27 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
734
734
  };
735
735
  Relationships: [];
736
736
  };
737
+ artikelen_instellingen: {
738
+ Row: {
739
+ created_at: string;
740
+ id: number;
741
+ marge_procent: number;
742
+ updated_at: string;
743
+ };
744
+ Insert: {
745
+ created_at?: string;
746
+ id?: number;
747
+ marge_procent?: number;
748
+ updated_at?: string;
749
+ };
750
+ Update: {
751
+ created_at?: string;
752
+ id?: number;
753
+ marge_procent?: number;
754
+ updated_at?: string;
755
+ };
756
+ Relationships: [];
757
+ };
737
758
  artikelen_veldconfig: {
738
759
  Row: {
739
760
  bron_pad: string;
@@ -10409,6 +10430,30 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
10409
10430
  };
10410
10431
  Relationships: [];
10411
10432
  };
10433
+ logistics_cart_barcode_archief: {
10434
+ Row: {
10435
+ barcode: string;
10436
+ cart_id: string;
10437
+ created_at: string | null;
10438
+ gearchiveerd_op: string;
10439
+ order_id: string | null;
10440
+ };
10441
+ Insert: {
10442
+ barcode: string;
10443
+ cart_id: string;
10444
+ created_at?: string | null;
10445
+ gearchiveerd_op?: string;
10446
+ order_id?: string | null;
10447
+ };
10448
+ Update: {
10449
+ barcode?: string;
10450
+ cart_id?: string;
10451
+ created_at?: string | null;
10452
+ gearchiveerd_op?: string;
10453
+ order_id?: string | null;
10454
+ };
10455
+ Relationships: [];
10456
+ };
10412
10457
  logistics_control_scan: {
10413
10458
  Row: {
10414
10459
  approved_at: string | null;
@@ -16062,18 +16107,24 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
16062
16107
  Row: {
16063
16108
  id: boolean;
16064
16109
  last_cleanup_at: string | null;
16110
+ last_error: string | null;
16111
+ last_error_at: string | null;
16065
16112
  last_sync_at: string | null;
16066
16113
  updated_at: string;
16067
16114
  };
16068
16115
  Insert: {
16069
16116
  id?: boolean;
16070
16117
  last_cleanup_at?: string | null;
16118
+ last_error?: string | null;
16119
+ last_error_at?: string | null;
16071
16120
  last_sync_at?: string | null;
16072
16121
  updated_at?: string;
16073
16122
  };
16074
16123
  Update: {
16075
16124
  id?: boolean;
16076
16125
  last_cleanup_at?: string | null;
16126
+ last_error?: string | null;
16127
+ last_error_at?: string | null;
16077
16128
  last_sync_at?: string | null;
16078
16129
  updated_at?: string;
16079
16130
  };
@@ -16199,6 +16250,54 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
16199
16250
  };
16200
16251
  Relationships: [];
16201
16252
  };
16253
+ planning_confirmation_log: {
16254
+ Row: {
16255
+ created_at: string;
16256
+ end_at: string;
16257
+ id: string;
16258
+ outbox_id: string | null;
16259
+ planning_item_id: string;
16260
+ reason: string | null;
16261
+ recipient: string | null;
16262
+ start_at: string;
16263
+ status: string;
16264
+ };
16265
+ Insert: {
16266
+ created_at?: string;
16267
+ end_at: string;
16268
+ id?: string;
16269
+ outbox_id?: string | null;
16270
+ planning_item_id: string;
16271
+ reason?: string | null;
16272
+ recipient?: string | null;
16273
+ start_at: string;
16274
+ status: string;
16275
+ };
16276
+ Update: {
16277
+ created_at?: string;
16278
+ end_at?: string;
16279
+ id?: string;
16280
+ outbox_id?: string | null;
16281
+ planning_item_id?: string;
16282
+ reason?: string | null;
16283
+ recipient?: string | null;
16284
+ start_at?: string;
16285
+ status?: string;
16286
+ };
16287
+ Relationships: [{
16288
+ foreignKeyName: "planning_confirmation_log_planning_item_id_fkey";
16289
+ columns: ["planning_item_id"];
16290
+ isOneToOne: false;
16291
+ referencedRelation: "planning_items";
16292
+ referencedColumns: ["id"];
16293
+ }, {
16294
+ foreignKeyName: "planning_confirmation_log_planning_item_id_fkey";
16295
+ columns: ["planning_item_id"];
16296
+ isOneToOne: false;
16297
+ referencedRelation: "planning_overview";
16298
+ referencedColumns: ["id"];
16299
+ }];
16300
+ };
16202
16301
  planning_item_assistants: {
16203
16302
  Row: {
16204
16303
  created_at: string;
@@ -16283,6 +16382,60 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
16283
16382
  referencedColumns: ["id"];
16284
16383
  }];
16285
16384
  };
16385
+ planning_mail_settings: {
16386
+ Row: {
16387
+ body_template: string;
16388
+ cc: string[];
16389
+ connection_id: string | null;
16390
+ created_at: string;
16391
+ enabled: boolean;
16392
+ id: boolean;
16393
+ reply_to: string | null;
16394
+ subject_template: string;
16395
+ timezone: string;
16396
+ updated_at: string;
16397
+ updated_by: string | null;
16398
+ };
16399
+ Insert: {
16400
+ body_template?: string;
16401
+ cc?: string[];
16402
+ connection_id?: string | null;
16403
+ created_at?: string;
16404
+ enabled?: boolean;
16405
+ id?: boolean;
16406
+ reply_to?: string | null;
16407
+ subject_template?: string;
16408
+ timezone?: string;
16409
+ updated_at?: string;
16410
+ updated_by?: string | null;
16411
+ };
16412
+ Update: {
16413
+ body_template?: string;
16414
+ cc?: string[];
16415
+ connection_id?: string | null;
16416
+ created_at?: string;
16417
+ enabled?: boolean;
16418
+ id?: boolean;
16419
+ reply_to?: string | null;
16420
+ subject_template?: string;
16421
+ timezone?: string;
16422
+ updated_at?: string;
16423
+ updated_by?: string | null;
16424
+ };
16425
+ Relationships: [{
16426
+ foreignKeyName: "planning_mail_settings_connection_id_fkey";
16427
+ columns: ["connection_id"];
16428
+ isOneToOne: false;
16429
+ referencedRelation: "email_auth_connections";
16430
+ referencedColumns: ["id"];
16431
+ }, {
16432
+ foreignKeyName: "planning_mail_settings_connection_id_fkey";
16433
+ columns: ["connection_id"];
16434
+ isOneToOne: false;
16435
+ referencedRelation: "email_auth_connections_safe";
16436
+ referencedColumns: ["id"];
16437
+ }];
16438
+ };
16286
16439
  planning_monteur_day_locations: {
16287
16440
  Row: {
16288
16441
  created_at: string;
@@ -17761,6 +17914,9 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
17761
17914
  lead_time_days: number | null;
17762
17915
  min_order_quantity: number | null;
17763
17916
  notes: string | null;
17917
+ previous_price_cents: number | null;
17918
+ price_source: string;
17919
+ price_updated_at: string | null;
17764
17920
  product_id: string;
17765
17921
  purchase_price_cents: number | null;
17766
17922
  supplier_article_number: string | null;
@@ -17774,6 +17930,9 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
17774
17930
  lead_time_days?: number | null;
17775
17931
  min_order_quantity?: number | null;
17776
17932
  notes?: string | null;
17933
+ previous_price_cents?: number | null;
17934
+ price_source?: string;
17935
+ price_updated_at?: string | null;
17777
17936
  product_id: string;
17778
17937
  purchase_price_cents?: number | null;
17779
17938
  supplier_article_number?: string | null;
@@ -17787,6 +17946,9 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
17787
17946
  lead_time_days?: number | null;
17788
17947
  min_order_quantity?: number | null;
17789
17948
  notes?: string | null;
17949
+ previous_price_cents?: number | null;
17950
+ price_source?: string;
17951
+ price_updated_at?: string | null;
17790
17952
  product_id?: string;
17791
17953
  purchase_price_cents?: number | null;
17792
17954
  supplier_article_number?: string | null;
@@ -18317,9 +18479,13 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
18317
18479
  purchase_order_items: {
18318
18480
  Row: {
18319
18481
  article_number: string | null;
18482
+ cancel_reason: string | null;
18483
+ cancelled_at: string | null;
18320
18484
  created_at: string;
18321
18485
  delivery_date: string | null;
18322
18486
  id: string;
18487
+ incoming_booked: number;
18488
+ line_status: string;
18323
18489
  name: string;
18324
18490
  note: string | null;
18325
18491
  pot_size: string | null;
@@ -18327,6 +18493,8 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
18327
18493
  product_type: string;
18328
18494
  purchase_order_id: string;
18329
18495
  quantity: number;
18496
+ received_at: string | null;
18497
+ received_booked: number;
18330
18498
  supplier_id: string | null;
18331
18499
  supplier_product_id: string | null;
18332
18500
  unit_price_cents: number;
@@ -18334,9 +18502,13 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
18334
18502
  };
18335
18503
  Insert: {
18336
18504
  article_number?: string | null;
18505
+ cancel_reason?: string | null;
18506
+ cancelled_at?: string | null;
18337
18507
  created_at?: string;
18338
18508
  delivery_date?: string | null;
18339
18509
  id?: string;
18510
+ incoming_booked?: number;
18511
+ line_status?: string;
18340
18512
  name?: string;
18341
18513
  note?: string | null;
18342
18514
  pot_size?: string | null;
@@ -18344,6 +18516,8 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
18344
18516
  product_type?: string;
18345
18517
  purchase_order_id: string;
18346
18518
  quantity?: number;
18519
+ received_at?: string | null;
18520
+ received_booked?: number;
18347
18521
  supplier_id?: string | null;
18348
18522
  supplier_product_id?: string | null;
18349
18523
  unit_price_cents?: number;
@@ -18351,9 +18525,13 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
18351
18525
  };
18352
18526
  Update: {
18353
18527
  article_number?: string | null;
18528
+ cancel_reason?: string | null;
18529
+ cancelled_at?: string | null;
18354
18530
  created_at?: string;
18355
18531
  delivery_date?: string | null;
18356
18532
  id?: string;
18533
+ incoming_booked?: number;
18534
+ line_status?: string;
18357
18535
  name?: string;
18358
18536
  note?: string | null;
18359
18537
  pot_size?: string | null;
@@ -18361,6 +18539,8 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
18361
18539
  product_type?: string;
18362
18540
  purchase_order_id?: string;
18363
18541
  quantity?: number;
18542
+ received_at?: string | null;
18543
+ received_booked?: number;
18364
18544
  supplier_id?: string | null;
18365
18545
  supplier_product_id?: string | null;
18366
18546
  unit_price_cents?: number;
@@ -18464,6 +18644,153 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
18464
18644
  referencedColumns: ["id"];
18465
18645
  }];
18466
18646
  };
18647
+ purchase_request_events: {
18648
+ Row: {
18649
+ created_at: string;
18650
+ details: import("../integrations/supabase/types").Json | null;
18651
+ event_type: string;
18652
+ id: string;
18653
+ request_id: string;
18654
+ };
18655
+ Insert: {
18656
+ created_at?: string;
18657
+ details?: import("../integrations/supabase/types").Json | null;
18658
+ event_type: string;
18659
+ id?: string;
18660
+ request_id: string;
18661
+ };
18662
+ Update: {
18663
+ created_at?: string;
18664
+ details?: import("../integrations/supabase/types").Json | null;
18665
+ event_type?: string;
18666
+ id?: string;
18667
+ request_id?: string;
18668
+ };
18669
+ Relationships: [{
18670
+ foreignKeyName: "purchase_request_events_request_id_fkey";
18671
+ columns: ["request_id"];
18672
+ isOneToOne: false;
18673
+ referencedRelation: "purchase_requests";
18674
+ referencedColumns: ["id"];
18675
+ }];
18676
+ };
18677
+ purchase_request_responses: {
18678
+ Row: {
18679
+ confirmed_date: string | null;
18680
+ confirmed_price_cents: number | null;
18681
+ confirmed_quantity: number;
18682
+ created_at: string;
18683
+ id: string;
18684
+ not_available: boolean;
18685
+ note: string | null;
18686
+ purchase_order_item_id: string;
18687
+ request_id: string;
18688
+ updated_at: string;
18689
+ };
18690
+ Insert: {
18691
+ confirmed_date?: string | null;
18692
+ confirmed_price_cents?: number | null;
18693
+ confirmed_quantity?: number;
18694
+ created_at?: string;
18695
+ id?: string;
18696
+ not_available?: boolean;
18697
+ note?: string | null;
18698
+ purchase_order_item_id: string;
18699
+ request_id: string;
18700
+ updated_at?: string;
18701
+ };
18702
+ Update: {
18703
+ confirmed_date?: string | null;
18704
+ confirmed_price_cents?: number | null;
18705
+ confirmed_quantity?: number;
18706
+ created_at?: string;
18707
+ id?: string;
18708
+ not_available?: boolean;
18709
+ note?: string | null;
18710
+ purchase_order_item_id?: string;
18711
+ request_id?: string;
18712
+ updated_at?: string;
18713
+ };
18714
+ Relationships: [{
18715
+ foreignKeyName: "purchase_request_responses_purchase_order_item_id_fkey";
18716
+ columns: ["purchase_order_item_id"];
18717
+ isOneToOne: false;
18718
+ referencedRelation: "purchase_order_items";
18719
+ referencedColumns: ["id"];
18720
+ }, {
18721
+ foreignKeyName: "purchase_request_responses_request_id_fkey";
18722
+ columns: ["request_id"];
18723
+ isOneToOne: false;
18724
+ referencedRelation: "purchase_requests";
18725
+ referencedColumns: ["id"];
18726
+ }];
18727
+ };
18728
+ purchase_requests: {
18729
+ Row: {
18730
+ created_at: string;
18731
+ expires_at: string;
18732
+ first_viewed_at: string | null;
18733
+ id: string;
18734
+ processed_at: string | null;
18735
+ purchase_order_id: string;
18736
+ responded_at: string | null;
18737
+ sent_at: string;
18738
+ status: string;
18739
+ supplier_id: string | null;
18740
+ supplier_name: string;
18741
+ supplier_note: string | null;
18742
+ to_address: string | null;
18743
+ token_hash: string;
18744
+ updated_at: string;
18745
+ };
18746
+ Insert: {
18747
+ created_at?: string;
18748
+ expires_at?: string;
18749
+ first_viewed_at?: string | null;
18750
+ id?: string;
18751
+ processed_at?: string | null;
18752
+ purchase_order_id: string;
18753
+ responded_at?: string | null;
18754
+ sent_at?: string;
18755
+ status?: string;
18756
+ supplier_id?: string | null;
18757
+ supplier_name?: string;
18758
+ supplier_note?: string | null;
18759
+ to_address?: string | null;
18760
+ token_hash: string;
18761
+ updated_at?: string;
18762
+ };
18763
+ Update: {
18764
+ created_at?: string;
18765
+ expires_at?: string;
18766
+ first_viewed_at?: string | null;
18767
+ id?: string;
18768
+ processed_at?: string | null;
18769
+ purchase_order_id?: string;
18770
+ responded_at?: string | null;
18771
+ sent_at?: string;
18772
+ status?: string;
18773
+ supplier_id?: string | null;
18774
+ supplier_name?: string;
18775
+ supplier_note?: string | null;
18776
+ to_address?: string | null;
18777
+ token_hash?: string;
18778
+ updated_at?: string;
18779
+ };
18780
+ Relationships: [{
18781
+ foreignKeyName: "purchase_requests_purchase_order_id_fkey";
18782
+ columns: ["purchase_order_id"];
18783
+ isOneToOne: false;
18784
+ referencedRelation: "purchase_orders";
18785
+ referencedColumns: ["id"];
18786
+ }, {
18787
+ foreignKeyName: "purchase_requests_supplier_id_fkey";
18788
+ columns: ["supplier_id"];
18789
+ isOneToOne: false;
18790
+ referencedRelation: "suppliers";
18791
+ referencedColumns: ["id"];
18792
+ }];
18793
+ };
18467
18794
  reception_notifications: {
18468
18795
  Row: {
18469
18796
  booking_id: string | null;
@@ -22889,7 +23216,7 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
22889
23216
  created_at: string;
22890
23217
  default_quantity: number;
22891
23218
  description: string | null;
22892
- duration_minutes: number | null;
23219
+ duration_minutes: number;
22893
23220
  id: string;
22894
23221
  mandaat_type: string | null;
22895
23222
  name: string;
@@ -22906,7 +23233,7 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
22906
23233
  created_at?: string;
22907
23234
  default_quantity?: number;
22908
23235
  description?: string | null;
22909
- duration_minutes?: number | null;
23236
+ duration_minutes?: number;
22910
23237
  id?: string;
22911
23238
  mandaat_type?: string | null;
22912
23239
  name: string;
@@ -22923,7 +23250,7 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
22923
23250
  created_at?: string;
22924
23251
  default_quantity?: number;
22925
23252
  description?: string | null;
22926
- duration_minutes?: number | null;
23253
+ duration_minutes?: number;
22927
23254
  id?: string;
22928
23255
  mandaat_type?: string | null;
22929
23256
  name?: string;
@@ -25919,6 +26246,31 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
25919
26246
  };
25920
26247
  Returns: import("../integrations/supabase/types").Json;
25921
26248
  };
26249
+ inkoop_cancel_line: {
26250
+ Args: {
26251
+ _item_id: string;
26252
+ _reason: string;
26253
+ };
26254
+ Returns: string;
26255
+ };
26256
+ inkoop_get_supplier_request: {
26257
+ Args: {
26258
+ _token: string;
26259
+ };
26260
+ Returns: import("../integrations/supabase/types").Json;
26261
+ };
26262
+ inkoop_hash_token: {
26263
+ Args: {
26264
+ _token: string;
26265
+ };
26266
+ Returns: string;
26267
+ };
26268
+ inkoop_html_escape: {
26269
+ Args: {
26270
+ _t: string;
26271
+ };
26272
+ Returns: string;
26273
+ };
25922
26274
  inkoop_list_artikelen: {
25923
26275
  Args: never;
25924
26276
  Returns: {
@@ -25943,9 +26295,17 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
25943
26295
  Args: never;
25944
26296
  Returns: string;
25945
26297
  };
26298
+ inkoop_process_request: {
26299
+ Args: {
26300
+ _request_id: string;
26301
+ };
26302
+ Returns: undefined;
26303
+ };
25946
26304
  inkoop_send_order: {
25947
26305
  Args: {
26306
+ _base_url?: string;
25948
26307
  _order_id: string;
26308
+ _resend?: boolean;
25949
26309
  };
25950
26310
  Returns: {
25951
26311
  outbox_id: string;
@@ -25960,6 +26320,26 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
25960
26320
  };
25961
26321
  Returns: undefined;
25962
26322
  };
26323
+ inkoop_stock_key: {
26324
+ Args: {
26325
+ p_product_id: string;
26326
+ };
26327
+ Returns: string;
26328
+ };
26329
+ inkoop_submit_supplier_response: {
26330
+ Args: {
26331
+ _lines: import("../integrations/supabase/types").Json;
26332
+ _note?: string;
26333
+ _token: string;
26334
+ };
26335
+ Returns: import("../integrations/supabase/types").Json;
26336
+ };
26337
+ inkoop_sync_item_stock: {
26338
+ Args: {
26339
+ p_item_id: string;
26340
+ };
26341
+ Returns: undefined;
26342
+ };
25963
26343
  instructie_get: {
25964
26344
  Args: {
25965
26345
  _sleutel: string;
@@ -26120,6 +26500,27 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
26120
26500
  };
26121
26501
  Returns: boolean;
26122
26502
  };
26503
+ layout_print_document: {
26504
+ Args: {
26505
+ _documentnaam: string;
26506
+ _documenttype: string;
26507
+ _herkomst?: string;
26508
+ _idempotentie_sleutel?: string;
26509
+ _is_herprint?: boolean;
26510
+ _kopieen?: number;
26511
+ _layout_id?: string;
26512
+ _payload?: import("../integrations/supabase/types").Json;
26513
+ _pdf_base64?: string;
26514
+ _pdf_url?: string;
26515
+ _print_plek_id?: string;
26516
+ _werkplek?: string;
26517
+ };
26518
+ Returns: {
26519
+ bestaand: boolean;
26520
+ job_id: string;
26521
+ printer_id: string;
26522
+ }[];
26523
+ };
26123
26524
  list_medewerkers: {
26124
26525
  Args: never;
26125
26526
  Returns: {
@@ -26397,6 +26798,12 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
26397
26798
  };
26398
26799
  Returns: number;
26399
26800
  };
26801
+ logistics_cart_barcode_opschonen: {
26802
+ Args: {
26803
+ p_portie?: number;
26804
+ };
26805
+ Returns: import("../integrations/supabase/types").Json;
26806
+ };
26400
26807
  logistics_cart_barcode_value: {
26401
26808
  Args: {
26402
26809
  _cart_id: string;
@@ -26816,6 +27223,13 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
26816
27223
  };
26817
27224
  Returns: import("../integrations/supabase/types").Json;
26818
27225
  };
27226
+ logistics_control_scan_print_own: {
27227
+ Args: {
27228
+ p_is_herprint?: boolean;
27229
+ p_scan_id: string;
27230
+ };
27231
+ Returns: import("../integrations/supabase/types").Json;
27232
+ };
26819
27233
  logistics_control_scan_retry: {
26820
27234
  Args: {
26821
27235
  _id: string;
@@ -27720,6 +28134,21 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
27720
28134
  };
27721
28135
  Returns: import("../integrations/supabase/types").Json;
27722
28136
  };
28137
+ logistics_print_via_layout: {
28138
+ Args: {
28139
+ _documentnaam: string;
28140
+ _documenttype: string;
28141
+ _herkomst: string;
28142
+ _idempotentie_sleutel: string;
28143
+ _is_herprint: boolean;
28144
+ _layout_id: string;
28145
+ _payload: import("../integrations/supabase/types").Json;
28146
+ _pdf_base64: string;
28147
+ _pdf_url: string;
28148
+ _print_plek_id: string;
28149
+ };
28150
+ Returns: import("../integrations/supabase/types").Json;
28151
+ };
27723
28152
  logistics_prune_buffer_member_queue: {
27724
28153
  Args: never;
27725
28154
  Returns: number;
@@ -28006,6 +28435,13 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
28006
28435
  };
28007
28436
  Returns: string;
28008
28437
  };
28438
+ logistics_shipping_note_status: {
28439
+ Args: {
28440
+ p_cart_id?: string;
28441
+ p_slip_job_id?: string;
28442
+ };
28443
+ Returns: import("../integrations/supabase/types").Json;
28444
+ };
28009
28445
  logistics_shipping_notes_wake_all: {
28010
28446
  Args: never;
28011
28447
  Returns: import("../integrations/supabase/types").Json;
@@ -28068,6 +28504,12 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
28068
28504
  };
28069
28505
  Returns: undefined;
28070
28506
  };
28507
+ logistics_slip_note_retry: {
28508
+ Args: {
28509
+ _id: string;
28510
+ };
28511
+ Returns: import("../integrations/supabase/types").Json;
28512
+ };
28071
28513
  logistics_sticker_follows_slip: {
28072
28514
  Args: never;
28073
28515
  Returns: boolean;
@@ -28812,6 +29254,10 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
28812
29254
  };
28813
29255
  Returns: string;
28814
29256
  };
29257
+ pick_is_reference_admin: {
29258
+ Args: never;
29259
+ Returns: boolean;
29260
+ };
28815
29261
  pick_mark_printed: {
28816
29262
  Args: {
28817
29263
  _queue_item_id: string;
@@ -29235,6 +29681,12 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
29235
29681
  };
29236
29682
  Returns: import("../integrations/supabase/types").Json;
29237
29683
  };
29684
+ pick_verify_rows: {
29685
+ Args: {
29686
+ _rows: import("../integrations/supabase/types").Json;
29687
+ };
29688
+ Returns: import("../integrations/supabase/types").Json;
29689
+ };
29238
29690
  pickstation_get_orders_raw: {
29239
29691
  Args: never;
29240
29692
  Returns: import("../integrations/supabase/types").Json;
@@ -29415,6 +29867,12 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
29415
29867
  };
29416
29868
  Returns: import("../integrations/supabase/types").Json;
29417
29869
  };
29870
+ quote_create_from_scratch: {
29871
+ Args: {
29872
+ _payload: import("../integrations/supabase/types").Json;
29873
+ };
29874
+ Returns: import("../integrations/supabase/types").Json;
29875
+ };
29418
29876
  quote_create_from_source: {
29419
29877
  Args: {
29420
29878
  _payload?: import("../integrations/supabase/types").Json;
@@ -29465,6 +29923,13 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
29465
29923
  };
29466
29924
  Returns: string;
29467
29925
  };
29926
+ quote_sync_work_order: {
29927
+ Args: {
29928
+ _monteur_instructies?: string;
29929
+ _offerte_id: string;
29930
+ };
29931
+ Returns: boolean;
29932
+ };
29468
29933
  recompute_all_reserved_stock: {
29469
29934
  Args: never;
29470
29935
  Returns: undefined;
@@ -29685,6 +30150,13 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
29685
30150
  };
29686
30151
  Returns: import("../integrations/supabase/types").Json;
29687
30152
  };
30153
+ scan_controleer_pincode: {
30154
+ Args: {
30155
+ p_pin: string;
30156
+ p_scanner_id: string;
30157
+ };
30158
+ Returns: boolean;
30159
+ };
29688
30160
  scan_dashboard_stats: {
29689
30161
  Args: {
29690
30162
  p_dagen?: number;
@@ -29704,6 +30176,12 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
29704
30176
  };
29705
30177
  Returns: import("../integrations/supabase/types").Json;
29706
30178
  };
30179
+ scan_heeft_pincode: {
30180
+ Args: {
30181
+ p_scanner_id: string;
30182
+ };
30183
+ Returns: boolean;
30184
+ };
29707
30185
  scan_kar_compleet: {
29708
30186
  Args: {
29709
30187
  p_allow_reprint?: boolean;
@@ -29721,6 +30199,7 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
29721
30199
  Args: {
29722
30200
  p_code: string;
29723
30201
  p_latency_ms?: number;
30202
+ p_medewerker?: string;
29724
30203
  p_message?: string;
29725
30204
  p_result: string;
29726
30205
  p_scanner_key?: string;
@@ -29793,6 +30272,22 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
29793
30272
  };
29794
30273
  Returns: undefined;
29795
30274
  };
30275
+ scan_scanner_info: {
30276
+ Args: {
30277
+ p_slug: string;
30278
+ };
30279
+ Returns: {
30280
+ actief: boolean;
30281
+ heeft_pincode: boolean;
30282
+ id: string;
30283
+ naam: string;
30284
+ omschrijving: string;
30285
+ printer_id: string;
30286
+ type: string;
30287
+ vereist_medewerker: boolean;
30288
+ werkplek: string;
30289
+ }[];
30290
+ };
29796
30291
  scan_sessie_annuleren: {
29797
30292
  Args: {
29798
30293
  p_sessie_id: string;
@@ -30755,6 +31250,21 @@ export declare const checkOrderStockAllowed: import("@tanstack/start-client-core
30755
31250
  };
30756
31251
  Returns: import("../integrations/supabase/types").Json;
30757
31252
  };
31253
+ wo_list_colleague_planning: {
31254
+ Args: {
31255
+ _from: string;
31256
+ _monteur_id: string;
31257
+ _to: string;
31258
+ };
31259
+ Returns: {
31260
+ end_at: string;
31261
+ id: string;
31262
+ role: string;
31263
+ start_at: string;
31264
+ status: string;
31265
+ werkbon_id: string;
31266
+ }[];
31267
+ };
30758
31268
  wo_list_offerte_requests: {
30759
31269
  Args: {
30760
31270
  _status?: string;
@@ -31567,6 +32077,27 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
31567
32077
  };
31568
32078
  Relationships: [];
31569
32079
  };
32080
+ artikelen_instellingen: {
32081
+ Row: {
32082
+ created_at: string;
32083
+ id: number;
32084
+ marge_procent: number;
32085
+ updated_at: string;
32086
+ };
32087
+ Insert: {
32088
+ created_at?: string;
32089
+ id?: number;
32090
+ marge_procent?: number;
32091
+ updated_at?: string;
32092
+ };
32093
+ Update: {
32094
+ created_at?: string;
32095
+ id?: number;
32096
+ marge_procent?: number;
32097
+ updated_at?: string;
32098
+ };
32099
+ Relationships: [];
32100
+ };
31570
32101
  artikelen_veldconfig: {
31571
32102
  Row: {
31572
32103
  bron_pad: string;
@@ -41242,6 +41773,30 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
41242
41773
  };
41243
41774
  Relationships: [];
41244
41775
  };
41776
+ logistics_cart_barcode_archief: {
41777
+ Row: {
41778
+ barcode: string;
41779
+ cart_id: string;
41780
+ created_at: string | null;
41781
+ gearchiveerd_op: string;
41782
+ order_id: string | null;
41783
+ };
41784
+ Insert: {
41785
+ barcode: string;
41786
+ cart_id: string;
41787
+ created_at?: string | null;
41788
+ gearchiveerd_op?: string;
41789
+ order_id?: string | null;
41790
+ };
41791
+ Update: {
41792
+ barcode?: string;
41793
+ cart_id?: string;
41794
+ created_at?: string | null;
41795
+ gearchiveerd_op?: string;
41796
+ order_id?: string | null;
41797
+ };
41798
+ Relationships: [];
41799
+ };
41245
41800
  logistics_control_scan: {
41246
41801
  Row: {
41247
41802
  approved_at: string | null;
@@ -46895,18 +47450,24 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
46895
47450
  Row: {
46896
47451
  id: boolean;
46897
47452
  last_cleanup_at: string | null;
47453
+ last_error: string | null;
47454
+ last_error_at: string | null;
46898
47455
  last_sync_at: string | null;
46899
47456
  updated_at: string;
46900
47457
  };
46901
47458
  Insert: {
46902
47459
  id?: boolean;
46903
47460
  last_cleanup_at?: string | null;
47461
+ last_error?: string | null;
47462
+ last_error_at?: string | null;
46904
47463
  last_sync_at?: string | null;
46905
47464
  updated_at?: string;
46906
47465
  };
46907
47466
  Update: {
46908
47467
  id?: boolean;
46909
47468
  last_cleanup_at?: string | null;
47469
+ last_error?: string | null;
47470
+ last_error_at?: string | null;
46910
47471
  last_sync_at?: string | null;
46911
47472
  updated_at?: string;
46912
47473
  };
@@ -47032,6 +47593,54 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
47032
47593
  };
47033
47594
  Relationships: [];
47034
47595
  };
47596
+ planning_confirmation_log: {
47597
+ Row: {
47598
+ created_at: string;
47599
+ end_at: string;
47600
+ id: string;
47601
+ outbox_id: string | null;
47602
+ planning_item_id: string;
47603
+ reason: string | null;
47604
+ recipient: string | null;
47605
+ start_at: string;
47606
+ status: string;
47607
+ };
47608
+ Insert: {
47609
+ created_at?: string;
47610
+ end_at: string;
47611
+ id?: string;
47612
+ outbox_id?: string | null;
47613
+ planning_item_id: string;
47614
+ reason?: string | null;
47615
+ recipient?: string | null;
47616
+ start_at: string;
47617
+ status: string;
47618
+ };
47619
+ Update: {
47620
+ created_at?: string;
47621
+ end_at?: string;
47622
+ id?: string;
47623
+ outbox_id?: string | null;
47624
+ planning_item_id?: string;
47625
+ reason?: string | null;
47626
+ recipient?: string | null;
47627
+ start_at?: string;
47628
+ status?: string;
47629
+ };
47630
+ Relationships: [{
47631
+ foreignKeyName: "planning_confirmation_log_planning_item_id_fkey";
47632
+ columns: ["planning_item_id"];
47633
+ isOneToOne: false;
47634
+ referencedRelation: "planning_items";
47635
+ referencedColumns: ["id"];
47636
+ }, {
47637
+ foreignKeyName: "planning_confirmation_log_planning_item_id_fkey";
47638
+ columns: ["planning_item_id"];
47639
+ isOneToOne: false;
47640
+ referencedRelation: "planning_overview";
47641
+ referencedColumns: ["id"];
47642
+ }];
47643
+ };
47035
47644
  planning_item_assistants: {
47036
47645
  Row: {
47037
47646
  created_at: string;
@@ -47116,6 +47725,60 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
47116
47725
  referencedColumns: ["id"];
47117
47726
  }];
47118
47727
  };
47728
+ planning_mail_settings: {
47729
+ Row: {
47730
+ body_template: string;
47731
+ cc: string[];
47732
+ connection_id: string | null;
47733
+ created_at: string;
47734
+ enabled: boolean;
47735
+ id: boolean;
47736
+ reply_to: string | null;
47737
+ subject_template: string;
47738
+ timezone: string;
47739
+ updated_at: string;
47740
+ updated_by: string | null;
47741
+ };
47742
+ Insert: {
47743
+ body_template?: string;
47744
+ cc?: string[];
47745
+ connection_id?: string | null;
47746
+ created_at?: string;
47747
+ enabled?: boolean;
47748
+ id?: boolean;
47749
+ reply_to?: string | null;
47750
+ subject_template?: string;
47751
+ timezone?: string;
47752
+ updated_at?: string;
47753
+ updated_by?: string | null;
47754
+ };
47755
+ Update: {
47756
+ body_template?: string;
47757
+ cc?: string[];
47758
+ connection_id?: string | null;
47759
+ created_at?: string;
47760
+ enabled?: boolean;
47761
+ id?: boolean;
47762
+ reply_to?: string | null;
47763
+ subject_template?: string;
47764
+ timezone?: string;
47765
+ updated_at?: string;
47766
+ updated_by?: string | null;
47767
+ };
47768
+ Relationships: [{
47769
+ foreignKeyName: "planning_mail_settings_connection_id_fkey";
47770
+ columns: ["connection_id"];
47771
+ isOneToOne: false;
47772
+ referencedRelation: "email_auth_connections";
47773
+ referencedColumns: ["id"];
47774
+ }, {
47775
+ foreignKeyName: "planning_mail_settings_connection_id_fkey";
47776
+ columns: ["connection_id"];
47777
+ isOneToOne: false;
47778
+ referencedRelation: "email_auth_connections_safe";
47779
+ referencedColumns: ["id"];
47780
+ }];
47781
+ };
47119
47782
  planning_monteur_day_locations: {
47120
47783
  Row: {
47121
47784
  created_at: string;
@@ -48594,6 +49257,9 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
48594
49257
  lead_time_days: number | null;
48595
49258
  min_order_quantity: number | null;
48596
49259
  notes: string | null;
49260
+ previous_price_cents: number | null;
49261
+ price_source: string;
49262
+ price_updated_at: string | null;
48597
49263
  product_id: string;
48598
49264
  purchase_price_cents: number | null;
48599
49265
  supplier_article_number: string | null;
@@ -48607,6 +49273,9 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
48607
49273
  lead_time_days?: number | null;
48608
49274
  min_order_quantity?: number | null;
48609
49275
  notes?: string | null;
49276
+ previous_price_cents?: number | null;
49277
+ price_source?: string;
49278
+ price_updated_at?: string | null;
48610
49279
  product_id: string;
48611
49280
  purchase_price_cents?: number | null;
48612
49281
  supplier_article_number?: string | null;
@@ -48620,6 +49289,9 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
48620
49289
  lead_time_days?: number | null;
48621
49290
  min_order_quantity?: number | null;
48622
49291
  notes?: string | null;
49292
+ previous_price_cents?: number | null;
49293
+ price_source?: string;
49294
+ price_updated_at?: string | null;
48623
49295
  product_id?: string;
48624
49296
  purchase_price_cents?: number | null;
48625
49297
  supplier_article_number?: string | null;
@@ -49150,9 +49822,13 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
49150
49822
  purchase_order_items: {
49151
49823
  Row: {
49152
49824
  article_number: string | null;
49825
+ cancel_reason: string | null;
49826
+ cancelled_at: string | null;
49153
49827
  created_at: string;
49154
49828
  delivery_date: string | null;
49155
49829
  id: string;
49830
+ incoming_booked: number;
49831
+ line_status: string;
49156
49832
  name: string;
49157
49833
  note: string | null;
49158
49834
  pot_size: string | null;
@@ -49160,6 +49836,8 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
49160
49836
  product_type: string;
49161
49837
  purchase_order_id: string;
49162
49838
  quantity: number;
49839
+ received_at: string | null;
49840
+ received_booked: number;
49163
49841
  supplier_id: string | null;
49164
49842
  supplier_product_id: string | null;
49165
49843
  unit_price_cents: number;
@@ -49167,9 +49845,13 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
49167
49845
  };
49168
49846
  Insert: {
49169
49847
  article_number?: string | null;
49848
+ cancel_reason?: string | null;
49849
+ cancelled_at?: string | null;
49170
49850
  created_at?: string;
49171
49851
  delivery_date?: string | null;
49172
49852
  id?: string;
49853
+ incoming_booked?: number;
49854
+ line_status?: string;
49173
49855
  name?: string;
49174
49856
  note?: string | null;
49175
49857
  pot_size?: string | null;
@@ -49177,6 +49859,8 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
49177
49859
  product_type?: string;
49178
49860
  purchase_order_id: string;
49179
49861
  quantity?: number;
49862
+ received_at?: string | null;
49863
+ received_booked?: number;
49180
49864
  supplier_id?: string | null;
49181
49865
  supplier_product_id?: string | null;
49182
49866
  unit_price_cents?: number;
@@ -49184,9 +49868,13 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
49184
49868
  };
49185
49869
  Update: {
49186
49870
  article_number?: string | null;
49871
+ cancel_reason?: string | null;
49872
+ cancelled_at?: string | null;
49187
49873
  created_at?: string;
49188
49874
  delivery_date?: string | null;
49189
49875
  id?: string;
49876
+ incoming_booked?: number;
49877
+ line_status?: string;
49190
49878
  name?: string;
49191
49879
  note?: string | null;
49192
49880
  pot_size?: string | null;
@@ -49194,6 +49882,8 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
49194
49882
  product_type?: string;
49195
49883
  purchase_order_id?: string;
49196
49884
  quantity?: number;
49885
+ received_at?: string | null;
49886
+ received_booked?: number;
49197
49887
  supplier_id?: string | null;
49198
49888
  supplier_product_id?: string | null;
49199
49889
  unit_price_cents?: number;
@@ -49297,6 +49987,153 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
49297
49987
  referencedColumns: ["id"];
49298
49988
  }];
49299
49989
  };
49990
+ purchase_request_events: {
49991
+ Row: {
49992
+ created_at: string;
49993
+ details: import("../integrations/supabase/types").Json | null;
49994
+ event_type: string;
49995
+ id: string;
49996
+ request_id: string;
49997
+ };
49998
+ Insert: {
49999
+ created_at?: string;
50000
+ details?: import("../integrations/supabase/types").Json | null;
50001
+ event_type: string;
50002
+ id?: string;
50003
+ request_id: string;
50004
+ };
50005
+ Update: {
50006
+ created_at?: string;
50007
+ details?: import("../integrations/supabase/types").Json | null;
50008
+ event_type?: string;
50009
+ id?: string;
50010
+ request_id?: string;
50011
+ };
50012
+ Relationships: [{
50013
+ foreignKeyName: "purchase_request_events_request_id_fkey";
50014
+ columns: ["request_id"];
50015
+ isOneToOne: false;
50016
+ referencedRelation: "purchase_requests";
50017
+ referencedColumns: ["id"];
50018
+ }];
50019
+ };
50020
+ purchase_request_responses: {
50021
+ Row: {
50022
+ confirmed_date: string | null;
50023
+ confirmed_price_cents: number | null;
50024
+ confirmed_quantity: number;
50025
+ created_at: string;
50026
+ id: string;
50027
+ not_available: boolean;
50028
+ note: string | null;
50029
+ purchase_order_item_id: string;
50030
+ request_id: string;
50031
+ updated_at: string;
50032
+ };
50033
+ Insert: {
50034
+ confirmed_date?: string | null;
50035
+ confirmed_price_cents?: number | null;
50036
+ confirmed_quantity?: number;
50037
+ created_at?: string;
50038
+ id?: string;
50039
+ not_available?: boolean;
50040
+ note?: string | null;
50041
+ purchase_order_item_id: string;
50042
+ request_id: string;
50043
+ updated_at?: string;
50044
+ };
50045
+ Update: {
50046
+ confirmed_date?: string | null;
50047
+ confirmed_price_cents?: number | null;
50048
+ confirmed_quantity?: number;
50049
+ created_at?: string;
50050
+ id?: string;
50051
+ not_available?: boolean;
50052
+ note?: string | null;
50053
+ purchase_order_item_id?: string;
50054
+ request_id?: string;
50055
+ updated_at?: string;
50056
+ };
50057
+ Relationships: [{
50058
+ foreignKeyName: "purchase_request_responses_purchase_order_item_id_fkey";
50059
+ columns: ["purchase_order_item_id"];
50060
+ isOneToOne: false;
50061
+ referencedRelation: "purchase_order_items";
50062
+ referencedColumns: ["id"];
50063
+ }, {
50064
+ foreignKeyName: "purchase_request_responses_request_id_fkey";
50065
+ columns: ["request_id"];
50066
+ isOneToOne: false;
50067
+ referencedRelation: "purchase_requests";
50068
+ referencedColumns: ["id"];
50069
+ }];
50070
+ };
50071
+ purchase_requests: {
50072
+ Row: {
50073
+ created_at: string;
50074
+ expires_at: string;
50075
+ first_viewed_at: string | null;
50076
+ id: string;
50077
+ processed_at: string | null;
50078
+ purchase_order_id: string;
50079
+ responded_at: string | null;
50080
+ sent_at: string;
50081
+ status: string;
50082
+ supplier_id: string | null;
50083
+ supplier_name: string;
50084
+ supplier_note: string | null;
50085
+ to_address: string | null;
50086
+ token_hash: string;
50087
+ updated_at: string;
50088
+ };
50089
+ Insert: {
50090
+ created_at?: string;
50091
+ expires_at?: string;
50092
+ first_viewed_at?: string | null;
50093
+ id?: string;
50094
+ processed_at?: string | null;
50095
+ purchase_order_id: string;
50096
+ responded_at?: string | null;
50097
+ sent_at?: string;
50098
+ status?: string;
50099
+ supplier_id?: string | null;
50100
+ supplier_name?: string;
50101
+ supplier_note?: string | null;
50102
+ to_address?: string | null;
50103
+ token_hash: string;
50104
+ updated_at?: string;
50105
+ };
50106
+ Update: {
50107
+ created_at?: string;
50108
+ expires_at?: string;
50109
+ first_viewed_at?: string | null;
50110
+ id?: string;
50111
+ processed_at?: string | null;
50112
+ purchase_order_id?: string;
50113
+ responded_at?: string | null;
50114
+ sent_at?: string;
50115
+ status?: string;
50116
+ supplier_id?: string | null;
50117
+ supplier_name?: string;
50118
+ supplier_note?: string | null;
50119
+ to_address?: string | null;
50120
+ token_hash?: string;
50121
+ updated_at?: string;
50122
+ };
50123
+ Relationships: [{
50124
+ foreignKeyName: "purchase_requests_purchase_order_id_fkey";
50125
+ columns: ["purchase_order_id"];
50126
+ isOneToOne: false;
50127
+ referencedRelation: "purchase_orders";
50128
+ referencedColumns: ["id"];
50129
+ }, {
50130
+ foreignKeyName: "purchase_requests_supplier_id_fkey";
50131
+ columns: ["supplier_id"];
50132
+ isOneToOne: false;
50133
+ referencedRelation: "suppliers";
50134
+ referencedColumns: ["id"];
50135
+ }];
50136
+ };
49300
50137
  reception_notifications: {
49301
50138
  Row: {
49302
50139
  booking_id: string | null;
@@ -53722,7 +54559,7 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
53722
54559
  created_at: string;
53723
54560
  default_quantity: number;
53724
54561
  description: string | null;
53725
- duration_minutes: number | null;
54562
+ duration_minutes: number;
53726
54563
  id: string;
53727
54564
  mandaat_type: string | null;
53728
54565
  name: string;
@@ -53739,7 +54576,7 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
53739
54576
  created_at?: string;
53740
54577
  default_quantity?: number;
53741
54578
  description?: string | null;
53742
- duration_minutes?: number | null;
54579
+ duration_minutes?: number;
53743
54580
  id?: string;
53744
54581
  mandaat_type?: string | null;
53745
54582
  name: string;
@@ -53756,7 +54593,7 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
53756
54593
  created_at?: string;
53757
54594
  default_quantity?: number;
53758
54595
  description?: string | null;
53759
- duration_minutes?: number | null;
54596
+ duration_minutes?: number;
53760
54597
  id?: string;
53761
54598
  mandaat_type?: string | null;
53762
54599
  name?: string;
@@ -56752,6 +57589,31 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
56752
57589
  };
56753
57590
  Returns: import("../integrations/supabase/types").Json;
56754
57591
  };
57592
+ inkoop_cancel_line: {
57593
+ Args: {
57594
+ _item_id: string;
57595
+ _reason: string;
57596
+ };
57597
+ Returns: string;
57598
+ };
57599
+ inkoop_get_supplier_request: {
57600
+ Args: {
57601
+ _token: string;
57602
+ };
57603
+ Returns: import("../integrations/supabase/types").Json;
57604
+ };
57605
+ inkoop_hash_token: {
57606
+ Args: {
57607
+ _token: string;
57608
+ };
57609
+ Returns: string;
57610
+ };
57611
+ inkoop_html_escape: {
57612
+ Args: {
57613
+ _t: string;
57614
+ };
57615
+ Returns: string;
57616
+ };
56755
57617
  inkoop_list_artikelen: {
56756
57618
  Args: never;
56757
57619
  Returns: {
@@ -56776,9 +57638,17 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
56776
57638
  Args: never;
56777
57639
  Returns: string;
56778
57640
  };
57641
+ inkoop_process_request: {
57642
+ Args: {
57643
+ _request_id: string;
57644
+ };
57645
+ Returns: undefined;
57646
+ };
56779
57647
  inkoop_send_order: {
56780
57648
  Args: {
57649
+ _base_url?: string;
56781
57650
  _order_id: string;
57651
+ _resend?: boolean;
56782
57652
  };
56783
57653
  Returns: {
56784
57654
  outbox_id: string;
@@ -56793,6 +57663,26 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
56793
57663
  };
56794
57664
  Returns: undefined;
56795
57665
  };
57666
+ inkoop_stock_key: {
57667
+ Args: {
57668
+ p_product_id: string;
57669
+ };
57670
+ Returns: string;
57671
+ };
57672
+ inkoop_submit_supplier_response: {
57673
+ Args: {
57674
+ _lines: import("../integrations/supabase/types").Json;
57675
+ _note?: string;
57676
+ _token: string;
57677
+ };
57678
+ Returns: import("../integrations/supabase/types").Json;
57679
+ };
57680
+ inkoop_sync_item_stock: {
57681
+ Args: {
57682
+ p_item_id: string;
57683
+ };
57684
+ Returns: undefined;
57685
+ };
56796
57686
  instructie_get: {
56797
57687
  Args: {
56798
57688
  _sleutel: string;
@@ -56953,6 +57843,27 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
56953
57843
  };
56954
57844
  Returns: boolean;
56955
57845
  };
57846
+ layout_print_document: {
57847
+ Args: {
57848
+ _documentnaam: string;
57849
+ _documenttype: string;
57850
+ _herkomst?: string;
57851
+ _idempotentie_sleutel?: string;
57852
+ _is_herprint?: boolean;
57853
+ _kopieen?: number;
57854
+ _layout_id?: string;
57855
+ _payload?: import("../integrations/supabase/types").Json;
57856
+ _pdf_base64?: string;
57857
+ _pdf_url?: string;
57858
+ _print_plek_id?: string;
57859
+ _werkplek?: string;
57860
+ };
57861
+ Returns: {
57862
+ bestaand: boolean;
57863
+ job_id: string;
57864
+ printer_id: string;
57865
+ }[];
57866
+ };
56956
57867
  list_medewerkers: {
56957
57868
  Args: never;
56958
57869
  Returns: {
@@ -57230,6 +58141,12 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
57230
58141
  };
57231
58142
  Returns: number;
57232
58143
  };
58144
+ logistics_cart_barcode_opschonen: {
58145
+ Args: {
58146
+ p_portie?: number;
58147
+ };
58148
+ Returns: import("../integrations/supabase/types").Json;
58149
+ };
57233
58150
  logistics_cart_barcode_value: {
57234
58151
  Args: {
57235
58152
  _cart_id: string;
@@ -57649,6 +58566,13 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
57649
58566
  };
57650
58567
  Returns: import("../integrations/supabase/types").Json;
57651
58568
  };
58569
+ logistics_control_scan_print_own: {
58570
+ Args: {
58571
+ p_is_herprint?: boolean;
58572
+ p_scan_id: string;
58573
+ };
58574
+ Returns: import("../integrations/supabase/types").Json;
58575
+ };
57652
58576
  logistics_control_scan_retry: {
57653
58577
  Args: {
57654
58578
  _id: string;
@@ -58553,6 +59477,21 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
58553
59477
  };
58554
59478
  Returns: import("../integrations/supabase/types").Json;
58555
59479
  };
59480
+ logistics_print_via_layout: {
59481
+ Args: {
59482
+ _documentnaam: string;
59483
+ _documenttype: string;
59484
+ _herkomst: string;
59485
+ _idempotentie_sleutel: string;
59486
+ _is_herprint: boolean;
59487
+ _layout_id: string;
59488
+ _payload: import("../integrations/supabase/types").Json;
59489
+ _pdf_base64: string;
59490
+ _pdf_url: string;
59491
+ _print_plek_id: string;
59492
+ };
59493
+ Returns: import("../integrations/supabase/types").Json;
59494
+ };
58556
59495
  logistics_prune_buffer_member_queue: {
58557
59496
  Args: never;
58558
59497
  Returns: number;
@@ -58839,6 +59778,13 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
58839
59778
  };
58840
59779
  Returns: string;
58841
59780
  };
59781
+ logistics_shipping_note_status: {
59782
+ Args: {
59783
+ p_cart_id?: string;
59784
+ p_slip_job_id?: string;
59785
+ };
59786
+ Returns: import("../integrations/supabase/types").Json;
59787
+ };
58842
59788
  logistics_shipping_notes_wake_all: {
58843
59789
  Args: never;
58844
59790
  Returns: import("../integrations/supabase/types").Json;
@@ -58901,6 +59847,12 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
58901
59847
  };
58902
59848
  Returns: undefined;
58903
59849
  };
59850
+ logistics_slip_note_retry: {
59851
+ Args: {
59852
+ _id: string;
59853
+ };
59854
+ Returns: import("../integrations/supabase/types").Json;
59855
+ };
58904
59856
  logistics_sticker_follows_slip: {
58905
59857
  Args: never;
58906
59858
  Returns: boolean;
@@ -59645,6 +60597,10 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
59645
60597
  };
59646
60598
  Returns: string;
59647
60599
  };
60600
+ pick_is_reference_admin: {
60601
+ Args: never;
60602
+ Returns: boolean;
60603
+ };
59648
60604
  pick_mark_printed: {
59649
60605
  Args: {
59650
60606
  _queue_item_id: string;
@@ -60068,6 +61024,12 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
60068
61024
  };
60069
61025
  Returns: import("../integrations/supabase/types").Json;
60070
61026
  };
61027
+ pick_verify_rows: {
61028
+ Args: {
61029
+ _rows: import("../integrations/supabase/types").Json;
61030
+ };
61031
+ Returns: import("../integrations/supabase/types").Json;
61032
+ };
60071
61033
  pickstation_get_orders_raw: {
60072
61034
  Args: never;
60073
61035
  Returns: import("../integrations/supabase/types").Json;
@@ -60248,6 +61210,12 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
60248
61210
  };
60249
61211
  Returns: import("../integrations/supabase/types").Json;
60250
61212
  };
61213
+ quote_create_from_scratch: {
61214
+ Args: {
61215
+ _payload: import("../integrations/supabase/types").Json;
61216
+ };
61217
+ Returns: import("../integrations/supabase/types").Json;
61218
+ };
60251
61219
  quote_create_from_source: {
60252
61220
  Args: {
60253
61221
  _payload?: import("../integrations/supabase/types").Json;
@@ -60298,6 +61266,13 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
60298
61266
  };
60299
61267
  Returns: string;
60300
61268
  };
61269
+ quote_sync_work_order: {
61270
+ Args: {
61271
+ _monteur_instructies?: string;
61272
+ _offerte_id: string;
61273
+ };
61274
+ Returns: boolean;
61275
+ };
60301
61276
  recompute_all_reserved_stock: {
60302
61277
  Args: never;
60303
61278
  Returns: undefined;
@@ -60518,6 +61493,13 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
60518
61493
  };
60519
61494
  Returns: import("../integrations/supabase/types").Json;
60520
61495
  };
61496
+ scan_controleer_pincode: {
61497
+ Args: {
61498
+ p_pin: string;
61499
+ p_scanner_id: string;
61500
+ };
61501
+ Returns: boolean;
61502
+ };
60521
61503
  scan_dashboard_stats: {
60522
61504
  Args: {
60523
61505
  p_dagen?: number;
@@ -60537,6 +61519,12 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
60537
61519
  };
60538
61520
  Returns: import("../integrations/supabase/types").Json;
60539
61521
  };
61522
+ scan_heeft_pincode: {
61523
+ Args: {
61524
+ p_scanner_id: string;
61525
+ };
61526
+ Returns: boolean;
61527
+ };
60540
61528
  scan_kar_compleet: {
60541
61529
  Args: {
60542
61530
  p_allow_reprint?: boolean;
@@ -60554,6 +61542,7 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
60554
61542
  Args: {
60555
61543
  p_code: string;
60556
61544
  p_latency_ms?: number;
61545
+ p_medewerker?: string;
60557
61546
  p_message?: string;
60558
61547
  p_result: string;
60559
61548
  p_scanner_key?: string;
@@ -60626,6 +61615,22 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
60626
61615
  };
60627
61616
  Returns: undefined;
60628
61617
  };
61618
+ scan_scanner_info: {
61619
+ Args: {
61620
+ p_slug: string;
61621
+ };
61622
+ Returns: {
61623
+ actief: boolean;
61624
+ heeft_pincode: boolean;
61625
+ id: string;
61626
+ naam: string;
61627
+ omschrijving: string;
61628
+ printer_id: string;
61629
+ type: string;
61630
+ vereist_medewerker: boolean;
61631
+ werkplek: string;
61632
+ }[];
61633
+ };
60629
61634
  scan_sessie_annuleren: {
60630
61635
  Args: {
60631
61636
  p_sessie_id: string;
@@ -61588,6 +62593,21 @@ export declare const getBackorderAllowed: import("@tanstack/start-client-core").
61588
62593
  };
61589
62594
  Returns: import("../integrations/supabase/types").Json;
61590
62595
  };
62596
+ wo_list_colleague_planning: {
62597
+ Args: {
62598
+ _from: string;
62599
+ _monteur_id: string;
62600
+ _to: string;
62601
+ };
62602
+ Returns: {
62603
+ end_at: string;
62604
+ id: string;
62605
+ role: string;
62606
+ start_at: string;
62607
+ status: string;
62608
+ werkbon_id: string;
62609
+ }[];
62610
+ };
61591
62611
  wo_list_offerte_requests: {
61592
62612
  Args: {
61593
62613
  _status?: string;