@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 publishTradeItem: import("@tanstack/start-client-core").Opt
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 publishTradeItem: import("@tanstack/start-client-core").Opt
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 publishTradeItem: import("@tanstack/start-client-core").Opt
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 publishTradeItem: import("@tanstack/start-client-core").Opt
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 publishTradeItem: import("@tanstack/start-client-core").Opt
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 publishTradeItem: import("@tanstack/start-client-core").Opt
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 publishTradeItem: import("@tanstack/start-client-core").Opt
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 publishTradeItem: import("@tanstack/start-client-core").Opt
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 publishTradeItem: import("@tanstack/start-client-core").Opt
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 publishTradeItem: import("@tanstack/start-client-core").Opt
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 publishTradeItem: import("@tanstack/start-client-core").Opt
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 publishTradeItem: import("@tanstack/start-client-core").Opt
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 publishTradeItem: import("@tanstack/start-client-core").Opt
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 publishTradeItem: import("@tanstack/start-client-core").Opt
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 publishTradeItem: import("@tanstack/start-client-core").Opt
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 publishTradeItem: import("@tanstack/start-client-core").Opt
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 publishTradeItem: import("@tanstack/start-client-core").Opt
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 publishTradeItem: import("@tanstack/start-client-core").Opt
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 publishTradeItem: import("@tanstack/start-client-core").Opt
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 publishTradeItem: import("@tanstack/start-client-core").Opt
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 publishTradeItem: import("@tanstack/start-client-core").Opt
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 publishTradeItem: import("@tanstack/start-client-core").Opt
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 publishTradeItem: import("@tanstack/start-client-core").Opt
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 publishTradeItem: import("@tanstack/start-client-core").Opt
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 publishTradeItem: import("@tanstack/start-client-core").Opt
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 publishTradeItem: import("@tanstack/start-client-core").Opt
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 publishTradeItem: import("@tanstack/start-client-core").Opt
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 publishTradeItem: import("@tanstack/start-client-core").Opt
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 publishTradeItem: import("@tanstack/start-client-core").Opt
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 publishTradeItem: import("@tanstack/start-client-core").Opt
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 publishTradeItem: import("@tanstack/start-client-core").Opt
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 publishTradeItem: import("@tanstack/start-client-core").Opt
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 publishTradeItem: import("@tanstack/start-client-core").Opt
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 publishTradeItem: import("@tanstack/start-client-core").Opt
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 publishTradeItem: import("@tanstack/start-client-core").Opt
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 publishTradeItem: import("@tanstack/start-client-core").Opt
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;
@@ -31564,6 +32074,27 @@ export declare const upsertSupplyLine: import("@tanstack/start-client-core").Opt
31564
32074
  };
31565
32075
  Relationships: [];
31566
32076
  };
32077
+ artikelen_instellingen: {
32078
+ Row: {
32079
+ created_at: string;
32080
+ id: number;
32081
+ marge_procent: number;
32082
+ updated_at: string;
32083
+ };
32084
+ Insert: {
32085
+ created_at?: string;
32086
+ id?: number;
32087
+ marge_procent?: number;
32088
+ updated_at?: string;
32089
+ };
32090
+ Update: {
32091
+ created_at?: string;
32092
+ id?: number;
32093
+ marge_procent?: number;
32094
+ updated_at?: string;
32095
+ };
32096
+ Relationships: [];
32097
+ };
31567
32098
  artikelen_veldconfig: {
31568
32099
  Row: {
31569
32100
  bron_pad: string;
@@ -41239,6 +41770,30 @@ export declare const upsertSupplyLine: import("@tanstack/start-client-core").Opt
41239
41770
  };
41240
41771
  Relationships: [];
41241
41772
  };
