@flowselections/logistiek-engine 1.0.90 → 1.0.98

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 (53) hide show
  1. package/dist-lib/components/FlowOrders.js +1 -1
  2. package/dist-lib/components/MisluktVerzendbrievenCard.d.ts +2 -0
  3. package/dist-lib/components/MisluktVerzendbrievenCard.d.ts.map +1 -0
  4. package/dist-lib/components/MisluktVerzendbrievenCard.js +50 -0
  5. package/dist-lib/components/RegiePage.d.ts.map +1 -1
  6. package/dist-lib/components/RegiePage.js +2 -1
  7. package/dist-lib/components/RuleEnginePage.d.ts.map +1 -1
  8. package/dist-lib/components/RuleEnginePage.js +3 -1
  9. package/dist-lib/hooks/useShippingNoteStatus.d.ts +2 -0
  10. package/dist-lib/hooks/useShippingNoteStatus.d.ts.map +1 -1
  11. package/dist-lib/hooks/useShippingNoteStatus.js +13 -1
  12. package/dist-lib/hooks/useShippingNoteStatus.test.d.ts +2 -0
  13. package/dist-lib/hooks/useShippingNoteStatus.test.d.ts.map +1 -0
  14. package/dist-lib/hooks/useShippingNoteStatus.test.js +20 -0
  15. package/dist-lib/integrations/supabase/auth-middleware.d.ts +415 -0
  16. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  17. package/dist-lib/integrations/supabase/client.server.d.ts +415 -0
  18. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  19. package/dist-lib/integrations/supabase/moduleClient.d.ts +415 -0
  20. package/dist-lib/integrations/supabase/moduleClient.d.ts.map +1 -1
  21. package/dist-lib/integrations/supabase/types.d.ts +423 -0
  22. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  23. package/dist-lib/lib/cartCoverage.functions.d.ts +415 -0
  24. package/dist-lib/lib/cartCoverage.functions.d.ts.map +1 -1
  25. package/dist-lib/lib/controlScan.server.d.ts +2 -0
  26. package/dist-lib/lib/controlScan.server.d.ts.map +1 -1
  27. package/dist-lib/lib/controlScan.server.js +59 -53
  28. package/dist-lib/lib/floridayDocuments.functions.d.ts +1245 -0
  29. package/dist-lib/lib/floridayDocuments.functions.d.ts.map +1 -1
  30. package/dist-lib/lib/floridayPush.functions.d.ts +415 -0
  31. package/dist-lib/lib/floridayPush.functions.d.ts.map +1 -1
  32. package/dist-lib/lib/layoutPrint.server.d.ts +27 -0
  33. package/dist-lib/lib/layoutPrint.server.d.ts.map +1 -0
  34. package/dist-lib/lib/layoutPrint.server.js +48 -0
  35. package/dist-lib/lib/layoutPrint.test.d.ts +2 -0
  36. package/dist-lib/lib/layoutPrint.test.d.ts.map +1 -0
  37. package/dist-lib/lib/layoutPrint.test.js +47 -0
  38. package/dist-lib/lib/loadCarrierPlanning.functions.d.ts +2075 -0
  39. package/dist-lib/lib/loadCarrierPlanning.functions.d.ts.map +1 -1
  40. package/dist-lib/lib/loadCarrierPlanning.server.d.ts.map +1 -1
  41. package/dist-lib/lib/loadCarrierPlanning.server.js +52 -8
  42. package/dist-lib/lib/logisticsRecalcJob.functions.d.ts +830 -0
  43. package/dist-lib/lib/logisticsRecalcJob.functions.d.ts.map +1 -1
  44. package/dist-lib/lib/logisticsRecalculate.functions.d.ts +415 -0
  45. package/dist-lib/lib/logisticsRecalculate.functions.d.ts.map +1 -1
  46. package/dist-lib/lib/modulePrompts.d.ts.map +1 -1
  47. package/dist-lib/lib/modulePrompts.js +54 -0
  48. package/dist-lib/lib/plannerDiff.functions.d.ts +415 -0
  49. package/dist-lib/lib/plannerDiff.functions.d.ts.map +1 -1
  50. package/dist-lib/lib/ruleEngineSchema.js +2 -2
  51. package/dist-lib/lib/shippingNoteQueue.server.d.ts.map +1 -1
  52. package/dist-lib/lib/shippingNoteQueue.server.js +40 -49
  53. package/package.json +1 -1
@@ -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
  };
