@flowselections/floriday-voorraad 1.0.48 → 1.0.49

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 (46) 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 +32 -0
  8. package/dist-lib/components/voorraad/StockMutationHistoryCard.d.ts.map +1 -1
  9. package/dist-lib/components/voorraad/StockMutationHistoryCard.js +2 -1
  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 +340 -0
  19. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  20. package/dist-lib/integrations/supabase/client.d.ts +340 -0
  21. package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
  22. package/dist-lib/integrations/supabase/client.server.d.ts +340 -0
  23. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  24. package/dist-lib/integrations/supabase/types.d.ts +348 -0
  25. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  26. package/dist-lib/lib/floricode-required-features.functions.d.ts +340 -0
  27. package/dist-lib/lib/floricode-required-features.functions.d.ts.map +1 -1
  28. package/dist-lib/lib/floriday-customer-offer.functions.d.ts +340 -0
  29. package/dist-lib/lib/floriday-customer-offer.functions.d.ts.map +1 -1
  30. package/dist-lib/lib/floriday-env.functions.d.ts +680 -0
  31. package/dist-lib/lib/floriday-env.functions.d.ts.map +1 -1
  32. package/dist-lib/lib/floriday-gateway.functions.d.ts +2040 -0
  33. package/dist-lib/lib/floriday-gateway.functions.d.ts.map +1 -1
  34. package/dist-lib/lib/floriday-vbn-required.functions.d.ts +680 -0
  35. package/dist-lib/lib/floriday-vbn-required.functions.d.ts.map +1 -1
  36. package/dist-lib/lib/floriday-warehouse.functions.d.ts +1020 -0
  37. package/dist-lib/lib/floriday-warehouse.functions.d.ts.map +1 -1
  38. package/dist-lib/lib/floriday-writes.functions.d.ts +680 -0
  39. package/dist-lib/lib/floriday-writes.functions.d.ts.map +1 -1
  40. package/dist-lib/lib/inventory-settings.functions.d.ts +680 -0
  41. package/dist-lib/lib/inventory-settings.functions.d.ts.map +1 -1
  42. package/dist-lib/lib/product-packing.d.ts.map +1 -1
  43. package/dist-lib/lib/product-packing.js +10 -4
  44. package/dist-lib/lib/stock-sync.functions.d.ts +680 -0
  45. package/dist-lib/lib/stock-sync.functions.d.ts.map +1 -1
  46. package/package.json +1 -1
@@ -8263,6 +8263,69 @@ export declare const retryFailedStockSync: import("@tanstack/start-client-core")
8263
8263
  };
8264
8264
  Relationships: [];
8265
8265
  };
8266
+ invoice_branding_settings: {
8267
+ Row: {
8268
+ address: string;
8269
+ chamber_of_commerce_number: string;
8270
+ city: string;
8271
+ company_name: string;
8272
+ created_at: string;
8273
+ email: string;
8274
+ email_purpose: string | null;
8275
+ iban: string;
8276
+ logo_path: string | null;
8277
+ payment_term_days: number;
8278
+ phone: string;
8279
+ postal_code: string;
8280
+ primary_color: string;
8281
+ secondary_color: string;
8282
+ singleton_key: boolean;
8283
+ updated_at: string;
8284
+ vat_identification_number: string;
8285
+ website: string;
8286
+ };
8287
+ Insert: {
8288
+ address?: string;
8289
+ chamber_of_commerce_number?: string;
8290
+ city?: string;
8291
+ company_name?: string;
8292
+ created_at?: string;
8293
+ email?: string;
8294
+ email_purpose?: string | null;
8295
+ iban?: string;
8296
+ logo_path?: string | null;
8297
+ payment_term_days?: number;
8298
+ phone?: string;
8299
+ postal_code?: string;
8300
+ primary_color?: string;
8301
+ secondary_color?: string;
8302
+ singleton_key?: boolean;
8303
+ updated_at?: string;
8304
+ vat_identification_number?: string;
8305
+ website?: string;
8306
+ };
8307
+ Update: {
8308
+ address?: string;
8309
+ chamber_of_commerce_number?: string;
8310
+ city?: string;
8311
+ company_name?: string;
8312
+ created_at?: string;
8313
+ email?: string;
8314
+ email_purpose?: string | null;
8315
+ iban?: string;
8316
+ logo_path?: string | null;
8317
+ payment_term_days?: number;
8318
+ phone?: string;
8319
+ postal_code?: string;
8320
+ primary_color?: string;
8321
+ secondary_color?: string;
8322
+ singleton_key?: boolean;
8323
+ updated_at?: string;
8324
+ vat_identification_number?: string;
8325
+ website?: string;
8326
+ };
8327
+ Relationships: [];
8328
+ };
8266
8329
  invoice_items: {
8267
8330
  Row: {
8268
8331
  created_at: string;
@@ -8276,6 +8339,7 @@ export declare const retryFailedStockSync: import("@tanstack/start-client-core")
8276
8339
  total_cents: number;
8277
8340
  unit: string;
8278
8341
  unit_price_cents: number;
8342
+ vat_rate: number | null;
8279
8343
  };
8280
8344
  Insert: {
8281
8345
  created_at?: string;
@@ -8289,6 +8353,7 @@ export declare const retryFailedStockSync: import("@tanstack/start-client-core")
8289
8353
  total_cents?: number;
8290
8354
  unit?: string;
8291
8355
  unit_price_cents?: number;
8356
+ vat_rate?: number | null;
8292
8357
  };
8293
8358
  Update: {
8294
8359
  created_at?: string;
@@ -8302,6 +8367,7 @@ export declare const retryFailedStockSync: import("@tanstack/start-client-core")
8302
8367
  total_cents?: number;
8303
8368
  unit?: string;
8304
8369
  unit_price_cents?: number;
8370
+ vat_rate?: number | null;
8305
8371
  };
8306
8372
  Relationships: [{
8307
8373
  foreignKeyName: "invoice_items_invoice_id_fkey";
@@ -8547,6 +8613,7 @@ export declare const retryFailedStockSync: import("@tanstack/start-client-core")
8547
8613
  };
8548
8614
  invoices: {
8549
8615
  Row: {
8616
+ branding_snapshot: import("../integrations/supabase/types").Json | null;
8550
8617
  created_at: string;
8551
8618
  created_by: string | null;
8552
8619
  customer_address: string | null;
@@ -8565,6 +8632,8 @@ export declare const retryFailedStockSync: import("@tanstack/start-client-core")
8565
8632
  note: string | null;
8566
8633
  payment_term_days: number;
8567
8634
  reference: string | null;
8635
+ sent_at: string | null;
8636
+ sent_to: string | null;
8568
8637
  source_number: string | null;
8569
8638
  source_ref: string | null;
8570
8639
  source_type: string;
@@ -8577,6 +8646,7 @@ export declare const retryFailedStockSync: import("@tanstack/start-client-core")
8577
8646
  work_address: string | null;
8578
8647
  };
8579
8648
  Insert: {
8649
+ branding_snapshot?: import("../integrations/supabase/types").Json | null;
8580
8650
  created_at?: string;
8581
8651
  created_by?: string | null;
8582
8652
  customer_address?: string | null;
@@ -8595,6 +8665,8 @@ export declare const retryFailedStockSync: import("@tanstack/start-client-core")
8595
8665
  note?: string | null;
8596
8666
  payment_term_days?: number;
8597
8667
  reference?: string | null;
8668
+ sent_at?: string | null;
8669
+ sent_to?: string | null;
8598
8670
  source_number?: string | null;
8599
8671
  source_ref?: string | null;
8600
8672
  source_type?: string;
@@ -8607,6 +8679,7 @@ export declare const retryFailedStockSync: import("@tanstack/start-client-core")
8607
8679
  work_address?: string | null;
8608
8680
  };
8609
8681
  Update: {
8682
+ branding_snapshot?: import("../integrations/supabase/types").Json | null;
8610
8683
  created_at?: string;
8611
8684
  created_by?: string | null;
8612
8685
  customer_address?: string | null;
@@ -8625,6 +8698,8 @@ export declare const retryFailedStockSync: import("@tanstack/start-client-core")
8625
8698
  note?: string | null;
8626
8699
  payment_term_days?: number;
8627
8700
  reference?: string | null;
8701
+ sent_at?: string | null;
8702
+ sent_to?: string | null;
8628
8703
  source_number?: string | null;
8629
8704
  source_ref?: string | null;
8630
8705
  source_type?: string;
@@ -9333,6 +9408,7 @@ export declare const retryFailedStockSync: import("@tanstack/start-client-core")
9333
9408
  quantity: number;
9334
9409
  sort_order: number;
9335
9410
  source: string;
9411
+ unit: string | null;
9336
9412
  unit_price_cents: number;
9337
9413
  updated_at: string;
9338
9414
  };
@@ -9346,6 +9422,7 @@ export declare const retryFailedStockSync: import("@tanstack/start-client-core")
9346
9422
  quantity?: number;
9347
9423
  sort_order?: number;
9348
9424
  source?: string;
9425
+ unit?: string | null;
9349
9426
  unit_price_cents?: number;
9350
9427
  updated_at?: string;
9351
9428
  };
@@ -9359,6 +9436,7 @@ export declare const retryFailedStockSync: import("@tanstack/start-client-core")
9359
9436
  quantity?: number;
9360
9437
  sort_order?: number;
9361
9438
  source?: string;
9439
+ unit?: string | null;
9362
9440
  unit_price_cents?: number;
9363
9441
  updated_at?: string;
9364
9442
  };
@@ -9382,6 +9460,7 @@ export declare const retryFailedStockSync: import("@tanstack/start-client-core")
9382
9460
  created_at: string;
9383
9461
  default_geldigheid_dagen: number;
9384
9462
  default_vat_rate: number;
9463
+ email_purpose: string | null;
9385
9464
  id: string;
9386
9465
  singleton: boolean;
9387
9466
  updated_at: string;
@@ -9391,6 +9470,7 @@ export declare const retryFailedStockSync: import("@tanstack/start-client-core")
9391
9470
  created_at?: string;
9392
9471
  default_geldigheid_dagen?: number;
9393
9472
  default_vat_rate?: number;
9473
+ email_purpose?: string | null;
9394
9474
  id?: string;
9395
9475
  singleton?: boolean;
9396
9476
  updated_at?: string;
@@ -9400,6 +9480,7 @@ export declare const retryFailedStockSync: import("@tanstack/start-client-core")
9400
9480
  created_at?: string;
9401
9481
  default_geldigheid_dagen?: number;
9402
9482
  default_vat_rate?: number;
9483
+ email_purpose?: string | null;
9403
9484
  id?: string;
9404
9485
  singleton?: boolean;
9405
9486
  updated_at?: string;
@@ -9492,6 +9573,7 @@ export declare const retryFailedStockSync: import("@tanstack/start-client-core")
9492
9573
  };