41773
+ logistics_cart_barcode_archief: {
41774
+ Row: {
41775
+ barcode: string;
41776
+ cart_id: string;
41777
+ created_at: string | null;
41778
+ gearchiveerd_op: string;
41779
+ order_id: string | null;
41780
+ };
41781
+ Insert: {
41782
+ barcode: string;
41783
+ cart_id: string;
41784
+ created_at?: string | null;
41785
+ gearchiveerd_op?: string;
41786
+ order_id?: string | null;
41787
+ };
41788
+ Update: {
41789
+ barcode?: string;
41790
+ cart_id?: string;
41791
+ created_at?: string | null;
41792
+ gearchiveerd_op?: string;
41793
+ order_id?: string | null;
41794
+ };
41795
+ Relationships: [];
41796
+ };
41242
41797
  logistics_control_scan: {
41243
41798
  Row: {
41244
41799
  approved_at: string | null;
@@ -46892,18 +47447,24 @@ export declare const upsertSupplyLine: import("@tanstack/start-client-core").Opt
46892
47447
  Row: {
46893
47448
  id: boolean;
46894
47449
  last_cleanup_at: string | null;
47450
+ last_error: string | null;
47451
+ last_error_at: string | null;
46895
47452
  last_sync_at: string | null;
46896
47453
  updated_at: string;
46897
47454
  };
46898
47455
  Insert: {
46899
47456
  id?: boolean;
46900
47457
  last_cleanup_at?: string | null;
47458
+ last_error?: string | null;
47459
+ last_error_at?: string | null;
46901
47460
  last_sync_at?: string | null;
46902
47461
  updated_at?: string;
46903
47462
  };
46904
47463
  Update: {
46905
47464
  id?: boolean;
46906
47465
  last_cleanup_at?: string | null;
47466
+ last_error?: string | null;
47467
+ last_error_at?: string | null;
46907
47468
  last_sync_at?: string | null;
46908
47469
  updated_at?: string;
46909
47470
  };
@@ -47029,6 +47590,54 @@ export declare const upsertSupplyLine: import("@tanstack/start-client-core").Opt
47029
47590
  };
47030
47591
  Relationships: [];
47031
47592
  };
47593
+ planning_confirmation_log: {
47594
+ Row: {
47595
+ created_at: string;
47596
+ end_at: string;
47597
+ id: string;
47598
+ outbox_id: string | null;
47599
+ planning_item_id: string;
47600
+ reason: string | null;
47601
+ recipient: string | null;
47602
+ start_at: string;
47603
+ status: string;
47604
+ };
47605
+ Insert: {
47606
+ created_at?: string;
47607
+ end_at: string;
47608
+ id?: string;
47609
+ outbox_id?: string | null;
47610
+ planning_item_id: string;
47611
+ reason?: string | null;
47612
+ recipient?: string | null;
47613
+ start_at: string;
47614
+ status: string;
47615
+ };
47616
+ Update: {
47617
+ created_at?: string;
47618
+ end_at?: string;
47619
+ id?: string;
47620
+ outbox_id?: string | null;
47621
+ planning_item_id?: string;
47622
+ reason?: string | null;
47623
+ recipient?: string | null;
47624
+ start_at?: string;
47625
+ status?: string;
47626
+ };
47627
+ Relationships: [{
47628
+ foreignKeyName: "planning_confirmation_log_planning_item_id_fkey";
47629
+ columns: ["planning_item_id"];
47630
+ isOneToOne: false;
47631
+ referencedRelation: "planning_items";
47632
+ referencedColumns: ["id"];
47633
+ }, {
47634
+ foreignKeyName: "planning_confirmation_log_planning_item_id_fkey";
47635
+ columns: ["planning_item_id"];
47636
+ isOneToOne: false;
47637
+ referencedRelation: "planning_overview";
47638
+ referencedColumns: ["id"];
47639
+ }];
47640
+ };
47032
47641
  planning_item_assistants: {
47033
47642
  Row: {
47034
47643
  created_at: string;
@@ -47113,6 +47722,60 @@ export declare const upsertSupplyLine: import("@tanstack/start-client-core").Opt
47113
47722
  referencedColumns: ["id"];
47114
47723
  }];
47115
47724
  };
