@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
@@ -748,6 +748,27 @@ export declare const listLogisticLabelsForOrder: import("@tanstack/start-client-
748
748
  };
749
749
  Relationships: [];
750
750
  };
751
+ artikelen_instellingen: {
752
+ Row: {
753
+ created_at: string;
754
+ id: number;
755
+ marge_procent: number;
756
+ updated_at: string;
757
+ };
758
+ Insert: {
759
+ created_at?: string;
760
+ id?: number;
761
+ marge_procent?: number;
762
+ updated_at?: string;
763
+ };
764
+ Update: {
765
+ created_at?: string;
766
+ id?: number;
767
+ marge_procent?: number;
768
+ updated_at?: string;
769
+ };
770
+ Relationships: [];
771
+ };
751
772
  artikelen_veldconfig: {
752
773
  Row: {
753
774
  bron_pad: string;
@@ -10423,6 +10444,30 @@ export declare const listLogisticLabelsForOrder: import("@tanstack/start-client-
10423
10444
  };
10424
10445
  Relationships: [];
10425
10446
  };
10447
+ logistics_cart_barcode_archief: {
10448
+ Row: {
10449
+ barcode: string;
10450
+ cart_id: string;
10451
+ created_at: string | null;
10452
+ gearchiveerd_op: string;
10453
+ order_id: string | null;
10454
+ };
10455
+ Insert: {
10456
+ barcode: string;
10457
+ cart_id: string;
10458
+ created_at?: string | null;
10459
+ gearchiveerd_op?: string;
10460
+ order_id?: string | null;
10461
+ };
10462
+ Update: {
10463
+ barcode?: string;
10464
+ cart_id?: string;
10465
+ created_at?: string | null;
10466
+ gearchiveerd_op?: string;
10467
+ order_id?: string | null;
10468
+ };
10469
+ Relationships: [];
10470
+ };
10426
10471
  logistics_control_scan: {
10427
10472
  Row: {
10428
10473
  approved_at: string | null;
@@ -16076,18 +16121,24 @@ export declare const listLogisticLabelsForOrder: import("@tanstack/start-client-
16076
16121
  Row: {
16077
16122
  id: boolean;
16078
16123
  last_cleanup_at: string | null;
16124
+ last_error: string | null;
16125
+ last_error_at: string | null;
16079
16126
  last_sync_at: string | null;
16080
16127
  updated_at: string;
16081
16128
  };
16082
16129
  Insert: {
16083
16130
  id?: boolean;
16084
16131
  last_cleanup_at?: string | null;
16132
+ last_error?: string | null;
16133
+ last_error_at?: string | null;
16085
16134
  last_sync_at?: string | null;
16086
16135
  updated_at?: string;
16087
16136
  };
16088
16137
  Update: {
16089
16138
  id?: boolean;
16090
16139
  last_cleanup_at?: string | null;
16140
+ last_error?: string | null;
16141
+ last_error_at?: string | null;
16091
16142
  last_sync_at?: string | null;
16092
16143
  updated_at?: string;
16093
16144
  };
@@ -16213,6 +16264,54 @@ export declare const listLogisticLabelsForOrder: import("@tanstack/start-client-
16213
16264
  };
16214
16265
  Relationships: [];
16215
16266
  };
16267
+ planning_confirmation_log: {
16268
+ Row: {
16269
+ created_at: string;
16270
+ end_at: string;
16271
+ id: string;
16272
+ outbox_id: string | null;
16273
+ planning_item_id: string;
16274
+ reason: string | null;
16275
+ recipient: string | null;
16276
+ start_at: string;
16277
+ status: string;
16278
+ };
16279
+ Insert: {
16280
+ created_at?: string;
16281
+ end_at: string;
16282
+ id?: string;
16283
+ outbox_id?: string | null;
16284
+ planning_item_id: string;
16285
+ reason?: string | null;
16286
+ recipient?: string | null;
16287
+ start_at: string;
16288
+ status: string;
16289
+ };
16290
+ Update: {
16291
+ created_at?: string;
16292
+ end_at?: string;
16293
+ id?: string;
16294
+ outbox_id?: string | null;
16295
+ planning_item_id?: string;
16296
+ reason?: string | null;
16297
+ recipient?: string | null;
16298
+ start_at?: string;
16299
+ status?: string;
16300
+ };
16301
+ Relationships: [{
16302
+ foreignKeyName: "planning_confirmation_log_planning_item_id_fkey";
16303
+ columns: ["planning_item_id"];
16304
+ isOneToOne: false;
16305
+ referencedRelation: "planning_items";
16306
+ referencedColumns: ["id"];
16307
+ }, {
16308
+ foreignKeyName: "planning_confirmation_log_planning_item_id_fkey";
16309
+ columns: ["planning_item_id"];
16310
+ isOneToOne: false;
16311
+ referencedRelation: "planning_overview";
16312
+ referencedColumns: ["id"];
16313
+ }];
16314
+ };
16216
16315
  planning_item_assistants: {
16217
16316
  Row: {
16218
16317
  created_at: string;
@@ -16297,6 +16396,60 @@ export declare const listLogisticLabelsForOrder: import("@tanstack/start-client-
16297
16396
  referencedColumns: ["id"];
16298
16397
  }];
16299
16398
  };
16399
+ planning_mail_settings: {
16400
+ Row: {
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
+ Insert: {
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
+ Update: {
16427
+ body_template?: string;
16428
+ cc?: string[];
16429
+ connection_id?: string | null;
16430
+ created_at?: string;
16431
+ enabled?: boolean;
16432
+ id?: boolean;
16433
+ reply_to?: string | null;
16434
+ subject_template?: string;
16435
+ timezone?: string;
16436
+ updated_at?: string;
16437
+ updated_by?: string | null;
16438
+ };
16439
+ Relationships: [{
16440
+ foreignKeyName: "planning_mail_settings_connection_id_fkey";
16441
+ columns: ["connection_id"];
16442
+ isOneToOne: false;
16443
+ referencedRelation: "email_auth_connections";
16444
+ referencedColumns: ["id"];
16445
+ }, {
16446
+ foreignKeyName: "planning_mail_settings_connection_id_fkey";
16447
+ columns: ["connection_id"];
16448
+ isOneToOne: false;
16449
+ referencedRelation: "email_auth_connections_safe";
16450
+ referencedColumns: ["id"];
16451
+ }];
16452
+ };
16300
16453
  planning_monteur_day_locations: {
16301
16454
  Row: {
16302
16455
  created_at: string;
@@ -17775,6 +17928,9 @@ export declare const listLogisticLabelsForOrder: import("@tanstack/start-client-
17775
17928
  lead_time_days: number | null;
17776
17929
  min_order_quantity: number | null;
17777
17930
  notes: string | null;
17931
+ previous_price_cents: number | null;
17932
+ price_source: string;
17933
+ price_updated_at: string | null;
17778
17934
  product_id: string;
17779
17935
  purchase_price_cents: number | null;
17780
17936
  supplier_article_number: string | null;
@@ -17788,6 +17944,9 @@ export declare const listLogisticLabelsForOrder: import("@tanstack/start-client-
17788
17944
  lead_time_days?: number | null;
17789
17945
  min_order_quantity?: number | null;
17790
17946
  notes?: string | null;
17947
+ previous_price_cents?: number | null;
17948
+ price_source?: string;
17949
+ price_updated_at?: string | null;
17791
17950
  product_id: string;
17792
17951
  purchase_price_cents?: number | null;
17793
17952
  supplier_article_number?: string | null;
@@ -17801,6 +17960,9 @@ export declare const listLogisticLabelsForOrder: import("@tanstack/start-client-
17801
17960
  lead_time_days?: number | null;
17802
17961
  min_order_quantity?: number | null;
17803
17962
  notes?: string | null;
17963
+ previous_price_cents?: number | null;
17964
+ price_source?: string;
17965
+ price_updated_at?: string | null;
17804
17966
  product_id?: string;
17805
17967
  purchase_price_cents?: number | null;
17806
17968
  supplier_article_number?: string | null;
@@ -18331,9 +18493,13 @@ export declare const listLogisticLabelsForOrder: import("@tanstack/start-client-
18331
18493
  purchase_order_items: {
18332
18494
  Row: {
18333
18495
  article_number: string | null;
18496
+ cancel_reason: string | null;
18497
+ cancelled_at: string | null;
18334
18498
  created_at: string;
18335
18499
  delivery_date: string | null;
18336
18500
  id: string;
18501
+ incoming_booked: number;
18502
+ line_status: string;
18337
18503
  name: string;
18338
18504
  note: string | null;
18339
18505
  pot_size: string | null;
@@ -18341,6 +18507,8 @@ export declare const listLogisticLabelsForOrder: import("@tanstack/start-client-
18341
18507
  product_type: string;
18342
18508
  purchase_order_id: string;
18343
18509
  quantity: number;
18510
+ received_at: string | null;
18511
+ received_booked: number;
18344
18512
  supplier_id: string | null;
18345
18513
  supplier_product_id: string | null;
18346
18514
  unit_price_cents: number;
@@ -18348,9 +18516,13 @@ export declare const listLogisticLabelsForOrder: import("@tanstack/start-client-
18348
18516
  };
18349
18517
  Insert: {
18350
18518
  article_number?: string | null;
18519
+ cancel_reason?: string | null;
18520
+ cancelled_at?: string | null;
18351
18521
  created_at?: string;
18352
18522
  delivery_date?: string | null;
18353
18523
  id?: string;
18524
+ incoming_booked?: number;
18525
+ line_status?: string;
18354
18526
  name?: string;
18355
18527
  note?: string | null;
18356
18528
  pot_size?: string | null;
@@ -18358,6 +18530,8 @@ export declare const listLogisticLabelsForOrder: import("@tanstack/start-client-
18358
18530
  product_type?: string;
18359
18531
  purchase_order_id: string;
18360
18532
  quantity?: number;
18533
+ received_at?: string | null;
18534
+ received_booked?: number;
18361
18535
  supplier_id?: string | null;
18362
18536
  supplier_product_id?: string | null;
18363
18537
  unit_price_cents?: number;
@@ -18365,9 +18539,13 @@ export declare const listLogisticLabelsForOrder: import("@tanstack/start-client-
18365
18539
  };
18366
18540
  Update: {
18367
18541
  article_number?: string | null;
18542
+ cancel_reason?: string | null;
18543
+ cancelled_at?: string | null;
18368
18544
  created_at?: string;
18369
18545
  delivery_date?: string | null;
18370
18546
  id?: string;
18547
+ incoming_booked?: number;
18548
+ line_status?: string;
18371
18549
  name?: string;
18372
18550
  note?: string | null;
18373
18551
  pot_size?: string | null;
@@ -18375,6 +18553,8 @@ export declare const listLogisticLabelsForOrder: import("@tanstack/start-client-
18375
18553
  product_type?: string;
18376
18554
  purchase_order_id?: string;
18377
18555
  quantity?: number;
18556
+ received_at?: string | null;
18557
+ received_booked?: number;
18378
18558
  supplier_id?: string | null;
18379
18559
  supplier_product_id?: string | null;
18380
18560
  unit_price_cents?: number;
@@ -18478,6 +18658,153 @@ export declare const listLogisticLabelsForOrder: import("@tanstack/start-client-
18478
18658
  referencedColumns: ["id"];
18479
18659
  }];
18480
18660
  };
18661
+ purchase_request_events: {
18662
+ Row: {
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
+ Insert: {
18670
+ created_at?: string;
18671
+ details?: import("../integrations/supabase/types").Json | null;
18672
+ event_type: string;
18673
+ id?: string;
18674
+ request_id: string;
18675
+ };
18676
+ Update: {
18677
+ created_at?: string;
18678
+ details?: import("../integrations/supabase/types").Json | null;
18679
+ event_type?: string;
18680
+ id?: string;
18681
+ request_id?: string;
18682
+ };
18683
+ Relationships: [{
18684
+ foreignKeyName: "purchase_request_events_request_id_fkey";
18685
+ columns: ["request_id"];
18686
+ isOneToOne: false;
18687
+ referencedRelation: "purchase_requests";
18688
+ referencedColumns: ["id"];
18689
+ }];
18690
+ };
18691
+ purchase_request_responses: {
18692
+ Row: {
18693
+ confirmed_date: string | null;
18694
+ confirmed_price_cents: number | null;
18695
+ confirmed_quantity: number;
18696
+ created_at: string;
18697
+ id: string;
18698
+ not_available: boolean;
18699
+ note: string | null;
18700
+ purchase_order_item_id: string;
18701
+ request_id: string;
18702
+ updated_at: string;
18703
+ };
18704
+ Insert: {
18705
+ confirmed_date?: string | null;
18706
+ confirmed_price_cents?: number | null;
18707
+ confirmed_quantity?: number;
18708
+ created_at?: string;
18709
+ id?: string;
18710
+ not_available?: boolean;
18711
+ note?: string | null;
18712
+ purchase_order_item_id: string;
18713
+ request_id: string;
18714
+ updated_at?: string;
18715
+ };
18716
+ Update: {
18717
+ confirmed_date?: string | null;
18718
+ confirmed_price_cents?: number | null;
18719
+ confirmed_quantity?: number;
18720
+ created_at?: string;
18721
+ id?: string;
18722
+ not_available?: boolean;
18723
+ note?: string | null;
18724
+ purchase_order_item_id?: string;
18725
+ request_id?: string;
18726
+ updated_at?: string;
18727
+ };
18728
+ Relationships: [{
18729
+ foreignKeyName: "purchase_request_responses_purchase_order_item_id_fkey";
18730
+ columns: ["purchase_order_item_id"];
18731
+ isOneToOne: false;
18732
+ referencedRelation: "purchase_order_items";
18733
+ referencedColumns: ["id"];
18734
+ }, {
18735
+ foreignKeyName: "purchase_request_responses_request_id_fkey";
18736
+ columns: ["request_id"];
18737
+ isOneToOne: false;
18738
+ referencedRelation: "purchase_requests";
18739
+ referencedColumns: ["id"];
18740
+ }];
18741
+ };
18742
+ purchase_requests: {
18743
+ Row: {
18744
+ created_at: string;
18745
+ expires_at: string;
18746
+ first_viewed_at: string | null;
18747
+ id: string;
18748
+ processed_at: string | null;
18749
+ purchase_order_id: string;
18750
+ responded_at: string | null;
18751
+ sent_at: string;
18752
+ status: string;
18753
+ supplier_id: string | null;
18754
+ supplier_name: string;
18755
+ supplier_note: string | null;
18756
+ to_address: string | null;
18757
+ token_hash: string;
18758
+ updated_at: string;
18759
+ };
18760
+ Insert: {
18761
+ created_at?: string;
18762
+ expires_at?: string;
18763
+ first_viewed_at?: string | null;
18764
+ id?: string;
18765
+ processed_at?: string | null;
18766
+ purchase_order_id: string;
18767
+ responded_at?: string | null;
18768
+ sent_at?: string;
18769
+ status?: string;
18770
+ supplier_id?: string | null;
18771
+ supplier_name?: string;
18772
+ supplier_note?: string | null;
18773
+ to_address?: string | null;
18774
+ token_hash: string;
18775
+ updated_at?: string;
18776
+ };
18777
+ Update: {
18778
+ created_at?: string;
18779
+ expires_at?: string;
18780
+ first_viewed_at?: string | null;
18781
+ id?: string;
18782
+ processed_at?: string | null;
18783
+ purchase_order_id?: string;
18784
+ responded_at?: string | null;
18785
+ sent_at?: string;
18786
+ status?: string;
18787
+ supplier_id?: string | null;
18788
+ supplier_name?: string;
18789
+ supplier_note?: string | null;
18790
+ to_address?: string | null;
18791
+ token_hash?: string;
18792
+ updated_at?: string;
18793
+ };
18794
+ Relationships: [{
18795
+ foreignKeyName: "purchase_requests_purchase_order_id_fkey";
18796
+ columns: ["purchase_order_id"];
18797
+ isOneToOne: false;
18798
+ referencedRelation: "purchase_orders";
18799
+ referencedColumns: ["id"];
18800
+ }, {
18801
+ foreignKeyName: "purchase_requests_supplier_id_fkey";
18802
+ columns: ["supplier_id"];
18803
+ isOneToOne: false;
18804
+ referencedRelation: "suppliers";
18805
+ referencedColumns: ["id"];
18806
+ }];
18807
+ };
18481
18808
  reception_notifications: {
18482
18809
  Row: {
18483
18810
  booking_id: string | null;
@@ -22903,7 +23230,7 @@ export declare const listLogisticLabelsForOrder: import("@tanstack/start-client-
22903
23230
  created_at: string;
22904
23231
  default_quantity: number;
22905
23232
  description: string | null;
22906
- duration_minutes: number | null;
23233
+ duration_minutes: number;
22907
23234
  id: string;
22908
23235
  mandaat_type: string | null;
22909
23236
  name: string;
@@ -22920,7 +23247,7 @@ export declare const listLogisticLabelsForOrder: import("@tanstack/start-client-
22920
23247
  created_at?: string;
22921
23248
  default_quantity?: number;
22922
23249
  description?: string | null;
22923
- duration_minutes?: number | null;
23250
+ duration_minutes?: number;
22924
23251
  id?: string;
22925
23252
  mandaat_type?: string | null;
22926
23253
  name: string;
@@ -22937,7 +23264,7 @@ export declare const listLogisticLabelsForOrder: import("@tanstack/start-client-
22937
23264
  created_at?: string;
22938
23265
  default_quantity?: number;
22939
23266
  description?: string | null;
22940
- duration_minutes?: number | null;
23267
+ duration_minutes?: number;
22941
23268
  id?: string;
22942
23269
  mandaat_type?: string | null;
22943
23270
  name?: string;
@@ -25933,6 +26260,31 @@ export declare const listLogisticLabelsForOrder: import("@tanstack/start-client-
25933
26260
  };
25934
26261
  Returns: import("../integrations/supabase/types").Json;
25935
26262
  };
26263
+ inkoop_cancel_line: {
26264
+ Args: {
26265
+ _item_id: string;
26266
+ _reason: string;
26267
+ };
26268
+ Returns: string;
26269
+ };
26270
+ inkoop_get_supplier_request: {
26271
+ Args: {
26272
+ _token: string;
26273
+ };
26274
+ Returns: import("../integrations/supabase/types").Json;
26275
+ };
26276
+ inkoop_hash_token: {
26277
+ Args: {
26278
+ _token: string;
26279
+ };
26280
+ Returns: string;
26281
+ };
26282
+ inkoop_html_escape: {
26283
+ Args: {
26284
+ _t: string;
26285
+ };
26286
+ Returns: string;
26287
+ };
25936
26288
  inkoop_list_artikelen: {
25937
26289
  Args: never;
25938
26290
  Returns: {
@@ -25957,9 +26309,17 @@ export declare const listLogisticLabelsForOrder: import("@tanstack/start-client-
25957
26309
  Args: never;
25958
26310
  Returns: string;
25959
26311
  };
26312
+ inkoop_process_request: {
26313
+ Args: {
26314
+ _request_id: string;
26315
+ };
26316
+ Returns: undefined;
26317
+ };
25960
26318
  inkoop_send_order: {
25961
26319
  Args: {
26320
+ _base_url?: string;
25962
26321
  _order_id: string;
26322
+ _resend?: boolean;
25963
26323
  };
25964
26324
  Returns: {
25965
26325
  outbox_id: string;
@@ -25974,6 +26334,26 @@ export declare const listLogisticLabelsForOrder: import("@tanstack/start-client-
25974
26334
  };
25975
26335
  Returns: undefined;
25976
26336
  };
26337
+ inkoop_stock_key: {
26338
+ Args: {
26339
+ p_product_id: string;
26340
+ };
26341
+ Returns: string;
26342
+ };
26343
+ inkoop_submit_supplier_response: {
26344
+ Args: {
26345
+ _lines: import("../integrations/supabase/types").Json;
26346
+ _note?: string;
26347
+ _token: string;
26348
+ };
26349
+ Returns: import("../integrations/supabase/types").Json;
26350
+ };
26351
+ inkoop_sync_item_stock: {
26352
+ Args: {
26353
+ p_item_id: string;
26354
+ };
26355
+ Returns: undefined;
26356
+ };
25977
26357
  instructie_get: {
25978
26358
  Args: {
25979
26359
  _sleutel: string;
@@ -26134,6 +26514,27 @@ export declare const listLogisticLabelsForOrder: import("@tanstack/start-client-
26134
26514
  };
26135
26515
  Returns: boolean;
26136
26516
  };
26517
+ layout_print_document: {
26518
+ Args: {
26519
+ _documentnaam: string;
26520
+ _documenttype: string;
26521
+ _herkomst?: string;
26522
+ _idempotentie_sleutel?: string;
26523
+ _is_herprint?: boolean;
26524
+ _kopieen?: number;
26525
+ _layout_id?: string;
26526
+ _payload?: import("../integrations/supabase/types").Json;
26527
+ _pdf_base64?: string;
26528
+ _pdf_url?: string;
26529
+ _print_plek_id?: string;
26530
+ _werkplek?: string;
26531
+ };
26532
+ Returns: {
26533
+ bestaand: boolean;
26534
+ job_id: string;
26535
+ printer_id: string;
26536
+ }[];
26537
+ };
26137
26538
  list_medewerkers: {
26138
26539
  Args: never;
26139
26540
  Returns: {
@@ -26411,6 +26812,12 @@ export declare const listLogisticLabelsForOrder: import("@tanstack/start-client-
26411
26812
  };
26412
26813
  Returns: number;
26413
26814
  };
26815
+ logistics_cart_barcode_opschonen: {
26816
+ Args: {
26817
+ p_portie?: number;
26818
+ };
26819
+ Returns: import("../integrations/supabase/types").Json;
26820
+ };
26414
26821
  logistics_cart_barcode_value: {
26415
26822
  Args: {
26416
26823
  _cart_id: string;
@@ -26830,6 +27237,13 @@ export declare const listLogisticLabelsForOrder: import("@tanstack/start-client-
26830
27237
  };
26831
27238
  Returns: import("../integrations/supabase/types").Json;
26832
27239
  };
27240
+ logistics_control_scan_print_own: {
27241
+ Args: {
27242
+ p_is_herprint?: boolean;
27243
+ p_scan_id: string;
27244
+ };
27245
+ Returns: import("../integrations/supabase/types").Json;
27246
+ };
26833
27247
  logistics_control_scan_retry: {
26834
27248
  Args: {
26835
27249
  _id: string;
@@ -27734,6 +28148,21 @@ export declare const listLogisticLabelsForOrder: import("@tanstack/start-client-
27734
28148
  };
27735
28149
  Returns: import("../integrations/supabase/types").Json;
27736
28150
  };
28151
+ logistics_print_via_layout: {
28152
+ Args: {
28153
+ _documentnaam: string;
28154
+ _documenttype: string;
28155
+ _herkomst: string;
28156
+ _idempotentie_sleutel: string;
28157
+ _is_herprint: boolean;
28158
+ _layout_id: string;
28159
+ _payload: import("../integrations/supabase/types").Json;
28160
+ _pdf_base64: string;
28161
+ _pdf_url: string;
28162
+ _print_plek_id: string;
28163
+ };
28164
+ Returns: import("../integrations/supabase/types").Json;
28165
+ };
27737
28166
  logistics_prune_buffer_member_queue: {
27738
28167
  Args: never;
27739
28168
  Returns: number;
@@ -28020,6 +28449,13 @@ export declare const listLogisticLabelsForOrder: import("@tanstack/start-client-
28020
28449
  };
28021
28450
  Returns: string;
28022
28451
  };
28452
+ logistics_shipping_note_status: {
28453
+ Args: {
28454
+ p_cart_id?: string;
28455
+ p_slip_job_id?: string;
28456
+ };
28457
+ Returns: import("../integrations/supabase/types").Json;
28458
+ };
28023
28459
  logistics_shipping_notes_wake_all: {
28024
28460
  Args: never;
28025
28461
  Returns: import("../integrations/supabase/types").Json;
@@ -28082,6 +28518,12 @@ export declare const listLogisticLabelsForOrder: import("@tanstack/start-client-
28082
28518
  };
28083
28519
  Returns: undefined;
28084
28520
  };
28521
+ logistics_slip_note_retry: {
28522
+ Args: {
28523
+ _id: string;
28524
+ };
28525
+ Returns: import("../integrations/supabase/types").Json;
28526
+ };
28085
28527
  logistics_sticker_follows_slip: {
28086
28528
  Args: never;
28087
28529
  Returns: boolean;
@@ -28826,6 +29268,10 @@ export declare const listLogisticLabelsForOrder: import("@tanstack/start-client-
28826
29268
  };
28827
29269
  Returns: string;
28828
29270
  };
29271
+ pick_is_reference_admin: {
29272
+ Args: never;
29273
+ Returns: boolean;
29274
+ };
28829
29275
  pick_mark_printed: {
28830
29276
  Args: {
28831
29277
  _queue_item_id: string;
@@ -29249,6 +29695,12 @@ export declare const listLogisticLabelsForOrder: import("@tanstack/start-client-
29249
29695
  };
29250
29696
  Returns: import("../integrations/supabase/types").Json;
29251
29697
  };
29698
+ pick_verify_rows: {
29699
+ Args: {
29700
+ _rows: import("../integrations/supabase/types").Json;
29701
+ };
29702
+ Returns: import("../integrations/supabase/types").Json;
29703
+ };
29252
29704
  pickstation_get_orders_raw: {
29253
29705
  Args: never;
29254
29706
  Returns: import("../integrations/supabase/types").Json;
@@ -29429,6 +29881,12 @@ export declare const listLogisticLabelsForOrder: import("@tanstack/start-client-
29429
29881
  };
29430
29882
  Returns: import("../integrations/supabase/types").Json;
29431
29883
  };
29884
+ quote_create_from_scratch: {
29885
+ Args: {
29886
+ _payload: import("../integrations/supabase/types").Json;
29887
+ };
29888
+ Returns: import("../integrations/supabase/types").Json;
29889
+ };
29432
29890
  quote_create_from_source: {
29433
29891
  Args: {
29434
29892
  _payload?: import("../integrations/supabase/types").Json;
@@ -29479,6 +29937,13 @@ export declare const listLogisticLabelsForOrder: import("@tanstack/start-client-
29479
29937
  };
29480
29938
  Returns: string;
29481
29939
  };
29940
+ quote_sync_work_order: {
29941
+ Args: {
29942
+ _monteur_instructies?: string;
29943
+ _offerte_id: string;
29944
+ };
29945
+ Returns: boolean;
29946
+ };
29482
29947
  recompute_all_reserved_stock: {
29483
29948
  Args: never;
29484
29949
  Returns: undefined;
@@ -29699,6 +30164,13 @@ export declare const listLogisticLabelsForOrder: import("@tanstack/start-client-
29699
30164
  };
29700
30165
  Returns: import("../integrations/supabase/types").Json;
29701
30166
  };
30167
+ scan_controleer_pincode: {
30168
+ Args: {
30169
+ p_pin: string;
30170
+ p_scanner_id: string;
30171
+ };
30172
+ Returns: boolean;
30173
+ };
29702
30174
  scan_dashboard_stats: {
29703
30175
  Args: {
29704
30176
  p_dagen?: number;
@@ -29718,6 +30190,12 @@ export declare const listLogisticLabelsForOrder: import("@tanstack/start-client-
29718
30190
  };
29719
30191
  Returns: import("../integrations/supabase/types").Json;
29720
30192
  };
30193
+ scan_heeft_pincode: {
30194
+ Args: {
30195
+ p_scanner_id: string;
30196
+ };
30197
+ Returns: boolean;
30198
+ };
29721
30199
  scan_kar_compleet: {
29722
30200
  Args: {
29723
30201
  p_allow_reprint?: boolean;
@@ -29735,6 +30213,7 @@ export declare const listLogisticLabelsForOrder: import("@tanstack/start-client-
29735
30213
  Args: {
29736
30214
  p_code: string;
29737
30215
  p_latency_ms?: number;
30216
+ p_medewerker?: string;
29738
30217
  p_message?: string;
29739
30218
  p_result: string;
29740
30219
  p_scanner_key?: string;
@@ -29807,6 +30286,22 @@ export declare const listLogisticLabelsForOrder: import("@tanstack/start-client-
29807
30286
  };
29808
30287
  Returns: undefined;
29809
30288
  };
30289
+ scan_scanner_info: {
30290
+ Args: {
30291
+ p_slug: string;
30292
+ };
30293
+ Returns: {
30294
+ actief: boolean;
30295
+ heeft_pincode: boolean;
30296
+ id: string;
30297
+ naam: string;
30298
+ omschrijving: string;
30299
+ printer_id: string;
30300
+ type: string;
30301
+ vereist_medewerker: boolean;
30302
+ werkplek: string;
30303
+ }[];
30304
+ };
29810
30305
  scan_sessie_annuleren: {
29811
30306
  Args: {
29812
30307
  p_sessie_id: string;
@@ -30769,6 +31264,21 @@ export declare const listLogisticLabelsForOrder: import("@tanstack/start-client-
30769
31264
  };
30770
31265
  Returns: import("../integrations/supabase/types").Json;
30771
31266
  };
31267
+ wo_list_colleague_planning: {
31268
+ Args: {
31269
+ _from: string;
31270
+ _monteur_id: string;
31271
+ _to: string;
31272
+ };
31273
+ Returns: {
31274
+ end_at: string;
31275
+ id: string;
31276
+ role: string;
31277
+ start_at: string;
31278
+ status: string;
31279
+ werkbon_id: string;
31280
+ }[];
31281
+ };
30772
31282
  wo_list_offerte_requests: {
30773
31283
  Args: {
30774
31284
  _status?: string;
@@ -31579,6 +32089,27 @@ export declare const registerDeliveryNote: import("@tanstack/start-client-core")
31579
32089
  };
31580
32090
  Relationships: [];
31581
32091
  };
32092
+ artikelen_instellingen: {
32093
+ Row: {
32094
+ created_at: string;
32095
+ id: number;
32096
+ marge_procent: number;
32097
+ updated_at: string;
32098
+ };
32099
+ Insert: {
32100
+ created_at?: string;
32101
+ id?: number;
32102
+ marge_procent?: number;
32103
+ updated_at?: string;
32104
+ };
32105
+ Update: {
32106
+ created_at?: string;
32107
+ id?: number;
32108
+ marge_procent?: number;
32109
+ updated_at?: string;
32110
+ };
32111
+ Relationships: [];
32112
+ };
31582
32113
  artikelen_veldconfig: {
31583
32114
  Row: {
31584
32115
  bron_pad: string;
@@ -41254,6 +41785,30 @@ export declare const registerDeliveryNote: import("@tanstack/start-client-core")
41254
41785
  };
41255
41786
  Relationships: [];
41256
41787
  };
41788
+ logistics_cart_barcode_archief: {
41789
+ Row: {
41790
+ barcode: string;
41791
+ cart_id: string;
41792
+ created_at: string | null;
41793
+ gearchiveerd_op: string;
41794
+ order_id: string | null;
41795
+ };
41796
+ Insert: {
41797
+ barcode: string;
41798
+ cart_id: string;
41799
+ created_at?: string | null;
41800
+ gearchiveerd_op?: string;
41801
+ order_id?: string | null;
41802
+ };
41803
+ Update: {
41804
+ barcode?: string;
41805
+ cart_id?: string;
41806
+ created_at?: string | null;
41807
+ gearchiveerd_op?: string;
41808
+ order_id?: string | null;
41809
+ };
41810
+ Relationships: [];
41811
+ };
41257
41812
  logistics_control_scan: {
41258
41813
  Row: {
41259
41814
  approved_at: string | null;
@@ -46907,18 +47462,24 @@ export declare const registerDeliveryNote: import("@tanstack/start-client-core")
46907
47462
  Row: {
46908
47463
  id: boolean;
46909
47464
  last_cleanup_at: string | null;
47465
+ last_error: string | null;
47466
+ last_error_at: string | null;
46910
47467
  last_sync_at: string | null;
46911
47468
  updated_at: string;
46912
47469
  };
46913
47470
  Insert: {
46914
47471
  id?: boolean;
46915
47472
  last_cleanup_at?: string | null;
47473
+ last_error?: string | null;
47474
+ last_error_at?: string | null;
46916
47475
  last_sync_at?: string | null;
46917
47476
  updated_at?: string;
46918
47477
  };
46919
47478
  Update: {
46920
47479
  id?: boolean;
46921
47480
  last_cleanup_at?: string | null;
47481
+ last_error?: string | null;
47482
+ last_error_at?: string | null;
46922
47483
  last_sync_at?: string | null;
46923
47484
  updated_at?: string;
46924
47485
  };
@@ -47044,6 +47605,54 @@ export declare const registerDeliveryNote: import("@tanstack/start-client-core")
47044
47605
  };
47045
47606
  Relationships: [];
47046
47607
  };
47608
+ planning_confirmation_log: {
47609
+ Row: {
47610
+ created_at: string;
47611
+ end_at: string;
47612
+ id: string;
47613
+ outbox_id: string | null;
47614
+ planning_item_id: string;
47615
+ reason: string | null;
47616
+ recipient: string | null;
47617
+ start_at: string;
47618
+ status: string;
47619
+ };
47620
+ Insert: {
47621
+ created_at?: string;
47622
+ end_at: string;
47623
+ id?: string;
47624
+ outbox_id?: string | null;
47625
+ planning_item_id: string;
47626
+ reason?: string | null;
47627
+ recipient?: string | null;
47628
+ start_at: string;
47629
+ status: string;
47630
+ };
47631
+ Update: {
47632
+ created_at?: string;
47633
+ end_at?: string;
47634
+ id?: string;
47635
+ outbox_id?: string | null;
47636
+ planning_item_id?: string;
47637
+ reason?: string | null;
47638
+ recipient?: string | null;
47639
+ start_at?: string;
47640
+ status?: string;
47641
+ };
47642
+ Relationships: [{
47643
+ foreignKeyName: "planning_confirmation_log_planning_item_id_fkey";
47644
+ columns: ["planning_item_id"];
47645
+ isOneToOne: false;
47646
+ referencedRelation: "planning_items";
47647
+ referencedColumns: ["id"];
47648
+ }, {
47649
+ foreignKeyName: "planning_confirmation_log_planning_item_id_fkey";
47650
+ columns: ["planning_item_id"];
47651
+ isOneToOne: false;
47652
+ referencedRelation: "planning_overview";
47653
+ referencedColumns: ["id"];
47654
+ }];
47655
+ };
47047
47656
  planning_item_assistants: {
47048
47657
  Row: {
47049
47658
  created_at: string;
@@ -47128,6 +47737,60 @@ export declare const registerDeliveryNote: import("@tanstack/start-client-core")
47128
47737
  referencedColumns: ["id"];
47129
47738
  }];
47130
47739
  };
47740
+ planning_mail_settings: {
47741
+ Row: {
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
+ Insert: {
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
+ Update: {
47768
+ body_template?: string;
47769
+ cc?: string[];
47770
+ connection_id?: string | null;
47771
+ created_at?: string;
47772
+ enabled?: boolean;
47773
+ id?: boolean;
47774
+ reply_to?: string | null;
47775
+ subject_template?: string;
47776
+ timezone?: string;
47777
+ updated_at?: string;
47778
+ updated_by?: string | null;
47779
+ };
47780
+ Relationships: [{
47781
+ foreignKeyName: "planning_mail_settings_connection_id_fkey";
47782
+ columns: ["connection_id"];
47783
+ isOneToOne: false;
47784
+ referencedRelation: "email_auth_connections";
47785
+ referencedColumns: ["id"];
47786
+ }, {
47787
+ foreignKeyName: "planning_mail_settings_connection_id_fkey";
47788
+ columns: ["connection_id"];
47789
+ isOneToOne: false;
47790
+ referencedRelation: "email_auth_connections_safe";
47791
+ referencedColumns: ["id"];
47792
+ }];
47793
+ };
47131
47794
  planning_monteur_day_locations: {
47132
47795
  Row: {
47133
47796
  created_at: string;
@@ -48606,6 +49269,9 @@ export declare const registerDeliveryNote: import("@tanstack/start-client-core")
48606
49269
  lead_time_days: number | null;
48607
49270
  min_order_quantity: number | null;
48608
49271
  notes: string | null;
49272
+ previous_price_cents: number | null;
49273
+ price_source: string;
49274
+ price_updated_at: string | null;
48609
49275
  product_id: string;
48610
49276
  purchase_price_cents: number | null;
48611
49277
  supplier_article_number: string | null;
@@ -48619,6 +49285,9 @@ export declare const registerDeliveryNote: import("@tanstack/start-client-core")
48619
49285
  lead_time_days?: number | null;
48620
49286
  min_order_quantity?: number | null;
48621
49287
  notes?: string | null;
49288
+ previous_price_cents?: number | null;
49289
+ price_source?: string;
49290
+ price_updated_at?: string | null;
48622
49291
  product_id: string;
48623
49292
  purchase_price_cents?: number | null;
48624
49293
  supplier_article_number?: string | null;
@@ -48632,6 +49301,9 @@ export declare const registerDeliveryNote: import("@tanstack/start-client-core")
48632
49301
  lead_time_days?: number | null;
48633
49302
  min_order_quantity?: number | null;
48634
49303
  notes?: string | null;
49304
+ previous_price_cents?: number | null;
49305
+ price_source?: string;
49306
+ price_updated_at?: string | null;
48635
49307
  product_id?: string;
48636
49308
  purchase_price_cents?: number | null;
48637
49309
  supplier_article_number?: string | null;
@@ -49162,9 +49834,13 @@ export declare const registerDeliveryNote: import("@tanstack/start-client-core")
49162
49834
  purchase_order_items: {
49163
49835
  Row: {
49164
49836
  article_number: string | null;
49837
+ cancel_reason: string | null;
49838
+ cancelled_at: string | null;
49165
49839
  created_at: string;
49166
49840
  delivery_date: string | null;
49167
49841
  id: string;
49842
+ incoming_booked: number;
49843
+ line_status: string;
49168
49844
  name: string;
49169
49845
  note: string | null;
49170
49846
  pot_size: string | null;
@@ -49172,6 +49848,8 @@ export declare const registerDeliveryNote: import("@tanstack/start-client-core")
49172
49848
  product_type: string;
49173
49849
  purchase_order_id: string;
49174
49850
  quantity: number;
49851
+ received_at: string | null;
49852
+ received_booked: number;
49175
49853
  supplier_id: string | null;
49176
49854
  supplier_product_id: string | null;
49177
49855
  unit_price_cents: number;
@@ -49179,9 +49857,13 @@ export declare const registerDeliveryNote: import("@tanstack/start-client-core")
49179
49857
  };
49180
49858
  Insert: {
49181
49859
  article_number?: string | null;
49860
+ cancel_reason?: string | null;
49861
+ cancelled_at?: string | null;
49182
49862
  created_at?: string;
49183
49863
  delivery_date?: string | null;
49184
49864
  id?: string;
49865
+ incoming_booked?: number;
49866
+ line_status?: string;
49185
49867
  name?: string;
49186
49868
  note?: string | null;
49187
49869
  pot_size?: string | null;
@@ -49189,6 +49871,8 @@ export declare const registerDeliveryNote: import("@tanstack/start-client-core")
49189
49871
  product_type?: string;
49190
49872
  purchase_order_id: string;
49191
49873
  quantity?: number;
49874
+ received_at?: string | null;
49875
+ received_booked?: number;
49192
49876
  supplier_id?: string | null;
49193
49877
  supplier_product_id?: string | null;
49194
49878
  unit_price_cents?: number;
@@ -49196,9 +49880,13 @@ export declare const registerDeliveryNote: import("@tanstack/start-client-core")
49196
49880
  };
49197
49881
  Update: {
49198
49882
  article_number?: string | null;
49883
+ cancel_reason?: string | null;
49884
+ cancelled_at?: string | null;
49199
49885
  created_at?: string;
49200
49886
  delivery_date?: string | null;
49201
49887
  id?: string;
49888
+ incoming_booked?: number;
49889
+ line_status?: string;
49202
49890
  name?: string;
49203
49891
  note?: string | null;
49204
49892
  pot_size?: string | null;
@@ -49206,6 +49894,8 @@ export declare const registerDeliveryNote: import("@tanstack/start-client-core")
49206
49894
  product_type?: string;
49207
49895
  purchase_order_id?: string;
49208
49896
  quantity?: number;
49897
+ received_at?: string | null;
49898
+ received_booked?: number;
49209
49899
  supplier_id?: string | null;
49210
49900
  supplier_product_id?: string | null;
49211
49901
  unit_price_cents?: number;
@@ -49309,6 +49999,153 @@ export declare const registerDeliveryNote: import("@tanstack/start-client-core")
49309
49999
  referencedColumns: ["id"];
49310
50000
  }];
49311
50001
  };
50002
+ purchase_request_events: {
50003
+ Row: {
50004
+ created_at: string;
50005
+ details: import("../integrations/supabase/types").Json | null;
50006
+ event_type: string;
50007
+ id: string;
50008
+ request_id: string;
50009
+ };
50010
+ Insert: {
50011
+ created_at?: string;
50012
+ details?: import("../integrations/supabase/types").Json | null;
50013
+ event_type: string;
50014
+ id?: string;
50015
+ request_id: string;
50016
+ };
50017
+ Update: {
50018
+ created_at?: string;
50019
+ details?: import("../integrations/supabase/types").Json | null;
50020
+ event_type?: string;
50021
+ id?: string;
50022
+ request_id?: string;
50023
+ };
50024
+ Relationships: [{
50025
+ foreignKeyName: "purchase_request_events_request_id_fkey";
50026
+ columns: ["request_id"];
50027
+ isOneToOne: false;
50028
+ referencedRelation: "purchase_requests";
50029
+ referencedColumns: ["id"];
50030
+ }];
50031
+ };
50032
+ purchase_request_responses: {
50033
+ Row: {
50034
+ confirmed_date: string | null;
50035
+ confirmed_price_cents: number | null;
50036
+ confirmed_quantity: number;
50037
+ created_at: string;
50038
+ id: string;
50039
+ not_available: boolean;
50040
+ note: string | null;
50041
+ purchase_order_item_id: string;
50042
+ request_id: string;
50043
+ updated_at: string;
50044
+ };
50045
+ Insert: {
50046
+ confirmed_date?: string | null;
50047
+ confirmed_price_cents?: number | null;
50048
+ confirmed_quantity?: number;
50049
+ created_at?: string;
50050
+ id?: string;
50051
+ not_available?: boolean;
50052
+ note?: string | null;
50053
+ purchase_order_item_id: string;
50054
+ request_id: string;
50055
+ updated_at?: string;
50056
+ };
50057
+ Update: {
50058
+ confirmed_date?: string | null;
50059
+ confirmed_price_cents?: number | null;
50060
+ confirmed_quantity?: number;
50061
+ created_at?: string;
50062
+ id?: string;
50063
+ not_available?: boolean;
50064
+ note?: string | null;
50065
+ purchase_order_item_id?: string;
50066
+ request_id?: string;
50067
+ updated_at?: string;
50068
+ };
50069
+ Relationships: [{
50070
+ foreignKeyName: "purchase_request_responses_purchase_order_item_id_fkey";
50071
+ columns: ["purchase_order_item_id"];
50072
+ isOneToOne: false;
50073
+ referencedRelation: "purchase_order_items";
50074
+ referencedColumns: ["id"];
50075
+ }, {
50076
+ foreignKeyName: "purchase_request_responses_request_id_fkey";
50077
+ columns: ["request_id"];
50078
+ isOneToOne: false;
50079
+ referencedRelation: "purchase_requests";
50080
+ referencedColumns: ["id"];
50081
+ }];
50082
+ };
50083
+ purchase_requests: {
50084
+ Row: {
50085
+ created_at: string;
50086
+ expires_at: string;
50087
+ first_viewed_at: string | null;
50088
+ id: string;
50089
+ processed_at: string | null;
50090
+ purchase_order_id: string;
50091
+ responded_at: string | null;
50092
+ sent_at: string;
50093
+ status: string;
50094
+ supplier_id: string | null;
50095
+ supplier_name: string;
50096
+ supplier_note: string | null;
50097
+ to_address: string | null;
50098
+ token_hash: string;
50099
+ updated_at: string;
50100
+ };
50101
+ Insert: {
50102
+ created_at?: string;
50103
+ expires_at?: string;
50104
+ first_viewed_at?: string | null;
50105
+ id?: string;
50106
+ processed_at?: string | null;
50107
+ purchase_order_id: string;
50108
+ responded_at?: string | null;
50109
+ sent_at?: string;
50110
+ status?: string;
50111
+ supplier_id?: string | null;
50112
+ supplier_name?: string;
50113
+ supplier_note?: string | null;
50114
+ to_address?: string | null;
50115
+ token_hash: string;
50116
+ updated_at?: string;
50117
+ };
50118
+ Update: {
50119
+ created_at?: string;
50120
+ expires_at?: string;
50121
+ first_viewed_at?: string | null;
50122
+ id?: string;
50123
+ processed_at?: string | null;
50124
+ purchase_order_id?: string;
50125
+ responded_at?: string | null;
50126
+ sent_at?: string;
50127
+ status?: string;
50128
+ supplier_id?: string | null;
50129
+ supplier_name?: string;
50130
+ supplier_note?: string | null;
50131
+ to_address?: string | null;
50132
+ token_hash?: string;
50133
+ updated_at?: string;
50134
+ };
50135
+ Relationships: [{
50136
+ foreignKeyName: "purchase_requests_purchase_order_id_fkey";
50137
+ columns: ["purchase_order_id"];
50138
+ isOneToOne: false;
50139
+ referencedRelation: "purchase_orders";
50140
+ referencedColumns: ["id"];
50141
+ }, {
50142
+ foreignKeyName: "purchase_requests_supplier_id_fkey";
50143
+ columns: ["supplier_id"];
50144
+ isOneToOne: false;
50145
+ referencedRelation: "suppliers";
50146
+ referencedColumns: ["id"];
50147
+ }];
50148
+ };
49312
50149
  reception_notifications: {
49313
50150
  Row: {
49314
50151
  booking_id: string | null;
@@ -53734,7 +54571,7 @@ export declare const registerDeliveryNote: import("@tanstack/start-client-core")
53734
54571
  created_at: string;
53735
54572
  default_quantity: number;
53736
54573
  description: string | null;
53737
- duration_minutes: number | null;
54574
+ duration_minutes: number;
53738
54575
  id: string;
53739
54576
  mandaat_type: string | null;
53740
54577
  name: string;
@@ -53751,7 +54588,7 @@ export declare const registerDeliveryNote: import("@tanstack/start-client-core")
53751
54588
  created_at?: string;
53752
54589
  default_quantity?: number;
53753
54590
  description?: string | null;
53754
- duration_minutes?: number | null;
54591
+ duration_minutes?: number;
53755
54592
  id?: string;
53756
54593
  mandaat_type?: string | null;
53757
54594
  name: string;
@@ -53768,7 +54605,7 @@ export declare const registerDeliveryNote: import("@tanstack/start-client-core")
53768
54605
  created_at?: string;
53769
54606
  default_quantity?: number;
53770
54607
  description?: string | null;
53771
- duration_minutes?: number | null;
54608
+ duration_minutes?: number;
53772
54609
  id?: string;
53773
54610
  mandaat_type?: string | null;
53774
54611
  name?: string;
@@ -56764,6 +57601,31 @@ export declare const registerDeliveryNote: import("@tanstack/start-client-core")
56764
57601
  };
56765
57602
  Returns: import("../integrations/supabase/types").Json;
56766
57603
  };
57604
+ inkoop_cancel_line: {
57605
+ Args: {
57606
+ _item_id: string;
57607
+ _reason: string;
57608
+ };
57609
+ Returns: string;
57610
+ };
57611
+ inkoop_get_supplier_request: {
57612
+ Args: {
57613
+ _token: string;
57614
+ };
57615
+ Returns: import("../integrations/supabase/types").Json;
57616
+ };
57617
+ inkoop_hash_token: {
57618
+ Args: {
57619
+ _token: string;
57620
+ };
57621
+ Returns: string;
57622
+ };
57623
+ inkoop_html_escape: {
57624
+ Args: {
57625
+ _t: string;
57626
+ };
57627
+ Returns: string;
57628
+ };
56767
57629
  inkoop_list_artikelen: {
56768
57630
  Args: never;
56769
57631
  Returns: {
@@ -56788,9 +57650,17 @@ export declare const registerDeliveryNote: import("@tanstack/start-client-core")
56788
57650
  Args: never;
56789
57651
  Returns: string;
56790
57652
  };
57653
+ inkoop_process_request: {
57654
+ Args: {
57655
+ _request_id: string;
57656
+ };
57657
+ Returns: undefined;
57658
+ };
56791
57659
  inkoop_send_order: {
56792
57660
  Args: {
57661
+ _base_url?: string;
56793
57662
  _order_id: string;
57663
+ _resend?: boolean;
56794
57664
  };
56795
57665
  Returns: {
56796
57666
  outbox_id: string;
@@ -56805,6 +57675,26 @@ export declare const registerDeliveryNote: import("@tanstack/start-client-core")
56805
57675
  };
56806
57676
  Returns: undefined;
56807
57677
  };
57678
+ inkoop_stock_key: {
57679
+ Args: {
57680
+ p_product_id: string;
57681
+ };
57682
+ Returns: string;
57683
+ };
57684
+ inkoop_submit_supplier_response: {
57685
+ Args: {
57686
+ _lines: import("../integrations/supabase/types").Json;
57687
+ _note?: string;
57688
+ _token: string;
57689
+ };
57690
+ Returns: import("../integrations/supabase/types").Json;
57691
+ };
57692
+ inkoop_sync_item_stock: {
57693
+ Args: {
57694
+ p_item_id: string;
57695
+ };
57696
+ Returns: undefined;
57697
+ };
56808
57698
  instructie_get: {
56809
57699
  Args: {
56810
57700
  _sleutel: string;
@@ -56965,6 +57855,27 @@ export declare const registerDeliveryNote: import("@tanstack/start-client-core")
56965
57855
  };
56966
57856
  Returns: boolean;
56967
57857
  };
57858
+ layout_print_document: {
57859
+ Args: {
57860
+ _documentnaam: string;
57861
+ _documenttype: string;
57862
+ _herkomst?: string;
57863
+ _idempotentie_sleutel?: string;
57864
+ _is_herprint?: boolean;
57865
+ _kopieen?: number;
57866
+ _layout_id?: string;
57867
+ _payload?: import("../integrations/supabase/types").Json;
57868
+ _pdf_base64?: string;
57869
+ _pdf_url?: string;
57870
+ _print_plek_id?: string;
57871
+ _werkplek?: string;
57872
+ };
57873
+ Returns: {
57874
+ bestaand: boolean;
57875
+ job_id: string;
57876
+ printer_id: string;
57877
+ }[];
57878
+ };
56968
57879
  list_medewerkers: {
56969
57880
  Args: never;
56970
57881
  Returns: {
@@ -57242,6 +58153,12 @@ export declare const registerDeliveryNote: import("@tanstack/start-client-core")
57242
58153
  };
57243
58154
  Returns: number;
57244
58155
  };
58156
+ logistics_cart_barcode_opschonen: {
58157
+ Args: {
58158
+ p_portie?: number;
58159
+ };
58160
+ Returns: import("../integrations/supabase/types").Json;
58161
+ };
57245
58162
  logistics_cart_barcode_value: {
57246
58163
  Args: {
57247
58164
  _cart_id: string;
@@ -57661,6 +58578,13 @@ export declare const registerDeliveryNote: import("@tanstack/start-client-core")
57661
58578
  };
57662
58579
  Returns: import("../integrations/supabase/types").Json;
57663
58580
  };
58581
+ logistics_control_scan_print_own: {
58582
+ Args: {
58583
+ p_is_herprint?: boolean;
58584
+ p_scan_id: string;
58585
+ };
58586
+ Returns: import("../integrations/supabase/types").Json;
58587
+ };
57664
58588
  logistics_control_scan_retry: {
57665
58589
  Args: {
57666
58590
  _id: string;
@@ -58565,6 +59489,21 @@ export declare const registerDeliveryNote: import("@tanstack/start-client-core")
58565
59489
  };
58566
59490
  Returns: import("../integrations/supabase/types").Json;
58567
59491
  };
59492
+ logistics_print_via_layout: {
59493
+ Args: {
59494
+ _documentnaam: string;
59495
+ _documenttype: string;
59496
+ _herkomst: string;
59497
+ _idempotentie_sleutel: string;
59498
+ _is_herprint: boolean;
59499
+ _layout_id: string;
59500
+ _payload: import("../integrations/supabase/types").Json;
59501
+ _pdf_base64: string;
59502
+ _pdf_url: string;
59503
+ _print_plek_id: string;
59504
+ };
59505
+ Returns: import("../integrations/supabase/types").Json;
59506
+ };
58568
59507
  logistics_prune_buffer_member_queue: {
58569
59508
  Args: never;
58570
59509
  Returns: number;
@@ -58851,6 +59790,13 @@ export declare const registerDeliveryNote: import("@tanstack/start-client-core")
58851
59790
  };
58852
59791
  Returns: string;
58853
59792
  };
59793
+ logistics_shipping_note_status: {
59794
+ Args: {
59795
+ p_cart_id?: string;
59796
+ p_slip_job_id?: string;
59797
+ };
59798
+ Returns: import("../integrations/supabase/types").Json;
59799
+ };
58854
59800
  logistics_shipping_notes_wake_all: {
58855
59801
  Args: never;
58856
59802
  Returns: import("../integrations/supabase/types").Json;
@@ -58913,6 +59859,12 @@ export declare const registerDeliveryNote: import("@tanstack/start-client-core")
58913
59859
  };
58914
59860
  Returns: undefined;
58915
59861
  };
59862
+ logistics_slip_note_retry: {
59863
+ Args: {
59864
+ _id: string;
59865
+ };
59866
+ Returns: import("../integrations/supabase/types").Json;
59867
+ };
58916
59868
  logistics_sticker_follows_slip: {
58917
59869
  Args: never;
58918
59870
  Returns: boolean;
@@ -59657,6 +60609,10 @@ export declare const registerDeliveryNote: import("@tanstack/start-client-core")
59657
60609
  };
59658
60610
  Returns: string;
59659
60611
  };
60612
+ pick_is_reference_admin: {
60613
+ Args: never;
60614
+ Returns: boolean;
60615
+ };
59660
60616
  pick_mark_printed: {
59661
60617
  Args: {
59662
60618
  _queue_item_id: string;
@@ -60080,6 +61036,12 @@ export declare const registerDeliveryNote: import("@tanstack/start-client-core")
60080
61036
  };
60081
61037
  Returns: import("../integrations/supabase/types").Json;
60082
61038
  };
61039
+ pick_verify_rows: {
61040
+ Args: {
61041
+ _rows: import("../integrations/supabase/types").Json;
61042
+ };
61043
+ Returns: import("../integrations/supabase/types").Json;
61044
+ };
60083
61045
  pickstation_get_orders_raw: {
60084
61046
  Args: never;
60085
61047
  Returns: import("../integrations/supabase/types").Json;
@@ -60260,6 +61222,12 @@ export declare const registerDeliveryNote: import("@tanstack/start-client-core")
60260
61222
  };
60261
61223
  Returns: import("../integrations/supabase/types").Json;
60262
61224
  };
61225
+ quote_create_from_scratch: {
61226
+ Args: {
61227
+ _payload: import("../integrations/supabase/types").Json;
61228
+ };
61229
+ Returns: import("../integrations/supabase/types").Json;
61230
+ };
60263
61231
  quote_create_from_source: {
60264
61232
  Args: {
60265
61233
  _payload?: import("../integrations/supabase/types").Json;
@@ -60310,6 +61278,13 @@ export declare const registerDeliveryNote: import("@tanstack/start-client-core")
60310
61278
  };
60311
61279
  Returns: string;
60312
61280
  };
61281
+ quote_sync_work_order: {
61282
+ Args: {
61283
+ _monteur_instructies?: string;
61284
+ _offerte_id: string;
61285
+ };
61286
+ Returns: boolean;
61287
+ };
60313
61288
  recompute_all_reserved_stock: {
60314
61289
  Args: never;
60315
61290
  Returns: undefined;
@@ -60530,6 +61505,13 @@ export declare const registerDeliveryNote: import("@tanstack/start-client-core")
60530
61505
  };
60531
61506
  Returns: import("../integrations/supabase/types").Json;
60532
61507
  };
61508
+ scan_controleer_pincode: {
61509
+ Args: {
61510
+ p_pin: string;
61511
+ p_scanner_id: string;
61512
+ };
61513
+ Returns: boolean;
61514
+ };
60533
61515
  scan_dashboard_stats: {
60534
61516
  Args: {
60535
61517
  p_dagen?: number;
@@ -60549,6 +61531,12 @@ export declare const registerDeliveryNote: import("@tanstack/start-client-core")
60549
61531
  };
60550
61532
  Returns: import("../integrations/supabase/types").Json;
60551
61533
  };
61534
+ scan_heeft_pincode: {
61535
+ Args: {
61536
+ p_scanner_id: string;
61537
+ };
61538
+ Returns: boolean;
61539
+ };
60552
61540
  scan_kar_compleet: {
60553
61541
  Args: {
60554
61542
  p_allow_reprint?: boolean;
@@ -60566,6 +61554,7 @@ export declare const registerDeliveryNote: import("@tanstack/start-client-core")
60566
61554
  Args: {
60567
61555
  p_code: string;
60568
61556
  p_latency_ms?: number;
61557
+ p_medewerker?: string;
60569
61558
  p_message?: string;
60570
61559
  p_result: string;
60571
61560
  p_scanner_key?: string;
@@ -60638,6 +61627,22 @@ export declare const registerDeliveryNote: import("@tanstack/start-client-core")
60638
61627
  };
60639
61628
  Returns: undefined;
60640
61629
  };
61630
+ scan_scanner_info: {
61631
+ Args: {
61632
+ p_slug: string;
61633
+ };
61634
+ Returns: {
61635
+ actief: boolean;
61636
+ heeft_pincode: boolean;
61637
+ id: string;
61638
+ naam: string;
61639
+ omschrijving: string;
61640
+ printer_id: string;
61641
+ type: string;
61642
+ vereist_medewerker: boolean;
61643
+ werkplek: string;
61644
+ }[];
61645
+ };
60641
61646
  scan_sessie_annuleren: {
60642
61647
  Args: {
60643
61648
  p_sessie_id: string;
@@ -61600,6 +62605,21 @@ export declare const registerDeliveryNote: import("@tanstack/start-client-core")
61600
62605
  };
61601
62606
  Returns: import("../integrations/supabase/types").Json;
61602
62607
  };
62608
+ wo_list_colleague_planning: {
62609
+ Args: {
62610
+ _from: string;
62611
+ _monteur_id: string;
62612
+ _to: string;
62613
+ };
62614
+ Returns: {
62615
+ end_at: string;
62616
+ id: string;
62617
+ role: string;
62618
+ start_at: string;
62619
+ status: string;
62620
+ werkbon_id: string;
62621
+ }[];
62622
+ };
61603
62623
  wo_list_offerte_requests: {
61604
62624
  Args: {
61605
62625
  _status?: string;