@flowselections/floriday-afhandeling-module 1.0.46 → 1.0.47

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 (30) hide show
  1. package/dist-lib/components/afhandeling/DagDetailDialog.d.ts.map +1 -1
  2. package/dist-lib/components/afhandeling/DagDetailDialog.js +31 -8
  3. package/dist-lib/integrations/supabase/auth-middleware.d.ts +500 -3
  4. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  5. package/dist-lib/integrations/supabase/client.server.d.ts +500 -3
  6. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  7. package/dist-lib/integrations/supabase/moduleClient.d.ts +500 -3
  8. package/dist-lib/integrations/supabase/moduleClient.d.ts.map +1 -1
  9. package/dist-lib/integrations/supabase/types.d.ts +514 -3
  10. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  11. package/dist-lib/lib/afhandelingSettings.functions.d.ts +1000 -6
  12. package/dist-lib/lib/afhandelingSettings.functions.d.ts.map +1 -1
  13. package/dist-lib/lib/carriers.functions.d.ts +2500 -15
  14. package/dist-lib/lib/carriers.functions.d.ts.map +1 -1
  15. package/dist-lib/lib/cartAssignments.functions.d.ts +33860 -41
  16. package/dist-lib/lib/cartAssignments.functions.d.ts.map +1 -1
  17. package/dist-lib/lib/cartAssignments.functions.js +69 -0
  18. package/dist-lib/lib/cartControl.functions.d.ts +5500 -33
  19. package/dist-lib/lib/cartControl.functions.d.ts.map +1 -1
  20. package/dist-lib/lib/deliveryNote.functions.d.ts +500 -3
  21. package/dist-lib/lib/deliveryNote.functions.d.ts.map +1 -1
  22. package/dist-lib/lib/engineLayouts.functions.d.ts +500 -3
  23. package/dist-lib/lib/engineLayouts.functions.d.ts.map +1 -1
  24. package/dist-lib/lib/floriday.functions.d.ts +1000 -6
  25. package/dist-lib/lib/floriday.functions.d.ts.map +1 -1
  26. package/dist-lib/lib/orderFulfilment.functions.d.ts +500 -3
  27. package/dist-lib/lib/orderFulfilment.functions.d.ts.map +1 -1
  28. package/dist-lib/lib/pickDates.functions.d.ts +500 -3
  29. package/dist-lib/lib/pickDates.functions.d.ts.map +1 -1
  30. package/package.json +2 -2
@@ -759,6 +759,27 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
759
759
  };
760
760
  Relationships: [];
761
761
  };
762
+ artikelen_instellingen: {
763
+ Row: {
764
+ created_at: string;
765
+ id: number;
766
+ marge_procent: number;
767
+ updated_at: string;
768
+ };
769
+ Insert: {
770
+ created_at?: string;
771
+ id?: number;
772
+ marge_procent?: number;
773
+ updated_at?: string;
774
+ };
775
+ Update: {
776
+ created_at?: string;
777
+ id?: number;
778
+ marge_procent?: number;
779
+ updated_at?: string;
780
+ };
781
+ Relationships: [];
782
+ };
762
783
  artikelen_veldconfig: {
763
784
  Row: {
764
785
  bron_pad: string;
@@ -10434,6 +10455,30 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
10434
10455
  };
10435
10456
  Relationships: [];
10436
10457
  };
10458
+ logistics_cart_barcode_archief: {
10459
+ Row: {
10460
+ barcode: string;
10461
+ cart_id: string;
10462
+ created_at: string | null;
10463
+ gearchiveerd_op: string;
10464
+ order_id: string | null;
10465
+ };
10466
+ Insert: {
10467
+ barcode: string;
10468
+ cart_id: string;
10469
+ created_at?: string | null;
10470
+ gearchiveerd_op?: string;
10471
+ order_id?: string | null;
10472
+ };
10473
+ Update: {
10474
+ barcode?: string;
10475
+ cart_id?: string;
10476
+ created_at?: string | null;
10477
+ gearchiveerd_op?: string;
10478
+ order_id?: string | null;
10479
+ };
10480
+ Relationships: [];
10481
+ };
10437
10482
  logistics_control_scan: {
10438
10483
  Row: {
10439
10484
  approved_at: string | null;
@@ -14720,6 +14765,7 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
14720
14765
  next_attempt_at: string;
14721
14766
  order_id: string;
14722
14767
  processed_at: string | null;
14768
+ send_error: string | null;
14723
14769
  status: string;
14724
14770
  updated_at: string;
14725
14771
  };
@@ -14733,6 +14779,7 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
14733
14779
  next_attempt_at?: string;
14734
14780
  order_id: string;
14735
14781
  processed_at?: string | null;
14782
+ send_error?: string | null;
14736
14783
  status?: string;
14737
14784
  updated_at?: string;
14738
14785
  };
@@ -14746,6 +14793,7 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
14746
14793
  next_attempt_at?: string;
14747
14794
  order_id?: string;
14748
14795
  processed_at?: string | null;
14796
+ send_error?: string | null;
14749
14797
  status?: string;
14750
14798
  updated_at?: string;
14751
14799
  };
@@ -16084,18 +16132,24 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
16084
16132
  Row: {
16085
16133
  id: boolean;
16086
16134
  last_cleanup_at: string | null;
16135
+ last_error: string | null;
16136
+ last_error_at: string | null;
16087
16137
  last_sync_at: string | null;
16088
16138
  updated_at: string;
16089
16139
  };
16090
16140
  Insert: {
16091
16141
  id?: boolean;
16092
16142
  last_cleanup_at?: string | null;
16143
+ last_error?: string | null;
16144
+ last_error_at?: string | null;
16093
16145
  last_sync_at?: string | null;
16094
16146
  updated_at?: string;
16095
16147
  };
16096
16148
  Update: {
16097
16149
  id?: boolean;
16098
16150
  last_cleanup_at?: string | null;
16151
+ last_error?: string | null;
16152
+ last_error_at?: string | null;
16099
16153
  last_sync_at?: string | null;
16100
16154
  updated_at?: string;
16101
16155
  };
@@ -16221,6 +16275,54 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
16221
16275
  };
16222
16276
  Relationships: [];
16223
16277
  };