47725
+ planning_mail_settings: {
47726
+ Row: {
47727
+ body_template: string;
47728
+ cc: string[];
47729
+ connection_id: string | null;
47730
+ created_at: string;
47731
+ enabled: boolean;
47732
+ id: boolean;
47733
+ reply_to: string | null;
47734
+ subject_template: string;
47735
+ timezone: string;
47736
+ updated_at: string;
47737
+ updated_by: string | null;
47738
+ };
47739
+ Insert: {
47740
+ body_template?: string;
47741
+ cc?: string[];
47742
+ connection_id?: string | null;
47743
+ created_at?: string;
47744
+ enabled?: boolean;
47745
+ id?: boolean;
47746
+ reply_to?: string | null;
47747
+ subject_template?: string;
47748
+ timezone?: string;
47749
+ updated_at?: string;
47750
+ updated_by?: string | null;
47751
+ };
47752
+ Update: {
47753
+ body_template?: string;
47754
+ cc?: string[];
47755
+ connection_id?: string | null;
47756
+ created_at?: string;
47757
+ enabled?: boolean;
47758
+ id?: boolean;
47759
+ reply_to?: string | null;
47760
+ subject_template?: string;
47761
+ timezone?: string;
47762
+ updated_at?: string;
47763
+ updated_by?: string | null;
47764
+ };
47765
+ Relationships: [{
47766
+ foreignKeyName: "planning_mail_settings_connection_id_fkey";
47767
+ columns: ["connection_id"];
47768
+ isOneToOne: false;
47769
+ referencedRelation: "email_auth_connections";
47770
+ referencedColumns: ["id"];
47771
+ }, {
47772
+ foreignKeyName: "planning_mail_settings_connection_id_fkey";
47773
+ columns: ["connection_id"];
47774
+ isOneToOne: false;
47775
+ referencedRelation: "email_auth_connections_safe";
47776
+ referencedColumns: ["id"];
47777
+ }];
47778
+ };
47116
47779
  planning_monteur_day_locations: {
47117
47780
  Row: {
47118
47781
  created_at: string;
@@ -48591,6 +49254,9 @@ export declare const upsertSupplyLine: import("@tanstack/start-client-core").Opt
48591
49254
  lead_time_days: number | null;
48592
49255
  min_order_quantity: number | null;
48593
49256
  notes: string | null;
49257
+ previous_price_cents: number | null;
49258
+ price_source: string;
49259
+ price_updated_at: string | null;
48594
49260
  product_id: string;
48595
49261
  purchase_price_cents: number | null;
48596
49262
  supplier_article_number: string | null;
@@ -48604,6 +49270,9 @@ export declare const upsertSupplyLine: import("@tanstack/start-client-core").Opt
48604
49270
  lead_time_days?: number | null;
48605
49271
  min_order_quantity?: number | null;
48606
49272
  notes?: string | null;
49273
+ previous_price_cents?: number | null;
49274
+ price_source?: string;
49275
+ price_updated_at?: string | null;
48607
49276
  product_id: string;
48608
49277
  purchase_price_cents?: number | null;
48609
49278
  supplier_article_number?: string | null;
@@ -48617,6 +49286,9 @@ export declare const upsertSupplyLine: import("@tanstack/start-client-core").Opt
48617
49286
  lead_time_days?: number | null;
48618
49287
  min_order_quantity?: number | null;
48619
49288
  notes?: string | null;
49289
+ previous_price_cents?: number | null;
49290
+ price_source?: string;
49291
+ price_updated_at?: string | null;
48620
49292
  product_id?: string;
48621
49293
  purchase_price_cents?: number | null;
48622
49294
  supplier_article_number?: string | null;
@@ -49147,9 +49819,13 @@ export declare const upsertSupplyLine: import("@tanstack/start-client-core").Opt
49147
49819
  purchase_order_items: {
49148
49820
  Row: {
49149
49821
  article_number: string | null;
49822
+ cancel_reason: string | null;
49823
+ cancelled_at: string | null;
49150
49824
  created_at: string;
49151
49825
  delivery_date: string | null;
49152
49826
  id: string;
49827
+ incoming_booked: number;
49828
+ line_status: string;
49153
49829
  name: string;
49154
49830
  note: string | null;
49155
49831
  pot_size: string | null;
@@ -49157,6 +49833,8 @@ export declare const upsertSupplyLine: import("@tanstack/start-client-core").Opt
49157
49833
  product_type: string;
49158
49834
  purchase_order_id: string;
49159
49835
  quantity: number;
49836
+ received_at: string | null;
49837
+ received_booked: number;
49160
49838
  supplier_id: string | null;
49161
49839
  supplier_product_id: string | null;
49162
49840
  unit_price_cents: number;
@@ -49164,9 +49842,13 @@ export declare const upsertSupplyLine: import("@tanstack/start-client-core").Opt
49164
49842
  };
49165
49843
  Insert: {
49166
49844
  article_number?: string | null;
49845
+ cancel_reason?: string | null;
49846
+ cancelled_at?: string | null;
49167
49847
  created_at?: string;
49168
49848
  delivery_date?: string | null;
49169
49849
  id?: string;
49850
+ incoming_booked?: number;
49851
+ line_status?: string;
49170
49852
  name?: string;
49171
49853
  note?: string | null;
49172
49854
  pot_size?: string | null;
@@ -49174,6 +49856,8 @@ export declare const upsertSupplyLine: import("@tanstack/start-client-core").Opt
49174
49856
  product_type?: string;
49175
49857
  purchase_order_id: string;
49176
49858
  quantity?: number;
49859
+ received_at?: string | null;
49860
+ received_booked?: number;
49177
49861
  supplier_id?: string | null;
49178
49862
  supplier_product_id?: string | null;
49179
49863
  unit_price_cents?: number;
@@ -49181,9 +49865,13 @@ export declare const upsertSupplyLine: import("@tanstack/start-client-core").Opt
49181
49865
  };
49182
49866
  Update: {
49183
49867
  article_number?: string | null;
49868
+ cancel_reason?: string | null;
49869
+ cancelled_at?: string | null;
49184
49870
  created_at?: string;
49185
49871
  delivery_date?: string | null;
49186
49872
  id?: string;
49873
+ incoming_booked?: number;
49874
+ line_status?: string;
49187
49875
  name?: string;
49188
49876
  note?: string | null;
49189
49877
  pot_size?: string | null;
@@ -49191,6 +49879,8 @@ export declare const upsertSupplyLine: import("@tanstack/start-client-core").Opt
49191
49879
  product_type?: string;
49192
49880
  purchase_order_id?: string;
49193
49881
  quantity?: number;
49882
+ received_at?: string | null;
49883
+ received_booked?: number;
49194
49884
  supplier_id?: string | null;
49195
49885
  supplier_product_id?: string | null;
49196
49886
  unit_price_cents?: number;
@@ -49294,6 +49984,153 @@ export declare const upsertSupplyLine: import("@tanstack/start-client-core").Opt
49294
49984
  referencedColumns: ["id"];
49295
49985
  }];
49296
49986
  };
49987
+ purchase_request_events: {
49988
+ Row: {
49989
+ created_at: string;
49990
+ details: import("../integrations/supabase/types").Json | null;
49991
+ event_type: string;
49992
+ id: string;
49993
+ request_id: string;
49994
+ };
49995
+ Insert: {
49996
+ created_at?: string;
49997
+ details?: import("../integrations/supabase/types").Json | null;
49998
+ event_type: string;
49999
+ id?: string;
50000
+ request_id: string;
50001
+ };
50002
+ Update: {
50003
+ created_at?: string;
50004
+ details?: import("../integrations/supabase/types").Json | null;
50005
+ event_type?: string;
50006
+ id?: string;
50007
+ request_id?: string;
50008
+ };
50009
+ Relationships: [{
50010
+ foreignKeyName: "purchase_request_events_request_id_fkey";
50011
+ columns: ["request_id"];
50012
+ isOneToOne: false;
50013
+ referencedRelation: "purchase_requests";
50014
+ referencedColumns: ["id"];
50015
+ }];
50016
+ };
50017
+ purchase_request_responses: {
50018
+ Row: {
50019
+ confirmed_date: string | null;
50020
+ confirmed_price_cents: number | null;
50021
+ confirmed_quantity: number;
50022
+ created_at: string;
50023
+ id: string;
50024
+ not_available: boolean;
50025
+ note: string | null;
50026
+ purchase_order_item_id: string;
50027
+ request_id: string;
50028
+ updated_at: string;
50029
+ };
50030
+ Insert: {
50031
+ confirmed_date?: string | null;
50032
+ confirmed_price_cents?: number | null;
50033
+ confirmed_quantity?: number;
50034
+ created_at?: string;
50035
+ id?: string;
50036
+ not_available?: boolean;
50037
+ note?: string | null;
50038
+ purchase_order_item_id: string;
50039
+ request_id: string;
50040
+ updated_at?: string;
50041
+ };
50042
+ Update: {
50043
+ confirmed_date?: string | null;
50044
+ confirmed_price_cents?: number | null;
50045
+ confirmed_quantity?: number;
50046
+ created_at?: string;
50047
+ id?: string;
50048
+ not_available?: boolean;
50049
+ note?: string | null;
50050
+ purchase_order_item_id?: string;
50051
+ request_id?: string;
50052
+ updated_at?: string;
50053
+ };
50054
+ Relationships: [{
50055
+ foreignKeyName: "purchase_request_responses_purchase_order_item_id_fkey";
50056
+ columns: ["purchase_order_item_id"];
50057
+ isOneToOne: false;
50058
+ referencedRelation: "purchase_order_items";
50059
+ referencedColumns: ["id"];
50060
+ }, {
50061
+ foreignKeyName: "purchase_request_responses_request_id_fkey";
50062
+ columns: ["request_id"];
50063
+ isOneToOne: false;
50064
+ referencedRelation: "purchase_requests";
50065
+ referencedColumns: ["id"];
50066
+ }];
50067
+ };
50068
+ purchase_requests: {
50069
+ Row: {
50070
+ created_at: string;
50071
+ expires_at: string;
50072
+ first_viewed_at: string | null;
50073
+ id: string;
50074
+ processed_at: string | null;
50075
+ purchase_order_id: string;
50076
+ responded_at: string | null;
50077
+ sent_at: string;
50078
+ status: string;
50079
+ supplier_id: string | null;
50080
+ supplier_name: string;
50081
+ supplier_note: string | null;
50082
+ to_address: string | null;
50083
+ token_hash: string;
50084
+ updated_at: string;
50085
+ };
50086
+ Insert: {
50087
+ created_at?: string;
50088
+ expires_at?: string;
50089
+ first_viewed_at?: string | null;
50090
+ id?: string;
50091
+ processed_at?: string | null;
50092
+ purchase_order_id: string;
50093
+ responded_at?: string | null;
50094
+ sent_at?: string;
50095
+ status?: string;
50096
+ supplier_id?: string | null;
50097
+ supplier_name?: string;
50098
+ supplier_note?: string | null;
50099
+ to_address?: string | null;
50100
+ token_hash: string;
50101
+ updated_at?: string;
50102
+ };
50103
+ Update: {
50104
+ created_at?: string;
50105
+ expires_at?: string;
50106
+ first_viewed_at?: string | null;
50107
+ id?: string;
50108
+ processed_at?: string | null;
50109
+ purchase_order_id?: string;
50110
+ responded_at?: string | null;
50111
+ sent_at?: string;
50112
+ status?: string;
50113
+ supplier_id?: string | null;
50114
+ supplier_name?: string;
50115
+ supplier_note?: string | null;
50116
+ to_address?: string | null;
50117
+ token_hash?: string;
50118
+ updated_at?: string;
50119
+ };
50120
+ Relationships: [{
50121
+ foreignKeyName: "purchase_requests_purchase_order_id_fkey";
50122
+ columns: ["purchase_order_id"];
50123
+ isOneToOne: false;
50124
+ referencedRelation: "purchase_orders";
50125
+ referencedColumns: ["id"];
50126
+ }, {
50127
+ foreignKeyName: "purchase_requests_supplier_id_fkey";
50128
+ columns: ["supplier_id"];
50129
+ isOneToOne: false;
50130
+ referencedRelation: "suppliers";
50131
+ referencedColumns: ["id"];
50132
+ }];
50133
+ };
49297
50134
  reception_notifications: {
49298
50135
  Row: {
49299
50136
  booking_id: string | null;
@@ -53719,7 +54556,7 @@ export declare const upsertSupplyLine: import("@tanstack/start-client-core").Opt
53719
54556
  created_at: string;
53720
54557
  default_quantity: number;
53721
54558
  description: string | null;
53722
- duration_minutes: number | null;
54559
+ duration_minutes: number;
53723
54560
  id: string;
53724
54561
  mandaat_type: string | null;
53725
54562
  name: string;
@@ -53736,7 +54573,7 @@ export declare const upsertSupplyLine: import("@tanstack/start-client-core").Opt
53736
54573
  created_at?: string;
53737
54574
  default_quantity?: number;
53738
54575
  description?: string | null;
53739
- duration_minutes?: number | null;
54576
+ duration_minutes?: number;
53740
54577
  id?: string;
53741
54578
  mandaat_type?: string | null;
53742
54579
  name: string;
@@ -53753,7 +54590,7 @@ export declare const upsertSupplyLine: import("@tanstack/start-client-core").Opt
53753
54590
  created_at?: string;
53754
54591
  default_quantity?: number;
53755
54592
  description?: string | null;
53756
- duration_minutes?: number | null;
54593
+ duration_minutes?: number;
53757
54594
  id?: string;
53758
54595
  mandaat_type?: string | null;
53759
54596
  name?: string;
@@ -56749,6 +57586,31 @@ export declare const upsertSupplyLine: import("@tanstack/start-client-core").Opt
56749
57586
  };
56750
57587
  Returns: import("../integrations/supabase/types").Json;
56751
57588
  };
57589
+ inkoop_cancel_line: {
57590
+ Args: {
57591
+ _item_id: string;
57592
+ _reason: string;
57593
+ };
57594
+ Returns: string;
57595
+ };
57596
+ inkoop_get_supplier_request: {
57597
+ Args: {
57598
+ _token: string;
57599
+ };
57600
+ Returns: import("../integrations/supabase/types").Json;
57601
+ };
57602
+ inkoop_hash_token: {
57603
+ Args: {
57604
+ _token: string;
57605
+ };
57606
+ Returns: string;
57607
+ };
57608
+ inkoop_html_escape: {
57609
+ Args: {
57610
+ _t: string;
57611
+ };
57612
+ Returns: string;
57613
+ };
56752
57614
  inkoop_list_artikelen: {
56753
57615
  Args: never;
56754
57616
  Returns: {
@@ -56773,9 +57635,17 @@ export declare const upsertSupplyLine: import("@tanstack/start-client-core").Opt
56773
57635
  Args: never;
56774
57636
  Returns: string;
56775
57637
  };
57638
+ inkoop_process_request: {
57639
+ Args: {
57640
+ _request_id: string;
57641
+ };
57642
+ Returns: undefined;
57643
+ };
56776
57644
  inkoop_send_order: {
56777
57645
  Args: {
57646
+ _base_url?: string;
56778
57647
  _order_id: string;
57648
+ _resend?: boolean;
56779
57649
  };
56780
57650
  Returns: {
56781
57651
  outbox_id: string;
@@ -56790,6 +57660,26 @@ export declare const upsertSupplyLine: import("@tanstack/start-client-core").Opt
56790
57660
  };
56791
57661
  Returns: undefined;
56792
57662
  };
57663
+ inkoop_stock_key: {
57664
+ Args: {
57665
+ p_product_id: string;
57666
+ };
57667
+ Returns: string;
57668
+ };
57669
+ inkoop_submit_supplier_response: {
57670
+ Args: {
57671
+ _lines: import("../integrations/supabase/types").Json;
57672
+ _note?: string;
57673
+ _token: string;
57674
+ };
57675
+ Returns: import("../integrations/supabase/types").Json;
57676
+ };
57677
+ inkoop_sync_item_stock: {
57678
+ Args: {
57679
+ p_item_id: string;
57680
+ };
57681
+ Returns: undefined;
57682
+ };
56793
57683
  instructie_get: {
56794
57684
  Args: {
56795
57685
  _sleutel: string;
@@ -56950,6 +57840,27 @@ export declare const upsertSupplyLine: import("@tanstack/start-client-core").Opt
56950
57840
  };
56951
57841
  Returns: boolean;
56952
57842
  };
57843
+ layout_print_document: {
57844
+ Args: {
57845
+ _documentnaam: string;
57846
+ _documenttype: string;
57847
+ _herkomst?: string;
57848
+ _idempotentie_sleutel?: string;
57849
+ _is_herprint?: boolean;
57850
+ _kopieen?: number;
57851
+ _layout_id?: string;
57852
+ _payload?: import("../integrations/supabase/types").Json;
57853
+ _pdf_base64?: string;
57854
+ _pdf_url?: string;
57855
+ _print_plek_id?: string;
57856
+ _werkplek?: string;
57857
+ };
57858
+ Returns: {
57859
+ bestaand: boolean;
57860
+ job_id: string;
57861
+ printer_id: string;
57862
+ }[];
57863
+ };
56953
57864
  list_medewerkers: {
56954
57865
  Args: never;
56955
57866
  Returns: {
@@ -57227,6 +58138,12 @@ export declare const upsertSupplyLine: import("@tanstack/start-client-core").Opt
57227
58138
  };
57228
58139
  Returns: number;
57229
58140
  };
58141
+ logistics_cart_barcode_opschonen: {
58142
+ Args: {
58143
+ p_portie?: number;
58144
+ };
58145
+ Returns: import("../integrations/supabase/types").Json;
58146
+ };
57230
58147
  logistics_cart_barcode_value: {
57231
58148
  Args: {
57232
58149
  _cart_id: string;
@@ -57646,6 +58563,13 @@ export declare const upsertSupplyLine: import("@tanstack/start-client-core").Opt
57646
58563
  };
57647
58564
  Returns: import("../integrations/supabase/types").Json;
57648
58565
  };
58566
+ logistics_control_scan_print_own: {
58567
+ Args: {
58568
+ p_is_herprint?: boolean;
58569
+ p_scan_id: string;
58570
+ };
58571
+ Returns: import("../integrations/supabase/types").Json;
58572
+ };
57649
58573
  logistics_control_scan_retry: {
57650
58574
  Args: {
57651
58575
  _id: string;
@@ -58550,6 +59474,21 @@ export declare const upsertSupplyLine: import("@tanstack/start-client-core").Opt
58550
59474
  };
58551
59475
  Returns: import("../integrations/supabase/types").Json;
58552
59476
  };
59477
+ logistics_print_via_layout: {
59478
+ Args: {
59479
+ _documentnaam: string;
59480
+ _documenttype: string;
59481
+ _herkomst: string;
59482
+ _idempotentie_sleutel: string;
59483
+ _is_herprint: boolean;
59484
+ _layout_id: string;
59485
+ _payload: import("../integrations/supabase/types").Json;
59486
+ _pdf_base64: string;
59487
+ _pdf_url: string;
59488
+ _print_plek_id: string;
59489
+ };
59490
+ Returns: import("../integrations/supabase/types").Json;
59491
+ };
58553
59492
  logistics_prune_buffer_member_queue: {
58554
59493
  Args: never;
58555
59494
  Returns: number;
@@ -58836,6 +59775,13 @@ export declare const upsertSupplyLine: import("@tanstack/start-client-core").Opt
58836
59775
  };
58837
59776
  Returns: string;
58838
59777
  };
59778
+ logistics_shipping_note_status: {
59779
+ Args: {
59780
+ p_cart_id?: string;
59781
+ p_slip_job_id?: string;
59782
+ };
59783
+ Returns: import("../integrations/supabase/types").Json;
59784
+ };
58839
59785
  logistics_shipping_notes_wake_all: {
58840
59786
  Args: never;
58841
59787
  Returns: import("../integrations/supabase/types").Json;
@@ -58898,6 +59844,12 @@ export declare const upsertSupplyLine: import("@tanstack/start-client-core").Opt
58898
59844
  };
58899
59845
  Returns: undefined;
58900
59846
  };
