@flowselections/floriday-voorraad 1.0.48 → 1.0.50

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 (47) hide show
  1. package/dist-lib/components/voorraad/ArtikelCompositionCard.d.ts.map +1 -1
  2. package/dist-lib/components/voorraad/ArtikelCompositionCard.js +79 -6
  3. package/dist-lib/components/voorraad/ArtikelWizard.d.ts.map +1 -1
  4. package/dist-lib/components/voorraad/ArtikelWizard.js +14 -2
  5. package/dist-lib/components/voorraad/CollapsibleText.d.ts +9 -0
  6. package/dist-lib/components/voorraad/CollapsibleText.d.ts.map +1 -0
  7. package/dist-lib/components/voorraad/CollapsibleText.js +35 -0
  8. package/dist-lib/components/voorraad/StockMutationHistoryCard.d.ts.map +1 -1
  9. package/dist-lib/components/voorraad/StockMutationHistoryCard.js +18 -16
  10. package/dist-lib/components/voorraad/VoorraadStockCard.d.ts +1 -1
  11. package/dist-lib/components/voorraad/VoorraadStockCard.d.ts.map +1 -1
  12. package/dist-lib/components/voorraad/VoorraadStockCard.js +29 -42
  13. package/dist-lib/hooks/useTradeItemStock.d.ts +3 -1
  14. package/dist-lib/hooks/useTradeItemStock.d.ts.map +1 -1
  15. package/dist-lib/hooks/useTradeItemStock.js +85 -32
  16. package/dist-lib/hooks/useVoorraadData.d.ts.map +1 -1
  17. package/dist-lib/hooks/useVoorraadData.js +3 -2
  18. package/dist-lib/integrations/supabase/auth-middleware.d.ts +700 -0
  19. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  20. package/dist-lib/integrations/supabase/client.d.ts +2 -30340
  21. package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
  22. package/dist-lib/integrations/supabase/client.js +4 -27
  23. package/dist-lib/integrations/supabase/client.server.d.ts +700 -0
  24. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  25. package/dist-lib/integrations/supabase/types.d.ts +720 -0
  26. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  27. package/dist-lib/lib/floricode-required-features.functions.d.ts +700 -0
  28. package/dist-lib/lib/floricode-required-features.functions.d.ts.map +1 -1
  29. package/dist-lib/lib/floriday-customer-offer.functions.d.ts +700 -0
  30. package/dist-lib/lib/floriday-customer-offer.functions.d.ts.map +1 -1
  31. package/dist-lib/lib/floriday-env.functions.d.ts +1400 -0
  32. package/dist-lib/lib/floriday-env.functions.d.ts.map +1 -1
  33. package/dist-lib/lib/floriday-gateway.functions.d.ts +4200 -0
  34. package/dist-lib/lib/floriday-gateway.functions.d.ts.map +1 -1
  35. package/dist-lib/lib/floriday-vbn-required.functions.d.ts +1400 -0
  36. package/dist-lib/lib/floriday-vbn-required.functions.d.ts.map +1 -1
  37. package/dist-lib/lib/floriday-warehouse.functions.d.ts +2100 -0
  38. package/dist-lib/lib/floriday-warehouse.functions.d.ts.map +1 -1
  39. package/dist-lib/lib/floriday-writes.functions.d.ts +1400 -0
  40. package/dist-lib/lib/floriday-writes.functions.d.ts.map +1 -1
  41. package/dist-lib/lib/inventory-settings.functions.d.ts +1400 -0
  42. package/dist-lib/lib/inventory-settings.functions.d.ts.map +1 -1
  43. package/dist-lib/lib/product-packing.d.ts.map +1 -1
  44. package/dist-lib/lib/product-packing.js +10 -4
  45. package/dist-lib/lib/stock-sync.functions.d.ts +1400 -0
  46. package/dist-lib/lib/stock-sync.functions.d.ts.map +1 -1
  47. package/package.json +1 -1
@@ -8274,6 +8274,72 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
8274
8274
  };
8275
8275
  Relationships: [];
8276
8276
  };
8277
+ invoice_branding_settings: {
8278
+ Row: {
8279
+ address: string;
8280
+ chamber_of_commerce_number: string;
8281
+ city: string;
8282
+ company_name: string;
8283
+ created_at: string;
8284
+ email: string;
8285
+ email_purpose: string | null;
8286
+ iban: string;
8287
+ logo_path: string | null;
8288
+ payment_term_days: number;
8289
+ phone: string;
8290
+ postal_code: string;
8291
+ primary_color: string;
8292
+ secondary_color: string;
8293
+ show_company_name: boolean;
8294
+ singleton_key: boolean;
8295
+ updated_at: string;
8296
+ vat_identification_number: string;
8297
+ website: string;
8298
+ };
8299
+ Insert: {
8300
+ address?: string;
8301
+ chamber_of_commerce_number?: string;
8302
+ city?: string;
8303
+ company_name?: string;
8304
+ created_at?: string;
8305
+ email?: string;
8306
+ email_purpose?: string | null;
8307
+ iban?: string;
8308
+ logo_path?: string | null;
8309
+ payment_term_days?: number;
8310
+ phone?: string;
8311
+ postal_code?: string;
8312
+ primary_color?: string;
8313
+ secondary_color?: string;
8314
+ show_company_name?: boolean;
8315
+ singleton_key?: boolean;
8316
+ updated_at?: string;
8317
+ vat_identification_number?: string;
8318
+ website?: string;
8319
+ };
8320
+ Update: {
8321
+ address?: string;
8322
+ chamber_of_commerce_number?: string;
8323
+ city?: string;
8324
+ company_name?: string;
8325
+ created_at?: string;
8326
+ email?: string;
8327
+ email_purpose?: string | null;
8328
+ iban?: string;
8329
+ logo_path?: string | null;
8330
+ payment_term_days?: number;
8331
+ phone?: string;
8332
+ postal_code?: string;
8333
+ primary_color?: string;
8334
+ secondary_color?: string;
8335
+ show_company_name?: boolean;
8336
+ singleton_key?: boolean;
8337
+ updated_at?: string;
8338
+ vat_identification_number?: string;
8339
+ website?: string;
8340
+ };
8341
+ Relationships: [];
8342
+ };
8277
8343
  invoice_items: {
8278
8344
  Row: {
8279
8345
  created_at: string;
@@ -8287,6 +8353,7 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
8287
8353
  total_cents: number;
8288
8354
  unit: string;
8289
8355
  unit_price_cents: number;
8356
+ vat_rate: number | null;
8290
8357
  };
8291
8358
  Insert: {
8292
8359
  created_at?: string;
@@ -8300,6 +8367,7 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
8300
8367
  total_cents?: number;
8301
8368
  unit?: string;
8302
8369
  unit_price_cents?: number;
8370
+ vat_rate?: number | null;
8303
8371
  };
8304
8372
  Update: {
8305
8373
  created_at?: string;
@@ -8313,6 +8381,7 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
8313
8381
  total_cents?: number;
8314
8382
  unit?: string;
8315
8383
  unit_price_cents?: number;
8384
+ vat_rate?: number | null;
8316
8385
  };
8317
8386
  Relationships: [{
8318
8387
  foreignKeyName: "invoice_items_invoice_id_fkey";
@@ -8558,6 +8627,7 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
8558
8627
  };
8559
8628
  invoices: {
8560
8629
  Row: {
8630
+ branding_snapshot: import("../integrations/supabase/types").Json | null;
8561
8631
  created_at: string;
8562
8632
  created_by: string | null;
8563
8633
  customer_address: string | null;
@@ -8576,6 +8646,8 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
8576
8646
  note: string | null;
8577
8647
  payment_term_days: number;
8578
8648
  reference: string | null;
8649
+ sent_at: string | null;
8650
+ sent_to: string | null;
8579
8651
  source_number: string | null;
8580
8652
  source_ref: string | null;
8581
8653
  source_type: string;
@@ -8588,6 +8660,7 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
8588
8660
  work_address: string | null;
8589
8661
  };
8590
8662
  Insert: {
8663
+ branding_snapshot?: import("../integrations/supabase/types").Json | null;
8591
8664
  created_at?: string;
8592
8665
  created_by?: string | null;
8593
8666
  customer_address?: string | null;
@@ -8606,6 +8679,8 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
8606
8679
  note?: string | null;
8607
8680
  payment_term_days?: number;
8608
8681
  reference?: string | null;
8682
+ sent_at?: string | null;
8683
+ sent_to?: string | null;
8609
8684
  source_number?: string | null;
8610
8685
  source_ref?: string | null;
8611
8686
  source_type?: string;
@@ -8618,6 +8693,7 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
8618
8693
  work_address?: string | null;
8619
8694
  };
8620
8695
  Update: {
8696
+ branding_snapshot?: import("../integrations/supabase/types").Json | null;
8621
8697
  created_at?: string;
8622
8698
  created_by?: string | null;
8623
8699
  customer_address?: string | null;
@@ -8636,6 +8712,8 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
8636
8712
  note?: string | null;
8637
8713
  payment_term_days?: number;
8638
8714
  reference?: string | null;
8715
+ sent_at?: string | null;
8716
+ sent_to?: string | null;
8639
8717
  source_number?: string | null;
8640
8718
  source_ref?: string | null;
8641
8719
  source_type?: string;
@@ -9344,6 +9422,7 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
9344
9422
  quantity: number;
9345
9423
  sort_order: number;
9346
9424
  source: string;
9425
+ unit: string | null;
9347
9426
  unit_price_cents: number;
9348
9427
  updated_at: string;
9349
9428
  };
@@ -9357,6 +9436,7 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
9357
9436
  quantity?: number;
9358
9437
  sort_order?: number;
9359
9438
  source?: string;
9439
+ unit?: string | null;
9360
9440
  unit_price_cents?: number;
9361
9441
  updated_at?: string;
9362
9442
  };
@@ -9370,6 +9450,7 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
9370
9450
  quantity?: number;
9371
9451
  sort_order?: number;
9372
9452
  source?: string;
9453
+ unit?: string | null;
9373
9454
  unit_price_cents?: number;
9374
9455
  updated_at?: string;
9375
9456
  };
@@ -9393,6 +9474,7 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
9393
9474
  created_at: string;
9394
9475
  default_geldigheid_dagen: number;
9395
9476
  default_vat_rate: number;
9477
+ email_purpose: string | null;
9396
9478
  id: string;
9397
9479
  singleton: boolean;
9398
9480
  updated_at: string;
@@ -9402,6 +9484,7 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
9402
9484
  created_at?: string;
9403
9485
  default_geldigheid_dagen?: number;
9404
9486
  default_vat_rate?: number;
9487
+ email_purpose?: string | null;
9405
9488
  id?: string;
9406
9489
  singleton?: boolean;
9407
9490
  updated_at?: string;
@@ -9411,6 +9494,7 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
9411
9494
  created_at?: string;
9412
9495
  default_geldigheid_dagen?: number;
9413
9496
  default_vat_rate?: number;
9497
+ email_purpose?: string | null;
9414
9498
  id?: string;
9415
9499
  singleton?: boolean;
9416
9500
  updated_at?: string;
@@ -9503,6 +9587,7 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
9503
9587
  };