16278
+ planning_confirmation_log: {
16279
+ Row: {
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
+ Insert: {
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
+ Update: {
16302
+ created_at?: string;
16303
+ end_at?: string;
16304
+ id?: string;
16305
+ outbox_id?: string | null;
16306
+ planning_item_id?: string;
16307
+ reason?: string | null;
16308
+ recipient?: string | null;
16309
+ start_at?: string;
16310
+ status?: string;
16311
+ };
16312
+ Relationships: [{
16313
+ foreignKeyName: "planning_confirmation_log_planning_item_id_fkey";
16314
+ columns: ["planning_item_id"];
16315
+ isOneToOne: false;
16316
+ referencedRelation: "planning_items";
16317
+ referencedColumns: ["id"];
16318
+ }, {
16319
+ foreignKeyName: "planning_confirmation_log_planning_item_id_fkey";
16320
+ columns: ["planning_item_id"];
16321
+ isOneToOne: false;
16322
+ referencedRelation: "planning_overview";
16323
+ referencedColumns: ["id"];
16324
+ }];
16325
+ };
16224
16326
  planning_item_assistants: {
16225
16327
  Row: {
16226
16328
  created_at: string;
@@ -16305,6 +16407,60 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
16305
16407
  referencedColumns: ["id"];
16306
16408
  }];
16307
16409
  };
16410
+ planning_mail_settings: {
16411
+ Row: {
16412
+ body_template: string;
16413
+ cc: string[];
16414
+ connection_id: string | null;
16415
+ created_at: string;
16416
+ enabled: boolean;
16417
+ id: boolean;
16418
+ reply_to: string | null;
16419
+ subject_template: string;
16420
+ timezone: string;
16421
+ updated_at: string;
16422
+ updated_by: string | null;
16423
+ };
16424
+ Insert: {
16425
+ body_template?: string;
16426
+ cc?: string[];
16427
+ connection_id?: string | null;
16428
+ created_at?: string;
16429
+ enabled?: boolean;
16430
+ id?: boolean;
16431
+ reply_to?: string | null;
16432
+ subject_template?: string;
16433
+ timezone?: string;
16434
+ updated_at?: string;
16435
+ updated_by?: string | null;
16436
+ };
16437
+ Update: {
16438
+ body_template?: string;
16439
+ cc?: string[];
16440
+ connection_id?: string | null;
16441
+ created_at?: string;
16442
+ enabled?: boolean;
16443
+ id?: boolean;
16444
+ reply_to?: string | null;
16445
+ subject_template?: string;
16446
+ timezone?: string;
16447
+ updated_at?: string;
16448
+ updated_by?: string | null;
16449
+ };
16450
+ Relationships: [{
16451
+ foreignKeyName: "planning_mail_settings_connection_id_fkey";
16452
+ columns: ["connection_id"];
16453
+ isOneToOne: false;
16454
+ referencedRelation: "email_auth_connections";
16455
+ referencedColumns: ["id"];
16456
+ }, {
16457
+ foreignKeyName: "planning_mail_settings_connection_id_fkey";
16458
+ columns: ["connection_id"];
16459
+ isOneToOne: false;
16460
+ referencedRelation: "email_auth_connections_safe";
16461
+ referencedColumns: ["id"];
16462
+ }];
16463
+ };
16308
16464
  planning_monteur_day_locations: {
16309
16465
  Row: {
16310
16466
  created_at: string;
@@ -17783,6 +17939,9 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
17783
17939
  lead_time_days: number | null;
17784
17940
  min_order_quantity: number | null;
17785
17941
  notes: string | null;
17942
+ previous_price_cents: number | null;
17943
+ price_source: string;
17944
+ price_updated_at: string | null;
17786
17945
  product_id: string;
17787
17946
  purchase_price_cents: number | null;
17788
17947
  supplier_article_number: string | null;
@@ -17796,6 +17955,9 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
17796
17955
  lead_time_days?: number | null;
17797
17956
  min_order_quantity?: number | null;
17798
17957
  notes?: string | null;
17958
+ previous_price_cents?: number | null;
17959
+ price_source?: string;
17960
+ price_updated_at?: string | null;
17799
17961
  product_id: string;
17800
17962
  purchase_price_cents?: number | null;
17801
17963
  supplier_article_number?: string | null;
@@ -17809,6 +17971,9 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
17809
17971
  lead_time_days?: number | null;
17810
17972
  min_order_quantity?: number | null;
17811
17973
  notes?: string | null;
17974
+ previous_price_cents?: number | null;
17975
+ price_source?: string;
17976
+ price_updated_at?: string | null;
17812
17977
  product_id?: string;
17813
17978
  purchase_price_cents?: number | null;
17814
17979
  supplier_article_number?: string | null;
@@ -18339,9 +18504,13 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
18339
18504
  purchase_order_items: {
18340
18505
  Row: {
18341
18506
  article_number: string | null;
18507
+ cancel_reason: string | null;
18508
+ cancelled_at: string | null;
18342
18509
  created_at: string;
18343
18510
  delivery_date: string | null;
18344
18511
  id: string;
18512
+ incoming_booked: number;
18513
+ line_status: string;
18345
18514
  name: string;
18346
18515
  note: string | null;
18347
18516
  pot_size: string | null;
@@ -18349,6 +18518,8 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
18349
18518
  product_type: string;
18350
18519
  purchase_order_id: string;
18351
18520
  quantity: number;
18521
+ received_at: string | null;
18522
+ received_booked: number;
18352
18523
  supplier_id: string | null;
18353
18524
  supplier_product_id: string | null;
18354
18525
  unit_price_cents: number;
@@ -18356,9 +18527,13 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
18356
18527
  };
18357
18528
  Insert: {
18358
18529
  article_number?: string | null;
18530
+ cancel_reason?: string | null;
18531
+ cancelled_at?: string | null;
18359
18532
  created_at?: string;
18360
18533
  delivery_date?: string | null;
18361
18534
  id?: string;
18535
+ incoming_booked?: number;
18536
+ line_status?: string;
18362
18537
  name?: string;
18363
18538
  note?: string | null;
18364
18539
  pot_size?: string | null;
@@ -18366,6 +18541,8 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
18366
18541
  product_type?: string;
18367
18542
  purchase_order_id: string;
18368
18543
  quantity?: number;
18544
+ received_at?: string | null;
18545
+ received_booked?: number;
18369
18546
  supplier_id?: string | null;
18370
18547
  supplier_product_id?: string | null;
18371
18548
  unit_price_cents?: number;
@@ -18373,9 +18550,13 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
18373
18550
  };
18374
18551
  Update: {
18375
18552
  article_number?: string | null;
18553
+ cancel_reason?: string | null;
18554
+ cancelled_at?: string | null;
18376
18555
  created_at?: string;
18377
18556
  delivery_date?: string | null;
18378
18557
  id?: string;
18558
+ incoming_booked?: number;
18559
+ line_status?: string;
18379
18560
  name?: string;
18380
18561
  note?: string | null;
18381
18562
  pot_size?: string | null;
@@ -18383,6 +18564,8 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
18383
18564
  product_type?: string;
18384
18565
  purchase_order_id?: string;
18385
18566
  quantity?: number;
18567
+ received_at?: string | null;
18568
+ received_booked?: number;
18386
18569
  supplier_id?: string | null;
18387
18570
  supplier_product_id?: string | null;
18388
18571
  unit_price_cents?: number;
@@ -18486,6 +18669,153 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
18486
18669
  referencedColumns: ["id"];
18487
18670
  }];
18488
18671
  };
18672
+ purchase_request_events: {
18673
+ Row: {
18674
+ created_at: string;
18675
+ details: import("../integrations/supabase/types").Json | null;
18676
+ event_type: string;
18677
+ id: string;
18678
+ request_id: string;
18679
+ };
18680
+ Insert: {
18681
+ created_at?: string;
18682
+ details?: import("../integrations/supabase/types").Json | null;
18683
+ event_type: string;
18684
+ id?: string;
18685
+ request_id: string;
18686
+ };
18687
+ Update: {
18688
+ created_at?: string;
18689
+ details?: import("../integrations/supabase/types").Json | null;
18690
+ event_type?: string;
18691
+ id?: string;
18692
+ request_id?: string;
18693
+ };
18694
+ Relationships: [{
18695
+ foreignKeyName: "purchase_request_events_request_id_fkey";
18696
+ columns: ["request_id"];
18697
+ isOneToOne: false;
18698
+ referencedRelation: "purchase_requests";
18699
+ referencedColumns: ["id"];
18700
+ }];
18701
+ };
18702
+ purchase_request_responses: {
18703
+ Row: {
18704
+ confirmed_date: string | null;
18705
+ confirmed_price_cents: number | null;
18706
+ confirmed_quantity: number;
18707
+ created_at: string;
18708
+ id: string;
18709
+ not_available: boolean;
18710
+ note: string | null;
18711
+ purchase_order_item_id: string;
18712
+ request_id: string;
18713
+ updated_at: string;
18714
+ };
18715
+ Insert: {
18716
+ confirmed_date?: string | null;
18717
+ confirmed_price_cents?: number | null;
18718
+ confirmed_quantity?: number;
18719
+ created_at?: string;
18720
+ id?: string;
18721
+ not_available?: boolean;
18722
+ note?: string | null;
18723
+ purchase_order_item_id: string;
18724
+ request_id: string;
18725
+ updated_at?: string;
18726
+ };
18727
+ Update: {
18728
+ confirmed_date?: string | null;
18729
+ confirmed_price_cents?: number | null;
18730
+ confirmed_quantity?: number;
18731
+ created_at?: string;
18732
+ id?: string;
18733
+ not_available?: boolean;
18734
+ note?: string | null;
18735
+ purchase_order_item_id?: string;
18736
+ request_id?: string;
18737
+ updated_at?: string;
18738
+ };
18739
+ Relationships: [{
18740
+ foreignKeyName: "purchase_request_responses_purchase_order_item_id_fkey";
18741
+ columns: ["purchase_order_item_id"];
18742
+ isOneToOne: false;
18743
+ referencedRelation: "purchase_order_items";
18744
+ referencedColumns: ["id"];
18745
+ }, {
18746
+ foreignKeyName: "purchase_request_responses_request_id_fkey";
18747
+ columns: ["request_id"];
18748
+ isOneToOne: false;
18749
+ referencedRelation: "purchase_requests";
18750
+ referencedColumns: ["id"];
18751
+ }];
18752
+ };
18753
+ purchase_requests: {
18754
+ Row: {
18755
+ created_at: string;
18756
+ expires_at: string;
18757
+ first_viewed_at: string | null;
18758
+ id: string;
18759
+ processed_at: string | null;
18760
+ purchase_order_id: string;
18761
+ responded_at: string | null;
18762
+ sent_at: string;
18763
+ status: string;
18764
+ supplier_id: string | null;
18765
+ supplier_name: string;
18766
+ supplier_note: string | null;
18767
+ to_address: string | null;
18768
+ token_hash: string;
18769
+ updated_at: string;
18770
+ };
18771
+ Insert: {
18772
+ created_at?: string;
18773
+ expires_at?: string;
18774
+ first_viewed_at?: string | null;
18775
+ id?: string;
18776
+ processed_at?: string | null;
18777
+ purchase_order_id: string;
18778
+ responded_at?: string | null;
18779
+ sent_at?: string;
18780
+ status?: string;
18781
+ supplier_id?: string | null;
18782
+ supplier_name?: string;
18783
+ supplier_note?: string | null;
18784
+ to_address?: string | null;
18785
+ token_hash: string;
18786
+ updated_at?: string;
18787
+ };
18788
+ Update: {
18789
+ created_at?: string;
18790
+ expires_at?: string;
18791
+ first_viewed_at?: string | null;
18792
+ id?: string;
18793
+ processed_at?: string | null;
18794
+ purchase_order_id?: string;
18795
+ responded_at?: string | null;
18796
+ sent_at?: string;
18797
+ status?: string;
18798
+ supplier_id?: string | null;
18799
+ supplier_name?: string;
18800
+ supplier_note?: string | null;
18801
+ to_address?: string | null;
18802
+ token_hash?: string;
18803
+ updated_at?: string;
18804
+ };
18805
+ Relationships: [{
18806
+ foreignKeyName: "purchase_requests_purchase_order_id_fkey";
18807
+ columns: ["purchase_order_id"];
18808
+ isOneToOne: false;
18809
+ referencedRelation: "purchase_orders";
18810
+ referencedColumns: ["id"];
18811
+ }, {
18812
+ foreignKeyName: "purchase_requests_supplier_id_fkey";
18813
+ columns: ["supplier_id"];
18814
+ isOneToOne: false;
18815
+ referencedRelation: "suppliers";
18816
+ referencedColumns: ["id"];
18817
+ }];
18818
+ };
18489
18819
  reception_notifications: {
18490
18820
  Row: {
18491
18821
  booking_id: string | null;
@@ -20649,6 +20979,7 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
20649
20979
  auto_invoice_enabled: boolean;
20650
20980
  auto_invoice_start_date: string | null;
20651
20981
  auto_invoice_trigger_statuses: string[];
20982
+ auto_send_mode: string | null;
20652
20983
  created_at: string;
20653
20984
  debtor_gl_account: string;
20654
20985
  default_article_code: string | null;
@@ -20677,6 +21008,7 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
20677
21008
  auto_invoice_enabled?: boolean;
20678
21009
  auto_invoice_start_date?: string | null;
20679
21010
  auto_invoice_trigger_statuses?: string[];
21011
+ auto_send_mode?: string | null;
20680
21012
  created_at?: string;
20681
21013
  debtor_gl_account?: string;
20682
21014
  default_article_code?: string | null;
@@ -20705,6 +21037,7 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
20705
21037
  auto_invoice_enabled?: boolean;
20706
21038
  auto_invoice_start_date?: string | null;
20707
21039
  auto_invoice_trigger_statuses?: string[];
21040
+ auto_send_mode?: string | null;
20708
21041
  created_at?: string;
20709
21042
  debtor_gl_account?: string;
20710
21043
  default_article_code?: string | null;
@@ -22908,7 +23241,7 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
22908
23241
  created_at: string;
22909
23242
  default_quantity: number;
22910
23243
  description: string | null;
22911
- duration_minutes: number | null;
23244
+ duration_minutes: number;
22912
23245
  id: string;
22913
23246
  mandaat_type: string | null;
22914
23247
  name: string;
@@ -22925,7 +23258,7 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
22925
23258
  created_at?: string;
22926
23259
  default_quantity?: number;
22927
23260
  description?: string | null;
22928
- duration_minutes?: number | null;
23261
+ duration_minutes?: number;
22929
23262
  id?: string;
22930
23263
  mandaat_type?: string | null;
22931
23264
  name: string;
@@ -22942,7 +23275,7 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
22942
23275
  created_at?: string;
22943
23276
  default_quantity?: number;
22944
23277
  description?: string | null;
22945
- duration_minutes?: number | null;
23278
+ duration_minutes?: number;
22946
23279
  id?: string;
22947
23280
  mandaat_type?: string | null;
22948
23281
  name?: string;
@@ -25938,6 +26271,31 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
25938
26271
  };
25939
26272
  Returns: import("../integrations/supabase/types").Json;
25940
26273
  };
26274
+ inkoop_cancel_line: {
26275
+ Args: {
26276
+ _item_id: string;
26277
+ _reason: string;
26278
+ };
26279
+ Returns: string;
26280
+ };
26281
+ inkoop_get_supplier_request: {
26282
+ Args: {
26283
+ _token: string;
26284
+ };
26285
+ Returns: import("../integrations/supabase/types").Json;
26286
+ };
26287
+ inkoop_hash_token: {
26288
+ Args: {
26289
+ _token: string;
26290
+ };
26291
+ Returns: string;
26292
+ };
26293
+ inkoop_html_escape: {
26294
+ Args: {
26295
+ _t: string;
26296
+ };
26297
+ Returns: string;
26298
+ };
25941
26299
  inkoop_list_artikelen: {
25942
26300
  Args: never;
25943
26301
  Returns: {
@@ -25962,9 +26320,17 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
25962
26320
  Args: never;
25963
26321
  Returns: string;
25964
26322
  };
26323
+ inkoop_process_request: {
26324
+ Args: {
26325
+ _request_id: string;
26326
+ };
26327
+ Returns: undefined;
26328
+ };
25965
26329
  inkoop_send_order: {
25966
26330
  Args: {
26331
+ _base_url?: string;
25967
26332
  _order_id: string;
26333
+ _resend?: boolean;
25968
26334
  };
25969
26335
  Returns: {
25970
26336
  outbox_id: string;
@@ -25979,6 +26345,26 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
25979
26345
  };
25980
26346
  Returns: undefined;
25981
26347
  };
26348
+ inkoop_stock_key: {
26349
+ Args: {
26350
+ p_product_id: string;
26351
+ };
26352
+ Returns: string;
26353
+ };
26354
+ inkoop_submit_supplier_response: {
26355
+ Args: {
26356
+ _lines: import("../integrations/supabase/types").Json;
26357
+ _note?: string;
26358
+ _token: string;
26359
+ };
26360
+ Returns: import("../integrations/supabase/types").Json;
26361
+ };
26362
+ inkoop_sync_item_stock: {
26363
+ Args: {
26364
+ p_item_id: string;
26365
+ };
26366
+ Returns: undefined;
26367
+ };
25982
26368
  instructie_get: {
25983
26369
  Args: {
25984
26370
  _sleutel: string;
@@ -26139,6 +26525,27 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
26139
26525
  };
26140
26526
  Returns: boolean;
26141
26527
  };
26528
+ layout_print_document: {
26529
+ Args: {
26530
+ _documentnaam: string;
26531
+ _documenttype: string;
26532
+ _herkomst?: string;
26533
+ _idempotentie_sleutel?: string;
26534
+ _is_herprint?: boolean;
26535
+ _kopieen?: number;
26536
+ _layout_id?: string;
26537
+ _payload?: import("../integrations/supabase/types").Json;
26538
+ _pdf_base64?: string;
26539
+ _pdf_url?: string;
26540
+ _print_plek_id?: string;
26541
+ _werkplek?: string;
26542
+ };
26543
+ Returns: {
26544
+ bestaand: boolean;
26545
+ job_id: string;
26546
+ printer_id: string;
26547
+ }[];
26548
+ };
26142
26549
  list_medewerkers: {
26143
26550
  Args: never;
26144
26551
  Returns: {
@@ -26416,6 +26823,12 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
26416
26823
  };
26417
26824
  Returns: number;
26418
26825
  };
26826
+ logistics_cart_barcode_opschonen: {
26827
+ Args: {
26828
+ p_portie?: number;
26829
+ };
26830
+ Returns: import("../integrations/supabase/types").Json;
26831
+ };
26419
26832
  logistics_cart_barcode_value: {
26420
26833
  Args: {
26421
26834
  _cart_id: string;
@@ -26835,6 +27248,13 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
26835
27248
  };
26836
27249
  Returns: import("../integrations/supabase/types").Json;
26837
27250
  };
27251
+ logistics_control_scan_print_own: {
27252
+ Args: {
27253
+ p_is_herprint?: boolean;
27254
+ p_scan_id: string;
27255
+ };
27256
+ Returns: import("../integrations/supabase/types").Json;
27257
+ };
26838
27258
  logistics_control_scan_retry: {
26839
27259
  Args: {
26840
27260
  _id: string;
@@ -27739,6 +28159,21 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
27739
28159
  };
27740
28160
  Returns: import("../integrations/supabase/types").Json;
27741
28161
  };
28162
+ logistics_print_via_layout: {
28163
+ Args: {
28164
+ _documentnaam: string;
28165
+ _documenttype: string;
28166
+ _herkomst: string;
28167
+ _idempotentie_sleutel: string;
28168
+ _is_herprint: boolean;
28169
+ _layout_id: string;
28170
+ _payload: import("../integrations/supabase/types").Json;
28171
+ _pdf_base64: string;
28172
+ _pdf_url: string;
28173
+ _print_plek_id: string;
28174
+ };
28175
+ Returns: import("../integrations/supabase/types").Json;
28176
+ };
27742
28177
  logistics_prune_buffer_member_queue: {
27743
28178
  Args: never;
27744
28179
  Returns: number;
@@ -28025,6 +28460,13 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
28025
28460
  };
28026
28461
  Returns: string;
28027
28462
  };
28463
+ logistics_shipping_note_status: {
28464
+ Args: {
28465
+ p_cart_id?: string;
28466
+ p_slip_job_id?: string;
28467
+ };
28468
+ Returns: import("../integrations/supabase/types").Json;
28469
+ };
28028
28470
  logistics_shipping_notes_wake_all: {
28029
28471
  Args: never;
28030
28472
  Returns: import("../integrations/supabase/types").Json;
@@ -28087,6 +28529,12 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
28087
28529
  };
28088
28530
  Returns: undefined;
28089
28531
  };
28532
+ logistics_slip_note_retry: {
28533
+ Args: {
28534
+ _id: string;
28535
+ };
28536
+ Returns: import("../integrations/supabase/types").Json;
28537
+ };
28090
28538
  logistics_sticker_follows_slip: {
28091
28539
  Args: never;
28092
28540
  Returns: boolean;
@@ -28831,6 +29279,10 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
28831
29279
  };
28832
29280
  Returns: string;
28833
29281
  };