9493
9574
  itk_offertes: {
9494
9575
  Row: {
9576
+ aandachtspunten: string | null;
9495
9577
  ai_generated: boolean;
9496
9578
  approved_at: string | null;
9497
9579
  binnen_mandaat: boolean;
@@ -9507,6 +9589,7 @@ export declare const retryFailedStockSync: import("@tanstack/start-client-core")
9507
9589
  notities: string | null;
9508
9590
  offerte_number: string | null;
9509
9591
  omschrijving: string;
9592
+ onderwerp: string | null;
9510
9593
  rejected_at: string | null;
9511
9594
  sent_at: string | null;
9512
9595
  source_number: string | null;
@@ -9519,12 +9602,15 @@ export declare const retryFailedStockSync: import("@tanstack/start-client-core")
9519
9602
  valid_until: string | null;
9520
9603
  vat_cents: number;
9521
9604
  vat_rate: number;
9605
+ verzonden_naar: string | null;
9522
9606
  viewed_at: string | null;
9523
9607
  volgnummer: number | null;
9608
+ voorwaarden: string | null;
9524
9609
  werkbon_id: string | null;
9525
9610
  work_location_id: string | null;
9526
9611
  };
9527
9612
  Insert: {
9613
+ aandachtspunten?: string | null;
9528
9614
  ai_generated?: boolean;
9529
9615
  approved_at?: string | null;
9530
9616
  binnen_mandaat?: boolean;
@@ -9540,6 +9626,7 @@ export declare const retryFailedStockSync: import("@tanstack/start-client-core")
9540
9626
  notities?: string | null;
9541
9627
  offerte_number?: string | null;
9542
9628
  omschrijving?: string;
9629
+ onderwerp?: string | null;
9543
9630
  rejected_at?: string | null;
9544
9631
  sent_at?: string | null;
9545
9632
  source_number?: string | null;
@@ -9552,12 +9639,15 @@ export declare const retryFailedStockSync: import("@tanstack/start-client-core")
9552
9639
  valid_until?: string | null;
9553
9640
  vat_cents?: number;
9554
9641
  vat_rate?: number;
9642
+ verzonden_naar?: string | null;
9555
9643
  viewed_at?: string | null;
9556
9644
  volgnummer?: number | null;
9645
+ voorwaarden?: string | null;
9557
9646
  werkbon_id?: string | null;
9558
9647
  work_location_id?: string | null;
9559
9648
  };
9560
9649
  Update: {
9650
+ aandachtspunten?: string | null;
9561
9651
  ai_generated?: boolean;
9562
9652
  approved_at?: string | null;
9563
9653
  binnen_mandaat?: boolean;
@@ -9573,6 +9663,7 @@ export declare const retryFailedStockSync: import("@tanstack/start-client-core")
9573
9663
  notities?: string | null;
9574
9664
  offerte_number?: string | null;
9575
9665
  omschrijving?: string;
9666
+ onderwerp?: string | null;
9576
9667
  rejected_at?: string | null;
9577
9668
  sent_at?: string | null;
9578
9669
  source_number?: string | null;
@@ -9585,8 +9676,10 @@ export declare const retryFailedStockSync: import("@tanstack/start-client-core")
9585
9676
  valid_until?: string | null;
9586
9677
  vat_cents?: number;
9587
9678
  vat_rate?: number;
9679
+ verzonden_naar?: string | null;
9588
9680
  viewed_at?: string | null;
9589
9681
  volgnummer?: number | null;
9682
+ voorwaarden?: string | null;
9590
9683
  werkbon_id?: string | null;
9591
9684
  work_location_id?: string | null;
9592
9685
  };
@@ -21664,6 +21757,51 @@ export declare const retryFailedStockSync: import("@tanstack/start-client-core")
21664
21757
  referencedColumns: ["id"];
21665
21758
  }];