9504
9588
  itk_offertes: {
9505
9589
  Row: {
9590
+ aandachtspunten: string | null;
9506
9591
  ai_generated: boolean;
9507
9592
  approved_at: string | null;
9508
9593
  binnen_mandaat: boolean;
@@ -9518,6 +9603,7 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
9518
9603
  notities: string | null;
9519
9604
  offerte_number: string | null;
9520
9605
  omschrijving: string;
9606
+ onderwerp: string | null;
9521
9607
  rejected_at: string | null;
9522
9608
  sent_at: string | null;
9523
9609
  source_number: string | null;
@@ -9530,12 +9616,15 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
9530
9616
  valid_until: string | null;
9531
9617
  vat_cents: number;
9532
9618
  vat_rate: number;
9619
+ verzonden_naar: string | null;
9533
9620
  viewed_at: string | null;
9534
9621
  volgnummer: number | null;
9622
+ voorwaarden: string | null;
9535
9623
  werkbon_id: string | null;
9536
9624
  work_location_id: string | null;
9537
9625
  };
9538
9626
  Insert: {
9627
+ aandachtspunten?: string | null;
9539
9628
  ai_generated?: boolean;
9540
9629
  approved_at?: string | null;
9541
9630
  binnen_mandaat?: boolean;
@@ -9551,6 +9640,7 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
9551
9640
  notities?: string | null;
9552
9641
  offerte_number?: string | null;
9553
9642
  omschrijving?: string;
9643
+ onderwerp?: string | null;
9554
9644
  rejected_at?: string | null;
9555
9645
  sent_at?: string | null;
9556
9646
  source_number?: string | null;
@@ -9563,12 +9653,15 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
9563
9653
  valid_until?: string | null;
9564
9654
  vat_cents?: number;
9565
9655
  vat_rate?: number;
9656
+ verzonden_naar?: string | null;
9566
9657
  viewed_at?: string | null;
9567
9658
  volgnummer?: number | null;
9659
+ voorwaarden?: string | null;
9568
9660
  werkbon_id?: string | null;
9569
9661
  work_location_id?: string | null;
9570
9662
  };
9571
9663
  Update: {
9664
+ aandachtspunten?: string | null;
9572
9665
  ai_generated?: boolean;
9573
9666
  approved_at?: string | null;
9574
9667
  binnen_mandaat?: boolean;
@@ -9584,6 +9677,7 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
9584
9677
  notities?: string | null;
9585
9678
  offerte_number?: string | null;
9586
9679
  omschrijving?: string;
9680
+ onderwerp?: string | null;
9587
9681
  rejected_at?: string | null;
9588
9682
  sent_at?: string | null;
9589
9683
  source_number?: string | null;
@@ -9596,8 +9690,10 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
9596
9690
  valid_until?: string | null;
9597
9691
  vat_cents?: number;
9598
9692
  vat_rate?: number;
9693
+ verzonden_naar?: string | null;
9599
9694
  viewed_at?: string | null;
9600
9695
  volgnummer?: number | null;
9696
+ voorwaarden?: string | null;
9601
9697
  werkbon_id?: string | null;
9602
9698
  work_location_id?: string | null;
9603
9699
  };
@@ -14609,6 +14705,7 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
14609
14705
  next_attempt_at: string;
14610
14706
  order_id: string;
14611
14707
  processed_at: string | null;
14708
+ send_error: string | null;
14612
14709
  status: string;
14613
14710
  updated_at: string;
14614
14711
  };
@@ -14622,6 +14719,7 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
14622
14719
  next_attempt_at?: string;
14623
14720
  order_id: string;
14624
14721
  processed_at?: string | null;
14722
+ send_error?: string | null;
14625
14723
  status?: string;
14626
14724
  updated_at?: string;
14627
14725
  };
@@ -14635,6 +14733,7 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
14635
14733
  next_attempt_at?: string;
14636
14734
  order_id?: string;
14637
14735
  processed_at?: string | null;
14736
+ send_error?: string | null;
14638
14737
  status?: string;
14639
14738
  updated_at?: string;
14640
14739
  };
@@ -17664,6 +17763,66 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
17664
17763
  };
17665
17764
  Relationships: [];
17666
17765
  };
17766
+ product_suppliers: {
17767
+ Row: {
17768
+ created_at: string;
17769
+ id: string;
17770
+ is_preferred: boolean;
17771
+ lead_time_days: number | null;
17772
+ min_order_quantity: number | null;
17773
+ notes: string | null;
17774
+ product_id: string;
17775
+ purchase_price_cents: number | null;
17776
+ supplier_article_number: string | null;
17777
+ supplier_id: string;
17778
+ updated_at: string;
17779
+ };
17780
+ Insert: {
17781
+ created_at?: string;
17782
+ id?: string;
17783
+ is_preferred?: boolean;
17784
+ lead_time_days?: number | null;
17785
+ min_order_quantity?: number | null;
17786
+ notes?: string | null;
17787
+ product_id: string;
17788
+ purchase_price_cents?: number | null;
17789
+ supplier_article_number?: string | null;
17790
+ supplier_id: string;
17791
+ updated_at?: string;
17792
+ };
17793
+ Update: {
17794
+ created_at?: string;
17795
+ id?: string;
17796
+ is_preferred?: boolean;
17797
+ lead_time_days?: number | null;
17798
+ min_order_quantity?: number | null;
17799
+ notes?: string | null;
17800
+ product_id?: string;
17801
+ purchase_price_cents?: number | null;
17802
+ supplier_article_number?: string | null;
17803
+ supplier_id?: string;
17804
+ updated_at?: string;
17805
+ };
17806
+ Relationships: [{
17807
+ foreignKeyName: "product_suppliers_product_id_fkey";
17808
+ columns: ["product_id"];
17809
+ isOneToOne: false;
17810
+ referencedRelation: "logistics_product_dimensions";
17811
+ referencedColumns: ["product_id"];
17812
+ }, {
17813
+ foreignKeyName: "product_suppliers_product_id_fkey";
17814
+ columns: ["product_id"];
17815
+ isOneToOne: false;
17816
+ referencedRelation: "products";
17817
+ referencedColumns: ["id"];
17818
+ }, {
17819
+ foreignKeyName: "product_suppliers_supplier_id_fkey";
17820
+ columns: ["supplier_id"];
17821
+ isOneToOne: false;
17822
+ referencedRelation: "suppliers";
17823
+ referencedColumns: ["id"];
17824
+ }];
17825
+ };
17667
17826
  product_tray_stickers: {
17668
17827
  Row: {
17669
17828
  bestand_url: string;
@@ -18168,9 +18327,12 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
18168
18327
  purchase_order_items: {
18169
18328
  Row: {
18170
18329
  article_number: string | null;
18330
+ cancelled_at: string | null;
18171
18331
  created_at: string;
18172
18332
  delivery_date: string | null;
18173
18333
  id: string;
18334
+ incoming_booked: number;
18335
+ line_status: string;
18174
18336
  name: string;
18175
18337
  note: string | null;
18176
18338
  pot_size: string | null;
@@ -18178,6 +18340,8 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
18178
18340
  product_type: string;
18179
18341
  purchase_order_id: string;
18180
18342
  quantity: number;
18343
+ received_at: string | null;
18344
+ received_booked: number;
18181
18345
  supplier_id: string | null;
18182
18346
  supplier_product_id: string | null;
18183
18347
  unit_price_cents: number;
@@ -18185,9 +18349,12 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
18185
18349
  };
18186
18350
  Insert: {
18187
18351
  article_number?: string | null;
18352
+ cancelled_at?: string | null;
18188
18353
  created_at?: string;
18189
18354
  delivery_date?: string | null;
18190
18355
  id?: string;
18356
+ incoming_booked?: number;
18357
+ line_status?: string;
18191
18358
  name?: string;
18192
18359
  note?: string | null;
18193
18360
  pot_size?: string | null;
@@ -18195,6 +18362,8 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
18195
18362
  product_type?: string;
18196
18363
  purchase_order_id: string;
18197
18364
  quantity?: number;
18365
+ received_at?: string | null;
18366
+ received_booked?: number;
18198
18367
  supplier_id?: string | null;
18199
18368
  supplier_product_id?: string | null;
18200
18369
  unit_price_cents?: number;
@@ -18202,9 +18371,12 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
18202
18371
  };
18203
18372
  Update: {
18204
18373
  article_number?: string | null;
18374
+ cancelled_at?: string | null;
18205
18375
  created_at?: string;
18206
18376
  delivery_date?: string | null;
18207
18377
  id?: string;
18378
+ incoming_booked?: number;
18379
+ line_status?: string;
18208
18380
  name?: string;
18209
18381
  note?: string | null;
18210
18382
  pot_size?: string | null;
@@ -18212,6 +18384,8 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
18212
18384
  product_type?: string;
18213
18385
  purchase_order_id?: string;
18214
18386
  quantity?: number;
18387
+ received_at?: string | null;
18388
+ received_booked?: number;
18215
18389
  supplier_id?: string | null;
18216
18390
  supplier_product_id?: string | null;
18217
18391
  unit_price_cents?: number;
@@ -18315,6 +18489,153 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
18315
18489
  referencedColumns: ["id"];
18316
18490
  }];
18317
18491
  };
18492
+ purchase_request_events: {
18493
+ Row: {
18494
+ created_at: string;
18495
+ details: import("../integrations/supabase/types").Json | null;
18496
+ event_type: string;
18497
+ id: string;
18498
+ request_id: string;
18499
+ };
18500
+ Insert: {
18501
+ created_at?: string;
18502
+ details?: import("../integrations/supabase/types").Json | null;
18503
+ event_type: string;
18504
+ id?: string;
18505
+ request_id: string;
18506
+ };
18507
+ Update: {
18508
+ created_at?: string;
18509
+ details?: import("../integrations/supabase/types").Json | null;
18510
+ event_type?: string;
18511
+ id?: string;
18512
+ request_id?: string;
18513
+ };
18514
+ Relationships: [{
18515
+ foreignKeyName: "purchase_request_events_request_id_fkey";
18516
+ columns: ["request_id"];
18517
+ isOneToOne: false;
18518
+ referencedRelation: "purchase_requests";
18519
+ referencedColumns: ["id"];
18520
+ }];
18521
+ };
18522
+ purchase_request_responses: {
18523
+ Row: {
18524
+ confirmed_date: string | null;
18525
+ confirmed_price_cents: number | null;
18526
+ confirmed_quantity: number;
18527
+ created_at: string;
18528
+ id: string;
18529
+ not_available: boolean;
18530
+ note: string | null;
18531
+ purchase_order_item_id: string;
18532
+ request_id: string;
18533
+ updated_at: string;
18534
+ };
18535
+ Insert: {
18536
+ confirmed_date?: string | null;
18537
+ confirmed_price_cents?: number | null;
18538
+ confirmed_quantity?: number;
18539
+ created_at?: string;
18540
+ id?: string;
18541
+ not_available?: boolean;
18542
+ note?: string | null;
18543
+ purchase_order_item_id: string;
18544
+ request_id: string;
18545
+ updated_at?: string;
18546
+ };
18547
+ Update: {
18548
+ confirmed_date?: string | null;
18549
+ confirmed_price_cents?: number | null;
18550
+ confirmed_quantity?: number;
18551
+ created_at?: string;
18552
+ id?: string;
18553
+ not_available?: boolean;
18554
+ note?: string | null;
18555
+ purchase_order_item_id?: string;
18556
+ request_id?: string;
18557
+ updated_at?: string;
18558
+ };
18559
+ Relationships: [{
18560
+ foreignKeyName: "purchase_request_responses_purchase_order_item_id_fkey";
18561
+ columns: ["purchase_order_item_id"];
18562
+ isOneToOne: false;
18563
+ referencedRelation: "purchase_order_items";
18564
+ referencedColumns: ["id"];
18565
+ }, {
18566
+ foreignKeyName: "purchase_request_responses_request_id_fkey";
18567
+ columns: ["request_id"];
18568
+ isOneToOne: false;
18569
+ referencedRelation: "purchase_requests";
18570
+ referencedColumns: ["id"];
18571
+ }];
18572
+ };
18573
+ purchase_requests: {
18574
+ Row: {
18575
+ created_at: string;
18576
+ expires_at: string;
18577
+ first_viewed_at: string | null;
18578
+ id: string;
18579
+ processed_at: string | null;
18580
+ purchase_order_id: string;
18581
+ responded_at: string | null;
18582
+ sent_at: string;
18583
+ status: string;
18584
+ supplier_id: string | null;
18585
+ supplier_name: string;
18586
+ supplier_note: string | null;
18587
+ to_address: string | null;
18588
+ token_hash: string;
18589
+ updated_at: string;
18590
+ };
18591
+ Insert: {
18592
+ created_at?: string;
18593
+ expires_at?: string;
18594
+ first_viewed_at?: string | null;
18595
+ id?: string;
18596
+ processed_at?: string | null;
18597
+ purchase_order_id: string;
18598
+ responded_at?: string | null;
18599
+ sent_at?: string;
18600
+ status?: string;
18601
+ supplier_id?: string | null;
18602
+ supplier_name?: string;
18603
+ supplier_note?: string | null;
18604
+ to_address?: string | null;
18605
+ token_hash: string;
18606
+ updated_at?: string;
18607
+ };
18608
+ Update: {
18609
+ created_at?: string;
18610
+ expires_at?: string;
18611
+ first_viewed_at?: string | null;
18612
+ id?: string;
18613
+ processed_at?: string | null;
18614
+ purchase_order_id?: string;
18615
+ responded_at?: string | null;
18616
+ sent_at?: string;
18617
+ status?: string;
18618
+ supplier_id?: string | null;
18619
+ supplier_name?: string;
18620
+ supplier_note?: string | null;
18621
+ to_address?: string | null;
18622
+ token_hash?: string;
18623
+ updated_at?: string;
18624
+ };
18625
+ Relationships: [{
18626
+ foreignKeyName: "purchase_requests_purchase_order_id_fkey";
18627
+ columns: ["purchase_order_id"];
18628
+ isOneToOne: false;
18629
+ referencedRelation: "purchase_orders";
18630
+ referencedColumns: ["id"];
18631
+ }, {
18632
+ foreignKeyName: "purchase_requests_supplier_id_fkey";
18633
+ columns: ["supplier_id"];
18634
+ isOneToOne: false;
18635
+ referencedRelation: "suppliers";
18636
+ referencedColumns: ["id"];
18637
+ }];
18638
+ };
18318
18639
  reception_notifications: {
18319
18640
  Row: {
18320
18641
  booking_id: string | null;
@@ -20478,6 +20799,7 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
20478
20799
  auto_invoice_enabled: boolean;
20479
20800
  auto_invoice_start_date: string | null;
20480
20801
  auto_invoice_trigger_statuses: string[];
20802
+ auto_send_mode: string | null;
20481
20803
  created_at: string;
20482
20804
  debtor_gl_account: string;
20483
20805
  default_article_code: string | null;
@@ -20506,6 +20828,7 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
20506
20828
  auto_invoice_enabled?: boolean;
20507
20829
  auto_invoice_start_date?: string | null;
20508
20830
  auto_invoice_trigger_statuses?: string[];
20831
+ auto_send_mode?: string | null;
20509
20832
  created_at?: string;
20510
20833
  debtor_gl_account?: string;
20511
20834
  default_article_code?: string | null;
@@ -20534,6 +20857,7 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
20534
20857
  auto_invoice_enabled?: boolean;
20535
20858
  auto_invoice_start_date?: string | null;
20536
20859
  auto_invoice_trigger_statuses?: string[];
20860
+ auto_send_mode?: string | null;
20537
20861
  created_at?: string;
20538
20862
  debtor_gl_account?: string;
20539
20863
  default_article_code?: string | null;
@@ -20977,16 +21301,19 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
20977
21301
  Row: {
20978
21302
  active_environment: string;
20979
21303
  id: number;
21304
+ public_base_url: string | null;
20980
21305
  updated_at: string;
20981
21306
  };
20982
21307
  Insert: {
20983
21308
  active_environment?: string;
20984
21309
  id?: number;
21310
+ public_base_url?: string | null;
20985
21311
  updated_at?: string;
20986
21312
  };
20987
21313
  Update: {
20988
21314
  active_environment?: string;
20989
21315
  id?: number;
21316
+ public_base_url?: string | null;
20990
21317
  updated_at?: string;
20991
21318
  };
20992
21319
  Relationships: [];
@@ -21217,11 +21544,15 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
21217
21544
  monteur_id: string;
21218
21545
  netto_verschil_minuten: number;
21219
21546
  normaal_uitbetaald_minuten: number;
21547
+ omgezet_vakantie_minuten: number;
21548
+ overdracht_vorige_minuten: number;
21220
21549
  overuren_minuten: number;
21221
21550
  plus_minuten: number;
21551
+ rest_overuren_minuten: number;
21222
21552
  status: string;
21223
21553
  totaal_uitbetaald_minuten: number;
21224
21554
  updated_at: string;
21555
+ vakantie_uren_bijgeschreven: number;
21225
21556
  };
21226
21557
  Insert: {
21227
21558
  afgesloten_at?: string | null;
@@ -21238,11 +21569,15 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
21238
21569
  monteur_id: string;
21239
21570
  netto_verschil_minuten?: number;
21240
21571
  normaal_uitbetaald_minuten?: number;
21572
+ omgezet_vakantie_minuten?: number;
21573
+ overdracht_vorige_minuten?: number;
21241
21574
  overuren_minuten?: number;
21242
21575
  plus_minuten?: number;
21576
+ rest_overuren_minuten?: number;
21243
21577
  status?: string;
21244
21578
  totaal_uitbetaald_minuten?: number;
21245
21579
  updated_at?: string;
21580
+ vakantie_uren_bijgeschreven?: number;
21246
21581
  };
21247
21582
  Update: {
21248
21583
  afgesloten_at?: string | null;
@@ -21259,11 +21594,15 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
21259
21594
  monteur_id?: string;
21260
21595
  netto_verschil_minuten?: number;
21261
21596
  normaal_uitbetaald_minuten?: number;
21597
+ omgezet_vakantie_minuten?: number;
21598
+ overdracht_vorige_minuten?: number;
21262
21599
  overuren_minuten?: number;
21263
21600
  plus_minuten?: number;
21601
+ rest_overuren_minuten?: number;
21264
21602
  status?: string;
21265
21603
  totaal_uitbetaald_minuten?: number;
21266
21604
  updated_at?: string;
21605
+ vakantie_uren_bijgeschreven?: number;
21267
21606
  };
21268
21607
  Relationships: [];
21269
21608
  };
@@ -21675,6 +22014,51 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
21675
22014
  referencedColumns: ["id"];
21676
22015
  }];