29282
+ pick_is_reference_admin: {
29283
+ Args: never;
29284
+ Returns: boolean;
29285
+ };
28834
29286
  pick_mark_printed: {
28835
29287
  Args: {
28836
29288
  _queue_item_id: string;
@@ -29704,6 +30156,13 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
29704
30156
  };
29705
30157
  Returns: import("../integrations/supabase/types").Json;
29706
30158
  };
30159
+ scan_controleer_pincode: {
30160
+ Args: {
30161
+ p_pin: string;
30162
+ p_scanner_id: string;
30163
+ };
30164
+ Returns: boolean;
30165
+ };
29707
30166
  scan_dashboard_stats: {
29708
30167
  Args: {
29709
30168
  p_dagen?: number;
@@ -29723,6 +30182,12 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
29723
30182
  };
29724
30183
  Returns: import("../integrations/supabase/types").Json;
29725
30184
  };
30185
+ scan_heeft_pincode: {
30186
+ Args: {
30187
+ p_scanner_id: string;
30188
+ };
30189
+ Returns: boolean;
30190
+ };
29726
30191
  scan_kar_compleet: {
29727
30192
  Args: {
29728
30193
  p_allow_reprint?: boolean;
@@ -29740,6 +30205,7 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
29740
30205
  Args: {
29741
30206
  p_code: string;
29742
30207
  p_latency_ms?: number;
30208
+ p_medewerker?: string;
29743
30209
  p_message?: string;
29744
30210
  p_result: string;
29745
30211
  p_scanner_key?: string;
@@ -29812,6 +30278,22 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
29812
30278
  };
29813
30279
  Returns: undefined;
29814
30280
  };
30281
+ scan_scanner_info: {
30282
+ Args: {
30283
+ p_slug: string;
30284
+ };
30285
+ Returns: {
30286
+ actief: boolean;
30287
+ heeft_pincode: boolean;
30288
+ id: string;
30289
+ naam: string;
30290
+ omschrijving: string;
30291
+ printer_id: string;
30292
+ type: string;
30293
+ vereist_medewerker: boolean;
30294
+ werkplek: string;
30295
+ }[];
30296
+ };
29815
30297
  scan_sessie_annuleren: {
29816
30298
  Args: {
29817
30299
  p_sessie_id: string;
@@ -30774,6 +31256,21 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
30774
31256
  };
30775
31257
  Returns: import("../integrations/supabase/types").Json;
30776
31258
  };
31259
+ wo_list_colleague_planning: {
31260
+ Args: {
31261
+ _from: string;
31262
+ _monteur_id: string;
31263
+ _to: string;
31264
+ };
31265
+ Returns: {
31266
+ end_at: string;
31267
+ id: string;
31268
+ role: string;
31269
+ start_at: string;
31270
+ status: string;
31271
+ werkbon_id: string;
31272
+ }[];
31273
+ };
30777
31274
  wo_list_offerte_requests: {
30778
31275
  Args: {
30779
31276
  _status?: string;
@@ -31579,6 +32076,27 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
31579
32076
  };
31580
32077
  Relationships: [];
31581
32078
  };
32079
+ artikelen_instellingen: {
32080
+ Row: {
32081
+ created_at: string;
32082
+ id: number;
32083
+ marge_procent: number;
32084
+ updated_at: string;
32085
+ };
32086
+ Insert: {
32087
+ created_at?: string;
32088
+ id?: number;
32089
+ marge_procent?: number;
32090
+ updated_at?: string;
32091
+ };
32092
+ Update: {
32093
+ created_at?: string;
32094
+ id?: number;
32095
+ marge_procent?: number;
32096
+ updated_at?: string;
32097
+ };
32098
+ Relationships: [];
32099
+ };
31582
32100
  artikelen_veldconfig: {
31583
32101
  Row: {
31584
32102
  bron_pad: string;
@@ -41254,6 +41772,30 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
41254
41772
  };
41255
41773
  Relationships: [];
41256
41774
  };
41775
+ logistics_cart_barcode_archief: {
41776
+ Row: {
41777
+ barcode: string;
41778
+ cart_id: string;
41779
+ created_at: string | null;
41780
+ gearchiveerd_op: string;
41781
+ order_id: string | null;
41782
+ };
41783
+ Insert: {
41784
+ barcode: string;
41785
+ cart_id: string;
41786
+ created_at?: string | null;
41787
+ gearchiveerd_op?: string;
41788
+ order_id?: string | null;
41789
+ };
41790
+ Update: {
41791
+ barcode?: string;
41792
+ cart_id?: string;
41793
+ created_at?: string | null;
41794
+ gearchiveerd_op?: string;
41795
+ order_id?: string | null;
41796
+ };
41797
+ Relationships: [];
41798
+ };
41257
41799
  logistics_control_scan: {
41258
41800
  Row: {
41259
41801
  approved_at: string | null;
@@ -45540,6 +46082,7 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
45540
46082
  next_attempt_at: string;
45541
46083
  order_id: string;
45542
46084
  processed_at: string | null;
46085
+ send_error: string | null;
45543
46086
  status: string;
45544
46087
  updated_at: string;
45545
46088
  };
@@ -45553,6 +46096,7 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
45553
46096
  next_attempt_at?: string;
45554
46097
  order_id: string;
45555
46098
  processed_at?: string | null;
46099
+ send_error?: string | null;
45556
46100
  status?: string;
45557
46101
  updated_at?: string;
45558
46102
  };
@@ -45566,6 +46110,7 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
45566
46110
  next_attempt_at?: string;
45567
46111
  order_id?: string;
45568
46112
  processed_at?: string | null;
46113
+ send_error?: string | null;
45569
46114
  status?: string;
45570
46115
  updated_at?: string;
45571
46116
  };