21666
21759
  };
21760
+ vakantie_uitbetalingen: {
21761
+ Row: {
21762
+ created_at: string;
21763
+ created_by: string | null;
21764
+ days: number;
21765
+ id: string;
21766
+ note: string | null;
21767
+ updated_at: string;
21768
+ user_id: string;
21769
+ year: number;
21770
+ };
21771
+ Insert: {
21772
+ created_at?: string;
21773
+ created_by?: string | null;
21774
+ days: number;
21775
+ id?: string;
21776
+ note?: string | null;
21777
+ updated_at?: string;
21778
+ user_id: string;
21779
+ year?: number;
21780
+ };
21781
+ Update: {
21782
+ created_at?: string;
21783
+ created_by?: string | null;
21784
+ days?: number;
21785
+ id?: string;
21786
+ note?: string | null;
21787
+ updated_at?: string;
21788
+ user_id?: string;
21789
+ year?: number;
21790
+ };
21791
+ Relationships: [{
21792
+ foreignKeyName: "vakantie_uitbetalingen_created_by_fkey";
21793
+ columns: ["created_by"];
21794
+ isOneToOne: false;
21795
+ referencedRelation: "profiles";
21796
+ referencedColumns: ["id"];
21797
+ }, {
21798
+ foreignKeyName: "vakantie_uitbetalingen_user_id_fkey";
21799
+ columns: ["user_id"];
21800
+ isOneToOne: false;
21801
+ referencedRelation: "profiles";
21802
+ referencedColumns: ["id"];
21803
+ }];
21804
+ };
21667
21805
  van_inventories: {
21668
21806
  Row: {
21669
21807
  barcode: string | null;
@@ -22948,6 +23086,78 @@ export declare const retryFailedStockSync: import("@tanstack/start-client-core")
22948
23086
  referencedColumns: ["id"];
22949
23087
  }];
22950
23088
  };
23089
+ werkbon_voorstellen: {
23090
+ Row: {
23091
+ bron_werkbon_id: string;
23092
+ budget_mandate_cents: number;
23093
+ created_at: string;
23094
+ created_by: string;
23095
+ customer_id: string | null;
23096
+ id: string;
23097
+ payload: import("../integrations/supabase/types").Json;
23098
+ reden: string | null;
23099
+ status: string;
23100
+ updated_at: string;
23101
+ verwerkt_door: string | null;
23102
+ verwerkt_op: string | null;
23103
+ werkbon_id: string | null;
23104
+ };
23105
+ Insert: {
23106
+ bron_werkbon_id: string;
23107
+ budget_mandate_cents?: number;
23108
+ created_at?: string;
23109
+ created_by?: string;
23110
+ customer_id?: string | null;
23111
+ id?: string;
23112
+ payload?: import("../integrations/supabase/types").Json;
23113
+ reden?: string | null;
23114
+ status?: string;
23115
+ updated_at?: string;
23116
+ verwerkt_door?: string | null;
23117
+ verwerkt_op?: string | null;
23118
+ werkbon_id?: string | null;
23119
+ };
23120
+ Update: {
23121
+ bron_werkbon_id?: string;
23122
+ budget_mandate_cents?: number;
23123
+ created_at?: string;
23124
+ created_by?: string;
23125
+ customer_id?: string | null;
23126
+ id?: string;
23127
+ payload?: import("../integrations/supabase/types").Json;
23128
+ reden?: string | null;
23129
+ status?: string;
23130
+ updated_at?: string;
23131
+ verwerkt_door?: string | null;
23132
+ verwerkt_op?: string | null;
23133
+ werkbon_id?: string | null;
23134
+ };
23135
+ Relationships: [{
23136
+ foreignKeyName: "werkbon_voorstellen_bron_werkbon_id_fkey";
23137
+ columns: ["bron_werkbon_id"];
23138
+ isOneToOne: false;
23139
+ referencedRelation: "werkbonnen";
23140
+ referencedColumns: ["id"];
23141
+ }, {
23142
+ foreignKeyName: "werkbon_voorstellen_bron_werkbon_id_fkey";
23143
+ columns: ["bron_werkbon_id"];
23144
+ isOneToOne: false;
23145
+ referencedRelation: "wo_overview";
23146
+ referencedColumns: ["id"];
23147
+ }, {
23148
+ foreignKeyName: "werkbon_voorstellen_werkbon_id_fkey";
23149
+ columns: ["werkbon_id"];
23150
+ isOneToOne: false;
23151
+ referencedRelation: "werkbonnen";
23152
+ referencedColumns: ["id"];
23153
+ }, {
23154
+ foreignKeyName: "werkbon_voorstellen_werkbon_id_fkey";
23155
+ columns: ["werkbon_id"];
23156
+ isOneToOne: false;
23157
+ referencedRelation: "wo_overview";
23158
+ referencedColumns: ["id"];
23159
+ }];
23160
+ };
22951
23161
  werkbonnen: {
22952
23162
  Row: {
22953
23163
  assigned_user_id: string | null;
@@ -24188,6 +24398,10 @@ export declare const retryFailedStockSync: import("@tanstack/start-client-core")
24188
24398
  };
24189
24399
  Returns: undefined;
24190
24400
  };
24401
+ _wo_is_planner: {
24402
+ Args: never;
24403
+ Returns: boolean;
24404
+ };
24191
24405
  afh_city_code: {
24192
24406
  Args: {
24193
24407
  _city: string;
@@ -25300,6 +25514,22 @@ export declare const retryFailedStockSync: import("@tanstack/start-client-core")
25300
25514
  };
25301
25515
  Returns: number;
25302
25516
  };
