@flowselections/logistiek-engine 1.0.89 → 1.0.94

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 (31) hide show
  1. package/dist-lib/components/FlowOrders.js +1 -1
  2. package/dist-lib/hooks/useShippingNoteStatus.d.ts +2 -0
  3. package/dist-lib/hooks/useShippingNoteStatus.d.ts.map +1 -1
  4. package/dist-lib/hooks/useShippingNoteStatus.js +13 -1
  5. package/dist-lib/hooks/useShippingNoteStatus.test.d.ts +2 -0
  6. package/dist-lib/hooks/useShippingNoteStatus.test.d.ts.map +1 -0
  7. package/dist-lib/hooks/useShippingNoteStatus.test.js +20 -0
  8. package/dist-lib/integrations/supabase/auth-middleware.d.ts +356 -0
  9. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  10. package/dist-lib/integrations/supabase/client.server.d.ts +356 -0
  11. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  12. package/dist-lib/integrations/supabase/moduleClient.d.ts +356 -0
  13. package/dist-lib/integrations/supabase/moduleClient.d.ts.map +1 -1
  14. package/dist-lib/integrations/supabase/types.d.ts +364 -0
  15. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  16. package/dist-lib/lib/cartCoverage.functions.d.ts +356 -0
  17. package/dist-lib/lib/cartCoverage.functions.d.ts.map +1 -1
  18. package/dist-lib/lib/floridayDocuments.functions.d.ts +1068 -0
  19. package/dist-lib/lib/floridayDocuments.functions.d.ts.map +1 -1
  20. package/dist-lib/lib/floridayPush.functions.d.ts +356 -0
  21. package/dist-lib/lib/floridayPush.functions.d.ts.map +1 -1
  22. package/dist-lib/lib/loadCarrierPlanning.functions.d.ts +1780 -0
  23. package/dist-lib/lib/loadCarrierPlanning.functions.d.ts.map +1 -1
  24. package/dist-lib/lib/logisticsRecalcJob.functions.d.ts +712 -0
  25. package/dist-lib/lib/logisticsRecalcJob.functions.d.ts.map +1 -1
  26. package/dist-lib/lib/logisticsRecalculate.functions.d.ts +356 -0
  27. package/dist-lib/lib/logisticsRecalculate.functions.d.ts.map +1 -1
  28. package/dist-lib/lib/plannerDiff.functions.d.ts +356 -0
  29. package/dist-lib/lib/plannerDiff.functions.d.ts.map +1 -1
  30. package/dist-lib/lib/ruleEngineSchema.js +2 -2
  31. package/package.json +158 -158
@@ -733,6 +733,27 @@ export declare const replanOrderLoadCarriers: import("@tanstack/start-client-cor
733
733
  };
734
734
  Relationships: [];
735
735
  };
