@flowselections/logistiek-engine 1.0.89 → 1.0.94

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (31) hide show
  1. package/dist-lib/components/FlowOrders.js +1 -1
  2. package/dist-lib/hooks/useShippingNoteStatus.d.ts +2 -0
  3. package/dist-lib/hooks/useShippingNoteStatus.d.ts.map +1 -1
  4. package/dist-lib/hooks/useShippingNoteStatus.js +13 -1
  5. package/dist-lib/hooks/useShippingNoteStatus.test.d.ts +2 -0
  6. package/dist-lib/hooks/useShippingNoteStatus.test.d.ts.map +1 -0
  7. package/dist-lib/hooks/useShippingNoteStatus.test.js +20 -0
  8. package/dist-lib/integrations/supabase/auth-middleware.d.ts +356 -0
  9. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  10. package/dist-lib/integrations/supabase/client.server.d.ts +356 -0
  11. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  12. package/dist-lib/integrations/supabase/moduleClient.d.ts +356 -0
  13. package/dist-lib/integrations/supabase/moduleClient.d.ts.map +1 -1
  14. package/dist-lib/integrations/supabase/types.d.ts +364 -0
  15. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  16. package/dist-lib/lib/cartCoverage.functions.d.ts +356 -0
  17. package/dist-lib/lib/cartCoverage.functions.d.ts.map +1 -1
  18. package/dist-lib/lib/floridayDocuments.functions.d.ts +1068 -0
  19. package/dist-lib/lib/floridayDocuments.functions.d.ts.map +1 -1
  20. package/dist-lib/lib/floridayPush.functions.d.ts +356 -0
  21. package/dist-lib/lib/floridayPush.functions.d.ts.map +1 -1
  22. package/dist-lib/lib/loadCarrierPlanning.functions.d.ts +1780 -0
  23. package/dist-lib/lib/loadCarrierPlanning.functions.d.ts.map +1 -1
  24. package/dist-lib/lib/logisticsRecalcJob.functions.d.ts +712 -0
  25. package/dist-lib/lib/logisticsRecalcJob.functions.d.ts.map +1 -1
  26. package/dist-lib/lib/logisticsRecalculate.functions.d.ts +356 -0
  27. package/dist-lib/lib/logisticsRecalculate.functions.d.ts.map +1 -1
  28. package/dist-lib/lib/plannerDiff.functions.d.ts +356 -0
  29. package/dist-lib/lib/plannerDiff.functions.d.ts.map +1 -1
  30. package/dist-lib/lib/ruleEngineSchema.js +2 -2
  31. package/package.json +158 -158
@@ -734,6 +734,27 @@ export declare const getFloridayConnection: import("@tanstack/start-client-core"
734
734
  };
735
735
  Relationships: [];
736
736
  };