25517
+ get_product_stock: {
25518
+ Args: {
25519
+ p_product_id: string;
25520
+ };
25521
+ Returns: {
25522
+ connection_id: string;
25523
+ incoming_stock: number;
25524
+ minimum_stock: number;
25525
+ notes: string;
25526
+ physical_stock: number;
25527
+ product_id: string;
25528
+ reserved_stock: number;
25529
+ trade_item_key: string;
25530
+ updated_at: string;
25531
+ }[];
25532
+ };
25303
25533
  get_room_busy_windows: {
25304
25534
  Args: {
25305
25535
  p_from: string;
@@ -25637,6 +25867,10 @@ export declare const retryFailedStockSync: import("@tanstack/start-client-core")
25637
25867
  };
25638
25868
  Returns: number;
25639
25869
  };
25870
+ invoice_branding_snapshot: {
25871
+ Args: never;
25872
+ Returns: import("../integrations/supabase/types").Json;
25873
+ };
25640
25874
  invoice_create_from_source: {
25641
25875
  Args: {
25642
25876
  _payload?: import("../integrations/supabase/types").Json;
@@ -25671,6 +25905,17 @@ export declare const retryFailedStockSync: import("@tanstack/start-client-core")
25671
25905
  };
25672
25906
  Returns: import("../integrations/supabase/types").Json;
25673
25907
  };
25908
+ invoice_mark_sent: {
25909
+ Args: {
25910
+ _invoice_id: string;
25911
+ _to: string;
25912
+ };
25913
+ Returns: undefined;
25914
+ };
25915
+ invoice_peek_next_number: {
25916
+ Args: never;
25917
+ Returns: string;
25918
+ };
25674
25919
  invoice_ready_work_orders: {
25675
25920
  Args: {
25676
25921
  _limit?: number;
@@ -25683,6 +25928,18 @@ export declare const retryFailedStockSync: import("@tanstack/start-client-core")
25683
25928
  };
25684
25929
  Returns: import("../integrations/supabase/types").Json;
25685
25930
  };
25931
+ invoice_save_branding_settings: {
25932
+ Args: {
25933
+ _payload: import("../integrations/supabase/types").Json;
25934
+ };
25935
+ Returns: import("../integrations/supabase/types").Json;
25936
+ };
25937
+ invoice_set_email_purpose: {
25938
+ Args: {
25939
+ _purpose: string;
25940
+ };
25941
+ Returns: string;
25942
+ };
25686
25943
  invoice_source_lines: {
25687
25944
  Args: {
25688
25945
  _source_id: string;
@@ -25690,6 +25947,19 @@ export declare const retryFailedStockSync: import("@tanstack/start-client-core")
25690
25947
  };
25691
25948
  Returns: import("../integrations/supabase/types").Json;
25692
25949
  };
25950
+ invoice_update_full: {
25951
+ Args: {
25952
+ _invoice_id: string;
25953
+ _payload: import("../integrations/supabase/types").Json;
25954
+ };
25955
+ Returns: import("../integrations/supabase/types").Json;
25956
+ };
25957
+ invoice_work_order_locked: {
25958
+ Args: {
25959
+ _werkbon_id: string;
25960
+ };
25961
+ Returns: import("../integrations/supabase/types").Json;
25962
+ };
25693
25963
  is_authenticated: {
25694
25964
  Args: never;
25695
25965
  Returns: boolean;
@@ -28989,6 +29259,19 @@ export declare const retryFailedStockSync: import("@tanstack/start-client-core")
28989
29259
  };
28990
29260
  Returns: boolean;
28991
29261
  };
29262
+ quote_assign_number: {
29263
+ Args: {
29264
+ _offerte_id: string;
29265
+ };
29266
+ Returns: string;
29267
+ };
29268
+ quote_create_follow_up_now: {
29269
+ Args: {
29270
+ _offerte_id: string;
29271
+ _payload?: import("../integrations/supabase/types").Json;
29272
+ };
29273
+ Returns: import("../integrations/supabase/types").Json;
29274
+ };
28992
29275
  quote_create_from_source: {
28993
29276
  Args: {
28994
29277
  _payload?: import("../integrations/supabase/types").Json;
@@ -29702,6 +29985,26 @@ export declare const retryFailedStockSync: import("@tanstack/start-client-core")
29702
29985
  };
29703
29986
  Returns: undefined;
29704
29987
  };
29988
+ set_product_stock: {
29989
+ Args: {
29990
+ p_incoming_stock?: number;
29991
+ p_minimum_stock?: number;
29992
+ p_notes?: string;
29993
+ p_physical_stock: number;
29994
+ p_product_id: string;
29995
+ };
29996
+ Returns: {
29997
+ connection_id: string;
29998
+ incoming_stock: number;
29999
+ minimum_stock: number;
30000
+ notes: string;
30001
+ physical_stock: number;
30002
+ product_id: string;
30003
+ reserved_stock: number;
30004
+ trade_item_key: string;
30005
+ updated_at: string;
30006
+ }[];
30007
+ };
29705
30008
  show_limit: {
29706
30009
  Args: never;
29707
30010
  Returns: number;
@@ -30226,6 +30529,13 @@ export declare const retryFailedStockSync: import("@tanstack/start-client-core")
30226
30529
  };
30227
30530
  Returns: number;
30228
30531
  };
30532
+ vakantie_overuren: {
30533
+ Args: {
30534
+ _user_id: string;
30535
+ _year?: number;
30536
+ };
30537
+ Returns: number;
30538
+ };
30229
30539
  vakantie_saldo: {
30230
30540
  Args: {
30231
30541
  _user_id: string;
@@ -30233,7 +30543,12 @@ export declare const retryFailedStockSync: import("@tanstack/start-client-core")
30233
30543
  };
30234
30544
  Returns: {
30235
30545
  day_hours: number;
30546
+ earned_from_overtime_days: number;
30236
30547
  entitlement_days: number;
30548
+ hours_to_next_day: number;
30549
+ overtime_hours: number;
30550
+ overtime_remainder_hours: number;
30551
+ paid_out_days: number;
30237
30552
  remaining_days: number;
30238
30553
  used_days: number;
30239
30554
  }[];
@@ -30244,7 +30559,12 @@ export declare const retryFailedStockSync: import("@tanstack/start-client-core")
30244
30559
  };
30245
30560
  Returns: {
30246
30561
  day_hours: number;
30562
+ earned_from_overtime_days: number;
30247
30563
  entitlement_days: number;
30564
+ hours_to_next_day: number;
30565
+ overtime_hours: number;
30566
+ overtime_remainder_hours: number;
30567
+ paid_out_days: number;
30248
30568
  remaining_days: number;
30249
30569
  used_days: number;
30250
30570
  user_id: string;
@@ -30298,12 +30618,25 @@ export declare const retryFailedStockSync: import("@tanstack/start-client-core")
30298
30618
  };
30299
30619
  Returns: import("../integrations/supabase/types").Json;
30300
30620
  };
30621
+ wo_list_proposals: {
30622
+ Args: {
30623
+ _status?: string;
30624
+ };
30625
+ Returns: import("../integrations/supabase/types").Json;
30626
+ };
30301
30627
  wo_process_offerte_request: {
30302
30628
  Args: {
30303
30629
  _queue_id: string;
30304
30630
  };
30305
30631
  Returns: import("../integrations/supabase/types").Json;
30306
30632
  };