21677
22016
  };
22017
+ vakantie_uitbetalingen: {
22018
+ Row: {
22019
+ created_at: string;
22020
+ created_by: string | null;
22021
+ days: number;
22022
+ id: string;
22023
+ note: string | null;
22024
+ updated_at: string;
22025
+ user_id: string;
22026
+ year: number;
22027
+ };
22028
+ Insert: {
22029
+ created_at?: string;
22030
+ created_by?: string | null;
22031
+ days: number;
22032
+ id?: string;
22033
+ note?: string | null;
22034
+ updated_at?: string;
22035
+ user_id: string;
22036
+ year?: number;
22037
+ };
22038
+ Update: {
22039
+ created_at?: string;
22040
+ created_by?: string | null;
22041
+ days?: number;
22042
+ id?: string;
22043
+ note?: string | null;
22044
+ updated_at?: string;
22045
+ user_id?: string;
22046
+ year?: number;
22047
+ };
22048
+ Relationships: [{
22049
+ foreignKeyName: "vakantie_uitbetalingen_created_by_fkey";
22050
+ columns: ["created_by"];
22051
+ isOneToOne: false;
22052
+ referencedRelation: "profiles";
22053
+ referencedColumns: ["id"];
22054
+ }, {
22055
+ foreignKeyName: "vakantie_uitbetalingen_user_id_fkey";
22056
+ columns: ["user_id"];
22057
+ isOneToOne: false;
22058
+ referencedRelation: "profiles";
22059
+ referencedColumns: ["id"];
22060
+ }];
22061
+ };
21678
22062
  van_inventories: {
21679
22063
  Row: {
21680
22064
  barcode: string | null;
@@ -22959,6 +23343,78 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
22959
23343
  referencedColumns: ["id"];
22960
23344
  }];
22961
23345
  };
23346
+ werkbon_voorstellen: {
23347
+ Row: {
23348
+ bron_werkbon_id: string;
23349
+ budget_mandate_cents: number;
23350
+ created_at: string;
23351
+ created_by: string;
23352
+ customer_id: string | null;
23353
+ id: string;
23354
+ payload: import("../integrations/supabase/types").Json;
23355
+ reden: string | null;
23356
+ status: string;
23357
+ updated_at: string;
23358
+ verwerkt_door: string | null;
23359
+ verwerkt_op: string | null;
23360
+ werkbon_id: string | null;
23361
+ };
23362
+ Insert: {
23363
+ bron_werkbon_id: string;
23364
+ budget_mandate_cents?: number;
23365
+ created_at?: string;
23366
+ created_by?: string;
23367
+ customer_id?: string | null;
23368
+ id?: string;
23369
+ payload?: import("../integrations/supabase/types").Json;
23370
+ reden?: string | null;
23371
+ status?: string;
23372
+ updated_at?: string;
23373
+ verwerkt_door?: string | null;
23374
+ verwerkt_op?: string | null;
23375
+ werkbon_id?: string | null;
23376
+ };
23377
+ Update: {
23378
+ bron_werkbon_id?: string;
23379
+ budget_mandate_cents?: number;
23380
+ created_at?: string;
23381
+ created_by?: string;
23382
+ customer_id?: string | null;
23383
+ id?: string;
23384
+ payload?: import("../integrations/supabase/types").Json;
23385
+ reden?: string | null;
23386
+ status?: string;
23387
+ updated_at?: string;
23388
+ verwerkt_door?: string | null;
23389
+ verwerkt_op?: string | null;
23390
+ werkbon_id?: string | null;
23391
+ };
23392
+ Relationships: [{
23393
+ foreignKeyName: "werkbon_voorstellen_bron_werkbon_id_fkey";
23394
+ columns: ["bron_werkbon_id"];
23395
+ isOneToOne: false;
23396
+ referencedRelation: "werkbonnen";
23397
+ referencedColumns: ["id"];
23398
+ }, {
23399
+ foreignKeyName: "werkbon_voorstellen_bron_werkbon_id_fkey";
23400
+ columns: ["bron_werkbon_id"];
23401
+ isOneToOne: false;
23402
+ referencedRelation: "wo_overview";
23403
+ referencedColumns: ["id"];
23404
+ }, {
23405
+ foreignKeyName: "werkbon_voorstellen_werkbon_id_fkey";
23406
+ columns: ["werkbon_id"];
23407
+ isOneToOne: false;
23408
+ referencedRelation: "werkbonnen";
23409
+ referencedColumns: ["id"];
23410
+ }, {
23411
+ foreignKeyName: "werkbon_voorstellen_werkbon_id_fkey";
23412
+ columns: ["werkbon_id"];
23413
+ isOneToOne: false;
23414
+ referencedRelation: "wo_overview";
23415
+ referencedColumns: ["id"];
23416
+ }];
23417
+ };
22962
23418
  werkbonnen: {
22963
23419
  Row: {
22964
23420
  assigned_user_id: string | null;
@@ -24199,6 +24655,10 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
24199
24655
  };
24200
24656
  Returns: undefined;
24201
24657
  };