737
+ artikelen_instellingen: {
738
+ Row: {
739
+ created_at: string;
740
+ id: number;
741
+ marge_procent: number;
742
+ updated_at: string;
743
+ };
744
+ Insert: {
745
+ created_at?: string;
746
+ id?: number;
747
+ marge_procent?: number;
748
+ updated_at?: string;
749
+ };
750
+ Update: {
751
+ created_at?: string;
752
+ id?: number;
753
+ marge_procent?: number;
754
+ updated_at?: string;
755
+ };
756
+ Relationships: [];
757
+ };
737
758
  artikelen_veldconfig: {
738
759
  Row: {
739
760
  bron_pad: string;
@@ -10409,6 +10430,30 @@ export declare const getFloridayConnection: import("@tanstack/start-client-core"
10409
10430
  };
10410
10431
  Relationships: [];
10411
10432
  };
10433
+ logistics_cart_barcode_archief: {
10434
+ Row: {
10435
+ barcode: string;
10436
+ cart_id: string;
10437
+ created_at: string | null;
10438
+ gearchiveerd_op: string;
10439
+ order_id: string | null;
10440
+ };
10441
+ Insert: {
10442
+ barcode: string;
10443
+ cart_id: string;
10444
+ created_at?: string | null;
10445
+ gearchiveerd_op?: string;
10446
+ order_id?: string | null;
10447
+ };
10448
+ Update: {
10449
+ barcode?: string;
10450
+ cart_id?: string;
10451
+ created_at?: string | null;
10452
+ gearchiveerd_op?: string;
10453
+ order_id?: string | null;
10454
+ };
10455
+ Relationships: [];
10456
+ };
10412
10457
  logistics_control_scan: {
10413
10458
  Row: {
10414
10459
  approved_at: string | null;
@@ -14695,6 +14740,7 @@ export declare const getFloridayConnection: import("@tanstack/start-client-core"
14695
14740
  next_attempt_at: string;
14696
14741
  order_id: string;
14697
14742
  processed_at: string | null;
14743
+ send_error: string | null;
14698
14744
  status: string;
14699
14745
  updated_at: string;
14700
14746
  };
@@ -14708,6 +14754,7 @@ export declare const getFloridayConnection: import("@tanstack/start-client-core"
14708
14754
  next_attempt_at?: string;
14709
14755
  order_id: string;
14710
14756
  processed_at?: string | null;
14757
+ send_error?: string | null;
14711
14758
  status?: string;
14712
14759
  updated_at?: string;
14713
14760
  };
@@ -14721,6 +14768,7 @@ export declare const getFloridayConnection: import("@tanstack/start-client-core"
14721
14768
  next_attempt_at?: string;
14722
14769
  order_id?: string;
14723
14770
  processed_at?: string | null;
14771
+ send_error?: string | null;
14724
14772
  status?: string;
14725
14773
  updated_at?: string;
14726
14774
  };
@@ -17758,6 +17806,9 @@ export declare const getFloridayConnection: import("@tanstack/start-client-core"
17758
17806
  lead_time_days: number | null;
17759
17807
  min_order_quantity: number | null;
17760
17808
  notes: string | null;
17809
+ previous_price_cents: number | null;
17810
+ price_source: string;
17811
+ price_updated_at: string | null;
17761
17812
  product_id: string;
17762
17813
  purchase_price_cents: number | null;
17763
17814
  supplier_article_number: string | null;
@@ -17771,6 +17822,9 @@ export declare const getFloridayConnection: import("@tanstack/start-client-core"
17771
17822
  lead_time_days?: number | null;
17772
17823
  min_order_quantity?: number | null;
17773
17824
  notes?: string | null;
17825
+ previous_price_cents?: number | null;
17826
+ price_source?: string;
17827
+ price_updated_at?: string | null;
17774
17828
  product_id: string;
17775
17829
  purchase_price_cents?: number | null;
17776
17830
  supplier_article_number?: string | null;
@@ -17784,6 +17838,9 @@ export declare const getFloridayConnection: import("@tanstack/start-client-core"
17784
17838
  lead_time_days?: number | null;
17785
17839
  min_order_quantity?: number | null;
17786
17840
  notes?: string | null;
17841
+ previous_price_cents?: number | null;
17842
+ price_source?: string;
17843
+ price_updated_at?: string | null;
17787
17844
  product_id?: string;
17788
17845
  purchase_price_cents?: number | null;
17789
17846
  supplier_article_number?: string | null;
@@ -18314,9 +18371,13 @@ export declare const getFloridayConnection: import("@tanstack/start-client-core"
18314
18371
  purchase_order_items: {
18315
18372
  Row: {
18316
18373
  article_number: string | null;
18374
+ cancel_reason: string | null;
18375
+ cancelled_at: string | null;
18317
18376
  created_at: string;
18318
18377
  delivery_date: string | null;
18319
18378
  id: string;
18379
+ incoming_booked: number;
18380
+ line_status: string;
18320
18381
  name: string;
18321
18382
  note: string | null;
18322
18383
  pot_size: string | null;
@@ -18324,6 +18385,8 @@ export declare const getFloridayConnection: import("@tanstack/start-client-core"
18324
18385
  product_type: string;
18325
18386
  purchase_order_id: string;
18326
18387
  quantity: number;
18388
+ received_at: string | null;
18389
+ received_booked: number;
18327
18390
  supplier_id: string | null;
18328
18391
  supplier_product_id: string | null;
18329
18392
  unit_price_cents: number;
@@ -18331,9 +18394,13 @@ export declare const getFloridayConnection: import("@tanstack/start-client-core"
18331
18394
  };
18332
18395
  Insert: {
18333
18396
  article_number?: string | null;
18397
+ cancel_reason?: string | null;
18398
+ cancelled_at?: string | null;
18334
18399
  created_at?: string;
18335
18400
  delivery_date?: string | null;
18336
18401
  id?: string;
18402
+ incoming_booked?: number;
18403
+ line_status?: string;
18337
18404
  name?: string;
18338
18405
  note?: string | null;
18339
18406
  pot_size?: string | null;
@@ -18341,6 +18408,8 @@ export declare const getFloridayConnection: import("@tanstack/start-client-core"
18341
18408
  product_type?: string;
18342
18409
  purchase_order_id: string;
18343
18410
  quantity?: number;
18411
+ received_at?: string | null;
18412
+ received_booked?: number;
18344
18413
  supplier_id?: string | null;
18345
18414
  supplier_product_id?: string | null;
18346
18415
  unit_price_cents?: number;
@@ -18348,9 +18417,13 @@ export declare const getFloridayConnection: import("@tanstack/start-client-core"
18348
18417
  };
18349
18418
  Update: {
18350
18419
  article_number?: string | null;
18420
+ cancel_reason?: string | null;
18421
+ cancelled_at?: string | null;
18351
18422
  created_at?: string;
18352
18423
  delivery_date?: string | null;
18353
18424
  id?: string;
18425
+ incoming_booked?: number;
18426
+ line_status?: string;
18354
18427
  name?: string;
18355
18428
  note?: string | null;
18356
18429
  pot_size?: string | null;
@@ -18358,6 +18431,8 @@ export declare const getFloridayConnection: import("@tanstack/start-client-core"
18358
18431
  product_type?: string;
18359
18432
  purchase_order_id?: string;
18360
18433
  quantity?: number;
18434
+ received_at?: string | null;
18435
+ received_booked?: number;
18361
18436
  supplier_id?: string | null;
18362
18437
  supplier_product_id?: string | null;
18363
18438
  unit_price_cents?: number;
@@ -18461,6 +18536,153 @@ export declare const getFloridayConnection: import("@tanstack/start-client-core"
18461
18536
  referencedColumns: ["id"];
18462
18537
  }];
18463
18538
  };
18539
+ purchase_request_events: {
18540
+ Row: {
18541
+ created_at: string;
18542
+ details: import("../integrations/supabase/types").Json | null;
18543
+ event_type: string;
18544
+ id: string;
18545
+ request_id: string;
18546
+ };
18547
+ Insert: {
18548
+ created_at?: string;
18549
+ details?: import("../integrations/supabase/types").Json | null;
18550
+ event_type: string;
18551
+ id?: string;
18552
+ request_id: string;
18553
+ };
18554
+ Update: {
18555
+ created_at?: string;
18556
+ details?: import("../integrations/supabase/types").Json | null;
18557
+ event_type?: string;
18558
+ id?: string;
18559
+ request_id?: string;
18560
+ };
18561
+ Relationships: [{
18562
+ foreignKeyName: "purchase_request_events_request_id_fkey";
18563
+ columns: ["request_id"];
18564
+ isOneToOne: false;
18565
+ referencedRelation: "purchase_requests";
18566
+ referencedColumns: ["id"];
18567
+ }];
18568
+ };
18569
+ purchase_request_responses: {
18570
+ Row: {
18571
+ confirmed_date: string | null;
18572
+ confirmed_price_cents: number | null;
18573
+ confirmed_quantity: number;
18574
+ created_at: string;
18575
+ id: string;
18576
+ not_available: boolean;
18577
+ note: string | null;
18578
+ purchase_order_item_id: string;
18579
+ request_id: string;
18580
+ updated_at: string;
18581
+ };
18582
+ Insert: {
18583
+ confirmed_date?: string | null;
18584
+ confirmed_price_cents?: number | null;
18585
+ confirmed_quantity?: number;
18586
+ created_at?: string;
18587
+ id?: string;
18588
+ not_available?: boolean;
18589
+ note?: string | null;
18590
+ purchase_order_item_id: string;
18591
+ request_id: string;
18592
+ updated_at?: string;
18593
+ };
18594
+ Update: {
18595
+ confirmed_date?: string | null;
18596
+ confirmed_price_cents?: number | null;
18597
+ confirmed_quantity?: number;
18598
+ created_at?: string;
18599
+ id?: string;
18600
+ not_available?: boolean;
18601
+ note?: string | null;
18602
+ purchase_order_item_id?: string;
18603
+ request_id?: string;
18604
+ updated_at?: string;
18605
+ };
18606
+ Relationships: [{
18607
+ foreignKeyName: "purchase_request_responses_purchase_order_item_id_fkey";
18608
+ columns: ["purchase_order_item_id"];
18609
+ isOneToOne: false;
18610
+ referencedRelation: "purchase_order_items";
18611
+ referencedColumns: ["id"];
18612
+ }, {
18613
+ foreignKeyName: "purchase_request_responses_request_id_fkey";
18614
+ columns: ["request_id"];
18615
+ isOneToOne: false;
18616
+ referencedRelation: "purchase_requests";
18617
+ referencedColumns: ["id"];
18618
+ }];
18619
+ };
18620
+ purchase_requests: {
18621
+ Row: {
18622
+ created_at: string;
18623
+ expires_at: string;
18624
+ first_viewed_at: string | null;
18625
+ id: string;
18626
+ processed_at: string | null;
18627
+ purchase_order_id: string;
18628
+ responded_at: string | null;
18629
+ sent_at: string;
18630
+ status: string;
18631
+ supplier_id: string | null;
18632
+ supplier_name: string;
18633
+ supplier_note: string | null;
18634
+ to_address: string | null;
18635
+ token_hash: string;
18636
+ updated_at: string;
18637
+ };
18638
+ Insert: {
18639
+ created_at?: string;
18640
+ expires_at?: string;
18641
+ first_viewed_at?: string | null;
18642
+ id?: string;
18643
+ processed_at?: string | null;
18644
+ purchase_order_id: string;
18645
+ responded_at?: string | null;
18646
+ sent_at?: string;
18647
+ status?: string;
18648
+ supplier_id?: string | null;
18649
+ supplier_name?: string;
18650
+ supplier_note?: string | null;
18651
+ to_address?: string | null;
18652
+ token_hash: string;
18653
+ updated_at?: string;
18654
+ };
18655
+ Update: {
18656
+ created_at?: string;
18657
+ expires_at?: string;
18658
+ first_viewed_at?: string | null;
18659
+ id?: string;
18660
+ processed_at?: string | null;
18661
+ purchase_order_id?: string;
18662
+ responded_at?: string | null;
18663
+ sent_at?: string;
18664
+ status?: string;
18665
+ supplier_id?: string | null;
18666
+ supplier_name?: string;
18667
+ supplier_note?: string | null;
18668
+ to_address?: string | null;
18669
+ token_hash?: string;
18670
+ updated_at?: string;
18671
+ };
18672
+ Relationships: [{
18673
+ foreignKeyName: "purchase_requests_purchase_order_id_fkey";
18674
+ columns: ["purchase_order_id"];
18675
+ isOneToOne: false;
18676
+ referencedRelation: "purchase_orders";
18677
+ referencedColumns: ["id"];
18678
+ }, {
18679
+ foreignKeyName: "purchase_requests_supplier_id_fkey";
18680
+ columns: ["supplier_id"];
18681
+ isOneToOne: false;
18682
+ referencedRelation: "suppliers";
18683
+ referencedColumns: ["id"];
18684
+ }];
18685
+ };
18464
18686
  reception_notifications: {
18465
18687
  Row: {
18466
18688
  booking_id: string | null;
@@ -20624,6 +20846,7 @@ export declare const getFloridayConnection: import("@tanstack/start-client-core"
20624
20846
  auto_invoice_enabled: boolean;
20625
20847
  auto_invoice_start_date: string | null;
20626
20848
  auto_invoice_trigger_statuses: string[];
20849
+ auto_send_mode: string | null;
20627
20850
  created_at: string;
20628
20851
  debtor_gl_account: string;
20629
20852
  default_article_code: string | null;
@@ -20652,6 +20875,7 @@ export declare const getFloridayConnection: import("@tanstack/start-client-core"
20652
20875
  auto_invoice_enabled?: boolean;
20653
20876
  auto_invoice_start_date?: string | null;
20654
20877
  auto_invoice_trigger_statuses?: string[];
20878
+ auto_send_mode?: string | null;
20655
20879
  created_at?: string;
20656
20880
  debtor_gl_account?: string;
20657
20881
  default_article_code?: string | null;
@@ -20680,6 +20904,7 @@ export declare const getFloridayConnection: import("@tanstack/start-client-core"
20680
20904
  auto_invoice_enabled?: boolean;
20681
20905
  auto_invoice_start_date?: string | null;
20682
20906
  auto_invoice_trigger_statuses?: string[];
20907
+ auto_send_mode?: string | null;
20683
20908
  created_at?: string;
20684
20909
  debtor_gl_account?: string;
20685
20910
  default_article_code?: string | null;
@@ -25913,13 +26138,66 @@ export declare const getFloridayConnection: import("@tanstack/start-client-core"
25913
26138
  };
25914
26139
  Returns: import("../integrations/supabase/types").Json;
25915
26140
  };
26141
+ inkoop_cancel_line: {
26142
+ Args: {
26143
+ _item_id: string;
26144
+ _reason: string;
26145
+ };
26146
+ Returns: string;
26147
+ };
26148
+ inkoop_get_supplier_request: {
26149
+ Args: {
26150
+ _token: string;
26151
+ };
26152
+ Returns: import("../integrations/supabase/types").Json;
26153
+ };
26154
+ inkoop_hash_token: {
26155
+ Args: {
26156
+ _token: string;
26157
+ };
26158
+ Returns: string;
26159
+ };
26160
+ inkoop_html_escape: {
26161
+ Args: {
26162
+ _t: string;
26163
+ };
26164
+ Returns: string;
26165
+ };
26166
+ inkoop_list_artikelen: {
26167
+ Args: never;
26168
+ Returns: {
26169
+ article_number: string;
26170
+ barcode: string;
26171
+ id: string;
26172
+ incoming_quantity: number;
26173
+ is_layer: boolean;
26174
+ location: string;
26175
+ min_quantity: number;
26176
+ preferred_supplier_name: string;
26177
+ product: string;
26178
+ product_type: string;
26179
+ purchase_price: number;
26180
+ quantity: number;
26181
+ sale_price: number;
26182
+ supplier_count: number;
26183
+ unit: string;
26184
+ }[];
26185
+ };
25916
26186
  inkoop_next_order_number: {
25917
26187
  Args: never;
25918
26188
  Returns: string;
25919
26189
  };
26190
+ inkoop_process_request: {
26191
+ Args: {
26192
+ _request_id: string;
26193
+ };
26194
+ Returns: undefined;
26195
+ };
25920
26196
  inkoop_send_order: {
25921
26197
  Args: {
26198
+ _base_url?: string;
25922
26199
  _order_id: string;
26200
+ _resend?: boolean;
25923
26201
  };
25924
26202
  Returns: {
25925
26203
  outbox_id: string;
@@ -25934,6 +26212,26 @@ export declare const getFloridayConnection: import("@tanstack/start-client-core"
25934
26212
  };
25935
26213
  Returns: undefined;
25936
26214
  };
26215
+ inkoop_stock_key: {
26216
+ Args: {
26217
+ p_product_id: string;
26218
+ };
26219
+ Returns: string;
26220
+ };
26221
+ inkoop_submit_supplier_response: {
26222
+ Args: {
26223
+ _lines: import("../integrations/supabase/types").Json;
26224
+ _note?: string;
26225
+ _token: string;
26226
+ };
26227
+ Returns: import("../integrations/supabase/types").Json;
26228
+ };
26229
+ inkoop_sync_item_stock: {
26230
+ Args: {
26231
+ p_item_id: string;
26232
+ };
26233
+ Returns: undefined;
26234
+ };
25937
26235
  instructie_get: {
25938
26236
  Args: {
25939
26237
  _sleutel: string;
@@ -26371,6 +26669,12 @@ export declare const getFloridayConnection: import("@tanstack/start-client-core"
26371
26669
  };
26372
26670
  Returns: number;
26373
26671
  };
26672
+ logistics_cart_barcode_opschonen: {
26673
+ Args: {
26674
+ p_portie?: number;
26675
+ };
26676
+ Returns: import("../integrations/supabase/types").Json;
26677
+ };
26374
26678
  logistics_cart_barcode_value: {
26375
26679
  Args: {
26376
26680
  _cart_id: string;
@@ -27980,6 +28284,13 @@ export declare const getFloridayConnection: import("@tanstack/start-client-core"
27980
28284
  };
27981
28285
  Returns: string;
27982
28286
  };
28287
+ logistics_shipping_note_status: {
28288
+ Args: {
28289
+ p_cart_id?: string;
28290
+ p_slip_job_id?: string;
28291
+ };
28292
+ Returns: import("../integrations/supabase/types").Json;
28293
+ };
27983
28294
  logistics_shipping_notes_wake_all: {
27984
28295
  Args: never;
27985
28296
  Returns: import("../integrations/supabase/types").Json;
@@ -29659,6 +29970,13 @@ export declare const getFloridayConnection: import("@tanstack/start-client-core"
29659
29970
  };
29660
29971
  Returns: import("../integrations/supabase/types").Json;
29661
29972
  };
29973
+ scan_controleer_pincode: {
29974
+ Args: {
29975
+ p_pin: string;
29976
+ p_scanner_id: string;
29977
+ };
29978
+ Returns: boolean;
29979
+ };
29662
29980
  scan_dashboard_stats: {
29663
29981
  Args: {
29664
29982
  p_dagen?: number;
@@ -29678,6 +29996,12 @@ export declare const getFloridayConnection: import("@tanstack/start-client-core"
29678
29996
  };
29679
29997
  Returns: import("../integrations/supabase/types").Json;
29680
29998
  };
29999
+ scan_heeft_pincode: {
30000
+ Args: {
30001
+ p_scanner_id: string;
30002
+ };
30003
+ Returns: boolean;
30004
+ };
29681
30005
  scan_kar_compleet: {
29682
30006
  Args: {
29683
30007
  p_allow_reprint?: boolean;
@@ -29695,6 +30019,7 @@ export declare const getFloridayConnection: import("@tanstack/start-client-core"
29695
30019
  Args: {
29696
30020
  p_code: string;
29697
30021
  p_latency_ms?: number;
30022
+ p_medewerker?: string;
29698
30023
  p_message?: string;
29699
30024
  p_result: string;
29700
30025
  p_scanner_key?: string;
@@ -29767,6 +30092,22 @@ export declare const getFloridayConnection: import("@tanstack/start-client-core"
29767
30092
  };
29768
30093
  Returns: undefined;
29769
30094
  };
30095
+ scan_scanner_info: {
30096
+ Args: {
30097
+ p_slug: string;
30098
+ };
30099
+ Returns: {
30100
+ actief: boolean;
30101
+ heeft_pincode: boolean;
30102
+ id: string;
30103
+ naam: string;
30104
+ omschrijving: string;
30105
+ printer_id: string;
30106
+ type: string;
30107
+ vereist_medewerker: boolean;
30108
+ werkplek: string;
30109
+ }[];
30110
+ };
29770
30111
  scan_sessie_annuleren: {
29771
30112
  Args: {
29772
30113
  p_sessie_id: string;
@@ -30729,6 +31070,21 @@ export declare const getFloridayConnection: import("@tanstack/start-client-core"
30729
31070
  };
30730
31071
  Returns: import("../integrations/supabase/types").Json;
30731
31072
  };
31073
+ wo_list_colleague_planning: {
31074
+ Args: {
31075
+ _from: string;
31076
+ _monteur_id: string;
31077
+ _to: string;
31078
+ };
31079
+ Returns: {
31080
+ end_at: string;
31081
+ id: string;
31082
+ role: string;
31083
+ start_at: string;
31084
+ status: string;
31085
+ werkbon_id: string;
31086
+ }[];
31087
+ };
30732
31088
  wo_list_offerte_requests: {
30733
31089
  Args: {
30734
31090
  _status?: string;
@@ -31535,6 +31891,27 @@ export declare const fetchLogisticsDocument: import("@tanstack/start-client-core
31535
31891
  };
31536
31892
  Relationships: [];
31537
31893
  };
31894
+ artikelen_instellingen: {
31895
+ Row: {
31896
+ created_at: string;
31897
+ id: number;
31898
+ marge_procent: number;
31899
+ updated_at: string;
31900
+ };
31901
+ Insert: {
31902
+ created_at?: string;
31903
+ id?: number;
31904
+ marge_procent?: number;
31905
+ updated_at?: string;
31906
+ };
31907
+ Update: {
31908
+ created_at?: string;
31909
+ id?: number;
31910
+ marge_procent?: number;
31911
+ updated_at?: string;
31912
+ };
31913
+ Relationships: [];
31914
+ };
31538
31915
  artikelen_veldconfig: {
31539
31916
  Row: {
31540
31917
  bron_pad: string;
@@ -41210,6 +41587,30 @@ export declare const fetchLogisticsDocument: import("@tanstack/start-client-core
41210
41587
  };
41211
41588
  Relationships: [];
41212
41589
  };
41590
+ logistics_cart_barcode_archief: {
41591
+ Row: {
41592
+ barcode: string;
41593
+ cart_id: string;
41594
+ created_at: string | null;
41595
+ gearchiveerd_op: string;
41596
+ order_id: string | null;
41597
+ };
41598
+ Insert: {
41599
+ barcode: string;
41600
+ cart_id: string;
41601
+ created_at?: string | null;
41602
+ gearchiveerd_op?: string;
41603
+ order_id?: string | null;
41604
+ };
41605
+ Update: {
41606
+ barcode?: string;
41607
+ cart_id?: string;
41608
+ created_at?: string | null;
41609
+ gearchiveerd_op?: string;
41610
+ order_id?: string | null;
41611
+ };
41612
+ Relationships: [];
41613
+ };
41213
41614
  logistics_control_scan: {
41214
41615
  Row: {
41215
41616
  approved_at: string | null;
@@ -45496,6 +45897,7 @@ export declare const fetchLogisticsDocument: import("@tanstack/start-client-core
45496
45897
  next_attempt_at: string;
45497
45898
  order_id: string;
45498
45899
  processed_at: string | null;
45900
+ send_error: string | null;
45499
45901
  status: string;
45500
45902
  updated_at: string;
45501
45903
  };
@@ -45509,6 +45911,7 @@ export declare const fetchLogisticsDocument: import("@tanstack/start-client-core
45509
45911
  next_attempt_at?: string;
45510
45912
  order_id: string;
45511
45913
  processed_at?: string | null;
45914
+ send_error?: string | null;
45512
45915
  status?: string;
45513
45916
  updated_at?: string;
45514
45917
  };
@@ -45522,6 +45925,7 @@ export declare const fetchLogisticsDocument: import("@tanstack/start-client-core
45522
45925
  next_attempt_at?: string;
45523
45926
  order_id?: string;
45524
45927
  processed_at?: string | null;
45928
+ send_error?: string | null;
45525
45929
  status?: string;
45526
45930
  updated_at?: string;
45527
45931
  };
@@ -48559,6 +48963,9 @@ export declare const fetchLogisticsDocument: import("@tanstack/start-client-core
48559
48963
  lead_time_days: number | null;
48560
48964
  min_order_quantity: number | null;
48561
48965
  notes: string | null;
48966
+ previous_price_cents: number | null;
48967
+ price_source: string;
48968
+ price_updated_at: string | null;
48562
48969
  product_id: string;
48563
48970
  purchase_price_cents: number | null;
48564
48971
  supplier_article_number: string | null;
@@ -48572,6 +48979,9 @@ export declare const fetchLogisticsDocument: import("@tanstack/start-client-core
48572
48979
  lead_time_days?: number | null;
48573
48980
  min_order_quantity?: number | null;
48574
48981
  notes?: string | null;
48982
+ previous_price_cents?: number | null;
48983
+ price_source?: string;
48984
+ price_updated_at?: string | null;
48575
48985
  product_id: string;
48576
48986
  purchase_price_cents?: number | null;
48577
48987
  supplier_article_number?: string | null;
@@ -48585,6 +48995,9 @@ export declare const fetchLogisticsDocument: import("@tanstack/start-client-core
48585
48995
  lead_time_days?: number | null;
48586
48996
  min_order_quantity?: number | null;
48587
48997
  notes?: string | null;
48998
+ previous_price_cents?: number | null;
48999
+ price_source?: string;
49000
+ price_updated_at?: string | null;
48588
49001
  product_id?: string;
48589
49002
  purchase_price_cents?: number | null;
48590
49003
  supplier_article_number?: string | null;
@@ -49115,9 +49528,13 @@ export declare const fetchLogisticsDocument: import("@tanstack/start-client-core
49115
49528
  purchase_order_items: {
49116
49529
  Row: {
49117
49530
  article_number: string | null;
49531
+ cancel_reason: string | null;
49532
+ cancelled_at: string | null;
49118
49533
  created_at: string;
49119
49534
  delivery_date: string | null;
49120
49535
  id: string;
49536
+ incoming_booked: number;
49537
+ line_status: string;
49121
49538
  name: string;
49122
49539
  note: string | null;
49123
49540
  pot_size: string | null;
@@ -49125,6 +49542,8 @@ export declare const fetchLogisticsDocument: import("@tanstack/start-client-core
49125
49542
  product_type: string;
49126
49543
  purchase_order_id: string;
49127
49544
  quantity: number;
49545
+ received_at: string | null;
49546
+ received_booked: number;
49128
49547
  supplier_id: string | null;
49129
49548
  supplier_product_id: string | null;
49130
49549
  unit_price_cents: number;
@@ -49132,9 +49551,13 @@ export declare const fetchLogisticsDocument: import("@tanstack/start-client-core
49132
49551
  };
49133
49552
  Insert: {
49134
49553
  article_number?: string | null;
49554
+ cancel_reason?: string | null;
49555
+ cancelled_at?: string | null;
49135
49556
  created_at?: string;
49136
49557
  delivery_date?: string | null;
49137
49558
  id?: string;
49559
+ incoming_booked?: number;
49560
+ line_status?: string;
49138
49561
  name?: string;
49139
49562
  note?: string | null;
49140
49563
  pot_size?: string | null;
@@ -49142,6 +49565,8 @@ export declare const fetchLogisticsDocument: import("@tanstack/start-client-core
49142
49565
  product_type?: string;
49143
49566
  purchase_order_id: string;
49144
49567
  quantity?: number;
49568
+ received_at?: string | null;
49569
+ received_booked?: number;
49145
49570
  supplier_id?: string | null;
49146
49571
  supplier_product_id?: string | null;
49147
49572
  unit_price_cents?: number;
@@ -49149,9 +49574,13 @@ export declare const fetchLogisticsDocument: import("@tanstack/start-client-core
49149
49574
  };
49150
49575
  Update: {
49151
49576
  article_number?: string | null;
49577
+ cancel_reason?: string | null;
49578
+ cancelled_at?: string | null;
49152
49579
  created_at?: string;
49153
49580
  delivery_date?: string | null;
49154
49581
  id?: string;
49582
+ incoming_booked?: number;
49583
+ line_status?: string;
49155
49584
  name?: string;
49156
49585
  note?: string | null;
49157
49586
  pot_size?: string | null;
@@ -49159,6 +49588,8 @@ export declare const fetchLogisticsDocument: import("@tanstack/start-client-core
49159
49588
  product_type?: string;
49160
49589
  purchase_order_id?: string;
49161
49590
  quantity?: number;
49591
+ received_at?: string | null;
49592
+ received_booked?: number;
49162
49593
  supplier_id?: string | null;
49163
49594
  supplier_product_id?: string | null;
49164
49595
  unit_price_cents?: number;
@@ -49262,6 +49693,153 @@ export declare const fetchLogisticsDocument: import("@tanstack/start-client-core
49262
49693
  referencedColumns: ["id"];
49263
49694
  }];
49264
49695
  };
49696
+ purchase_request_events: {
49697
+ Row: {
49698
+ created_at: string;
49699
+ details: import("../integrations/supabase/types").Json | null;
49700
+ event_type: string;
49701
+ id: string;
49702
+ request_id: string;
49703
+ };
49704
+ Insert: {
49705
+ created_at?: string;
49706
+ details?: import("../integrations/supabase/types").Json | null;
49707
+ event_type: string;
49708
+ id?: string;
49709
+ request_id: string;
49710
+ };
49711
+ Update: {
49712
+ created_at?: string;
49713
+ details?: import("../integrations/supabase/types").Json | null;
49714
+ event_type?: string;
49715
+ id?: string;
49716
+ request_id?: string;
49717
+ };
49718
+ Relationships: [{
49719
+ foreignKeyName: "purchase_request_events_request_id_fkey";
49720
+ columns: ["request_id"];
49721
+ isOneToOne: false;
49722
+ referencedRelation: "purchase_requests";
49723
+ referencedColumns: ["id"];
49724
+ }];
49725
+ };
49726
+ purchase_request_responses: {
49727
+ Row: {
49728
+ confirmed_date: string | null;
49729
+ confirmed_price_cents: number | null;
49730
+ confirmed_quantity: number;
49731
+ created_at: string;
49732
+ id: string;
49733
+ not_available: boolean;
49734
+ note: string | null;
49735
+ purchase_order_item_id: string;
49736
+ request_id: string;
49737
+ updated_at: string;
49738
+ };
49739
+ Insert: {
49740
+ confirmed_date?: string | null;
49741
+ confirmed_price_cents?: number | null;
49742
+ confirmed_quantity?: number;
49743
+ created_at?: string;
49744
+ id?: string;
49745
+ not_available?: boolean;
49746
+ note?: string | null;
49747
+ purchase_order_item_id: string;
49748
+ request_id: string;
49749
+ updated_at?: string;
49750
+ };
49751
+ Update: {
49752
+ confirmed_date?: string | null;
49753
+ confirmed_price_cents?: number | null;
49754
+ confirmed_quantity?: number;
49755
+ created_at?: string;
49756
+ id?: string;
49757
+ not_available?: boolean;
49758
+ note?: string | null;
49759
+ purchase_order_item_id?: string;
49760
+ request_id?: string;
49761
+ updated_at?: string;
49762
+ };
49763
+ Relationships: [{
49764
+ foreignKeyName: "purchase_request_responses_purchase_order_item_id_fkey";
49765
+ columns: ["purchase_order_item_id"];
49766
+ isOneToOne: false;
49767
+ referencedRelation: "purchase_order_items";
49768
+ referencedColumns: ["id"];
49769
+ }, {
49770
+ foreignKeyName: "purchase_request_responses_request_id_fkey";
49771
+ columns: ["request_id"];
49772
+ isOneToOne: false;
49773
+ referencedRelation: "purchase_requests";
49774
+ referencedColumns: ["id"];
49775
+ }];
49776
+ };
49777
+ purchase_requests: {
49778
+ Row: {
49779
+ created_at: string;
49780
+ expires_at: string;
49781
+ first_viewed_at: string | null;
49782
+ id: string;
49783
+ processed_at: string | null;
49784
+ purchase_order_id: string;
49785
+ responded_at: string | null;
49786
+ sent_at: string;
49787
+ status: string;
49788
+ supplier_id: string | null;
49789
+ supplier_name: string;
49790
+ supplier_note: string | null;
49791
+ to_address: string | null;
49792
+ token_hash: string;
49793
+ updated_at: string;
49794
+ };
49795
+ Insert: {
49796
+ created_at?: string;
49797
+ expires_at?: string;
49798
+ first_viewed_at?: string | null;
49799
+ id?: string;
49800
+ processed_at?: string | null;
49801
+ purchase_order_id: string;
49802
+ responded_at?: string | null;
49803
+ sent_at?: string;
49804
+ status?: string;
49805
+ supplier_id?: string | null;
49806
+ supplier_name?: string;
49807
+ supplier_note?: string | null;
49808
+ to_address?: string | null;
49809
+ token_hash: string;
49810
+ updated_at?: string;
49811
+ };
49812
+ Update: {
49813
+ created_at?: string;
49814
+ expires_at?: string;
49815
+ first_viewed_at?: string | null;
49816
+ id?: string;
49817
+ processed_at?: string | null;
49818
+ purchase_order_id?: string;
49819
+ responded_at?: string | null;
49820
+ sent_at?: string;
49821
+ status?: string;
49822
+ supplier_id?: string | null;
49823
+ supplier_name?: string;
49824
+ supplier_note?: string | null;
49825
+ to_address?: string | null;
49826
+ token_hash?: string;
49827
+ updated_at?: string;
49828
+ };
49829
+ Relationships: [{
49830
+ foreignKeyName: "purchase_requests_purchase_order_id_fkey";
49831
+ columns: ["purchase_order_id"];
49832
+ isOneToOne: false;
49833
+ referencedRelation: "purchase_orders";
49834
+ referencedColumns: ["id"];
49835
+ }, {
49836
+ foreignKeyName: "purchase_requests_supplier_id_fkey";
49837
+ columns: ["supplier_id"];
49838
+ isOneToOne: false;
49839
+ referencedRelation: "suppliers";
49840
+ referencedColumns: ["id"];
49841
+ }];
49842
+ };
49265
49843
  reception_notifications: {
49266
49844
  Row: {
49267
49845
  booking_id: string | null;
@@ -51425,6 +52003,7 @@ export declare const fetchLogisticsDocument: import("@tanstack/start-client-core
51425
52003
  auto_invoice_enabled: boolean;
51426
52004
  auto_invoice_start_date: string | null;
51427
52005
  auto_invoice_trigger_statuses: string[];
52006
+ auto_send_mode: string | null;
51428
52007
  created_at: string;
51429
52008
  debtor_gl_account: string;
51430
52009
  default_article_code: string | null;
@@ -51453,6 +52032,7 @@ export declare const fetchLogisticsDocument: import("@tanstack/start-client-core
51453
52032
  auto_invoice_enabled?: boolean;
51454
52033
  auto_invoice_start_date?: string | null;
51455
52034
  auto_invoice_trigger_statuses?: string[];
52035
+ auto_send_mode?: string | null;
51456
52036
  created_at?: string;
51457
52037
  debtor_gl_account?: string;
51458
52038
  default_article_code?: string | null;
@@ -51481,6 +52061,7 @@ export declare const fetchLogisticsDocument: import("@tanstack/start-client-core
51481
52061
  auto_invoice_enabled?: boolean;
51482
52062
  auto_invoice_start_date?: string | null;
51483
52063
  auto_invoice_trigger_statuses?: string[];
52064
+ auto_send_mode?: string | null;
51484
52065
  created_at?: string;
51485
52066
  debtor_gl_account?: string;
51486
52067
  default_article_code?: string | null;
@@ -56714,13 +57295,66 @@ export declare const fetchLogisticsDocument: import("@tanstack/start-client-core
56714
57295
  };
56715
57296
  Returns: import("../integrations/supabase/types").Json;
56716
57297
  };
57298
+ inkoop_cancel_line: {
57299
+ Args: {
57300
+ _item_id: string;
57301
+ _reason: string;
57302
+ };
57303
+ Returns: string;
57304
+ };
57305
+ inkoop_get_supplier_request: {
57306
+ Args: {
57307
+ _token: string;
57308
+ };
57309
+ Returns: import("../integrations/supabase/types").Json;
57310
+ };
57311
+ inkoop_hash_token: {
57312
+ Args: {
57313
+ _token: string;
57314
+ };
57315
+ Returns: string;
57316
+ };
57317
+ inkoop_html_escape: {
57318
+ Args: {
57319
+ _t: string;
57320
+ };
57321
+ Returns: string;
57322
+ };
57323
+ inkoop_list_artikelen: {
57324
+ Args: never;
57325
+ Returns: {
57326
+ article_number: string;
57327
+ barcode: string;
57328
+ id: string;
57329
+ incoming_quantity: number;
57330
+ is_layer: boolean;
57331
+ location: string;
57332
+ min_quantity: number;
57333
+ preferred_supplier_name: string;
57334
+ product: string;
57335
+ product_type: string;
57336
+ purchase_price: number;
57337
+ quantity: number;
57338
+ sale_price: number;
57339
+ supplier_count: number;
57340
+ unit: string;
57341
+ }[];
57342
+ };
56717
57343
  inkoop_next_order_number: {
56718
57344
  Args: never;
56719
57345
  Returns: string;
56720
57346
  };
57347
+ inkoop_process_request: {
57348
+ Args: {
57349
+ _request_id: string;
57350
+ };
57351
+ Returns: undefined;
57352
+ };
56721
57353
  inkoop_send_order: {
56722
57354
  Args: {
57355
+ _base_url?: string;
56723
57356
  _order_id: string;
57357
+ _resend?: boolean;
56724
57358
  };
56725
57359
  Returns: {
56726
57360
  outbox_id: string;
@@ -56735,6 +57369,26 @@ export declare const fetchLogisticsDocument: import("@tanstack/start-client-core
56735
57369
  };
56736
57370
  Returns: undefined;
56737
57371
  };
57372
+ inkoop_stock_key: {
57373
+ Args: {
57374
+ p_product_id: string;
57375
+ };
57376
+ Returns: string;
57377
+ };
57378
+ inkoop_submit_supplier_response: {
57379
+ Args: {
57380
+ _lines: import("../integrations/supabase/types").Json;
57381
+ _note?: string;
57382
+ _token: string;
57383
+ };
57384
+ Returns: import("../integrations/supabase/types").Json;
57385
+ };
57386
+ inkoop_sync_item_stock: {
57387
+ Args: {
57388
+ p_item_id: string;
57389
+ };
57390
+ Returns: undefined;
57391
+ };
56738
57392
  instructie_get: {
56739
57393
  Args: {
56740
57394
  _sleutel: string;
@@ -57172,6 +57826,12 @@ export declare const fetchLogisticsDocument: import("@tanstack/start-client-core
57172
57826
  };
57173
57827
  Returns: number;
57174
57828
  };
57829
+ logistics_cart_barcode_opschonen: {
57830
+ Args: {
57831
+ p_portie?: number;
57832
+ };
57833
+ Returns: import("../integrations/supabase/types").Json;
57834
+ };
57175
57835
  logistics_cart_barcode_value: {
57176
57836
  Args: {
57177
57837
  _cart_id: string;
@@ -58781,6 +59441,13 @@ export declare const fetchLogisticsDocument: import("@tanstack/start-client-core
58781
59441
  };
58782
59442
  Returns: string;
58783
59443
  };
59444
+ logistics_shipping_note_status: {
59445
+ Args: {
59446
+ p_cart_id?: string;
59447
+ p_slip_job_id?: string;
59448
+ };
59449
+ Returns: import("../integrations/supabase/types").Json;
59450
+ };
58784
59451
  logistics_shipping_notes_wake_all: {
58785
59452
  Args: never;
58786
59453
  Returns: import("../integrations/supabase/types").Json;
@@ -60460,6 +61127,13 @@ export declare const fetchLogisticsDocument: import("@tanstack/start-client-core
60460
61127
  };
60461
61128
  Returns: import("../integrations/supabase/types").Json;
60462
61129
  };
61130
+ scan_controleer_pincode: {
61131
+ Args: {
61132
+ p_pin: string;
61133
+ p_scanner_id: string;
61134
+ };
61135
+ Returns: boolean;
61136
+ };
60463
61137
  scan_dashboard_stats: {
60464
61138
  Args: {
60465
61139
  p_dagen?: number;
@@ -60479,6 +61153,12 @@ export declare const fetchLogisticsDocument: import("@tanstack/start-client-core
60479
61153
  };
60480
61154
  Returns: import("../integrations/supabase/types").Json;
60481
61155
  };
61156
+ scan_heeft_pincode: {
61157
+ Args: {
61158
+ p_scanner_id: string;
61159
+ };
61160
+ Returns: boolean;
61161
+ };
60482
61162
  scan_kar_compleet: {
60483
61163
  Args: {
60484
61164
  p_allow_reprint?: boolean;
@@ -60496,6 +61176,7 @@ export declare const fetchLogisticsDocument: import("@tanstack/start-client-core
60496
61176
  Args: {
60497
61177
  p_code: string;
60498
61178
  p_latency_ms?: number;
61179
+ p_medewerker?: string;
60499
61180
  p_message?: string;
60500
61181
  p_result: string;
60501
61182
  p_scanner_key?: string;
@@ -60568,6 +61249,22 @@ export declare const fetchLogisticsDocument: import("@tanstack/start-client-core
60568
61249
  };
60569
61250
  Returns: undefined;
60570
61251
  };
61252
+ scan_scanner_info: {
61253
+ Args: {
61254
+ p_slug: string;
61255
+ };
61256
+ Returns: {
61257
+ actief: boolean;
61258
+ heeft_pincode: boolean;
61259
+ id: string;
61260
+ naam: string;
61261
+ omschrijving: string;
61262
+ printer_id: string;
61263
+ type: string;
61264
+ vereist_medewerker: boolean;
61265
+ werkplek: string;
61266
+ }[];
61267
+ };
60571
61268
  scan_sessie_annuleren: {
60572
61269
  Args: {
60573
61270
  p_sessie_id: string;
@@ -61530,6 +62227,21 @@ export declare const fetchLogisticsDocument: import("@tanstack/start-client-core
61530
62227
  };
61531
62228
  Returns: import("../integrations/supabase/types").Json;
61532
62229
  };
62230
+ wo_list_colleague_planning: {
62231
+ Args: {
62232
+ _from: string;
62233
+ _monteur_id: string;
62234
+ _to: string;
62235
+ };
62236
+ Returns: {
62237
+ end_at: string;
62238
+ id: string;
62239
+ role: string;
62240
+ start_at: string;
62241
+ status: string;
62242
+ werkbon_id: string;
62243
+ }[];
62244
+ };
61533
62245
  wo_list_offerte_requests: {
61534
62246
  Args: {
61535
62247
  _status?: string;
@@ -62369,6 +63081,27 @@ export declare const fetchMergedLogisticsDocuments: import("@tanstack/start-clie
62369
63081
  };
62370
63082
  Relationships: [];
62371
63083
  };
63084
+ artikelen_instellingen: {
63085
+ Row: {
63086
+ created_at: string;
63087
+ id: number;
63088
+ marge_procent: number;
63089
+ updated_at: string;
63090
+ };
63091
+ Insert: {
63092
+ created_at?: string;
63093
+ id?: number;
63094
+ marge_procent?: number;
63095
+ updated_at?: string;
63096
+ };
63097
+ Update: {
63098
+ created_at?: string;
63099
+ id?: number;
63100
+ marge_procent?: number;
63101
+ updated_at?: string;
63102
+ };
63103
+ Relationships: [];
63104
+ };
62372
63105
  artikelen_veldconfig: {
62373
63106
  Row: {
62374
63107
  bron_pad: string;
@@ -72044,6 +72777,30 @@ export declare const fetchMergedLogisticsDocuments: import("@tanstack/start-clie
72044
72777
  };
72045
72778
  Relationships: [];
72046
72779
  };
72780
+ logistics_cart_barcode_archief: {
72781
+ Row: {
72782
+ barcode: string;
72783
+ cart_id: string;
72784
+ created_at: string | null;
72785
+ gearchiveerd_op: string;
72786
+ order_id: string | null;
72787
+ };
72788
+ Insert: {
72789
+ barcode: string;
72790
+ cart_id: string;
72791
+ created_at?: string | null;
72792
+ gearchiveerd_op?: string;
72793
+ order_id?: string | null;
72794
+ };
72795
+ Update: {
72796
+ barcode?: string;
72797
+ cart_id?: string;
72798
+ created_at?: string | null;
72799
+ gearchiveerd_op?: string;
72800
+ order_id?: string | null;
72801
+ };
72802
+ Relationships: [];
72803
+ };
72047
72804
  logistics_control_scan: {
72048
72805
  Row: {
72049
72806
  approved_at: string | null;
@@ -76330,6 +77087,7 @@ export declare const fetchMergedLogisticsDocuments: import("@tanstack/start-clie
76330
77087
  next_attempt_at: string;
76331
77088
  order_id: string;
76332
77089
  processed_at: string | null;
77090
+ send_error: string | null;
76333
77091
  status: string;
76334
77092
  updated_at: string;
76335
77093
  };
@@ -76343,6 +77101,7 @@ export declare const fetchMergedLogisticsDocuments: import("@tanstack/start-clie
76343
77101
  next_attempt_at?: string;
76344
77102
  order_id: string;
76345
77103
  processed_at?: string | null;
77104
+ send_error?: string | null;
76346
77105
  status?: string;
76347
77106
  updated_at?: string;
76348
77107
  };
@@ -76356,6 +77115,7 @@ export declare const fetchMergedLogisticsDocuments: import("@tanstack/start-clie
76356
77115
  next_attempt_at?: string;
76357
77116
  order_id?: string;
76358
77117
  processed_at?: string | null;
77118
+ send_error?: string | null;
76359
77119
  status?: string;
76360
77120
  updated_at?: string;
76361
77121
  };
@@ -79393,6 +80153,9 @@ export declare const fetchMergedLogisticsDocuments: import("@tanstack/start-clie
79393
80153
  lead_time_days: number | null;
79394
80154
  min_order_quantity: number | null;
79395
80155
  notes: string | null;
80156
+ previous_price_cents: number | null;
80157
+ price_source: string;
80158
+ price_updated_at: string | null;
79396
80159
  product_id: string;
79397
80160
  purchase_price_cents: number | null;
79398
80161
  supplier_article_number: string | null;
@@ -79406,6 +80169,9 @@ export declare const fetchMergedLogisticsDocuments: import("@tanstack/start-clie
79406
80169
  lead_time_days?: number | null;
79407
80170
  min_order_quantity?: number | null;
79408
80171
  notes?: string | null;
80172
+ previous_price_cents?: number | null;
80173
+ price_source?: string;
80174
+ price_updated_at?: string | null;
79409
80175
  product_id: string;
79410
80176
  purchase_price_cents?: number | null;
79411
80177
  supplier_article_number?: string | null;
@@ -79419,6 +80185,9 @@ export declare const fetchMergedLogisticsDocuments: import("@tanstack/start-clie
79419
80185
  lead_time_days?: number | null;
79420
80186
  min_order_quantity?: number | null;
79421
80187
  notes?: string | null;
80188
+ previous_price_cents?: number | null;
80189
+ price_source?: string;
80190
+ price_updated_at?: string | null;
79422
80191
  product_id?: string;
79423
80192
  purchase_price_cents?: number | null;
79424
80193
  supplier_article_number?: string | null;
@@ -79949,9 +80718,13 @@ export declare const fetchMergedLogisticsDocuments: import("@tanstack/start-clie
79949
80718
  purchase_order_items: {
79950
80719
  Row: {
79951
80720
  article_number: string | null;
80721
+ cancel_reason: string | null;
80722
+ cancelled_at: string | null;
79952
80723
  created_at: string;
79953
80724
  delivery_date: string | null;
79954
80725
  id: string;
80726
+ incoming_booked: number;
80727
+ line_status: string;
79955
80728
  name: string;
79956
80729
  note: string | null;
79957
80730
  pot_size: string | null;
@@ -79959,6 +80732,8 @@ export declare const fetchMergedLogisticsDocuments: import("@tanstack/start-clie
79959
80732
  product_type: string;
79960
80733
  purchase_order_id: string;
79961
80734
  quantity: number;
80735
+ received_at: string | null;
80736
+ received_booked: number;
79962
80737
  supplier_id: string | null;
79963
80738
  supplier_product_id: string | null;
79964
80739
  unit_price_cents: number;
@@ -79966,9 +80741,13 @@ export declare const fetchMergedLogisticsDocuments: import("@tanstack/start-clie
79966
80741
  };
79967
80742
  Insert: {
79968
80743
  article_number?: string | null;
80744
+ cancel_reason?: string | null;
80745
+ cancelled_at?: string | null;
79969
80746
  created_at?: string;
79970
80747
  delivery_date?: string | null;
79971
80748
  id?: string;
80749
+ incoming_booked?: number;
80750
+ line_status?: string;
79972
80751
  name?: string;
79973
80752
  note?: string | null;
79974
80753
  pot_size?: string | null;
@@ -79976,6 +80755,8 @@ export declare const fetchMergedLogisticsDocuments: import("@tanstack/start-clie
79976
80755
  product_type?: string;
79977
80756
  purchase_order_id: string;
79978
80757
  quantity?: number;
80758
+ received_at?: string | null;
80759
+ received_booked?: number;
79979
80760
  supplier_id?: string | null;
79980
80761
  supplier_product_id?: string | null;
79981
80762
  unit_price_cents?: number;
@@ -79983,9 +80764,13 @@ export declare const fetchMergedLogisticsDocuments: import("@tanstack/start-clie
79983
80764
  };
79984
80765
  Update: {
79985
80766
  article_number?: string | null;
80767
+ cancel_reason?: string | null;
80768
+ cancelled_at?: string | null;
79986
80769
  created_at?: string;
79987
80770
  delivery_date?: string | null;
79988
80771
  id?: string;
80772
+ incoming_booked?: number;
80773
+ line_status?: string;
79989
80774
  name?: string;
79990
80775
  note?: string | null;
79991
80776
  pot_size?: string | null;
@@ -79993,6 +80778,8 @@ export declare const fetchMergedLogisticsDocuments: import("@tanstack/start-clie
79993
80778
  product_type?: string;
79994
80779
  purchase_order_id?: string;
79995
80780
  quantity?: number;
80781
+ received_at?: string | null;
80782
+ received_booked?: number;
79996
80783
  supplier_id?: string | null;
79997
80784
  supplier_product_id?: string | null;
79998
80785
  unit_price_cents?: number;
@@ -80096,6 +80883,153 @@ export declare const fetchMergedLogisticsDocuments: import("@tanstack/start-clie
80096
80883
  referencedColumns: ["id"];
80097
80884
  }];
80098
80885
  };
80886
+ purchase_request_events: {
80887
+ Row: {
80888
+ created_at: string;
80889
+ details: import("../integrations/supabase/types").Json | null;
80890
+ event_type: string;
80891
+ id: string;
80892
+ request_id: string;
80893
+ };
80894
+ Insert: {
80895
+ created_at?: string;
80896
+ details?: import("../integrations/supabase/types").Json | null;
80897
+ event_type: string;
80898
+ id?: string;
80899
+ request_id: string;
80900
+ };
80901
+ Update: {
80902
+ created_at?: string;
80903
+ details?: import("../integrations/supabase/types").Json | null;
80904
+ event_type?: string;
80905
+ id?: string;
80906
+ request_id?: string;
80907
+ };
80908
+ Relationships: [{
80909
+ foreignKeyName: "purchase_request_events_request_id_fkey";
80910
+ columns: ["request_id"];
80911
+ isOneToOne: false;
80912
+ referencedRelation: "purchase_requests";
80913
+ referencedColumns: ["id"];
80914
+ }];
80915
+ };
80916
+ purchase_request_responses: {
80917
+ Row: {
80918
+ confirmed_date: string | null;
80919
+ confirmed_price_cents: number | null;
80920
+ confirmed_quantity: number;
80921
+ created_at: string;
80922
+ id: string;
80923
+ not_available: boolean;
80924
+ note: string | null;
80925
+ purchase_order_item_id: string;
80926
+ request_id: string;
80927
+ updated_at: string;
80928
+ };
80929
+ Insert: {
80930
+ confirmed_date?: string | null;
80931
+ confirmed_price_cents?: number | null;
80932
+ confirmed_quantity?: number;
80933
+ created_at?: string;
80934
+ id?: string;
80935
+ not_available?: boolean;
80936
+ note?: string | null;
80937
+ purchase_order_item_id: string;
80938
+ request_id: string;
80939
+ updated_at?: string;
80940
+ };
80941
+ Update: {
80942
+ confirmed_date?: string | null;
80943
+ confirmed_price_cents?: number | null;
80944
+ confirmed_quantity?: number;
80945
+ created_at?: string;
80946
+ id?: string;
80947
+ not_available?: boolean;
80948
+ note?: string | null;
80949
+ purchase_order_item_id?: string;
80950
+ request_id?: string;
80951
+ updated_at?: string;
80952
+ };
80953
+ Relationships: [{
80954
+ foreignKeyName: "purchase_request_responses_purchase_order_item_id_fkey";
80955
+ columns: ["purchase_order_item_id"];
80956
+ isOneToOne: false;
80957
+ referencedRelation: "purchase_order_items";
80958
+ referencedColumns: ["id"];
80959
+ }, {
80960
+ foreignKeyName: "purchase_request_responses_request_id_fkey";
80961
+ columns: ["request_id"];
80962
+ isOneToOne: false;
80963
+ referencedRelation: "purchase_requests";
80964
+ referencedColumns: ["id"];
80965
+ }];
80966
+ };
80967
+ purchase_requests: {
80968
+ Row: {
80969
+ created_at: string;
80970
+ expires_at: string;
80971
+ first_viewed_at: string | null;
80972
+ id: string;
80973
+ processed_at: string | null;
80974
+ purchase_order_id: string;
80975
+ responded_at: string | null;
80976
+ sent_at: string;
80977
+ status: string;
80978
+ supplier_id: string | null;
80979
+ supplier_name: string;
80980
+ supplier_note: string | null;
80981
+ to_address: string | null;
80982
+ token_hash: string;
80983
+ updated_at: string;
80984
+ };
80985
+ Insert: {
80986
+ created_at?: string;
80987
+ expires_at?: string;
80988
+ first_viewed_at?: string | null;
80989
+ id?: string;
80990
+ processed_at?: string | null;
80991
+ purchase_order_id: string;
80992
+ responded_at?: string | null;
80993
+ sent_at?: string;
80994
+ status?: string;
80995
+ supplier_id?: string | null;
80996
+ supplier_name?: string;
80997
+ supplier_note?: string | null;
80998
+ to_address?: string | null;
80999
+ token_hash: string;
81000
+ updated_at?: string;
81001
+ };
81002
+ Update: {
81003
+ created_at?: string;
81004
+ expires_at?: string;
81005
+ first_viewed_at?: string | null;
81006
+ id?: string;
81007
+ processed_at?: string | null;
81008
+ purchase_order_id?: string;
81009
+ responded_at?: string | null;
81010
+ sent_at?: string;
81011
+ status?: string;
81012
+ supplier_id?: string | null;
81013
+ supplier_name?: string;
81014
+ supplier_note?: string | null;
81015
+ to_address?: string | null;
81016
+ token_hash?: string;
81017
+ updated_at?: string;
81018
+ };
81019
+ Relationships: [{
81020
+ foreignKeyName: "purchase_requests_purchase_order_id_fkey";
81021
+ columns: ["purchase_order_id"];
81022
+ isOneToOne: false;
81023
+ referencedRelation: "purchase_orders";
81024
+ referencedColumns: ["id"];
81025
+ }, {
81026
+ foreignKeyName: "purchase_requests_supplier_id_fkey";
81027
+ columns: ["supplier_id"];
81028
+ isOneToOne: false;
81029
+ referencedRelation: "suppliers";
81030
+ referencedColumns: ["id"];
81031
+ }];
81032
+ };
80099
81033
  reception_notifications: {
80100
81034
  Row: {
80101
81035
  booking_id: string | null;
@@ -82259,6 +83193,7 @@ export declare const fetchMergedLogisticsDocuments: import("@tanstack/start-clie
82259
83193
  auto_invoice_enabled: boolean;
82260
83194
  auto_invoice_start_date: string | null;
82261
83195
  auto_invoice_trigger_statuses: string[];
83196
+ auto_send_mode: string | null;
82262
83197
  created_at: string;
82263
83198
  debtor_gl_account: string;
82264
83199
  default_article_code: string | null;
@@ -82287,6 +83222,7 @@ export declare const fetchMergedLogisticsDocuments: import("@tanstack/start-clie
82287
83222
  auto_invoice_enabled?: boolean;
82288
83223
  auto_invoice_start_date?: string | null;
82289
83224
  auto_invoice_trigger_statuses?: string[];
83225
+ auto_send_mode?: string | null;
82290
83226
  created_at?: string;
82291
83227
  debtor_gl_account?: string;
82292
83228
  default_article_code?: string | null;
@@ -82315,6 +83251,7 @@ export declare const fetchMergedLogisticsDocuments: import("@tanstack/start-clie
82315
83251
  auto_invoice_enabled?: boolean;
82316
83252
  auto_invoice_start_date?: string | null;
82317
83253
  auto_invoice_trigger_statuses?: string[];
83254
+ auto_send_mode?: string | null;
82318
83255
  created_at?: string;
82319
83256
  debtor_gl_account?: string;
82320
83257
  default_article_code?: string | null;
@@ -87548,13 +88485,66 @@ export declare const fetchMergedLogisticsDocuments: import("@tanstack/start-clie
87548
88485
  };
87549
88486
  Returns: import("../integrations/supabase/types").Json;
87550
88487
  };
88488
+ inkoop_cancel_line: {
88489
+ Args: {
88490
+ _item_id: string;
88491
+ _reason: string;
88492
+ };
88493
+ Returns: string;
88494
+ };
88495
+ inkoop_get_supplier_request: {
88496
+ Args: {
88497
+ _token: string;
88498
+ };
88499
+ Returns: import("../integrations/supabase/types").Json;
88500
+ };
88501
+ inkoop_hash_token: {
88502
+ Args: {
88503
+ _token: string;
88504
+ };
88505
+ Returns: string;
88506
+ };
88507
+ inkoop_html_escape: {
88508
+ Args: {
88509
+ _t: string;
88510
+ };
88511
+ Returns: string;
88512
+ };
88513
+ inkoop_list_artikelen: {
88514
+ Args: never;
88515
+ Returns: {
88516
+ article_number: string;
88517
+ barcode: string;
88518
+ id: string;
88519
+ incoming_quantity: number;
88520
+ is_layer: boolean;
88521
+ location: string;
88522
+ min_quantity: number;
88523
+ preferred_supplier_name: string;
88524
+ product: string;
88525
+ product_type: string;
88526
+ purchase_price: number;
88527
+ quantity: number;
88528
+ sale_price: number;
88529
+ supplier_count: number;
88530
+ unit: string;
88531
+ }[];
88532
+ };
87551
88533
  inkoop_next_order_number: {
87552
88534
  Args: never;
87553
88535
  Returns: string;
87554
88536
  };
88537
+ inkoop_process_request: {
88538
+ Args: {
88539
+ _request_id: string;
88540
+ };
88541
+ Returns: undefined;
88542
+ };
87555
88543
  inkoop_send_order: {
87556
88544
  Args: {
88545
+ _base_url?: string;
87557
88546
  _order_id: string;
88547
+ _resend?: boolean;
87558
88548
  };
87559
88549
  Returns: {
87560
88550
  outbox_id: string;
@@ -87569,6 +88559,26 @@ export declare const fetchMergedLogisticsDocuments: import("@tanstack/start-clie
87569
88559
  };
87570
88560
  Returns: undefined;
87571
88561
  };
88562
+ inkoop_stock_key: {
88563
+ Args: {
88564
+ p_product_id: string;
88565
+ };
88566
+ Returns: string;
88567
+ };
88568
+ inkoop_submit_supplier_response: {
88569
+ Args: {
88570
+ _lines: import("../integrations/supabase/types").Json;
88571
+ _note?: string;
88572
+ _token: string;
88573
+ };
88574
+ Returns: import("../integrations/supabase/types").Json;
88575
+ };
88576
+ inkoop_sync_item_stock: {
88577
+ Args: {
88578
+ p_item_id: string;
88579
+ };
88580
+ Returns: undefined;
88581
+ };
87572
88582
  instructie_get: {
87573
88583
  Args: {
87574
88584
  _sleutel: string;
@@ -88006,6 +89016,12 @@ export declare const fetchMergedLogisticsDocuments: import("@tanstack/start-clie
88006
89016
  };
88007
89017
  Returns: number;
88008
89018
  };
89019
+ logistics_cart_barcode_opschonen: {
89020
+ Args: {
89021
+ p_portie?: number;
89022
+ };
89023
+ Returns: import("../integrations/supabase/types").Json;
89024
+ };
88009
89025
  logistics_cart_barcode_value: {
88010
89026
  Args: {
88011
89027
  _cart_id: string;
@@ -89615,6 +90631,13 @@ export declare const fetchMergedLogisticsDocuments: import("@tanstack/start-clie
89615
90631
  };
89616
90632
  Returns: string;
89617
90633
  };
90634
+ logistics_shipping_note_status: {
90635
+ Args: {
90636
+ p_cart_id?: string;
90637
+ p_slip_job_id?: string;
90638
+ };
90639
+ Returns: import("../integrations/supabase/types").Json;
90640
+ };
89618
90641
  logistics_shipping_notes_wake_all: {
89619
90642
  Args: never;
89620
90643
  Returns: import("../integrations/supabase/types").Json;
@@ -91294,6 +92317,13 @@ export declare const fetchMergedLogisticsDocuments: import("@tanstack/start-clie
91294
92317
  };
91295
92318
  Returns: import("../integrations/supabase/types").Json;
91296
92319
  };
92320
+ scan_controleer_pincode: {
92321
+ Args: {
92322
+ p_pin: string;
92323
+ p_scanner_id: string;
92324
+ };
92325
+ Returns: boolean;
92326
+ };
91297
92327
  scan_dashboard_stats: {
91298
92328
  Args: {
91299
92329
  p_dagen?: number;
@@ -91313,6 +92343,12 @@ export declare const fetchMergedLogisticsDocuments: import("@tanstack/start-clie
91313
92343
  };
91314
92344
  Returns: import("../integrations/supabase/types").Json;
91315
92345
  };
92346
+ scan_heeft_pincode: {
92347
+ Args: {
92348
+ p_scanner_id: string;
92349
+ };
92350
+ Returns: boolean;
92351
+ };
91316
92352
  scan_kar_compleet: {
91317
92353
  Args: {
91318
92354
  p_allow_reprint?: boolean;
@@ -91330,6 +92366,7 @@ export declare const fetchMergedLogisticsDocuments: import("@tanstack/start-clie
91330
92366
  Args: {
91331
92367
  p_code: string;
91332
92368
  p_latency_ms?: number;
92369
+ p_medewerker?: string;
91333
92370
  p_message?: string;
91334
92371
  p_result: string;
91335
92372
  p_scanner_key?: string;
@@ -91402,6 +92439,22 @@ export declare const fetchMergedLogisticsDocuments: import("@tanstack/start-clie
91402
92439
  };
91403
92440
  Returns: undefined;
91404
92441
  };
92442
+ scan_scanner_info: {
92443
+ Args: {
92444
+ p_slug: string;
92445
+ };
92446
+ Returns: {
92447
+ actief: boolean;
92448
+ heeft_pincode: boolean;
92449
+ id: string;
92450
+ naam: string;
92451
+ omschrijving: string;
92452
+ printer_id: string;
92453
+ type: string;
92454
+ vereist_medewerker: boolean;
92455
+ werkplek: string;
92456
+ }[];
92457
+ };
91405
92458
  scan_sessie_annuleren: {
91406
92459
  Args: {
91407
92460
  p_sessie_id: string;
@@ -92364,6 +93417,21 @@ export declare const fetchMergedLogisticsDocuments: import("@tanstack/start-clie
92364
93417
  };
92365
93418
  Returns: import("../integrations/supabase/types").Json;
92366
93419
  };
93420
+ wo_list_colleague_planning: {
93421
+ Args: {
93422
+ _from: string;
93423
+ _monteur_id: string;
93424
+ _to: string;
93425
+ };
93426
+ Returns: {
93427
+ end_at: string;
93428
+ id: string;
93429
+ role: string;
93430
+ start_at: string;
93431
+ status: string;
93432
+ werkbon_id: string;
93433
+ }[];
93434
+ };
92367
93435
  wo_list_offerte_requests: {
92368
93436
  Args: {
92369
93437
  _status?: string;