59847
+ logistics_slip_note_retry: {
59848
+ Args: {
59849
+ _id: string;
59850
+ };
59851
+ Returns: import("../integrations/supabase/types").Json;
59852
+ };
58901
59853
  logistics_sticker_follows_slip: {
58902
59854
  Args: never;
58903
59855
  Returns: boolean;
@@ -59642,6 +60594,10 @@ export declare const upsertSupplyLine: import("@tanstack/start-client-core").Opt
59642
60594
  };
59643
60595
  Returns: string;
59644
60596
  };
60597
+ pick_is_reference_admin: {
60598
+ Args: never;
60599
+ Returns: boolean;
60600
+ };
59645
60601
  pick_mark_printed: {
59646
60602
  Args: {
59647
60603
  _queue_item_id: string;
@@ -60065,6 +61021,12 @@ export declare const upsertSupplyLine: import("@tanstack/start-client-core").Opt
60065
61021
  };
60066
61022
  Returns: import("../integrations/supabase/types").Json;
60067
61023
  };
61024
+ pick_verify_rows: {
61025
+ Args: {
61026
+ _rows: import("../integrations/supabase/types").Json;
61027
+ };
61028
+ Returns: import("../integrations/supabase/types").Json;
61029
+ };
60068
61030
  pickstation_get_orders_raw: {
60069
61031
  Args: never;
60070
61032
  Returns: import("../integrations/supabase/types").Json;
@@ -60245,6 +61207,12 @@ export declare const upsertSupplyLine: import("@tanstack/start-client-core").Opt
60245
61207
  };