@@ -46904,18 +47449,24 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
46904
47449
  Row: {
46905
47450
  id: boolean;
46906
47451
  last_cleanup_at: string | null;
47452
+ last_error: string | null;
47453
+ last_error_at: string | null;
46907
47454
  last_sync_at: string | null;
46908
47455
  updated_at: string;
46909
47456
  };
46910
47457
  Insert: {
46911
47458
  id?: boolean;
46912
47459
  last_cleanup_at?: string | null;
47460
+ last_error?: string | null;
47461
+ last_error_at?: string | null;
46913
47462
  last_sync_at?: string | null;
46914
47463
  updated_at?: string;
46915
47464
  };
46916
47465
  Update: {
46917
47466
  id?: boolean;
46918
47467
  last_cleanup_at?: string | null;
47468
+ last_error?: string | null;
47469
+ last_error_at?: string | null;
46919
47470
  last_sync_at?: string | null;
46920
47471
  updated_at?: string;
46921
47472
  };
@@ -47041,6 +47592,54 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
47041
47592
  };
47042
47593
  Relationships: [];
47043
47594
  };
47595
+ planning_confirmation_log: {
47596
+ Row: {
47597
+ created_at: string;
47598
+ end_at: string;
47599
+ id: string;
47600
+ outbox_id: string | null;
47601
+ planning_item_id: string;
47602
+ reason: string | null;
47603
+ recipient: string | null;
47604
+ start_at: string;
47605
+ status: string;
47606
+ };
47607
+ Insert: {
47608
+ created_at?: string;
47609
+ end_at: string;
47610
+ id?: string;
47611
+ outbox_id?: string | null;
47612
+ planning_item_id: string;
47613
+ reason?: string | null;
47614
+ recipient?: string | null;
47615
+ start_at: string;
47616
+ status: string;
47617
+ };
47618
+ Update: {
47619
+ created_at?: string;
47620
+ end_at?: string;
47621
+ id?: string;
47622
+ outbox_id?: string | null;
47623
+ planning_item_id?: string;
47624
+ reason?: string | null;
47625
+ recipient?: string | null;
47626
+ start_at?: string;
47627
+ status?: string;
47628
+ };
47629
+ Relationships: [{
47630
+ foreignKeyName: "planning_confirmation_log_planning_item_id_fkey";
47631
+ columns: ["planning_item_id"];
47632
+ isOneToOne: false;
47633
+ referencedRelation: "planning_items";
47634
+ referencedColumns: ["id"];
47635
+ }, {
47636
+ foreignKeyName: "planning_confirmation_log_planning_item_id_fkey";
47637
+ columns: ["planning_item_id"];
47638
+ isOneToOne: false;
47639
+ referencedRelation: "planning_overview";
47640
+ referencedColumns: ["id"];
47641
+ }];
47642
+ };
47044
47643
  planning_item_assistants: {
47045
47644
  Row: {
47046
47645
  created_at: string;
@@ -47125,6 +47724,60 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
47125
47724
  referencedColumns: ["id"];
47126
47725
  }];
