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