24658
+ _wo_is_planner: {
24659
+ Args: never;
24660
+ Returns: boolean;
24661
+ };
24202
24662
  afh_city_code: {
24203
24663
  Args: {
24204
24664
  _city: string;
@@ -25311,6 +25771,22 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
25311
25771
  };
25312
25772
  Returns: number;
25313
25773
  };
25774
+ get_product_stock: {
25775
+ Args: {
25776
+ p_product_id: string;
25777
+ };
25778
+ Returns: {
25779
+ connection_id: string;
25780
+ incoming_stock: number;
25781
+ minimum_stock: number;
25782
+ notes: string;
25783
+ physical_stock: number;
25784
+ product_id: string;
25785
+ reserved_stock: number;
25786
+ trade_item_key: string;
25787
+ updated_at: string;
25788
+ }[];
25789
+ };
25314
25790
  get_room_busy_windows: {
25315
25791
  Args: {
25316
25792
  p_from: string;
@@ -25615,13 +26091,69 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
25615
26091
  };
25616
26092
  Returns: import("../integrations/supabase/types").Json;
25617
26093
  };
26094
+ inkoop_get_supplier_request: {
26095
+ Args: {
26096
+ _token: string;
26097
+ };
26098
+ Returns: import("../integrations/supabase/types").Json;
26099
+ };
26100
+ inkoop_hash_token: {
26101
+ Args: {
26102
+ _token: string;
26103
+ };
26104
+ Returns: string;
26105
+ };
26106
+ inkoop_html_escape: {
26107
+ Args: {
26108
+ _t: string;
26109
+ };
26110
+ Returns: string;
26111
+ };
26112
+ inkoop_list_artikelen: {
26113
+ Args: never;
26114
+ Returns: {
26115
+ article_number: string;
26116
+ barcode: string;
26117
+ id: string;
26118
+ incoming_quantity: number;
26119
+ is_layer: boolean;
26120
+ location: string;
26121
+ min_quantity: number;
26122
+ preferred_supplier_name: string;
26123
+ product: string;
26124
+ product_type: string;
26125
+ purchase_price: number;
26126
+ quantity: number;
26127
+ sale_price: number;
26128
+ supplier_count: number;
26129
+ unit: string;
26130
+ }[];
26131
+ };
25618
26132
  inkoop_next_order_number: {
25619
26133
  Args: never;
25620
26134
  Returns: string;
25621
26135
  };
26136
+ inkoop_process_request: {
26137
+ Args: {
26138
+ _request_id: string;
26139
+ };
26140
+ Returns: undefined;
26141
+ };
25622
26142
  inkoop_send_order: {
25623
26143
  Args: {
26144
+ _base_url?: string;
26145
+ _order_id: string;
26146
+ };
26147
+ Returns: {
26148
+ outbox_id: string;
26149
+ supplier_name: string;
26150
+ to_address: string;
26151
+ }[];
26152
+ } | {
26153
+ Args: {
26154
+ _base_url?: string;
25624
26155
  _order_id: string;
26156
+ _resend?: boolean;
25625
26157
  };
25626
26158
  Returns: {
25627
26159
  outbox_id: string;
@@ -25629,6 +26161,33 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
25629
26161
  to_address: string;
25630
26162
  }[];
25631
26163
  };
26164
+ inkoop_set_preferred_supplier: {
26165
+ Args: {
26166
+ _product_id: string;
26167
+ _supplier_id: string;
26168
+ };
26169
+ Returns: undefined;
26170
+ };
26171
+ inkoop_stock_key: {
26172
+ Args: {
26173
+ p_product_id: string;
26174
+ };
26175
+ Returns: string;
26176
+ };
26177
+ inkoop_submit_supplier_response: {
26178
+ Args: {
26179
+ _lines: import("../integrations/supabase/types").Json;
26180
+ _note?: string;
26181
+ _token: string;
26182
+ };
26183
+ Returns: import("../integrations/supabase/types").Json;
26184
+ };
26185
+ inkoop_sync_item_stock: {
26186
+ Args: {
26187
+ p_item_id: string;
26188
+ };
26189
+ Returns: undefined;
26190
+ };
25632
26191
  instructie_get: {
25633
26192
  Args: {
25634
26193
  _sleutel: string;
@@ -25648,6 +26207,10 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
25648
26207
  };
25649
26208
  Returns: number;
25650
26209
  };
26210
+ invoice_branding_snapshot: {
26211
+ Args: never;
26212
+ Returns: import("../integrations/supabase/types").Json;
26213
+ };
25651
26214
  invoice_create_from_source: {
25652
26215
  Args: {
25653
26216
  _payload?: import("../integrations/supabase/types").Json;
@@ -25682,6 +26245,17 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
25682
26245
  };
25683
26246
  Returns: import("../integrations/supabase/types").Json;
25684
26247
  };
26248
+ invoice_mark_sent: {
26249
+ Args: {
26250
+ _invoice_id: string;
26251
+ _to: string;
26252
+ };
26253
+ Returns: undefined;
26254
+ };
26255
+ invoice_peek_next_number: {
26256
+ Args: never;
26257
+ Returns: string;
26258
+ };
25685
26259
  invoice_ready_work_orders: {
25686
26260
  Args: {
25687
26261
  _limit?: number;
@@ -25694,6 +26268,18 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
25694
26268
  };
25695
26269
  Returns: import("../integrations/supabase/types").Json;
25696
26270
  };
26271
+ invoice_save_branding_settings: {
26272
+ Args: {
26273
+ _payload: import("../integrations/supabase/types").Json;
26274
+ };
26275
+ Returns: import("../integrations/supabase/types").Json;
26276
+ };
26277
+ invoice_set_email_purpose: {
26278
+ Args: {
26279
+ _purpose: string;
26280
+ };
26281
+ Returns: string;
26282
+ };
25697
26283
  invoice_source_lines: {
25698
26284
  Args: {
25699
26285
  _source_id: string;
@@ -25701,6 +26287,19 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
25701
26287
  };
25702
26288
  Returns: import("../integrations/supabase/types").Json;
25703
26289
  };
26290
+ invoice_update_full: {
26291
+ Args: {
26292
+ _invoice_id: string;
26293
+ _payload: import("../integrations/supabase/types").Json;
26294
+ };
26295
+ Returns: import("../integrations/supabase/types").Json;
26296
+ };
26297
+ invoice_work_order_locked: {
26298
+ Args: {
26299
+ _werkbon_id: string;
26300
+ };
26301
+ Returns: import("../integrations/supabase/types").Json;
26302
+ };
25704
26303
  is_authenticated: {
25705
26304
  Args: never;
25706
26305
  Returns: boolean;
@@ -26860,6 +27459,12 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
26860
27459
  Args: never;
26861
27460
  Returns: string;
26862
27461
  };
27462
+ logistics_order_backlog_info: {
27463
+ Args: {
27464
+ p_order_id: string;
27465
+ };
27466
+ Returns: import("../integrations/supabase/types").Json;
27467
+ };
26863
27468
  logistics_order_cart_approval: {
26864
27469
  Args: {
26865
27470
  _order_ref: string;
@@ -26950,6 +27555,12 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
26950
27555
  };
26951
27556
  Returns: boolean;
26952
27557
  };
27558
+ logistics_order_is_backlog: {
27559
+ Args: {
27560
+ p_order_id: string;
27561
+ };
27562
+ Returns: boolean;
27563
+ };
26953
27564
  logistics_order_is_topick: {
26954
27565
  Args: {
26955
27566
  p_order_id: string;
@@ -27091,6 +27702,10 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
27091
27702
  shifted_count: number;
27092
27703
  }[];
27093
27704
  };
27705
+ logistics_pick_backlog_max_days: {
27706
+ Args: never;
27707
+ Returns: number;
27708
+ };
27094
27709
  logistics_pick_barcode_enabled: {
27095
27710
  Args: never;
27096
27711
  Returns: boolean;
@@ -27706,12 +28321,27 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
27706
28321
  Args: never;
27707
28322
  Returns: import("../integrations/supabase/types").Json;
27708
28323
  };
28324
+ logistics_sync_pick_queue_backlog: {
28325
+ Args: never;
28326
+ Returns: import("../integrations/supabase/types").Json;
28327
+ };
28328
+ logistics_sync_pick_queue_core: {
28329
+ Args: never;
28330
+ Returns: import("../integrations/supabase/types").Json;
28331
+ };
27709
28332
  logistics_sync_task_carriers: {
27710
28333
  Args: {
27711
28334
  p_order_ref?: string;
27712
28335
  };
27713
28336
  Returns: number;
27714
28337
  };
28338
+ logistics_task_open_counts: {
28339
+ Args: never;
28340
+ Returns: {
28341
+ open_count: number;
28342
+ owner_module: string;
28343
+ }[];
28344
+ };
27715
28345
  logistics_task_owner: {
27716
28346
  Args: {
27717
28347
  p_task_type: string;
@@ -29000,6 +29630,19 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
29000
29630
  };
29001
29631
  Returns: boolean;
29002
29632
  };
29633
+ quote_assign_number: {
29634
+ Args: {
29635
+ _offerte_id: string;
29636
+ };
29637
+ Returns: string;
29638
+ };
29639
+ quote_create_follow_up_now: {
29640
+ Args: {
29641
+ _offerte_id: string;
29642
+ _payload?: import("../integrations/supabase/types").Json;
29643
+ };
29644
+ Returns: import("../integrations/supabase/types").Json;
29645
+ };
29003
29646
  quote_create_from_source: {
29004
29647
  Args: {
29005
29648
  _payload?: import("../integrations/supabase/types").Json;
@@ -29713,6 +30356,26 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
29713
30356
  };
29714
30357
  Returns: undefined;
29715
30358
  };
30359
+ set_product_stock: {
30360
+ Args: {
30361
+ p_incoming_stock?: number;
30362
+ p_minimum_stock?: number;
30363
+ p_notes?: string;
30364
+ p_physical_stock: number;
30365
+ p_product_id: string;
30366
+ };
30367
+ Returns: {
30368
+ connection_id: string;
30369
+ incoming_stock: number;
30370
+ minimum_stock: number;
30371
+ notes: string;
30372
+ physical_stock: number;
30373
+ product_id: string;
30374
+ reserved_stock: number;
30375
+ trade_item_key: string;
30376
+ updated_at: string;
30377
+ }[];
30378
+ };
29716
30379
  show_limit: {
29717
30380
  Args: never;
29718
30381
  Returns: number;
@@ -30237,6 +30900,13 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
30237
30900
  };
30238
30901
  Returns: number;
30239
30902
  };
30903
+ vakantie_overuren: {
30904
+ Args: {
30905
+ _user_id: string;
30906
+ _year?: number;
30907
+ };
30908
+ Returns: number;
30909
+ };
30240
30910
  vakantie_saldo: {
30241
30911
  Args: {
30242
30912
  _user_id: string;
@@ -30244,7 +30914,12 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
30244
30914
  };
30245
30915
  Returns: {
30246
30916
  day_hours: number;
30917
+ earned_from_overtime_days: number;
30247
30918
  entitlement_days: number;
30919
+ hours_to_next_day: number;
30920
+ overtime_hours: number;
30921
+ overtime_remainder_hours: number;
30922
+ paid_out_days: number;
30248
30923
  remaining_days: number;
30249
30924
  used_days: number;
30250
30925
  }[];
@@ -30255,7 +30930,12 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
30255
30930
  };