30633
+ wo_process_proposal: {
30634
+ Args: {
30635
+ _id: string;
30636
+ _overrides?: import("../integrations/supabase/types").Json;
30637
+ };
30638
+ Returns: import("../integrations/supabase/types").Json;
30639
+ };
30307
30640
  wo_reject_offerte_request: {
30308
30641
  Args: {
30309
30642
  _queue_id: string;
@@ -30311,6 +30644,13 @@ export declare const retryFailedStockSync: import("@tanstack/start-client-core")
30311
30644
  };
30312
30645
  Returns: import("../integrations/supabase/types").Json;
30313
30646
  };
30647
+ wo_reject_proposal: {
30648
+ Args: {
30649
+ _id: string;
30650
+ _reden?: string;
30651
+ };
30652
+ Returns: import("../integrations/supabase/types").Json;
30653
+ };
30314
30654
  wo_set_status: {
30315
30655
  Args: {
30316
30656
  _reason?: string;
@@ -38614,6 +38954,69 @@ export declare const enqueueTestStockPush: import("@tanstack/start-client-core")
38614
38954
  };
38615
38955
  Relationships: [];
38616
38956
  };
38957
+ invoice_branding_settings: {
38958
+ Row: {
38959
+ address: string;
38960
+ chamber_of_commerce_number: string;
38961
+ city: string;
38962
+ company_name: string;
38963
+ created_at: string;
38964
+ email: string;
38965
+ email_purpose: string | null;
38966
+ iban: string;
38967
+ logo_path: string | null;
38968
+ payment_term_days: number;
38969
+ phone: string;
38970
+ postal_code: string;
38971
+ primary_color: string;
38972
+ secondary_color: string;
38973
+ singleton_key: boolean;
38974
+ updated_at: string;
38975
+ vat_identification_number: string;
38976
+ website: string;
38977
+ };
38978
+ Insert: {
38979
+ address?: string;
38980
+ chamber_of_commerce_number?: string;
38981
+ city?: string;
38982
+ company_name?: string;
38983
+ created_at?: string;
38984
+ email?: string;
38985
+ email_purpose?: string | null;
38986
+ iban?: string;
38987
+ logo_path?: string | null;
38988
+ payment_term_days?: number;
38989
+ phone?: string;
38990
+ postal_code?: string;
38991
+ primary_color?: string;
38992
+ secondary_color?: string;
38993
+ singleton_key?: boolean;
38994
+ updated_at?: string;
38995
+ vat_identification_number?: string;
38996
+ website?: string;
38997
+ };
38998
+ Update: {
38999
+ address?: string;
39000
+ chamber_of_commerce_number?: string;
39001
+ city?: string;
39002
+ company_name?: string;
39003
+ created_at?: string;
39004
+ email?: string;
39005
+ email_purpose?: string | null;
39006
+ iban?: string;
39007
+ logo_path?: string | null;
39008
+ payment_term_days?: number;
39009
+ phone?: string;
39010
+ postal_code?: string;
39011
+ primary_color?: string;
39012
+ secondary_color?: string;
39013
+ singleton_key?: boolean;
39014
+ updated_at?: string;
39015
+ vat_identification_number?: string;
39016
+ website?: string;
39017
+ };
39018
+ Relationships: [];
39019
+ };
38617
39020
  invoice_items: {
38618
39021
  Row: {
38619
39022
  created_at: string;
@@ -38627,6 +39030,7 @@ export declare const enqueueTestStockPush: import("@tanstack/start-client-core")
38627
39030
  total_cents: number;
38628
39031
  unit: string;
38629
39032
  unit_price_cents: number;
39033
+ vat_rate: number | null;
38630
39034
  };
38631
39035
  Insert: {
38632
39036
  created_at?: string;
@@ -38640,6 +39044,7 @@ export declare const enqueueTestStockPush: import("@tanstack/start-client-core")
38640
39044
  total_cents?: number;
38641
39045
  unit?: string;
38642
39046
  unit_price_cents?: number;
39047
+ vat_rate?: number | null;
38643
39048
  };
38644
39049
  Update: {
38645
39050
  created_at?: string;
@@ -38653,6 +39058,7 @@ export declare const enqueueTestStockPush: import("@tanstack/start-client-core")
38653
39058
  total_cents?: number;
38654
39059
  unit?: string;
38655
39060
  unit_price_cents?: number;
39061
+ vat_rate?: number | null;
38656
39062
  };
38657
39063
  Relationships: [{
38658
39064
  foreignKeyName: "invoice_items_invoice_id_fkey";
@@ -38898,6 +39304,7 @@ export declare const enqueueTestStockPush: import("@tanstack/start-client-core")
38898
39304
  };
38899
39305
  invoices: {
38900
39306
  Row: {
39307
+ branding_snapshot: import("../integrations/supabase/types").Json | null;
38901
39308
  created_at: string;
38902
39309
  created_by: string | null;
38903
39310
  customer_address: string | null;
@@ -38916,6 +39323,8 @@ export declare const enqueueTestStockPush: import("@tanstack/start-client-core")
38916
39323
  note: string | null;
38917
39324
  payment_term_days: number;
38918
39325
  reference: string | null;
39326
+ sent_at: string | null;
39327
+ sent_to: string | null;
38919
39328
  source_number: string | null;
38920
39329
  source_ref: string | null;
38921
39330
  source_type: string;
@@ -38928,6 +39337,7 @@ export declare const enqueueTestStockPush: import("@tanstack/start-client-core")
38928
39337
  work_address: string | null;
38929
39338
  };
38930
39339
  Insert: {
39340
+ branding_snapshot?: import("../integrations/supabase/types").Json | null;
38931
39341
  created_at?: string;
38932
39342
  created_by?: string | null;
38933
39343
  customer_address?: string | null;
@@ -38946,6 +39356,8 @@ export declare const enqueueTestStockPush: import("@tanstack/start-client-core")
38946
39356
  note?: string | null;
38947
39357
  payment_term_days?: number;
38948
39358
  reference?: string | null;
39359
+ sent_at?: string | null;
39360
+ sent_to?: string | null;
38949
39361
  source_number?: string | null;
38950
39362
  source_ref?: string | null;
38951
39363
  source_type?: string;
@@ -38958,6 +39370,7 @@ export declare const enqueueTestStockPush: import("@tanstack/start-client-core")
38958
39370
  work_address?: string | null;
38959
39371
  };
38960
39372
  Update: {
39373
+ branding_snapshot?: import("../integrations/supabase/types").Json | null;
38961
39374
  created_at?: string;
38962
39375
  created_by?: string | null;
38963
39376
  customer_address?: string | null;
@@ -38976,6 +39389,8 @@ export declare const enqueueTestStockPush: import("@tanstack/start-client-core")
38976
39389
  note?: string | null;
38977
39390
  payment_term_days?: number;
38978
39391
  reference?: string | null;
39392
+ sent_at?: string | null;
39393
+ sent_to?: string | null;
38979
39394
  source_number?: string | null;
38980
39395
  source_ref?: string | null;
38981
39396
  source_type?: string;
@@ -39684,6 +40099,7 @@ export declare const enqueueTestStockPush: import("@tanstack/start-client-core")
39684
40099
  quantity: number;
39685
40100
  sort_order: number;
39686
40101
  source: string;
40102
+ unit: string | null;
39687
40103
  unit_price_cents: number;
39688
40104
  updated_at: string;
39689
40105
  };
@@ -39697,6 +40113,7 @@ export declare const enqueueTestStockPush: import("@tanstack/start-client-core")
39697
40113
  quantity?: number;
39698
40114
  sort_order?: number;
39699
40115
  source?: string;
40116
+ unit?: string | null;
39700
40117
  unit_price_cents?: number;
39701
40118
  updated_at?: string;
39702
40119
  };
@@ -39710,6 +40127,7 @@ export declare const enqueueTestStockPush: import("@tanstack/start-client-core")
39710
40127
  quantity?: number;
39711
40128
  sort_order?: number;
39712
40129
  source?: string;
40130
+ unit?: string | null;
39713
40131
  unit_price_cents?: number;
39714
40132
  updated_at?: string;
39715
40133
  };
@@ -39733,6 +40151,7 @@ export declare const enqueueTestStockPush: import("@tanstack/start-client-core")
39733
40151
  created_at: string;
39734
40152
  default_geldigheid_dagen: number;
39735
40153
  default_vat_rate: number;
40154
+ email_purpose: string | null;
39736
40155
  id: string;
39737
40156
  singleton: boolean;
39738
40157
  updated_at: string;
@@ -39742,6 +40161,7 @@ export declare const enqueueTestStockPush: import("@tanstack/start-client-core")
39742
40161
  created_at?: string;
39743
40162
  default_geldigheid_dagen?: number;
39744
40163
  default_vat_rate?: number;
40164
+ email_purpose?: string | null;
39745
40165
  id?: string;
39746
40166
  singleton?: boolean;
39747
40167
  updated_at?: string;
@@ -39751,6 +40171,7 @@ export declare const enqueueTestStockPush: import("@tanstack/start-client-core")
39751
40171
  created_at?: string;
39752
40172
  default_geldigheid_dagen?: number;
39753
40173
  default_vat_rate?: number;
40174
+ email_purpose?: string | null;
39754
40175
  id?: string;
39755
40176
  singleton?: boolean;
39756
40177
  updated_at?: string;
@@ -39843,6 +40264,7 @@ export declare const enqueueTestStockPush: import("@tanstack/start-client-core")
39843
40264
  };