47127
47726
  };
47727
+ planning_mail_settings: {
47728
+ Row: {
47729
+ body_template: string;
47730
+ cc: string[];
47731
+ connection_id: string | null;
47732
+ created_at: string;
47733
+ enabled: boolean;
47734
+ id: boolean;
47735
+ reply_to: string | null;
47736
+ subject_template: string;
47737
+ timezone: string;
47738
+ updated_at: string;
47739
+ updated_by: string | null;
47740
+ };
47741
+ Insert: {
47742
+ body_template?: string;
47743
+ cc?: string[];
47744
+ connection_id?: string | null;
47745
+ created_at?: string;
47746
+ enabled?: boolean;
47747
+ id?: boolean;
47748
+ reply_to?: string | null;
47749
+ subject_template?: string;
47750
+ timezone?: string;
47751
+ updated_at?: string;
47752
+ updated_by?: string | null;
47753
+ };
47754
+ Update: {
47755
+ body_template?: string;
47756
+ cc?: string[];
47757
+ connection_id?: string | null;
47758
+ created_at?: string;
47759
+ enabled?: boolean;
47760
+ id?: boolean;
47761
+ reply_to?: string | null;
47762
+ subject_template?: string;
47763
+ timezone?: string;
47764
+ updated_at?: string;
47765
+ updated_by?: string | null;
47766
+ };
47767
+ Relationships: [{
47768
+ foreignKeyName: "planning_mail_settings_connection_id_fkey";
47769
+ columns: ["connection_id"];
47770
+ isOneToOne: false;
47771
+ referencedRelation: "email_auth_connections";
47772
+ referencedColumns: ["id"];
47773
+ }, {
47774
+ foreignKeyName: "planning_mail_settings_connection_id_fkey";
47775
+ columns: ["connection_id"];
47776
+ isOneToOne: false;
47777
+ referencedRelation: "email_auth_connections_safe";
47778
+ referencedColumns: ["id"];
47779
+ }];
47780
+ };
47128
47781
  planning_monteur_day_locations: {
47129
47782
  Row: {
47130
47783
  created_at: string;
@@ -48603,6 +49256,9 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
48603
49256
  lead_time_days: number | null;
48604
49257
  min_order_quantity: number | null;
48605
49258
  notes: string | null;
49259
+ previous_price_cents: number | null;
49260
+ price_source: string;
49261
+ price_updated_at: string | null;
48606
49262
  product_id: string;
48607
49263
  purchase_price_cents: number | null;
48608
49264
  supplier_article_number: string | null;
@@ -48616,6 +49272,9 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
48616
49272
  lead_time_days?: number | null;
48617
49273
  min_order_quantity?: number | null;
48618
49274
  notes?: string | null;
49275
+ previous_price_cents?: number | null;
49276
+ price_source?: string;
49277
+ price_updated_at?: string | null;
48619
49278
  product_id: string;
48620
49279
  purchase_price_cents?: number | null;
48621
49280
  supplier_article_number?: string | null;
@@ -48629,6 +49288,9 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
48629
49288
  lead_time_days?: number | null;
48630
49289
  min_order_quantity?: number | null;
48631
49290
  notes?: string | null;
49291
+ previous_price_cents?: number | null;
49292
+ price_source?: string;
49293
+ price_updated_at?: string | null;
48632
49294
  product_id?: string;
48633
49295
  purchase_price_cents?: number | null;
48634
49296
  supplier_article_number?: string | null;
@@ -49159,9 +49821,13 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
49159
49821
  purchase_order_items: {
49160
49822
  Row: {
49161
49823
  article_number: string | null;
49824
+ cancel_reason: string | null;
49825
+ cancelled_at: string | null;
49162
49826
  created_at: string;
49163
49827
  delivery_date: string | null;
49164
49828
  id: string;
49829
+ incoming_booked: number;
49830
+ line_status: string;
49165
49831
  name: string;
49166
49832
  note: string | null;
49167
49833
  pot_size: string | null;
@@ -49169,6 +49835,8 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
49169
49835
  product_type: string;
49170
49836
  purchase_order_id: string;
49171
49837
  quantity: number;
49838
+ received_at: string | null;
49839
+ received_booked: number;
49172
49840
  supplier_id: string | null;
49173
49841
  supplier_product_id: string | null;
49174
49842
  unit_price_cents: number;
@@ -49176,9 +49844,13 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
49176
49844
  };
49177
49845
  Insert: {
49178
49846
  article_number?: string | null;
49847
+ cancel_reason?: string | null;
49848
+ cancelled_at?: string | null;
49179
49849
  created_at?: string;
49180
49850
  delivery_date?: string | null;
49181
49851
  id?: string;
49852
+ incoming_booked?: number;
49853
+ line_status?: string;
49182
49854
  name?: string;
49183
49855
  note?: string | null;
49184
49856
  pot_size?: string | null;
@@ -49186,6 +49858,8 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
49186
49858
  product_type?: string;
49187
49859
  purchase_order_id: string;
49188
49860
  quantity?: number;
49861
+ received_at?: string | null;
49862
+ received_booked?: number;
49189
49863
  supplier_id?: string | null;
49190
49864
  supplier_product_id?: string | null;
49191
49865
  unit_price_cents?: number;
@@ -49193,9 +49867,13 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
49193
49867
  };
49194
49868
  Update: {
49195
49869
  article_number?: string | null;
49870
+ cancel_reason?: string | null;
49871
+ cancelled_at?: string | null;
49196
49872
  created_at?: string;
49197
49873
  delivery_date?: string | null;
49198
49874
  id?: string;
49875
+ incoming_booked?: number;
49876
+ line_status?: string;
49199
49877
  name?: string;
49200
49878
  note?: string | null;
49201
49879
  pot_size?: string | null;
@@ -49203,6 +49881,8 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
49203
49881
  product_type?: string;
49204
49882
  purchase_order_id?: string;
49205
49883
  quantity?: number;
49884
+ received_at?: string | null;
49885
+ received_booked?: number;
49206
49886
  supplier_id?: string | null;
49207
49887
  supplier_product_id?: string | null;
49208
49888
  unit_price_cents?: number;
@@ -49306,6 +49986,153 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
49306
49986
  referencedColumns: ["id"];
49307
49987
  }];
49308
49988
  };
49989
+ purchase_request_events: {
49990
+ Row: {
49991
+ created_at: string;
49992
+ details: import("../integrations/supabase/types").Json | null;
49993
+ event_type: string;
49994
+ id: string;
49995
+ request_id: string;
49996
+ };
49997
+ Insert: {
49998
+ created_at?: string;
49999
+ details?: import("../integrations/supabase/types").Json | null;
50000
+ event_type: string;
50001
+ id?: string;
50002
+ request_id: string;
50003
+ };
50004
+ Update: {
50005
+ created_at?: string;
50006
+ details?: import("../integrations/supabase/types").Json | null;
50007
+ event_type?: string;
50008
+ id?: string;
50009
+ request_id?: string;
50010
+ };
50011
+ Relationships: [{
50012
+ foreignKeyName: "purchase_request_events_request_id_fkey";
50013
+ columns: ["request_id"];
50014
+ isOneToOne: false;
50015
+ referencedRelation: "purchase_requests";
50016
+ referencedColumns: ["id"];
50017
+ }];
50018
+ };
50019
+ purchase_request_responses: {
50020
+ Row: {
50021
+ confirmed_date: string | null;
50022
+ confirmed_price_cents: number | null;
50023
+ confirmed_quantity: number;
50024
+ created_at: string;
50025
+ id: string;
50026
+ not_available: boolean;
50027
+ note: string | null;
50028
+ purchase_order_item_id: string;
50029
+ request_id: string;
50030
+ updated_at: string;
50031
+ };
50032
+ Insert: {
50033
+ confirmed_date?: string | null;
50034
+ confirmed_price_cents?: number | null;
50035
+ confirmed_quantity?: number;
50036
+ created_at?: string;
50037
+ id?: string;
50038
+ not_available?: boolean;
50039
+ note?: string | null;
50040
+ purchase_order_item_id: string;
50041
+ request_id: string;
50042
+ updated_at?: string;
50043
+ };
50044
+ Update: {
50045
+ confirmed_date?: string | null;
50046
+ confirmed_price_cents?: number | null;
50047
+ confirmed_quantity?: number;
50048
+ created_at?: string;
50049
+ id?: string;
50050
+ not_available?: boolean;
50051
+ note?: string | null;
50052
+ purchase_order_item_id?: string;
50053
+ request_id?: string;
50054
+ updated_at?: string;
50055
+ };
50056
+ Relationships: [{
50057
+ foreignKeyName: "purchase_request_responses_purchase_order_item_id_fkey";
50058
+ columns: ["purchase_order_item_id"];
50059
+ isOneToOne: false;
50060
+ referencedRelation: "purchase_order_items";
50061
+ referencedColumns: ["id"];
50062
+ }, {
50063
+ foreignKeyName: "purchase_request_responses_request_id_fkey";
50064
+ columns: ["request_id"];
50065
+ isOneToOne: false;
50066
+ referencedRelation: "purchase_requests";
50067
+ referencedColumns: ["id"];
50068
+ }];
50069
+ };
50070
+ purchase_requests: {
50071
+ Row: {
50072
+ created_at: string;
50073
+ expires_at: string;
50074
+ first_viewed_at: string | null;
50075
+ id: string;
50076
+ processed_at: string | null;
50077
+ purchase_order_id: string;
50078
+ responded_at: string | null;
50079
+ sent_at: string;
50080
+ status: string;
50081
+ supplier_id: string | null;
50082
+ supplier_name: string;
50083
+ supplier_note: string | null;
50084
+ to_address: string | null;
50085
+ token_hash: string;
50086
+ updated_at: string;
50087
+ };
50088
+ Insert: {
50089
+ created_at?: string;
50090
+ expires_at?: string;
50091
+ first_viewed_at?: string | null;
50092
+ id?: string;
50093
+ processed_at?: string | null;
50094
+ purchase_order_id: string;
50095
+ responded_at?: string | null;
50096
+ sent_at?: string;
50097
+ status?: string;
50098
+ supplier_id?: string | null;
50099
+ supplier_name?: string;
50100
+ supplier_note?: string | null;
50101
+ to_address?: string | null;
50102
+ token_hash: string;
50103
+ updated_at?: string;
50104
+ };
50105
+ Update: {
50106
+ created_at?: string;
50107
+ expires_at?: string;
50108
+ first_viewed_at?: string | null;
50109
+ id?: string;
50110
+ processed_at?: string | null;
50111
+ purchase_order_id?: string;
50112
+ responded_at?: string | null;
50113
+ sent_at?: string;
50114
+ status?: string;
50115
+ supplier_id?: string | null;
50116
+ supplier_name?: string;
50117
+ supplier_note?: string | null;
50118
+ to_address?: string | null;
50119
+ token_hash?: string;
50120
+ updated_at?: string;
50121
+ };
50122
+ Relationships: [{
50123
+ foreignKeyName: "purchase_requests_purchase_order_id_fkey";
50124
+ columns: ["purchase_order_id"];
50125
+ isOneToOne: false;
50126
+ referencedRelation: "purchase_orders";
50127
+ referencedColumns: ["id"];
50128
+ }, {
50129
+ foreignKeyName: "purchase_requests_supplier_id_fkey";
50130
+ columns: ["supplier_id"];
50131
+ isOneToOne: false;
50132
+ referencedRelation: "suppliers";
50133
+ referencedColumns: ["id"];
50134
+ }];
50135
+ };
49309
50136
  reception_notifications: {
49310
50137
  Row: {
49311
50138
  booking_id: string | null;
@@ -51469,6 +52296,7 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
51469
52296
  auto_invoice_enabled: boolean;
51470
52297
  auto_invoice_start_date: string | null;
51471
52298
  auto_invoice_trigger_statuses: string[];
52299
+ auto_send_mode: string | null;
51472
52300
  created_at: string;
51473
52301
  debtor_gl_account: string;
51474
52302
  default_article_code: string | null;
@@ -51497,6 +52325,7 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
51497
52325
  auto_invoice_enabled?: boolean;
51498
52326
  auto_invoice_start_date?: string | null;
51499
52327
  auto_invoice_trigger_statuses?: string[];
52328
+ auto_send_mode?: string | null;
51500
52329
  created_at?: string;
51501
52330
  debtor_gl_account?: string;
51502
52331
  default_article_code?: string | null;
@@ -51525,6 +52354,7 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
51525
52354
  auto_invoice_enabled?: boolean;
51526
52355
  auto_invoice_start_date?: string | null;
51527
52356
  auto_invoice_trigger_statuses?: string[];
52357
+ auto_send_mode?: string | null;
51528
52358
  created_at?: string;
51529
52359
  debtor_gl_account?: string;
51530
52360
  default_article_code?: string | null;
@@ -53728,7 +54558,7 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
53728
54558
  created_at: string;
53729
54559
  default_quantity: number;
53730
54560
  description: string | null;
53731
- duration_minutes: number | null;
54561
+ duration_minutes: number;
53732
54562
  id: string;
53733
54563
  mandaat_type: string | null;
53734
54564
  name: string;
@@ -53745,7 +54575,7 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
53745
54575
  created_at?: string;
53746
54576
  default_quantity?: number;
53747
54577
  description?: string | null;
53748
- duration_minutes?: number | null;
54578
+ duration_minutes?: number;
53749
54579
  id?: string;
53750
54580
  mandaat_type?: string | null;
53751
54581
  name: string;
@@ -53762,7 +54592,7 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
53762
54592
  created_at?: string;
53763
54593
  default_quantity?: number;
53764
54594
  description?: string | null;
53765
- duration_minutes?: number | null;
54595
+ duration_minutes?: number;
53766
54596
  id?: string;
53767
54597
  mandaat_type?: string | null;
53768
54598
  name?: string;
@@ -56758,6 +57588,31 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
56758
57588
  };
56759
57589
  Returns: import("../integrations/supabase/types").Json;
56760
57590
  };
57591
+ inkoop_cancel_line: {
57592
+ Args: {
57593
+ _item_id: string;
57594
+ _reason: string;
57595
+ };
57596
+ Returns: string;
57597
+ };
57598
+ inkoop_get_supplier_request: {
57599
+ Args: {
57600
+ _token: string;
57601
+ };
57602
+ Returns: import("../integrations/supabase/types").Json;
57603
+ };
57604
+ inkoop_hash_token: {
57605
+ Args: {
57606
+ _token: string;
57607
+ };
57608
+ Returns: string;
57609
+ };
57610
+ inkoop_html_escape: {
57611
+ Args: {
57612
+ _t: string;
57613
+ };
57614
+ Returns: string;
57615
+ };
56761
57616
  inkoop_list_artikelen: {
56762
57617
  Args: never;
56763
57618
  Returns: {
@@ -56782,9 +57637,17 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
56782
57637
  Args: never;
56783
57638
  Returns: string;
56784
57639
  };
57640
+ inkoop_process_request: {
57641
+ Args: {
57642
+ _request_id: string;
57643
+ };
57644
+ Returns: undefined;
57645
+ };
56785
57646
  inkoop_send_order: {
56786
57647
  Args: {
57648
+ _base_url?: string;
56787
57649
  _order_id: string;
57650
+ _resend?: boolean;
56788
57651
  };
56789
57652
  Returns: {
56790
57653
  outbox_id: string;
@@ -56799,6 +57662,26 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
56799
57662
  };
56800
57663
  Returns: undefined;
56801
57664
  };
57665
+ inkoop_stock_key: {
57666
+ Args: {
57667
+ p_product_id: string;
57668
+ };
57669
+ Returns: string;
57670
+ };
57671
+ inkoop_submit_supplier_response: {
57672
+ Args: {
57673
+ _lines: import("../integrations/supabase/types").Json;
57674
+ _note?: string;
57675
+ _token: string;
57676
+ };
57677
+ Returns: import("../integrations/supabase/types").Json;
57678
+ };
57679
+ inkoop_sync_item_stock: {
57680
+ Args: {
57681
+ p_item_id: string;
57682
+ };
57683
+ Returns: undefined;
57684
+ };
56802
57685
  instructie_get: {
56803
57686
  Args: {
56804
57687
  _sleutel: string;
@@ -56959,6 +57842,27 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
56959
57842
  };
56960
57843
  Returns: boolean;
56961
57844
  };
57845
+ layout_print_document: {
57846
+ Args: {
57847
+ _documentnaam: string;
57848
+ _documenttype: string;
57849
+ _herkomst?: string;
57850
+ _idempotentie_sleutel?: string;
57851
+ _is_herprint?: boolean;
57852
+ _kopieen?: number;
57853
+ _layout_id?: string;
57854
+ _payload?: import("../integrations/supabase/types").Json;
57855
+ _pdf_base64?: string;
57856
+ _pdf_url?: string;
57857
+ _print_plek_id?: string;
57858
+ _werkplek?: string;
57859
+ };
57860
+ Returns: {
57861
+ bestaand: boolean;
57862
+ job_id: string;
57863
+ printer_id: string;
57864
+ }[];
57865
+ };
56962
57866
  list_medewerkers: {
56963
57867
  Args: never;
56964
57868
  Returns: {
@@ -57236,6 +58140,12 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
57236
58140
  };
57237
58141
  Returns: number;
57238
58142
  };
58143
+ logistics_cart_barcode_opschonen: {
58144
+ Args: {
58145
+ p_portie?: number;
58146
+ };
58147
+ Returns: import("../integrations/supabase/types").Json;
58148
+ };
57239
58149
  logistics_cart_barcode_value: {
57240
58150
  Args: {
57241
58151
  _cart_id: string;
@@ -57655,6 +58565,13 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
57655
58565
  };
57656
58566
  Returns: import("../integrations/supabase/types").Json;
57657
58567
  };
58568
+ logistics_control_scan_print_own: {
58569
+ Args: {
58570
+ p_is_herprint?: boolean;
58571
+ p_scan_id: string;
58572
+ };
58573
+ Returns: import("../integrations/supabase/types").Json;
58574
+ };
57658
58575
  logistics_control_scan_retry: {
57659
58576
  Args: {
57660
58577
  _id: string;
@@ -58559,6 +59476,21 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
58559
59476
  };
58560
59477
  Returns: import("../integrations/supabase/types").Json;
58561
59478
  };
59479
+ logistics_print_via_layout: {
59480
+ Args: {
59481
+ _documentnaam: string;
59482
+ _documenttype: string;
59483
+ _herkomst: string;
59484
+ _idempotentie_sleutel: string;
59485
+ _is_herprint: boolean;
59486
+ _layout_id: string;
59487
+ _payload: import("../integrations/supabase/types").Json;
59488
+ _pdf_base64: string;
59489
+ _pdf_url: string;
59490
+ _print_plek_id: string;
59491
+ };
59492
+ Returns: import("../integrations/supabase/types").Json;
59493
+ };
58562
59494
  logistics_prune_buffer_member_queue: {
58563
59495
  Args: never;
58564
59496
  Returns: number;
@@ -58845,6 +59777,13 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
58845
59777
  };
58846
59778
  Returns: string;
58847
59779
  };
59780
+ logistics_shipping_note_status: {
59781
+ Args: {
59782
+ p_cart_id?: string;
59783
+ p_slip_job_id?: string;
59784
+ };
59785
+ Returns: import("../integrations/supabase/types").Json;
59786
+ };
58848
59787
  logistics_shipping_notes_wake_all: {
58849
59788
  Args: never;
58850
59789
  Returns: import("../integrations/supabase/types").Json;
@@ -58907,6 +59846,12 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
58907
59846
  };
58908
59847
  Returns: undefined;
58909
59848
  };