30256
30931
  Returns: {
30257
30932
  day_hours: number;
30933
+ earned_from_overtime_days: number;
30258
30934
  entitlement_days: number;
30935
+ hours_to_next_day: number;
30936
+ overtime_hours: number;
30937
+ overtime_remainder_hours: number;
30938
+ paid_out_days: number;
30259
30939
  remaining_days: number;
30260
30940
  used_days: number;
30261
30941
  user_id: string;
@@ -30309,12 +30989,25 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
30309
30989
  };
30310
30990
  Returns: import("../integrations/supabase/types").Json;
30311
30991
  };
30992
+ wo_list_proposals: {
30993
+ Args: {
30994
+ _status?: string;
30995
+ };
30996
+ Returns: import("../integrations/supabase/types").Json;
30997
+ };
30312
30998
  wo_process_offerte_request: {
30313
30999
  Args: {
30314
31000
  _queue_id: string;
30315
31001
  };
30316
31002
  Returns: import("../integrations/supabase/types").Json;
30317
31003
  };
31004
+ wo_process_proposal: {
31005
+ Args: {
31006
+ _id: string;
31007
+ _overrides?: import("../integrations/supabase/types").Json;
31008
+ };
31009
+ Returns: import("../integrations/supabase/types").Json;
31010
+ };
30318
31011
  wo_reject_offerte_request: {
30319
31012
  Args: {
30320
31013
  _queue_id: string;
@@ -30322,6 +31015,13 @@ export declare const publishTradeItem: import("@tanstack/start-client-core").Req
30322
31015
  };
30323
31016
  Returns: import("../integrations/supabase/types").Json;
30324
31017
  };
31018
+ wo_reject_proposal: {
31019
+ Args: {
31020
+ _id: string;
31021
+ _reden?: string;
31022
+ };
31023
+ Returns: import("../integrations/supabase/types").Json;
31024
+ };
30325
31025
  wo_set_status: {
30326
31026
  Args: {
30327
31027
  _reason?: string;
@@ -38618,6 +39318,72 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
38618
39318
  };
38619
39319
  Relationships: [];
38620
39320
  };
39321
+ invoice_branding_settings: {
39322
+ Row: {
39323
+ address: string;
39324
+ chamber_of_commerce_number: string;
39325
+ city: string;
39326
+ company_name: string;
39327
+ created_at: string;
39328
+ email: string;
39329
+ email_purpose: string | null;
39330
+ iban: string;
39331
+ logo_path: string | null;
39332
+ payment_term_days: number;
39333
+ phone: string;
39334
+ postal_code: string;
39335
+ primary_color: string;
39336
+ secondary_color: string;
39337
+ show_company_name: boolean;
39338
+ singleton_key: boolean;
39339
+ updated_at: string;
39340
+ vat_identification_number: string;
39341
+ website: string;
39342
+ };
39343
+ Insert: {
39344
+ address?: string;
39345
+ chamber_of_commerce_number?: string;
39346
+ city?: string;
39347
+ company_name?: string;
39348
+ created_at?: string;
39349
+ email?: string;
39350
+ email_purpose?: string | null;
39351
+ iban?: string;
39352
+ logo_path?: string | null;
39353
+ payment_term_days?: number;
39354
+ phone?: string;
39355
+ postal_code?: string;
39356
+ primary_color?: string;
39357
+ secondary_color?: string;
39358
+ show_company_name?: boolean;
39359
+ singleton_key?: boolean;
39360
+ updated_at?: string;
39361
+ vat_identification_number?: string;
39362
+ website?: string;
39363
+ };
39364
+ Update: {
39365
+ address?: string;
39366
+ chamber_of_commerce_number?: string;
39367
+ city?: string;
39368
+ company_name?: string;
39369
+ created_at?: string;
39370
+ email?: string;
39371
+ email_purpose?: string | null;
39372
+ iban?: string;
39373
+ logo_path?: string | null;
39374
+ payment_term_days?: number;
39375
+ phone?: string;
39376
+ postal_code?: string;
39377
+ primary_color?: string;
39378
+ secondary_color?: string;
39379
+ show_company_name?: boolean;
39380
+ singleton_key?: boolean;
39381
+ updated_at?: string;
39382
+ vat_identification_number?: string;
39383
+ website?: string;
39384
+ };
39385
+ Relationships: [];
39386
+ };
38621
39387
  invoice_items: {
38622
39388
  Row: {
38623
39389
  created_at: string;
@@ -38631,6 +39397,7 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
38631
39397
  total_cents: number;
38632
39398
  unit: string;
38633
39399
  unit_price_cents: number;
39400
+ vat_rate: number | null;
38634
39401
  };
38635
39402
  Insert: {
38636
39403
  created_at?: string;
@@ -38644,6 +39411,7 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
38644
39411
  total_cents?: number;
38645
39412
  unit?: string;
38646
39413
  unit_price_cents?: number;
39414
+ vat_rate?: number | null;
38647
39415
  };
38648
39416
  Update: {
38649
39417
  created_at?: string;
@@ -38657,6 +39425,7 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
38657
39425
  total_cents?: number;
38658
39426
  unit?: string;
38659
39427
  unit_price_cents?: number;
39428
+ vat_rate?: number | null;
38660
39429
  };
38661
39430
  Relationships: [{
38662
39431
  foreignKeyName: "invoice_items_invoice_id_fkey";
@@ -38902,6 +39671,7 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
38902
39671
  };
38903
39672
  invoices: {
38904
39673
  Row: {
39674
+ branding_snapshot: import("../integrations/supabase/types").Json | null;
38905
39675
  created_at: string;
38906
39676
  created_by: string | null;
38907
39677
  customer_address: string | null;
@@ -38920,6 +39690,8 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
38920
39690
  note: string | null;
38921
39691
  payment_term_days: number;
38922
39692
  reference: string | null;
39693
+ sent_at: string | null;
39694
+ sent_to: string | null;
38923
39695
  source_number: string | null;
38924
39696
  source_ref: string | null;
38925
39697
  source_type: string;
@@ -38932,6 +39704,7 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
38932
39704
  work_address: string | null;
38933
39705
  };
38934
39706
  Insert: {
39707
+ branding_snapshot?: import("../integrations/supabase/types").Json | null;
38935
39708
  created_at?: string;
38936
39709
  created_by?: string | null;
38937
39710
  customer_address?: string | null;
@@ -38950,6 +39723,8 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
38950
39723
  note?: string | null;
38951
39724
  payment_term_days?: number;
38952
39725
  reference?: string | null;
39726
+ sent_at?: string | null;
39727
+ sent_to?: string | null;
38953
39728
  source_number?: string | null;
38954
39729
  source_ref?: string | null;
38955
39730
  source_type?: string;
@@ -38962,6 +39737,7 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
38962
39737
  work_address?: string | null;
38963
39738
  };
38964
39739
  Update: {
39740
+ branding_snapshot?: import("../integrations/supabase/types").Json | null;
38965
39741
  created_at?: string;
38966
39742
  created_by?: string | null;
38967
39743
  customer_address?: string | null;
@@ -38980,6 +39756,8 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
38980
39756
  note?: string | null;
38981
39757
  payment_term_days?: number;
38982
39758
  reference?: string | null;
39759
+ sent_at?: string | null;
39760
+ sent_to?: string | null;
38983
39761
  source_number?: string | null;
38984
39762
  source_ref?: string | null;
38985
39763
  source_type?: string;
@@ -39688,6 +40466,7 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
39688
40466
  quantity: number;
39689
40467
  sort_order: number;
39690
40468
  source: string;
40469
+ unit: string | null;
39691
40470
  unit_price_cents: number;
39692
40471
  updated_at: string;
39693
40472
  };
@@ -39701,6 +40480,7 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
39701
40480
  quantity?: number;
39702
40481
  sort_order?: number;
39703
40482
  source?: string;
40483
+ unit?: string | null;
39704
40484
  unit_price_cents?: number;
39705
40485
  updated_at?: string;
39706
40486
  };
@@ -39714,6 +40494,7 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
39714
40494
  quantity?: number;
39715
40495
  sort_order?: number;
39716
40496
  source?: string;
40497
+ unit?: string | null;
39717
40498
  unit_price_cents?: number;
39718
40499
  updated_at?: string;
39719
40500
  };
@@ -39737,6 +40518,7 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
39737
40518
  created_at: string;
39738
40519
  default_geldigheid_dagen: number;
39739
40520
  default_vat_rate: number;
40521
+ email_purpose: string | null;
39740
40522
  id: string;
39741
40523
  singleton: boolean;
39742
40524
  updated_at: string;
@@ -39746,6 +40528,7 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
39746
40528
  created_at?: string;
39747
40529
  default_geldigheid_dagen?: number;
39748
40530
  default_vat_rate?: number;
40531
+ email_purpose?: string | null;
39749
40532
  id?: string;
39750
40533
  singleton?: boolean;
39751
40534
  updated_at?: string;
@@ -39755,6 +40538,7 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
39755
40538
  created_at?: string;
39756
40539
  default_geldigheid_dagen?: number;
39757
40540
  default_vat_rate?: number;
40541
+ email_purpose?: string | null;
39758
40542
  id?: string;
39759
40543
  singleton?: boolean;
39760
40544
  updated_at?: string;
@@ -39847,6 +40631,7 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
39847
40631
  };
39848
40632
  itk_offertes: {
39849
40633
  Row: {
40634
+ aandachtspunten: string | null;
39850
40635
  ai_generated: boolean;
39851
40636
  approved_at: string | null;
39852
40637
  binnen_mandaat: boolean;
@@ -39862,6 +40647,7 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
39862
40647
  notities: string | null;
39863
40648
  offerte_number: string | null;
39864
40649
  omschrijving: string;
40650
+ onderwerp: string | null;
39865
40651
  rejected_at: string | null;
39866
40652
  sent_at: string | null;
39867
40653
  source_number: string | null;
@@ -39874,12 +40660,15 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
39874
40660
  valid_until: string | null;
39875
40661
  vat_cents: number;
39876
40662
  vat_rate: number;
40663
+ verzonden_naar: string | null;
39877
40664
  viewed_at: string | null;
39878
40665
  volgnummer: number | null;
40666
+ voorwaarden: string | null;
39879
40667
  werkbon_id: string | null;
39880
40668
  work_location_id: string | null;
39881
40669
  };
39882
40670
  Insert: {
40671
+ aandachtspunten?: string | null;
39883
40672
  ai_generated?: boolean;
39884
40673
  approved_at?: string | null;
39885
40674
  binnen_mandaat?: boolean;
@@ -39895,6 +40684,7 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
39895
40684
  notities?: string | null;
39896
40685
  offerte_number?: string | null;
39897
40686
  omschrijving?: string;
40687
+ onderwerp?: string | null;
39898
40688
  rejected_at?: string | null;
39899
40689
  sent_at?: string | null;
39900
40690
  source_number?: string | null;
@@ -39907,12 +40697,15 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
39907
40697
  valid_until?: string | null;
39908
40698
  vat_cents?: number;
39909
40699
  vat_rate?: number;
40700
+ verzonden_naar?: string | null;
39910
40701
  viewed_at?: string | null;
39911
40702
  volgnummer?: number | null;
40703
+ voorwaarden?: string | null;
39912
40704
  werkbon_id?: string | null;
39913
40705
  work_location_id?: string | null;
39914
40706
  };
39915
40707
  Update: {
40708
+ aandachtspunten?: string | null;
39916
40709
  ai_generated?: boolean;
39917
40710
  approved_at?: string | null;
39918
40711
  binnen_mandaat?: boolean;
@@ -39928,6 +40721,7 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
39928
40721
  notities?: string | null;
39929
40722
  offerte_number?: string | null;
39930
40723
  omschrijving?: string;
40724
+ onderwerp?: string | null;
39931
40725
  rejected_at?: string | null;
39932
40726
  sent_at?: string | null;
39933
40727
  source_number?: string | null;
@@ -39940,8 +40734,10 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
39940
40734
  valid_until?: string | null;
39941
40735
  vat_cents?: number;
39942
40736
  vat_rate?: number;
40737
+ verzonden_naar?: string | null;
39943
40738
  viewed_at?: string | null;
39944
40739
  volgnummer?: number | null;
40740
+ voorwaarden?: string | null;
39945
40741
  werkbon_id?: string | null;
39946
40742
  work_location_id?: string | null;
39947
40743
  };
@@ -44953,6 +45749,7 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
44953
45749
  next_attempt_at: string;
44954
45750
  order_id: string;
44955
45751
  processed_at: string | null;
45752
+ send_error: string | null;
44956
45753
  status: string;
44957
45754
  updated_at: string;
44958
45755
  };