60246
61208
  Returns: import("../integrations/supabase/types").Json;
60247
61209
  };
61210
+ quote_create_from_scratch: {
61211
+ Args: {
61212
+ _payload: import("../integrations/supabase/types").Json;
61213
+ };
61214
+ Returns: import("../integrations/supabase/types").Json;
61215
+ };
60248
61216
  quote_create_from_source: {
60249
61217
  Args: {
60250
61218
  _payload?: import("../integrations/supabase/types").Json;
@@ -60295,6 +61263,13 @@ export declare const upsertSupplyLine: import("@tanstack/start-client-core").Opt
60295
61263
  };
60296
61264
  Returns: string;
60297
61265
  };
61266
+ quote_sync_work_order: {
61267
+ Args: {
61268
+ _monteur_instructies?: string;
61269
+ _offerte_id: string;
61270
+ };
61271
+ Returns: boolean;
61272
+ };
60298
61273
  recompute_all_reserved_stock: {
60299
61274
  Args: never;
60300
61275
  Returns: undefined;
@@ -60515,6 +61490,13 @@ export declare const upsertSupplyLine: import("@tanstack/start-client-core").Opt
60515
61490
  };
60516
61491
  Returns: import("../integrations/supabase/types").Json;
60517
61492
  };
61493
+ scan_controleer_pincode: {
61494
+ Args: {
61495
+ p_pin: string;
61496
+ p_scanner_id: string;
61497
+ };
61498
+ Returns: boolean;
61499
+ };
60518
61500
  scan_dashboard_stats: {
60519
61501
  Args: {
60520
61502
  p_dagen?: number;
@@ -60534,6 +61516,12 @@ export declare const upsertSupplyLine: import("@tanstack/start-client-core").Opt
60534
61516
  };
60535
61517
  Returns: import("../integrations/supabase/types").Json;
60536
61518
  };