39844
40265
  itk_offertes: {
39845
40266
  Row: {
40267
+ aandachtspunten: string | null;
39846
40268
  ai_generated: boolean;
39847
40269
  approved_at: string | null;
39848
40270
  binnen_mandaat: boolean;
@@ -39858,6 +40280,7 @@ export declare const enqueueTestStockPush: import("@tanstack/start-client-core")
39858
40280
  notities: string | null;
39859
40281
  offerte_number: string | null;
39860
40282
  omschrijving: string;
40283
+ onderwerp: string | null;
39861
40284
  rejected_at: string | null;
39862
40285
  sent_at: string | null;
39863
40286
  source_number: string | null;
@@ -39870,12 +40293,15 @@ export declare const enqueueTestStockPush: import("@tanstack/start-client-core")
39870
40293
  valid_until: string | null;
39871
40294
  vat_cents: number;
39872
40295
  vat_rate: number;
40296
+ verzonden_naar: string | null;
39873
40297
  viewed_at: string | null;
39874
40298
  volgnummer: number | null;
40299
+ voorwaarden: string | null;
39875
40300
  werkbon_id: string | null;
39876
40301
  work_location_id: string | null;
39877
40302
  };
39878
40303
  Insert: {
40304
+ aandachtspunten?: string | null;
39879
40305
  ai_generated?: boolean;
39880
40306
  approved_at?: string | null;
39881
40307
  binnen_mandaat?: boolean;
@@ -39891,6 +40317,7 @@ export declare const enqueueTestStockPush: import("@tanstack/start-client-core")
39891
40317
  notities?: string | null;
39892
40318
  offerte_number?: string | null;
39893
40319
  omschrijving?: string;
40320
+ onderwerp?: string | null;
39894
40321
  rejected_at?: string | null;
39895
40322
  sent_at?: string | null;
39896
40323
  source_number?: string | null;
@@ -39903,12 +40330,15 @@ export declare const enqueueTestStockPush: import("@tanstack/start-client-core")
39903
40330
  valid_until?: string | null;
39904
40331
  vat_cents?: number;
39905
40332
  vat_rate?: number;
40333
+ verzonden_naar?: string | null;
39906
40334
  viewed_at?: string | null;
39907
40335
  volgnummer?: number | null;
40336
+ voorwaarden?: string | null;
39908
40337
  werkbon_id?: string | null;
39909
40338
  work_location_id?: string | null;
39910
40339
  };
39911
40340
  Update: {
40341
+ aandachtspunten?: string | null;
39912
40342
  ai_generated?: boolean;
39913
40343
  approved_at?: string | null;
39914
40344
  binnen_mandaat?: boolean;
@@ -39924,6 +40354,7 @@ export declare const enqueueTestStockPush: import("@tanstack/start-client-core")
39924
40354
  notities?: string | null;
39925
40355
  offerte_number?: string | null;
39926
40356
  omschrijving?: string;
40357
+ onderwerp?: string | null;
39927
40358
  rejected_at?: string | null;
39928
40359
  sent_at?: string | null;
39929
40360
  source_number?: string | null;
@@ -39936,8 +40367,10 @@ export declare const enqueueTestStockPush: import("@tanstack/start-client-core")
39936
40367
  valid_until?: string | null;
39937
40368
  vat_cents?: number;
39938
40369
  vat_rate?: number;
40370
+ verzonden_naar?: string | null;
39939
40371
  viewed_at?: string | null;
39940
40372
  volgnummer?: number | null;
40373
+ voorwaarden?: string | null;
39941
40374
  werkbon_id?: string | null;
39942
40375
  work_location_id?: string | null;
39943
40376
  };
@@ -52015,6 +52448,51 @@ export declare const enqueueTestStockPush: import("@tanstack/start-client-core")
52015
52448
  referencedColumns: ["id"];
52016
52449
  }];
52017
52450
  };