@@ -44966,6 +45763,7 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
44966
45763
  next_attempt_at?: string;
44967
45764
  order_id: string;
44968
45765
  processed_at?: string | null;
45766
+ send_error?: string | null;
44969
45767
  status?: string;
44970
45768
  updated_at?: string;
44971
45769
  };
@@ -44979,6 +45777,7 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
44979
45777
  next_attempt_at?: string;
44980
45778
  order_id?: string;
44981
45779
  processed_at?: string | null;
45780
+ send_error?: string | null;
44982
45781
  status?: string;
44983
45782
  updated_at?: string;
44984
45783
  };
@@ -48008,6 +48807,66 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
48008
48807
  };
48009
48808
  Relationships: [];
48010
48809
  };
48810
+ product_suppliers: {
48811
+ Row: {
48812
+ created_at: string;
48813
+ id: string;
48814
+ is_preferred: boolean;
48815
+ lead_time_days: number | null;
48816
+ min_order_quantity: number | null;
48817
+ notes: string | null;
48818
+ product_id: string;
48819
+ purchase_price_cents: number | null;
48820
+ supplier_article_number: string | null;
48821
+ supplier_id: string;
48822
+ updated_at: string;
48823
+ };
48824
+ Insert: {
48825
+ created_at?: string;
48826
+ id?: string;
48827
+ is_preferred?: boolean;
48828
+ lead_time_days?: number | null;
48829
+ min_order_quantity?: number | null;
48830
+ notes?: string | null;
48831
+ product_id: string;
48832
+ purchase_price_cents?: number | null;
48833
+ supplier_article_number?: string | null;
48834
+ supplier_id: string;
48835
+ updated_at?: string;
48836
+ };
48837
+ Update: {
48838
+ created_at?: string;
48839
+ id?: string;
48840
+ is_preferred?: boolean;
48841
+ lead_time_days?: number | null;
48842
+ min_order_quantity?: number | null;
48843
+ notes?: string | null;
48844
+ product_id?: string;
48845
+ purchase_price_cents?: number | null;
48846
+ supplier_article_number?: string | null;
48847
+ supplier_id?: string;
48848
+ updated_at?: string;
48849
+ };
48850
+ Relationships: [{
48851
+ foreignKeyName: "product_suppliers_product_id_fkey";
48852
+ columns: ["product_id"];
48853
+ isOneToOne: false;
48854
+ referencedRelation: "logistics_product_dimensions";
48855
+ referencedColumns: ["product_id"];
48856
+ }, {
48857
+ foreignKeyName: "product_suppliers_product_id_fkey";
48858
+ columns: ["product_id"];
48859
+ isOneToOne: false;
48860
+ referencedRelation: "products";
48861
+ referencedColumns: ["id"];
48862
+ }, {
48863
+ foreignKeyName: "product_suppliers_supplier_id_fkey";
48864
+ columns: ["supplier_id"];
48865
+ isOneToOne: false;
48866
+ referencedRelation: "suppliers";
48867
+ referencedColumns: ["id"];
48868
+ }];
48869
+ };
48011
48870
  product_tray_stickers: {
48012
48871
  Row: {
48013
48872
  bestand_url: string;
@@ -48512,9 +49371,12 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
48512
49371
  purchase_order_items: {
48513
49372
  Row: {
48514
49373
  article_number: string | null;
49374
+ cancelled_at: string | null;
48515
49375
  created_at: string;
48516
49376
  delivery_date: string | null;
48517
49377
  id: string;
49378
+ incoming_booked: number;
49379
+ line_status: string;
48518
49380
  name: string;
48519
49381
  note: string | null;
48520
49382
  pot_size: string | null;
@@ -48522,6 +49384,8 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
48522
49384
  product_type: string;
48523
49385
  purchase_order_id: string;
48524
49386
  quantity: number;
49387
+ received_at: string | null;
49388
+ received_booked: number;
48525
49389
  supplier_id: string | null;
48526
49390
  supplier_product_id: string | null;
48527
49391
  unit_price_cents: number;
@@ -48529,9 +49393,12 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
48529
49393
  };
48530
49394
  Insert: {
48531
49395
  article_number?: string | null;
49396
+ cancelled_at?: string | null;
48532
49397
  created_at?: string;
48533
49398
  delivery_date?: string | null;
48534
49399
  id?: string;
49400
+ incoming_booked?: number;
49401
+ line_status?: string;
48535
49402
  name?: string;
48536
49403
  note?: string | null;
48537
49404
  pot_size?: string | null;
@@ -48539,6 +49406,8 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
48539
49406
  product_type?: string;
48540
49407
  purchase_order_id: string;
48541
49408
  quantity?: number;
49409
+ received_at?: string | null;
49410
+ received_booked?: number;
48542
49411
  supplier_id?: string | null;
48543
49412
  supplier_product_id?: string | null;
48544
49413
  unit_price_cents?: number;
@@ -48546,9 +49415,12 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
48546
49415
  };
48547
49416
  Update: {
48548
49417
  article_number?: string | null;
49418
+ cancelled_at?: string | null;
48549
49419
  created_at?: string;
48550
49420
  delivery_date?: string | null;
48551
49421
  id?: string;
49422
+ incoming_booked?: number;
49423
+ line_status?: string;
48552
49424
  name?: string;
48553
49425
  note?: string | null;
48554
49426
  pot_size?: string | null;
@@ -48556,6 +49428,8 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
48556
49428
  product_type?: string;
48557
49429
  purchase_order_id?: string;
48558
49430
  quantity?: number;
49431
+ received_at?: string | null;
49432
+ received_booked?: number;
48559
49433
  supplier_id?: string | null;
48560
49434
  supplier_product_id?: string | null;
48561
49435
  unit_price_cents?: number;
@@ -48659,6 +49533,153 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
48659
49533
  referencedColumns: ["id"];
48660
49534
  }];
48661
49535
  };
49536
+ purchase_request_events: {
49537
+ Row: {
49538
+ created_at: string;
49539
+ details: import("../integrations/supabase/types").Json | null;
49540
+ event_type: string;
49541
+ id: string;
49542
+ request_id: string;
49543
+ };
49544
+ Insert: {
49545
+ created_at?: string;
49546
+ details?: import("../integrations/supabase/types").Json | null;
49547
+ event_type: string;
49548
+ id?: string;
49549
+ request_id: string;
49550
+ };
49551
+ Update: {
49552
+ created_at?: string;
49553
+ details?: import("../integrations/supabase/types").Json | null;
49554
+ event_type?: string;
49555
+ id?: string;
49556
+ request_id?: string;
49557
+ };
49558
+ Relationships: [{
49559
+ foreignKeyName: "purchase_request_events_request_id_fkey";
49560
+ columns: ["request_id"];
49561
+ isOneToOne: false;
49562
+ referencedRelation: "purchase_requests";
49563
+ referencedColumns: ["id"];
49564
+ }];
49565
+ };
49566
+ purchase_request_responses: {
49567
+ Row: {
49568
+ confirmed_date: string | null;
49569
+ confirmed_price_cents: number | null;
49570
+ confirmed_quantity: number;
49571
+ created_at: string;
49572
+ id: string;
49573
+ not_available: boolean;
49574
+ note: string | null;
49575
+ purchase_order_item_id: string;
49576
+ request_id: string;
49577
+ updated_at: string;
49578
+ };
49579
+ Insert: {
49580
+ confirmed_date?: string | null;
49581
+ confirmed_price_cents?: number | null;
49582
+ confirmed_quantity?: number;
49583
+ created_at?: string;
49584
+ id?: string;
49585
+ not_available?: boolean;
49586
+ note?: string | null;
49587
+ purchase_order_item_id: string;
49588
+ request_id: string;
49589
+ updated_at?: string;
49590
+ };
49591
+ Update: {
49592
+ confirmed_date?: string | null;
49593
+ confirmed_price_cents?: number | null;
49594
+ confirmed_quantity?: number;
49595
+ created_at?: string;
49596
+ id?: string;
49597
+ not_available?: boolean;
49598
+ note?: string | null;
49599
+ purchase_order_item_id?: string;
49600
+ request_id?: string;
49601
+ updated_at?: string;
49602
+ };
49603
+ Relationships: [{
49604
+ foreignKeyName: "purchase_request_responses_purchase_order_item_id_fkey";
49605
+ columns: ["purchase_order_item_id"];
49606
+ isOneToOne: false;
49607
+ referencedRelation: "purchase_order_items";
49608
+ referencedColumns: ["id"];
49609
+ }, {
49610
+ foreignKeyName: "purchase_request_responses_request_id_fkey";
49611
+ columns: ["request_id"];
49612
+ isOneToOne: false;
49613
+ referencedRelation: "purchase_requests";
49614
+ referencedColumns: ["id"];
49615
+ }];
49616
+ };
49617
+ purchase_requests: {
49618
+ Row: {
49619
+ created_at: string;
49620
+ expires_at: string;
49621
+ first_viewed_at: string | null;
49622
+ id: string;
49623
+ processed_at: string | null;
49624
+ purchase_order_id: string;
49625
+ responded_at: string | null;
49626
+ sent_at: string;
49627
+ status: string;
49628
+ supplier_id: string | null;
49629
+ supplier_name: string;
49630
+ supplier_note: string | null;
49631
+ to_address: string | null;
49632
+ token_hash: string;
49633
+ updated_at: string;
49634
+ };
49635
+ Insert: {
49636
+ created_at?: string;
49637
+ expires_at?: string;
49638
+ first_viewed_at?: string | null;
49639
+ id?: string;
49640
+ processed_at?: string | null;
49641
+ purchase_order_id: string;
49642
+ responded_at?: string | null;
49643
+ sent_at?: string;
49644
+ status?: string;
49645
+ supplier_id?: string | null;
49646
+ supplier_name?: string;
49647
+ supplier_note?: string | null;
49648
+ to_address?: string | null;
49649
+ token_hash: string;
49650
+ updated_at?: string;
49651
+ };
49652
+ Update: {
49653
+ created_at?: string;
49654
+ expires_at?: string;
49655
+ first_viewed_at?: string | null;
49656
+ id?: string;
49657
+ processed_at?: string | null;
49658
+ purchase_order_id?: string;
49659
+ responded_at?: string | null;
49660
+ sent_at?: string;
49661
+ status?: string;
49662
+ supplier_id?: string | null;
49663
+ supplier_name?: string;
49664
+ supplier_note?: string | null;
49665
+ to_address?: string | null;
49666
+ token_hash?: string;
49667
+ updated_at?: string;
49668
+ };
49669
+ Relationships: [{
49670
+ foreignKeyName: "purchase_requests_purchase_order_id_fkey";
49671
+ columns: ["purchase_order_id"];
49672
+ isOneToOne: false;
49673
+ referencedRelation: "purchase_orders";
49674
+ referencedColumns: ["id"];
49675
+ }, {
49676
+ foreignKeyName: "purchase_requests_supplier_id_fkey";
49677
+ columns: ["supplier_id"];
49678
+ isOneToOne: false;
49679
+ referencedRelation: "suppliers";
49680
+ referencedColumns: ["id"];
49681
+ }];
49682
+ };
48662
49683
  reception_notifications: {
48663
49684
  Row: {
48664
49685
  booking_id: string | null;
@@ -50822,6 +51843,7 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
50822
51843
  auto_invoice_enabled: boolean;
50823
51844
  auto_invoice_start_date: string | null;
50824
51845
  auto_invoice_trigger_statuses: string[];
51846
+ auto_send_mode: string | null;
50825
51847
  created_at: string;
50826
51848
  debtor_gl_account: string;
50827
51849
  default_article_code: string | null;
@@ -50850,6 +51872,7 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
50850
51872
  auto_invoice_enabled?: boolean;
50851
51873
  auto_invoice_start_date?: string | null;
50852
51874
  auto_invoice_trigger_statuses?: string[];
51875
+ auto_send_mode?: string | null;
50853
51876
  created_at?: string;
50854
51877
  debtor_gl_account?: string;
50855
51878
  default_article_code?: string | null;
@@ -50878,6 +51901,7 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
50878
51901
  auto_invoice_enabled?: boolean;
50879
51902
  auto_invoice_start_date?: string | null;
50880
51903
  auto_invoice_trigger_statuses?: string[];
51904
+ auto_send_mode?: string | null;
50881
51905
  created_at?: string;
50882
51906
  debtor_gl_account?: string;
50883
51907
  default_article_code?: string | null;
@@ -51321,16 +52345,19 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
51321
52345
  Row: {
51322
52346
  active_environment: string;
51323
52347
  id: number;
52348
+ public_base_url: string | null;
51324
52349
  updated_at: string;
51325
52350
  };
51326
52351
  Insert: {
51327
52352
  active_environment?: string;
51328
52353
  id?: number;
52354
+ public_base_url?: string | null;
51329
52355
  updated_at?: string;
51330
52356
  };
51331
52357
  Update: {
51332
52358
  active_environment?: string;
51333
52359
  id?: number;
52360
+ public_base_url?: string | null;
51334
52361
  updated_at?: string;
51335
52362
  };
51336
52363
  Relationships: [];
@@ -51561,11 +52588,15 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
51561
52588
  monteur_id: string;
51562
52589
  netto_verschil_minuten: number;
51563
52590
  normaal_uitbetaald_minuten: number;
52591
+ omgezet_vakantie_minuten: number;
52592
+ overdracht_vorige_minuten: number;
51564
52593
  overuren_minuten: number;
51565
52594
  plus_minuten: number;
52595
+ rest_overuren_minuten: number;
51566
52596
  status: string;
51567
52597
  totaal_uitbetaald_minuten: number;
51568
52598
  updated_at: string;
52599
+ vakantie_uren_bijgeschreven: number;
51569
52600
  };
51570
52601
  Insert: {
51571
52602
  afgesloten_at?: string | null;
@@ -51582,11 +52613,15 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
51582
52613
  monteur_id: string;
51583
52614
  netto_verschil_minuten?: number;
51584
52615
  normaal_uitbetaald_minuten?: number;
52616
+ omgezet_vakantie_minuten?: number;
52617
+ overdracht_vorige_minuten?: number;
51585
52618
  overuren_minuten?: number;
51586
52619
  plus_minuten?: number;
52620
+ rest_overuren_minuten?: number;
51587
52621
  status?: string;
51588
52622
  totaal_uitbetaald_minuten?: number;
51589
52623
  updated_at?: string;
52624
+ vakantie_uren_bijgeschreven?: number;
51590
52625
  };
51591
52626
  Update: {
51592
52627
  afgesloten_at?: string | null;
@@ -51603,11 +52638,15 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
51603
52638
  monteur_id?: string;
51604
52639
  netto_verschil_minuten?: number;
51605
52640
  normaal_uitbetaald_minuten?: number;
52641
+ omgezet_vakantie_minuten?: number;
52642
+ overdracht_vorige_minuten?: number;
51606
52643
  overuren_minuten?: number;
51607
52644
  plus_minuten?: number;
52645
+ rest_overuren_minuten?: number;
51608
52646
  status?: string;
51609
52647
  totaal_uitbetaald_minuten?: number;
51610
52648
  updated_at?: string;
52649
+ vakantie_uren_bijgeschreven?: number;
51611
52650
  };
51612
52651
  Relationships: [];
51613
52652
  };
@@ -52019,6 +53058,51 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
52019
53058
  referencedColumns: ["id"];
52020
53059
  }];