59849
+ logistics_slip_note_retry: {
59850
+ Args: {
59851
+ _id: string;
59852
+ };
59853
+ Returns: import("../integrations/supabase/types").Json;
59854
+ };
58910
59855
  logistics_sticker_follows_slip: {
58911
59856
  Args: never;
58912
59857
  Returns: boolean;
@@ -59651,6 +60596,10 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
59651
60596
  };
59652
60597
  Returns: string;
59653
60598
  };
60599
+ pick_is_reference_admin: {
60600
+ Args: never;
60601
+ Returns: boolean;
60602
+ };
59654
60603
  pick_mark_printed: {
59655
60604
  Args: {
59656
60605
  _queue_item_id: string;
@@ -60524,6 +61473,13 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
60524
61473
  };
60525
61474
  Returns: import("../integrations/supabase/types").Json;
60526
61475
  };
61476
+ scan_controleer_pincode: {
61477
+ Args: {
61478
+ p_pin: string;
61479
+ p_scanner_id: string;
61480
+ };
61481
+ Returns: boolean;
61482
+ };
60527
61483
  scan_dashboard_stats: {
60528
61484
  Args: {
60529
61485
  p_dagen?: number;
@@ -60543,6 +61499,12 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
60543
61499
  };
60544
61500
  Returns: import("../integrations/supabase/types").Json;
60545
61501
  };