52451
+ vakantie_uitbetalingen: {
52452
+ Row: {
52453
+ created_at: string;
52454
+ created_by: string | null;
52455
+ days: number;
52456
+ id: string;
52457
+ note: string | null;
52458
+ updated_at: string;
52459
+ user_id: string;
52460
+ year: number;
52461
+ };
52462
+ Insert: {
52463
+ created_at?: string;
52464
+ created_by?: string | null;
52465
+ days: number;
52466
+ id?: string;
52467
+ note?: string | null;
52468
+ updated_at?: string;
52469
+ user_id: string;
52470
+ year?: number;
52471
+ };
52472
+ Update: {
52473
+ created_at?: string;
52474
+ created_by?: string | null;
52475
+ days?: number;
52476
+ id?: string;
52477
+ note?: string | null;
52478
+ updated_at?: string;
52479
+ user_id?: string;
52480
+ year?: number;
52481
+ };
52482
+ Relationships: [{
52483
+ foreignKeyName: "vakantie_uitbetalingen_created_by_fkey";
52484
+ columns: ["created_by"];
52485
+ isOneToOne: false;
52486
+ referencedRelation: "profiles";
52487
+ referencedColumns: ["id"];
52488
+ }, {
52489
+ foreignKeyName: "vakantie_uitbetalingen_user_id_fkey";
52490
+ columns: ["user_id"];
52491
+ isOneToOne: false;
52492
+ referencedRelation: "profiles";
52493
+ referencedColumns: ["id"];
52494
+ }];
52495
+ };
52018
52496
  van_inventories: {
52019
52497
  Row: {
52020
52498
  barcode: string | null;
@@ -53299,6 +53777,78 @@ export declare const enqueueTestStockPush: import("@tanstack/start-client-core")
53299
53777
  referencedColumns: ["id"];
53300
53778
  }];
53301
53779
  };
53780
+ werkbon_voorstellen: {
53781
+ Row: {
53782
+ bron_werkbon_id: string;
53783
+ budget_mandate_cents: number;
53784
+ created_at: string;
53785
+ created_by: string;
53786
+ customer_id: string | null;
53787
+ id: string;
53788
+ payload: import("../integrations/supabase/types").Json;
53789
+ reden: string | null;
53790
+ status: string;
53791
+ updated_at: string;
53792
+ verwerkt_door: string | null;
53793
+ verwerkt_op: string | null;
53794
+ werkbon_id: string | null;
53795
+ };
53796
+ Insert: {
53797
+ bron_werkbon_id: string;
53798
+ budget_mandate_cents?: number;
53799
+ created_at?: string;
53800
+ created_by?: string;
53801
+ customer_id?: string | null;
53802
+ id?: string;
53803
+ payload?: import("../integrations/supabase/types").Json;
53804
+ reden?: string | null;
53805
+ status?: string;
53806
+ updated_at?: string;
53807
+ verwerkt_door?: string | null;
53808
+ verwerkt_op?: string | null;
53809
+ werkbon_id?: string | null;
53810
+ };
53811
+ Update: {
53812
+ bron_werkbon_id?: string;
53813
+ budget_mandate_cents?: number;
53814
+ created_at?: string;
53815
+ created_by?: string;
53816
+ customer_id?: string | null;
53817
+ id?: string;
53818
+ payload?: import("../integrations/supabase/types").Json;
53819
+ reden?: string | null;
53820
+ status?: string;
53821
+ updated_at?: string;
53822
+ verwerkt_door?: string | null;
53823
+ verwerkt_op?: string | null;
53824
+ werkbon_id?: string | null;
53825
+ };
53826
+ Relationships: [{
53827
+ foreignKeyName: "werkbon_voorstellen_bron_werkbon_id_fkey";
53828
+ columns: ["bron_werkbon_id"];
53829
+ isOneToOne: false;
53830
+ referencedRelation: "werkbonnen";
53831
+ referencedColumns: ["id"];
53832
+ }, {
53833
+ foreignKeyName: "werkbon_voorstellen_bron_werkbon_id_fkey";
53834
+ columns: ["bron_werkbon_id"];
53835
+ isOneToOne: false;
53836
+ referencedRelation: "wo_overview";
53837
+ referencedColumns: ["id"];
53838
+ }, {
53839
+ foreignKeyName: "werkbon_voorstellen_werkbon_id_fkey";
53840
+ columns: ["werkbon_id"];
53841
+ isOneToOne: false;
53842
+ referencedRelation: "werkbonnen";
53843
+ referencedColumns: ["id"];
53844
+ }, {
53845
+ foreignKeyName: "werkbon_voorstellen_werkbon_id_fkey";
53846
+ columns: ["werkbon_id"];
53847
+ isOneToOne: false;
53848
+ referencedRelation: "wo_overview";
53849
+ referencedColumns: ["id"];
53850
+ }];
53851
+ };
53302
53852
  werkbonnen: {
53303
53853
  Row: {
53304
53854
  assigned_user_id: string | null;
@@ -54539,6 +55089,10 @@ export declare const enqueueTestStockPush: import("@tanstack/start-client-core")
54539
55089
  };
54540
55090
  Returns: undefined;
54541
55091
  };
55092
+ _wo_is_planner: {
55093
+ Args: never;
55094
+ Returns: boolean;
55095
+ };
54542
55096
  afh_city_code: {
54543
55097
  Args: {
54544
55098
  _city: string;
@@ -55651,6 +56205,22 @@ export declare const enqueueTestStockPush: import("@tanstack/start-client-core")
55651
56205
  };
55652
56206
  Returns: number;
55653
56207
  };
56208
+ get_product_stock: {
56209
+ Args: {
56210
+ p_product_id: string;
56211
+ };
56212
+ Returns: {
56213
+ connection_id: string;
56214
+ incoming_stock: number;
56215
+ minimum_stock: number;
56216
+ notes: string;
56217
+ physical_stock: number;
56218
+ product_id: string;
56219
+ reserved_stock: number;
56220
+ trade_item_key: string;
56221
+ updated_at: string;
56222
+ }[];
56223
+ };
55654
56224
  get_room_busy_windows: {
55655
56225
  Args: {
55656
56226
  p_from: string;
@@ -55988,6 +56558,10 @@ export declare const enqueueTestStockPush: import("@tanstack/start-client-core")
55988
56558
  };
55989
56559
  Returns: number;
55990
56560
  };
56561
+ invoice_branding_snapshot: {
56562
+ Args: never;
56563
+ Returns: import("../integrations/supabase/types").Json;
56564
+ };
55991
56565
  invoice_create_from_source: {
55992
56566
  Args: {
55993
56567
  _payload?: import("../integrations/supabase/types").Json;
@@ -56022,6 +56596,17 @@ export declare const enqueueTestStockPush: import("@tanstack/start-client-core")
56022
56596
  };
56023
56597
  Returns: import("../integrations/supabase/types").Json;
56024
56598
  };