52021
53060
  };
53061
+ vakantie_uitbetalingen: {
53062
+ Row: {
53063
+ created_at: string;
53064
+ created_by: string | null;
53065
+ days: number;
53066
+ id: string;
53067
+ note: string | null;
53068
+ updated_at: string;
53069
+ user_id: string;
53070
+ year: number;
53071
+ };
53072
+ Insert: {
53073
+ created_at?: string;
53074
+ created_by?: string | null;
53075
+ days: number;
53076
+ id?: string;
53077
+ note?: string | null;
53078
+ updated_at?: string;
53079
+ user_id: string;
53080
+ year?: number;
53081
+ };
53082
+ Update: {
53083
+ created_at?: string;
53084
+ created_by?: string | null;
53085
+ days?: number;
53086
+ id?: string;
53087
+ note?: string | null;
53088
+ updated_at?: string;
53089
+ user_id?: string;
53090
+ year?: number;
53091
+ };
53092
+ Relationships: [{
53093
+ foreignKeyName: "vakantie_uitbetalingen_created_by_fkey";
53094
+ columns: ["created_by"];
53095
+ isOneToOne: false;
53096
+ referencedRelation: "profiles";
53097
+ referencedColumns: ["id"];
53098
+ }, {
53099
+ foreignKeyName: "vakantie_uitbetalingen_user_id_fkey";
53100
+ columns: ["user_id"];
53101
+ isOneToOne: false;
53102
+ referencedRelation: "profiles";
53103
+ referencedColumns: ["id"];
53104
+ }];
53105
+ };
52022
53106
  van_inventories: {
52023
53107
  Row: {
52024
53108
  barcode: string | null;
@@ -53303,6 +54387,78 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
53303
54387
  referencedColumns: ["id"];
53304
54388
  }];
53305
54389
  };
54390
+ werkbon_voorstellen: {
54391
+ Row: {
54392
+ bron_werkbon_id: string;
54393
+ budget_mandate_cents: number;
54394
+ created_at: string;
54395
+ created_by: string;
54396
+ customer_id: string | null;
54397
+ id: string;
54398
+ payload: import("../integrations/supabase/types").Json;
54399
+ reden: string | null;
54400
+ status: string;
54401
+ updated_at: string;
54402
+ verwerkt_door: string | null;
54403
+ verwerkt_op: string | null;
54404
+ werkbon_id: string | null;
54405
+ };
54406
+ Insert: {
54407
+ bron_werkbon_id: string;
54408
+ budget_mandate_cents?: number;
54409
+ created_at?: string;
54410
+ created_by?: string;
54411
+ customer_id?: string | null;
54412
+ id?: string;
54413
+ payload?: import("../integrations/supabase/types").Json;
54414
+ reden?: string | null;
54415
+ status?: string;
54416
+ updated_at?: string;
54417
+ verwerkt_door?: string | null;
54418
+ verwerkt_op?: string | null;
54419
+ werkbon_id?: string | null;
54420
+ };
54421
+ Update: {
54422
+ bron_werkbon_id?: string;
54423
+ budget_mandate_cents?: number;
54424
+ created_at?: string;
54425
+ created_by?: string;
54426
+ customer_id?: string | null;
54427
+ id?: string;
54428
+ payload?: import("../integrations/supabase/types").Json;
54429
+ reden?: string | null;
54430
+ status?: string;
54431
+ updated_at?: string;
54432
+ verwerkt_door?: string | null;
54433
+ verwerkt_op?: string | null;
54434
+ werkbon_id?: string | null;
54435
+ };
54436
+ Relationships: [{
54437
+ foreignKeyName: "werkbon_voorstellen_bron_werkbon_id_fkey";
54438
+ columns: ["bron_werkbon_id"];
54439
+ isOneToOne: false;
54440
+ referencedRelation: "werkbonnen";
54441
+ referencedColumns: ["id"];
54442
+ }, {
54443
+ foreignKeyName: "werkbon_voorstellen_bron_werkbon_id_fkey";
54444
+ columns: ["bron_werkbon_id"];
54445
+ isOneToOne: false;
54446
+ referencedRelation: "wo_overview";
54447
+ referencedColumns: ["id"];
54448
+ }, {
54449
+ foreignKeyName: "werkbon_voorstellen_werkbon_id_fkey";
54450
+ columns: ["werkbon_id"];
54451
+ isOneToOne: false;
54452
+ referencedRelation: "werkbonnen";
54453
+ referencedColumns: ["id"];
54454
+ }, {
54455
+ foreignKeyName: "werkbon_voorstellen_werkbon_id_fkey";
54456
+ columns: ["werkbon_id"];
54457
+ isOneToOne: false;
54458
+ referencedRelation: "wo_overview";
54459
+ referencedColumns: ["id"];
54460
+ }];
54461
+ };
53306
54462
  werkbonnen: {
53307
54463
  Row: {
53308
54464
  assigned_user_id: string | null;
@@ -54543,6 +55699,10 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
54543
55699
  };
54544
55700
  Returns: undefined;
54545
55701
  };
55702
+ _wo_is_planner: {
55703
+ Args: never;
55704
+ Returns: boolean;
55705
+ };
54546
55706
  afh_city_code: {
54547
55707
  Args: {
54548
55708
  _city: string;
@@ -55655,6 +56815,22 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
55655
56815
  };
55656
56816
  Returns: number;
55657
56817
  };
56818
+ get_product_stock: {
56819
+ Args: {
56820
+ p_product_id: string;
56821
+ };
56822
+ Returns: {
56823
+ connection_id: string;
56824
+ incoming_stock: number;
56825
+ minimum_stock: number;
56826
+ notes: string;
56827
+ physical_stock: number;
56828
+ product_id: string;
56829
+ reserved_stock: number;
56830
+ trade_item_key: string;
56831
+ updated_at: string;
56832
+ }[];
56833
+ };
55658
56834
  get_room_busy_windows: {
55659
56835
  Args: {
55660
56836
  p_from: string;
@@ -55959,13 +57135,69 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
55959
57135
  };
55960
57136
  Returns: import("../integrations/supabase/types").Json;
55961
57137
  };
57138
+ inkoop_get_supplier_request: {
57139
+ Args: {
57140
+ _token: string;
57141
+ };
57142
+ Returns: import("../integrations/supabase/types").Json;
57143
+ };
57144
+ inkoop_hash_token: {
57145
+ Args: {
57146
+ _token: string;
57147
+ };
57148
+ Returns: string;
57149
+ };
57150
+ inkoop_html_escape: {
57151
+ Args: {
57152
+ _t: string;
57153
+ };
57154
+ Returns: string;
57155
+ };
57156
+ inkoop_list_artikelen: {
57157
+ Args: never;
57158
+ Returns: {
57159
+ article_number: string;
57160
+ barcode: string;
57161
+ id: string;
57162
+ incoming_quantity: number;
57163
+ is_layer: boolean;
57164
+ location: string;
57165
+ min_quantity: number;
57166
+ preferred_supplier_name: string;
57167
+ product: string;
57168
+ product_type: string;
57169
+ purchase_price: number;
57170
+ quantity: number;
57171
+ sale_price: number;
57172
+ supplier_count: number;
57173
+ unit: string;
57174
+ }[];
57175
+ };
55962
57176
  inkoop_next_order_number: {
55963
57177
  Args: never;
55964
57178
  Returns: string;
55965
57179
  };