61502
+ scan_heeft_pincode: {
61503
+ Args: {
61504
+ p_scanner_id: string;
61505
+ };
61506
+ Returns: boolean;
61507
+ };
60546
61508
  scan_kar_compleet: {
60547
61509
  Args: {
60548
61510
  p_allow_reprint?: boolean;
@@ -60560,6 +61522,7 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
60560
61522
  Args: {
60561
61523
  p_code: string;
60562
61524
  p_latency_ms?: number;
61525
+ p_medewerker?: string;
60563
61526
  p_message?: string;
60564
61527
  p_result: string;
60565
61528
  p_scanner_key?: string;
@@ -60632,6 +61595,22 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
60632
61595
  };
60633
61596
  Returns: undefined;
60634
61597
  };
61598
+ scan_scanner_info: {
61599
+ Args: {
61600
+ p_slug: string;
61601
+ };
61602
+ Returns: {
61603
+ actief: boolean;
61604
+ heeft_pincode: boolean;
61605
+ id: string;
61606
+ naam: string;
61607
+ omschrijving: string;
61608
+ printer_id: string;
61609
+ type: string;
61610
+ vereist_medewerker: boolean;
61611
+ werkplek: string;
61612
+ }[];
61613
+ };
60635
61614
  scan_sessie_annuleren: {
60636
61615
  Args: {
60637
61616
  p_sessie_id: string;
@@ -61594,6 +62573,21 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
61594
62573
  };
61595
62574
  Returns: import("../integrations/supabase/types").Json;
61596
62575
  };
62576
+ wo_list_colleague_planning: {
62577
+ Args: {
62578
+ _from: string;
62579
+ _monteur_id: string;
62580
+ _to: string;
62581
+ };
62582
+ Returns: {
62583
+ end_at: string;
62584
+ id: string;
62585
+ role: string;
62586
+ start_at: string;
62587
+ status: string;
62588
+ werkbon_id: string;
62589
+ }[];
62590
+ };
61597
62591
  wo_list_offerte_requests: {
61598
62592
  Args: {
61599
62593
  _status?: string;