@@ -16058,18 +16106,24 @@ export declare const replanOrderLoadCarriers: import("@tanstack/start-client-cor
16058
16106
  Row: {
16059
16107
  id: boolean;
16060
16108
  last_cleanup_at: string | null;
16109
+ last_error: string | null;
16110
+ last_error_at: string | null;
16061
16111
  last_sync_at: string | null;
16062
16112
  updated_at: string;
16063
16113
  };
16064
16114
  Insert: {
16065
16115
  id?: boolean;
16066
16116
  last_cleanup_at?: string | null;
16117
+ last_error?: string | null;
16118
+ last_error_at?: string | null;
16067
16119
  last_sync_at?: string | null;
16068
16120
  updated_at?: string;
16069
16121
  };
16070
16122
  Update: {
16071
16123
  id?: boolean;
16072
16124
  last_cleanup_at?: string | null;
16125
+ last_error?: string | null;
16126
+ last_error_at?: string | null;
16073
16127
  last_sync_at?: string | null;
16074
16128
  updated_at?: string;
16075
16129
  };
@@ -17757,6 +17811,9 @@ export declare const replanOrderLoadCarriers: import("@tanstack/start-client-cor
17757
17811
  lead_time_days: number | null;
17758
17812
  min_order_quantity: number | null;
17759
17813
  notes: string | null;
17814
+ previous_price_cents: number | null;
17815
+ price_source: string;
17816
+ price_updated_at: string | null;
17760
17817
  product_id: string;
17761
17818
  purchase_price_cents: number | null;
17762
17819
  supplier_article_number: string | null;
@@ -17770,6 +17827,9 @@ export declare const replanOrderLoadCarriers: import("@tanstack/start-client-cor
17770
17827
  lead_time_days?: number | null;
17771
17828
  min_order_quantity?: number | null;
17772
17829
  notes?: string | null;
17830
+ previous_price_cents?: number | null;
17831
+ price_source?: string;
17832
+ price_updated_at?: string | null;
17773
17833
  product_id: string;
17774
17834
  purchase_price_cents?: number | null;
17775
17835
  supplier_article_number?: string | null;
@@ -17783,6 +17843,9 @@ export declare const replanOrderLoadCarriers: import("@tanstack/start-client-cor
17783
17843
  lead_time_days?: number | null;
17784
17844
  min_order_quantity?: number | null;
17785
17845
  notes?: string | null;
17846
+ previous_price_cents?: number | null;
17847
+ price_source?: string;
17848
+ price_updated_at?: string | null;
17786
17849
  product_id?: string;
17787
17850
  purchase_price_cents?: number | null;
17788
17851
  supplier_article_number?: string | null;
@@ -18313,9 +18376,13 @@ export declare const replanOrderLoadCarriers: import("@tanstack/start-client-cor
18313
18376
  purchase_order_items: {
18314
18377
  Row: {
18315
18378
  article_number: string | null;
18379
+ cancel_reason: string | null;
18380
+ cancelled_at: string | null;
18316
18381
  created_at: string;
18317
18382
  delivery_date: string | null;
18318
18383
  id: string;
18384
+ incoming_booked: number;
18385
+ line_status: string;
18319
18386
  name: string;
18320
18387
  note: string | null;
18321
18388
  pot_size: string | null;
@@ -18323,6 +18390,8 @@ export declare const replanOrderLoadCarriers: import("@tanstack/start-client-cor
18323
18390
  product_type: string;
18324
18391
  purchase_order_id: string;
18325
18392
  quantity: number;
18393
+ received_at: string | null;
18394
+ received_booked: number;
18326
18395
  supplier_id: string | null;
18327
18396
  supplier_product_id: string | null;
18328
18397
  unit_price_cents: number;
@@ -18330,9 +18399,13 @@ export declare const replanOrderLoadCarriers: import("@tanstack/start-client-cor
18330
18399
  };
18331
18400
  Insert: {
18332
18401
  article_number?: string | null;
18402
+ cancel_reason?: string | null;
18403
+ cancelled_at?: string | null;
18333
18404
  created_at?: string;
18334
18405
  delivery_date?: string | null;
18335
18406
  id?: string;
18407
+ incoming_booked?: number;
18408
+ line_status?: string;
18336
18409
  name?: string;
18337
18410
  note?: string | null;
18338
18411
  pot_size?: string | null;
@@ -18340,6 +18413,8 @@ export declare const replanOrderLoadCarriers: import("@tanstack/start-client-cor
18340
18413
  product_type?: string;
18341
18414
  purchase_order_id: string;
18342
18415
  quantity?: number;
18416
+ received_at?: string | null;
18417
+ received_booked?: number;
18343
18418
  supplier_id?: string | null;
18344
18419
  supplier_product_id?: string | null;
18345
18420
  unit_price_cents?: number;
@@ -18347,9 +18422,13 @@ export declare const replanOrderLoadCarriers: import("@tanstack/start-client-cor
18347
18422
  };
18348
18423
  Update: {
18349
18424
  article_number?: string | null;
18425
+ cancel_reason?: string | null;
18426
+ cancelled_at?: string | null;
18350
18427
  created_at?: string;
18351
18428
  delivery_date?: string | null;
18352
18429
  id?: string;
18430
+ incoming_booked?: number;
18431
+ line_status?: string;
18353
18432
  name?: string;
18354
18433
  note?: string | null;
18355
18434
  pot_size?: string | null;
@@ -18357,6 +18436,8 @@ export declare const replanOrderLoadCarriers: import("@tanstack/start-client-cor
18357
18436
  product_type?: string;
18358
18437
  purchase_order_id?: string;
18359
18438
  quantity?: number;
18439
+ received_at?: string | null;
18440
+ received_booked?: number;
18360
18441
  supplier_id?: string | null;
18361
18442
  supplier_product_id?: string | null;
18362
18443
  unit_price_cents?: number;
@@ -18460,6 +18541,153 @@ export declare const replanOrderLoadCarriers: import("@tanstack/start-client-cor
18460
18541
  referencedColumns: ["id"];
18461
18542
  }];
18462
18543
  };
18544
+ purchase_request_events: {
18545
+ Row: {
18546
+ created_at: string;
18547
+ details: import("../integrations/supabase/types").Json | null;
18548
+ event_type: string;
18549
+ id: string;
18550
+ request_id: string;
18551
+ };
18552
+ Insert: {
18553
+ created_at?: string;
18554
+ details?: import("../integrations/supabase/types").Json | null;
18555
+ event_type: string;
18556
+ id?: string;
18557
+ request_id: string;
18558
+ };
18559
+ Update: {
18560
+ created_at?: string;
18561
+ details?: import("../integrations/supabase/types").Json | null;
18562
+ event_type?: string;
18563
+ id?: string;
18564
+ request_id?: string;
18565
+ };
18566
+ Relationships: [{
18567
+ foreignKeyName: "purchase_request_events_request_id_fkey";
18568
+ columns: ["request_id"];
18569
+ isOneToOne: false;
18570
+ referencedRelation: "purchase_requests";
18571
+ referencedColumns: ["id"];
18572
+ }];
18573
+ };
18574
+ purchase_request_responses: {
18575
+ Row: {
18576
+ confirmed_date: string | null;
18577
+ confirmed_price_cents: number | null;
18578
+ confirmed_quantity: number;
18579
+ created_at: string;
18580
+ id: string;
18581
+ not_available: boolean;
18582
+ note: string | null;
18583
+ purchase_order_item_id: string;
18584
+ request_id: string;
18585
+ updated_at: string;
18586
+ };
18587
+ Insert: {
18588
+ confirmed_date?: string | null;
18589
+ confirmed_price_cents?: number | null;
18590
+ confirmed_quantity?: number;
18591
+ created_at?: string;
18592
+ id?: string;
18593
+ not_available?: boolean;
18594
+ note?: string | null;
18595
+ purchase_order_item_id: string;
18596
+ request_id: string;
18597
+ updated_at?: string;
18598
+ };
18599
+ Update: {
18600
+ confirmed_date?: string | null;
18601
+ confirmed_price_cents?: number | null;
18602
+ confirmed_quantity?: number;
18603
+ created_at?: string;
18604
+ id?: string;
18605
+ not_available?: boolean;
18606
+ note?: string | null;
18607
+ purchase_order_item_id?: string;
18608
+ request_id?: string;
18609
+ updated_at?: string;
18610
+ };
18611
+ Relationships: [{
18612
+ foreignKeyName: "purchase_request_responses_purchase_order_item_id_fkey";
18613
+ columns: ["purchase_order_item_id"];
18614
+ isOneToOne: false;
18615
+ referencedRelation: "purchase_order_items";
18616
+ referencedColumns: ["id"];
18617
+ }, {
18618
+ foreignKeyName: "purchase_request_responses_request_id_fkey";
18619
+ columns: ["request_id"];
18620
+ isOneToOne: false;
18621
+ referencedRelation: "purchase_requests";
18622
+ referencedColumns: ["id"];
18623
+ }];
18624
+ };
18625
+ purchase_requests: {
18626
+ Row: {
18627
+ created_at: string;
18628
+ expires_at: string;
18629
+ first_viewed_at: string | null;
18630
+ id: string;
18631
+ processed_at: string | null;
18632
+ purchase_order_id: string;
18633
+ responded_at: string | null;
18634
+ sent_at: string;
18635
+ status: string;
18636
+ supplier_id: string | null;
18637
+ supplier_name: string;
18638
+ supplier_note: string | null;
18639
+ to_address: string | null;
18640
+ token_hash: string;
18641
+ updated_at: string;
18642
+ };
18643
+ Insert: {
18644
+ created_at?: string;
18645
+ expires_at?: string;
18646
+ first_viewed_at?: string | null;
18647
+ id?: string;
18648
+ processed_at?: string | null;
18649
+ purchase_order_id: string;
18650
+ responded_at?: string | null;
18651
+ sent_at?: string;
18652
+ status?: string;
18653
+ supplier_id?: string | null;
18654
+ supplier_name?: string;
18655
+ supplier_note?: string | null;
18656
+ to_address?: string | null;
18657
+ token_hash: string;
18658
+ updated_at?: string;
18659
+ };
18660
+ Update: {
18661
+ created_at?: string;
18662
+ expires_at?: string;
18663
+ first_viewed_at?: string | null;
18664
+ id?: string;
18665
+ processed_at?: string | null;
18666
+ purchase_order_id?: string;
18667
+ responded_at?: string | null;
18668
+ sent_at?: string;
18669
+ status?: string;
18670
+ supplier_id?: string | null;
18671
+ supplier_name?: string;
18672
+ supplier_note?: string | null;
18673
+ to_address?: string | null;
18674
+ token_hash?: string;
18675
+ updated_at?: string;
18676
+ };
18677
+ Relationships: [{
18678
+ foreignKeyName: "purchase_requests_purchase_order_id_fkey";
18679
+ columns: ["purchase_order_id"];
18680
+ isOneToOne: false;
18681
+ referencedRelation: "purchase_orders";
18682
+ referencedColumns: ["id"];
18683
+ }, {
18684
+ foreignKeyName: "purchase_requests_supplier_id_fkey";
18685
+ columns: ["supplier_id"];
18686
+ isOneToOne: false;
18687
+ referencedRelation: "suppliers";
18688
+ referencedColumns: ["id"];
18689
+ }];
18690
+ };
18463
18691
  reception_notifications: {
18464
18692
  Row: {
18465
18693
  booking_id: string | null;
@@ -20623,6 +20851,7 @@ export declare const replanOrderLoadCarriers: import("@tanstack/start-client-cor
20623
20851
  auto_invoice_enabled: boolean;
20624
20852
  auto_invoice_start_date: string | null;
20625
20853
  auto_invoice_trigger_statuses: string[];
20854
+ auto_send_mode: string | null;
20626
20855
  created_at: string;
20627
20856
  debtor_gl_account: string;
20628
20857
  default_article_code: string | null;
@@ -20651,6 +20880,7 @@ export declare const replanOrderLoadCarriers: import("@tanstack/start-client-cor
20651
20880
  auto_invoice_enabled?: boolean;
20652
20881
  auto_invoice_start_date?: string | null;
20653
20882
  auto_invoice_trigger_statuses?: string[];
20883
+ auto_send_mode?: string | null;
20654
20884
  created_at?: string;
20655
20885
  debtor_gl_account?: string;
20656
20886
  default_article_code?: string | null;
@@ -20679,6 +20909,7 @@ export declare const replanOrderLoadCarriers: import("@tanstack/start-client-cor
20679
20909
  auto_invoice_enabled?: boolean;
20680
20910
  auto_invoice_start_date?: string | null;
20681
20911
  auto_invoice_trigger_statuses?: string[];
20912
+ auto_send_mode?: string | null;
20682
20913
  created_at?: string;
20683
20914
  debtor_gl_account?: string;
20684
20915
  default_article_code?: string | null;
@@ -25912,13 +26143,66 @@ export declare const replanOrderLoadCarriers: import("@tanstack/start-client-cor
25912
26143
  };
25913
26144
  Returns: import("../integrations/supabase/types").Json;
25914
26145
  };
26146
+ inkoop_cancel_line: {
26147
+ Args: {
26148
+ _item_id: string;
26149
+ _reason: string;
26150
+ };
26151
+ Returns: string;
26152
+ };
26153
+ inkoop_get_supplier_request: {
26154
+ Args: {
26155
+ _token: string;
26156
+ };
26157
+ Returns: import("../integrations/supabase/types").Json;
26158
+ };
26159
+ inkoop_hash_token: {
26160
+ Args: {
26161
+ _token: string;
26162
+ };
26163
+ Returns: string;
26164
+ };
26165
+ inkoop_html_escape: {
26166
+ Args: {
26167
+ _t: string;
26168
+ };
26169
+ Returns: string;
26170
+ };
26171
+ inkoop_list_artikelen: {
26172
+ Args: never;
26173
+ Returns: {
26174
+ article_number: string;
26175
+ barcode: string;
26176
+ id: string;
26177
+ incoming_quantity: number;
26178
+ is_layer: boolean;
26179
+ location: string;
26180
+ min_quantity: number;
26181
+ preferred_supplier_name: string;
26182
+ product: string;
26183
+ product_type: string;
26184
+ purchase_price: number;
26185
+ quantity: number;
26186
+ sale_price: number;
26187
+ supplier_count: number;
26188
+ unit: string;
26189
+ }[];
26190
+ };
25915
26191
  inkoop_next_order_number: {
25916
26192
  Args: never;
25917
26193
  Returns: string;
25918
26194
  };
26195
+ inkoop_process_request: {
26196
+ Args: {
26197
+ _request_id: string;
26198
+ };
26199
+ Returns: undefined;
26200
+ };
25919
26201
  inkoop_send_order: {
25920
26202
  Args: {
26203
+ _base_url?: string;
25921
26204
  _order_id: string;
26205
+ _resend?: boolean;
25922
26206
  };
25923
26207
  Returns: {
25924
26208
  outbox_id: string;
@@ -25933,6 +26217,26 @@ export declare const replanOrderLoadCarriers: import("@tanstack/start-client-cor
25933
26217
  };
25934
26218
  Returns: undefined;
25935
26219
  };
26220
+ inkoop_stock_key: {
26221
+ Args: {
26222
+ p_product_id: string;
26223
+ };
26224
+ Returns: string;
26225
+ };
26226
+ inkoop_submit_supplier_response: {
26227
+ Args: {
26228
+ _lines: import("../integrations/supabase/types").Json;
26229
+ _note?: string;
26230
+ _token: string;
26231
+ };
26232
+ Returns: import("../integrations/supabase/types").Json;
26233
+ };
26234
+ inkoop_sync_item_stock: {
26235
+ Args: {
26236
+ p_item_id: string;
26237
+ };
26238
+ Returns: undefined;
26239
+ };
25936
26240
  instructie_get: {
25937
26241
  Args: {
25938
26242
  _sleutel: string;
@@ -26093,6 +26397,27 @@ export declare const replanOrderLoadCarriers: import("@tanstack/start-client-cor
26093
26397
  };
26094
26398
  Returns: boolean;
26095
26399
  };
26400
+ layout_print_document: {
26401
+ Args: {
26402
+ _documentnaam: string;
26403
+ _documenttype: string;
26404
+ _herkomst?: string;
26405
+ _idempotentie_sleutel?: string;
26406
+ _is_herprint?: boolean;
26407
+ _kopieen?: number;
26408
+ _layout_id?: string;
26409
+ _payload?: import("../integrations/supabase/types").Json;
26410
+ _pdf_base64?: string;
26411
+ _pdf_url?: string;
26412
+ _print_plek_id?: string;
26413
+ _werkplek?: string;
26414
+ };
26415
+ Returns: {
26416
+ bestaand: boolean;
26417
+ job_id: string;
26418
+ printer_id: string;
26419
+ }[];
26420
+ };
26096
26421
  list_medewerkers: {
26097
26422
  Args: never;
26098
26423
  Returns: {
@@ -26370,6 +26695,12 @@ export declare const replanOrderLoadCarriers: import("@tanstack/start-client-cor
26370
26695
  };
26371
26696
  Returns: number;
26372
26697
  };
26698
+ logistics_cart_barcode_opschonen: {
26699
+ Args: {
26700
+ p_portie?: number;
26701
+ };
26702
+ Returns: import("../integrations/supabase/types").Json;
26703
+ };
26373
26704
  logistics_cart_barcode_value: {
26374
26705
  Args: {
26375
26706
  _cart_id: string;
@@ -26789,6 +27120,13 @@ export declare const replanOrderLoadCarriers: import("@tanstack/start-client-cor
26789
27120
  };
26790
27121
  Returns: import("../integrations/supabase/types").Json;
26791
27122
  };
27123
+ logistics_control_scan_print_own: {
27124
+ Args: {
27125
+ p_is_herprint?: boolean;
27126
+ p_scan_id: string;
27127
+ };
27128
+ Returns: import("../integrations/supabase/types").Json;
27129
+ };
26792
27130
  logistics_control_scan_retry: {
26793
27131
  Args: {
26794
27132
  _id: string;
@@ -27693,6 +28031,21 @@ export declare const replanOrderLoadCarriers: import("@tanstack/start-client-cor
27693
28031
  };
27694
28032
  Returns: import("../integrations/supabase/types").Json;
27695
28033
  };
28034
+ logistics_print_via_layout: {
28035
+ Args: {
28036
+ _documentnaam: string;
28037
+ _documenttype: string;
28038
+ _herkomst: string;
28039
+ _idempotentie_sleutel: string;
28040
+ _is_herprint: boolean;
28041
+ _layout_id: string;
28042
+ _payload: import("../integrations/supabase/types").Json;
28043
+ _pdf_base64: string;
28044
+ _pdf_url: string;
28045
+ _print_plek_id: string;
28046
+ };
28047
+ Returns: import("../integrations/supabase/types").Json;
28048
+ };
27696
28049
  logistics_prune_buffer_member_queue: {
27697
28050
  Args: never;
27698
28051
  Returns: number;
@@ -27979,6 +28332,13 @@ export declare const replanOrderLoadCarriers: import("@tanstack/start-client-cor
27979
28332
  };
27980
28333
  Returns: string;
27981
28334
  };
28335
+ logistics_shipping_note_status: {
28336
+ Args: {
28337
+ p_cart_id?: string;
28338
+ p_slip_job_id?: string;
28339
+ };
28340
+ Returns: import("../integrations/supabase/types").Json;
28341
+ };
27982
28342
  logistics_shipping_notes_wake_all: {
27983
28343
  Args: never;
27984
28344
  Returns: import("../integrations/supabase/types").Json;
@@ -28041,6 +28401,12 @@ export declare const replanOrderLoadCarriers: import("@tanstack/start-client-cor
28041
28401
  };
28042
28402
  Returns: undefined;
28043
28403
  };
28404
+ logistics_slip_note_retry: {
28405
+ Args: {
28406
+ _id: string;
28407
+ };
28408
+ Returns: import("../integrations/supabase/types").Json;
28409
+ };
28044
28410
  logistics_sticker_follows_slip: {
28045
28411
  Args: never;
28046
28412
  Returns: boolean;
@@ -28785,6 +29151,10 @@ export declare const replanOrderLoadCarriers: import("@tanstack/start-client-cor
28785
29151
  };
28786
29152
  Returns: string;
28787
29153
  };
29154
+ pick_is_reference_admin: {
29155
+ Args: never;
29156
+ Returns: boolean;
29157
+ };
28788
29158
  pick_mark_printed: {
28789
29159
  Args: {
28790
29160
  _queue_item_id: string;
@@ -29658,6 +30028,13 @@ export declare const replanOrderLoadCarriers: import("@tanstack/start-client-cor
29658
30028
  };
29659
30029
  Returns: import("../integrations/supabase/types").Json;
29660
30030
  };
30031
+ scan_controleer_pincode: {
30032
+ Args: {
30033
+ p_pin: string;
30034
+ p_scanner_id: string;
30035
+ };
30036
+ Returns: boolean;
30037
+ };
29661
30038
  scan_dashboard_stats: {
29662
30039
  Args: {
29663
30040
  p_dagen?: number;
@@ -29677,6 +30054,12 @@ export declare const replanOrderLoadCarriers: import("@tanstack/start-client-cor
29677
30054
  };
29678
30055
  Returns: import("../integrations/supabase/types").Json;
29679
30056
  };
30057
+ scan_heeft_pincode: {
30058
+ Args: {
30059
+ p_scanner_id: string;
30060
+ };
30061
+ Returns: boolean;
30062
+ };
29680
30063
  scan_kar_compleet: {
29681
30064
  Args: {
29682
30065
  p_allow_reprint?: boolean;
@@ -29694,6 +30077,7 @@ export declare const replanOrderLoadCarriers: import("@tanstack/start-client-cor
29694
30077
  Args: {
29695
30078
  p_code: string;
29696
30079
  p_latency_ms?: number;
30080
+ p_medewerker?: string;
29697
30081
  p_message?: string;
29698
30082
  p_result: string;
29699
30083
  p_scanner_key?: string;
@@ -29766,6 +30150,22 @@ export declare const replanOrderLoadCarriers: import("@tanstack/start-client-cor
29766
30150
  };
29767
30151
  Returns: undefined;
29768
30152
  };
30153
+ scan_scanner_info: {
30154
+ Args: {
30155
+ p_slug: string;
30156
+ };
30157
+ Returns: {
30158
+ actief: boolean;
30159
+ heeft_pincode: boolean;
30160
+ id: string;
30161
+ naam: string;
30162
+ omschrijving: string;
30163
+ printer_id: string;
30164
+ type: string;
30165
+ vereist_medewerker: boolean;
30166
+ werkplek: string;
30167
+ }[];
30168
+ };
29769
30169
  scan_sessie_annuleren: {
29770
30170
  Args: {
29771
30171
  p_sessie_id: string;
@@ -30728,6 +31128,21 @@ export declare const replanOrderLoadCarriers: import("@tanstack/start-client-cor
30728
31128
  };
30729
31129
  Returns: import("../integrations/supabase/types").Json;
30730
31130
  };
31131
+ wo_list_colleague_planning: {
31132
+ Args: {
31133
+ _from: string;
31134
+ _monteur_id: string;
31135
+ _to: string;
31136
+ };
31137
+ Returns: {
31138
+ end_at: string;
31139
+ id: string;
31140
+ role: string;
31141
+ start_at: string;
31142
+ status: string;
31143
+ werkbon_id: string;
31144
+ }[];
31145
+ };
30731
31146
  wo_list_offerte_requests: {
30732
31147
  Args: {
30733
31148
  _status?: string;
@@ -31541,6 +31956,27 @@ export declare const replanBufferLoadCarriers: import("@tanstack/start-client-co
31541
31956
  };
31542
31957
  Relationships: [];
31543
31958
  };
31959
+ artikelen_instellingen: {
31960
+ Row: {
31961
+ created_at: string;
31962
+ id: number;
31963
+ marge_procent: number;
31964
+ updated_at: string;
31965
+ };
31966
+ Insert: {
31967
+ created_at?: string;
31968
+ id?: number;
31969
+ marge_procent?: number;
31970
+ updated_at?: string;
31971
+ };
31972
+ Update: {
31973
+ created_at?: string;
31974
+ id?: number;
31975
+ marge_procent?: number;
31976
+ updated_at?: string;
31977
+ };
31978
+ Relationships: [];
31979
+ };
31544
31980
  artikelen_veldconfig: {
31545
31981
  Row: {
31546
31982
  bron_pad: string;
@@ -41216,6 +41652,30 @@ export declare const replanBufferLoadCarriers: import("@tanstack/start-client-co
41216
41652
  };
41217
41653
  Relationships: [];
41218
41654
  };
41655
+ logistics_cart_barcode_archief: {
41656
+ Row: {
41657
+ barcode: string;
41658
+ cart_id: string;
41659
+ created_at: string | null;
41660
+ gearchiveerd_op: string;
41661
+ order_id: string | null;
41662
+ };
41663
+ Insert: {
41664
+ barcode: string;
41665
+ cart_id: string;
41666
+ created_at?: string | null;
41667
+ gearchiveerd_op?: string;
41668
+ order_id?: string | null;
41669
+ };
41670
+ Update: {
41671
+ barcode?: string;
41672
+ cart_id?: string;
41673
+ created_at?: string | null;
41674
+ gearchiveerd_op?: string;
41675
+ order_id?: string | null;
41676
+ };
41677
+ Relationships: [];
41678
+ };
41219
41679
  logistics_control_scan: {
41220
41680
  Row: {
41221
41681
  approved_at: string | null;
@@ -45502,6 +45962,7 @@ export declare const replanBufferLoadCarriers: import("@tanstack/start-client-co
45502
45962
  next_attempt_at: string;
45503
45963
  order_id: string;
45504
45964
  processed_at: string | null;
45965
+ send_error: string | null;
45505
45966
  status: string;
45506
45967
  updated_at: string;
45507
45968
  };
@@ -45515,6 +45976,7 @@ export declare const replanBufferLoadCarriers: import("@tanstack/start-client-co
45515
45976
  next_attempt_at?: string;
45516
45977
  order_id: string;
45517
45978
  processed_at?: string | null;
45979
+ send_error?: string | null;
45518
45980
  status?: string;
45519
45981
  updated_at?: string;
45520
45982
  };
@@ -45528,6 +45990,7 @@ export declare const replanBufferLoadCarriers: import("@tanstack/start-client-co
45528
45990
  next_attempt_at?: string;
45529
45991
  order_id?: string;
45530
45992
  processed_at?: string | null;
45993
+ send_error?: string | null;
45531
45994
  status?: string;
45532
45995
  updated_at?: string;
45533
45996
  };
@@ -46866,18 +47329,24 @@ export declare const replanBufferLoadCarriers: import("@tanstack/start-client-co
46866
47329
  Row: {
46867
47330
  id: boolean;
46868
47331
  last_cleanup_at: string | null;
47332
+ last_error: string | null;
47333
+ last_error_at: string | null;
46869
47334
  last_sync_at: string | null;
46870
47335
  updated_at: string;
46871
47336
  };
46872
47337
  Insert: {
46873
47338
  id?: boolean;
46874
47339
  last_cleanup_at?: string | null;
47340
+ last_error?: string | null;
47341
+ last_error_at?: string | null;
46875
47342
  last_sync_at?: string | null;
46876
47343
  updated_at?: string;
46877
47344
  };
46878
47345
  Update: {
46879
47346
  id?: boolean;
46880
47347
  last_cleanup_at?: string | null;
47348
+ last_error?: string | null;
47349
+ last_error_at?: string | null;
46881
47350
  last_sync_at?: string | null;
46882
47351
  updated_at?: string;
46883
47352
  };
@@ -48565,6 +49034,9 @@ export declare const replanBufferLoadCarriers: import("@tanstack/start-client-co
48565
49034
  lead_time_days: number | null;
48566
49035
  min_order_quantity: number | null;
48567
49036
  notes: string | null;
49037
+ previous_price_cents: number | null;
49038
+ price_source: string;
49039
+ price_updated_at: string | null;
48568
49040
  product_id: string;
48569
49041
  purchase_price_cents: number | null;
48570
49042
  supplier_article_number: string | null;
@@ -48578,6 +49050,9 @@ export declare const replanBufferLoadCarriers: import("@tanstack/start-client-co
48578
49050
  lead_time_days?: number | null;
48579
49051
  min_order_quantity?: number | null;
48580
49052
  notes?: string | null;
49053
+ previous_price_cents?: number | null;
49054
+ price_source?: string;
49055
+ price_updated_at?: string | null;
48581
49056
  product_id: string;
48582
49057
  purchase_price_cents?: number | null;
48583
49058
  supplier_article_number?: string | null;
@@ -48591,6 +49066,9 @@ export declare const replanBufferLoadCarriers: import("@tanstack/start-client-co
48591
49066
  lead_time_days?: number | null;
48592
49067
  min_order_quantity?: number | null;
48593
49068
  notes?: string | null;
49069
+ previous_price_cents?: number | null;
49070
+ price_source?: string;
49071
+ price_updated_at?: string | null;
48594
49072
  product_id?: string;
48595
49073
  purchase_price_cents?: number | null;
48596
49074
  supplier_article_number?: string | null;
@@ -49121,9 +49599,13 @@ export declare const replanBufferLoadCarriers: import("@tanstack/start-client-co
49121
49599
  purchase_order_items: {
49122
49600
  Row: {
49123
49601
  article_number: string | null;
49602
+ cancel_reason: string | null;
49603
+ cancelled_at: string | null;
49124
49604
  created_at: string;
49125
49605
  delivery_date: string | null;
49126
49606
  id: string;
49607
+ incoming_booked: number;
49608
+ line_status: string;
49127
49609
  name: string;
49128
49610
  note: string | null;
49129
49611
  pot_size: string | null;
@@ -49131,6 +49613,8 @@ export declare const replanBufferLoadCarriers: import("@tanstack/start-client-co
49131
49613
  product_type: string;
49132
49614
  purchase_order_id: string;
49133
49615
  quantity: number;
49616
+ received_at: string | null;
49617
+ received_booked: number;
49134
49618
  supplier_id: string | null;
49135
49619
  supplier_product_id: string | null;
49136
49620
  unit_price_cents: number;
@@ -49138,9 +49622,13 @@ export declare const replanBufferLoadCarriers: import("@tanstack/start-client-co
49138
49622
  };
49139
49623
  Insert: {
49140
49624
  article_number?: string | null;
49625
+ cancel_reason?: string | null;
49626
+ cancelled_at?: string | null;
49141
49627
  created_at?: string;
49142
49628
  delivery_date?: string | null;
49143
49629
  id?: string;
49630
+ incoming_booked?: number;
49631
+ line_status?: string;
49144
49632
  name?: string;
49145
49633
  note?: string | null;
49146
49634
  pot_size?: string | null;
@@ -49148,6 +49636,8 @@ export declare const replanBufferLoadCarriers: import("@tanstack/start-client-co
49148
49636
  product_type?: string;
49149
49637
  purchase_order_id: string;
49150
49638
  quantity?: number;
49639
+ received_at?: string | null;
49640
+ received_booked?: number;
49151
49641
  supplier_id?: string | null;
49152
49642
  supplier_product_id?: string | null;
49153
49643
  unit_price_cents?: number;
@@ -49155,9 +49645,13 @@ export declare const replanBufferLoadCarriers: import("@tanstack/start-client-co
49155
49645
  };
49156
49646
  Update: {
49157
49647
  article_number?: string | null;
49648
+ cancel_reason?: string | null;
49649
+ cancelled_at?: string | null;
49158
49650
  created_at?: string;
49159
49651
  delivery_date?: string | null;
49160
49652
  id?: string;
49653
+ incoming_booked?: number;
49654
+ line_status?: string;
49161
49655
  name?: string;
49162
49656
  note?: string | null;
49163
49657
  pot_size?: string | null;
@@ -49165,6 +49659,8 @@ export declare const replanBufferLoadCarriers: import("@tanstack/start-client-co
49165
49659
  product_type?: string;
49166
49660
  purchase_order_id?: string;
49167
49661
  quantity?: number;
49662
+ received_at?: string | null;
49663
+ received_booked?: number;
49168
49664
  supplier_id?: string | null;
49169
49665
  supplier_product_id?: string | null;
49170
49666
  unit_price_cents?: number;
@@ -49268,6 +49764,153 @@ export declare const replanBufferLoadCarriers: import("@tanstack/start-client-co
49268
49764
  referencedColumns: ["id"];
49269
49765
  }];
49270
49766
  };
49767
+ purchase_request_events: {
49768
+ Row: {
49769
+ created_at: string;
49770
+ details: import("../integrations/supabase/types").Json | null;
49771
+ event_type: string;
49772
+ id: string;
49773
+ request_id: string;
49774
+ };
49775
+ Insert: {
49776
+ created_at?: string;
49777
+ details?: import("../integrations/supabase/types").Json | null;
49778
+ event_type: string;
49779
+ id?: string;
49780
+ request_id: string;
49781
+ };
49782
+ Update: {
49783
+ created_at?: string;
49784
+ details?: import("../integrations/supabase/types").Json | null;
49785
+ event_type?: string;
49786
+ id?: string;
49787
+ request_id?: string;
49788
+ };
49789
+ Relationships: [{
49790
+ foreignKeyName: "purchase_request_events_request_id_fkey";
49791
+ columns: ["request_id"];
49792
+ isOneToOne: false;
49793
+ referencedRelation: "purchase_requests";
49794
+ referencedColumns: ["id"];
49795
+ }];
49796
+ };
49797
+ purchase_request_responses: {
49798
+ Row: {
49799
+ confirmed_date: string | null;
49800
+ confirmed_price_cents: number | null;
49801
+ confirmed_quantity: number;
49802
+ created_at: string;
49803
+ id: string;
49804
+ not_available: boolean;
49805
+ note: string | null;
49806
+ purchase_order_item_id: string;
49807
+ request_id: string;
49808
+ updated_at: string;
49809
+ };
49810
+ Insert: {
49811
+ confirmed_date?: string | null;
49812
+ confirmed_price_cents?: number | null;
49813
+ confirmed_quantity?: number;
49814
+ created_at?: string;
49815
+ id?: string;
49816
+ not_available?: boolean;
49817
+ note?: string | null;
49818
+ purchase_order_item_id: string;
49819
+ request_id: string;
49820
+ updated_at?: string;
49821
+ };
49822
+ Update: {
49823
+ confirmed_date?: string | null;
49824
+ confirmed_price_cents?: number | null;
49825
+ confirmed_quantity?: number;
49826
+ created_at?: string;
49827
+ id?: string;
49828
+ not_available?: boolean;
49829
+ note?: string | null;
49830
+ purchase_order_item_id?: string;
49831
+ request_id?: string;
49832
+ updated_at?: string;
49833
+ };
49834
+ Relationships: [{
49835
+ foreignKeyName: "purchase_request_responses_purchase_order_item_id_fkey";
49836
+ columns: ["purchase_order_item_id"];
49837
+ isOneToOne: false;
49838
+ referencedRelation: "purchase_order_items";
49839
+ referencedColumns: ["id"];
49840
+ }, {
49841
+ foreignKeyName: "purchase_request_responses_request_id_fkey";
49842
+ columns: ["request_id"];
49843
+ isOneToOne: false;
49844
+ referencedRelation: "purchase_requests";
49845
+ referencedColumns: ["id"];
49846
+ }];
49847
+ };
49848
+ purchase_requests: {
49849
+ Row: {
49850
+ created_at: string;
49851
+ expires_at: string;
49852
+ first_viewed_at: string | null;
49853
+ id: string;
49854
+ processed_at: string | null;
49855
+ purchase_order_id: string;
49856
+ responded_at: string | null;
49857
+ sent_at: string;
49858
+ status: string;
49859
+ supplier_id: string | null;
49860
+ supplier_name: string;
49861
+ supplier_note: string | null;
49862
+ to_address: string | null;
49863
+ token_hash: string;
49864
+ updated_at: string;
49865
+ };
49866
+ Insert: {
49867
+ created_at?: string;
49868
+ expires_at?: string;
49869
+ first_viewed_at?: string | null;
49870
+ id?: string;
49871
+ processed_at?: string | null;
49872
+ purchase_order_id: string;
49873
+ responded_at?: string | null;
49874
+ sent_at?: string;
49875
+ status?: string;
49876
+ supplier_id?: string | null;
49877
+ supplier_name?: string;
49878
+ supplier_note?: string | null;
49879
+ to_address?: string | null;
49880
+ token_hash: string;
49881
+ updated_at?: string;
49882
+ };
49883
+ Update: {
49884
+ created_at?: string;
49885
+ expires_at?: string;
49886
+ first_viewed_at?: string | null;
49887
+ id?: string;
49888
+ processed_at?: string | null;
49889
+ purchase_order_id?: string;
49890
+ responded_at?: string | null;
49891
+ sent_at?: string;
49892
+ status?: string;
49893
+ supplier_id?: string | null;
49894
+ supplier_name?: string;
49895
+ supplier_note?: string | null;
49896
+ to_address?: string | null;
49897
+ token_hash?: string;
49898
+ updated_at?: string;
49899
+ };
49900
+ Relationships: [{
49901
+ foreignKeyName: "purchase_requests_purchase_order_id_fkey";
49902
+ columns: ["purchase_order_id"];
49903
+ isOneToOne: false;
49904
+ referencedRelation: "purchase_orders";
49905
+ referencedColumns: ["id"];
49906
+ }, {
49907
+ foreignKeyName: "purchase_requests_supplier_id_fkey";
49908
+ columns: ["supplier_id"];
49909
+ isOneToOne: false;
49910
+ referencedRelation: "suppliers";
49911
+ referencedColumns: ["id"];
49912
+ }];
49913
+ };
49271
49914
  reception_notifications: {
49272
49915
  Row: {
49273
49916
  booking_id: string | null;
@@ -51431,6 +52074,7 @@ export declare const replanBufferLoadCarriers: import("@tanstack/start-client-co
51431
52074
  auto_invoice_enabled: boolean;
51432
52075
  auto_invoice_start_date: string | null;
51433
52076
  auto_invoice_trigger_statuses: string[];
52077
+ auto_send_mode: string | null;
51434
52078
  created_at: string;
51435
52079
  debtor_gl_account: string;
51436
52080
  default_article_code: string | null;
@@ -51459,6 +52103,7 @@ export declare const replanBufferLoadCarriers: import("@tanstack/start-client-co
51459
52103
  auto_invoice_enabled?: boolean;
51460
52104
  auto_invoice_start_date?: string | null;
51461
52105
  auto_invoice_trigger_statuses?: string[];
52106
+ auto_send_mode?: string | null;
51462
52107
  created_at?: string;
51463
52108
  debtor_gl_account?: string;
51464
52109
  default_article_code?: string | null;
@@ -51487,6 +52132,7 @@ export declare const replanBufferLoadCarriers: import("@tanstack/start-client-co
51487
52132
  auto_invoice_enabled?: boolean;
51488
52133
  auto_invoice_start_date?: string | null;
51489
52134
  auto_invoice_trigger_statuses?: string[];
52135
+ auto_send_mode?: string | null;
51490
52136
  created_at?: string;
51491
52137
  debtor_gl_account?: string;
51492
52138
  default_article_code?: string | null;
@@ -56720,13 +57366,66 @@ export declare const replanBufferLoadCarriers: import("@tanstack/start-client-co
56720
57366
  };
56721
57367
  Returns: import("../integrations/supabase/types").Json;
56722
57368
  };
57369
+ inkoop_cancel_line: {
57370
+ Args: {
57371
+ _item_id: string;
57372
+ _reason: string;
57373
+ };
57374
+ Returns: string;
57375
+ };
57376
+ inkoop_get_supplier_request: {
57377
+ Args: {
57378
+ _token: string;
57379
+ };
57380
+ Returns: import("../integrations/supabase/types").Json;
57381
+ };
57382
+ inkoop_hash_token: {
57383
+ Args: {
57384
+ _token: string;
57385
+ };
57386
+ Returns: string;
57387
+ };
57388
+ inkoop_html_escape: {
57389
+ Args: {
57390
+ _t: string;
57391
+ };
57392
+ Returns: string;
57393
+ };
57394
+ inkoop_list_artikelen: {
57395
+ Args: never;
57396
+ Returns: {
57397
+ article_number: string;
57398
+ barcode: string;
57399
+ id: string;
57400
+ incoming_quantity: number;
57401
+ is_layer: boolean;
57402
+ location: string;
57403
+ min_quantity: number;
57404
+ preferred_supplier_name: string;
57405
+ product: string;
57406
+ product_type: string;
57407
+ purchase_price: number;
57408
+ quantity: number;
57409
+ sale_price: number;
57410
+ supplier_count: number;
57411
+ unit: string;
57412
+ }[];
57413
+ };
56723
57414
  inkoop_next_order_number: {
56724
57415
  Args: never;
56725
57416
  Returns: string;
56726
57417
  };
57418
+ inkoop_process_request: {
57419
+ Args: {
57420
+ _request_id: string;
57421
+ };
57422
+ Returns: undefined;
57423
+ };
56727
57424
  inkoop_send_order: {
56728
57425
  Args: {
57426
+ _base_url?: string;
56729
57427
  _order_id: string;
57428
+ _resend?: boolean;
56730
57429
  };
56731
57430
  Returns: {
56732
57431
  outbox_id: string;
@@ -56741,6 +57440,26 @@ export declare const replanBufferLoadCarriers: import("@tanstack/start-client-co
56741
57440
  };
56742
57441
  Returns: undefined;
56743
57442
  };
57443
+ inkoop_stock_key: {
57444
+ Args: {
57445
+ p_product_id: string;
57446
+ };
57447
+ Returns: string;
57448
+ };
57449
+ inkoop_submit_supplier_response: {
57450
+ Args: {
57451
+ _lines: import("../integrations/supabase/types").Json;
57452
+ _note?: string;
57453
+ _token: string;
57454
+ };
57455
+ Returns: import("../integrations/supabase/types").Json;
57456
+ };
57457
+ inkoop_sync_item_stock: {
57458
+ Args: {
57459
+ p_item_id: string;
57460
+ };
57461
+ Returns: undefined;
57462
+ };
56744
57463
  instructie_get: {
56745
57464
  Args: {
56746
57465
  _sleutel: string;
@@ -56901,6 +57620,27 @@ export declare const replanBufferLoadCarriers: import("@tanstack/start-client-co
56901
57620
  };
56902
57621
  Returns: boolean;
56903
57622
  };
57623
+ layout_print_document: {
57624
+ Args: {
57625
+ _documentnaam: string;
57626
+ _documenttype: string;
57627
+ _herkomst?: string;
57628
+ _idempotentie_sleutel?: string;
57629
+ _is_herprint?: boolean;
57630
+ _kopieen?: number;
57631
+ _layout_id?: string;
57632
+ _payload?: import("../integrations/supabase/types").Json;
57633
+ _pdf_base64?: string;
57634
+ _pdf_url?: string;
57635
+ _print_plek_id?: string;
57636
+ _werkplek?: string;
57637
+ };
57638
+ Returns: {
57639
+ bestaand: boolean;
57640
+ job_id: string;
57641
+ printer_id: string;
57642
+ }[];
57643
+ };
56904
57644
  list_medewerkers: {
56905
57645
  Args: never;
56906
57646
  Returns: {
@@ -57178,6 +57918,12 @@ export declare const replanBufferLoadCarriers: import("@tanstack/start-client-co
57178
57918
  };
57179
57919
  Returns: number;
57180
57920
  };
57921
+ logistics_cart_barcode_opschonen: {
57922
+ Args: {
57923
+ p_portie?: number;
57924
+ };
57925
+ Returns: import("../integrations/supabase/types").Json;
57926
+ };
57181
57927
  logistics_cart_barcode_value: {
57182
57928
  Args: {
57183
57929
  _cart_id: string;
@@ -57597,6 +58343,13 @@ export declare const replanBufferLoadCarriers: import("@tanstack/start-client-co
57597
58343
  };
57598
58344
  Returns: import("../integrations/supabase/types").Json;
57599
58345
  };
58346
+ logistics_control_scan_print_own: {
58347
+ Args: {
58348
+ p_is_herprint?: boolean;
58349
+ p_scan_id: string;
58350
+ };
58351
+ Returns: import("../integrations/supabase/types").Json;
58352
+ };
57600
58353
  logistics_control_scan_retry: {
57601
58354
  Args: {
57602
58355
  _id: string;
@@ -58501,6 +59254,21 @@ export declare const replanBufferLoadCarriers: import("@tanstack/start-client-co
58501
59254
  };
58502
59255
  Returns: import("../integrations/supabase/types").Json;
58503
59256
  };
59257
+ logistics_print_via_layout: {
59258
+ Args: {
59259
+ _documentnaam: string;
59260
+ _documenttype: string;
59261
+ _herkomst: string;
59262
+ _idempotentie_sleutel: string;
59263
+ _is_herprint: boolean;
59264
+ _layout_id: string;
59265
+ _payload: import("../integrations/supabase/types").Json;
59266
+ _pdf_base64: string;
59267
+ _pdf_url: string;
59268
+ _print_plek_id: string;
59269
+ };
59270
+ Returns: import("../integrations/supabase/types").Json;
59271
+ };
58504
59272
  logistics_prune_buffer_member_queue: {
58505
59273
  Args: never;
58506
59274
  Returns: number;
@@ -58787,6 +59555,13 @@ export declare const replanBufferLoadCarriers: import("@tanstack/start-client-co
58787
59555
  };
58788
59556
  Returns: string;
58789
59557
  };
59558
+ logistics_shipping_note_status: {
59559
+ Args: {
59560
+ p_cart_id?: string;
59561
+ p_slip_job_id?: string;
59562
+ };
59563
+ Returns: import("../integrations/supabase/types").Json;
59564
+ };
58790
59565
  logistics_shipping_notes_wake_all: {
58791
59566
  Args: never;
58792
59567
  Returns: import("../integrations/supabase/types").Json;
@@ -58849,6 +59624,12 @@ export declare const replanBufferLoadCarriers: import("@tanstack/start-client-co
58849
59624
  };
58850
59625
  Returns: undefined;
58851
59626
  };
59627
+ logistics_slip_note_retry: {
59628
+ Args: {
59629
+ _id: string;
59630
+ };
59631
+ Returns: import("../integrations/supabase/types").Json;
59632
+ };
58852
59633
  logistics_sticker_follows_slip: {
58853
59634
  Args: never;
58854
59635
  Returns: boolean;
@@ -59593,6 +60374,10 @@ export declare const replanBufferLoadCarriers: import("@tanstack/start-client-co
59593
60374
  };
59594
60375
  Returns: string;
59595
60376
  };
60377
+ pick_is_reference_admin: {
60378
+ Args: never;
60379
+ Returns: boolean;
60380
+ };
59596
60381
  pick_mark_printed: {
59597
60382
  Args: {
59598
60383
  _queue_item_id: string;
@@ -60466,6 +61251,13 @@ export declare const replanBufferLoadCarriers: import("@tanstack/start-client-co
60466
61251
  };
60467
61252
  Returns: import("../integrations/supabase/types").Json;
60468
61253
  };
61254
+ scan_controleer_pincode: {
61255
+ Args: {
61256
+ p_pin: string;
61257
+ p_scanner_id: string;
61258
+ };
61259
+ Returns: boolean;
61260
+ };
60469
61261
  scan_dashboard_stats: {
60470
61262
  Args: {
60471
61263
  p_dagen?: number;
@@ -60485,6 +61277,12 @@ export declare const replanBufferLoadCarriers: import("@tanstack/start-client-co
60485
61277
  };
60486
61278
  Returns: import("../integrations/supabase/types").Json;
60487
61279
  };
61280
+ scan_heeft_pincode: {
61281
+ Args: {
61282
+ p_scanner_id: string;
61283
+ };
61284
+ Returns: boolean;
61285
+ };
60488
61286
  scan_kar_compleet: {
60489
61287
  Args: {
60490
61288
  p_allow_reprint?: boolean;
@@ -60502,6 +61300,7 @@ export declare const replanBufferLoadCarriers: import("@tanstack/start-client-co
60502
61300
  Args: {
60503
61301
  p_code: string;
60504
61302
  p_latency_ms?: number;
61303
+ p_medewerker?: string;
60505
61304
  p_message?: string;
60506
61305
  p_result: string;
60507
61306
  p_scanner_key?: string;
@@ -60574,6 +61373,22 @@ export declare const replanBufferLoadCarriers: import("@tanstack/start-client-co
60574
61373
  };
60575
61374
  Returns: undefined;
60576
61375
  };
61376
+ scan_scanner_info: {
61377
+ Args: {
61378
+ p_slug: string;
61379
+ };
61380
+ Returns: {
61381
+ actief: boolean;
61382
+ heeft_pincode: boolean;
61383
+ id: string;
61384
+ naam: string;
61385
+ omschrijving: string;
61386
+ printer_id: string;
61387
+ type: string;
61388
+ vereist_medewerker: boolean;
61389
+ werkplek: string;
61390
+ }[];
61391
+ };
60577
61392
  scan_sessie_annuleren: {
60578
61393
  Args: {
60579
61394
  p_sessie_id: string;
@@ -61536,6 +62351,21 @@ export declare const replanBufferLoadCarriers: import("@tanstack/start-client-co
61536
62351
  };
61537
62352
  Returns: import("../integrations/supabase/types").Json;
61538
62353
  };
62354
+ wo_list_colleague_planning: {
62355
+ Args: {
62356
+ _from: string;
62357
+ _monteur_id: string;
62358
+ _to: string;
62359
+ };
62360
+ Returns: {
62361
+ end_at: string;
62362
+ id: string;
62363
+ role: string;
62364
+ start_at: string;
62365
+ status: string;
62366
+ werkbon_id: string;
62367
+ }[];
62368
+ };
61539
62369
  wo_list_offerte_requests: {
61540
62370
  Args: {
61541
62371
  _status?: string;
@@ -62353,6 +63183,27 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
62353
63183
  };
62354
63184
  Relationships: [];
62355
63185
  };
63186
+ artikelen_instellingen: {
63187
+ Row: {
63188
+ created_at: string;
63189
+ id: number;
63190
+ marge_procent: number;
63191
+ updated_at: string;
63192
+ };
63193
+ Insert: {
63194
+ created_at?: string;
63195
+ id?: number;
63196
+ marge_procent?: number;
63197
+ updated_at?: string;
63198
+ };
63199
+ Update: {
63200
+ created_at?: string;
63201
+ id?: number;
63202
+ marge_procent?: number;
63203
+ updated_at?: string;
63204
+ };
63205
+ Relationships: [];
63206
+ };
62356
63207
  artikelen_veldconfig: {
62357
63208
  Row: {
62358
63209
  bron_pad: string;
@@ -72028,6 +72879,30 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
72028
72879
  };
72029
72880
  Relationships: [];
72030
72881
  };
72882
+ logistics_cart_barcode_archief: {
72883
+ Row: {
72884
+ barcode: string;
72885
+ cart_id: string;
72886
+ created_at: string | null;
72887
+ gearchiveerd_op: string;
72888
+ order_id: string | null;
72889
+ };
72890
+ Insert: {
72891
+ barcode: string;
72892
+ cart_id: string;
72893
+ created_at?: string | null;
72894
+ gearchiveerd_op?: string;
72895
+ order_id?: string | null;
72896
+ };
72897
+ Update: {
72898
+ barcode?: string;
72899
+ cart_id?: string;
72900
+ created_at?: string | null;
72901
+ gearchiveerd_op?: string;
72902
+ order_id?: string | null;
72903
+ };
72904
+ Relationships: [];
72905
+ };
72031
72906
  logistics_control_scan: {
72032
72907
  Row: {
72033
72908
  approved_at: string | null;
@@ -76314,6 +77189,7 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
76314
77189
  next_attempt_at: string;
76315
77190
  order_id: string;
76316
77191
  processed_at: string | null;
77192
+ send_error: string | null;
76317
77193
  status: string;
76318
77194
  updated_at: string;
76319
77195
  };
@@ -76327,6 +77203,7 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
76327
77203
  next_attempt_at?: string;
76328
77204
  order_id: string;
76329
77205
  processed_at?: string | null;
77206
+ send_error?: string | null;
76330
77207
  status?: string;
76331
77208
  updated_at?: string;
76332
77209
  };
@@ -76340,6 +77217,7 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
76340
77217
  next_attempt_at?: string;
76341
77218
  order_id?: string;
76342
77219
  processed_at?: string | null;
77220
+ send_error?: string | null;
76343
77221
  status?: string;
76344
77222
  updated_at?: string;
76345
77223
  };
@@ -77678,18 +78556,24 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
77678
78556
  Row: {
77679
78557
  id: boolean;
77680
78558
  last_cleanup_at: string | null;
78559
+ last_error: string | null;
78560
+ last_error_at: string | null;
77681
78561
  last_sync_at: string | null;
77682
78562
  updated_at: string;
77683
78563
  };
77684
78564
  Insert: {
77685
78565
  id?: boolean;
77686
78566
  last_cleanup_at?: string | null;
78567
+ last_error?: string | null;
78568
+ last_error_at?: string | null;
77687
78569
  last_sync_at?: string | null;
77688
78570
  updated_at?: string;
77689
78571
  };
77690
78572
  Update: {
77691
78573
  id?: boolean;
77692
78574
  last_cleanup_at?: string | null;
78575
+ last_error?: string | null;
78576
+ last_error_at?: string | null;
77693
78577
  last_sync_at?: string | null;
77694
78578
  updated_at?: string;
77695
78579
  };
@@ -79377,6 +80261,9 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
79377
80261
  lead_time_days: number | null;
79378
80262
  min_order_quantity: number | null;
79379
80263
  notes: string | null;
80264
+ previous_price_cents: number | null;
80265
+ price_source: string;
80266
+ price_updated_at: string | null;
79380
80267
  product_id: string;
79381
80268
  purchase_price_cents: number | null;
79382
80269
  supplier_article_number: string | null;
@@ -79390,6 +80277,9 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
79390
80277
  lead_time_days?: number | null;
79391
80278
  min_order_quantity?: number | null;
79392
80279
  notes?: string | null;
80280
+ previous_price_cents?: number | null;
80281
+ price_source?: string;
80282
+ price_updated_at?: string | null;
79393
80283
  product_id: string;
79394
80284
  purchase_price_cents?: number | null;
79395
80285
  supplier_article_number?: string | null;
@@ -79403,6 +80293,9 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
79403
80293
  lead_time_days?: number | null;
79404
80294
  min_order_quantity?: number | null;
79405
80295
  notes?: string | null;
80296
+ previous_price_cents?: number | null;
80297
+ price_source?: string;
80298
+ price_updated_at?: string | null;
79406
80299
  product_id?: string;
79407
80300
  purchase_price_cents?: number | null;
79408
80301
  supplier_article_number?: string | null;
@@ -79933,9 +80826,13 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
79933
80826
  purchase_order_items: {
79934
80827
  Row: {
79935
80828
  article_number: string | null;
80829
+ cancel_reason: string | null;
80830
+ cancelled_at: string | null;
79936
80831
  created_at: string;
79937
80832
  delivery_date: string | null;
79938
80833
  id: string;
80834
+ incoming_booked: number;
80835
+ line_status: string;
79939
80836
  name: string;
79940
80837
  note: string | null;
79941
80838
  pot_size: string | null;
@@ -79943,6 +80840,8 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
79943
80840
  product_type: string;
79944
80841
  purchase_order_id: string;
79945
80842
  quantity: number;
80843
+ received_at: string | null;
80844
+ received_booked: number;
79946
80845
  supplier_id: string | null;
79947
80846
  supplier_product_id: string | null;
79948
80847
  unit_price_cents: number;
@@ -79950,9 +80849,13 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
79950
80849
  };
79951
80850
  Insert: {
79952
80851
  article_number?: string | null;
80852
+ cancel_reason?: string | null;
80853
+ cancelled_at?: string | null;
79953
80854
  created_at?: string;
79954
80855
  delivery_date?: string | null;
79955
80856
  id?: string;
80857
+ incoming_booked?: number;
80858
+ line_status?: string;
79956
80859
  name?: string;
79957
80860
  note?: string | null;
79958
80861
  pot_size?: string | null;
@@ -79960,6 +80863,8 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
79960
80863
  product_type?: string;
79961
80864
  purchase_order_id: string;
79962
80865
  quantity?: number;
80866
+ received_at?: string | null;
80867
+ received_booked?: number;
79963
80868
  supplier_id?: string | null;
79964
80869
  supplier_product_id?: string | null;
79965
80870
  unit_price_cents?: number;
@@ -79967,9 +80872,13 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
79967
80872
  };
79968
80873
  Update: {
79969
80874
  article_number?: string | null;
80875
+ cancel_reason?: string | null;
80876
+ cancelled_at?: string | null;
79970
80877
  created_at?: string;
79971
80878
  delivery_date?: string | null;
79972
80879
  id?: string;
80880
+ incoming_booked?: number;
80881
+ line_status?: string;
79973
80882
  name?: string;
79974
80883
  note?: string | null;
79975
80884
  pot_size?: string | null;
@@ -79977,6 +80886,8 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
79977
80886
  product_type?: string;
79978
80887
  purchase_order_id?: string;
79979
80888
  quantity?: number;
80889
+ received_at?: string | null;
80890
+ received_booked?: number;
79980
80891
  supplier_id?: string | null;
79981
80892
  supplier_product_id?: string | null;
79982
80893
  unit_price_cents?: number;
@@ -80080,6 +80991,153 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
80080
80991
  referencedColumns: ["id"];
80081
80992
  }];
80082
80993
  };
80994
+ purchase_request_events: {
80995
+ Row: {
80996
+ created_at: string;
80997
+ details: import("../integrations/supabase/types").Json | null;
80998
+ event_type: string;
80999
+ id: string;
81000
+ request_id: string;
81001
+ };
81002
+ Insert: {
81003
+ created_at?: string;
81004
+ details?: import("../integrations/supabase/types").Json | null;
81005
+ event_type: string;
81006
+ id?: string;
81007
+ request_id: string;
81008
+ };
81009
+ Update: {
81010
+ created_at?: string;
81011
+ details?: import("../integrations/supabase/types").Json | null;
81012
+ event_type?: string;
81013
+ id?: string;
81014
+ request_id?: string;
81015
+ };
81016
+ Relationships: [{
81017
+ foreignKeyName: "purchase_request_events_request_id_fkey";
81018
+ columns: ["request_id"];
81019
+ isOneToOne: false;
81020
+ referencedRelation: "purchase_requests";
81021
+ referencedColumns: ["id"];
81022
+ }];
81023
+ };
81024
+ purchase_request_responses: {
81025
+ Row: {
81026
+ confirmed_date: string | null;
81027
+ confirmed_price_cents: number | null;
81028
+ confirmed_quantity: number;
81029
+ created_at: string;
81030
+ id: string;
81031
+ not_available: boolean;
81032
+ note: string | null;
81033
+ purchase_order_item_id: string;
81034
+ request_id: string;
81035
+ updated_at: string;
81036
+ };
81037
+ Insert: {
81038
+ confirmed_date?: string | null;
81039
+ confirmed_price_cents?: number | null;
81040
+ confirmed_quantity?: number;
81041
+ created_at?: string;
81042
+ id?: string;
81043
+ not_available?: boolean;
81044
+ note?: string | null;
81045
+ purchase_order_item_id: string;
81046
+ request_id: string;
81047
+ updated_at?: string;
81048
+ };
81049
+ Update: {
81050
+ confirmed_date?: string | null;
81051
+ confirmed_price_cents?: number | null;
81052
+ confirmed_quantity?: number;
81053
+ created_at?: string;
81054
+ id?: string;
81055
+ not_available?: boolean;
81056
+ note?: string | null;
81057
+ purchase_order_item_id?: string;
81058
+ request_id?: string;
81059
+ updated_at?: string;
81060
+ };
81061
+ Relationships: [{
81062
+ foreignKeyName: "purchase_request_responses_purchase_order_item_id_fkey";
81063
+ columns: ["purchase_order_item_id"];
81064
+ isOneToOne: false;
81065
+ referencedRelation: "purchase_order_items";
81066
+ referencedColumns: ["id"];
81067
+ }, {
81068
+ foreignKeyName: "purchase_request_responses_request_id_fkey";
81069
+ columns: ["request_id"];
81070
+ isOneToOne: false;
81071
+ referencedRelation: "purchase_requests";
81072
+ referencedColumns: ["id"];
81073
+ }];
81074
+ };
81075
+ purchase_requests: {
81076
+ Row: {
81077
+ created_at: string;
81078
+ expires_at: string;
81079
+ first_viewed_at: string | null;
81080
+ id: string;
81081
+ processed_at: string | null;
81082
+ purchase_order_id: string;
81083
+ responded_at: string | null;
81084
+ sent_at: string;
81085
+ status: string;
81086
+ supplier_id: string | null;
81087
+ supplier_name: string;
81088
+ supplier_note: string | null;
81089
+ to_address: string | null;
81090
+ token_hash: string;
81091
+ updated_at: string;
81092
+ };
81093
+ Insert: {
81094
+ created_at?: string;
81095
+ expires_at?: string;
81096
+ first_viewed_at?: string | null;
81097
+ id?: string;
81098
+ processed_at?: string | null;
81099
+ purchase_order_id: string;
81100
+ responded_at?: string | null;
81101
+ sent_at?: string;
81102
+ status?: string;
81103
+ supplier_id?: string | null;
81104
+ supplier_name?: string;
81105
+ supplier_note?: string | null;
81106
+ to_address?: string | null;
81107
+ token_hash: string;
81108
+ updated_at?: string;
81109
+ };
81110
+ Update: {
81111
+ created_at?: string;
81112
+ expires_at?: string;
81113
+ first_viewed_at?: string | null;
81114
+ id?: string;
81115
+ processed_at?: string | null;
81116
+ purchase_order_id?: string;
81117
+ responded_at?: string | null;
81118
+ sent_at?: string;
81119
+ status?: string;
81120
+ supplier_id?: string | null;
81121
+ supplier_name?: string;
81122
+ supplier_note?: string | null;
81123
+ to_address?: string | null;
81124
+ token_hash?: string;
81125
+ updated_at?: string;
81126
+ };
81127
+ Relationships: [{
81128
+ foreignKeyName: "purchase_requests_purchase_order_id_fkey";
81129
+ columns: ["purchase_order_id"];
81130
+ isOneToOne: false;
81131
+ referencedRelation: "purchase_orders";
81132
+ referencedColumns: ["id"];
81133
+ }, {
81134
+ foreignKeyName: "purchase_requests_supplier_id_fkey";
81135
+ columns: ["supplier_id"];
81136
+ isOneToOne: false;
81137
+ referencedRelation: "suppliers";
81138
+ referencedColumns: ["id"];
81139
+ }];
81140
+ };
80083
81141
  reception_notifications: {
80084
81142
  Row: {
80085
81143
  booking_id: string | null;
@@ -82243,6 +83301,7 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
82243
83301
  auto_invoice_enabled: boolean;
82244
83302
  auto_invoice_start_date: string | null;
82245
83303
  auto_invoice_trigger_statuses: string[];
83304
+ auto_send_mode: string | null;
82246
83305
  created_at: string;
82247
83306
  debtor_gl_account: string;
82248
83307
  default_article_code: string | null;
@@ -82271,6 +83330,7 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
82271
83330
  auto_invoice_enabled?: boolean;
82272
83331
  auto_invoice_start_date?: string | null;
82273
83332
  auto_invoice_trigger_statuses?: string[];
83333
+ auto_send_mode?: string | null;
82274
83334
  created_at?: string;
82275
83335
  debtor_gl_account?: string;
82276
83336
  default_article_code?: string | null;
@@ -82299,6 +83359,7 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
82299
83359
  auto_invoice_enabled?: boolean;
82300
83360
  auto_invoice_start_date?: string | null;
82301
83361
  auto_invoice_trigger_statuses?: string[];
83362
+ auto_send_mode?: string | null;
82302
83363
  created_at?: string;
82303
83364
  debtor_gl_account?: string;
82304
83365
  default_article_code?: string | null;
@@ -87532,13 +88593,66 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
87532
88593
  };
87533
88594
  Returns: import("../integrations/supabase/types").Json;
87534
88595
  };
88596
+ inkoop_cancel_line: {
88597
+ Args: {
88598
+ _item_id: string;
88599
+ _reason: string;
88600
+ };
88601
+ Returns: string;
88602
+ };
88603
+ inkoop_get_supplier_request: {
88604
+ Args: {
88605
+ _token: string;
88606
+ };
88607
+ Returns: import("../integrations/supabase/types").Json;
88608
+ };
88609
+ inkoop_hash_token: {
88610
+ Args: {
88611
+ _token: string;
88612
+ };
88613
+ Returns: string;
88614
+ };
88615
+ inkoop_html_escape: {
88616
+ Args: {
88617
+ _t: string;
88618
+ };
88619
+ Returns: string;
88620
+ };
88621
+ inkoop_list_artikelen: {
88622
+ Args: never;
88623
+ Returns: {
88624
+ article_number: string;
88625
+ barcode: string;
88626
+ id: string;
88627
+ incoming_quantity: number;
88628
+ is_layer: boolean;
88629
+ location: string;
88630
+ min_quantity: number;
88631
+ preferred_supplier_name: string;
88632
+ product: string;
88633
+ product_type: string;
88634
+ purchase_price: number;
88635
+ quantity: number;
88636
+ sale_price: number;
88637
+ supplier_count: number;
88638
+ unit: string;
88639
+ }[];
88640
+ };
87535
88641
  inkoop_next_order_number: {
87536
88642
  Args: never;
87537
88643
  Returns: string;
87538
88644
  };
88645
+ inkoop_process_request: {
88646
+ Args: {
88647
+ _request_id: string;
88648
+ };
88649
+ Returns: undefined;
88650
+ };
87539
88651
  inkoop_send_order: {
87540
88652
  Args: {
88653
+ _base_url?: string;
87541
88654
  _order_id: string;
88655
+ _resend?: boolean;
87542
88656
  };
87543
88657
  Returns: {
87544
88658
  outbox_id: string;
@@ -87553,6 +88667,26 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
87553
88667
  };
87554
88668
  Returns: undefined;
87555
88669
  };
88670
+ inkoop_stock_key: {
88671
+ Args: {
88672
+ p_product_id: string;
88673
+ };
88674
+ Returns: string;
88675
+ };
88676
+ inkoop_submit_supplier_response: {
88677
+ Args: {
88678
+ _lines: import("../integrations/supabase/types").Json;
88679
+ _note?: string;
88680
+ _token: string;
88681
+ };
88682
+ Returns: import("../integrations/supabase/types").Json;
88683
+ };
88684
+ inkoop_sync_item_stock: {
88685
+ Args: {
88686
+ p_item_id: string;
88687
+ };
88688
+ Returns: undefined;
88689
+ };
87556
88690
  instructie_get: {
87557
88691
  Args: {
87558
88692
  _sleutel: string;
@@ -87713,6 +88847,27 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
87713
88847
  };
87714
88848
  Returns: boolean;
87715
88849
  };
88850
+ layout_print_document: {
88851
+ Args: {
88852
+ _documentnaam: string;
88853
+ _documenttype: string;
88854
+ _herkomst?: string;
88855
+ _idempotentie_sleutel?: string;
88856
+ _is_herprint?: boolean;
88857
+ _kopieen?: number;
88858
+ _layout_id?: string;
88859
+ _payload?: import("../integrations/supabase/types").Json;
88860
+ _pdf_base64?: string;
88861
+ _pdf_url?: string;
88862
+ _print_plek_id?: string;
88863
+ _werkplek?: string;
88864
+ };
88865
+ Returns: {
88866
+ bestaand: boolean;
88867
+ job_id: string;
88868
+ printer_id: string;
88869
+ }[];
88870
+ };
87716
88871
  list_medewerkers: {
87717
88872
  Args: never;
87718
88873
  Returns: {
@@ -87990,6 +89145,12 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
87990
89145
  };
87991
89146
  Returns: number;
87992
89147
  };
89148
+ logistics_cart_barcode_opschonen: {
89149
+ Args: {
89150
+ p_portie?: number;
89151
+ };
89152
+ Returns: import("../integrations/supabase/types").Json;
89153
+ };
87993
89154
  logistics_cart_barcode_value: {
87994
89155
  Args: {
87995
89156
  _cart_id: string;
@@ -88409,6 +89570,13 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
88409
89570
  };
88410
89571
  Returns: import("../integrations/supabase/types").Json;
88411
89572
  };
89573
+ logistics_control_scan_print_own: {
89574
+ Args: {
89575
+ p_is_herprint?: boolean;
89576
+ p_scan_id: string;
89577
+ };
89578
+ Returns: import("../integrations/supabase/types").Json;
89579
+ };
88412
89580
  logistics_control_scan_retry: {
88413
89581
  Args: {
88414
89582
  _id: string;
@@ -89313,6 +90481,21 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
89313
90481
  };
89314
90482
  Returns: import("../integrations/supabase/types").Json;
89315
90483
  };
90484
+ logistics_print_via_layout: {
90485
+ Args: {
90486
+ _documentnaam: string;
90487
+ _documenttype: string;
90488
+ _herkomst: string;
90489
+ _idempotentie_sleutel: string;
90490
+ _is_herprint: boolean;
90491
+ _layout_id: string;
90492
+ _payload: import("../integrations/supabase/types").Json;
90493
+ _pdf_base64: string;
90494
+ _pdf_url: string;
90495
+ _print_plek_id: string;
90496
+ };
90497
+ Returns: import("../integrations/supabase/types").Json;
90498
+ };
89316
90499
  logistics_prune_buffer_member_queue: {
89317
90500
  Args: never;
89318
90501
  Returns: number;
@@ -89599,6 +90782,13 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
89599
90782
  };
89600
90783
  Returns: string;
89601
90784
  };
90785
+ logistics_shipping_note_status: {
90786
+ Args: {
90787
+ p_cart_id?: string;
90788
+ p_slip_job_id?: string;
90789
+ };
90790
+ Returns: import("../integrations/supabase/types").Json;
90791
+ };
89602
90792
  logistics_shipping_notes_wake_all: {
89603
90793
  Args: never;
89604
90794
  Returns: import("../integrations/supabase/types").Json;
@@ -89661,6 +90851,12 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
89661
90851
  };
89662
90852
  Returns: undefined;
89663
90853
  };
90854
+ logistics_slip_note_retry: {
90855
+ Args: {
90856
+ _id: string;
90857
+ };
90858
+ Returns: import("../integrations/supabase/types").Json;
90859
+ };
89664
90860
  logistics_sticker_follows_slip: {
89665
90861
  Args: never;
89666
90862
  Returns: boolean;
@@ -90405,6 +91601,10 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
90405
91601
  };
90406
91602
  Returns: string;
90407
91603
  };
91604
+ pick_is_reference_admin: {
91605
+ Args: never;
91606
+ Returns: boolean;
91607
+ };
90408
91608
  pick_mark_printed: {
90409
91609
  Args: {
90410
91610
  _queue_item_id: string;
@@ -91278,6 +92478,13 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
91278
92478
  };
91279
92479
  Returns: import("../integrations/supabase/types").Json;
91280
92480
  };
92481
+ scan_controleer_pincode: {
92482
+ Args: {
92483
+ p_pin: string;
92484
+ p_scanner_id: string;
92485
+ };
92486
+ Returns: boolean;
92487
+ };
91281
92488
  scan_dashboard_stats: {
91282
92489
  Args: {
91283
92490
  p_dagen?: number;
@@ -91297,6 +92504,12 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
91297
92504
  };
91298
92505
  Returns: import("../integrations/supabase/types").Json;
91299
92506
  };
92507
+ scan_heeft_pincode: {
92508
+ Args: {
92509
+ p_scanner_id: string;
92510
+ };
92511
+ Returns: boolean;
92512
+ };
91300
92513
  scan_kar_compleet: {
91301
92514
  Args: {
91302
92515
  p_allow_reprint?: boolean;
@@ -91314,6 +92527,7 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
91314
92527
  Args: {
91315
92528
  p_code: string;
91316
92529
  p_latency_ms?: number;
92530
+ p_medewerker?: string;
91317
92531
  p_message?: string;
91318
92532
  p_result: string;
91319
92533
  p_scanner_key?: string;
@@ -91386,6 +92600,22 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
91386
92600
  };
91387
92601
  Returns: undefined;
91388
92602
  };
92603
+ scan_scanner_info: {
92604
+ Args: {
92605
+ p_slug: string;
92606
+ };
92607
+ Returns: {
92608
+ actief: boolean;
92609
+ heeft_pincode: boolean;
92610
+ id: string;
92611
+ naam: string;
92612
+ omschrijving: string;
92613
+ printer_id: string;
92614
+ type: string;
92615
+ vereist_medewerker: boolean;
92616
+ werkplek: string;
92617
+ }[];
92618
+ };
91389
92619
  scan_sessie_annuleren: {
91390
92620
  Args: {
91391
92621
  p_sessie_id: string;
@@ -92348,6 +93578,21 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
92348
93578
  };
92349
93579
  Returns: import("../integrations/supabase/types").Json;
92350
93580
  };
93581
+ wo_list_colleague_planning: {
93582
+ Args: {
93583
+ _from: string;
93584
+ _monteur_id: string;
93585
+ _to: string;
93586
+ };
93587
+ Returns: {
93588
+ end_at: string;
93589
+ id: string;
93590
+ role: string;
93591
+ start_at: string;
93592
+ status: string;
93593
+ werkbon_id: string;
93594
+ }[];
93595
+ };
92351
93596
  wo_list_offerte_requests: {
92352
93597
  Args: {
92353
93598
  _status?: string;
@@ -93165,6 +94410,27 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
93165
94410
  };
93166
94411
  Relationships: [];
93167
94412
  };
94413
+ artikelen_instellingen: {
94414
+ Row: {
94415
+ created_at: string;
94416
+ id: number;
94417
+ marge_procent: number;
94418
+ updated_at: string;
94419
+ };
94420
+ Insert: {
94421
+ created_at?: string;
94422
+ id?: number;
94423
+ marge_procent?: number;
94424
+ updated_at?: string;
94425
+ };
94426
+ Update: {
94427
+ created_at?: string;
94428
+ id?: number;
94429
+ marge_procent?: number;
94430
+ updated_at?: string;
94431
+ };
94432
+ Relationships: [];
94433
+ };
93168
94434
  artikelen_veldconfig: {
93169
94435
  Row: {
93170
94436
  bron_pad: string;
@@ -102840,6 +104106,30 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
102840
104106
  };
102841
104107
  Relationships: [];
102842
104108
  };
104109
+ logistics_cart_barcode_archief: {
104110
+ Row: {
104111
+ barcode: string;
104112
+ cart_id: string;
104113
+ created_at: string | null;
104114
+ gearchiveerd_op: string;
104115
+ order_id: string | null;
104116
+ };
104117
+ Insert: {
104118
+ barcode: string;
104119
+ cart_id: string;
104120
+ created_at?: string | null;
104121
+ gearchiveerd_op?: string;
104122
+ order_id?: string | null;
104123
+ };
104124
+ Update: {
104125
+ barcode?: string;
104126
+ cart_id?: string;
104127
+ created_at?: string | null;
104128
+ gearchiveerd_op?: string;
104129
+ order_id?: string | null;
104130
+ };
104131
+ Relationships: [];
104132
+ };
102843
104133
  logistics_control_scan: {
102844
104134
  Row: {
102845
104135
  approved_at: string | null;
@@ -107126,6 +108416,7 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
107126
108416
  next_attempt_at: string;
107127
108417
  order_id: string;
107128
108418
  processed_at: string | null;
108419
+ send_error: string | null;
107129
108420
  status: string;
107130
108421
  updated_at: string;
107131
108422
  };
@@ -107139,6 +108430,7 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
107139
108430
  next_attempt_at?: string;
107140
108431
  order_id: string;
107141
108432
  processed_at?: string | null;
108433
+ send_error?: string | null;
107142
108434
  status?: string;
107143
108435
  updated_at?: string;
107144
108436
  };
@@ -107152,6 +108444,7 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
107152
108444
  next_attempt_at?: string;
107153
108445
  order_id?: string;
107154
108446
  processed_at?: string | null;
108447
+ send_error?: string | null;
107155
108448
  status?: string;
107156
108449
  updated_at?: string;
107157
108450
  };
@@ -108490,18 +109783,24 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
108490
109783
  Row: {
108491
109784
  id: boolean;
108492
109785
  last_cleanup_at: string | null;
109786
+ last_error: string | null;
109787
+ last_error_at: string | null;
108493
109788
  last_sync_at: string | null;
108494
109789
  updated_at: string;
108495
109790
  };
108496
109791
  Insert: {
108497
109792
  id?: boolean;
108498
109793
  last_cleanup_at?: string | null;
109794
+ last_error?: string | null;
109795
+ last_error_at?: string | null;
108499
109796
  last_sync_at?: string | null;
108500
109797
  updated_at?: string;
108501
109798
  };
108502
109799
  Update: {
108503
109800
  id?: boolean;
108504
109801
  last_cleanup_at?: string | null;
109802
+ last_error?: string | null;
109803
+ last_error_at?: string | null;
108505
109804
  last_sync_at?: string | null;
108506
109805
  updated_at?: string;
108507
109806
  };
@@ -110189,6 +111488,9 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
110189
111488
  lead_time_days: number | null;
110190
111489
  min_order_quantity: number | null;
110191
111490
  notes: string | null;
111491
+ previous_price_cents: number | null;
111492
+ price_source: string;
111493
+ price_updated_at: string | null;
110192
111494
  product_id: string;
110193
111495
  purchase_price_cents: number | null;
110194
111496
  supplier_article_number: string | null;
@@ -110202,6 +111504,9 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
110202
111504
  lead_time_days?: number | null;
110203
111505
  min_order_quantity?: number | null;
110204
111506
  notes?: string | null;
111507
+ previous_price_cents?: number | null;
111508
+ price_source?: string;
111509
+ price_updated_at?: string | null;
110205
111510
  product_id: string;
110206
111511
  purchase_price_cents?: number | null;
110207
111512
  supplier_article_number?: string | null;
@@ -110215,6 +111520,9 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
110215
111520
  lead_time_days?: number | null;
110216
111521
  min_order_quantity?: number | null;
110217
111522
  notes?: string | null;
111523
+ previous_price_cents?: number | null;
111524
+ price_source?: string;
111525
+ price_updated_at?: string | null;
110218
111526
  product_id?: string;
110219
111527
  purchase_price_cents?: number | null;
110220
111528
  supplier_article_number?: string | null;
@@ -110745,9 +112053,13 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
110745
112053
  purchase_order_items: {
110746
112054
  Row: {
110747
112055
  article_number: string | null;
112056
+ cancel_reason: string | null;
112057
+ cancelled_at: string | null;
110748
112058
  created_at: string;
110749
112059
  delivery_date: string | null;
110750
112060
  id: string;
112061
+ incoming_booked: number;
112062
+ line_status: string;
110751
112063
  name: string;
110752
112064
  note: string | null;
110753
112065
  pot_size: string | null;
@@ -110755,6 +112067,8 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
110755
112067
  product_type: string;
110756
112068
  purchase_order_id: string;
110757
112069
  quantity: number;
112070
+ received_at: string | null;
112071
+ received_booked: number;
110758
112072
  supplier_id: string | null;
110759
112073
  supplier_product_id: string | null;
110760
112074
  unit_price_cents: number;
@@ -110762,9 +112076,13 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
110762
112076
  };
110763
112077
  Insert: {
110764
112078
  article_number?: string | null;
112079
+ cancel_reason?: string | null;
112080
+ cancelled_at?: string | null;
110765
112081
  created_at?: string;
110766
112082
  delivery_date?: string | null;
110767
112083
  id?: string;
112084
+ incoming_booked?: number;
112085
+ line_status?: string;
110768
112086
  name?: string;
110769
112087
  note?: string | null;
110770
112088
  pot_size?: string | null;
@@ -110772,6 +112090,8 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
110772
112090
  product_type?: string;
110773
112091
  purchase_order_id: string;
110774
112092
  quantity?: number;
112093
+ received_at?: string | null;
112094
+ received_booked?: number;
110775
112095
  supplier_id?: string | null;
110776
112096
  supplier_product_id?: string | null;
110777
112097
  unit_price_cents?: number;
@@ -110779,9 +112099,13 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
110779
112099
  };
110780
112100
  Update: {
110781
112101
  article_number?: string | null;
112102
+ cancel_reason?: string | null;
112103
+ cancelled_at?: string | null;
110782
112104
  created_at?: string;
110783
112105
  delivery_date?: string | null;
110784
112106
  id?: string;
112107
+ incoming_booked?: number;
112108
+ line_status?: string;
110785
112109
  name?: string;
110786
112110
  note?: string | null;
110787
112111
  pot_size?: string | null;
@@ -110789,6 +112113,8 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
110789
112113
  product_type?: string;
110790
112114
  purchase_order_id?: string;
110791
112115
  quantity?: number;
112116
+ received_at?: string | null;
112117
+ received_booked?: number;
110792
112118
  supplier_id?: string | null;
110793
112119
  supplier_product_id?: string | null;
110794
112120
  unit_price_cents?: number;
@@ -110892,6 +112218,153 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
110892
112218
  referencedColumns: ["id"];
110893
112219
  }];
110894
112220
  };
112221
+ purchase_request_events: {
112222
+ Row: {
112223
+ created_at: string;
112224
+ details: import("../integrations/supabase/types").Json | null;
112225
+ event_type: string;
112226
+ id: string;
112227
+ request_id: string;
112228
+ };
112229
+ Insert: {
112230
+ created_at?: string;
112231
+ details?: import("../integrations/supabase/types").Json | null;
112232
+ event_type: string;
112233
+ id?: string;
112234
+ request_id: string;
112235
+ };
112236
+ Update: {
112237
+ created_at?: string;
112238
+ details?: import("../integrations/supabase/types").Json | null;
112239
+ event_type?: string;
112240
+ id?: string;
112241
+ request_id?: string;
112242
+ };
112243
+ Relationships: [{
112244
+ foreignKeyName: "purchase_request_events_request_id_fkey";
112245
+ columns: ["request_id"];
112246
+ isOneToOne: false;
112247
+ referencedRelation: "purchase_requests";
112248
+ referencedColumns: ["id"];
112249
+ }];
112250
+ };
112251
+ purchase_request_responses: {
112252
+ Row: {
112253
+ confirmed_date: string | null;
112254
+ confirmed_price_cents: number | null;
112255
+ confirmed_quantity: number;
112256
+ created_at: string;
112257
+ id: string;
112258
+ not_available: boolean;
112259
+ note: string | null;
112260
+ purchase_order_item_id: string;
112261
+ request_id: string;
112262
+ updated_at: string;
112263
+ };
112264
+ Insert: {
112265
+ confirmed_date?: string | null;
112266
+ confirmed_price_cents?: number | null;
112267
+ confirmed_quantity?: number;
112268
+ created_at?: string;
112269
+ id?: string;
112270
+ not_available?: boolean;
112271
+ note?: string | null;
112272
+ purchase_order_item_id: string;
112273
+ request_id: string;
112274
+ updated_at?: string;
112275
+ };
112276
+ Update: {
112277
+ confirmed_date?: string | null;
112278
+ confirmed_price_cents?: number | null;
112279
+ confirmed_quantity?: number;
112280
+ created_at?: string;
112281
+ id?: string;
112282
+ not_available?: boolean;
112283
+ note?: string | null;
112284
+ purchase_order_item_id?: string;
112285
+ request_id?: string;
112286
+ updated_at?: string;
112287
+ };
112288
+ Relationships: [{
112289
+ foreignKeyName: "purchase_request_responses_purchase_order_item_id_fkey";
112290
+ columns: ["purchase_order_item_id"];
112291
+ isOneToOne: false;
112292
+ referencedRelation: "purchase_order_items";
112293
+ referencedColumns: ["id"];
112294
+ }, {
112295
+ foreignKeyName: "purchase_request_responses_request_id_fkey";
112296
+ columns: ["request_id"];
112297
+ isOneToOne: false;
112298
+ referencedRelation: "purchase_requests";
112299
+ referencedColumns: ["id"];
112300
+ }];
112301
+ };
112302
+ purchase_requests: {
112303
+ Row: {
112304
+ created_at: string;
112305
+ expires_at: string;
112306
+ first_viewed_at: string | null;
112307
+ id: string;
112308
+ processed_at: string | null;
112309
+ purchase_order_id: string;
112310
+ responded_at: string | null;
112311
+ sent_at: string;
112312
+ status: string;
112313
+ supplier_id: string | null;
112314
+ supplier_name: string;
112315
+ supplier_note: string | null;
112316
+ to_address: string | null;
112317
+ token_hash: string;
112318
+ updated_at: string;
112319
+ };
112320
+ Insert: {
112321
+ created_at?: string;
112322
+ expires_at?: string;
112323
+ first_viewed_at?: string | null;
112324
+ id?: string;
112325
+ processed_at?: string | null;
112326
+ purchase_order_id: string;
112327
+ responded_at?: string | null;
112328
+ sent_at?: string;
112329
+ status?: string;
112330
+ supplier_id?: string | null;
112331
+ supplier_name?: string;
112332
+ supplier_note?: string | null;
112333
+ to_address?: string | null;
112334
+ token_hash: string;
112335
+ updated_at?: string;
112336
+ };
112337
+ Update: {
112338
+ created_at?: string;
112339
+ expires_at?: string;
112340
+ first_viewed_at?: string | null;
112341
+ id?: string;
112342
+ processed_at?: string | null;
112343
+ purchase_order_id?: string;
112344
+ responded_at?: string | null;
112345
+ sent_at?: string;
112346
+ status?: string;
112347
+ supplier_id?: string | null;
112348
+ supplier_name?: string;
112349
+ supplier_note?: string | null;
112350
+ to_address?: string | null;
112351
+ token_hash?: string;
112352
+ updated_at?: string;
112353
+ };
112354
+ Relationships: [{
112355
+ foreignKeyName: "purchase_requests_purchase_order_id_fkey";
112356
+ columns: ["purchase_order_id"];
112357
+ isOneToOne: false;
112358
+ referencedRelation: "purchase_orders";
112359
+ referencedColumns: ["id"];
112360
+ }, {
112361
+ foreignKeyName: "purchase_requests_supplier_id_fkey";
112362
+ columns: ["supplier_id"];
112363
+ isOneToOne: false;
112364
+ referencedRelation: "suppliers";
112365
+ referencedColumns: ["id"];
112366
+ }];
112367
+ };
110895
112368
  reception_notifications: {
110896
112369
  Row: {
110897
112370
  booking_id: string | null;
@@ -113055,6 +114528,7 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
113055
114528
  auto_invoice_enabled: boolean;
113056
114529
  auto_invoice_start_date: string | null;
113057
114530
  auto_invoice_trigger_statuses: string[];
114531
+ auto_send_mode: string | null;
113058
114532
  created_at: string;
113059
114533
  debtor_gl_account: string;
113060
114534
  default_article_code: string | null;
@@ -113083,6 +114557,7 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
113083
114557
  auto_invoice_enabled?: boolean;
113084
114558
  auto_invoice_start_date?: string | null;
113085
114559
  auto_invoice_trigger_statuses?: string[];
114560
+ auto_send_mode?: string | null;
113086
114561
  created_at?: string;
113087
114562
  debtor_gl_account?: string;
113088
114563
  default_article_code?: string | null;
@@ -113111,6 +114586,7 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
113111
114586
  auto_invoice_enabled?: boolean;
113112
114587
  auto_invoice_start_date?: string | null;
113113
114588
  auto_invoice_trigger_statuses?: string[];
114589
+ auto_send_mode?: string | null;
113114
114590
  created_at?: string;
113115
114591
  debtor_gl_account?: string;
113116
114592
  default_article_code?: string | null;
@@ -118344,13 +119820,66 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
118344
119820
  };
118345
119821
  Returns: import("../integrations/supabase/types").Json;
118346
119822
  };
119823
+ inkoop_cancel_line: {
119824
+ Args: {
119825
+ _item_id: string;
119826
+ _reason: string;
119827
+ };
119828
+ Returns: string;
119829
+ };
119830
+ inkoop_get_supplier_request: {
119831
+ Args: {
119832
+ _token: string;
119833
+ };
119834
+ Returns: import("../integrations/supabase/types").Json;
119835
+ };
119836
+ inkoop_hash_token: {
119837
+ Args: {
119838
+ _token: string;
119839
+ };
119840
+ Returns: string;
119841
+ };
119842
+ inkoop_html_escape: {
119843
+ Args: {
119844
+ _t: string;
119845
+ };
119846
+ Returns: string;
119847
+ };
119848
+ inkoop_list_artikelen: {
119849
+ Args: never;
119850
+ Returns: {
119851
+ article_number: string;
119852
+ barcode: string;
119853
+ id: string;
119854
+ incoming_quantity: number;
119855
+ is_layer: boolean;
119856
+ location: string;
119857
+ min_quantity: number;
119858
+ preferred_supplier_name: string;
119859
+ product: string;
119860
+ product_type: string;
119861
+ purchase_price: number;
119862
+ quantity: number;
119863
+ sale_price: number;
119864
+ supplier_count: number;
119865
+ unit: string;
119866
+ }[];
119867
+ };
118347
119868
  inkoop_next_order_number: {
118348
119869
  Args: never;
118349
119870
  Returns: string;
118350
119871
  };
119872
+ inkoop_process_request: {
119873
+ Args: {
119874
+ _request_id: string;
119875
+ };
119876
+ Returns: undefined;
119877
+ };
118351
119878
  inkoop_send_order: {
118352
119879
  Args: {
119880
+ _base_url?: string;
118353
119881
  _order_id: string;
119882
+ _resend?: boolean;
118354
119883
  };
118355
119884
  Returns: {
118356
119885
  outbox_id: string;
@@ -118365,6 +119894,26 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
118365
119894
  };
118366
119895
  Returns: undefined;
118367
119896
  };
119897
+ inkoop_stock_key: {
119898
+ Args: {
119899
+ p_product_id: string;
119900
+ };
119901
+ Returns: string;
119902
+ };
119903
+ inkoop_submit_supplier_response: {
119904
+ Args: {
119905
+ _lines: import("../integrations/supabase/types").Json;
119906
+ _note?: string;
119907
+ _token: string;
119908
+ };
119909
+ Returns: import("../integrations/supabase/types").Json;
119910
+ };
119911
+ inkoop_sync_item_stock: {
119912
+ Args: {
119913
+ p_item_id: string;
119914
+ };
119915
+ Returns: undefined;
119916
+ };
118368
119917
  instructie_get: {
118369
119918
  Args: {
118370
119919
  _sleutel: string;
@@ -118525,6 +120074,27 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
118525
120074
  };
118526
120075
  Returns: boolean;
118527
120076
  };
120077
+ layout_print_document: {
120078
+ Args: {
120079
+ _documentnaam: string;
120080
+ _documenttype: string;
120081
+ _herkomst?: string;
120082
+ _idempotentie_sleutel?: string;
120083
+ _is_herprint?: boolean;
120084
+ _kopieen?: number;
120085
+ _layout_id?: string;
120086
+ _payload?: import("../integrations/supabase/types").Json;
120087
+ _pdf_base64?: string;
120088
+ _pdf_url?: string;
120089
+ _print_plek_id?: string;
120090
+ _werkplek?: string;
120091
+ };
120092
+ Returns: {
120093
+ bestaand: boolean;
120094
+ job_id: string;
120095
+ printer_id: string;
120096
+ }[];
120097
+ };
118528
120098
  list_medewerkers: {
118529
120099
  Args: never;
118530
120100
  Returns: {
@@ -118802,6 +120372,12 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
118802
120372
  };
118803
120373
  Returns: number;
118804
120374
  };
120375
+ logistics_cart_barcode_opschonen: {
120376
+ Args: {
120377
+ p_portie?: number;
120378
+ };
120379
+ Returns: import("../integrations/supabase/types").Json;
120380
+ };
118805
120381
  logistics_cart_barcode_value: {
118806
120382
  Args: {
118807
120383
  _cart_id: string;
@@ -119221,6 +120797,13 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
119221
120797
  };
119222
120798
  Returns: import("../integrations/supabase/types").Json;
119223
120799
  };
120800
+ logistics_control_scan_print_own: {
120801
+ Args: {
120802
+ p_is_herprint?: boolean;
120803
+ p_scan_id: string;
120804
+ };
120805
+ Returns: import("../integrations/supabase/types").Json;
120806
+ };
119224
120807
  logistics_control_scan_retry: {
119225
120808
  Args: {
119226
120809
  _id: string;
@@ -120125,6 +121708,21 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
120125
121708
  };
120126
121709
  Returns: import("../integrations/supabase/types").Json;
120127
121710
  };
121711
+ logistics_print_via_layout: {
121712
+ Args: {
121713
+ _documentnaam: string;
121714
+ _documenttype: string;
121715
+ _herkomst: string;
121716
+ _idempotentie_sleutel: string;
121717
+ _is_herprint: boolean;
121718
+ _layout_id: string;
121719
+ _payload: import("../integrations/supabase/types").Json;
121720
+ _pdf_base64: string;
121721
+ _pdf_url: string;
121722
+ _print_plek_id: string;
121723
+ };
121724
+ Returns: import("../integrations/supabase/types").Json;
121725
+ };
120128
121726
  logistics_prune_buffer_member_queue: {
120129
121727
  Args: never;
120130
121728
  Returns: number;
@@ -120411,6 +122009,13 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
120411
122009
  };
120412
122010
  Returns: string;
120413
122011
  };
122012
+ logistics_shipping_note_status: {
122013
+ Args: {
122014
+ p_cart_id?: string;
122015
+ p_slip_job_id?: string;
122016
+ };
122017
+ Returns: import("../integrations/supabase/types").Json;
122018
+ };
120414
122019
  logistics_shipping_notes_wake_all: {
120415
122020
  Args: never;
120416
122021
  Returns: import("../integrations/supabase/types").Json;
@@ -120473,6 +122078,12 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
120473
122078
  };
120474
122079
  Returns: undefined;
120475
122080
  };
122081
+ logistics_slip_note_retry: {
122082
+ Args: {
122083
+ _id: string;
122084
+ };
122085
+ Returns: import("../integrations/supabase/types").Json;
122086
+ };
120476
122087
  logistics_sticker_follows_slip: {
120477
122088
  Args: never;
120478
122089
  Returns: boolean;
@@ -121217,6 +122828,10 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
121217
122828
  };
121218
122829
  Returns: string;
121219
122830
  };
122831
+ pick_is_reference_admin: {
122832
+ Args: never;
122833
+ Returns: boolean;
122834
+ };
121220
122835
  pick_mark_printed: {
121221
122836
  Args: {
121222
122837
  _queue_item_id: string;
@@ -122090,6 +123705,13 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
122090
123705
  };
122091
123706
  Returns: import("../integrations/supabase/types").Json;
122092
123707
  };
123708
+ scan_controleer_pincode: {
123709
+ Args: {
123710
+ p_pin: string;
123711
+ p_scanner_id: string;
123712
+ };
123713
+ Returns: boolean;
123714
+ };
122093
123715
  scan_dashboard_stats: {
122094
123716
  Args: {
122095
123717
  p_dagen?: number;
@@ -122109,6 +123731,12 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
122109
123731
  };
122110
123732
  Returns: import("../integrations/supabase/types").Json;
122111
123733
  };
123734
+ scan_heeft_pincode: {
123735
+ Args: {
123736
+ p_scanner_id: string;
123737
+ };
123738
+ Returns: boolean;
123739
+ };
122112
123740
  scan_kar_compleet: {
122113
123741
  Args: {
122114
123742
  p_allow_reprint?: boolean;
@@ -122126,6 +123754,7 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
122126
123754
  Args: {
122127
123755
  p_code: string;
122128
123756
  p_latency_ms?: number;
123757
+ p_medewerker?: string;
122129
123758
  p_message?: string;
122130
123759
  p_result: string;
122131
123760
  p_scanner_key?: string;
@@ -122198,6 +123827,22 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
122198
123827
  };
122199
123828
  Returns: undefined;
122200
123829
  };
123830
+ scan_scanner_info: {
123831
+ Args: {
123832
+ p_slug: string;
123833
+ };
123834
+ Returns: {
123835
+ actief: boolean;
123836
+ heeft_pincode: boolean;
123837
+ id: string;
123838
+ naam: string;
123839
+ omschrijving: string;
123840
+ printer_id: string;
123841
+ type: string;
123842
+ vereist_medewerker: boolean;
123843
+ werkplek: string;
123844
+ }[];
123845
+ };
122201
123846
  scan_sessie_annuleren: {
122202
123847
  Args: {
122203
123848
  p_sessie_id: string;
@@ -123160,6 +124805,21 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
123160
124805
  };
123161
124806
  Returns: import("../integrations/supabase/types").Json;
123162
124807
  };
124808
+ wo_list_colleague_planning: {
124809
+ Args: {
124810
+ _from: string;
124811
+ _monteur_id: string;
124812
+ _to: string;
124813
+ };
124814
+ Returns: {
124815
+ end_at: string;
124816
+ id: string;
124817
+ role: string;
124818
+ start_at: string;
124819
+ status: string;
124820
+ werkbon_id: string;
124821
+ }[];
124822
+ };
123163
124823
  wo_list_offerte_requests: {
123164
124824
  Args: {
123165
124825
  _status?: string;
@@ -123975,6 +125635,27 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
123975
125635
  };
123976
125636
  Relationships: [];
123977
125637
  };
125638
+ artikelen_instellingen: {
125639
+ Row: {
125640
+ created_at: string;
125641
+ id: number;
125642
+ marge_procent: number;
125643
+ updated_at: string;
125644
+ };
125645
+ Insert: {
125646
+ created_at?: string;
125647
+ id?: number;
125648
+ marge_procent?: number;
125649
+ updated_at?: string;
125650
+ };
125651
+ Update: {
125652
+ created_at?: string;
125653
+ id?: number;
125654
+ marge_procent?: number;
125655
+ updated_at?: string;
125656
+ };
125657
+ Relationships: [];
125658
+ };
123978
125659
  artikelen_veldconfig: {
123979
125660
  Row: {
123980
125661
  bron_pad: string;
@@ -133650,6 +135331,30 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
133650
135331
  };
133651
135332
  Relationships: [];
133652
135333
  };
135334
+ logistics_cart_barcode_archief: {
135335
+ Row: {
135336
+ barcode: string;
135337
+ cart_id: string;
135338
+ created_at: string | null;
135339
+ gearchiveerd_op: string;
135340
+ order_id: string | null;
135341
+ };
135342
+ Insert: {
135343
+ barcode: string;
135344
+ cart_id: string;
135345
+ created_at?: string | null;
135346
+ gearchiveerd_op?: string;
135347
+ order_id?: string | null;
135348
+ };
135349
+ Update: {
135350
+ barcode?: string;
135351
+ cart_id?: string;
135352
+ created_at?: string | null;
135353
+ gearchiveerd_op?: string;
135354
+ order_id?: string | null;
135355
+ };
135356
+ Relationships: [];
135357
+ };
133653
135358
  logistics_control_scan: {
133654
135359
  Row: {
133655
135360
  approved_at: string | null;
@@ -137936,6 +139641,7 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
137936
139641
  next_attempt_at: string;
137937
139642
  order_id: string;
137938
139643
  processed_at: string | null;
139644
+ send_error: string | null;
137939
139645
  status: string;
137940
139646
  updated_at: string;
137941
139647
  };
@@ -137949,6 +139655,7 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
137949
139655
  next_attempt_at?: string;
137950
139656
  order_id: string;
137951
139657
  processed_at?: string | null;
139658
+ send_error?: string | null;
137952
139659
  status?: string;
137953
139660
  updated_at?: string;
137954
139661
  };
@@ -137962,6 +139669,7 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
137962
139669
  next_attempt_at?: string;
137963
139670
  order_id?: string;
137964
139671
  processed_at?: string | null;
139672
+ send_error?: string | null;
137965
139673
  status?: string;
137966
139674
  updated_at?: string;
137967
139675
  };
@@ -139300,18 +141008,24 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
139300
141008
  Row: {
139301
141009
  id: boolean;
139302
141010
  last_cleanup_at: string | null;
141011
+ last_error: string | null;
141012
+ last_error_at: string | null;
139303
141013
  last_sync_at: string | null;
139304
141014
  updated_at: string;
139305
141015
  };
139306
141016
  Insert: {
139307
141017
  id?: boolean;
139308
141018
  last_cleanup_at?: string | null;
141019
+ last_error?: string | null;
141020
+ last_error_at?: string | null;
139309
141021
  last_sync_at?: string | null;
139310
141022
  updated_at?: string;
139311
141023
  };
139312
141024
  Update: {
139313
141025
  id?: boolean;
139314
141026
  last_cleanup_at?: string | null;
141027
+ last_error?: string | null;
141028
+ last_error_at?: string | null;
139315
141029
  last_sync_at?: string | null;
139316
141030
  updated_at?: string;
139317
141031
  };
@@ -140999,6 +142713,9 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
140999
142713
  lead_time_days: number | null;
141000
142714
  min_order_quantity: number | null;
141001
142715
  notes: string | null;
142716
+ previous_price_cents: number | null;
142717
+ price_source: string;
142718
+ price_updated_at: string | null;
141002
142719
  product_id: string;
141003
142720
  purchase_price_cents: number | null;
141004
142721
  supplier_article_number: string | null;
@@ -141012,6 +142729,9 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
141012
142729
  lead_time_days?: number | null;
141013
142730
  min_order_quantity?: number | null;
141014
142731
  notes?: string | null;
142732
+ previous_price_cents?: number | null;
142733
+ price_source?: string;
142734
+ price_updated_at?: string | null;
141015
142735
  product_id: string;
141016
142736
  purchase_price_cents?: number | null;
141017
142737
  supplier_article_number?: string | null;
@@ -141025,6 +142745,9 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
141025
142745
  lead_time_days?: number | null;
141026
142746
  min_order_quantity?: number | null;
141027
142747
  notes?: string | null;
142748
+ previous_price_cents?: number | null;
142749
+ price_source?: string;
142750
+ price_updated_at?: string | null;
141028
142751
  product_id?: string;
141029
142752
  purchase_price_cents?: number | null;
141030
142753
  supplier_article_number?: string | null;
@@ -141555,9 +143278,13 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
141555
143278
  purchase_order_items: {
141556
143279
  Row: {
141557
143280
  article_number: string | null;
143281
+ cancel_reason: string | null;
143282
+ cancelled_at: string | null;
141558
143283
  created_at: string;
141559
143284
  delivery_date: string | null;
141560
143285
  id: string;
143286
+ incoming_booked: number;
143287
+ line_status: string;
141561
143288
  name: string;
141562
143289
  note: string | null;
141563
143290
  pot_size: string | null;
@@ -141565,6 +143292,8 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
141565
143292
  product_type: string;
141566
143293
  purchase_order_id: string;
141567
143294
  quantity: number;
143295
+ received_at: string | null;
143296
+ received_booked: number;
141568
143297
  supplier_id: string | null;
141569
143298
  supplier_product_id: string | null;
141570
143299
  unit_price_cents: number;
@@ -141572,9 +143301,13 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
141572
143301
  };
141573
143302
  Insert: {
141574
143303
  article_number?: string | null;
143304
+ cancel_reason?: string | null;
143305
+ cancelled_at?: string | null;
141575
143306
  created_at?: string;
141576
143307
  delivery_date?: string | null;
141577
143308
  id?: string;
143309
+ incoming_booked?: number;
143310
+ line_status?: string;
141578
143311
  name?: string;
141579
143312
  note?: string | null;
141580
143313
  pot_size?: string | null;
@@ -141582,6 +143315,8 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
141582
143315
  product_type?: string;
141583
143316
  purchase_order_id: string;
141584
143317
  quantity?: number;
143318
+ received_at?: string | null;
143319
+ received_booked?: number;
141585
143320
  supplier_id?: string | null;
141586
143321
  supplier_product_id?: string | null;
141587
143322
  unit_price_cents?: number;
@@ -141589,9 +143324,13 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
141589
143324
  };
141590
143325
  Update: {
141591
143326
  article_number?: string | null;
143327
+ cancel_reason?: string | null;
143328
+ cancelled_at?: string | null;
141592
143329
  created_at?: string;
141593
143330
  delivery_date?: string | null;
141594
143331
  id?: string;
143332
+ incoming_booked?: number;
143333
+ line_status?: string;
141595
143334
  name?: string;
141596
143335
  note?: string | null;
141597
143336
  pot_size?: string | null;
@@ -141599,6 +143338,8 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
141599
143338
  product_type?: string;
141600
143339
  purchase_order_id?: string;
141601
143340
  quantity?: number;
143341
+ received_at?: string | null;
143342
+ received_booked?: number;
141602
143343
  supplier_id?: string | null;
141603
143344
  supplier_product_id?: string | null;
141604
143345
  unit_price_cents?: number;
@@ -141702,6 +143443,153 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
141702
143443
  referencedColumns: ["id"];
141703
143444
  }];
141704
143445
  };
143446
+ purchase_request_events: {
143447
+ Row: {
143448
+ created_at: string;
143449
+ details: import("../integrations/supabase/types").Json | null;
143450
+ event_type: string;
143451
+ id: string;
143452
+ request_id: string;
143453
+ };
143454
+ Insert: {
143455
+ created_at?: string;
143456
+ details?: import("../integrations/supabase/types").Json | null;
143457
+ event_type: string;
143458
+ id?: string;
143459
+ request_id: string;
143460
+ };
143461
+ Update: {
143462
+ created_at?: string;
143463
+ details?: import("../integrations/supabase/types").Json | null;
143464
+ event_type?: string;
143465
+ id?: string;
143466
+ request_id?: string;
143467
+ };
143468
+ Relationships: [{
143469
+ foreignKeyName: "purchase_request_events_request_id_fkey";
143470
+ columns: ["request_id"];
143471
+ isOneToOne: false;
143472
+ referencedRelation: "purchase_requests";
143473
+ referencedColumns: ["id"];
143474
+ }];
143475
+ };
143476
+ purchase_request_responses: {
143477
+ Row: {
143478
+ confirmed_date: string | null;
143479
+ confirmed_price_cents: number | null;
143480
+ confirmed_quantity: number;
143481
+ created_at: string;
143482
+ id: string;
143483
+ not_available: boolean;
143484
+ note: string | null;
143485
+ purchase_order_item_id: string;
143486
+ request_id: string;
143487
+ updated_at: string;
143488
+ };
143489
+ Insert: {
143490
+ confirmed_date?: string | null;
143491
+ confirmed_price_cents?: number | null;
143492
+ confirmed_quantity?: number;
143493
+ created_at?: string;
143494
+ id?: string;
143495
+ not_available?: boolean;
143496
+ note?: string | null;
143497
+ purchase_order_item_id: string;
143498
+ request_id: string;
143499
+ updated_at?: string;
143500
+ };
143501
+ Update: {
143502
+ confirmed_date?: string | null;
143503
+ confirmed_price_cents?: number | null;
143504
+ confirmed_quantity?: number;
143505
+ created_at?: string;
143506
+ id?: string;
143507
+ not_available?: boolean;
143508
+ note?: string | null;
143509
+ purchase_order_item_id?: string;
143510
+ request_id?: string;
143511
+ updated_at?: string;
143512
+ };
143513
+ Relationships: [{
143514
+ foreignKeyName: "purchase_request_responses_purchase_order_item_id_fkey";
143515
+ columns: ["purchase_order_item_id"];
143516
+ isOneToOne: false;
143517
+ referencedRelation: "purchase_order_items";
143518
+ referencedColumns: ["id"];
143519
+ }, {
143520
+ foreignKeyName: "purchase_request_responses_request_id_fkey";
143521
+ columns: ["request_id"];
143522
+ isOneToOne: false;
143523
+ referencedRelation: "purchase_requests";
143524
+ referencedColumns: ["id"];
143525
+ }];
143526
+ };
143527
+ purchase_requests: {
143528
+ Row: {
143529
+ created_at: string;
143530
+ expires_at: string;
143531
+ first_viewed_at: string | null;
143532
+ id: string;
143533
+ processed_at: string | null;
143534
+ purchase_order_id: string;
143535
+ responded_at: string | null;
143536
+ sent_at: string;
143537
+ status: string;
143538
+ supplier_id: string | null;
143539
+ supplier_name: string;
143540
+ supplier_note: string | null;
143541
+ to_address: string | null;
143542
+ token_hash: string;
143543
+ updated_at: string;
143544
+ };
143545
+ Insert: {
143546
+ created_at?: string;
143547
+ expires_at?: string;
143548
+ first_viewed_at?: string | null;
143549
+ id?: string;
143550
+ processed_at?: string | null;
143551
+ purchase_order_id: string;
143552
+ responded_at?: string | null;
143553
+ sent_at?: string;
143554
+ status?: string;
143555
+ supplier_id?: string | null;
143556
+ supplier_name?: string;
143557
+ supplier_note?: string | null;
143558
+ to_address?: string | null;
143559
+ token_hash: string;
143560
+ updated_at?: string;
143561
+ };
143562
+ Update: {
143563
+ created_at?: string;
143564
+ expires_at?: string;
143565
+ first_viewed_at?: string | null;
143566
+ id?: string;
143567
+ processed_at?: string | null;
143568
+ purchase_order_id?: string;
143569
+ responded_at?: string | null;
143570
+ sent_at?: string;
143571
+ status?: string;
143572
+ supplier_id?: string | null;
143573
+ supplier_name?: string;
143574
+ supplier_note?: string | null;
143575
+ to_address?: string | null;
143576
+ token_hash?: string;
143577
+ updated_at?: string;
143578
+ };
143579
+ Relationships: [{
143580
+ foreignKeyName: "purchase_requests_purchase_order_id_fkey";
143581
+ columns: ["purchase_order_id"];
143582
+ isOneToOne: false;
143583
+ referencedRelation: "purchase_orders";
143584
+ referencedColumns: ["id"];
143585
+ }, {
143586
+ foreignKeyName: "purchase_requests_supplier_id_fkey";
143587
+ columns: ["supplier_id"];
143588
+ isOneToOne: false;
143589
+ referencedRelation: "suppliers";
143590
+ referencedColumns: ["id"];
143591
+ }];
143592
+ };
141705
143593
  reception_notifications: {
141706
143594
  Row: {
141707
143595
  booking_id: string | null;
@@ -143865,6 +145753,7 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
143865
145753
  auto_invoice_enabled: boolean;
143866
145754
  auto_invoice_start_date: string | null;
143867
145755
  auto_invoice_trigger_statuses: string[];
145756
+ auto_send_mode: string | null;
143868
145757
  created_at: string;
143869
145758
  debtor_gl_account: string;
143870
145759
  default_article_code: string | null;
@@ -143893,6 +145782,7 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
143893
145782
  auto_invoice_enabled?: boolean;
143894
145783
  auto_invoice_start_date?: string | null;
143895
145784
  auto_invoice_trigger_statuses?: string[];
145785
+ auto_send_mode?: string | null;
143896
145786
  created_at?: string;
143897
145787
  debtor_gl_account?: string;
143898
145788
  default_article_code?: string | null;
@@ -143921,6 +145811,7 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
143921
145811
  auto_invoice_enabled?: boolean;
143922
145812
  auto_invoice_start_date?: string | null;
143923
145813
  auto_invoice_trigger_statuses?: string[];
145814
+ auto_send_mode?: string | null;
143924
145815
  created_at?: string;
143925
145816
  debtor_gl_account?: string;
143926
145817
  default_article_code?: string | null;
@@ -149154,13 +151045,66 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
149154
151045
  };
149155
151046
  Returns: import("../integrations/supabase/types").Json;
149156
151047
  };
151048
+ inkoop_cancel_line: {
151049
+ Args: {
151050
+ _item_id: string;
151051
+ _reason: string;
151052
+ };
151053
+ Returns: string;
151054
+ };
151055
+ inkoop_get_supplier_request: {
151056
+ Args: {
151057
+ _token: string;
151058
+ };
151059
+ Returns: import("../integrations/supabase/types").Json;
151060
+ };
151061
+ inkoop_hash_token: {
151062
+ Args: {
151063
+ _token: string;
151064
+ };
151065
+ Returns: string;
151066
+ };
151067
+ inkoop_html_escape: {
151068
+ Args: {
151069
+ _t: string;
151070
+ };
151071
+ Returns: string;
151072
+ };
151073
+ inkoop_list_artikelen: {
151074
+ Args: never;
151075
+ Returns: {
151076
+ article_number: string;
151077
+ barcode: string;
151078
+ id: string;
151079
+ incoming_quantity: number;
151080
+ is_layer: boolean;
151081
+ location: string;
151082
+ min_quantity: number;
151083
+ preferred_supplier_name: string;
151084
+ product: string;
151085
+ product_type: string;
151086
+ purchase_price: number;
151087
+ quantity: number;
151088
+ sale_price: number;
151089
+ supplier_count: number;
151090
+ unit: string;
151091
+ }[];
151092
+ };
149157
151093
  inkoop_next_order_number: {
149158
151094
  Args: never;
149159
151095
  Returns: string;
149160
151096
  };
151097
+ inkoop_process_request: {
151098
+ Args: {
151099
+ _request_id: string;
151100
+ };
151101
+ Returns: undefined;
151102
+ };
149161
151103
  inkoop_send_order: {
149162
151104
  Args: {
151105
+ _base_url?: string;
149163
151106
  _order_id: string;
151107
+ _resend?: boolean;
149164
151108
  };
149165
151109
  Returns: {
149166
151110
  outbox_id: string;
@@ -149175,6 +151119,26 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
149175
151119
  };
149176
151120
  Returns: undefined;
149177
151121
  };
151122
+ inkoop_stock_key: {
151123
+ Args: {
151124
+ p_product_id: string;
151125
+ };
151126
+ Returns: string;
151127
+ };
151128
+ inkoop_submit_supplier_response: {
151129
+ Args: {
151130
+ _lines: import("../integrations/supabase/types").Json;
151131
+ _note?: string;
151132
+ _token: string;
151133
+ };
151134
+ Returns: import("../integrations/supabase/types").Json;
151135
+ };
151136
+ inkoop_sync_item_stock: {
151137
+ Args: {
151138
+ p_item_id: string;
151139
+ };
151140
+ Returns: undefined;
151141
+ };
149178
151142
  instructie_get: {
149179
151143
  Args: {
149180
151144
  _sleutel: string;
@@ -149335,6 +151299,27 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
149335
151299
  };
149336
151300
  Returns: boolean;
149337
151301
  };
151302
+ layout_print_document: {
151303
+ Args: {
151304
+ _documentnaam: string;
151305
+ _documenttype: string;
151306
+ _herkomst?: string;
151307
+ _idempotentie_sleutel?: string;
151308
+ _is_herprint?: boolean;
151309
+ _kopieen?: number;
151310
+ _layout_id?: string;
151311
+ _payload?: import("../integrations/supabase/types").Json;
151312
+ _pdf_base64?: string;
151313
+ _pdf_url?: string;
151314
+ _print_plek_id?: string;
151315
+ _werkplek?: string;
151316
+ };
151317
+ Returns: {
151318
+ bestaand: boolean;
151319
+ job_id: string;
151320
+ printer_id: string;
151321
+ }[];
151322
+ };
149338
151323
  list_medewerkers: {
149339
151324
  Args: never;
149340
151325
  Returns: {
@@ -149612,6 +151597,12 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
149612
151597
  };
149613
151598
  Returns: number;
149614
151599
  };
151600
+ logistics_cart_barcode_opschonen: {
151601
+ Args: {
151602
+ p_portie?: number;
151603
+ };
151604
+ Returns: import("../integrations/supabase/types").Json;
151605
+ };
149615
151606
  logistics_cart_barcode_value: {
149616
151607
  Args: {
149617
151608
  _cart_id: string;
@@ -150031,6 +152022,13 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
150031
152022
  };
150032
152023
  Returns: import("../integrations/supabase/types").Json;
150033
152024
  };
152025
+ logistics_control_scan_print_own: {
152026
+ Args: {
152027
+ p_is_herprint?: boolean;
152028
+ p_scan_id: string;
152029
+ };
152030
+ Returns: import("../integrations/supabase/types").Json;
152031
+ };
150034
152032
  logistics_control_scan_retry: {
150035
152033
  Args: {
150036
152034
  _id: string;
@@ -150935,6 +152933,21 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
150935
152933
  };
150936
152934
  Returns: import("../integrations/supabase/types").Json;
150937
152935
  };
152936
+ logistics_print_via_layout: {
152937
+ Args: {
152938
+ _documentnaam: string;
152939
+ _documenttype: string;
152940
+ _herkomst: string;
152941
+ _idempotentie_sleutel: string;
152942
+ _is_herprint: boolean;
152943
+ _layout_id: string;
152944
+ _payload: import("../integrations/supabase/types").Json;
152945
+ _pdf_base64: string;
152946
+ _pdf_url: string;
152947
+ _print_plek_id: string;
152948
+ };
152949
+ Returns: import("../integrations/supabase/types").Json;
152950
+ };
150938
152951
  logistics_prune_buffer_member_queue: {
150939
152952
  Args: never;
150940
152953
  Returns: number;
@@ -151221,6 +153234,13 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
151221
153234
  };
151222
153235
  Returns: string;
151223
153236
  };
153237
+ logistics_shipping_note_status: {
153238
+ Args: {
153239
+ p_cart_id?: string;
153240
+ p_slip_job_id?: string;
153241
+ };
153242
+ Returns: import("../integrations/supabase/types").Json;
153243
+ };
151224
153244
  logistics_shipping_notes_wake_all: {
151225
153245
  Args: never;
151226
153246
  Returns: import("../integrations/supabase/types").Json;
@@ -151283,6 +153303,12 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
151283
153303
  };
151284
153304
  Returns: undefined;
151285
153305
  };
153306
+ logistics_slip_note_retry: {
153307
+ Args: {
153308
+ _id: string;
153309
+ };
153310
+ Returns: import("../integrations/supabase/types").Json;
153311
+ };
151286
153312
  logistics_sticker_follows_slip: {
151287
153313
  Args: never;
151288
153314
  Returns: boolean;
@@ -152027,6 +154053,10 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
152027
154053
  };
152028
154054
  Returns: string;
152029
154055
  };
154056
+ pick_is_reference_admin: {
154057
+ Args: never;
154058
+ Returns: boolean;
154059
+ };
152030
154060
  pick_mark_printed: {
152031
154061
  Args: {
152032
154062
  _queue_item_id: string;
@@ -152900,6 +154930,13 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
152900
154930
  };
152901
154931
  Returns: import("../integrations/supabase/types").Json;
152902
154932
  };
154933
+ scan_controleer_pincode: {
154934
+ Args: {
154935
+ p_pin: string;
154936
+ p_scanner_id: string;
154937
+ };
154938
+ Returns: boolean;
154939
+ };
152903
154940
  scan_dashboard_stats: {
152904
154941
  Args: {
152905
154942
  p_dagen?: number;
@@ -152919,6 +154956,12 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
152919
154956
  };
152920
154957
  Returns: import("../integrations/supabase/types").Json;
152921
154958
  };
154959
+ scan_heeft_pincode: {
154960
+ Args: {
154961
+ p_scanner_id: string;
154962
+ };
154963
+ Returns: boolean;
154964
+ };
152922
154965
  scan_kar_compleet: {
152923
154966
  Args: {
152924
154967
  p_allow_reprint?: boolean;
@@ -152936,6 +154979,7 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
152936
154979
  Args: {
152937
154980
  p_code: string;
152938
154981
  p_latency_ms?: number;
154982
+ p_medewerker?: string;
152939
154983
  p_message?: string;
152940
154984
  p_result: string;
152941
154985
  p_scanner_key?: string;
@@ -153008,6 +155052,22 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
153008
155052
  };
153009
155053
  Returns: undefined;
153010
155054
  };
155055
+ scan_scanner_info: {
155056
+ Args: {
155057
+ p_slug: string;
155058
+ };
155059
+ Returns: {
155060
+ actief: boolean;
155061
+ heeft_pincode: boolean;
155062
+ id: string;
155063
+ naam: string;
155064
+ omschrijving: string;
155065
+ printer_id: string;
155066
+ type: string;
155067
+ vereist_medewerker: boolean;
155068
+ werkplek: string;
155069
+ }[];
155070
+ };
153011
155071
  scan_sessie_annuleren: {
153012
155072
  Args: {
153013
155073
  p_sessie_id: string;
@@ -153970,6 +156030,21 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
153970
156030
  };
153971
156031
  Returns: import("../integrations/supabase/types").Json;
153972
156032
  };
156033
+ wo_list_colleague_planning: {
156034
+ Args: {
156035
+ _from: string;
156036
+ _monteur_id: string;
156037
+ _to: string;
156038
+ };
156039
+ Returns: {
156040
+ end_at: string;
156041
+ id: string;
156042
+ role: string;
156043
+ start_at: string;
156044
+ status: string;
156045
+ werkbon_id: string;
156046
+ }[];
156047
+ };
153973
156048
  wo_list_offerte_requests: {
153974
156049
  Args: {
153975
156050
  _status?: string;