736
+ artikelen_instellingen: {
737
+ Row: {
738
+ created_at: string;
739
+ id: number;
740
+ marge_procent: number;
741
+ updated_at: string;
742
+ };
743
+ Insert: {
744
+ created_at?: string;
745
+ id?: number;
746
+ marge_procent?: number;
747
+ updated_at?: string;
748
+ };
749
+ Update: {
750
+ created_at?: string;
751
+ id?: number;
752
+ marge_procent?: number;
753
+ updated_at?: string;
754
+ };
755
+ Relationships: [];
756
+ };
736
757
  artikelen_veldconfig: {
737
758
  Row: {
738
759
  bron_pad: string;
@@ -10408,6 +10429,30 @@ export declare const replanOrderLoadCarriers: import("@tanstack/start-client-cor
10408
10429
  };
10409
10430
  Relationships: [];
10410
10431
  };
10432
+ logistics_cart_barcode_archief: {
10433
+ Row: {
10434
+ barcode: string;
10435
+ cart_id: string;
10436
+ created_at: string | null;
10437
+ gearchiveerd_op: string;
10438
+ order_id: string | null;
10439
+ };
10440
+ Insert: {
10441
+ barcode: string;
10442
+ cart_id: string;
10443
+ created_at?: string | null;
10444
+ gearchiveerd_op?: string;
10445
+ order_id?: string | null;
10446
+ };
10447
+ Update: {
10448
+ barcode?: string;
10449
+ cart_id?: string;
10450
+ created_at?: string | null;
10451
+ gearchiveerd_op?: string;
10452
+ order_id?: string | null;
10453
+ };
10454
+ Relationships: [];
10455
+ };
10411
10456
  logistics_control_scan: {
10412
10457
  Row: {
10413
10458
  approved_at: string | null;
@@ -14694,6 +14739,7 @@ export declare const replanOrderLoadCarriers: import("@tanstack/start-client-cor
14694
14739
  next_attempt_at: string;
14695
14740
  order_id: string;
14696
14741
  processed_at: string | null;
14742
+ send_error: string | null;
14697
14743
  status: string;
14698
14744
  updated_at: string;
14699
14745
  };
@@ -14707,6 +14753,7 @@ export declare const replanOrderLoadCarriers: import("@tanstack/start-client-cor
14707
14753
  next_attempt_at?: string;
14708
14754
  order_id: string;
14709
14755
  processed_at?: string | null;
14756
+ send_error?: string | null;
14710
14757
  status?: string;
14711
14758
  updated_at?: string;
14712
14759
  };
@@ -14720,6 +14767,7 @@ export declare const replanOrderLoadCarriers: import("@tanstack/start-client-cor
14720
14767
  next_attempt_at?: string;
14721
14768
  order_id?: string;
14722
14769
  processed_at?: string | null;
14770
+ send_error?: string | null;
14723
14771
  status?: string;
14724
14772
  updated_at?: string;
14725
14773
  };
@@ -17757,6 +17805,9 @@ export declare const replanOrderLoadCarriers: import("@tanstack/start-client-cor
17757
17805
  lead_time_days: number | null;
17758
17806
  min_order_quantity: number | null;
17759
17807
  notes: string | null;
17808
+ previous_price_cents: number | null;
17809
+ price_source: string;
17810
+ price_updated_at: string | null;
17760
17811
  product_id: string;
17761
17812
  purchase_price_cents: number | null;
17762
17813
  supplier_article_number: string | null;
@@ -17770,6 +17821,9 @@ export declare const replanOrderLoadCarriers: import("@tanstack/start-client-cor
17770
17821
  lead_time_days?: number | null;
17771
17822
  min_order_quantity?: number | null;
17772
17823
  notes?: string | null;
17824
+ previous_price_cents?: number | null;
17825
+ price_source?: string;
17826
+ price_updated_at?: string | null;
17773
17827
  product_id: string;
17774
17828
  purchase_price_cents?: number | null;
17775
17829
  supplier_article_number?: string | null;
@@ -17783,6 +17837,9 @@ export declare const replanOrderLoadCarriers: import("@tanstack/start-client-cor
17783
17837
  lead_time_days?: number | null;
17784
17838
  min_order_quantity?: number | null;
17785
17839
  notes?: string | null;
17840
+ previous_price_cents?: number | null;
17841
+ price_source?: string;
17842
+ price_updated_at?: string | null;
17786
17843
  product_id?: string;
17787
17844
  purchase_price_cents?: number | null;
17788
17845
  supplier_article_number?: string | null;
@@ -18313,9 +18370,13 @@ export declare const replanOrderLoadCarriers: import("@tanstack/start-client-cor
18313
18370
  purchase_order_items: {
18314
18371
  Row: {
18315
18372
  article_number: string | null;
18373
+ cancel_reason: string | null;
18374
+ cancelled_at: string | null;
18316
18375
  created_at: string;
18317
18376
  delivery_date: string | null;
18318
18377
  id: string;
18378
+ incoming_booked: number;
18379
+ line_status: string;
18319
18380
  name: string;
18320
18381
  note: string | null;
18321
18382
  pot_size: string | null;
@@ -18323,6 +18384,8 @@ export declare const replanOrderLoadCarriers: import("@tanstack/start-client-cor
18323
18384
  product_type: string;
18324
18385
  purchase_order_id: string;
18325
18386
  quantity: number;
18387
+ received_at: string | null;
18388
+ received_booked: number;
18326
18389
  supplier_id: string | null;
18327
18390
  supplier_product_id: string | null;
18328
18391
  unit_price_cents: number;
@@ -18330,9 +18393,13 @@ export declare const replanOrderLoadCarriers: import("@tanstack/start-client-cor
18330
18393
  };
18331
18394
  Insert: {
18332
18395
  article_number?: string | null;
18396
+ cancel_reason?: string | null;
18397
+ cancelled_at?: string | null;
18333
18398
  created_at?: string;
18334
18399
  delivery_date?: string | null;
18335
18400
  id?: string;
18401
+ incoming_booked?: number;
18402
+ line_status?: string;
18336
18403
  name?: string;
18337
18404
  note?: string | null;
18338
18405
  pot_size?: string | null;
@@ -18340,6 +18407,8 @@ export declare const replanOrderLoadCarriers: import("@tanstack/start-client-cor
18340
18407
  product_type?: string;
18341
18408
  purchase_order_id: string;
18342
18409
  quantity?: number;
18410
+ received_at?: string | null;
18411
+ received_booked?: number;
18343
18412
  supplier_id?: string | null;
18344
18413
  supplier_product_id?: string | null;
18345
18414
  unit_price_cents?: number;
@@ -18347,9 +18416,13 @@ export declare const replanOrderLoadCarriers: import("@tanstack/start-client-cor
18347
18416
  };
18348
18417
  Update: {
18349
18418
  article_number?: string | null;
18419
+ cancel_reason?: string | null;
18420
+ cancelled_at?: string | null;
18350
18421
  created_at?: string;
18351
18422
  delivery_date?: string | null;
18352
18423
  id?: string;
18424
+ incoming_booked?: number;
18425
+ line_status?: string;
18353
18426
  name?: string;
18354
18427
  note?: string | null;
18355
18428
  pot_size?: string | null;
@@ -18357,6 +18430,8 @@ export declare const replanOrderLoadCarriers: import("@tanstack/start-client-cor
18357
18430
  product_type?: string;
18358
18431
  purchase_order_id?: string;
18359
18432
  quantity?: number;
18433
+ received_at?: string | null;
18434
+ received_booked?: number;
18360
18435
  supplier_id?: string | null;
18361
18436
  supplier_product_id?: string | null;
18362
18437
  unit_price_cents?: number;
@@ -18460,6 +18535,153 @@ export declare const replanOrderLoadCarriers: import("@tanstack/start-client-cor
18460
18535
  referencedColumns: ["id"];
18461
18536
  }];
18462
18537
  };
18538
+ purchase_request_events: {
18539
+ Row: {
18540
+ created_at: string;
18541
+ details: import("../integrations/supabase/types").Json | null;
18542
+ event_type: string;
18543
+ id: string;
18544
+ request_id: string;
18545
+ };
18546
+ Insert: {
18547
+ created_at?: string;
18548
+ details?: import("../integrations/supabase/types").Json | null;
18549
+ event_type: string;
18550
+ id?: string;
18551
+ request_id: string;
18552
+ };
18553
+ Update: {
18554
+ created_at?: string;
18555
+ details?: import("../integrations/supabase/types").Json | null;
18556
+ event_type?: string;
18557
+ id?: string;
18558
+ request_id?: string;
18559
+ };
18560
+ Relationships: [{
18561
+ foreignKeyName: "purchase_request_events_request_id_fkey";
18562
+ columns: ["request_id"];
18563
+ isOneToOne: false;
18564
+ referencedRelation: "purchase_requests";
18565
+ referencedColumns: ["id"];
18566
+ }];
18567
+ };
18568
+ purchase_request_responses: {
18569
+ Row: {
18570
+ confirmed_date: string | null;
18571
+ confirmed_price_cents: number | null;
18572
+ confirmed_quantity: number;
18573
+ created_at: string;
18574
+ id: string;
18575
+ not_available: boolean;
18576
+ note: string | null;
18577
+ purchase_order_item_id: string;
18578
+ request_id: string;
18579
+ updated_at: string;
18580
+ };
18581
+ Insert: {
18582
+ confirmed_date?: string | null;
18583
+ confirmed_price_cents?: number | null;
18584
+ confirmed_quantity?: number;
18585
+ created_at?: string;
18586
+ id?: string;
18587
+ not_available?: boolean;
18588
+ note?: string | null;
18589
+ purchase_order_item_id: string;
18590
+ request_id: string;
18591
+ updated_at?: string;
18592
+ };
18593
+ Update: {
18594
+ confirmed_date?: string | null;
18595
+ confirmed_price_cents?: number | null;
18596
+ confirmed_quantity?: number;
18597
+ created_at?: string;
18598
+ id?: string;
18599
+ not_available?: boolean;
18600
+ note?: string | null;
18601
+ purchase_order_item_id?: string;
18602
+ request_id?: string;
18603
+ updated_at?: string;
18604
+ };
18605
+ Relationships: [{
18606
+ foreignKeyName: "purchase_request_responses_purchase_order_item_id_fkey";
18607
+ columns: ["purchase_order_item_id"];
18608
+ isOneToOne: false;
18609
+ referencedRelation: "purchase_order_items";
18610
+ referencedColumns: ["id"];
18611
+ }, {
18612
+ foreignKeyName: "purchase_request_responses_request_id_fkey";
18613
+ columns: ["request_id"];
18614
+ isOneToOne: false;
18615
+ referencedRelation: "purchase_requests";
18616
+ referencedColumns: ["id"];
18617
+ }];
18618
+ };
18619
+ purchase_requests: {
18620
+ Row: {
18621
+ created_at: string;
18622
+ expires_at: string;
18623
+ first_viewed_at: string | null;
18624
+ id: string;
18625
+ processed_at: string | null;
18626
+ purchase_order_id: string;
18627
+ responded_at: string | null;
18628
+ sent_at: string;
18629
+ status: string;
18630
+ supplier_id: string | null;
18631
+ supplier_name: string;
18632
+ supplier_note: string | null;
18633
+ to_address: string | null;
18634
+ token_hash: string;
18635
+ updated_at: string;
18636
+ };
18637
+ Insert: {
18638
+ created_at?: string;
18639
+ expires_at?: string;
18640
+ first_viewed_at?: string | null;
18641
+ id?: string;
18642
+ processed_at?: string | null;
18643
+ purchase_order_id: string;
18644
+ responded_at?: string | null;
18645
+ sent_at?: string;
18646
+ status?: string;
18647
+ supplier_id?: string | null;
18648
+ supplier_name?: string;
18649
+ supplier_note?: string | null;
18650
+ to_address?: string | null;
18651
+ token_hash: string;
18652
+ updated_at?: string;
18653
+ };
18654
+ Update: {
18655
+ created_at?: string;
18656
+ expires_at?: string;
18657
+ first_viewed_at?: string | null;
18658
+ id?: string;
18659
+ processed_at?: string | null;
18660
+ purchase_order_id?: string;
18661
+ responded_at?: string | null;
18662
+ sent_at?: string;
18663
+ status?: string;
18664
+ supplier_id?: string | null;
18665
+ supplier_name?: string;
18666
+ supplier_note?: string | null;
18667
+ to_address?: string | null;
18668
+ token_hash?: string;
18669
+ updated_at?: string;
18670
+ };
18671
+ Relationships: [{
18672
+ foreignKeyName: "purchase_requests_purchase_order_id_fkey";
18673
+ columns: ["purchase_order_id"];
18674
+ isOneToOne: false;
18675
+ referencedRelation: "purchase_orders";
18676
+ referencedColumns: ["id"];
18677
+ }, {
18678
+ foreignKeyName: "purchase_requests_supplier_id_fkey";
18679
+ columns: ["supplier_id"];
18680
+ isOneToOne: false;
18681
+ referencedRelation: "suppliers";
18682
+ referencedColumns: ["id"];
18683
+ }];
18684
+ };
18463
18685
  reception_notifications: {
18464
18686
  Row: {
18465
18687
  booking_id: string | null;
@@ -20623,6 +20845,7 @@ export declare const replanOrderLoadCarriers: import("@tanstack/start-client-cor
20623
20845
  auto_invoice_enabled: boolean;
20624
20846
  auto_invoice_start_date: string | null;
20625
20847
  auto_invoice_trigger_statuses: string[];
20848
+ auto_send_mode: string | null;
20626
20849
  created_at: string;
20627
20850
  debtor_gl_account: string;
20628
20851
  default_article_code: string | null;
@@ -20651,6 +20874,7 @@ export declare const replanOrderLoadCarriers: import("@tanstack/start-client-cor
20651
20874
  auto_invoice_enabled?: boolean;
20652
20875
  auto_invoice_start_date?: string | null;
20653
20876
  auto_invoice_trigger_statuses?: string[];
20877
+ auto_send_mode?: string | null;
20654
20878
  created_at?: string;
20655
20879
  debtor_gl_account?: string;
20656
20880
  default_article_code?: string | null;
@@ -20679,6 +20903,7 @@ export declare const replanOrderLoadCarriers: import("@tanstack/start-client-cor
20679
20903
  auto_invoice_enabled?: boolean;
20680
20904
  auto_invoice_start_date?: string | null;
20681
20905
  auto_invoice_trigger_statuses?: string[];
20906
+ auto_send_mode?: string | null;
20682
20907
  created_at?: string;
20683
20908
  debtor_gl_account?: string;
20684
20909
  default_article_code?: string | null;
@@ -25912,13 +26137,66 @@ export declare const replanOrderLoadCarriers: import("@tanstack/start-client-cor
25912
26137
  };
25913
26138
  Returns: import("../integrations/supabase/types").Json;
25914
26139
  };
26140
+ inkoop_cancel_line: {
26141
+ Args: {
26142
+ _item_id: string;
26143
+ _reason: string;
26144
+ };
26145
+ Returns: string;
26146
+ };
26147
+ inkoop_get_supplier_request: {
26148
+ Args: {
26149
+ _token: string;
26150
+ };
26151
+ Returns: import("../integrations/supabase/types").Json;
26152
+ };
26153
+ inkoop_hash_token: {
26154
+ Args: {
26155
+ _token: string;
26156
+ };
26157
+ Returns: string;
26158
+ };
26159
+ inkoop_html_escape: {
26160
+ Args: {
26161
+ _t: string;
26162
+ };
26163
+ Returns: string;
26164
+ };
26165
+ inkoop_list_artikelen: {
26166
+ Args: never;
26167
+ Returns: {
26168
+ article_number: string;
26169
+ barcode: string;
26170
+ id: string;
26171
+ incoming_quantity: number;
26172
+ is_layer: boolean;
26173
+ location: string;
26174
+ min_quantity: number;
26175
+ preferred_supplier_name: string;
26176
+ product: string;
26177
+ product_type: string;
26178
+ purchase_price: number;
26179
+ quantity: number;
26180
+ sale_price: number;
26181
+ supplier_count: number;
26182
+ unit: string;
26183
+ }[];
26184
+ };
25915
26185
  inkoop_next_order_number: {
25916
26186
  Args: never;
25917
26187
  Returns: string;
25918
26188
  };
26189
+ inkoop_process_request: {
26190
+ Args: {
26191
+ _request_id: string;
26192
+ };
26193
+ Returns: undefined;
26194
+ };
25919
26195
  inkoop_send_order: {
25920
26196
  Args: {
26197
+ _base_url?: string;
25921
26198
  _order_id: string;
26199
+ _resend?: boolean;
25922
26200
  };
25923
26201
  Returns: {
25924
26202
  outbox_id: string;
@@ -25933,6 +26211,26 @@ export declare const replanOrderLoadCarriers: import("@tanstack/start-client-cor
25933
26211
  };
25934
26212
  Returns: undefined;
25935
26213
  };
26214
+ inkoop_stock_key: {
26215
+ Args: {
26216
+ p_product_id: string;
26217
+ };
26218
+ Returns: string;
26219
+ };
26220
+ inkoop_submit_supplier_response: {
26221
+ Args: {
26222
+ _lines: import("../integrations/supabase/types").Json;
26223
+ _note?: string;
26224
+ _token: string;
26225
+ };
26226
+ Returns: import("../integrations/supabase/types").Json;
26227
+ };
26228
+ inkoop_sync_item_stock: {
26229
+ Args: {
26230
+ p_item_id: string;
26231
+ };
26232
+ Returns: undefined;
26233
+ };
25936
26234
  instructie_get: {
25937
26235
  Args: {
25938
26236
  _sleutel: string;
@@ -26370,6 +26668,12 @@ export declare const replanOrderLoadCarriers: import("@tanstack/start-client-cor
26370
26668
  };
26371
26669
  Returns: number;
26372
26670
  };
26671
+ logistics_cart_barcode_opschonen: {
26672
+ Args: {
26673
+ p_portie?: number;
26674
+ };
26675
+ Returns: import("../integrations/supabase/types").Json;
26676
+ };
26373
26677
  logistics_cart_barcode_value: {
26374
26678
  Args: {
26375
26679
  _cart_id: string;
@@ -27979,6 +28283,13 @@ export declare const replanOrderLoadCarriers: import("@tanstack/start-client-cor
27979
28283
  };
27980
28284
  Returns: string;
27981
28285
  };
28286
+ logistics_shipping_note_status: {
28287
+ Args: {
28288
+ p_cart_id?: string;
28289
+ p_slip_job_id?: string;
28290
+ };
28291
+ Returns: import("../integrations/supabase/types").Json;
28292
+ };
27982
28293
  logistics_shipping_notes_wake_all: {
27983
28294
  Args: never;
27984
28295
  Returns: import("../integrations/supabase/types").Json;
@@ -29658,6 +29969,13 @@ export declare const replanOrderLoadCarriers: import("@tanstack/start-client-cor
29658
29969
  };
29659
29970
  Returns: import("../integrations/supabase/types").Json;
29660
29971
  };
29972
+ scan_controleer_pincode: {
29973
+ Args: {
29974
+ p_pin: string;
29975
+ p_scanner_id: string;
29976
+ };
29977
+ Returns: boolean;
29978
+ };
29661
29979
  scan_dashboard_stats: {
29662
29980
  Args: {
29663
29981
  p_dagen?: number;
@@ -29677,6 +29995,12 @@ export declare const replanOrderLoadCarriers: import("@tanstack/start-client-cor
29677
29995
  };
29678
29996
  Returns: import("../integrations/supabase/types").Json;
29679
29997
  };
29998
+ scan_heeft_pincode: {
29999
+ Args: {
30000
+ p_scanner_id: string;
30001
+ };
30002
+ Returns: boolean;
30003
+ };
29680
30004
  scan_kar_compleet: {
29681
30005
  Args: {
29682
30006
  p_allow_reprint?: boolean;
@@ -29694,6 +30018,7 @@ export declare const replanOrderLoadCarriers: import("@tanstack/start-client-cor
29694
30018
  Args: {
29695
30019
  p_code: string;
29696
30020
  p_latency_ms?: number;
30021
+ p_medewerker?: string;
29697
30022
  p_message?: string;
29698
30023
  p_result: string;
29699
30024
  p_scanner_key?: string;
@@ -29766,6 +30091,22 @@ export declare const replanOrderLoadCarriers: import("@tanstack/start-client-cor
29766
30091
  };
29767
30092
  Returns: undefined;
29768
30093
  };
30094
+ scan_scanner_info: {
30095
+ Args: {
30096
+ p_slug: string;
30097
+ };
30098
+ Returns: {
30099
+ actief: boolean;
30100
+ heeft_pincode: boolean;
30101
+ id: string;
30102
+ naam: string;
30103
+ omschrijving: string;
30104
+ printer_id: string;
30105
+ type: string;
30106
+ vereist_medewerker: boolean;
30107
+ werkplek: string;
30108
+ }[];
30109
+ };
29769
30110
  scan_sessie_annuleren: {
29770
30111
  Args: {
29771
30112
  p_sessie_id: string;
@@ -30728,6 +31069,21 @@ export declare const replanOrderLoadCarriers: import("@tanstack/start-client-cor
30728
31069
  };
30729
31070
  Returns: import("../integrations/supabase/types").Json;
30730
31071
  };
31072
+ wo_list_colleague_planning: {
31073
+ Args: {
31074
+ _from: string;
31075
+ _monteur_id: string;
31076
+ _to: string;
31077
+ };
31078
+ Returns: {
31079
+ end_at: string;
31080
+ id: string;
31081
+ role: string;
31082
+ start_at: string;
31083
+ status: string;
31084
+ werkbon_id: string;
31085
+ }[];
31086
+ };
30731
31087
  wo_list_offerte_requests: {
30732
31088
  Args: {
30733
31089
  _status?: string;
@@ -31541,6 +31897,27 @@ export declare const replanBufferLoadCarriers: import("@tanstack/start-client-co
31541
31897
  };
31542
31898
  Relationships: [];
31543
31899
  };
31900
+ artikelen_instellingen: {
31901
+ Row: {
31902
+ created_at: string;
31903
+ id: number;
31904
+ marge_procent: number;
31905
+ updated_at: string;
31906
+ };
31907
+ Insert: {
31908
+ created_at?: string;
31909
+ id?: number;
31910
+ marge_procent?: number;
31911
+ updated_at?: string;
31912
+ };
31913
+ Update: {
31914
+ created_at?: string;
31915
+ id?: number;
31916
+ marge_procent?: number;
31917
+ updated_at?: string;
31918
+ };
31919
+ Relationships: [];
31920
+ };
31544
31921
  artikelen_veldconfig: {
31545
31922
  Row: {
31546
31923
  bron_pad: string;
@@ -41216,6 +41593,30 @@ export declare const replanBufferLoadCarriers: import("@tanstack/start-client-co
41216
41593
  };
41217
41594
  Relationships: [];
41218
41595
  };
41596
+ logistics_cart_barcode_archief: {
41597
+ Row: {
41598
+ barcode: string;
41599
+ cart_id: string;
41600
+ created_at: string | null;
41601
+ gearchiveerd_op: string;
41602
+ order_id: string | null;
41603
+ };
41604
+ Insert: {
41605
+ barcode: string;
41606
+ cart_id: string;
41607
+ created_at?: string | null;
41608
+ gearchiveerd_op?: string;
41609
+ order_id?: string | null;
41610
+ };
41611
+ Update: {
41612
+ barcode?: string;
41613
+ cart_id?: string;
41614
+ created_at?: string | null;
41615
+ gearchiveerd_op?: string;
41616
+ order_id?: string | null;
41617
+ };
41618
+ Relationships: [];
41619
+ };
41219
41620
  logistics_control_scan: {
41220
41621
  Row: {
41221
41622
  approved_at: string | null;
@@ -45502,6 +45903,7 @@ export declare const replanBufferLoadCarriers: import("@tanstack/start-client-co
45502
45903
  next_attempt_at: string;
45503
45904
  order_id: string;
45504
45905
  processed_at: string | null;
45906
+ send_error: string | null;
45505
45907
  status: string;
45506
45908
  updated_at: string;
45507
45909
  };
@@ -45515,6 +45917,7 @@ export declare const replanBufferLoadCarriers: import("@tanstack/start-client-co
45515
45917
  next_attempt_at?: string;
45516
45918
  order_id: string;
45517
45919
  processed_at?: string | null;
45920
+ send_error?: string | null;
45518
45921
  status?: string;
45519
45922
  updated_at?: string;
45520
45923
  };
@@ -45528,6 +45931,7 @@ export declare const replanBufferLoadCarriers: import("@tanstack/start-client-co
45528
45931
  next_attempt_at?: string;
45529
45932
  order_id?: string;
45530
45933
  processed_at?: string | null;
45934
+ send_error?: string | null;
45531
45935
  status?: string;
45532
45936
  updated_at?: string;
45533
45937
  };
@@ -48565,6 +48969,9 @@ export declare const replanBufferLoadCarriers: import("@tanstack/start-client-co
48565
48969
  lead_time_days: number | null;
48566
48970
  min_order_quantity: number | null;
48567
48971
  notes: string | null;
48972
+ previous_price_cents: number | null;
48973
+ price_source: string;
48974
+ price_updated_at: string | null;
48568
48975
  product_id: string;
48569
48976
  purchase_price_cents: number | null;
48570
48977
  supplier_article_number: string | null;
@@ -48578,6 +48985,9 @@ export declare const replanBufferLoadCarriers: import("@tanstack/start-client-co
48578
48985
  lead_time_days?: number | null;
48579
48986
  min_order_quantity?: number | null;
48580
48987
  notes?: string | null;
48988
+ previous_price_cents?: number | null;
48989
+ price_source?: string;
48990
+ price_updated_at?: string | null;
48581
48991
  product_id: string;
48582
48992
  purchase_price_cents?: number | null;
48583
48993
  supplier_article_number?: string | null;
@@ -48591,6 +49001,9 @@ export declare const replanBufferLoadCarriers: import("@tanstack/start-client-co
48591
49001
  lead_time_days?: number | null;
48592
49002
  min_order_quantity?: number | null;
48593
49003
  notes?: string | null;
49004
+ previous_price_cents?: number | null;
49005
+ price_source?: string;
49006
+ price_updated_at?: string | null;
48594
49007
  product_id?: string;
48595
49008
  purchase_price_cents?: number | null;
48596
49009
  supplier_article_number?: string | null;
@@ -49121,9 +49534,13 @@ export declare const replanBufferLoadCarriers: import("@tanstack/start-client-co
49121
49534
  purchase_order_items: {
49122
49535
  Row: {
49123
49536
  article_number: string | null;
49537
+ cancel_reason: string | null;
49538
+ cancelled_at: string | null;
49124
49539
  created_at: string;
49125
49540
  delivery_date: string | null;
49126
49541
  id: string;
49542
+ incoming_booked: number;
49543
+ line_status: string;
49127
49544
  name: string;
49128
49545
  note: string | null;
49129
49546
  pot_size: string | null;
@@ -49131,6 +49548,8 @@ export declare const replanBufferLoadCarriers: import("@tanstack/start-client-co
49131
49548
  product_type: string;
49132
49549
  purchase_order_id: string;
49133
49550
  quantity: number;
49551
+ received_at: string | null;
49552
+ received_booked: number;
49134
49553
  supplier_id: string | null;
49135
49554
  supplier_product_id: string | null;
49136
49555
  unit_price_cents: number;
@@ -49138,9 +49557,13 @@ export declare const replanBufferLoadCarriers: import("@tanstack/start-client-co
49138
49557
  };
49139
49558
  Insert: {
49140
49559
  article_number?: string | null;
49560
+ cancel_reason?: string | null;
49561
+ cancelled_at?: string | null;
49141
49562
  created_at?: string;
49142
49563
  delivery_date?: string | null;
49143
49564
  id?: string;
49565
+ incoming_booked?: number;
49566
+ line_status?: string;
49144
49567
  name?: string;
49145
49568
  note?: string | null;
49146
49569
  pot_size?: string | null;
@@ -49148,6 +49571,8 @@ export declare const replanBufferLoadCarriers: import("@tanstack/start-client-co
49148
49571
  product_type?: string;
49149
49572
  purchase_order_id: string;
49150
49573
  quantity?: number;
49574
+ received_at?: string | null;
49575
+ received_booked?: number;
49151
49576
  supplier_id?: string | null;
49152
49577
  supplier_product_id?: string | null;
49153
49578
  unit_price_cents?: number;
@@ -49155,9 +49580,13 @@ export declare const replanBufferLoadCarriers: import("@tanstack/start-client-co
49155
49580
  };
49156
49581
  Update: {
49157
49582
  article_number?: string | null;
49583
+ cancel_reason?: string | null;
49584
+ cancelled_at?: string | null;
49158
49585
  created_at?: string;
49159
49586
  delivery_date?: string | null;
49160
49587
  id?: string;
49588
+ incoming_booked?: number;
49589
+ line_status?: string;
49161
49590
  name?: string;
49162
49591
  note?: string | null;
49163
49592
  pot_size?: string | null;
@@ -49165,6 +49594,8 @@ export declare const replanBufferLoadCarriers: import("@tanstack/start-client-co
49165
49594
  product_type?: string;
49166
49595
  purchase_order_id?: string;
49167
49596
  quantity?: number;
49597
+ received_at?: string | null;
49598
+ received_booked?: number;
49168
49599
  supplier_id?: string | null;
49169
49600
  supplier_product_id?: string | null;
49170
49601
  unit_price_cents?: number;
@@ -49268,6 +49699,153 @@ export declare const replanBufferLoadCarriers: import("@tanstack/start-client-co
49268
49699
  referencedColumns: ["id"];
49269
49700
  }];
49270
49701
  };
49702
+ purchase_request_events: {
49703
+ Row: {
49704
+ created_at: string;
49705
+ details: import("../integrations/supabase/types").Json | null;
49706
+ event_type: string;
49707
+ id: string;
49708
+ request_id: string;
49709
+ };
49710
+ Insert: {
49711
+ created_at?: string;
49712
+ details?: import("../integrations/supabase/types").Json | null;
49713
+ event_type: string;
49714
+ id?: string;
49715
+ request_id: string;
49716
+ };
49717
+ Update: {
49718
+ created_at?: string;
49719
+ details?: import("../integrations/supabase/types").Json | null;
49720
+ event_type?: string;
49721
+ id?: string;
49722
+ request_id?: string;
49723
+ };
49724
+ Relationships: [{
49725
+ foreignKeyName: "purchase_request_events_request_id_fkey";
49726
+ columns: ["request_id"];
49727
+ isOneToOne: false;
49728
+ referencedRelation: "purchase_requests";
49729
+ referencedColumns: ["id"];
49730
+ }];
49731
+ };
49732
+ purchase_request_responses: {
49733
+ Row: {
49734
+ confirmed_date: string | null;
49735
+ confirmed_price_cents: number | null;
49736
+ confirmed_quantity: number;
49737
+ created_at: string;
49738
+ id: string;
49739
+ not_available: boolean;
49740
+ note: string | null;
49741
+ purchase_order_item_id: string;
49742
+ request_id: string;
49743
+ updated_at: string;
49744
+ };
49745
+ Insert: {
49746
+ confirmed_date?: string | null;
49747
+ confirmed_price_cents?: number | null;
49748
+ confirmed_quantity?: number;
49749
+ created_at?: string;
49750
+ id?: string;
49751
+ not_available?: boolean;
49752
+ note?: string | null;
49753
+ purchase_order_item_id: string;
49754
+ request_id: string;
49755
+ updated_at?: string;
49756
+ };
49757
+ Update: {
49758
+ confirmed_date?: string | null;
49759
+ confirmed_price_cents?: number | null;
49760
+ confirmed_quantity?: number;
49761
+ created_at?: string;
49762
+ id?: string;
49763
+ not_available?: boolean;
49764
+ note?: string | null;
49765
+ purchase_order_item_id?: string;
49766
+ request_id?: string;
49767
+ updated_at?: string;
49768
+ };
49769
+ Relationships: [{
49770
+ foreignKeyName: "purchase_request_responses_purchase_order_item_id_fkey";
49771
+ columns: ["purchase_order_item_id"];
49772
+ isOneToOne: false;
49773
+ referencedRelation: "purchase_order_items";
49774
+ referencedColumns: ["id"];
49775
+ }, {
49776
+ foreignKeyName: "purchase_request_responses_request_id_fkey";
49777
+ columns: ["request_id"];
49778
+ isOneToOne: false;
49779
+ referencedRelation: "purchase_requests";
49780
+ referencedColumns: ["id"];
49781
+ }];
49782
+ };
49783
+ purchase_requests: {
49784
+ Row: {
49785
+ created_at: string;
49786
+ expires_at: string;
49787
+ first_viewed_at: string | null;
49788
+ id: string;
49789
+ processed_at: string | null;
49790
+ purchase_order_id: string;
49791
+ responded_at: string | null;
49792
+ sent_at: string;
49793
+ status: string;
49794
+ supplier_id: string | null;
49795
+ supplier_name: string;
49796
+ supplier_note: string | null;
49797
+ to_address: string | null;
49798
+ token_hash: string;
49799
+ updated_at: string;
49800
+ };
49801
+ Insert: {
49802
+ created_at?: string;
49803
+ expires_at?: string;
49804
+ first_viewed_at?: string | null;
49805
+ id?: string;
49806
+ processed_at?: string | null;
49807
+ purchase_order_id: string;
49808
+ responded_at?: string | null;
49809
+ sent_at?: string;
49810
+ status?: string;
49811
+ supplier_id?: string | null;
49812
+ supplier_name?: string;
49813
+ supplier_note?: string | null;
49814
+ to_address?: string | null;
49815
+ token_hash: string;
49816
+ updated_at?: string;
49817
+ };
49818
+ Update: {
49819
+ created_at?: string;
49820
+ expires_at?: string;
49821
+ first_viewed_at?: string | null;
49822
+ id?: string;
49823
+ processed_at?: string | null;
49824
+ purchase_order_id?: string;
49825
+ responded_at?: string | null;
49826
+ sent_at?: string;
49827
+ status?: string;
49828
+ supplier_id?: string | null;
49829
+ supplier_name?: string;
49830
+ supplier_note?: string | null;
49831
+ to_address?: string | null;
49832
+ token_hash?: string;
49833
+ updated_at?: string;
49834
+ };
49835
+ Relationships: [{
49836
+ foreignKeyName: "purchase_requests_purchase_order_id_fkey";
49837
+ columns: ["purchase_order_id"];
49838
+ isOneToOne: false;
49839
+ referencedRelation: "purchase_orders";
49840
+ referencedColumns: ["id"];
49841
+ }, {
49842
+ foreignKeyName: "purchase_requests_supplier_id_fkey";
49843
+ columns: ["supplier_id"];
49844
+ isOneToOne: false;
49845
+ referencedRelation: "suppliers";
49846
+ referencedColumns: ["id"];
49847
+ }];
49848
+ };
49271
49849
  reception_notifications: {
49272
49850
  Row: {
49273
49851
  booking_id: string | null;
@@ -51431,6 +52009,7 @@ export declare const replanBufferLoadCarriers: import("@tanstack/start-client-co
51431
52009
  auto_invoice_enabled: boolean;
51432
52010
  auto_invoice_start_date: string | null;
51433
52011
  auto_invoice_trigger_statuses: string[];
52012
+ auto_send_mode: string | null;
51434
52013
  created_at: string;
51435
52014
  debtor_gl_account: string;
51436
52015
  default_article_code: string | null;
@@ -51459,6 +52038,7 @@ export declare const replanBufferLoadCarriers: import("@tanstack/start-client-co
51459
52038
  auto_invoice_enabled?: boolean;
51460
52039
  auto_invoice_start_date?: string | null;
51461
52040
  auto_invoice_trigger_statuses?: string[];
52041
+ auto_send_mode?: string | null;
51462
52042
  created_at?: string;
51463
52043
  debtor_gl_account?: string;
51464
52044
  default_article_code?: string | null;
@@ -51487,6 +52067,7 @@ export declare const replanBufferLoadCarriers: import("@tanstack/start-client-co
51487
52067
  auto_invoice_enabled?: boolean;
51488
52068
  auto_invoice_start_date?: string | null;
51489
52069
  auto_invoice_trigger_statuses?: string[];
52070
+ auto_send_mode?: string | null;
51490
52071
  created_at?: string;
51491
52072
  debtor_gl_account?: string;
51492
52073
  default_article_code?: string | null;
@@ -56720,13 +57301,66 @@ export declare const replanBufferLoadCarriers: import("@tanstack/start-client-co
56720
57301
  };
56721
57302
  Returns: import("../integrations/supabase/types").Json;
56722
57303
  };
57304
+ inkoop_cancel_line: {
57305
+ Args: {
57306
+ _item_id: string;
57307
+ _reason: string;
57308
+ };
57309
+ Returns: string;
57310
+ };
57311
+ inkoop_get_supplier_request: {
57312
+ Args: {
57313
+ _token: string;
57314
+ };
57315
+ Returns: import("../integrations/supabase/types").Json;
57316
+ };
57317
+ inkoop_hash_token: {
57318
+ Args: {
57319
+ _token: string;
57320
+ };
57321
+ Returns: string;
57322
+ };
57323
+ inkoop_html_escape: {
57324
+ Args: {
57325
+ _t: string;
57326
+ };
57327
+ Returns: string;
57328
+ };
57329
+ inkoop_list_artikelen: {
57330
+ Args: never;
57331
+ Returns: {
57332
+ article_number: string;
57333
+ barcode: string;
57334
+ id: string;
57335
+ incoming_quantity: number;
57336
+ is_layer: boolean;
57337
+ location: string;
57338
+ min_quantity: number;
57339
+ preferred_supplier_name: string;
57340
+ product: string;
57341
+ product_type: string;
57342
+ purchase_price: number;
57343
+ quantity: number;
57344
+ sale_price: number;
57345
+ supplier_count: number;
57346
+ unit: string;
57347
+ }[];
57348
+ };
56723
57349
  inkoop_next_order_number: {
56724
57350
  Args: never;
56725
57351
  Returns: string;
56726
57352
  };
57353
+ inkoop_process_request: {
57354
+ Args: {
57355
+ _request_id: string;
57356
+ };
57357
+ Returns: undefined;
57358
+ };
56727
57359
  inkoop_send_order: {
56728
57360
  Args: {
57361
+ _base_url?: string;
56729
57362
  _order_id: string;
57363
+ _resend?: boolean;
56730
57364
  };
56731
57365
  Returns: {
56732
57366
  outbox_id: string;
@@ -56741,6 +57375,26 @@ export declare const replanBufferLoadCarriers: import("@tanstack/start-client-co
56741
57375
  };
56742
57376
  Returns: undefined;
56743
57377
  };
57378
+ inkoop_stock_key: {
57379
+ Args: {
57380
+ p_product_id: string;
57381
+ };
57382
+ Returns: string;
57383
+ };
57384
+ inkoop_submit_supplier_response: {
57385
+ Args: {
57386
+ _lines: import("../integrations/supabase/types").Json;
57387
+ _note?: string;
57388
+ _token: string;
57389
+ };
57390
+ Returns: import("../integrations/supabase/types").Json;
57391
+ };
57392
+ inkoop_sync_item_stock: {
57393
+ Args: {
57394
+ p_item_id: string;
57395
+ };
57396
+ Returns: undefined;
57397
+ };
56744
57398
  instructie_get: {
56745
57399
  Args: {
56746
57400
  _sleutel: string;
@@ -57178,6 +57832,12 @@ export declare const replanBufferLoadCarriers: import("@tanstack/start-client-co
57178
57832
  };
57179
57833
  Returns: number;
57180
57834
  };
57835
+ logistics_cart_barcode_opschonen: {
57836
+ Args: {
57837
+ p_portie?: number;
57838
+ };
57839
+ Returns: import("../integrations/supabase/types").Json;
57840
+ };
57181
57841
  logistics_cart_barcode_value: {
57182
57842
  Args: {
57183
57843
  _cart_id: string;
@@ -58787,6 +59447,13 @@ export declare const replanBufferLoadCarriers: import("@tanstack/start-client-co
58787
59447
  };
58788
59448
  Returns: string;
58789
59449
  };
59450
+ logistics_shipping_note_status: {
59451
+ Args: {
59452
+ p_cart_id?: string;
59453
+ p_slip_job_id?: string;
59454
+ };
59455
+ Returns: import("../integrations/supabase/types").Json;
59456
+ };
58790
59457
  logistics_shipping_notes_wake_all: {
58791
59458
  Args: never;
58792
59459
  Returns: import("../integrations/supabase/types").Json;
@@ -60466,6 +61133,13 @@ export declare const replanBufferLoadCarriers: import("@tanstack/start-client-co
60466
61133
  };
60467
61134
  Returns: import("../integrations/supabase/types").Json;
60468
61135
  };
61136
+ scan_controleer_pincode: {
61137
+ Args: {
61138
+ p_pin: string;
61139
+ p_scanner_id: string;
61140
+ };
61141
+ Returns: boolean;
61142
+ };
60469
61143
  scan_dashboard_stats: {
60470
61144
  Args: {
60471
61145
  p_dagen?: number;
@@ -60485,6 +61159,12 @@ export declare const replanBufferLoadCarriers: import("@tanstack/start-client-co
60485
61159
  };
60486
61160
  Returns: import("../integrations/supabase/types").Json;
60487
61161
  };
61162
+ scan_heeft_pincode: {
61163
+ Args: {
61164
+ p_scanner_id: string;
61165
+ };
61166
+ Returns: boolean;
61167
+ };
60488
61168
  scan_kar_compleet: {
60489
61169
  Args: {
60490
61170
  p_allow_reprint?: boolean;
@@ -60502,6 +61182,7 @@ export declare const replanBufferLoadCarriers: import("@tanstack/start-client-co
60502
61182
  Args: {
60503
61183
  p_code: string;
60504
61184
  p_latency_ms?: number;
61185
+ p_medewerker?: string;
60505
61186
  p_message?: string;
60506
61187
  p_result: string;
60507
61188
  p_scanner_key?: string;
@@ -60574,6 +61255,22 @@ export declare const replanBufferLoadCarriers: import("@tanstack/start-client-co
60574
61255
  };
60575
61256
  Returns: undefined;
60576
61257
  };
61258
+ scan_scanner_info: {
61259
+ Args: {
61260
+ p_slug: string;
61261
+ };
61262
+ Returns: {
61263
+ actief: boolean;
61264
+ heeft_pincode: boolean;
61265
+ id: string;
61266
+ naam: string;
61267
+ omschrijving: string;
61268
+ printer_id: string;
61269
+ type: string;
61270
+ vereist_medewerker: boolean;
61271
+ werkplek: string;
61272
+ }[];
61273
+ };
60577
61274
  scan_sessie_annuleren: {
60578
61275
  Args: {
60579
61276
  p_sessie_id: string;
@@ -61536,6 +62233,21 @@ export declare const replanBufferLoadCarriers: import("@tanstack/start-client-co
61536
62233
  };
61537
62234
  Returns: import("../integrations/supabase/types").Json;
61538
62235
  };
62236
+ wo_list_colleague_planning: {
62237
+ Args: {
62238
+ _from: string;
62239
+ _monteur_id: string;
62240
+ _to: string;
62241
+ };
62242
+ Returns: {
62243
+ end_at: string;
62244
+ id: string;
62245
+ role: string;
62246
+ start_at: string;
62247
+ status: string;
62248
+ werkbon_id: string;
62249
+ }[];
62250
+ };
61539
62251
  wo_list_offerte_requests: {
61540
62252
  Args: {
61541
62253
  _status?: string;
@@ -62353,6 +63065,27 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
62353
63065
  };
62354
63066
  Relationships: [];
62355
63067
  };
63068
+ artikelen_instellingen: {
63069
+ Row: {
63070
+ created_at: string;
63071
+ id: number;
63072
+ marge_procent: number;
63073
+ updated_at: string;
63074
+ };
63075
+ Insert: {
63076
+ created_at?: string;
63077
+ id?: number;
63078
+ marge_procent?: number;
63079
+ updated_at?: string;
63080
+ };
63081
+ Update: {
63082
+ created_at?: string;
63083
+ id?: number;
63084
+ marge_procent?: number;
63085
+ updated_at?: string;
63086
+ };
63087
+ Relationships: [];
63088
+ };
62356
63089
  artikelen_veldconfig: {
62357
63090
  Row: {
62358
63091
  bron_pad: string;
@@ -72028,6 +72761,30 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
72028
72761
  };
72029
72762
  Relationships: [];
72030
72763
  };
72764
+ logistics_cart_barcode_archief: {
72765
+ Row: {
72766
+ barcode: string;
72767
+ cart_id: string;
72768
+ created_at: string | null;
72769
+ gearchiveerd_op: string;
72770
+ order_id: string | null;
72771
+ };
72772
+ Insert: {
72773
+ barcode: string;
72774
+ cart_id: string;
72775
+ created_at?: string | null;
72776
+ gearchiveerd_op?: string;
72777
+ order_id?: string | null;
72778
+ };
72779
+ Update: {
72780
+ barcode?: string;
72781
+ cart_id?: string;
72782
+ created_at?: string | null;
72783
+ gearchiveerd_op?: string;
72784
+ order_id?: string | null;
72785
+ };
72786
+ Relationships: [];
72787
+ };
72031
72788
  logistics_control_scan: {
72032
72789
  Row: {
72033
72790
  approved_at: string | null;
@@ -76314,6 +77071,7 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
76314
77071
  next_attempt_at: string;
76315
77072
  order_id: string;
76316
77073
  processed_at: string | null;
77074
+ send_error: string | null;
76317
77075
  status: string;
76318
77076
  updated_at: string;
76319
77077
  };
@@ -76327,6 +77085,7 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
76327
77085
  next_attempt_at?: string;
76328
77086
  order_id: string;
76329
77087
  processed_at?: string | null;
77088
+ send_error?: string | null;
76330
77089
  status?: string;
76331
77090
  updated_at?: string;
76332
77091
  };
@@ -76340,6 +77099,7 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
76340
77099
  next_attempt_at?: string;
76341
77100
  order_id?: string;
76342
77101
  processed_at?: string | null;
77102
+ send_error?: string | null;
76343
77103
  status?: string;
76344
77104
  updated_at?: string;
76345
77105
  };
@@ -79377,6 +80137,9 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
79377
80137
  lead_time_days: number | null;
79378
80138
  min_order_quantity: number | null;
79379
80139
  notes: string | null;
80140
+ previous_price_cents: number | null;
80141
+ price_source: string;
80142
+ price_updated_at: string | null;
79380
80143
  product_id: string;
79381
80144
  purchase_price_cents: number | null;
79382
80145
  supplier_article_number: string | null;
@@ -79390,6 +80153,9 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
79390
80153
  lead_time_days?: number | null;
79391
80154
  min_order_quantity?: number | null;
79392
80155
  notes?: string | null;
80156
+ previous_price_cents?: number | null;
80157
+ price_source?: string;
80158
+ price_updated_at?: string | null;
79393
80159
  product_id: string;
79394
80160
  purchase_price_cents?: number | null;
79395
80161
  supplier_article_number?: string | null;
@@ -79403,6 +80169,9 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
79403
80169
  lead_time_days?: number | null;
79404
80170
  min_order_quantity?: number | null;
79405
80171
  notes?: string | null;
80172
+ previous_price_cents?: number | null;
80173
+ price_source?: string;
80174
+ price_updated_at?: string | null;
79406
80175
  product_id?: string;
79407
80176
  purchase_price_cents?: number | null;
79408
80177
  supplier_article_number?: string | null;
@@ -79933,9 +80702,13 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
79933
80702
  purchase_order_items: {
79934
80703
  Row: {
79935
80704
  article_number: string | null;
80705
+ cancel_reason: string | null;
80706
+ cancelled_at: string | null;
79936
80707
  created_at: string;
79937
80708
  delivery_date: string | null;
79938
80709
  id: string;
80710
+ incoming_booked: number;
80711
+ line_status: string;
79939
80712
  name: string;
79940
80713
  note: string | null;
79941
80714
  pot_size: string | null;
@@ -79943,6 +80716,8 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
79943
80716
  product_type: string;
79944
80717
  purchase_order_id: string;
79945
80718
  quantity: number;
80719
+ received_at: string | null;
80720
+ received_booked: number;
79946
80721
  supplier_id: string | null;
79947
80722
  supplier_product_id: string | null;
79948
80723
  unit_price_cents: number;
@@ -79950,9 +80725,13 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
79950
80725
  };
79951
80726
  Insert: {
79952
80727
  article_number?: string | null;
80728
+ cancel_reason?: string | null;
80729
+ cancelled_at?: string | null;
79953
80730
  created_at?: string;
79954
80731
  delivery_date?: string | null;
79955
80732
  id?: string;
80733
+ incoming_booked?: number;
80734
+ line_status?: string;
79956
80735
  name?: string;
79957
80736
  note?: string | null;
79958
80737
  pot_size?: string | null;
@@ -79960,6 +80739,8 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
79960
80739
  product_type?: string;
79961
80740
  purchase_order_id: string;
79962
80741
  quantity?: number;
80742
+ received_at?: string | null;
80743
+ received_booked?: number;
79963
80744
  supplier_id?: string | null;
79964
80745
  supplier_product_id?: string | null;
79965
80746
  unit_price_cents?: number;
@@ -79967,9 +80748,13 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
79967
80748
  };
79968
80749
  Update: {
79969
80750
  article_number?: string | null;
80751
+ cancel_reason?: string | null;
80752
+ cancelled_at?: string | null;
79970
80753
  created_at?: string;
79971
80754
  delivery_date?: string | null;
79972
80755
  id?: string;
80756
+ incoming_booked?: number;
80757
+ line_status?: string;
79973
80758
  name?: string;
79974
80759
  note?: string | null;
79975
80760
  pot_size?: string | null;
@@ -79977,6 +80762,8 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
79977
80762
  product_type?: string;
79978
80763
  purchase_order_id?: string;
79979
80764
  quantity?: number;
80765
+ received_at?: string | null;
80766
+ received_booked?: number;
79980
80767
  supplier_id?: string | null;
79981
80768
  supplier_product_id?: string | null;
79982
80769
  unit_price_cents?: number;
@@ -80080,6 +80867,153 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
80080
80867
  referencedColumns: ["id"];
80081
80868
  }];
80082
80869
  };
80870
+ purchase_request_events: {
80871
+ Row: {
80872
+ created_at: string;
80873
+ details: import("../integrations/supabase/types").Json | null;
80874
+ event_type: string;
80875
+ id: string;
80876
+ request_id: string;
80877
+ };
80878
+ Insert: {
80879
+ created_at?: string;
80880
+ details?: import("../integrations/supabase/types").Json | null;
80881
+ event_type: string;
80882
+ id?: string;
80883
+ request_id: string;
80884
+ };
80885
+ Update: {
80886
+ created_at?: string;
80887
+ details?: import("../integrations/supabase/types").Json | null;
80888
+ event_type?: string;
80889
+ id?: string;
80890
+ request_id?: string;
80891
+ };
80892
+ Relationships: [{
80893
+ foreignKeyName: "purchase_request_events_request_id_fkey";
80894
+ columns: ["request_id"];
80895
+ isOneToOne: false;
80896
+ referencedRelation: "purchase_requests";
80897
+ referencedColumns: ["id"];
80898
+ }];
80899
+ };
80900
+ purchase_request_responses: {
80901
+ Row: {
80902
+ confirmed_date: string | null;
80903
+ confirmed_price_cents: number | null;
80904
+ confirmed_quantity: number;
80905
+ created_at: string;
80906
+ id: string;
80907
+ not_available: boolean;
80908
+ note: string | null;
80909
+ purchase_order_item_id: string;
80910
+ request_id: string;
80911
+ updated_at: string;
80912
+ };
80913
+ Insert: {
80914
+ confirmed_date?: string | null;
80915
+ confirmed_price_cents?: number | null;
80916
+ confirmed_quantity?: number;
80917
+ created_at?: string;
80918
+ id?: string;
80919
+ not_available?: boolean;
80920
+ note?: string | null;
80921
+ purchase_order_item_id: string;
80922
+ request_id: string;
80923
+ updated_at?: string;
80924
+ };
80925
+ Update: {
80926
+ confirmed_date?: string | null;
80927
+ confirmed_price_cents?: number | null;
80928
+ confirmed_quantity?: number;
80929
+ created_at?: string;
80930
+ id?: string;
80931
+ not_available?: boolean;
80932
+ note?: string | null;
80933
+ purchase_order_item_id?: string;
80934
+ request_id?: string;
80935
+ updated_at?: string;
80936
+ };
80937
+ Relationships: [{
80938
+ foreignKeyName: "purchase_request_responses_purchase_order_item_id_fkey";
80939
+ columns: ["purchase_order_item_id"];
80940
+ isOneToOne: false;
80941
+ referencedRelation: "purchase_order_items";
80942
+ referencedColumns: ["id"];
80943
+ }, {
80944
+ foreignKeyName: "purchase_request_responses_request_id_fkey";
80945
+ columns: ["request_id"];
80946
+ isOneToOne: false;
80947
+ referencedRelation: "purchase_requests";
80948
+ referencedColumns: ["id"];
80949
+ }];
80950
+ };
80951
+ purchase_requests: {
80952
+ Row: {
80953
+ created_at: string;
80954
+ expires_at: string;
80955
+ first_viewed_at: string | null;
80956
+ id: string;
80957
+ processed_at: string | null;
80958
+ purchase_order_id: string;
80959
+ responded_at: string | null;
80960
+ sent_at: string;
80961
+ status: string;
80962
+ supplier_id: string | null;
80963
+ supplier_name: string;
80964
+ supplier_note: string | null;
80965
+ to_address: string | null;
80966
+ token_hash: string;
80967
+ updated_at: string;
80968
+ };
80969
+ Insert: {
80970
+ created_at?: string;
80971
+ expires_at?: string;
80972
+ first_viewed_at?: string | null;
80973
+ id?: string;
80974
+ processed_at?: string | null;
80975
+ purchase_order_id: string;
80976
+ responded_at?: string | null;
80977
+ sent_at?: string;
80978
+ status?: string;
80979
+ supplier_id?: string | null;
80980
+ supplier_name?: string;
80981
+ supplier_note?: string | null;
80982
+ to_address?: string | null;
80983
+ token_hash: string;
80984
+ updated_at?: string;
80985
+ };
80986
+ Update: {
80987
+ created_at?: string;
80988
+ expires_at?: string;
80989
+ first_viewed_at?: string | null;
80990
+ id?: string;
80991
+ processed_at?: string | null;
80992
+ purchase_order_id?: string;
80993
+ responded_at?: string | null;
80994
+ sent_at?: string;
80995
+ status?: string;
80996
+ supplier_id?: string | null;
80997
+ supplier_name?: string;
80998
+ supplier_note?: string | null;
80999
+ to_address?: string | null;
81000
+ token_hash?: string;
81001
+ updated_at?: string;
81002
+ };
81003
+ Relationships: [{
81004
+ foreignKeyName: "purchase_requests_purchase_order_id_fkey";
81005
+ columns: ["purchase_order_id"];
81006
+ isOneToOne: false;
81007
+ referencedRelation: "purchase_orders";
81008
+ referencedColumns: ["id"];
81009
+ }, {
81010
+ foreignKeyName: "purchase_requests_supplier_id_fkey";
81011
+ columns: ["supplier_id"];
81012
+ isOneToOne: false;
81013
+ referencedRelation: "suppliers";
81014
+ referencedColumns: ["id"];
81015
+ }];
81016
+ };
80083
81017
  reception_notifications: {
80084
81018
  Row: {
80085
81019
  booking_id: string | null;
@@ -82243,6 +83177,7 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
82243
83177
  auto_invoice_enabled: boolean;
82244
83178
  auto_invoice_start_date: string | null;
82245
83179
  auto_invoice_trigger_statuses: string[];
83180
+ auto_send_mode: string | null;
82246
83181
  created_at: string;
82247
83182
  debtor_gl_account: string;
82248
83183
  default_article_code: string | null;
@@ -82271,6 +83206,7 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
82271
83206
  auto_invoice_enabled?: boolean;
82272
83207
  auto_invoice_start_date?: string | null;
82273
83208
  auto_invoice_trigger_statuses?: string[];
83209
+ auto_send_mode?: string | null;
82274
83210
  created_at?: string;
82275
83211
  debtor_gl_account?: string;
82276
83212
  default_article_code?: string | null;
@@ -82299,6 +83235,7 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
82299
83235
  auto_invoice_enabled?: boolean;
82300
83236
  auto_invoice_start_date?: string | null;
82301
83237
  auto_invoice_trigger_statuses?: string[];
83238
+ auto_send_mode?: string | null;
82302
83239
  created_at?: string;
82303
83240
  debtor_gl_account?: string;
82304
83241
  default_article_code?: string | null;
@@ -87532,13 +88469,66 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
87532
88469
  };
87533
88470
  Returns: import("../integrations/supabase/types").Json;
87534
88471
  };
88472
+ inkoop_cancel_line: {
88473
+ Args: {
88474
+ _item_id: string;
88475
+ _reason: string;
88476
+ };
88477
+ Returns: string;
88478
+ };
88479
+ inkoop_get_supplier_request: {
88480
+ Args: {
88481
+ _token: string;
88482
+ };
88483
+ Returns: import("../integrations/supabase/types").Json;
88484
+ };
88485
+ inkoop_hash_token: {
88486
+ Args: {
88487
+ _token: string;
88488
+ };
88489
+ Returns: string;
88490
+ };
88491
+ inkoop_html_escape: {
88492
+ Args: {
88493
+ _t: string;
88494
+ };
88495
+ Returns: string;
88496
+ };
88497
+ inkoop_list_artikelen: {
88498
+ Args: never;
88499
+ Returns: {
88500
+ article_number: string;
88501
+ barcode: string;
88502
+ id: string;
88503
+ incoming_quantity: number;
88504
+ is_layer: boolean;
88505
+ location: string;
88506
+ min_quantity: number;
88507
+ preferred_supplier_name: string;
88508
+ product: string;
88509
+ product_type: string;
88510
+ purchase_price: number;
88511
+ quantity: number;
88512
+ sale_price: number;
88513
+ supplier_count: number;
88514
+ unit: string;
88515
+ }[];
88516
+ };
87535
88517
  inkoop_next_order_number: {
87536
88518
  Args: never;
87537
88519
  Returns: string;
87538
88520
  };
88521
+ inkoop_process_request: {
88522
+ Args: {
88523
+ _request_id: string;
88524
+ };
88525
+ Returns: undefined;
88526
+ };
87539
88527
  inkoop_send_order: {
87540
88528
  Args: {
88529
+ _base_url?: string;
87541
88530
  _order_id: string;
88531
+ _resend?: boolean;
87542
88532
  };
87543
88533
  Returns: {
87544
88534
  outbox_id: string;
@@ -87553,6 +88543,26 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
87553
88543
  };
87554
88544
  Returns: undefined;
87555
88545
  };
88546
+ inkoop_stock_key: {
88547
+ Args: {
88548
+ p_product_id: string;
88549
+ };
88550
+ Returns: string;
88551
+ };
88552
+ inkoop_submit_supplier_response: {
88553
+ Args: {
88554
+ _lines: import("../integrations/supabase/types").Json;
88555
+ _note?: string;
88556
+ _token: string;
88557
+ };
88558
+ Returns: import("../integrations/supabase/types").Json;
88559
+ };
88560
+ inkoop_sync_item_stock: {
88561
+ Args: {
88562
+ p_item_id: string;
88563
+ };
88564
+ Returns: undefined;
88565
+ };
87556
88566
  instructie_get: {
87557
88567
  Args: {
87558
88568
  _sleutel: string;
@@ -87990,6 +89000,12 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
87990
89000
  };
87991
89001
  Returns: number;
87992
89002
  };
89003
+ logistics_cart_barcode_opschonen: {
89004
+ Args: {
89005
+ p_portie?: number;
89006
+ };
89007
+ Returns: import("../integrations/supabase/types").Json;
89008
+ };
87993
89009
  logistics_cart_barcode_value: {
87994
89010
  Args: {
87995
89011
  _cart_id: string;
@@ -89599,6 +90615,13 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
89599
90615
  };
89600
90616
  Returns: string;
89601
90617
  };
90618
+ logistics_shipping_note_status: {
90619
+ Args: {
90620
+ p_cart_id?: string;
90621
+ p_slip_job_id?: string;
90622
+ };
90623
+ Returns: import("../integrations/supabase/types").Json;
90624
+ };
89602
90625
  logistics_shipping_notes_wake_all: {
89603
90626
  Args: never;
89604
90627
  Returns: import("../integrations/supabase/types").Json;
@@ -91278,6 +92301,13 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
91278
92301
  };
91279
92302
  Returns: import("../integrations/supabase/types").Json;
91280
92303
  };
92304
+ scan_controleer_pincode: {
92305
+ Args: {
92306
+ p_pin: string;
92307
+ p_scanner_id: string;
92308
+ };
92309
+ Returns: boolean;
92310
+ };
91281
92311
  scan_dashboard_stats: {
91282
92312
  Args: {
91283
92313
  p_dagen?: number;
@@ -91297,6 +92327,12 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
91297
92327
  };
91298
92328
  Returns: import("../integrations/supabase/types").Json;
91299
92329
  };
92330
+ scan_heeft_pincode: {
92331
+ Args: {
92332
+ p_scanner_id: string;
92333
+ };
92334
+ Returns: boolean;
92335
+ };
91300
92336
  scan_kar_compleet: {
91301
92337
  Args: {
91302
92338
  p_allow_reprint?: boolean;
@@ -91314,6 +92350,7 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
91314
92350
  Args: {
91315
92351
  p_code: string;
91316
92352
  p_latency_ms?: number;
92353
+ p_medewerker?: string;
91317
92354
  p_message?: string;
91318
92355
  p_result: string;
91319
92356
  p_scanner_key?: string;
@@ -91386,6 +92423,22 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
91386
92423
  };
91387
92424
  Returns: undefined;
91388
92425
  };
92426
+ scan_scanner_info: {
92427
+ Args: {
92428
+ p_slug: string;
92429
+ };
92430
+ Returns: {
92431
+ actief: boolean;
92432
+ heeft_pincode: boolean;
92433
+ id: string;
92434
+ naam: string;
92435
+ omschrijving: string;
92436
+ printer_id: string;
92437
+ type: string;
92438
+ vereist_medewerker: boolean;
92439
+ werkplek: string;
92440
+ }[];
92441
+ };
91389
92442
  scan_sessie_annuleren: {
91390
92443
  Args: {
91391
92444
  p_sessie_id: string;
@@ -92348,6 +93401,21 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
92348
93401
  };
92349
93402
  Returns: import("../integrations/supabase/types").Json;
92350
93403
  };
93404
+ wo_list_colleague_planning: {
93405
+ Args: {
93406
+ _from: string;
93407
+ _monteur_id: string;
93408
+ _to: string;
93409
+ };
93410
+ Returns: {
93411
+ end_at: string;
93412
+ id: string;
93413
+ role: string;
93414
+ start_at: string;
93415
+ status: string;
93416
+ werkbon_id: string;
93417
+ }[];
93418
+ };
92351
93419
  wo_list_offerte_requests: {
92352
93420
  Args: {
92353
93421
  _status?: string;
@@ -93165,6 +94233,27 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
93165
94233
  };
93166
94234
  Relationships: [];
93167
94235
  };
94236
+ artikelen_instellingen: {
94237
+ Row: {
94238
+ created_at: string;
94239
+ id: number;
94240
+ marge_procent: number;
94241
+ updated_at: string;
94242
+ };
94243
+ Insert: {
94244
+ created_at?: string;
94245
+ id?: number;
94246
+ marge_procent?: number;
94247
+ updated_at?: string;
94248
+ };
94249
+ Update: {
94250
+ created_at?: string;
94251
+ id?: number;
94252
+ marge_procent?: number;
94253
+ updated_at?: string;
94254
+ };
94255
+ Relationships: [];
94256
+ };
93168
94257
  artikelen_veldconfig: {
93169
94258
  Row: {
93170
94259
  bron_pad: string;
@@ -102840,6 +103929,30 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
102840
103929
  };
102841
103930
  Relationships: [];
102842
103931
  };
103932
+ logistics_cart_barcode_archief: {
103933
+ Row: {
103934
+ barcode: string;
103935
+ cart_id: string;
103936
+ created_at: string | null;
103937
+ gearchiveerd_op: string;
103938
+ order_id: string | null;
103939
+ };
103940
+ Insert: {
103941
+ barcode: string;
103942
+ cart_id: string;
103943
+ created_at?: string | null;
103944
+ gearchiveerd_op?: string;
103945
+ order_id?: string | null;
103946
+ };
103947
+ Update: {
103948
+ barcode?: string;
103949
+ cart_id?: string;
103950
+ created_at?: string | null;
103951
+ gearchiveerd_op?: string;
103952
+ order_id?: string | null;
103953
+ };
103954
+ Relationships: [];
103955
+ };
102843
103956
  logistics_control_scan: {
102844
103957
  Row: {
102845
103958
  approved_at: string | null;
@@ -107126,6 +108239,7 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
107126
108239
  next_attempt_at: string;
107127
108240
  order_id: string;
107128
108241
  processed_at: string | null;
108242
+ send_error: string | null;
107129
108243
  status: string;
107130
108244
  updated_at: string;
107131
108245
  };
@@ -107139,6 +108253,7 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
107139
108253
  next_attempt_at?: string;
107140
108254
  order_id: string;
107141
108255
  processed_at?: string | null;
108256
+ send_error?: string | null;
107142
108257
  status?: string;
107143
108258
  updated_at?: string;
107144
108259
  };
@@ -107152,6 +108267,7 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
107152
108267
  next_attempt_at?: string;
107153
108268
  order_id?: string;
107154
108269
  processed_at?: string | null;
108270
+ send_error?: string | null;
107155
108271
  status?: string;
107156
108272
  updated_at?: string;
107157
108273
  };
@@ -110189,6 +111305,9 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
110189
111305
  lead_time_days: number | null;
110190
111306
  min_order_quantity: number | null;
110191
111307
  notes: string | null;
111308
+ previous_price_cents: number | null;
111309
+ price_source: string;
111310
+ price_updated_at: string | null;
110192
111311
  product_id: string;
110193
111312
  purchase_price_cents: number | null;
110194
111313
  supplier_article_number: string | null;
@@ -110202,6 +111321,9 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
110202
111321
  lead_time_days?: number | null;
110203
111322
  min_order_quantity?: number | null;
110204
111323
  notes?: string | null;
111324
+ previous_price_cents?: number | null;
111325
+ price_source?: string;
111326
+ price_updated_at?: string | null;
110205
111327
  product_id: string;
110206
111328
  purchase_price_cents?: number | null;
110207
111329
  supplier_article_number?: string | null;
@@ -110215,6 +111337,9 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
110215
111337
  lead_time_days?: number | null;
110216
111338
  min_order_quantity?: number | null;
110217
111339
  notes?: string | null;
111340
+ previous_price_cents?: number | null;
111341
+ price_source?: string;
111342
+ price_updated_at?: string | null;
110218
111343
  product_id?: string;
110219
111344
  purchase_price_cents?: number | null;
110220
111345
  supplier_article_number?: string | null;
@@ -110745,9 +111870,13 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
110745
111870
  purchase_order_items: {
110746
111871
  Row: {
110747
111872
  article_number: string | null;
111873
+ cancel_reason: string | null;
111874
+ cancelled_at: string | null;
110748
111875
  created_at: string;
110749
111876
  delivery_date: string | null;
110750
111877
  id: string;
111878
+ incoming_booked: number;
111879
+ line_status: string;
110751
111880
  name: string;
110752
111881
  note: string | null;
110753
111882
  pot_size: string | null;
@@ -110755,6 +111884,8 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
110755
111884
  product_type: string;
110756
111885
  purchase_order_id: string;
110757
111886
  quantity: number;
111887
+ received_at: string | null;
111888
+ received_booked: number;
110758
111889
  supplier_id: string | null;
110759
111890
  supplier_product_id: string | null;
110760
111891
  unit_price_cents: number;
@@ -110762,9 +111893,13 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
110762
111893
  };
110763
111894
  Insert: {
110764
111895
  article_number?: string | null;
111896
+ cancel_reason?: string | null;
111897
+ cancelled_at?: string | null;
110765
111898
  created_at?: string;
110766
111899
  delivery_date?: string | null;
110767
111900
  id?: string;
111901
+ incoming_booked?: number;
111902
+ line_status?: string;
110768
111903
  name?: string;
110769
111904
  note?: string | null;
110770
111905
  pot_size?: string | null;
@@ -110772,6 +111907,8 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
110772
111907
  product_type?: string;
110773
111908
  purchase_order_id: string;
110774
111909
  quantity?: number;
111910
+ received_at?: string | null;
111911
+ received_booked?: number;
110775
111912
  supplier_id?: string | null;
110776
111913
  supplier_product_id?: string | null;
110777
111914
  unit_price_cents?: number;
@@ -110779,9 +111916,13 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
110779
111916
  };
110780
111917
  Update: {
110781
111918
  article_number?: string | null;
111919
+ cancel_reason?: string | null;
111920
+ cancelled_at?: string | null;
110782
111921
  created_at?: string;
110783
111922
  delivery_date?: string | null;
110784
111923
  id?: string;
111924
+ incoming_booked?: number;
111925
+ line_status?: string;
110785
111926
  name?: string;
110786
111927
  note?: string | null;
110787
111928
  pot_size?: string | null;
@@ -110789,6 +111930,8 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
110789
111930
  product_type?: string;
110790
111931
  purchase_order_id?: string;
110791
111932
  quantity?: number;
111933
+ received_at?: string | null;
111934
+ received_booked?: number;
110792
111935
  supplier_id?: string | null;
110793
111936
  supplier_product_id?: string | null;
110794
111937
  unit_price_cents?: number;
@@ -110892,6 +112035,153 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
110892
112035
  referencedColumns: ["id"];
110893
112036
  }];
110894
112037
  };
112038
+ purchase_request_events: {
112039
+ Row: {
112040
+ created_at: string;
112041
+ details: import("../integrations/supabase/types").Json | null;
112042
+ event_type: string;
112043
+ id: string;
112044
+ request_id: string;
112045
+ };
112046
+ Insert: {
112047
+ created_at?: string;
112048
+ details?: import("../integrations/supabase/types").Json | null;
112049
+ event_type: string;
112050
+ id?: string;
112051
+ request_id: string;
112052
+ };
112053
+ Update: {
112054
+ created_at?: string;
112055
+ details?: import("../integrations/supabase/types").Json | null;
112056
+ event_type?: string;
112057
+ id?: string;
112058
+ request_id?: string;
112059
+ };
112060
+ Relationships: [{
112061
+ foreignKeyName: "purchase_request_events_request_id_fkey";
112062
+ columns: ["request_id"];
112063
+ isOneToOne: false;
112064
+ referencedRelation: "purchase_requests";
112065
+ referencedColumns: ["id"];
112066
+ }];
112067
+ };
112068
+ purchase_request_responses: {
112069
+ Row: {
112070
+ confirmed_date: string | null;
112071
+ confirmed_price_cents: number | null;
112072
+ confirmed_quantity: number;
112073
+ created_at: string;
112074
+ id: string;
112075
+ not_available: boolean;
112076
+ note: string | null;
112077
+ purchase_order_item_id: string;
112078
+ request_id: string;
112079
+ updated_at: string;
112080
+ };
112081
+ Insert: {
112082
+ confirmed_date?: string | null;
112083
+ confirmed_price_cents?: number | null;
112084
+ confirmed_quantity?: number;
112085
+ created_at?: string;
112086
+ id?: string;
112087
+ not_available?: boolean;
112088
+ note?: string | null;
112089
+ purchase_order_item_id: string;
112090
+ request_id: string;
112091
+ updated_at?: string;
112092
+ };
112093
+ Update: {
112094
+ confirmed_date?: string | null;
112095
+ confirmed_price_cents?: number | null;
112096
+ confirmed_quantity?: number;
112097
+ created_at?: string;
112098
+ id?: string;
112099
+ not_available?: boolean;
112100
+ note?: string | null;
112101
+ purchase_order_item_id?: string;
112102
+ request_id?: string;
112103
+ updated_at?: string;
112104
+ };
112105
+ Relationships: [{
112106
+ foreignKeyName: "purchase_request_responses_purchase_order_item_id_fkey";
112107
+ columns: ["purchase_order_item_id"];
112108
+ isOneToOne: false;
112109
+ referencedRelation: "purchase_order_items";
112110
+ referencedColumns: ["id"];
112111
+ }, {
112112
+ foreignKeyName: "purchase_request_responses_request_id_fkey";
112113
+ columns: ["request_id"];
112114
+ isOneToOne: false;
112115
+ referencedRelation: "purchase_requests";
112116
+ referencedColumns: ["id"];
112117
+ }];
112118
+ };
112119
+ purchase_requests: {
112120
+ Row: {
112121
+ created_at: string;
112122
+ expires_at: string;
112123
+ first_viewed_at: string | null;
112124
+ id: string;
112125
+ processed_at: string | null;
112126
+ purchase_order_id: string;
112127
+ responded_at: string | null;
112128
+ sent_at: string;
112129
+ status: string;
112130
+ supplier_id: string | null;
112131
+ supplier_name: string;
112132
+ supplier_note: string | null;
112133
+ to_address: string | null;
112134
+ token_hash: string;
112135
+ updated_at: string;
112136
+ };
112137
+ Insert: {
112138
+ created_at?: string;
112139
+ expires_at?: string;
112140
+ first_viewed_at?: string | null;
112141
+ id?: string;
112142
+ processed_at?: string | null;
112143
+ purchase_order_id: string;
112144
+ responded_at?: string | null;
112145
+ sent_at?: string;
112146
+ status?: string;
112147
+ supplier_id?: string | null;
112148
+ supplier_name?: string;
112149
+ supplier_note?: string | null;
112150
+ to_address?: string | null;
112151
+ token_hash: string;
112152
+ updated_at?: string;
112153
+ };
112154
+ Update: {
112155
+ created_at?: string;
112156
+ expires_at?: string;
112157
+ first_viewed_at?: string | null;
112158
+ id?: string;
112159
+ processed_at?: string | null;
112160
+ purchase_order_id?: string;
112161
+ responded_at?: string | null;
112162
+ sent_at?: string;
112163
+ status?: string;
112164
+ supplier_id?: string | null;
112165
+ supplier_name?: string;
112166
+ supplier_note?: string | null;
112167
+ to_address?: string | null;
112168
+ token_hash?: string;
112169
+ updated_at?: string;
112170
+ };
112171
+ Relationships: [{
112172
+ foreignKeyName: "purchase_requests_purchase_order_id_fkey";
112173
+ columns: ["purchase_order_id"];
112174
+ isOneToOne: false;
112175
+ referencedRelation: "purchase_orders";
112176
+ referencedColumns: ["id"];
112177
+ }, {
112178
+ foreignKeyName: "purchase_requests_supplier_id_fkey";
112179
+ columns: ["supplier_id"];
112180
+ isOneToOne: false;
112181
+ referencedRelation: "suppliers";
112182
+ referencedColumns: ["id"];
112183
+ }];
112184
+ };
110895
112185
  reception_notifications: {
110896
112186
  Row: {
110897
112187
  booking_id: string | null;
@@ -113055,6 +114345,7 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
113055
114345
  auto_invoice_enabled: boolean;
113056
114346
  auto_invoice_start_date: string | null;
113057
114347
  auto_invoice_trigger_statuses: string[];
114348
+ auto_send_mode: string | null;
113058
114349
  created_at: string;
113059
114350
  debtor_gl_account: string;
113060
114351
  default_article_code: string | null;
@@ -113083,6 +114374,7 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
113083
114374
  auto_invoice_enabled?: boolean;
113084
114375
  auto_invoice_start_date?: string | null;
113085
114376
  auto_invoice_trigger_statuses?: string[];
114377
+ auto_send_mode?: string | null;
113086
114378
  created_at?: string;
113087
114379
  debtor_gl_account?: string;
113088
114380
  default_article_code?: string | null;
@@ -113111,6 +114403,7 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
113111
114403
  auto_invoice_enabled?: boolean;
113112
114404
  auto_invoice_start_date?: string | null;
113113
114405
  auto_invoice_trigger_statuses?: string[];
114406
+ auto_send_mode?: string | null;
113114
114407
  created_at?: string;
113115
114408
  debtor_gl_account?: string;
113116
114409
  default_article_code?: string | null;
@@ -118344,13 +119637,66 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
118344
119637
  };
118345
119638
  Returns: import("../integrations/supabase/types").Json;
118346
119639
  };
119640
+ inkoop_cancel_line: {
119641
+ Args: {
119642
+ _item_id: string;
119643
+ _reason: string;
119644
+ };
119645
+ Returns: string;
119646
+ };
119647
+ inkoop_get_supplier_request: {
119648
+ Args: {
119649
+ _token: string;
119650
+ };
119651
+ Returns: import("../integrations/supabase/types").Json;
119652
+ };
119653
+ inkoop_hash_token: {
119654
+ Args: {
119655
+ _token: string;
119656
+ };
119657
+ Returns: string;
119658
+ };
119659
+ inkoop_html_escape: {
119660
+ Args: {
119661
+ _t: string;
119662
+ };
119663
+ Returns: string;
119664
+ };
119665
+ inkoop_list_artikelen: {
119666
+ Args: never;
119667
+ Returns: {
119668
+ article_number: string;
119669
+ barcode: string;
119670
+ id: string;
119671
+ incoming_quantity: number;
119672
+ is_layer: boolean;
119673
+ location: string;
119674
+ min_quantity: number;
119675
+ preferred_supplier_name: string;
119676
+ product: string;
119677
+ product_type: string;
119678
+ purchase_price: number;
119679
+ quantity: number;
119680
+ sale_price: number;
119681
+ supplier_count: number;
119682
+ unit: string;
119683
+ }[];
119684
+ };
118347
119685
  inkoop_next_order_number: {
118348
119686
  Args: never;
118349
119687
  Returns: string;
118350
119688
  };
119689
+ inkoop_process_request: {
119690
+ Args: {
119691
+ _request_id: string;
119692
+ };
119693
+ Returns: undefined;
119694
+ };
118351
119695
  inkoop_send_order: {
118352
119696
  Args: {
119697
+ _base_url?: string;
118353
119698
  _order_id: string;
119699
+ _resend?: boolean;
118354
119700
  };
118355
119701
  Returns: {
118356
119702
  outbox_id: string;
@@ -118365,6 +119711,26 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
118365
119711
  };
118366
119712
  Returns: undefined;
118367
119713
  };
119714
+ inkoop_stock_key: {
119715
+ Args: {
119716
+ p_product_id: string;
119717
+ };
119718
+ Returns: string;
119719
+ };
119720
+ inkoop_submit_supplier_response: {
119721
+ Args: {
119722
+ _lines: import("../integrations/supabase/types").Json;
119723
+ _note?: string;
119724
+ _token: string;
119725
+ };
119726
+ Returns: import("../integrations/supabase/types").Json;
119727
+ };
119728
+ inkoop_sync_item_stock: {
119729
+ Args: {
119730
+ p_item_id: string;
119731
+ };
119732
+ Returns: undefined;
119733
+ };
118368
119734
  instructie_get: {
118369
119735
  Args: {
118370
119736
  _sleutel: string;
@@ -118802,6 +120168,12 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
118802
120168
  };
118803
120169
  Returns: number;
118804
120170
  };
120171
+ logistics_cart_barcode_opschonen: {
120172
+ Args: {
120173
+ p_portie?: number;
120174
+ };
120175
+ Returns: import("../integrations/supabase/types").Json;
120176
+ };
118805
120177
  logistics_cart_barcode_value: {
118806
120178
  Args: {
118807
120179
  _cart_id: string;
@@ -120411,6 +121783,13 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
120411
121783
  };
120412
121784
  Returns: string;
120413
121785
  };
121786
+ logistics_shipping_note_status: {
121787
+ Args: {
121788
+ p_cart_id?: string;
121789
+ p_slip_job_id?: string;
121790
+ };
121791
+ Returns: import("../integrations/supabase/types").Json;
121792
+ };
120414
121793
  logistics_shipping_notes_wake_all: {
120415
121794
  Args: never;
120416
121795
  Returns: import("../integrations/supabase/types").Json;
@@ -122090,6 +123469,13 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
122090
123469
  };
122091
123470
  Returns: import("../integrations/supabase/types").Json;
122092
123471
  };
123472
+ scan_controleer_pincode: {
123473
+ Args: {
123474
+ p_pin: string;
123475
+ p_scanner_id: string;
123476
+ };
123477
+ Returns: boolean;
123478
+ };
122093
123479
  scan_dashboard_stats: {
122094
123480
  Args: {
122095
123481
  p_dagen?: number;
@@ -122109,6 +123495,12 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
122109
123495
  };
122110
123496
  Returns: import("../integrations/supabase/types").Json;
122111
123497
  };
123498
+ scan_heeft_pincode: {
123499
+ Args: {
123500
+ p_scanner_id: string;
123501
+ };
123502
+ Returns: boolean;
123503
+ };
122112
123504
  scan_kar_compleet: {
122113
123505
  Args: {
122114
123506
  p_allow_reprint?: boolean;
@@ -122126,6 +123518,7 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
122126
123518
  Args: {
122127
123519
  p_code: string;
122128
123520
  p_latency_ms?: number;
123521
+ p_medewerker?: string;
122129
123522
  p_message?: string;
122130
123523
  p_result: string;
122131
123524
  p_scanner_key?: string;
@@ -122198,6 +123591,22 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
122198
123591
  };
122199
123592
  Returns: undefined;
122200
123593
  };
123594
+ scan_scanner_info: {
123595
+ Args: {
123596
+ p_slug: string;
123597
+ };
123598
+ Returns: {
123599
+ actief: boolean;
123600
+ heeft_pincode: boolean;
123601
+ id: string;
123602
+ naam: string;
123603
+ omschrijving: string;
123604
+ printer_id: string;
123605
+ type: string;
123606
+ vereist_medewerker: boolean;
123607
+ werkplek: string;
123608
+ }[];
123609
+ };
122201
123610
  scan_sessie_annuleren: {
122202
123611
  Args: {
122203
123612
  p_sessie_id: string;
@@ -123160,6 +124569,21 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
123160
124569
  };
123161
124570
  Returns: import("../integrations/supabase/types").Json;
123162
124571
  };
124572
+ wo_list_colleague_planning: {
124573
+ Args: {
124574
+ _from: string;
124575
+ _monteur_id: string;
124576
+ _to: string;
124577
+ };
124578
+ Returns: {
124579
+ end_at: string;
124580
+ id: string;
124581
+ role: string;
124582
+ start_at: string;
124583
+ status: string;
124584
+ werkbon_id: string;
124585
+ }[];
124586
+ };
123163
124587
  wo_list_offerte_requests: {
123164
124588
  Args: {
123165
124589
  _status?: string;
@@ -123975,6 +125399,27 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
123975
125399
  };
123976
125400
  Relationships: [];
123977
125401
  };
125402
+ artikelen_instellingen: {
125403
+ Row: {
125404
+ created_at: string;
125405
+ id: number;
125406
+ marge_procent: number;
125407
+ updated_at: string;
125408
+ };
125409
+ Insert: {
125410
+ created_at?: string;
125411
+ id?: number;
125412
+ marge_procent?: number;
125413
+ updated_at?: string;
125414
+ };
125415
+ Update: {
125416
+ created_at?: string;
125417
+ id?: number;
125418
+ marge_procent?: number;
125419
+ updated_at?: string;
125420
+ };
125421
+ Relationships: [];
125422
+ };
123978
125423
  artikelen_veldconfig: {
123979
125424
  Row: {
123980
125425
  bron_pad: string;
@@ -133650,6 +135095,30 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
133650
135095
  };
133651
135096
  Relationships: [];
133652
135097
  };
135098
+ logistics_cart_barcode_archief: {
135099
+ Row: {
135100
+ barcode: string;
135101
+ cart_id: string;
135102
+ created_at: string | null;
135103
+ gearchiveerd_op: string;
135104
+ order_id: string | null;
135105
+ };
135106
+ Insert: {
135107
+ barcode: string;
135108
+ cart_id: string;
135109
+ created_at?: string | null;
135110
+ gearchiveerd_op?: string;
135111
+ order_id?: string | null;
135112
+ };
135113
+ Update: {
135114
+ barcode?: string;
135115
+ cart_id?: string;
135116
+ created_at?: string | null;
135117
+ gearchiveerd_op?: string;
135118
+ order_id?: string | null;
135119
+ };
135120
+ Relationships: [];
135121
+ };
133653
135122
  logistics_control_scan: {
133654
135123
  Row: {
133655
135124
  approved_at: string | null;
@@ -137936,6 +139405,7 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
137936
139405
  next_attempt_at: string;
137937
139406
  order_id: string;
137938
139407
  processed_at: string | null;
139408
+ send_error: string | null;
137939
139409
  status: string;
137940
139410
  updated_at: string;
137941
139411
  };
@@ -137949,6 +139419,7 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
137949
139419
  next_attempt_at?: string;
137950
139420
  order_id: string;
137951
139421
  processed_at?: string | null;
139422
+ send_error?: string | null;
137952
139423
  status?: string;
137953
139424
  updated_at?: string;
137954
139425
  };
@@ -137962,6 +139433,7 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
137962
139433
  next_attempt_at?: string;
137963
139434
  order_id?: string;
137964
139435
  processed_at?: string | null;
139436
+ send_error?: string | null;
137965
139437
  status?: string;
137966
139438
  updated_at?: string;
137967
139439
  };
@@ -140999,6 +142471,9 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
140999
142471
  lead_time_days: number | null;
141000
142472
  min_order_quantity: number | null;
141001
142473
  notes: string | null;
142474
+ previous_price_cents: number | null;
142475
+ price_source: string;
142476
+ price_updated_at: string | null;
141002
142477
  product_id: string;
141003
142478
  purchase_price_cents: number | null;
141004
142479
  supplier_article_number: string | null;
@@ -141012,6 +142487,9 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
141012
142487
  lead_time_days?: number | null;
141013
142488
  min_order_quantity?: number | null;
141014
142489
  notes?: string | null;
142490
+ previous_price_cents?: number | null;
142491
+ price_source?: string;
142492
+ price_updated_at?: string | null;
141015
142493
  product_id: string;
141016
142494
  purchase_price_cents?: number | null;
141017
142495
  supplier_article_number?: string | null;
@@ -141025,6 +142503,9 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
141025
142503
  lead_time_days?: number | null;
141026
142504
  min_order_quantity?: number | null;
141027
142505
  notes?: string | null;
142506
+ previous_price_cents?: number | null;
142507
+ price_source?: string;
142508
+ price_updated_at?: string | null;
141028
142509
  product_id?: string;
141029
142510
  purchase_price_cents?: number | null;
141030
142511
  supplier_article_number?: string | null;
@@ -141555,9 +143036,13 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
141555
143036
  purchase_order_items: {
141556
143037
  Row: {
141557
143038
  article_number: string | null;
143039
+ cancel_reason: string | null;
143040
+ cancelled_at: string | null;
141558
143041
  created_at: string;
141559
143042
  delivery_date: string | null;
141560
143043
  id: string;
143044
+ incoming_booked: number;
143045
+ line_status: string;
141561
143046
  name: string;
141562
143047
  note: string | null;
141563
143048
  pot_size: string | null;
@@ -141565,6 +143050,8 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
141565
143050
  product_type: string;
141566
143051
  purchase_order_id: string;
141567
143052
  quantity: number;
143053
+ received_at: string | null;
143054
+ received_booked: number;
141568
143055
  supplier_id: string | null;
141569
143056
  supplier_product_id: string | null;
141570
143057
  unit_price_cents: number;
@@ -141572,9 +143059,13 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
141572
143059
  };
141573
143060
  Insert: {
141574
143061
  article_number?: string | null;
143062
+ cancel_reason?: string | null;
143063
+ cancelled_at?: string | null;
141575
143064
  created_at?: string;
141576
143065
  delivery_date?: string | null;
141577
143066
  id?: string;
143067
+ incoming_booked?: number;
143068
+ line_status?: string;
141578
143069
  name?: string;
141579
143070
  note?: string | null;
141580
143071
  pot_size?: string | null;
@@ -141582,6 +143073,8 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
141582
143073
  product_type?: string;
141583
143074
  purchase_order_id: string;
141584
143075
  quantity?: number;
143076
+ received_at?: string | null;
143077
+ received_booked?: number;
141585
143078
  supplier_id?: string | null;
141586
143079
  supplier_product_id?: string | null;
141587
143080
  unit_price_cents?: number;
@@ -141589,9 +143082,13 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
141589
143082
  };
141590
143083
  Update: {
141591
143084
  article_number?: string | null;
143085
+ cancel_reason?: string | null;
143086
+ cancelled_at?: string | null;
141592
143087
  created_at?: string;
141593
143088
  delivery_date?: string | null;
141594
143089
  id?: string;
143090
+ incoming_booked?: number;
143091
+ line_status?: string;
141595
143092
  name?: string;
141596
143093
  note?: string | null;
141597
143094
  pot_size?: string | null;
@@ -141599,6 +143096,8 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
141599
143096
  product_type?: string;
141600
143097
  purchase_order_id?: string;
141601
143098
  quantity?: number;
143099
+ received_at?: string | null;
143100
+ received_booked?: number;
141602
143101
  supplier_id?: string | null;
141603
143102
  supplier_product_id?: string | null;
141604
143103
  unit_price_cents?: number;
@@ -141702,6 +143201,153 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
141702
143201
  referencedColumns: ["id"];
141703
143202
  }];
141704
143203
  };
143204
+ purchase_request_events: {
143205
+ Row: {
143206
+ created_at: string;
143207
+ details: import("../integrations/supabase/types").Json | null;
143208
+ event_type: string;
143209
+ id: string;
143210
+ request_id: string;
143211
+ };
143212
+ Insert: {
143213
+ created_at?: string;
143214
+ details?: import("../integrations/supabase/types").Json | null;
143215
+ event_type: string;
143216
+ id?: string;
143217
+ request_id: string;
143218
+ };
143219
+ Update: {
143220
+ created_at?: string;
143221
+ details?: import("../integrations/supabase/types").Json | null;
143222
+ event_type?: string;
143223
+ id?: string;
143224
+ request_id?: string;
143225
+ };
143226
+ Relationships: [{
143227
+ foreignKeyName: "purchase_request_events_request_id_fkey";
143228
+ columns: ["request_id"];
143229
+ isOneToOne: false;
143230
+ referencedRelation: "purchase_requests";
143231
+ referencedColumns: ["id"];
143232
+ }];
143233
+ };
143234
+ purchase_request_responses: {
143235
+ Row: {
143236
+ confirmed_date: string | null;
143237
+ confirmed_price_cents: number | null;
143238
+ confirmed_quantity: number;
143239
+ created_at: string;
143240
+ id: string;
143241
+ not_available: boolean;
143242
+ note: string | null;
143243
+ purchase_order_item_id: string;
143244
+ request_id: string;
143245
+ updated_at: string;
143246
+ };
143247
+ Insert: {
143248
+ confirmed_date?: string | null;
143249
+ confirmed_price_cents?: number | null;
143250
+ confirmed_quantity?: number;
143251
+ created_at?: string;
143252
+ id?: string;
143253
+ not_available?: boolean;
143254
+ note?: string | null;
143255
+ purchase_order_item_id: string;
143256
+ request_id: string;
143257
+ updated_at?: string;
143258
+ };
143259
+ Update: {
143260
+ confirmed_date?: string | null;
143261
+ confirmed_price_cents?: number | null;
143262
+ confirmed_quantity?: number;
143263
+ created_at?: string;
143264
+ id?: string;
143265
+ not_available?: boolean;
143266
+ note?: string | null;
143267
+ purchase_order_item_id?: string;
143268
+ request_id?: string;
143269
+ updated_at?: string;
143270
+ };
143271
+ Relationships: [{
143272
+ foreignKeyName: "purchase_request_responses_purchase_order_item_id_fkey";
143273
+ columns: ["purchase_order_item_id"];
143274
+ isOneToOne: false;
143275
+ referencedRelation: "purchase_order_items";
143276
+ referencedColumns: ["id"];
143277
+ }, {
143278
+ foreignKeyName: "purchase_request_responses_request_id_fkey";
143279
+ columns: ["request_id"];
143280
+ isOneToOne: false;
143281
+ referencedRelation: "purchase_requests";
143282
+ referencedColumns: ["id"];
143283
+ }];
143284
+ };
143285
+ purchase_requests: {
143286
+ Row: {
143287
+ created_at: string;
143288
+ expires_at: string;
143289
+ first_viewed_at: string | null;
143290
+ id: string;
143291
+ processed_at: string | null;
143292
+ purchase_order_id: string;
143293
+ responded_at: string | null;
143294
+ sent_at: string;
143295
+ status: string;
143296
+ supplier_id: string | null;
143297
+ supplier_name: string;
143298
+ supplier_note: string | null;
143299
+ to_address: string | null;
143300
+ token_hash: string;
143301
+ updated_at: string;
143302
+ };
143303
+ Insert: {
143304
+ created_at?: string;
143305
+ expires_at?: string;
143306
+ first_viewed_at?: string | null;
143307
+ id?: string;
143308
+ processed_at?: string | null;
143309
+ purchase_order_id: string;
143310
+ responded_at?: string | null;
143311
+ sent_at?: string;
143312
+ status?: string;
143313
+ supplier_id?: string | null;
143314
+ supplier_name?: string;
143315
+ supplier_note?: string | null;
143316
+ to_address?: string | null;
143317
+ token_hash: string;
143318
+ updated_at?: string;
143319
+ };
143320
+ Update: {
143321
+ created_at?: string;
143322
+ expires_at?: string;
143323
+ first_viewed_at?: string | null;
143324
+ id?: string;
143325
+ processed_at?: string | null;
143326
+ purchase_order_id?: string;
143327
+ responded_at?: string | null;
143328
+ sent_at?: string;
143329
+ status?: string;
143330
+ supplier_id?: string | null;
143331
+ supplier_name?: string;
143332
+ supplier_note?: string | null;
143333
+ to_address?: string | null;
143334
+ token_hash?: string;
143335
+ updated_at?: string;
143336
+ };
143337
+ Relationships: [{
143338
+ foreignKeyName: "purchase_requests_purchase_order_id_fkey";
143339
+ columns: ["purchase_order_id"];
143340
+ isOneToOne: false;
143341
+ referencedRelation: "purchase_orders";
143342
+ referencedColumns: ["id"];
143343
+ }, {
143344
+ foreignKeyName: "purchase_requests_supplier_id_fkey";
143345
+ columns: ["supplier_id"];
143346
+ isOneToOne: false;
143347
+ referencedRelation: "suppliers";
143348
+ referencedColumns: ["id"];
143349
+ }];
143350
+ };
141705
143351
  reception_notifications: {
141706
143352
  Row: {
141707
143353
  booking_id: string | null;
@@ -143865,6 +145511,7 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
143865
145511
  auto_invoice_enabled: boolean;
143866
145512
  auto_invoice_start_date: string | null;
143867
145513
  auto_invoice_trigger_statuses: string[];
145514
+ auto_send_mode: string | null;
143868
145515
  created_at: string;
143869
145516
  debtor_gl_account: string;
143870
145517
  default_article_code: string | null;
@@ -143893,6 +145540,7 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
143893
145540
  auto_invoice_enabled?: boolean;
143894
145541
  auto_invoice_start_date?: string | null;
143895
145542
  auto_invoice_trigger_statuses?: string[];
145543
+ auto_send_mode?: string | null;
143896
145544
  created_at?: string;
143897
145545
  debtor_gl_account?: string;
143898
145546
  default_article_code?: string | null;
@@ -143921,6 +145569,7 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
143921
145569
  auto_invoice_enabled?: boolean;
143922
145570
  auto_invoice_start_date?: string | null;
143923
145571
  auto_invoice_trigger_statuses?: string[];
145572
+ auto_send_mode?: string | null;
143924
145573
  created_at?: string;
143925
145574
  debtor_gl_account?: string;
143926
145575
  default_article_code?: string | null;
@@ -149154,13 +150803,66 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
149154
150803
  };
149155
150804
  Returns: import("../integrations/supabase/types").Json;
149156
150805
  };
150806
+ inkoop_cancel_line: {
150807
+ Args: {
150808
+ _item_id: string;
150809
+ _reason: string;
150810
+ };
150811
+ Returns: string;
150812
+ };
150813
+ inkoop_get_supplier_request: {
150814
+ Args: {
150815
+ _token: string;
150816
+ };
150817
+ Returns: import("../integrations/supabase/types").Json;
150818
+ };
150819
+ inkoop_hash_token: {
150820
+ Args: {
150821
+ _token: string;
150822
+ };
150823
+ Returns: string;
150824
+ };
150825
+ inkoop_html_escape: {
150826
+ Args: {
150827
+ _t: string;
150828
+ };
150829
+ Returns: string;
150830
+ };
150831
+ inkoop_list_artikelen: {
150832
+ Args: never;
150833
+ Returns: {
150834
+ article_number: string;
150835
+ barcode: string;
150836
+ id: string;
150837
+ incoming_quantity: number;
150838
+ is_layer: boolean;
150839
+ location: string;
150840
+ min_quantity: number;
150841
+ preferred_supplier_name: string;
150842
+ product: string;
150843
+ product_type: string;
150844
+ purchase_price: number;
150845
+ quantity: number;
150846
+ sale_price: number;
150847
+ supplier_count: number;
150848
+ unit: string;
150849
+ }[];
150850
+ };
149157
150851
  inkoop_next_order_number: {
149158
150852
  Args: never;
149159
150853
  Returns: string;
149160
150854
  };
150855
+ inkoop_process_request: {
150856
+ Args: {
150857
+ _request_id: string;
150858
+ };
150859
+ Returns: undefined;
150860
+ };
149161
150861
  inkoop_send_order: {
149162
150862
  Args: {
150863
+ _base_url?: string;
149163
150864
  _order_id: string;
150865
+ _resend?: boolean;
149164
150866
  };
149165
150867
  Returns: {
149166
150868
  outbox_id: string;
@@ -149175,6 +150877,26 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
149175
150877
  };
149176
150878
  Returns: undefined;
149177
150879
  };
150880
+ inkoop_stock_key: {
150881
+ Args: {
150882
+ p_product_id: string;
150883
+ };
150884
+ Returns: string;
150885
+ };
150886
+ inkoop_submit_supplier_response: {
150887
+ Args: {
150888
+ _lines: import("../integrations/supabase/types").Json;
150889
+ _note?: string;
150890
+ _token: string;
150891
+ };
150892
+ Returns: import("../integrations/supabase/types").Json;
150893
+ };
150894
+ inkoop_sync_item_stock: {
150895
+ Args: {
150896
+ p_item_id: string;
150897
+ };
150898
+ Returns: undefined;
150899
+ };
149178
150900
  instructie_get: {
149179
150901
  Args: {
149180
150902
  _sleutel: string;
@@ -149612,6 +151334,12 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
149612
151334
  };
149613
151335
  Returns: number;
149614
151336
  };
151337
+ logistics_cart_barcode_opschonen: {
151338
+ Args: {
151339
+ p_portie?: number;
151340
+ };
151341
+ Returns: import("../integrations/supabase/types").Json;
151342
+ };
149615
151343
  logistics_cart_barcode_value: {
149616
151344
  Args: {
149617
151345
  _cart_id: string;
@@ -151221,6 +152949,13 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
151221
152949
  };
151222
152950
  Returns: string;
151223
152951
  };
152952
+ logistics_shipping_note_status: {
152953
+ Args: {
152954
+ p_cart_id?: string;
152955
+ p_slip_job_id?: string;
152956
+ };
152957
+ Returns: import("../integrations/supabase/types").Json;
152958
+ };
151224
152959
  logistics_shipping_notes_wake_all: {
151225
152960
  Args: never;
151226
152961
  Returns: import("../integrations/supabase/types").Json;
@@ -152900,6 +154635,13 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
152900
154635
  };
152901
154636
  Returns: import("../integrations/supabase/types").Json;
152902
154637
  };
154638
+ scan_controleer_pincode: {
154639
+ Args: {
154640
+ p_pin: string;
154641
+ p_scanner_id: string;
154642
+ };
154643
+ Returns: boolean;
154644
+ };
152903
154645
  scan_dashboard_stats: {
152904
154646
  Args: {
152905
154647
  p_dagen?: number;
@@ -152919,6 +154661,12 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
152919
154661
  };
152920
154662
  Returns: import("../integrations/supabase/types").Json;
152921
154663
  };
154664
+ scan_heeft_pincode: {
154665
+ Args: {
154666
+ p_scanner_id: string;
154667
+ };
154668
+ Returns: boolean;
154669
+ };
152922
154670
  scan_kar_compleet: {
152923
154671
  Args: {
152924
154672
  p_allow_reprint?: boolean;
@@ -152936,6 +154684,7 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
152936
154684
  Args: {
152937
154685
  p_code: string;
152938
154686
  p_latency_ms?: number;
154687
+ p_medewerker?: string;
152939
154688
  p_message?: string;
152940
154689
  p_result: string;
152941
154690
  p_scanner_key?: string;
@@ -153008,6 +154757,22 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
153008
154757
  };
153009
154758
  Returns: undefined;
153010
154759
  };
154760
+ scan_scanner_info: {
154761
+ Args: {
154762
+ p_slug: string;
154763
+ };
154764
+ Returns: {
154765
+ actief: boolean;
154766
+ heeft_pincode: boolean;
154767
+ id: string;
154768
+ naam: string;
154769
+ omschrijving: string;
154770
+ printer_id: string;
154771
+ type: string;
154772
+ vereist_medewerker: boolean;
154773
+ werkplek: string;
154774
+ }[];
154775
+ };
153011
154776
  scan_sessie_annuleren: {
153012
154777
  Args: {
153013
154778
  p_sessie_id: string;
@@ -153970,6 +155735,21 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
153970
155735
  };
153971
155736
  Returns: import("../integrations/supabase/types").Json;
153972
155737
  };
155738
+ wo_list_colleague_planning: {
155739
+ Args: {
155740
+ _from: string;
155741
+ _monteur_id: string;
155742
+ _to: string;
155743
+ };
155744
+ Returns: {
155745
+ end_at: string;
155746
+ id: string;
155747
+ role: string;
155748
+ start_at: string;
155749
+ status: string;
155750
+ werkbon_id: string;
155751
+ }[];
155752
+ };
153973
155753
  wo_list_offerte_requests: {
153974
155754
  Args: {
153975
155755
  _status?: string;