61519
+ scan_heeft_pincode: {
61520
+ Args: {
61521
+ p_scanner_id: string;
61522
+ };
61523
+ Returns: boolean;
61524
+ };
60537
61525
  scan_kar_compleet: {
60538
61526
  Args: {
60539
61527
  p_allow_reprint?: boolean;
@@ -60551,6 +61539,7 @@ export declare const upsertSupplyLine: import("@tanstack/start-client-core").Opt
60551
61539
  Args: {
60552
61540
  p_code: string;
60553
61541
  p_latency_ms?: number;
61542
+ p_medewerker?: string;
60554
61543
  p_message?: string;
60555
61544
  p_result: string;
60556
61545
  p_scanner_key?: string;
@@ -60623,6 +61612,22 @@ export declare const upsertSupplyLine: import("@tanstack/start-client-core").Opt
60623
61612
  };
60624
61613
  Returns: undefined;
60625
61614
  };
61615
+ scan_scanner_info: {
61616
+ Args: {
61617
+ p_slug: string;
61618
+ };
61619
+ Returns: {
61620
+ actief: boolean;
61621
+ heeft_pincode: boolean;
61622
+ id: string;
61623
+ naam: string;
61624
+ omschrijving: string;
61625
+ printer_id: string;
61626
+ type: string;
61627
+ vereist_medewerker: boolean;
61628
+ werkplek: string;
61629
+ }[];
61630
+ };
60626
61631
  scan_sessie_annuleren: {
60627
61632
  Args: {
60628
61633
  p_sessie_id: string;
@@ -61585,6 +62590,21 @@ export declare const upsertSupplyLine: import("@tanstack/start-client-core").Opt
61585
62590
  };
61586
62591
  Returns: import("../integrations/supabase/types").Json;
61587
62592
  };
62593
+ wo_list_colleague_planning: {
62594
+ Args: {
62595
+ _from: string;
62596
+ _monteur_id: string;
62597
+ _to: string;
62598
+ };
62599
+ Returns: {
62600
+ end_at: string;
62601
+ id: string;
62602
+ role: string;
62603
+ start_at: string;
62604
+ status: string;
62605
+ werkbon_id: string;
62606
+ }[];
62607
+ };
61588
62608
  wo_list_offerte_requests: {
61589
62609
  Args: {
61590
62610
  _status?: string;