57180
+ inkoop_process_request: {
57181
+ Args: {
57182
+ _request_id: string;
57183
+ };
57184
+ Returns: undefined;
57185
+ };
55966
57186
  inkoop_send_order: {
55967
57187
  Args: {
57188
+ _base_url?: string;
57189
+ _order_id: string;
57190
+ };
57191
+ Returns: {
57192
+ outbox_id: string;
57193
+ supplier_name: string;
57194
+ to_address: string;
57195
+ }[];
57196
+ } | {
57197
+ Args: {
57198
+ _base_url?: string;
55968
57199
  _order_id: string;
57200
+ _resend?: boolean;
55969
57201
  };
55970
57202
  Returns: {
55971
57203
  outbox_id: string;
@@ -55973,6 +57205,33 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
55973
57205
  to_address: string;
55974
57206
  }[];
55975
57207
  };
57208
+ inkoop_set_preferred_supplier: {
57209
+ Args: {
57210
+ _product_id: string;
57211
+ _supplier_id: string;
57212
+ };
57213
+ Returns: undefined;
57214
+ };
57215
+ inkoop_stock_key: {
57216
+ Args: {
57217
+ p_product_id: string;
57218
+ };
57219
+ Returns: string;
57220
+ };
57221
+ inkoop_submit_supplier_response: {
57222
+ Args: {
57223
+ _lines: import("../integrations/supabase/types").Json;
57224
+ _note?: string;
57225
+ _token: string;
57226
+ };
57227
+ Returns: import("../integrations/supabase/types").Json;
57228
+ };
57229
+ inkoop_sync_item_stock: {
57230
+ Args: {
57231
+ p_item_id: string;
57232
+ };
57233
+ Returns: undefined;
57234
+ };
55976
57235
  instructie_get: {
55977
57236
  Args: {
55978
57237
  _sleutel: string;
@@ -55992,6 +57251,10 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
55992
57251
  };
55993
57252
  Returns: number;
55994
57253
  };
57254
+ invoice_branding_snapshot: {
57255
+ Args: never;
57256
+ Returns: import("../integrations/supabase/types").Json;
57257
+ };
55995
57258
  invoice_create_from_source: {
55996
57259
  Args: {
55997
57260
  _payload?: import("../integrations/supabase/types").Json;
@@ -56026,6 +57289,17 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
56026
57289
  };
56027
57290
  Returns: import("../integrations/supabase/types").Json;
56028
57291
  };
57292
+ invoice_mark_sent: {
57293
+ Args: {
57294
+ _invoice_id: string;
57295
+ _to: string;
57296
+ };
57297
+ Returns: undefined;
57298
+ };
57299
+ invoice_peek_next_number: {
57300
+ Args: never;
57301
+ Returns: string;
57302
+ };
56029
57303
  invoice_ready_work_orders: {
56030
57304
  Args: {
56031
57305
  _limit?: number;
@@ -56038,6 +57312,18 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
56038
57312
  };
56039
57313
  Returns: import("../integrations/supabase/types").Json;
56040
57314
  };
57315
+ invoice_save_branding_settings: {
57316
+ Args: {
57317
+ _payload: import("../integrations/supabase/types").Json;
57318
+ };
57319
+ Returns: import("../integrations/supabase/types").Json;
57320
+ };
57321
+ invoice_set_email_purpose: {
57322
+ Args: {
57323
+ _purpose: string;
57324
+ };
57325
+ Returns: string;
57326
+ };
56041
57327
  invoice_source_lines: {
56042
57328
  Args: {
56043
57329
  _source_id: string;
@@ -56045,6 +57331,19 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
56045
57331
  };
56046
57332
  Returns: import("../integrations/supabase/types").Json;
56047
57333
  };
57334
+ invoice_update_full: {
57335
+ Args: {
57336
+ _invoice_id: string;
57337
+ _payload: import("../integrations/supabase/types").Json;
57338
+ };
57339
+ Returns: import("../integrations/supabase/types").Json;
57340
+ };
57341
+ invoice_work_order_locked: {
57342
+ Args: {
57343
+ _werkbon_id: string;
57344
+ };
57345
+ Returns: import("../integrations/supabase/types").Json;
57346
+ };
56048
57347
  is_authenticated: {
56049
57348
  Args: never;
56050
57349
  Returns: boolean;
@@ -57204,6 +58503,12 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
57204
58503
  Args: never;
57205
58504
  Returns: string;
57206
58505
  };
58506
+ logistics_order_backlog_info: {
58507
+ Args: {
58508
+ p_order_id: string;
58509
+ };
58510
+ Returns: import("../integrations/supabase/types").Json;
58511
+ };
57207
58512
  logistics_order_cart_approval: {
57208
58513
  Args: {
57209
58514
  _order_ref: string;
@@ -57294,6 +58599,12 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
57294
58599
  };
57295
58600
  Returns: boolean;
57296
58601
  };
58602
+ logistics_order_is_backlog: {
58603
+ Args: {
58604
+ p_order_id: string;
58605
+ };
58606
+ Returns: boolean;
58607
+ };
57297
58608
  logistics_order_is_topick: {
57298
58609
  Args: {
57299
58610
  p_order_id: string;
@@ -57435,6 +58746,10 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
57435
58746
  shifted_count: number;
57436
58747
  }[];
57437
58748
  };
58749
+ logistics_pick_backlog_max_days: {
58750
+ Args: never;
58751
+ Returns: number;
58752
+ };
57438
58753
  logistics_pick_barcode_enabled: {
57439
58754
  Args: never;
57440
58755
  Returns: boolean;
@@ -58050,12 +59365,27 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
58050
59365
  Args: never;
58051
59366
  Returns: import("../integrations/supabase/types").Json;
58052
59367
  };
59368
+ logistics_sync_pick_queue_backlog: {
59369
+ Args: never;
59370
+ Returns: import("../integrations/supabase/types").Json;
59371
+ };
59372
+ logistics_sync_pick_queue_core: {
59373
+ Args: never;
59374
+ Returns: import("../integrations/supabase/types").Json;
59375
+ };
58053
59376
  logistics_sync_task_carriers: {
58054
59377
  Args: {
58055
59378
  p_order_ref?: string;
58056
59379
  };
58057
59380
  Returns: number;
58058
59381
  };
59382
+ logistics_task_open_counts: {
59383
+ Args: never;
59384
+ Returns: {
59385
+ open_count: number;
59386
+ owner_module: string;
59387
+ }[];
59388
+ };
58059
59389
  logistics_task_owner: {
58060
59390
  Args: {
58061
59391
  p_task_type: string;
@@ -59344,6 +60674,19 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
59344
60674
  };
59345
60675
  Returns: boolean;
59346
60676
  };
60677
+ quote_assign_number: {
60678
+ Args: {
60679
+ _offerte_id: string;
60680
+ };
60681
+ Returns: string;
60682
+ };
60683
+ quote_create_follow_up_now: {
60684
+ Args: {
60685
+ _offerte_id: string;
60686
+ _payload?: import("../integrations/supabase/types").Json;
60687
+ };
60688
+ Returns: import("../integrations/supabase/types").Json;
60689
+ };
59347
60690
  quote_create_from_source: {
59348
60691
  Args: {
59349
60692
  _payload?: import("../integrations/supabase/types").Json;
@@ -60057,6 +61400,26 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
60057
61400
  };
60058
61401
  Returns: undefined;
60059
61402
  };
61403
+ set_product_stock: {
61404
+ Args: {
61405
+ p_incoming_stock?: number;
61406
+ p_minimum_stock?: number;
61407
+ p_notes?: string;
61408
+ p_physical_stock: number;
61409
+ p_product_id: string;
61410
+ };
61411
+ Returns: {
61412
+ connection_id: string;
61413
+ incoming_stock: number;
61414
+ minimum_stock: number;
61415
+ notes: string;
61416
+ physical_stock: number;
61417
+ product_id: string;
61418
+ reserved_stock: number;
61419
+ trade_item_key: string;
61420
+ updated_at: string;
61421
+ }[];
61422
+ };
60060
61423
  show_limit: {
60061
61424
  Args: never;
60062
61425
  Returns: number;
@@ -60581,6 +61944,13 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
60581
61944
  };
60582
61945
  Returns: number;
60583
61946
  };
61947
+ vakantie_overuren: {
61948
+ Args: {
61949
+ _user_id: string;
61950
+ _year?: number;
61951
+ };
61952
+ Returns: number;
61953
+ };
60584
61954
  vakantie_saldo: {
60585
61955
  Args: {
60586
61956
  _user_id: string;
@@ -60588,7 +61958,12 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
60588
61958
  };
60589
61959
  Returns: {
60590
61960
  day_hours: number;
61961
+ earned_from_overtime_days: number;
60591
61962
  entitlement_days: number;
61963
+ hours_to_next_day: number;
61964
+ overtime_hours: number;
61965
+ overtime_remainder_hours: number;
61966
+ paid_out_days: number;
60592
61967
  remaining_days: number;
60593
61968
  used_days: number;
60594
61969
  }[];
@@ -60599,7 +61974,12 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
60599
61974
  };
60600
61975
  Returns: {
60601
61976
  day_hours: number;
61977
+ earned_from_overtime_days: number;
60602
61978
  entitlement_days: number;
61979
+ hours_to_next_day: number;
61980
+ overtime_hours: number;
61981
+ overtime_remainder_hours: number;
61982
+ paid_out_days: number;
60603
61983
  remaining_days: number;
60604
61984
  used_days: number;
60605
61985
  user_id: string;
@@ -60653,12 +62033,25 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
60653
62033
  };
60654
62034
  Returns: import("../integrations/supabase/types").Json;
60655
62035
  };
62036
+ wo_list_proposals: {
62037
+ Args: {
62038
+ _status?: string;
62039
+ };
62040
+ Returns: import("../integrations/supabase/types").Json;
62041
+ };
60656
62042
  wo_process_offerte_request: {
60657
62043
  Args: {
60658
62044
  _queue_id: string;
60659
62045
  };
60660
62046
  Returns: import("../integrations/supabase/types").Json;
60661
62047
  };
62048
+ wo_process_proposal: {
62049
+ Args: {
62050
+ _id: string;
62051
+ _overrides?: import("../integrations/supabase/types").Json;
62052
+ };
62053
+ Returns: import("../integrations/supabase/types").Json;
62054
+ };
60662
62055
  wo_reject_offerte_request: {
60663
62056
  Args: {
60664
62057
  _queue_id: string;
@@ -60666,6 +62059,13 @@ export declare const updateTradeItemFn: import("@tanstack/start-client-core").Re
60666
62059
  };
60667
62060
  Returns: import("../integrations/supabase/types").Json;
60668
62061
  };
62062
+ wo_reject_proposal: {
62063
+ Args: {
62064
+ _id: string;
62065
+ _reden?: string;
62066
+ };
62067
+ Returns: import("../integrations/supabase/types").Json;
62068
+ };
60669
62069
  wo_set_status: {
60670
62070
  Args: {
60671
62071
  _reason?: string;