56599
+ invoice_mark_sent: {
56600
+ Args: {
56601
+ _invoice_id: string;
56602
+ _to: string;
56603
+ };
56604
+ Returns: undefined;
56605
+ };
56606
+ invoice_peek_next_number: {
56607
+ Args: never;
56608
+ Returns: string;
56609
+ };
56025
56610
  invoice_ready_work_orders: {
56026
56611
  Args: {
56027
56612
  _limit?: number;
@@ -56034,6 +56619,18 @@ export declare const enqueueTestStockPush: import("@tanstack/start-client-core")
56034
56619
  };
56035
56620
  Returns: import("../integrations/supabase/types").Json;
56036
56621
  };
56622
+ invoice_save_branding_settings: {
56623
+ Args: {
56624
+ _payload: import("../integrations/supabase/types").Json;
56625
+ };
56626
+ Returns: import("../integrations/supabase/types").Json;
56627
+ };
56628
+ invoice_set_email_purpose: {
56629
+ Args: {
56630
+ _purpose: string;
56631
+ };
56632
+ Returns: string;
56633
+ };
56037
56634
  invoice_source_lines: {
56038
56635
  Args: {
56039
56636
  _source_id: string;
@@ -56041,6 +56638,19 @@ export declare const enqueueTestStockPush: import("@tanstack/start-client-core")
56041
56638
  };
56042
56639
  Returns: import("../integrations/supabase/types").Json;
56043
56640
  };
56641
+ invoice_update_full: {
56642
+ Args: {
56643
+ _invoice_id: string;
56644
+ _payload: import("../integrations/supabase/types").Json;
56645
+ };
56646
+ Returns: import("../integrations/supabase/types").Json;
56647
+ };
56648
+ invoice_work_order_locked: {
56649
+ Args: {
56650
+ _werkbon_id: string;
56651
+ };
56652
+ Returns: import("../integrations/supabase/types").Json;
56653
+ };
56044
56654
  is_authenticated: {
56045
56655
  Args: never;
56046
56656
  Returns: boolean;
@@ -59340,6 +59950,19 @@ export declare const enqueueTestStockPush: import("@tanstack/start-client-core")
59340
59950
  };
59341
59951
  Returns: boolean;
59342
59952
  };
59953
+ quote_assign_number: {
59954
+ Args: {
59955
+ _offerte_id: string;
59956
+ };
59957
+ Returns: string;
59958
+ };
59959
+ quote_create_follow_up_now: {
59960
+ Args: {
59961
+ _offerte_id: string;
59962
+ _payload?: import("../integrations/supabase/types").Json;
59963
+ };
59964
+ Returns: import("../integrations/supabase/types").Json;
59965
+ };
59343
59966
  quote_create_from_source: {
59344
59967
  Args: {
59345
59968
  _payload?: import("../integrations/supabase/types").Json;
@@ -60053,6 +60676,26 @@ export declare const enqueueTestStockPush: import("@tanstack/start-client-core")
60053
60676
  };
60054
60677
  Returns: undefined;
60055
60678
  };
60679
+ set_product_stock: {
60680
+ Args: {
60681
+ p_incoming_stock?: number;
60682
+ p_minimum_stock?: number;
60683
+ p_notes?: string;
60684
+ p_physical_stock: number;
60685
+ p_product_id: string;
60686
+ };
60687
+ Returns: {
60688
+ connection_id: string;
60689
+ incoming_stock: number;
60690
+ minimum_stock: number;
60691
+ notes: string;
60692
+ physical_stock: number;
60693
+ product_id: string;
60694
+ reserved_stock: number;
60695
+ trade_item_key: string;
60696
+ updated_at: string;
60697
+ }[];
60698
+ };
60056
60699
  show_limit: {
60057
60700
  Args: never;
60058
60701
  Returns: number;
@@ -60577,6 +61220,13 @@ export declare const enqueueTestStockPush: import("@tanstack/start-client-core")
60577
61220
  };
60578
61221
  Returns: number;
60579
61222
  };
61223
+ vakantie_overuren: {
61224
+ Args: {
61225
+ _user_id: string;
61226
+ _year?: number;
61227
+ };
61228
+ Returns: number;
61229
+ };
60580
61230
  vakantie_saldo: {
60581
61231
  Args: {
60582
61232
  _user_id: string;
@@ -60584,7 +61234,12 @@ export declare const enqueueTestStockPush: import("@tanstack/start-client-core")
60584
61234
  };
60585
61235
  Returns: {
60586
61236
  day_hours: number;
61237
+ earned_from_overtime_days: number;
60587
61238
  entitlement_days: number;
61239
+ hours_to_next_day: number;
61240
+ overtime_hours: number;
61241
+ overtime_remainder_hours: number;
61242
+ paid_out_days: number;
60588
61243
  remaining_days: number;
60589
61244
  used_days: number;
60590
61245
  }[];
@@ -60595,7 +61250,12 @@ export declare const enqueueTestStockPush: import("@tanstack/start-client-core")
60595
61250
  };
60596
61251
  Returns: {
60597
61252
  day_hours: number;
61253
+ earned_from_overtime_days: number;
60598
61254
  entitlement_days: number;
61255
+ hours_to_next_day: number;
61256
+ overtime_hours: number;
61257
+ overtime_remainder_hours: number;
61258
+ paid_out_days: number;
60599
61259
  remaining_days: number;
60600
61260
  used_days: number;
60601
61261
  user_id: string;
@@ -60649,12 +61309,25 @@ export declare const enqueueTestStockPush: import("@tanstack/start-client-core")
60649
61309
  };
60650
61310
  Returns: import("../integrations/supabase/types").Json;
60651
61311
  };
61312
+ wo_list_proposals: {
61313
+ Args: {
61314
+ _status?: string;
61315
+ };
61316
+ Returns: import("../integrations/supabase/types").Json;
61317
+ };
60652
61318
  wo_process_offerte_request: {
60653
61319
  Args: {
60654
61320
  _queue_id: string;
60655
61321
  };
60656
61322
  Returns: import("../integrations/supabase/types").Json;
60657
61323
  };
61324
+ wo_process_proposal: {
61325
+ Args: {
61326
+ _id: string;
61327
+ _overrides?: import("../integrations/supabase/types").Json;
61328
+ };
61329
+ Returns: import("../integrations/supabase/types").Json;
61330
+ };
60658
61331
  wo_reject_offerte_request: {
60659
61332
  Args: {
60660
61333
  _queue_id: string;
@@ -60662,6 +61335,13 @@ export declare const enqueueTestStockPush: import("@tanstack/start-client-core")
60662
61335
  };
60663
61336
  Returns: import("../integrations/supabase/types").Json;
60664
61337
  };
61338
+ wo_reject_proposal: {
61339
+ Args: {
61340
+ _id: string;
61341
+ _reden?: string;
61342
+ };
61343
+ Returns: import("../integrations/supabase/types").Json;
61344
+ };
60665
61345
  wo_set_status: {
60666
61346
  Args: {
60667
61347
  _reason?: string;