@flowselections/floriday-voorraad 1.0.47 → 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 +16 -4
  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
@@ -8288,6 +8288,69 @@ export declare const gatewaySchemaFn: import("@tanstack/start-client-core").Requ
8288
8288
  };
8289
8289
  Relationships: [];
8290
8290
  };
8291
+ invoice_branding_settings: {
8292
+ Row: {
8293
+ address: string;
8294
+ chamber_of_commerce_number: string;
8295
+ city: string;
8296
+ company_name: string;
8297
+ created_at: string;
8298
+ email: string;
8299
+ email_purpose: string | null;
8300
+ iban: string;
8301
+ logo_path: string | null;
8302
+ payment_term_days: number;
8303
+ phone: string;
8304
+ postal_code: string;
8305
+ primary_color: string;
8306
+ secondary_color: string;
8307
+ singleton_key: boolean;
8308
+ updated_at: string;
8309
+ vat_identification_number: string;
8310
+ website: string;
8311
+ };
8312
+ Insert: {
8313
+ address?: string;
8314
+ chamber_of_commerce_number?: string;
8315
+ city?: string;
8316
+ company_name?: string;
8317
+ created_at?: string;
8318
+ email?: string;
8319
+ email_purpose?: string | null;
8320
+ iban?: string;
8321
+ logo_path?: string | null;
8322
+ payment_term_days?: number;
8323
+ phone?: string;
8324
+ postal_code?: string;
8325
+ primary_color?: string;
8326
+ secondary_color?: string;
8327
+ singleton_key?: boolean;
8328
+ updated_at?: string;
8329
+ vat_identification_number?: string;
8330
+ website?: string;
8331
+ };
8332
+ Update: {
8333
+ address?: string;
8334
+ chamber_of_commerce_number?: string;
8335
+ city?: string;
8336
+ company_name?: string;
8337
+ created_at?: string;
8338
+ email?: string;
8339
+ email_purpose?: string | null;
8340
+ iban?: string;
8341
+ logo_path?: string | null;
8342
+ payment_term_days?: number;
8343
+ phone?: string;
8344
+ postal_code?: string;
8345
+ primary_color?: string;
8346
+ secondary_color?: string;
8347
+ singleton_key?: boolean;
8348
+ updated_at?: string;
8349
+ vat_identification_number?: string;
8350
+ website?: string;
8351
+ };
8352
+ Relationships: [];
8353
+ };
8291
8354
  invoice_items: {
8292
8355
  Row: {
8293
8356
  created_at: string;
@@ -8301,6 +8364,7 @@ export declare const gatewaySchemaFn: import("@tanstack/start-client-core").Requ
8301
8364
  total_cents: number;
8302
8365
  unit: string;
8303
8366
  unit_price_cents: number;
8367
+ vat_rate: number | null;
8304
8368
  };
8305
8369
  Insert: {
8306
8370
  created_at?: string;
@@ -8314,6 +8378,7 @@ export declare const gatewaySchemaFn: import("@tanstack/start-client-core").Requ
8314
8378
  total_cents?: number;
8315
8379
  unit?: string;
8316
8380
  unit_price_cents?: number;
8381
+ vat_rate?: number | null;
8317
8382
  };
8318
8383
  Update: {
8319
8384
  created_at?: string;
@@ -8327,6 +8392,7 @@ export declare const gatewaySchemaFn: import("@tanstack/start-client-core").Requ
8327
8392
  total_cents?: number;
8328
8393
  unit?: string;
8329
8394
  unit_price_cents?: number;
8395
+ vat_rate?: number | null;
8330
8396
  };
8331
8397
  Relationships: [{
8332
8398
  foreignKeyName: "invoice_items_invoice_id_fkey";
@@ -8572,6 +8638,7 @@ export declare const gatewaySchemaFn: import("@tanstack/start-client-core").Requ
8572
8638
  };
8573
8639
  invoices: {
8574
8640
  Row: {
8641
+ branding_snapshot: import("../integrations/supabase/types").Json | null;
8575
8642
  created_at: string;
8576
8643
  created_by: string | null;
8577
8644
  customer_address: string | null;
@@ -8590,6 +8657,8 @@ export declare const gatewaySchemaFn: import("@tanstack/start-client-core").Requ
8590
8657
  note: string | null;
8591
8658
  payment_term_days: number;
8592
8659
  reference: string | null;
8660
+ sent_at: string | null;
8661
+ sent_to: string | null;
8593
8662
  source_number: string | null;
8594
8663
  source_ref: string | null;
8595
8664
  source_type: string;
@@ -8602,6 +8671,7 @@ export declare const gatewaySchemaFn: import("@tanstack/start-client-core").Requ
8602
8671
  work_address: string | null;
8603
8672
  };
8604
8673
  Insert: {
8674
+ branding_snapshot?: import("../integrations/supabase/types").Json | null;
8605
8675
  created_at?: string;
8606
8676
  created_by?: string | null;
8607
8677
  customer_address?: string | null;
@@ -8620,6 +8690,8 @@ export declare const gatewaySchemaFn: import("@tanstack/start-client-core").Requ
8620
8690
  note?: string | null;
8621
8691
  payment_term_days?: number;
8622
8692
  reference?: string | null;
8693
+ sent_at?: string | null;
8694
+ sent_to?: string | null;
8623
8695
  source_number?: string | null;
8624
8696
  source_ref?: string | null;
8625
8697
  source_type?: string;
@@ -8632,6 +8704,7 @@ export declare const gatewaySchemaFn: import("@tanstack/start-client-core").Requ
8632
8704
  work_address?: string | null;
8633
8705
  };
8634
8706
  Update: {
8707
+ branding_snapshot?: import("../integrations/supabase/types").Json | null;
8635
8708
  created_at?: string;
8636
8709
  created_by?: string | null;
8637
8710
  customer_address?: string | null;
@@ -8650,6 +8723,8 @@ export declare const gatewaySchemaFn: import("@tanstack/start-client-core").Requ
8650
8723
  note?: string | null;
8651
8724
  payment_term_days?: number;
8652
8725
  reference?: string | null;
8726
+ sent_at?: string | null;
8727
+ sent_to?: string | null;
8653
8728
  source_number?: string | null;
8654
8729
  source_ref?: string | null;
8655
8730
  source_type?: string;
@@ -9358,6 +9433,7 @@ export declare const gatewaySchemaFn: import("@tanstack/start-client-core").Requ
9358
9433
  quantity: number;
9359
9434
  sort_order: number;
9360
9435
  source: string;
9436
+ unit: string | null;
9361
9437
  unit_price_cents: number;
9362
9438
  updated_at: string;
9363
9439
  };
@@ -9371,6 +9447,7 @@ export declare const gatewaySchemaFn: import("@tanstack/start-client-core").Requ
9371
9447
  quantity?: number;
9372
9448
  sort_order?: number;
9373
9449
  source?: string;
9450
+ unit?: string | null;
9374
9451
  unit_price_cents?: number;
9375
9452
  updated_at?: string;
9376
9453
  };
@@ -9384,6 +9461,7 @@ export declare const gatewaySchemaFn: import("@tanstack/start-client-core").Requ
9384
9461
  quantity?: number;
9385
9462
  sort_order?: number;
9386
9463
  source?: string;
9464
+ unit?: string | null;
9387
9465
  unit_price_cents?: number;
9388
9466
  updated_at?: string;
9389
9467
  };
@@ -9407,6 +9485,7 @@ export declare const gatewaySchemaFn: import("@tanstack/start-client-core").Requ
9407
9485
  created_at: string;
9408
9486
  default_geldigheid_dagen: number;
9409
9487
  default_vat_rate: number;
9488
+ email_purpose: string | null;
9410
9489
  id: string;
9411
9490
  singleton: boolean;
9412
9491
  updated_at: string;
@@ -9416,6 +9495,7 @@ export declare const gatewaySchemaFn: import("@tanstack/start-client-core").Requ
9416
9495
  created_at?: string;
9417
9496
  default_geldigheid_dagen?: number;
9418
9497
  default_vat_rate?: number;
9498
+ email_purpose?: string | null;
9419
9499
  id?: string;
9420
9500
  singleton?: boolean;
9421
9501
  updated_at?: string;
@@ -9425,6 +9505,7 @@ export declare const gatewaySchemaFn: import("@tanstack/start-client-core").Requ
9425
9505
  created_at?: string;
9426
9506
  default_geldigheid_dagen?: number;
9427
9507
  default_vat_rate?: number;
9508
+ email_purpose?: string | null;
9428
9509
  id?: string;
9429
9510
  singleton?: boolean;
9430
9511
  updated_at?: string;
@@ -9517,6 +9598,7 @@ export declare const gatewaySchemaFn: import("@tanstack/start-client-core").Requ
9517
9598
  };
9518
9599
  itk_offertes: {
9519
9600
  Row: {
9601
+ aandachtspunten: string | null;
9520
9602
  ai_generated: boolean;
9521
9603
  approved_at: string | null;
9522
9604
  binnen_mandaat: boolean;
@@ -9532,6 +9614,7 @@ export declare const gatewaySchemaFn: import("@tanstack/start-client-core").Requ
9532
9614
  notities: string | null;
9533
9615
  offerte_number: string | null;
9534
9616
  omschrijving: string;
9617
+ onderwerp: string | null;
9535
9618
  rejected_at: string | null;
9536
9619
  sent_at: string | null;
9537
9620
  source_number: string | null;
@@ -9544,12 +9627,15 @@ export declare const gatewaySchemaFn: import("@tanstack/start-client-core").Requ
9544
9627
  valid_until: string | null;
9545
9628
  vat_cents: number;
9546
9629
  vat_rate: number;
9630
+ verzonden_naar: string | null;
9547
9631
  viewed_at: string | null;
9548
9632
  volgnummer: number | null;
9633
+ voorwaarden: string | null;
9549
9634
  werkbon_id: string | null;
9550
9635
  work_location_id: string | null;
9551
9636
  };
9552
9637
  Insert: {
9638
+ aandachtspunten?: string | null;
9553
9639
  ai_generated?: boolean;
9554
9640
  approved_at?: string | null;
9555
9641
  binnen_mandaat?: boolean;
@@ -9565,6 +9651,7 @@ export declare const gatewaySchemaFn: import("@tanstack/start-client-core").Requ
9565
9651
  notities?: string | null;
9566
9652
  offerte_number?: string | null;
9567
9653
  omschrijving?: string;
9654
+ onderwerp?: string | null;
9568
9655
  rejected_at?: string | null;
9569
9656
  sent_at?: string | null;
9570
9657
  source_number?: string | null;
@@ -9577,12 +9664,15 @@ export declare const gatewaySchemaFn: import("@tanstack/start-client-core").Requ
9577
9664
  valid_until?: string | null;
9578
9665
  vat_cents?: number;
9579
9666
  vat_rate?: number;
9667
+ verzonden_naar?: string | null;
9580
9668
  viewed_at?: string | null;
9581
9669
  volgnummer?: number | null;
9670
+ voorwaarden?: string | null;
9582
9671
  werkbon_id?: string | null;
9583
9672
  work_location_id?: string | null;
9584
9673
  };
9585
9674
  Update: {
9675
+ aandachtspunten?: string | null;
9586
9676
  ai_generated?: boolean;
9587
9677
  approved_at?: string | null;
9588
9678
  binnen_mandaat?: boolean;
@@ -9598,6 +9688,7 @@ export declare const gatewaySchemaFn: import("@tanstack/start-client-core").Requ
9598
9688
  notities?: string | null;
9599
9689
  offerte_number?: string | null;
9600
9690
  omschrijving?: string;
9691
+ onderwerp?: string | null;
9601
9692
  rejected_at?: string | null;
9602
9693
  sent_at?: string | null;
9603
9694
  source_number?: string | null;
@@ -9610,8 +9701,10 @@ export declare const gatewaySchemaFn: import("@tanstack/start-client-core").Requ
9610
9701
  valid_until?: string | null;
9611
9702
  vat_cents?: number;
9612
9703
  vat_rate?: number;
9704
+ verzonden_naar?: string | null;
9613
9705
  viewed_at?: string | null;
9614
9706
  volgnummer?: number | null;
9707
+ voorwaarden?: string | null;
9615
9708
  werkbon_id?: string | null;
9616
9709
  work_location_id?: string | null;
9617
9710
  };
@@ -21689,6 +21782,51 @@ export declare const gatewaySchemaFn: import("@tanstack/start-client-core").Requ
21689
21782
  referencedColumns: ["id"];
21690
21783
  }];
21691
21784
  };
21785
+ vakantie_uitbetalingen: {
21786
+ Row: {
21787
+ created_at: string;
21788
+ created_by: string | null;
21789
+ days: number;
21790
+ id: string;
21791
+ note: string | null;
21792
+ updated_at: string;
21793
+ user_id: string;
21794
+ year: number;
21795
+ };
21796
+ Insert: {
21797
+ created_at?: string;
21798
+ created_by?: string | null;
21799
+ days: number;
21800
+ id?: string;
21801
+ note?: string | null;
21802
+ updated_at?: string;
21803
+ user_id: string;
21804
+ year?: number;
21805
+ };
21806
+ Update: {
21807
+ created_at?: string;
21808
+ created_by?: string | null;
21809
+ days?: number;
21810
+ id?: string;
21811
+ note?: string | null;
21812
+ updated_at?: string;
21813
+ user_id?: string;
21814
+ year?: number;
21815
+ };
21816
+ Relationships: [{
21817
+ foreignKeyName: "vakantie_uitbetalingen_created_by_fkey";
21818
+ columns: ["created_by"];
21819
+ isOneToOne: false;
21820
+ referencedRelation: "profiles";
21821
+ referencedColumns: ["id"];
21822
+ }, {
21823
+ foreignKeyName: "vakantie_uitbetalingen_user_id_fkey";
21824
+ columns: ["user_id"];
21825
+ isOneToOne: false;
21826
+ referencedRelation: "profiles";
21827
+ referencedColumns: ["id"];
21828
+ }];
21829
+ };
21692
21830
  van_inventories: {
21693
21831
  Row: {
21694
21832
  barcode: string | null;
@@ -22973,6 +23111,78 @@ export declare const gatewaySchemaFn: import("@tanstack/start-client-core").Requ
22973
23111
  referencedColumns: ["id"];
22974
23112
  }];
22975
23113
  };
23114
+ werkbon_voorstellen: {
23115
+ Row: {
23116
+ bron_werkbon_id: string;
23117
+ budget_mandate_cents: number;
23118
+ created_at: string;
23119
+ created_by: string;
23120
+ customer_id: string | null;
23121
+ id: string;
23122
+ payload: import("../integrations/supabase/types").Json;
23123
+ reden: string | null;
23124
+ status: string;
23125
+ updated_at: string;
23126
+ verwerkt_door: string | null;
23127
+ verwerkt_op: string | null;
23128
+ werkbon_id: string | null;
23129
+ };
23130
+ Insert: {
23131
+ bron_werkbon_id: string;
23132
+ budget_mandate_cents?: number;
23133
+ created_at?: string;
23134
+ created_by?: string;
23135
+ customer_id?: string | null;
23136
+ id?: string;
23137
+ payload?: import("../integrations/supabase/types").Json;
23138
+ reden?: string | null;
23139
+ status?: string;
23140
+ updated_at?: string;
23141
+ verwerkt_door?: string | null;
23142
+ verwerkt_op?: string | null;
23143
+ werkbon_id?: string | null;
23144
+ };
23145
+ Update: {
23146
+ bron_werkbon_id?: string;
23147
+ budget_mandate_cents?: number;
23148
+ created_at?: string;
23149
+ created_by?: string;
23150
+ customer_id?: string | null;
23151
+ id?: string;
23152
+ payload?: import("../integrations/supabase/types").Json;
23153
+ reden?: string | null;
23154
+ status?: string;
23155
+ updated_at?: string;
23156
+ verwerkt_door?: string | null;
23157
+ verwerkt_op?: string | null;
23158
+ werkbon_id?: string | null;
23159
+ };
23160
+ Relationships: [{
23161
+ foreignKeyName: "werkbon_voorstellen_bron_werkbon_id_fkey";
23162
+ columns: ["bron_werkbon_id"];
23163
+ isOneToOne: false;
23164
+ referencedRelation: "werkbonnen";
23165
+ referencedColumns: ["id"];
23166
+ }, {
23167
+ foreignKeyName: "werkbon_voorstellen_bron_werkbon_id_fkey";
23168
+ columns: ["bron_werkbon_id"];
23169
+ isOneToOne: false;
23170
+ referencedRelation: "wo_overview";
23171
+ referencedColumns: ["id"];
23172
+ }, {
23173
+ foreignKeyName: "werkbon_voorstellen_werkbon_id_fkey";
23174
+ columns: ["werkbon_id"];
23175
+ isOneToOne: false;
23176
+ referencedRelation: "werkbonnen";
23177
+ referencedColumns: ["id"];
23178
+ }, {
23179
+ foreignKeyName: "werkbon_voorstellen_werkbon_id_fkey";
23180
+ columns: ["werkbon_id"];
23181
+ isOneToOne: false;
23182
+ referencedRelation: "wo_overview";
23183
+ referencedColumns: ["id"];
23184
+ }];
23185
+ };
22976
23186
  werkbonnen: {
22977
23187
  Row: {
22978
23188
  assigned_user_id: string | null;
@@ -24213,6 +24423,10 @@ export declare const gatewaySchemaFn: import("@tanstack/start-client-core").Requ
24213
24423
  };
24214
24424
  Returns: undefined;
24215
24425
  };
24426
+ _wo_is_planner: {
24427
+ Args: never;
24428
+ Returns: boolean;
24429
+ };
24216
24430
  afh_city_code: {
24217
24431
  Args: {
24218
24432
  _city: string;
@@ -25325,6 +25539,22 @@ export declare const gatewaySchemaFn: import("@tanstack/start-client-core").Requ
25325
25539
  };
25326
25540
  Returns: number;
25327
25541
  };
25542
+ get_product_stock: {
25543
+ Args: {
25544
+ p_product_id: string;
25545
+ };
25546
+ Returns: {
25547
+ connection_id: string;
25548
+ incoming_stock: number;
25549
+ minimum_stock: number;
25550
+ notes: string;
25551
+ physical_stock: number;
25552
+ product_id: string;
25553
+ reserved_stock: number;
25554
+ trade_item_key: string;
25555
+ updated_at: string;
25556
+ }[];
25557
+ };
25328
25558
  get_room_busy_windows: {
25329
25559
  Args: {
25330
25560
  p_from: string;
@@ -25662,6 +25892,10 @@ export declare const gatewaySchemaFn: import("@tanstack/start-client-core").Requ
25662
25892
  };
25663
25893
  Returns: number;
25664
25894
  };
25895
+ invoice_branding_snapshot: {
25896
+ Args: never;
25897
+ Returns: import("../integrations/supabase/types").Json;
25898
+ };
25665
25899
  invoice_create_from_source: {
25666
25900
  Args: {
25667
25901
  _payload?: import("../integrations/supabase/types").Json;
@@ -25696,6 +25930,17 @@ export declare const gatewaySchemaFn: import("@tanstack/start-client-core").Requ
25696
25930
  };
25697
25931
  Returns: import("../integrations/supabase/types").Json;
25698
25932
  };
25933
+ invoice_mark_sent: {
25934
+ Args: {
25935
+ _invoice_id: string;
25936
+ _to: string;
25937
+ };
25938
+ Returns: undefined;
25939
+ };
25940
+ invoice_peek_next_number: {
25941
+ Args: never;
25942
+ Returns: string;
25943
+ };
25699
25944
  invoice_ready_work_orders: {
25700
25945
  Args: {
25701
25946
  _limit?: number;
@@ -25708,6 +25953,18 @@ export declare const gatewaySchemaFn: import("@tanstack/start-client-core").Requ
25708
25953
  };
25709
25954
  Returns: import("../integrations/supabase/types").Json;
25710
25955
  };
25956
+ invoice_save_branding_settings: {
25957
+ Args: {
25958
+ _payload: import("../integrations/supabase/types").Json;
25959
+ };
25960
+ Returns: import("../integrations/supabase/types").Json;
25961
+ };
25962
+ invoice_set_email_purpose: {
25963
+ Args: {
25964
+ _purpose: string;
25965
+ };
25966
+ Returns: string;
25967
+ };
25711
25968
  invoice_source_lines: {
25712
25969
  Args: {
25713
25970
  _source_id: string;
@@ -25715,6 +25972,19 @@ export declare const gatewaySchemaFn: import("@tanstack/start-client-core").Requ
25715
25972
  };
25716
25973
  Returns: import("../integrations/supabase/types").Json;
25717
25974
  };
25975
+ invoice_update_full: {
25976
+ Args: {
25977
+ _invoice_id: string;
25978
+ _payload: import("../integrations/supabase/types").Json;
25979
+ };
25980
+ Returns: import("../integrations/supabase/types").Json;
25981
+ };
25982
+ invoice_work_order_locked: {
25983
+ Args: {
25984
+ _werkbon_id: string;
25985
+ };
25986
+ Returns: import("../integrations/supabase/types").Json;
25987
+ };
25718
25988
  is_authenticated: {
25719
25989
  Args: never;
25720
25990
  Returns: boolean;
@@ -29014,6 +29284,19 @@ export declare const gatewaySchemaFn: import("@tanstack/start-client-core").Requ
29014
29284
  };
29015
29285
  Returns: boolean;
29016
29286
  };
29287
+ quote_assign_number: {
29288
+ Args: {
29289
+ _offerte_id: string;
29290
+ };
29291
+ Returns: string;
29292
+ };
29293
+ quote_create_follow_up_now: {
29294
+ Args: {
29295
+ _offerte_id: string;
29296
+ _payload?: import("../integrations/supabase/types").Json;
29297
+ };
29298
+ Returns: import("../integrations/supabase/types").Json;
29299
+ };
29017
29300
  quote_create_from_source: {
29018
29301
  Args: {
29019
29302
  _payload?: import("../integrations/supabase/types").Json;
@@ -29727,6 +30010,26 @@ export declare const gatewaySchemaFn: import("@tanstack/start-client-core").Requ
29727
30010
  };
29728
30011
  Returns: undefined;
29729
30012
  };
30013
+ set_product_stock: {
30014
+ Args: {
30015
+ p_incoming_stock?: number;
30016
+ p_minimum_stock?: number;
30017
+ p_notes?: string;
30018
+ p_physical_stock: number;
30019
+ p_product_id: string;
30020
+ };
30021
+ Returns: {
30022
+ connection_id: string;
30023
+ incoming_stock: number;
30024
+ minimum_stock: number;
30025
+ notes: string;
30026
+ physical_stock: number;
30027
+ product_id: string;
30028
+ reserved_stock: number;
30029
+ trade_item_key: string;
30030
+ updated_at: string;
30031
+ }[];
30032
+ };
29730
30033
  show_limit: {
29731
30034
  Args: never;
29732
30035
  Returns: number;
@@ -30251,6 +30554,13 @@ export declare const gatewaySchemaFn: import("@tanstack/start-client-core").Requ
30251
30554
  };
30252
30555
  Returns: number;
30253
30556
  };
30557
+ vakantie_overuren: {
30558
+ Args: {
30559
+ _user_id: string;
30560
+ _year?: number;
30561
+ };
30562
+ Returns: number;
30563
+ };
30254
30564
  vakantie_saldo: {
30255
30565
  Args: {
30256
30566
  _user_id: string;
@@ -30258,7 +30568,12 @@ export declare const gatewaySchemaFn: import("@tanstack/start-client-core").Requ
30258
30568
  };
30259
30569
  Returns: {
30260
30570
  day_hours: number;
30571
+ earned_from_overtime_days: number;
30261
30572
  entitlement_days: number;
30573
+ hours_to_next_day: number;
30574
+ overtime_hours: number;
30575
+ overtime_remainder_hours: number;
30576
+ paid_out_days: number;
30262
30577
  remaining_days: number;
30263
30578
  used_days: number;
30264
30579
  }[];
@@ -30269,7 +30584,12 @@ export declare const gatewaySchemaFn: import("@tanstack/start-client-core").Requ
30269
30584
  };
30270
30585
  Returns: {
30271
30586
  day_hours: number;
30587
+ earned_from_overtime_days: number;
30272
30588
  entitlement_days: number;
30589
+ hours_to_next_day: number;
30590
+ overtime_hours: number;
30591
+ overtime_remainder_hours: number;
30592
+ paid_out_days: number;
30273
30593
  remaining_days: number;
30274
30594
  used_days: number;
30275
30595
  user_id: string;
@@ -30323,12 +30643,25 @@ export declare const gatewaySchemaFn: import("@tanstack/start-client-core").Requ
30323
30643
  };
30324
30644
  Returns: import("../integrations/supabase/types").Json;
30325
30645
  };
30646
+ wo_list_proposals: {
30647
+ Args: {
30648
+ _status?: string;
30649
+ };
30650
+ Returns: import("../integrations/supabase/types").Json;
30651
+ };
30326
30652
  wo_process_offerte_request: {
30327
30653
  Args: {
30328
30654
  _queue_id: string;
30329
30655
  };
30330
30656
  Returns: import("../integrations/supabase/types").Json;
30331
30657
  };
30658
+ wo_process_proposal: {
30659
+ Args: {
30660
+ _id: string;
30661
+ _overrides?: import("../integrations/supabase/types").Json;
30662
+ };
30663
+ Returns: import("../integrations/supabase/types").Json;
30664
+ };
30332
30665
  wo_reject_offerte_request: {
30333
30666
  Args: {
30334
30667
  _queue_id: string;
@@ -30336,6 +30669,13 @@ export declare const gatewaySchemaFn: import("@tanstack/start-client-core").Requ
30336
30669
  };
30337
30670
  Returns: import("../integrations/supabase/types").Json;
30338
30671
  };
30672
+ wo_reject_proposal: {
30673
+ Args: {
30674
+ _id: string;
30675
+ _reden?: string;
30676
+ };
30677
+ Returns: import("../integrations/supabase/types").Json;
30678
+ };
30339
30679
  wo_set_status: {
30340
30680
  Args: {
30341
30681
  _reason?: string;
@@ -38632,6 +38972,69 @@ export declare const gatewayCodeListFn: import("@tanstack/start-client-core").Re
38632
38972
  };
38633
38973
  Relationships: [];
38634
38974
  };
38975
+ invoice_branding_settings: {
38976
+ Row: {
38977
+ address: string;
38978
+ chamber_of_commerce_number: string;
38979
+ city: string;
38980
+ company_name: string;
38981
+ created_at: string;
38982
+ email: string;
38983
+ email_purpose: string | null;
38984
+ iban: string;
38985
+ logo_path: string | null;
38986
+ payment_term_days: number;
38987
+ phone: string;
38988
+ postal_code: string;
38989
+ primary_color: string;
38990
+ secondary_color: string;
38991
+ singleton_key: boolean;
38992
+ updated_at: string;
38993
+ vat_identification_number: string;
38994
+ website: string;
38995
+ };
38996
+ Insert: {
38997
+ address?: string;
38998
+ chamber_of_commerce_number?: string;
38999
+ city?: string;
39000
+ company_name?: string;
39001
+ created_at?: string;
39002
+ email?: string;
39003
+ email_purpose?: string | null;
39004
+ iban?: string;
39005
+ logo_path?: string | null;
39006
+ payment_term_days?: number;
39007
+ phone?: string;
39008
+ postal_code?: string;
39009
+ primary_color?: string;
39010
+ secondary_color?: string;
39011
+ singleton_key?: boolean;
39012
+ updated_at?: string;
39013
+ vat_identification_number?: string;
39014
+ website?: string;
39015
+ };
39016
+ Update: {
39017
+ address?: string;
39018
+ chamber_of_commerce_number?: string;
39019
+ city?: string;
39020
+ company_name?: string;
39021
+ created_at?: string;
39022
+ email?: string;
39023
+ email_purpose?: string | null;
39024
+ iban?: string;
39025
+ logo_path?: string | null;
39026
+ payment_term_days?: number;
39027
+ phone?: string;
39028
+ postal_code?: string;
39029
+ primary_color?: string;
39030
+ secondary_color?: string;
39031
+ singleton_key?: boolean;
39032
+ updated_at?: string;
39033
+ vat_identification_number?: string;
39034
+ website?: string;
39035
+ };
39036
+ Relationships: [];
39037
+ };
38635
39038
  invoice_items: {
38636
39039
  Row: {
38637
39040
  created_at: string;
@@ -38645,6 +39048,7 @@ export declare const gatewayCodeListFn: import("@tanstack/start-client-core").Re
38645
39048
  total_cents: number;
38646
39049
  unit: string;
38647
39050
  unit_price_cents: number;
39051
+ vat_rate: number | null;
38648
39052
  };
38649
39053
  Insert: {
38650
39054
  created_at?: string;
@@ -38658,6 +39062,7 @@ export declare const gatewayCodeListFn: import("@tanstack/start-client-core").Re
38658
39062
  total_cents?: number;
38659
39063
  unit?: string;
38660
39064
  unit_price_cents?: number;
39065
+ vat_rate?: number | null;
38661
39066
  };
38662
39067
  Update: {
38663
39068
  created_at?: string;
@@ -38671,6 +39076,7 @@ export declare const gatewayCodeListFn: import("@tanstack/start-client-core").Re
38671
39076
  total_cents?: number;
38672
39077
  unit?: string;
38673
39078
  unit_price_cents?: number;
39079
+ vat_rate?: number | null;
38674
39080
  };
38675
39081
  Relationships: [{
38676
39082
  foreignKeyName: "invoice_items_invoice_id_fkey";
@@ -38916,6 +39322,7 @@ export declare const gatewayCodeListFn: import("@tanstack/start-client-core").Re
38916
39322
  };
38917
39323
  invoices: {
38918
39324
  Row: {
39325
+ branding_snapshot: import("../integrations/supabase/types").Json | null;
38919
39326
  created_at: string;
38920
39327
  created_by: string | null;
38921
39328
  customer_address: string | null;
@@ -38934,6 +39341,8 @@ export declare const gatewayCodeListFn: import("@tanstack/start-client-core").Re
38934
39341
  note: string | null;
38935
39342
  payment_term_days: number;
38936
39343
  reference: string | null;
39344
+ sent_at: string | null;
39345
+ sent_to: string | null;
38937
39346
  source_number: string | null;
38938
39347
  source_ref: string | null;
38939
39348
  source_type: string;
@@ -38946,6 +39355,7 @@ export declare const gatewayCodeListFn: import("@tanstack/start-client-core").Re
38946
39355
  work_address: string | null;
38947
39356
  };
38948
39357
  Insert: {
39358
+ branding_snapshot?: import("../integrations/supabase/types").Json | null;
38949
39359
  created_at?: string;
38950
39360
  created_by?: string | null;
38951
39361
  customer_address?: string | null;
@@ -38964,6 +39374,8 @@ export declare const gatewayCodeListFn: import("@tanstack/start-client-core").Re
38964
39374
  note?: string | null;
38965
39375
  payment_term_days?: number;
38966
39376
  reference?: string | null;
39377
+ sent_at?: string | null;
39378
+ sent_to?: string | null;
38967
39379
  source_number?: string | null;
38968
39380
  source_ref?: string | null;
38969
39381
  source_type?: string;
@@ -38976,6 +39388,7 @@ export declare const gatewayCodeListFn: import("@tanstack/start-client-core").Re
38976
39388
  work_address?: string | null;
38977
39389
  };
38978
39390
  Update: {
39391
+ branding_snapshot?: import("../integrations/supabase/types").Json | null;
38979
39392
  created_at?: string;
38980
39393
  created_by?: string | null;
38981
39394
  customer_address?: string | null;
@@ -38994,6 +39407,8 @@ export declare const gatewayCodeListFn: import("@tanstack/start-client-core").Re
38994
39407
  note?: string | null;
38995
39408
  payment_term_days?: number;
38996
39409
  reference?: string | null;
39410
+ sent_at?: string | null;
39411
+ sent_to?: string | null;
38997
39412
  source_number?: string | null;
38998
39413
  source_ref?: string | null;
38999
39414
  source_type?: string;
@@ -39702,6 +40117,7 @@ export declare const gatewayCodeListFn: import("@tanstack/start-client-core").Re
39702
40117
  quantity: number;
39703
40118
  sort_order: number;
39704
40119
  source: string;
40120
+ unit: string | null;
39705
40121
  unit_price_cents: number;
39706
40122
  updated_at: string;
39707
40123
  };
@@ -39715,6 +40131,7 @@ export declare const gatewayCodeListFn: import("@tanstack/start-client-core").Re
39715
40131
  quantity?: number;
39716
40132
  sort_order?: number;
39717
40133
  source?: string;
40134
+ unit?: string | null;
39718
40135
  unit_price_cents?: number;
39719
40136
  updated_at?: string;
39720
40137
  };
@@ -39728,6 +40145,7 @@ export declare const gatewayCodeListFn: import("@tanstack/start-client-core").Re
39728
40145
  quantity?: number;
39729
40146
  sort_order?: number;
39730
40147
  source?: string;
40148
+ unit?: string | null;
39731
40149
  unit_price_cents?: number;
39732
40150
  updated_at?: string;
39733
40151
  };
@@ -39751,6 +40169,7 @@ export declare const gatewayCodeListFn: import("@tanstack/start-client-core").Re
39751
40169
  created_at: string;
39752
40170
  default_geldigheid_dagen: number;
39753
40171
  default_vat_rate: number;
40172
+ email_purpose: string | null;
39754
40173
  id: string;
39755
40174
  singleton: boolean;
39756
40175
  updated_at: string;
@@ -39760,6 +40179,7 @@ export declare const gatewayCodeListFn: import("@tanstack/start-client-core").Re
39760
40179
  created_at?: string;
39761
40180
  default_geldigheid_dagen?: number;
39762
40181
  default_vat_rate?: number;
40182
+ email_purpose?: string | null;
39763
40183
  id?: string;
39764
40184
  singleton?: boolean;
39765
40185
  updated_at?: string;
@@ -39769,6 +40189,7 @@ export declare const gatewayCodeListFn: import("@tanstack/start-client-core").Re
39769
40189
  created_at?: string;
39770
40190
  default_geldigheid_dagen?: number;
39771
40191
  default_vat_rate?: number;
40192
+ email_purpose?: string | null;
39772
40193
  id?: string;
39773
40194
  singleton?: boolean;
39774
40195
  updated_at?: string;
@@ -39861,6 +40282,7 @@ export declare const gatewayCodeListFn: import("@tanstack/start-client-core").Re
39861
40282
  };
39862
40283
  itk_offertes: {
39863
40284
  Row: {
40285
+ aandachtspunten: string | null;
39864
40286
  ai_generated: boolean;
39865
40287
  approved_at: string | null;
39866
40288
  binnen_mandaat: boolean;
@@ -39876,6 +40298,7 @@ export declare const gatewayCodeListFn: import("@tanstack/start-client-core").Re
39876
40298
  notities: string | null;
39877
40299
  offerte_number: string | null;
39878
40300
  omschrijving: string;
40301
+ onderwerp: string | null;
39879
40302
  rejected_at: string | null;
39880
40303
  sent_at: string | null;
39881
40304
  source_number: string | null;
@@ -39888,12 +40311,15 @@ export declare const gatewayCodeListFn: import("@tanstack/start-client-core").Re
39888
40311
  valid_until: string | null;
39889
40312
  vat_cents: number;
39890
40313
  vat_rate: number;
40314
+ verzonden_naar: string | null;
39891
40315
  viewed_at: string | null;
39892
40316
  volgnummer: number | null;
40317
+ voorwaarden: string | null;
39893
40318
  werkbon_id: string | null;
39894
40319
  work_location_id: string | null;
39895
40320
  };
39896
40321
  Insert: {
40322
+ aandachtspunten?: string | null;
39897
40323
  ai_generated?: boolean;
39898
40324
  approved_at?: string | null;
39899
40325
  binnen_mandaat?: boolean;
@@ -39909,6 +40335,7 @@ export declare const gatewayCodeListFn: import("@tanstack/start-client-core").Re
39909
40335
  notities?: string | null;
39910
40336
  offerte_number?: string | null;
39911
40337
  omschrijving?: string;
40338
+ onderwerp?: string | null;
39912
40339
  rejected_at?: string | null;
39913
40340
  sent_at?: string | null;
39914
40341
  source_number?: string | null;
@@ -39921,12 +40348,15 @@ export declare const gatewayCodeListFn: import("@tanstack/start-client-core").Re
39921
40348
  valid_until?: string | null;
39922
40349
  vat_cents?: number;
39923
40350
  vat_rate?: number;
40351
+ verzonden_naar?: string | null;
39924
40352
  viewed_at?: string | null;
39925
40353
  volgnummer?: number | null;
40354
+ voorwaarden?: string | null;
39926
40355
  werkbon_id?: string | null;
39927
40356
  work_location_id?: string | null;
39928
40357
  };
39929
40358
  Update: {
40359
+ aandachtspunten?: string | null;
39930
40360
  ai_generated?: boolean;
39931
40361
  approved_at?: string | null;
39932
40362
  binnen_mandaat?: boolean;
@@ -39942,6 +40372,7 @@ export declare const gatewayCodeListFn: import("@tanstack/start-client-core").Re
39942
40372
  notities?: string | null;
39943
40373
  offerte_number?: string | null;
39944
40374
  omschrijving?: string;
40375
+ onderwerp?: string | null;
39945
40376
  rejected_at?: string | null;
39946
40377
  sent_at?: string | null;
39947
40378
  source_number?: string | null;
@@ -39954,8 +40385,10 @@ export declare const gatewayCodeListFn: import("@tanstack/start-client-core").Re
39954
40385
  valid_until?: string | null;
39955
40386
  vat_cents?: number;
39956
40387
  vat_rate?: number;
40388
+ verzonden_naar?: string | null;
39957
40389
  viewed_at?: string | null;
39958
40390
  volgnummer?: number | null;
40391
+ voorwaarden?: string | null;
39959
40392
  werkbon_id?: string | null;
39960
40393
  work_location_id?: string | null;
39961
40394
  };
@@ -52033,6 +52466,51 @@ export declare const gatewayCodeListFn: import("@tanstack/start-client-core").Re
52033
52466
  referencedColumns: ["id"];
52034
52467
  }];
52035
52468
  };
52469
+ vakantie_uitbetalingen: {
52470
+ Row: {
52471
+ created_at: string;
52472
+ created_by: string | null;
52473
+ days: number;
52474
+ id: string;
52475
+ note: string | null;
52476
+ updated_at: string;
52477
+ user_id: string;
52478
+ year: number;
52479
+ };
52480
+ Insert: {
52481
+ created_at?: string;
52482
+ created_by?: string | null;
52483
+ days: number;
52484
+ id?: string;
52485
+ note?: string | null;
52486
+ updated_at?: string;
52487
+ user_id: string;
52488
+ year?: number;
52489
+ };
52490
+ Update: {
52491
+ created_at?: string;
52492
+ created_by?: string | null;
52493
+ days?: number;
52494
+ id?: string;
52495
+ note?: string | null;
52496
+ updated_at?: string;
52497
+ user_id?: string;
52498
+ year?: number;
52499
+ };
52500
+ Relationships: [{
52501
+ foreignKeyName: "vakantie_uitbetalingen_created_by_fkey";
52502
+ columns: ["created_by"];
52503
+ isOneToOne: false;
52504
+ referencedRelation: "profiles";
52505
+ referencedColumns: ["id"];
52506
+ }, {
52507
+ foreignKeyName: "vakantie_uitbetalingen_user_id_fkey";
52508
+ columns: ["user_id"];
52509
+ isOneToOne: false;
52510
+ referencedRelation: "profiles";
52511
+ referencedColumns: ["id"];
52512
+ }];
52513
+ };
52036
52514
  van_inventories: {
52037
52515
  Row: {
52038
52516
  barcode: string | null;
@@ -53317,6 +53795,78 @@ export declare const gatewayCodeListFn: import("@tanstack/start-client-core").Re
53317
53795
  referencedColumns: ["id"];
53318
53796
  }];
53319
53797
  };
53798
+ werkbon_voorstellen: {
53799
+ Row: {
53800
+ bron_werkbon_id: string;
53801
+ budget_mandate_cents: number;
53802
+ created_at: string;
53803
+ created_by: string;
53804
+ customer_id: string | null;
53805
+ id: string;
53806
+ payload: import("../integrations/supabase/types").Json;
53807
+ reden: string | null;
53808
+ status: string;
53809
+ updated_at: string;
53810
+ verwerkt_door: string | null;
53811
+ verwerkt_op: string | null;
53812
+ werkbon_id: string | null;
53813
+ };
53814
+ Insert: {
53815
+ bron_werkbon_id: string;
53816
+ budget_mandate_cents?: number;
53817
+ created_at?: string;
53818
+ created_by?: string;
53819
+ customer_id?: string | null;
53820
+ id?: string;
53821
+ payload?: import("../integrations/supabase/types").Json;
53822
+ reden?: string | null;
53823
+ status?: string;
53824
+ updated_at?: string;
53825
+ verwerkt_door?: string | null;
53826
+ verwerkt_op?: string | null;
53827
+ werkbon_id?: string | null;
53828
+ };
53829
+ Update: {
53830
+ bron_werkbon_id?: string;
53831
+ budget_mandate_cents?: number;
53832
+ created_at?: string;
53833
+ created_by?: string;
53834
+ customer_id?: string | null;
53835
+ id?: string;
53836
+ payload?: import("../integrations/supabase/types").Json;
53837
+ reden?: string | null;
53838
+ status?: string;
53839
+ updated_at?: string;
53840
+ verwerkt_door?: string | null;
53841
+ verwerkt_op?: string | null;
53842
+ werkbon_id?: string | null;
53843
+ };
53844
+ Relationships: [{
53845
+ foreignKeyName: "werkbon_voorstellen_bron_werkbon_id_fkey";
53846
+ columns: ["bron_werkbon_id"];
53847
+ isOneToOne: false;
53848
+ referencedRelation: "werkbonnen";
53849
+ referencedColumns: ["id"];
53850
+ }, {
53851
+ foreignKeyName: "werkbon_voorstellen_bron_werkbon_id_fkey";
53852
+ columns: ["bron_werkbon_id"];
53853
+ isOneToOne: false;
53854
+ referencedRelation: "wo_overview";
53855
+ referencedColumns: ["id"];
53856
+ }, {
53857
+ foreignKeyName: "werkbon_voorstellen_werkbon_id_fkey";
53858
+ columns: ["werkbon_id"];
53859
+ isOneToOne: false;
53860
+ referencedRelation: "werkbonnen";
53861
+ referencedColumns: ["id"];
53862
+ }, {
53863
+ foreignKeyName: "werkbon_voorstellen_werkbon_id_fkey";
53864
+ columns: ["werkbon_id"];
53865
+ isOneToOne: false;
53866
+ referencedRelation: "wo_overview";
53867
+ referencedColumns: ["id"];
53868
+ }];
53869
+ };
53320
53870
  werkbonnen: {
53321
53871
  Row: {
53322
53872
  assigned_user_id: string | null;
@@ -54557,6 +55107,10 @@ export declare const gatewayCodeListFn: import("@tanstack/start-client-core").Re
54557
55107
  };
54558
55108
  Returns: undefined;
54559
55109
  };
55110
+ _wo_is_planner: {
55111
+ Args: never;
55112
+ Returns: boolean;
55113
+ };
54560
55114
  afh_city_code: {
54561
55115
  Args: {
54562
55116
  _city: string;
@@ -55669,6 +56223,22 @@ export declare const gatewayCodeListFn: import("@tanstack/start-client-core").Re
55669
56223
  };
55670
56224
  Returns: number;
55671
56225
  };
56226
+ get_product_stock: {
56227
+ Args: {
56228
+ p_product_id: string;
56229
+ };
56230
+ Returns: {
56231
+ connection_id: string;
56232
+ incoming_stock: number;
56233
+ minimum_stock: number;
56234
+ notes: string;
56235
+ physical_stock: number;
56236
+ product_id: string;
56237
+ reserved_stock: number;
56238
+ trade_item_key: string;
56239
+ updated_at: string;
56240
+ }[];
56241
+ };
55672
56242
  get_room_busy_windows: {
55673
56243
  Args: {
55674
56244
  p_from: string;
@@ -56006,6 +56576,10 @@ export declare const gatewayCodeListFn: import("@tanstack/start-client-core").Re
56006
56576
  };
56007
56577
  Returns: number;
56008
56578
  };
56579
+ invoice_branding_snapshot: {
56580
+ Args: never;
56581
+ Returns: import("../integrations/supabase/types").Json;
56582
+ };
56009
56583
  invoice_create_from_source: {
56010
56584
  Args: {
56011
56585
  _payload?: import("../integrations/supabase/types").Json;
@@ -56040,6 +56614,17 @@ export declare const gatewayCodeListFn: import("@tanstack/start-client-core").Re
56040
56614
  };
56041
56615
  Returns: import("../integrations/supabase/types").Json;
56042
56616
  };
56617
+ invoice_mark_sent: {
56618
+ Args: {
56619
+ _invoice_id: string;
56620
+ _to: string;
56621
+ };
56622
+ Returns: undefined;
56623
+ };
56624
+ invoice_peek_next_number: {
56625
+ Args: never;
56626
+ Returns: string;
56627
+ };
56043
56628
  invoice_ready_work_orders: {
56044
56629
  Args: {
56045
56630
  _limit?: number;
@@ -56052,6 +56637,18 @@ export declare const gatewayCodeListFn: import("@tanstack/start-client-core").Re
56052
56637
  };
56053
56638
  Returns: import("../integrations/supabase/types").Json;
56054
56639
  };
56640
+ invoice_save_branding_settings: {
56641
+ Args: {
56642
+ _payload: import("../integrations/supabase/types").Json;
56643
+ };
56644
+ Returns: import("../integrations/supabase/types").Json;
56645
+ };
56646
+ invoice_set_email_purpose: {
56647
+ Args: {
56648
+ _purpose: string;
56649
+ };
56650
+ Returns: string;
56651
+ };
56055
56652
  invoice_source_lines: {
56056
56653
  Args: {
56057
56654
  _source_id: string;
@@ -56059,6 +56656,19 @@ export declare const gatewayCodeListFn: import("@tanstack/start-client-core").Re
56059
56656
  };
56060
56657
  Returns: import("../integrations/supabase/types").Json;
56061
56658
  };
56659
+ invoice_update_full: {
56660
+ Args: {
56661
+ _invoice_id: string;
56662
+ _payload: import("../integrations/supabase/types").Json;
56663
+ };
56664
+ Returns: import("../integrations/supabase/types").Json;
56665
+ };
56666
+ invoice_work_order_locked: {
56667
+ Args: {
56668
+ _werkbon_id: string;
56669
+ };
56670
+ Returns: import("../integrations/supabase/types").Json;
56671
+ };
56062
56672
  is_authenticated: {
56063
56673
  Args: never;
56064
56674
  Returns: boolean;
@@ -59358,6 +59968,19 @@ export declare const gatewayCodeListFn: import("@tanstack/start-client-core").Re
59358
59968
  };
59359
59969
  Returns: boolean;
59360
59970
  };
59971
+ quote_assign_number: {
59972
+ Args: {
59973
+ _offerte_id: string;
59974
+ };
59975
+ Returns: string;
59976
+ };
59977
+ quote_create_follow_up_now: {
59978
+ Args: {
59979
+ _offerte_id: string;
59980
+ _payload?: import("../integrations/supabase/types").Json;
59981
+ };
59982
+ Returns: import("../integrations/supabase/types").Json;
59983
+ };
59361
59984
  quote_create_from_source: {
59362
59985
  Args: {
59363
59986
  _payload?: import("../integrations/supabase/types").Json;
@@ -60071,6 +60694,26 @@ export declare const gatewayCodeListFn: import("@tanstack/start-client-core").Re
60071
60694
  };
60072
60695
  Returns: undefined;
60073
60696
  };
60697
+ set_product_stock: {
60698
+ Args: {
60699
+ p_incoming_stock?: number;
60700
+ p_minimum_stock?: number;
60701
+ p_notes?: string;
60702
+ p_physical_stock: number;
60703
+ p_product_id: string;
60704
+ };
60705
+ Returns: {
60706
+ connection_id: string;
60707
+ incoming_stock: number;
60708
+ minimum_stock: number;
60709
+ notes: string;
60710
+ physical_stock: number;
60711
+ product_id: string;
60712
+ reserved_stock: number;
60713
+ trade_item_key: string;
60714
+ updated_at: string;
60715
+ }[];
60716
+ };
60074
60717
  show_limit: {
60075
60718
  Args: never;
60076
60719
  Returns: number;
@@ -60595,6 +61238,13 @@ export declare const gatewayCodeListFn: import("@tanstack/start-client-core").Re
60595
61238
  };
60596
61239
  Returns: number;
60597
61240
  };
61241
+ vakantie_overuren: {
61242
+ Args: {
61243
+ _user_id: string;
61244
+ _year?: number;
61245
+ };
61246
+ Returns: number;
61247
+ };
60598
61248
  vakantie_saldo: {
60599
61249
  Args: {
60600
61250
  _user_id: string;
@@ -60602,7 +61252,12 @@ export declare const gatewayCodeListFn: import("@tanstack/start-client-core").Re
60602
61252
  };
60603
61253
  Returns: {
60604
61254
  day_hours: number;
61255
+ earned_from_overtime_days: number;
60605
61256
  entitlement_days: number;
61257
+ hours_to_next_day: number;
61258
+ overtime_hours: number;
61259
+ overtime_remainder_hours: number;
61260
+ paid_out_days: number;
60606
61261
  remaining_days: number;
60607
61262
  used_days: number;
60608
61263
  }[];
@@ -60613,7 +61268,12 @@ export declare const gatewayCodeListFn: import("@tanstack/start-client-core").Re
60613
61268
  };
60614
61269
  Returns: {
60615
61270
  day_hours: number;
61271
+ earned_from_overtime_days: number;
60616
61272
  entitlement_days: number;
61273
+ hours_to_next_day: number;
61274
+ overtime_hours: number;
61275
+ overtime_remainder_hours: number;
61276
+ paid_out_days: number;
60617
61277
  remaining_days: number;
60618
61278
  used_days: number;
60619
61279
  user_id: string;
@@ -60667,12 +61327,25 @@ export declare const gatewayCodeListFn: import("@tanstack/start-client-core").Re
60667
61327
  };
60668
61328
  Returns: import("../integrations/supabase/types").Json;
60669
61329
  };
61330
+ wo_list_proposals: {
61331
+ Args: {
61332
+ _status?: string;
61333
+ };
61334
+ Returns: import("../integrations/supabase/types").Json;
61335
+ };
60670
61336
  wo_process_offerte_request: {
60671
61337
  Args: {
60672
61338
  _queue_id: string;
60673
61339
  };
60674
61340
  Returns: import("../integrations/supabase/types").Json;
60675
61341
  };
61342
+ wo_process_proposal: {
61343
+ Args: {
61344
+ _id: string;
61345
+ _overrides?: import("../integrations/supabase/types").Json;
61346
+ };
61347
+ Returns: import("../integrations/supabase/types").Json;
61348
+ };
60676
61349
  wo_reject_offerte_request: {
60677
61350
  Args: {
60678
61351
  _queue_id: string;
@@ -60680,6 +61353,13 @@ export declare const gatewayCodeListFn: import("@tanstack/start-client-core").Re
60680
61353
  };
60681
61354
  Returns: import("../integrations/supabase/types").Json;
60682
61355
  };
61356
+ wo_reject_proposal: {
61357
+ Args: {
61358
+ _id: string;
61359
+ _reden?: string;
61360
+ };
61361
+ Returns: import("../integrations/supabase/types").Json;
61362
+ };
60683
61363
  wo_set_status: {
60684
61364
  Args: {
60685
61365
  _reason?: string;
@@ -68976,6 +69656,69 @@ export declare const gatewayCachedListFn: import("@tanstack/start-client-core").
68976
69656
  };
68977
69657
  Relationships: [];
68978
69658
  };
69659
+ invoice_branding_settings: {
69660
+ Row: {
69661
+ address: string;
69662
+ chamber_of_commerce_number: string;
69663
+ city: string;
69664
+ company_name: string;
69665
+ created_at: string;
69666
+ email: string;
69667
+ email_purpose: string | null;
69668
+ iban: string;
69669
+ logo_path: string | null;
69670
+ payment_term_days: number;
69671
+ phone: string;
69672
+ postal_code: string;
69673
+ primary_color: string;
69674
+ secondary_color: string;
69675
+ singleton_key: boolean;
69676
+ updated_at: string;
69677
+ vat_identification_number: string;
69678
+ website: string;
69679
+ };
69680
+ Insert: {
69681
+ address?: string;
69682
+ chamber_of_commerce_number?: string;
69683
+ city?: string;
69684
+ company_name?: string;
69685
+ created_at?: string;
69686
+ email?: string;
69687
+ email_purpose?: string | null;
69688
+ iban?: string;
69689
+ logo_path?: string | null;
69690
+ payment_term_days?: number;
69691
+ phone?: string;
69692
+ postal_code?: string;
69693
+ primary_color?: string;
69694
+ secondary_color?: string;
69695
+ singleton_key?: boolean;
69696
+ updated_at?: string;
69697
+ vat_identification_number?: string;
69698
+ website?: string;
69699
+ };
69700
+ Update: {
69701
+ address?: string;
69702
+ chamber_of_commerce_number?: string;
69703
+ city?: string;
69704
+ company_name?: string;
69705
+ created_at?: string;
69706
+ email?: string;
69707
+ email_purpose?: string | null;
69708
+ iban?: string;
69709
+ logo_path?: string | null;
69710
+ payment_term_days?: number;
69711
+ phone?: string;
69712
+ postal_code?: string;
69713
+ primary_color?: string;
69714
+ secondary_color?: string;
69715
+ singleton_key?: boolean;
69716
+ updated_at?: string;
69717
+ vat_identification_number?: string;
69718
+ website?: string;
69719
+ };
69720
+ Relationships: [];
69721
+ };
68979
69722
  invoice_items: {
68980
69723
  Row: {
68981
69724
  created_at: string;
@@ -68989,6 +69732,7 @@ export declare const gatewayCachedListFn: import("@tanstack/start-client-core").
68989
69732
  total_cents: number;
68990
69733
  unit: string;
68991
69734
  unit_price_cents: number;
69735
+ vat_rate: number | null;
68992
69736
  };
68993
69737
  Insert: {
68994
69738
  created_at?: string;
@@ -69002,6 +69746,7 @@ export declare const gatewayCachedListFn: import("@tanstack/start-client-core").
69002
69746
  total_cents?: number;
69003
69747
  unit?: string;
69004
69748
  unit_price_cents?: number;
69749
+ vat_rate?: number | null;
69005
69750
  };
69006
69751
  Update: {
69007
69752
  created_at?: string;
@@ -69015,6 +69760,7 @@ export declare const gatewayCachedListFn: import("@tanstack/start-client-core").
69015
69760
  total_cents?: number;
69016
69761
  unit?: string;
69017
69762
  unit_price_cents?: number;
69763
+ vat_rate?: number | null;
69018
69764
  };
69019
69765
  Relationships: [{
69020
69766
  foreignKeyName: "invoice_items_invoice_id_fkey";
@@ -69260,6 +70006,7 @@ export declare const gatewayCachedListFn: import("@tanstack/start-client-core").
69260
70006
  };
69261
70007
  invoices: {
69262
70008
  Row: {
70009
+ branding_snapshot: import("../integrations/supabase/types").Json | null;
69263
70010
  created_at: string;
69264
70011
  created_by: string | null;
69265
70012
  customer_address: string | null;
@@ -69278,6 +70025,8 @@ export declare const gatewayCachedListFn: import("@tanstack/start-client-core").
69278
70025
  note: string | null;
69279
70026
  payment_term_days: number;
69280
70027
  reference: string | null;
70028
+ sent_at: string | null;
70029
+ sent_to: string | null;
69281
70030
  source_number: string | null;
69282
70031
  source_ref: string | null;
69283
70032
  source_type: string;
@@ -69290,6 +70039,7 @@ export declare const gatewayCachedListFn: import("@tanstack/start-client-core").
69290
70039
  work_address: string | null;
69291
70040
  };
69292
70041
  Insert: {
70042
+ branding_snapshot?: import("../integrations/supabase/types").Json | null;
69293
70043
  created_at?: string;
69294
70044
  created_by?: string | null;
69295
70045
  customer_address?: string | null;
@@ -69308,6 +70058,8 @@ export declare const gatewayCachedListFn: import("@tanstack/start-client-core").
69308
70058
  note?: string | null;
69309
70059
  payment_term_days?: number;
69310
70060
  reference?: string | null;
70061
+ sent_at?: string | null;
70062
+ sent_to?: string | null;
69311
70063
  source_number?: string | null;
69312
70064
  source_ref?: string | null;
69313
70065
  source_type?: string;
@@ -69320,6 +70072,7 @@ export declare const gatewayCachedListFn: import("@tanstack/start-client-core").
69320
70072
  work_address?: string | null;
69321
70073
  };
69322
70074
  Update: {
70075
+ branding_snapshot?: import("../integrations/supabase/types").Json | null;
69323
70076
  created_at?: string;
69324
70077
  created_by?: string | null;
69325
70078
  customer_address?: string | null;
@@ -69338,6 +70091,8 @@ export declare const gatewayCachedListFn: import("@tanstack/start-client-core").
69338
70091
  note?: string | null;
69339
70092
  payment_term_days?: number;
69340
70093
  reference?: string | null;
70094
+ sent_at?: string | null;
70095
+ sent_to?: string | null;
69341
70096
  source_number?: string | null;
69342
70097
  source_ref?: string | null;
69343
70098
  source_type?: string;
@@ -70046,6 +70801,7 @@ export declare const gatewayCachedListFn: import("@tanstack/start-client-core").
70046
70801
  quantity: number;
70047
70802
  sort_order: number;
70048
70803
  source: string;
70804
+ unit: string | null;
70049
70805
  unit_price_cents: number;
70050
70806
  updated_at: string;
70051
70807
  };
@@ -70059,6 +70815,7 @@ export declare const gatewayCachedListFn: import("@tanstack/start-client-core").
70059
70815
  quantity?: number;
70060
70816
  sort_order?: number;
70061
70817
  source?: string;
70818
+ unit?: string | null;
70062
70819
  unit_price_cents?: number;
70063
70820
  updated_at?: string;
70064
70821
  };
@@ -70072,6 +70829,7 @@ export declare const gatewayCachedListFn: import("@tanstack/start-client-core").
70072
70829
  quantity?: number;
70073
70830
  sort_order?: number;
70074
70831
  source?: string;
70832
+ unit?: string | null;
70075
70833
  unit_price_cents?: number;
70076
70834
  updated_at?: string;
70077
70835
  };
@@ -70095,6 +70853,7 @@ export declare const gatewayCachedListFn: import("@tanstack/start-client-core").
70095
70853
  created_at: string;
70096
70854
  default_geldigheid_dagen: number;
70097
70855
  default_vat_rate: number;
70856
+ email_purpose: string | null;
70098
70857
  id: string;
70099
70858
  singleton: boolean;
70100
70859
  updated_at: string;
@@ -70104,6 +70863,7 @@ export declare const gatewayCachedListFn: import("@tanstack/start-client-core").
70104
70863
  created_at?: string;
70105
70864
  default_geldigheid_dagen?: number;
70106
70865
  default_vat_rate?: number;
70866
+ email_purpose?: string | null;
70107
70867
  id?: string;
70108
70868
  singleton?: boolean;
70109
70869
  updated_at?: string;
@@ -70113,6 +70873,7 @@ export declare const gatewayCachedListFn: import("@tanstack/start-client-core").
70113
70873
  created_at?: string;
70114
70874
  default_geldigheid_dagen?: number;
70115
70875
  default_vat_rate?: number;
70876
+ email_purpose?: string | null;
70116
70877
  id?: string;
70117
70878
  singleton?: boolean;
70118
70879
  updated_at?: string;
@@ -70205,6 +70966,7 @@ export declare const gatewayCachedListFn: import("@tanstack/start-client-core").
70205
70966
  };
70206
70967
  itk_offertes: {
70207
70968
  Row: {
70969
+ aandachtspunten: string | null;
70208
70970
  ai_generated: boolean;
70209
70971
  approved_at: string | null;
70210
70972
  binnen_mandaat: boolean;
@@ -70220,6 +70982,7 @@ export declare const gatewayCachedListFn: import("@tanstack/start-client-core").
70220
70982
  notities: string | null;
70221
70983
  offerte_number: string | null;
70222
70984
  omschrijving: string;
70985
+ onderwerp: string | null;
70223
70986
  rejected_at: string | null;
70224
70987
  sent_at: string | null;
70225
70988
  source_number: string | null;
@@ -70232,12 +70995,15 @@ export declare const gatewayCachedListFn: import("@tanstack/start-client-core").
70232
70995
  valid_until: string | null;
70233
70996
  vat_cents: number;
70234
70997
  vat_rate: number;
70998
+ verzonden_naar: string | null;
70235
70999
  viewed_at: string | null;
70236
71000
  volgnummer: number | null;
71001
+ voorwaarden: string | null;
70237
71002
  werkbon_id: string | null;
70238
71003
  work_location_id: string | null;
70239
71004
  };
70240
71005
  Insert: {
71006
+ aandachtspunten?: string | null;
70241
71007
  ai_generated?: boolean;
70242
71008
  approved_at?: string | null;
70243
71009
  binnen_mandaat?: boolean;
@@ -70253,6 +71019,7 @@ export declare const gatewayCachedListFn: import("@tanstack/start-client-core").
70253
71019
  notities?: string | null;
70254
71020
  offerte_number?: string | null;
70255
71021
  omschrijving?: string;
71022
+ onderwerp?: string | null;
70256
71023
  rejected_at?: string | null;
70257
71024
  sent_at?: string | null;
70258
71025
  source_number?: string | null;
@@ -70265,12 +71032,15 @@ export declare const gatewayCachedListFn: import("@tanstack/start-client-core").
70265
71032
  valid_until?: string | null;
70266
71033
  vat_cents?: number;
70267
71034
  vat_rate?: number;
71035
+ verzonden_naar?: string | null;
70268
71036
  viewed_at?: string | null;
70269
71037
  volgnummer?: number | null;
71038
+ voorwaarden?: string | null;
70270
71039
  werkbon_id?: string | null;
70271
71040
  work_location_id?: string | null;
70272
71041
  };
70273
71042
  Update: {
71043
+ aandachtspunten?: string | null;
70274
71044
  ai_generated?: boolean;
70275
71045
  approved_at?: string | null;
70276
71046
  binnen_mandaat?: boolean;
@@ -70286,6 +71056,7 @@ export declare const gatewayCachedListFn: import("@tanstack/start-client-core").
70286
71056
  notities?: string | null;
70287
71057
  offerte_number?: string | null;
70288
71058
  omschrijving?: string;
71059
+ onderwerp?: string | null;
70289
71060
  rejected_at?: string | null;
70290
71061
  sent_at?: string | null;
70291
71062
  source_number?: string | null;
@@ -70298,8 +71069,10 @@ export declare const gatewayCachedListFn: import("@tanstack/start-client-core").
70298
71069
  valid_until?: string | null;
70299
71070
  vat_cents?: number;
70300
71071
  vat_rate?: number;
71072
+ verzonden_naar?: string | null;
70301
71073
  viewed_at?: string | null;
70302
71074
  volgnummer?: number | null;
71075
+ voorwaarden?: string | null;
70303
71076
  werkbon_id?: string | null;
70304
71077
  work_location_id?: string | null;
70305
71078
  };
@@ -82377,6 +83150,51 @@ export declare const gatewayCachedListFn: import("@tanstack/start-client-core").
82377
83150
  referencedColumns: ["id"];
82378
83151
  }];
82379
83152
  };
83153
+ vakantie_uitbetalingen: {
83154
+ Row: {
83155
+ created_at: string;
83156
+ created_by: string | null;
83157
+ days: number;
83158
+ id: string;
83159
+ note: string | null;
83160
+ updated_at: string;
83161
+ user_id: string;
83162
+ year: number;
83163
+ };
83164
+ Insert: {
83165
+ created_at?: string;
83166
+ created_by?: string | null;
83167
+ days: number;
83168
+ id?: string;
83169
+ note?: string | null;
83170
+ updated_at?: string;
83171
+ user_id: string;
83172
+ year?: number;
83173
+ };
83174
+ Update: {
83175
+ created_at?: string;
83176
+ created_by?: string | null;
83177
+ days?: number;
83178
+ id?: string;
83179
+ note?: string | null;
83180
+ updated_at?: string;
83181
+ user_id?: string;
83182
+ year?: number;
83183
+ };
83184
+ Relationships: [{
83185
+ foreignKeyName: "vakantie_uitbetalingen_created_by_fkey";
83186
+ columns: ["created_by"];
83187
+ isOneToOne: false;
83188
+ referencedRelation: "profiles";
83189
+ referencedColumns: ["id"];
83190
+ }, {
83191
+ foreignKeyName: "vakantie_uitbetalingen_user_id_fkey";
83192
+ columns: ["user_id"];
83193
+ isOneToOne: false;
83194
+ referencedRelation: "profiles";
83195
+ referencedColumns: ["id"];
83196
+ }];
83197
+ };
82380
83198
  van_inventories: {
82381
83199
  Row: {
82382
83200
  barcode: string | null;
@@ -83661,6 +84479,78 @@ export declare const gatewayCachedListFn: import("@tanstack/start-client-core").
83661
84479
  referencedColumns: ["id"];
83662
84480
  }];
83663
84481
  };
84482
+ werkbon_voorstellen: {
84483
+ Row: {
84484
+ bron_werkbon_id: string;
84485
+ budget_mandate_cents: number;
84486
+ created_at: string;
84487
+ created_by: string;
84488
+ customer_id: string | null;
84489
+ id: string;
84490
+ payload: import("../integrations/supabase/types").Json;
84491
+ reden: string | null;
84492
+ status: string;
84493
+ updated_at: string;
84494
+ verwerkt_door: string | null;
84495
+ verwerkt_op: string | null;
84496
+ werkbon_id: string | null;
84497
+ };
84498
+ Insert: {
84499
+ bron_werkbon_id: string;
84500
+ budget_mandate_cents?: number;
84501
+ created_at?: string;
84502
+ created_by?: string;
84503
+ customer_id?: string | null;
84504
+ id?: string;
84505
+ payload?: import("../integrations/supabase/types").Json;
84506
+ reden?: string | null;
84507
+ status?: string;
84508
+ updated_at?: string;
84509
+ verwerkt_door?: string | null;
84510
+ verwerkt_op?: string | null;
84511
+ werkbon_id?: string | null;
84512
+ };
84513
+ Update: {
84514
+ bron_werkbon_id?: string;
84515
+ budget_mandate_cents?: number;
84516
+ created_at?: string;
84517
+ created_by?: string;
84518
+ customer_id?: string | null;
84519
+ id?: string;
84520
+ payload?: import("../integrations/supabase/types").Json;
84521
+ reden?: string | null;
84522
+ status?: string;
84523
+ updated_at?: string;
84524
+ verwerkt_door?: string | null;
84525
+ verwerkt_op?: string | null;
84526
+ werkbon_id?: string | null;
84527
+ };
84528
+ Relationships: [{
84529
+ foreignKeyName: "werkbon_voorstellen_bron_werkbon_id_fkey";
84530
+ columns: ["bron_werkbon_id"];
84531
+ isOneToOne: false;
84532
+ referencedRelation: "werkbonnen";
84533
+ referencedColumns: ["id"];
84534
+ }, {
84535
+ foreignKeyName: "werkbon_voorstellen_bron_werkbon_id_fkey";
84536
+ columns: ["bron_werkbon_id"];
84537
+ isOneToOne: false;
84538
+ referencedRelation: "wo_overview";
84539
+ referencedColumns: ["id"];
84540
+ }, {
84541
+ foreignKeyName: "werkbon_voorstellen_werkbon_id_fkey";
84542
+ columns: ["werkbon_id"];
84543
+ isOneToOne: false;
84544
+ referencedRelation: "werkbonnen";
84545
+ referencedColumns: ["id"];
84546
+ }, {
84547
+ foreignKeyName: "werkbon_voorstellen_werkbon_id_fkey";
84548
+ columns: ["werkbon_id"];
84549
+ isOneToOne: false;
84550
+ referencedRelation: "wo_overview";
84551
+ referencedColumns: ["id"];
84552
+ }];
84553
+ };
83664
84554
  werkbonnen: {
83665
84555
  Row: {
83666
84556
  assigned_user_id: string | null;
@@ -84901,6 +85791,10 @@ export declare const gatewayCachedListFn: import("@tanstack/start-client-core").
84901
85791
  };
84902
85792
  Returns: undefined;
84903
85793
  };
85794
+ _wo_is_planner: {
85795
+ Args: never;
85796
+ Returns: boolean;
85797
+ };
84904
85798
  afh_city_code: {
84905
85799
  Args: {
84906
85800
  _city: string;
@@ -86013,6 +86907,22 @@ export declare const gatewayCachedListFn: import("@tanstack/start-client-core").
86013
86907
  };
86014
86908
  Returns: number;
86015
86909
  };
86910
+ get_product_stock: {
86911
+ Args: {
86912
+ p_product_id: string;
86913
+ };
86914
+ Returns: {
86915
+ connection_id: string;
86916
+ incoming_stock: number;
86917
+ minimum_stock: number;
86918
+ notes: string;
86919
+ physical_stock: number;
86920
+ product_id: string;
86921
+ reserved_stock: number;
86922
+ trade_item_key: string;
86923
+ updated_at: string;
86924
+ }[];
86925
+ };
86016
86926
  get_room_busy_windows: {
86017
86927
  Args: {
86018
86928
  p_from: string;
@@ -86350,6 +87260,10 @@ export declare const gatewayCachedListFn: import("@tanstack/start-client-core").
86350
87260
  };
86351
87261
  Returns: number;
86352
87262
  };
87263
+ invoice_branding_snapshot: {
87264
+ Args: never;
87265
+ Returns: import("../integrations/supabase/types").Json;
87266
+ };
86353
87267
  invoice_create_from_source: {
86354
87268
  Args: {
86355
87269
  _payload?: import("../integrations/supabase/types").Json;
@@ -86384,6 +87298,17 @@ export declare const gatewayCachedListFn: import("@tanstack/start-client-core").
86384
87298
  };
86385
87299
  Returns: import("../integrations/supabase/types").Json;
86386
87300
  };
87301
+ invoice_mark_sent: {
87302
+ Args: {
87303
+ _invoice_id: string;
87304
+ _to: string;
87305
+ };
87306
+ Returns: undefined;
87307
+ };
87308
+ invoice_peek_next_number: {
87309
+ Args: never;
87310
+ Returns: string;
87311
+ };
86387
87312
  invoice_ready_work_orders: {
86388
87313
  Args: {
86389
87314
  _limit?: number;
@@ -86396,6 +87321,18 @@ export declare const gatewayCachedListFn: import("@tanstack/start-client-core").
86396
87321
  };
86397
87322
  Returns: import("../integrations/supabase/types").Json;
86398
87323
  };
87324
+ invoice_save_branding_settings: {
87325
+ Args: {
87326
+ _payload: import("../integrations/supabase/types").Json;
87327
+ };
87328
+ Returns: import("../integrations/supabase/types").Json;
87329
+ };
87330
+ invoice_set_email_purpose: {
87331
+ Args: {
87332
+ _purpose: string;
87333
+ };
87334
+ Returns: string;
87335
+ };
86399
87336
  invoice_source_lines: {
86400
87337
  Args: {
86401
87338
  _source_id: string;
@@ -86403,6 +87340,19 @@ export declare const gatewayCachedListFn: import("@tanstack/start-client-core").
86403
87340
  };
86404
87341
  Returns: import("../integrations/supabase/types").Json;
86405
87342
  };
87343
+ invoice_update_full: {
87344
+ Args: {
87345
+ _invoice_id: string;
87346
+ _payload: import("../integrations/supabase/types").Json;
87347
+ };
87348
+ Returns: import("../integrations/supabase/types").Json;
87349
+ };
87350
+ invoice_work_order_locked: {
87351
+ Args: {
87352
+ _werkbon_id: string;
87353
+ };
87354
+ Returns: import("../integrations/supabase/types").Json;
87355
+ };
86406
87356
  is_authenticated: {
86407
87357
  Args: never;
86408
87358
  Returns: boolean;
@@ -89702,6 +90652,19 @@ export declare const gatewayCachedListFn: import("@tanstack/start-client-core").
89702
90652
  };
89703
90653
  Returns: boolean;
89704
90654
  };
90655
+ quote_assign_number: {
90656
+ Args: {
90657
+ _offerte_id: string;
90658
+ };
90659
+ Returns: string;
90660
+ };
90661
+ quote_create_follow_up_now: {
90662
+ Args: {
90663
+ _offerte_id: string;
90664
+ _payload?: import("../integrations/supabase/types").Json;
90665
+ };
90666
+ Returns: import("../integrations/supabase/types").Json;
90667
+ };
89705
90668
  quote_create_from_source: {
89706
90669
  Args: {
89707
90670
  _payload?: import("../integrations/supabase/types").Json;
@@ -90415,6 +91378,26 @@ export declare const gatewayCachedListFn: import("@tanstack/start-client-core").
90415
91378
  };
90416
91379
  Returns: undefined;
90417
91380
  };
91381
+ set_product_stock: {
91382
+ Args: {
91383
+ p_incoming_stock?: number;
91384
+ p_minimum_stock?: number;
91385
+ p_notes?: string;
91386
+ p_physical_stock: number;
91387
+ p_product_id: string;
91388
+ };
91389
+ Returns: {
91390
+ connection_id: string;
91391
+ incoming_stock: number;
91392
+ minimum_stock: number;
91393
+ notes: string;
91394
+ physical_stock: number;
91395
+ product_id: string;
91396
+ reserved_stock: number;
91397
+ trade_item_key: string;
91398
+ updated_at: string;
91399
+ }[];
91400
+ };
90418
91401
  show_limit: {
90419
91402
  Args: never;
90420
91403
  Returns: number;
@@ -90939,6 +91922,13 @@ export declare const gatewayCachedListFn: import("@tanstack/start-client-core").
90939
91922
  };
90940
91923
  Returns: number;
90941
91924
  };
91925
+ vakantie_overuren: {
91926
+ Args: {
91927
+ _user_id: string;
91928
+ _year?: number;
91929
+ };
91930
+ Returns: number;
91931
+ };
90942
91932
  vakantie_saldo: {
90943
91933
  Args: {
90944
91934
  _user_id: string;
@@ -90946,7 +91936,12 @@ export declare const gatewayCachedListFn: import("@tanstack/start-client-core").
90946
91936
  };
90947
91937
  Returns: {
90948
91938
  day_hours: number;
91939
+ earned_from_overtime_days: number;
90949
91940
  entitlement_days: number;
91941
+ hours_to_next_day: number;
91942
+ overtime_hours: number;
91943
+ overtime_remainder_hours: number;
91944
+ paid_out_days: number;
90950
91945
  remaining_days: number;
90951
91946
  used_days: number;
90952
91947
  }[];
@@ -90957,7 +91952,12 @@ export declare const gatewayCachedListFn: import("@tanstack/start-client-core").
90957
91952
  };
90958
91953
  Returns: {
90959
91954
  day_hours: number;
91955
+ earned_from_overtime_days: number;
90960
91956
  entitlement_days: number;
91957
+ hours_to_next_day: number;
91958
+ overtime_hours: number;
91959
+ overtime_remainder_hours: number;
91960
+ paid_out_days: number;
90961
91961
  remaining_days: number;
90962
91962
  used_days: number;
90963
91963
  user_id: string;
@@ -91011,12 +92011,25 @@ export declare const gatewayCachedListFn: import("@tanstack/start-client-core").
91011
92011
  };
91012
92012
  Returns: import("../integrations/supabase/types").Json;
91013
92013
  };
92014
+ wo_list_proposals: {
92015
+ Args: {
92016
+ _status?: string;
92017
+ };
92018
+ Returns: import("../integrations/supabase/types").Json;
92019
+ };
91014
92020
  wo_process_offerte_request: {
91015
92021
  Args: {
91016
92022
  _queue_id: string;
91017
92023
  };
91018
92024
  Returns: import("../integrations/supabase/types").Json;
91019
92025
  };
92026
+ wo_process_proposal: {
92027
+ Args: {
92028
+ _id: string;
92029
+ _overrides?: import("../integrations/supabase/types").Json;
92030
+ };
92031
+ Returns: import("../integrations/supabase/types").Json;
92032
+ };
91020
92033
  wo_reject_offerte_request: {
91021
92034
  Args: {
91022
92035
  _queue_id: string;
@@ -91024,6 +92037,13 @@ export declare const gatewayCachedListFn: import("@tanstack/start-client-core").
91024
92037
  };
91025
92038
  Returns: import("../integrations/supabase/types").Json;
91026
92039
  };
92040
+ wo_reject_proposal: {
92041
+ Args: {
92042
+ _id: string;
92043
+ _reden?: string;
92044
+ };
92045
+ Returns: import("../integrations/supabase/types").Json;
92046
+ };
91027
92047
  wo_set_status: {
91028
92048
  Args: {
91029
92049
  _reason?: string;
@@ -99320,6 +100340,69 @@ export declare const gatewayWriteFn: import("@tanstack/start-client-core").Requi
99320
100340
  };
99321
100341
  Relationships: [];
99322
100342
  };
100343
+ invoice_branding_settings: {
100344
+ Row: {
100345
+ address: string;
100346
+ chamber_of_commerce_number: string;
100347
+ city: string;
100348
+ company_name: string;
100349
+ created_at: string;
100350
+ email: string;
100351
+ email_purpose: string | null;
100352
+ iban: string;
100353
+ logo_path: string | null;
100354
+ payment_term_days: number;
100355
+ phone: string;
100356
+ postal_code: string;
100357
+ primary_color: string;
100358
+ secondary_color: string;
100359
+ singleton_key: boolean;
100360
+ updated_at: string;
100361
+ vat_identification_number: string;
100362
+ website: string;
100363
+ };
100364
+ Insert: {
100365
+ address?: string;
100366
+ chamber_of_commerce_number?: string;
100367
+ city?: string;
100368
+ company_name?: string;
100369
+ created_at?: string;
100370
+ email?: string;
100371
+ email_purpose?: string | null;
100372
+ iban?: string;
100373
+ logo_path?: string | null;
100374
+ payment_term_days?: number;
100375
+ phone?: string;
100376
+ postal_code?: string;
100377
+ primary_color?: string;
100378
+ secondary_color?: string;
100379
+ singleton_key?: boolean;
100380
+ updated_at?: string;
100381
+ vat_identification_number?: string;
100382
+ website?: string;
100383
+ };
100384
+ Update: {
100385
+ address?: string;
100386
+ chamber_of_commerce_number?: string;
100387
+ city?: string;
100388
+ company_name?: string;
100389
+ created_at?: string;
100390
+ email?: string;
100391
+ email_purpose?: string | null;
100392
+ iban?: string;
100393
+ logo_path?: string | null;
100394
+ payment_term_days?: number;
100395
+ phone?: string;
100396
+ postal_code?: string;
100397
+ primary_color?: string;
100398
+ secondary_color?: string;
100399
+ singleton_key?: boolean;
100400
+ updated_at?: string;
100401
+ vat_identification_number?: string;
100402
+ website?: string;
100403
+ };
100404
+ Relationships: [];
100405
+ };
99323
100406
  invoice_items: {
99324
100407
  Row: {
99325
100408
  created_at: string;
@@ -99333,6 +100416,7 @@ export declare const gatewayWriteFn: import("@tanstack/start-client-core").Requi
99333
100416
  total_cents: number;
99334
100417
  unit: string;
99335
100418
  unit_price_cents: number;
100419
+ vat_rate: number | null;
99336
100420
  };
99337
100421
  Insert: {
99338
100422
  created_at?: string;
@@ -99346,6 +100430,7 @@ export declare const gatewayWriteFn: import("@tanstack/start-client-core").Requi
99346
100430
  total_cents?: number;
99347
100431
  unit?: string;
99348
100432
  unit_price_cents?: number;
100433
+ vat_rate?: number | null;
99349
100434
  };
99350
100435
  Update: {
99351
100436
  created_at?: string;
@@ -99359,6 +100444,7 @@ export declare const gatewayWriteFn: import("@tanstack/start-client-core").Requi
99359
100444
  total_cents?: number;
99360
100445
  unit?: string;
99361
100446
  unit_price_cents?: number;
100447
+ vat_rate?: number | null;
99362
100448
  };
99363
100449
  Relationships: [{
99364
100450
  foreignKeyName: "invoice_items_invoice_id_fkey";
@@ -99604,6 +100690,7 @@ export declare const gatewayWriteFn: import("@tanstack/start-client-core").Requi
99604
100690
  };
99605
100691
  invoices: {
99606
100692
  Row: {
100693
+ branding_snapshot: import("../integrations/supabase/types").Json | null;
99607
100694
  created_at: string;
99608
100695
  created_by: string | null;
99609
100696
  customer_address: string | null;
@@ -99622,6 +100709,8 @@ export declare const gatewayWriteFn: import("@tanstack/start-client-core").Requi
99622
100709
  note: string | null;
99623
100710
  payment_term_days: number;
99624
100711
  reference: string | null;
100712
+ sent_at: string | null;
100713
+ sent_to: string | null;
99625
100714
  source_number: string | null;
99626
100715
  source_ref: string | null;
99627
100716
  source_type: string;
@@ -99634,6 +100723,7 @@ export declare const gatewayWriteFn: import("@tanstack/start-client-core").Requi
99634
100723
  work_address: string | null;
99635
100724
  };
99636
100725
  Insert: {
100726
+ branding_snapshot?: import("../integrations/supabase/types").Json | null;
99637
100727
  created_at?: string;
99638
100728
  created_by?: string | null;
99639
100729
  customer_address?: string | null;
@@ -99652,6 +100742,8 @@ export declare const gatewayWriteFn: import("@tanstack/start-client-core").Requi
99652
100742
  note?: string | null;
99653
100743
  payment_term_days?: number;
99654
100744
  reference?: string | null;
100745
+ sent_at?: string | null;
100746
+ sent_to?: string | null;
99655
100747
  source_number?: string | null;
99656
100748
  source_ref?: string | null;
99657
100749
  source_type?: string;
@@ -99664,6 +100756,7 @@ export declare const gatewayWriteFn: import("@tanstack/start-client-core").Requi
99664
100756
  work_address?: string | null;
99665
100757
  };
99666
100758
  Update: {
100759
+ branding_snapshot?: import("../integrations/supabase/types").Json | null;
99667
100760
  created_at?: string;
99668
100761
  created_by?: string | null;
99669
100762
  customer_address?: string | null;
@@ -99682,6 +100775,8 @@ export declare const gatewayWriteFn: import("@tanstack/start-client-core").Requi
99682
100775
  note?: string | null;
99683
100776
  payment_term_days?: number;
99684
100777
  reference?: string | null;
100778
+ sent_at?: string | null;
100779
+ sent_to?: string | null;
99685
100780
  source_number?: string | null;
99686
100781
  source_ref?: string | null;
99687
100782
  source_type?: string;
@@ -100390,6 +101485,7 @@ export declare const gatewayWriteFn: import("@tanstack/start-client-core").Requi
100390
101485
  quantity: number;
100391
101486
  sort_order: number;
100392
101487
  source: string;
101488
+ unit: string | null;
100393
101489
  unit_price_cents: number;
100394
101490
  updated_at: string;
100395
101491
  };
@@ -100403,6 +101499,7 @@ export declare const gatewayWriteFn: import("@tanstack/start-client-core").Requi
100403
101499
  quantity?: number;
100404
101500
  sort_order?: number;
100405
101501
  source?: string;
101502
+ unit?: string | null;
100406
101503
  unit_price_cents?: number;
100407
101504
  updated_at?: string;
100408
101505
  };
@@ -100416,6 +101513,7 @@ export declare const gatewayWriteFn: import("@tanstack/start-client-core").Requi
100416
101513
  quantity?: number;
100417
101514
  sort_order?: number;
100418
101515
  source?: string;
101516
+ unit?: string | null;
100419
101517
  unit_price_cents?: number;
100420
101518
  updated_at?: string;
100421
101519
  };
@@ -100439,6 +101537,7 @@ export declare const gatewayWriteFn: import("@tanstack/start-client-core").Requi
100439
101537
  created_at: string;
100440
101538
  default_geldigheid_dagen: number;
100441
101539
  default_vat_rate: number;
101540
+ email_purpose: string | null;
100442
101541
  id: string;
100443
101542
  singleton: boolean;
100444
101543
  updated_at: string;
@@ -100448,6 +101547,7 @@ export declare const gatewayWriteFn: import("@tanstack/start-client-core").Requi
100448
101547
  created_at?: string;
100449
101548
  default_geldigheid_dagen?: number;
100450
101549
  default_vat_rate?: number;
101550
+ email_purpose?: string | null;
100451
101551
  id?: string;
100452
101552
  singleton?: boolean;
100453
101553
  updated_at?: string;
@@ -100457,6 +101557,7 @@ export declare const gatewayWriteFn: import("@tanstack/start-client-core").Requi
100457
101557
  created_at?: string;
100458
101558
  default_geldigheid_dagen?: number;
100459
101559
  default_vat_rate?: number;
101560
+ email_purpose?: string | null;
100460
101561
  id?: string;
100461
101562
  singleton?: boolean;
100462
101563
  updated_at?: string;
@@ -100549,6 +101650,7 @@ export declare const gatewayWriteFn: import("@tanstack/start-client-core").Requi
100549
101650
  };
100550
101651
  itk_offertes: {
100551
101652
  Row: {
101653
+ aandachtspunten: string | null;
100552
101654
  ai_generated: boolean;
100553
101655
  approved_at: string | null;
100554
101656
  binnen_mandaat: boolean;
@@ -100564,6 +101666,7 @@ export declare const gatewayWriteFn: import("@tanstack/start-client-core").Requi
100564
101666
  notities: string | null;
100565
101667
  offerte_number: string | null;
100566
101668
  omschrijving: string;
101669
+ onderwerp: string | null;
100567
101670
  rejected_at: string | null;
100568
101671
  sent_at: string | null;
100569
101672
  source_number: string | null;
@@ -100576,12 +101679,15 @@ export declare const gatewayWriteFn: import("@tanstack/start-client-core").Requi
100576
101679
  valid_until: string | null;
100577
101680
  vat_cents: number;
100578
101681
  vat_rate: number;
101682
+ verzonden_naar: string | null;
100579
101683
  viewed_at: string | null;
100580
101684
  volgnummer: number | null;
101685
+ voorwaarden: string | null;
100581
101686
  werkbon_id: string | null;
100582
101687
  work_location_id: string | null;
100583
101688
  };
100584
101689
  Insert: {
101690
+ aandachtspunten?: string | null;
100585
101691
  ai_generated?: boolean;
100586
101692
  approved_at?: string | null;
100587
101693
  binnen_mandaat?: boolean;
@@ -100597,6 +101703,7 @@ export declare const gatewayWriteFn: import("@tanstack/start-client-core").Requi
100597
101703
  notities?: string | null;
100598
101704
  offerte_number?: string | null;
100599
101705
  omschrijving?: string;
101706
+ onderwerp?: string | null;
100600
101707
  rejected_at?: string | null;
100601
101708
  sent_at?: string | null;
100602
101709
  source_number?: string | null;
@@ -100609,12 +101716,15 @@ export declare const gatewayWriteFn: import("@tanstack/start-client-core").Requi
100609
101716
  valid_until?: string | null;
100610
101717
  vat_cents?: number;
100611
101718
  vat_rate?: number;
101719
+ verzonden_naar?: string | null;
100612
101720
  viewed_at?: string | null;
100613
101721
  volgnummer?: number | null;
101722
+ voorwaarden?: string | null;
100614
101723
  werkbon_id?: string | null;
100615
101724
  work_location_id?: string | null;
100616
101725
  };
100617
101726
  Update: {
101727
+ aandachtspunten?: string | null;
100618
101728
  ai_generated?: boolean;
100619
101729
  approved_at?: string | null;
100620
101730
  binnen_mandaat?: boolean;
@@ -100630,6 +101740,7 @@ export declare const gatewayWriteFn: import("@tanstack/start-client-core").Requi
100630
101740
  notities?: string | null;
100631
101741
  offerte_number?: string | null;
100632
101742
  omschrijving?: string;
101743
+ onderwerp?: string | null;
100633
101744
  rejected_at?: string | null;
100634
101745
  sent_at?: string | null;
100635
101746
  source_number?: string | null;
@@ -100642,8 +101753,10 @@ export declare const gatewayWriteFn: import("@tanstack/start-client-core").Requi
100642
101753
  valid_until?: string | null;
100643
101754
  vat_cents?: number;
100644
101755
  vat_rate?: number;
101756
+ verzonden_naar?: string | null;
100645
101757
  viewed_at?: string | null;
100646
101758
  volgnummer?: number | null;
101759
+ voorwaarden?: string | null;
100647
101760
  werkbon_id?: string | null;
100648
101761
  work_location_id?: string | null;
100649
101762
  };
@@ -112721,6 +113834,51 @@ export declare const gatewayWriteFn: import("@tanstack/start-client-core").Requi
112721
113834
  referencedColumns: ["id"];
112722
113835
  }];
112723
113836
  };
113837
+ vakantie_uitbetalingen: {
113838
+ Row: {
113839
+ created_at: string;
113840
+ created_by: string | null;
113841
+ days: number;
113842
+ id: string;
113843
+ note: string | null;
113844
+ updated_at: string;
113845
+ user_id: string;
113846
+ year: number;
113847
+ };
113848
+ Insert: {
113849
+ created_at?: string;
113850
+ created_by?: string | null;
113851
+ days: number;
113852
+ id?: string;
113853
+ note?: string | null;
113854
+ updated_at?: string;
113855
+ user_id: string;
113856
+ year?: number;
113857
+ };
113858
+ Update: {
113859
+ created_at?: string;
113860
+ created_by?: string | null;
113861
+ days?: number;
113862
+ id?: string;
113863
+ note?: string | null;
113864
+ updated_at?: string;
113865
+ user_id?: string;
113866
+ year?: number;
113867
+ };
113868
+ Relationships: [{
113869
+ foreignKeyName: "vakantie_uitbetalingen_created_by_fkey";
113870
+ columns: ["created_by"];
113871
+ isOneToOne: false;
113872
+ referencedRelation: "profiles";
113873
+ referencedColumns: ["id"];
113874
+ }, {
113875
+ foreignKeyName: "vakantie_uitbetalingen_user_id_fkey";
113876
+ columns: ["user_id"];
113877
+ isOneToOne: false;
113878
+ referencedRelation: "profiles";
113879
+ referencedColumns: ["id"];
113880
+ }];
113881
+ };
112724
113882
  van_inventories: {
112725
113883
  Row: {
112726
113884
  barcode: string | null;
@@ -114005,6 +115163,78 @@ export declare const gatewayWriteFn: import("@tanstack/start-client-core").Requi
114005
115163
  referencedColumns: ["id"];
114006
115164
  }];
114007
115165
  };
115166
+ werkbon_voorstellen: {
115167
+ Row: {
115168
+ bron_werkbon_id: string;
115169
+ budget_mandate_cents: number;
115170
+ created_at: string;
115171
+ created_by: string;
115172
+ customer_id: string | null;
115173
+ id: string;
115174
+ payload: import("../integrations/supabase/types").Json;
115175
+ reden: string | null;
115176
+ status: string;
115177
+ updated_at: string;
115178
+ verwerkt_door: string | null;
115179
+ verwerkt_op: string | null;
115180
+ werkbon_id: string | null;
115181
+ };
115182
+ Insert: {
115183
+ bron_werkbon_id: string;
115184
+ budget_mandate_cents?: number;
115185
+ created_at?: string;
115186
+ created_by?: string;
115187
+ customer_id?: string | null;
115188
+ id?: string;
115189
+ payload?: import("../integrations/supabase/types").Json;
115190
+ reden?: string | null;
115191
+ status?: string;
115192
+ updated_at?: string;
115193
+ verwerkt_door?: string | null;
115194
+ verwerkt_op?: string | null;
115195
+ werkbon_id?: string | null;
115196
+ };
115197
+ Update: {
115198
+ bron_werkbon_id?: string;
115199
+ budget_mandate_cents?: number;
115200
+ created_at?: string;
115201
+ created_by?: string;
115202
+ customer_id?: string | null;
115203
+ id?: string;
115204
+ payload?: import("../integrations/supabase/types").Json;
115205
+ reden?: string | null;
115206
+ status?: string;
115207
+ updated_at?: string;
115208
+ verwerkt_door?: string | null;
115209
+ verwerkt_op?: string | null;
115210
+ werkbon_id?: string | null;
115211
+ };
115212
+ Relationships: [{
115213
+ foreignKeyName: "werkbon_voorstellen_bron_werkbon_id_fkey";
115214
+ columns: ["bron_werkbon_id"];
115215
+ isOneToOne: false;
115216
+ referencedRelation: "werkbonnen";
115217
+ referencedColumns: ["id"];
115218
+ }, {
115219
+ foreignKeyName: "werkbon_voorstellen_bron_werkbon_id_fkey";
115220
+ columns: ["bron_werkbon_id"];
115221
+ isOneToOne: false;
115222
+ referencedRelation: "wo_overview";
115223
+ referencedColumns: ["id"];
115224
+ }, {
115225
+ foreignKeyName: "werkbon_voorstellen_werkbon_id_fkey";
115226
+ columns: ["werkbon_id"];
115227
+ isOneToOne: false;
115228
+ referencedRelation: "werkbonnen";
115229
+ referencedColumns: ["id"];
115230
+ }, {
115231
+ foreignKeyName: "werkbon_voorstellen_werkbon_id_fkey";
115232
+ columns: ["werkbon_id"];
115233
+ isOneToOne: false;
115234
+ referencedRelation: "wo_overview";
115235
+ referencedColumns: ["id"];
115236
+ }];
115237
+ };
114008
115238
  werkbonnen: {
114009
115239
  Row: {
114010
115240
  assigned_user_id: string | null;
@@ -115245,6 +116475,10 @@ export declare const gatewayWriteFn: import("@tanstack/start-client-core").Requi
115245
116475
  };
115246
116476
  Returns: undefined;
115247
116477
  };
116478
+ _wo_is_planner: {
116479
+ Args: never;
116480
+ Returns: boolean;
116481
+ };
115248
116482
  afh_city_code: {
115249
116483
  Args: {
115250
116484
  _city: string;
@@ -116357,6 +117591,22 @@ export declare const gatewayWriteFn: import("@tanstack/start-client-core").Requi
116357
117591
  };
116358
117592
  Returns: number;
116359
117593
  };
117594
+ get_product_stock: {
117595
+ Args: {
117596
+ p_product_id: string;
117597
+ };
117598
+ Returns: {
117599
+ connection_id: string;
117600
+ incoming_stock: number;
117601
+ minimum_stock: number;
117602
+ notes: string;
117603
+ physical_stock: number;
117604
+ product_id: string;
117605
+ reserved_stock: number;
117606
+ trade_item_key: string;
117607
+ updated_at: string;
117608
+ }[];
117609
+ };
116360
117610
  get_room_busy_windows: {
116361
117611
  Args: {
116362
117612
  p_from: string;
@@ -116694,6 +117944,10 @@ export declare const gatewayWriteFn: import("@tanstack/start-client-core").Requi
116694
117944
  };
116695
117945
  Returns: number;
116696
117946
  };
117947
+ invoice_branding_snapshot: {
117948
+ Args: never;
117949
+ Returns: import("../integrations/supabase/types").Json;
117950
+ };
116697
117951
  invoice_create_from_source: {
116698
117952
  Args: {
116699
117953
  _payload?: import("../integrations/supabase/types").Json;
@@ -116728,6 +117982,17 @@ export declare const gatewayWriteFn: import("@tanstack/start-client-core").Requi
116728
117982
  };
116729
117983
  Returns: import("../integrations/supabase/types").Json;
116730
117984
  };
117985
+ invoice_mark_sent: {
117986
+ Args: {
117987
+ _invoice_id: string;
117988
+ _to: string;
117989
+ };
117990
+ Returns: undefined;
117991
+ };
117992
+ invoice_peek_next_number: {
117993
+ Args: never;
117994
+ Returns: string;
117995
+ };
116731
117996
  invoice_ready_work_orders: {
116732
117997
  Args: {
116733
117998
  _limit?: number;
@@ -116740,6 +118005,18 @@ export declare const gatewayWriteFn: import("@tanstack/start-client-core").Requi
116740
118005
  };
116741
118006
  Returns: import("../integrations/supabase/types").Json;
116742
118007
  };
118008
+ invoice_save_branding_settings: {
118009
+ Args: {
118010
+ _payload: import("../integrations/supabase/types").Json;
118011
+ };
118012
+ Returns: import("../integrations/supabase/types").Json;
118013
+ };
118014
+ invoice_set_email_purpose: {
118015
+ Args: {
118016
+ _purpose: string;
118017
+ };
118018
+ Returns: string;
118019
+ };
116743
118020
  invoice_source_lines: {
116744
118021
  Args: {
116745
118022
  _source_id: string;
@@ -116747,6 +118024,19 @@ export declare const gatewayWriteFn: import("@tanstack/start-client-core").Requi
116747
118024
  };
116748
118025
  Returns: import("../integrations/supabase/types").Json;
116749
118026
  };
118027
+ invoice_update_full: {
118028
+ Args: {
118029
+ _invoice_id: string;
118030
+ _payload: import("../integrations/supabase/types").Json;
118031
+ };
118032
+ Returns: import("../integrations/supabase/types").Json;
118033
+ };
118034
+ invoice_work_order_locked: {
118035
+ Args: {
118036
+ _werkbon_id: string;
118037
+ };
118038
+ Returns: import("../integrations/supabase/types").Json;
118039
+ };
116750
118040
  is_authenticated: {
116751
118041
  Args: never;
116752
118042
  Returns: boolean;
@@ -120046,6 +121336,19 @@ export declare const gatewayWriteFn: import("@tanstack/start-client-core").Requi
120046
121336
  };
120047
121337
  Returns: boolean;
120048
121338
  };
121339
+ quote_assign_number: {
121340
+ Args: {
121341
+ _offerte_id: string;
121342
+ };
121343
+ Returns: string;
121344
+ };
121345
+ quote_create_follow_up_now: {
121346
+ Args: {
121347
+ _offerte_id: string;
121348
+ _payload?: import("../integrations/supabase/types").Json;
121349
+ };
121350
+ Returns: import("../integrations/supabase/types").Json;
121351
+ };
120049
121352
  quote_create_from_source: {
120050
121353
  Args: {
120051
121354
  _payload?: import("../integrations/supabase/types").Json;
@@ -120759,6 +122062,26 @@ export declare const gatewayWriteFn: import("@tanstack/start-client-core").Requi
120759
122062
  };
120760
122063
  Returns: undefined;
120761
122064
  };
122065
+ set_product_stock: {
122066
+ Args: {
122067
+ p_incoming_stock?: number;
122068
+ p_minimum_stock?: number;
122069
+ p_notes?: string;
122070
+ p_physical_stock: number;
122071
+ p_product_id: string;
122072
+ };
122073
+ Returns: {
122074
+ connection_id: string;
122075
+ incoming_stock: number;
122076
+ minimum_stock: number;
122077
+ notes: string;
122078
+ physical_stock: number;
122079
+ product_id: string;
122080
+ reserved_stock: number;
122081
+ trade_item_key: string;
122082
+ updated_at: string;
122083
+ }[];
122084
+ };
120762
122085
  show_limit: {
120763
122086
  Args: never;
120764
122087
  Returns: number;
@@ -121283,6 +122606,13 @@ export declare const gatewayWriteFn: import("@tanstack/start-client-core").Requi
121283
122606
  };
121284
122607
  Returns: number;
121285
122608
  };
122609
+ vakantie_overuren: {
122610
+ Args: {
122611
+ _user_id: string;
122612
+ _year?: number;
122613
+ };
122614
+ Returns: number;
122615
+ };
121286
122616
  vakantie_saldo: {
121287
122617
  Args: {
121288
122618
  _user_id: string;
@@ -121290,7 +122620,12 @@ export declare const gatewayWriteFn: import("@tanstack/start-client-core").Requi
121290
122620
  };
121291
122621
  Returns: {
121292
122622
  day_hours: number;
122623
+ earned_from_overtime_days: number;
121293
122624
  entitlement_days: number;
122625
+ hours_to_next_day: number;
122626
+ overtime_hours: number;
122627
+ overtime_remainder_hours: number;
122628
+ paid_out_days: number;
121294
122629
  remaining_days: number;
121295
122630
  used_days: number;
121296
122631
  }[];
@@ -121301,7 +122636,12 @@ export declare const gatewayWriteFn: import("@tanstack/start-client-core").Requi
121301
122636
  };
121302
122637
  Returns: {
121303
122638
  day_hours: number;
122639
+ earned_from_overtime_days: number;
121304
122640
  entitlement_days: number;
122641
+ hours_to_next_day: number;
122642
+ overtime_hours: number;
122643
+ overtime_remainder_hours: number;
122644
+ paid_out_days: number;
121305
122645
  remaining_days: number;
121306
122646
  used_days: number;
121307
122647
  user_id: string;
@@ -121355,12 +122695,25 @@ export declare const gatewayWriteFn: import("@tanstack/start-client-core").Requi
121355
122695
  };
121356
122696
  Returns: import("../integrations/supabase/types").Json;
121357
122697
  };
122698
+ wo_list_proposals: {
122699
+ Args: {
122700
+ _status?: string;
122701
+ };
122702
+ Returns: import("../integrations/supabase/types").Json;
122703
+ };
121358
122704
  wo_process_offerte_request: {
121359
122705
  Args: {
121360
122706
  _queue_id: string;
121361
122707
  };
121362
122708
  Returns: import("../integrations/supabase/types").Json;
121363
122709
  };
122710
+ wo_process_proposal: {
122711
+ Args: {
122712
+ _id: string;
122713
+ _overrides?: import("../integrations/supabase/types").Json;
122714
+ };
122715
+ Returns: import("../integrations/supabase/types").Json;
122716
+ };
121364
122717
  wo_reject_offerte_request: {
121365
122718
  Args: {
121366
122719
  _queue_id: string;
@@ -121368,6 +122721,13 @@ export declare const gatewayWriteFn: import("@tanstack/start-client-core").Requi
121368
122721
  };
121369
122722
  Returns: import("../integrations/supabase/types").Json;
121370
122723
  };
122724
+ wo_reject_proposal: {
122725
+ Args: {
122726
+ _id: string;
122727
+ _reden?: string;
122728
+ };
122729
+ Returns: import("../integrations/supabase/types").Json;
122730
+ };
121371
122731
  wo_set_status: {
121372
122732
  Args: {
121373
122733
  _reason?: string;
@@ -129667,6 +131027,69 @@ export declare const gatewayReadFn: import("@tanstack/start-client-core").Requir
129667
131027
  };
129668
131028
  Relationships: [];
129669
131029
  };
131030
+ invoice_branding_settings: {
131031
+ Row: {
131032
+ address: string;
131033
+ chamber_of_commerce_number: string;
131034
+ city: string;
131035
+ company_name: string;
131036
+ created_at: string;
131037
+ email: string;
131038
+ email_purpose: string | null;
131039
+ iban: string;
131040
+ logo_path: string | null;
131041
+ payment_term_days: number;
131042
+ phone: string;
131043
+ postal_code: string;
131044
+ primary_color: string;
131045
+ secondary_color: string;
131046
+ singleton_key: boolean;
131047
+ updated_at: string;
131048
+ vat_identification_number: string;
131049
+ website: string;
131050
+ };
131051
+ Insert: {
131052
+ address?: string;
131053
+ chamber_of_commerce_number?: string;
131054
+ city?: string;
131055
+ company_name?: string;
131056
+ created_at?: string;
131057
+ email?: string;
131058
+ email_purpose?: string | null;
131059
+ iban?: string;
131060
+ logo_path?: string | null;
131061
+ payment_term_days?: number;
131062
+ phone?: string;
131063
+ postal_code?: string;
131064
+ primary_color?: string;
131065
+ secondary_color?: string;
131066
+ singleton_key?: boolean;
131067
+ updated_at?: string;
131068
+ vat_identification_number?: string;
131069
+ website?: string;
131070
+ };
131071
+ Update: {
131072
+ address?: string;
131073
+ chamber_of_commerce_number?: string;
131074
+ city?: string;
131075
+ company_name?: string;
131076
+ created_at?: string;
131077
+ email?: string;
131078
+ email_purpose?: string | null;
131079
+ iban?: string;
131080
+ logo_path?: string | null;
131081
+ payment_term_days?: number;
131082
+ phone?: string;
131083
+ postal_code?: string;
131084
+ primary_color?: string;
131085
+ secondary_color?: string;
131086
+ singleton_key?: boolean;
131087
+ updated_at?: string;
131088
+ vat_identification_number?: string;
131089
+ website?: string;
131090
+ };
131091
+ Relationships: [];
131092
+ };
129670
131093
  invoice_items: {
129671
131094
  Row: {
129672
131095
  created_at: string;
@@ -129680,6 +131103,7 @@ export declare const gatewayReadFn: import("@tanstack/start-client-core").Requir
129680
131103
  total_cents: number;
129681
131104
  unit: string;
129682
131105
  unit_price_cents: number;
131106
+ vat_rate: number | null;
129683
131107
  };
129684
131108
  Insert: {
129685
131109
  created_at?: string;
@@ -129693,6 +131117,7 @@ export declare const gatewayReadFn: import("@tanstack/start-client-core").Requir
129693
131117
  total_cents?: number;
129694
131118
  unit?: string;
129695
131119
  unit_price_cents?: number;
131120
+ vat_rate?: number | null;
129696
131121
  };
129697
131122
  Update: {
129698
131123
  created_at?: string;
@@ -129706,6 +131131,7 @@ export declare const gatewayReadFn: import("@tanstack/start-client-core").Requir
129706
131131
  total_cents?: number;
129707
131132
  unit?: string;
129708
131133
  unit_price_cents?: number;
131134
+ vat_rate?: number | null;
129709
131135
  };
129710
131136
  Relationships: [{
129711
131137
  foreignKeyName: "invoice_items_invoice_id_fkey";
@@ -129951,6 +131377,7 @@ export declare const gatewayReadFn: import("@tanstack/start-client-core").Requir
129951
131377
  };
129952
131378
  invoices: {
129953
131379
  Row: {
131380
+ branding_snapshot: import("../integrations/supabase/types").Json | null;
129954
131381
  created_at: string;
129955
131382
  created_by: string | null;
129956
131383
  customer_address: string | null;
@@ -129969,6 +131396,8 @@ export declare const gatewayReadFn: import("@tanstack/start-client-core").Requir
129969
131396
  note: string | null;
129970
131397
  payment_term_days: number;
129971
131398
  reference: string | null;
131399
+ sent_at: string | null;
131400
+ sent_to: string | null;
129972
131401
  source_number: string | null;
129973
131402
  source_ref: string | null;
129974
131403
  source_type: string;
@@ -129981,6 +131410,7 @@ export declare const gatewayReadFn: import("@tanstack/start-client-core").Requir
129981
131410
  work_address: string | null;
129982
131411
  };
129983
131412
  Insert: {
131413
+ branding_snapshot?: import("../integrations/supabase/types").Json | null;
129984
131414
  created_at?: string;
129985
131415
  created_by?: string | null;
129986
131416
  customer_address?: string | null;
@@ -129999,6 +131429,8 @@ export declare const gatewayReadFn: import("@tanstack/start-client-core").Requir
129999
131429
  note?: string | null;
130000
131430
  payment_term_days?: number;
130001
131431
  reference?: string | null;
131432
+ sent_at?: string | null;
131433
+ sent_to?: string | null;
130002
131434
  source_number?: string | null;
130003
131435
  source_ref?: string | null;
130004
131436
  source_type?: string;
@@ -130011,6 +131443,7 @@ export declare const gatewayReadFn: import("@tanstack/start-client-core").Requir
130011
131443
  work_address?: string | null;
130012
131444
  };
130013
131445
  Update: {
131446
+ branding_snapshot?: import("../integrations/supabase/types").Json | null;
130014
131447
  created_at?: string;
130015
131448
  created_by?: string | null;
130016
131449
  customer_address?: string | null;
@@ -130029,6 +131462,8 @@ export declare const gatewayReadFn: import("@tanstack/start-client-core").Requir
130029
131462
  note?: string | null;
130030
131463
  payment_term_days?: number;
130031
131464
  reference?: string | null;
131465
+ sent_at?: string | null;
131466
+ sent_to?: string | null;
130032
131467
  source_number?: string | null;
130033
131468
  source_ref?: string | null;
130034
131469
  source_type?: string;
@@ -130737,6 +132172,7 @@ export declare const gatewayReadFn: import("@tanstack/start-client-core").Requir
130737
132172
  quantity: number;
130738
132173
  sort_order: number;
130739
132174
  source: string;
132175
+ unit: string | null;
130740
132176
  unit_price_cents: number;
130741
132177
  updated_at: string;
130742
132178
  };
@@ -130750,6 +132186,7 @@ export declare const gatewayReadFn: import("@tanstack/start-client-core").Requir
130750
132186
  quantity?: number;
130751
132187
  sort_order?: number;
130752
132188
  source?: string;
132189
+ unit?: string | null;
130753
132190
  unit_price_cents?: number;
130754
132191
  updated_at?: string;
130755
132192
  };
@@ -130763,6 +132200,7 @@ export declare const gatewayReadFn: import("@tanstack/start-client-core").Requir
130763
132200
  quantity?: number;
130764
132201
  sort_order?: number;
130765
132202
  source?: string;
132203
+ unit?: string | null;
130766
132204
  unit_price_cents?: number;
130767
132205
  updated_at?: string;
130768
132206
  };
@@ -130786,6 +132224,7 @@ export declare const gatewayReadFn: import("@tanstack/start-client-core").Requir
130786
132224
  created_at: string;
130787
132225
  default_geldigheid_dagen: number;
130788
132226
  default_vat_rate: number;
132227
+ email_purpose: string | null;
130789
132228
  id: string;
130790
132229
  singleton: boolean;
130791
132230
  updated_at: string;
@@ -130795,6 +132234,7 @@ export declare const gatewayReadFn: import("@tanstack/start-client-core").Requir
130795
132234
  created_at?: string;
130796
132235
  default_geldigheid_dagen?: number;
130797
132236
  default_vat_rate?: number;
132237
+ email_purpose?: string | null;
130798
132238
  id?: string;
130799
132239
  singleton?: boolean;
130800
132240
  updated_at?: string;
@@ -130804,6 +132244,7 @@ export declare const gatewayReadFn: import("@tanstack/start-client-core").Requir
130804
132244
  created_at?: string;
130805
132245
  default_geldigheid_dagen?: number;
130806
132246
  default_vat_rate?: number;
132247
+ email_purpose?: string | null;
130807
132248
  id?: string;
130808
132249
  singleton?: boolean;
130809
132250
  updated_at?: string;
@@ -130896,6 +132337,7 @@ export declare const gatewayReadFn: import("@tanstack/start-client-core").Requir
130896
132337
  };
130897
132338
  itk_offertes: {
130898
132339
  Row: {
132340
+ aandachtspunten: string | null;
130899
132341
  ai_generated: boolean;
130900
132342
  approved_at: string | null;
130901
132343
  binnen_mandaat: boolean;
@@ -130911,6 +132353,7 @@ export declare const gatewayReadFn: import("@tanstack/start-client-core").Requir
130911
132353
  notities: string | null;
130912
132354
  offerte_number: string | null;
130913
132355
  omschrijving: string;
132356
+ onderwerp: string | null;
130914
132357
  rejected_at: string | null;
130915
132358
  sent_at: string | null;
130916
132359
  source_number: string | null;
@@ -130923,12 +132366,15 @@ export declare const gatewayReadFn: import("@tanstack/start-client-core").Requir
130923
132366
  valid_until: string | null;
130924
132367
  vat_cents: number;
130925
132368
  vat_rate: number;
132369
+ verzonden_naar: string | null;
130926
132370
  viewed_at: string | null;
130927
132371
  volgnummer: number | null;
132372
+ voorwaarden: string | null;
130928
132373
  werkbon_id: string | null;
130929
132374
  work_location_id: string | null;
130930
132375
  };
130931
132376
  Insert: {
132377
+ aandachtspunten?: string | null;
130932
132378
  ai_generated?: boolean;
130933
132379
  approved_at?: string | null;
130934
132380
  binnen_mandaat?: boolean;
@@ -130944,6 +132390,7 @@ export declare const gatewayReadFn: import("@tanstack/start-client-core").Requir
130944
132390
  notities?: string | null;
130945
132391
  offerte_number?: string | null;
130946
132392
  omschrijving?: string;
132393
+ onderwerp?: string | null;
130947
132394
  rejected_at?: string | null;
130948
132395
  sent_at?: string | null;
130949
132396
  source_number?: string | null;
@@ -130956,12 +132403,15 @@ export declare const gatewayReadFn: import("@tanstack/start-client-core").Requir
130956
132403
  valid_until?: string | null;
130957
132404
  vat_cents?: number;
130958
132405
  vat_rate?: number;
132406
+ verzonden_naar?: string | null;
130959
132407
  viewed_at?: string | null;
130960
132408
  volgnummer?: number | null;
132409
+ voorwaarden?: string | null;
130961
132410
  werkbon_id?: string | null;
130962
132411
  work_location_id?: string | null;
130963
132412
  };
130964
132413
  Update: {
132414
+ aandachtspunten?: string | null;
130965
132415
  ai_generated?: boolean;
130966
132416
  approved_at?: string | null;
130967
132417
  binnen_mandaat?: boolean;
@@ -130977,6 +132427,7 @@ export declare const gatewayReadFn: import("@tanstack/start-client-core").Requir
130977
132427
  notities?: string | null;
130978
132428
  offerte_number?: string | null;
130979
132429
  omschrijving?: string;
132430
+ onderwerp?: string | null;
130980
132431
  rejected_at?: string | null;
130981
132432
  sent_at?: string | null;
130982
132433
  source_number?: string | null;
@@ -130989,8 +132440,10 @@ export declare const gatewayReadFn: import("@tanstack/start-client-core").Requir
130989
132440
  valid_until?: string | null;
130990
132441
  vat_cents?: number;
130991
132442
  vat_rate?: number;
132443
+ verzonden_naar?: string | null;
130992
132444
  viewed_at?: string | null;
130993
132445
  volgnummer?: number | null;
132446
+ voorwaarden?: string | null;
130994
132447
  werkbon_id?: string | null;
130995
132448
  work_location_id?: string | null;
130996
132449
  };
@@ -143068,6 +144521,51 @@ export declare const gatewayReadFn: import("@tanstack/start-client-core").Requir
143068
144521
  referencedColumns: ["id"];
143069
144522
  }];
143070
144523
  };
144524
+ vakantie_uitbetalingen: {
144525
+ Row: {
144526
+ created_at: string;
144527
+ created_by: string | null;
144528
+ days: number;
144529
+ id: string;
144530
+ note: string | null;
144531
+ updated_at: string;
144532
+ user_id: string;
144533
+ year: number;
144534
+ };
144535
+ Insert: {
144536
+ created_at?: string;
144537
+ created_by?: string | null;
144538
+ days: number;
144539
+ id?: string;
144540
+ note?: string | null;
144541
+ updated_at?: string;
144542
+ user_id: string;
144543
+ year?: number;
144544
+ };
144545
+ Update: {
144546
+ created_at?: string;
144547
+ created_by?: string | null;
144548
+ days?: number;
144549
+ id?: string;
144550
+ note?: string | null;
144551
+ updated_at?: string;
144552
+ user_id?: string;
144553
+ year?: number;
144554
+ };
144555
+ Relationships: [{
144556
+ foreignKeyName: "vakantie_uitbetalingen_created_by_fkey";
144557
+ columns: ["created_by"];
144558
+ isOneToOne: false;
144559
+ referencedRelation: "profiles";
144560
+ referencedColumns: ["id"];
144561
+ }, {
144562
+ foreignKeyName: "vakantie_uitbetalingen_user_id_fkey";
144563
+ columns: ["user_id"];
144564
+ isOneToOne: false;
144565
+ referencedRelation: "profiles";
144566
+ referencedColumns: ["id"];
144567
+ }];
144568
+ };
143071
144569
  van_inventories: {
143072
144570
  Row: {
143073
144571
  barcode: string | null;
@@ -144352,6 +145850,78 @@ export declare const gatewayReadFn: import("@tanstack/start-client-core").Requir
144352
145850
  referencedColumns: ["id"];
144353
145851
  }];
144354
145852
  };
145853
+ werkbon_voorstellen: {
145854
+ Row: {
145855
+ bron_werkbon_id: string;
145856
+ budget_mandate_cents: number;
145857
+ created_at: string;
145858
+ created_by: string;
145859
+ customer_id: string | null;
145860
+ id: string;
145861
+ payload: import("../integrations/supabase/types").Json;
145862
+ reden: string | null;
145863
+ status: string;
145864
+ updated_at: string;
145865
+ verwerkt_door: string | null;
145866
+ verwerkt_op: string | null;
145867
+ werkbon_id: string | null;
145868
+ };
145869
+ Insert: {
145870
+ bron_werkbon_id: string;
145871
+ budget_mandate_cents?: number;
145872
+ created_at?: string;
145873
+ created_by?: string;
145874
+ customer_id?: string | null;
145875
+ id?: string;
145876
+ payload?: import("../integrations/supabase/types").Json;
145877
+ reden?: string | null;
145878
+ status?: string;
145879
+ updated_at?: string;
145880
+ verwerkt_door?: string | null;
145881
+ verwerkt_op?: string | null;
145882
+ werkbon_id?: string | null;
145883
+ };
145884
+ Update: {
145885
+ bron_werkbon_id?: string;
145886
+ budget_mandate_cents?: number;
145887
+ created_at?: string;
145888
+ created_by?: string;
145889
+ customer_id?: string | null;
145890
+ id?: string;
145891
+ payload?: import("../integrations/supabase/types").Json;
145892
+ reden?: string | null;
145893
+ status?: string;
145894
+ updated_at?: string;
145895
+ verwerkt_door?: string | null;
145896
+ verwerkt_op?: string | null;
145897
+ werkbon_id?: string | null;
145898
+ };
145899
+ Relationships: [{
145900
+ foreignKeyName: "werkbon_voorstellen_bron_werkbon_id_fkey";
145901
+ columns: ["bron_werkbon_id"];
145902
+ isOneToOne: false;
145903
+ referencedRelation: "werkbonnen";
145904
+ referencedColumns: ["id"];
145905
+ }, {
145906
+ foreignKeyName: "werkbon_voorstellen_bron_werkbon_id_fkey";
145907
+ columns: ["bron_werkbon_id"];
145908
+ isOneToOne: false;
145909
+ referencedRelation: "wo_overview";
145910
+ referencedColumns: ["id"];
145911
+ }, {
145912
+ foreignKeyName: "werkbon_voorstellen_werkbon_id_fkey";
145913
+ columns: ["werkbon_id"];
145914
+ isOneToOne: false;
145915
+ referencedRelation: "werkbonnen";
145916
+ referencedColumns: ["id"];
145917
+ }, {
145918
+ foreignKeyName: "werkbon_voorstellen_werkbon_id_fkey";
145919
+ columns: ["werkbon_id"];
145920
+ isOneToOne: false;
145921
+ referencedRelation: "wo_overview";
145922
+ referencedColumns: ["id"];
145923
+ }];
145924
+ };
144355
145925
  werkbonnen: {
144356
145926
  Row: {
144357
145927
  assigned_user_id: string | null;
@@ -145592,6 +147162,10 @@ export declare const gatewayReadFn: import("@tanstack/start-client-core").Requir
145592
147162
  };
145593
147163
  Returns: undefined;
145594
147164
  };
147165
+ _wo_is_planner: {
147166
+ Args: never;
147167
+ Returns: boolean;
147168
+ };
145595
147169
  afh_city_code: {
145596
147170
  Args: {
145597
147171
  _city: string;
@@ -146704,6 +148278,22 @@ export declare const gatewayReadFn: import("@tanstack/start-client-core").Requir
146704
148278
  };
146705
148279
  Returns: number;
146706
148280
  };
148281
+ get_product_stock: {
148282
+ Args: {
148283
+ p_product_id: string;
148284
+ };
148285
+ Returns: {
148286
+ connection_id: string;
148287
+ incoming_stock: number;
148288
+ minimum_stock: number;
148289
+ notes: string;
148290
+ physical_stock: number;
148291
+ product_id: string;
148292
+ reserved_stock: number;
148293
+ trade_item_key: string;
148294
+ updated_at: string;
148295
+ }[];
148296
+ };
146707
148297
  get_room_busy_windows: {
146708
148298
  Args: {
146709
148299
  p_from: string;
@@ -147041,6 +148631,10 @@ export declare const gatewayReadFn: import("@tanstack/start-client-core").Requir
147041
148631
  };
147042
148632
  Returns: number;
147043
148633
  };
148634
+ invoice_branding_snapshot: {
148635
+ Args: never;
148636
+ Returns: import("../integrations/supabase/types").Json;
148637
+ };
147044
148638
  invoice_create_from_source: {
147045
148639
  Args: {
147046
148640
  _payload?: import("../integrations/supabase/types").Json;
@@ -147075,6 +148669,17 @@ export declare const gatewayReadFn: import("@tanstack/start-client-core").Requir
147075
148669
  };
147076
148670
  Returns: import("../integrations/supabase/types").Json;
147077
148671
  };
148672
+ invoice_mark_sent: {
148673
+ Args: {
148674
+ _invoice_id: string;
148675
+ _to: string;
148676
+ };
148677
+ Returns: undefined;
148678
+ };
148679
+ invoice_peek_next_number: {
148680
+ Args: never;
148681
+ Returns: string;
148682
+ };
147078
148683
  invoice_ready_work_orders: {
147079
148684
  Args: {
147080
148685
  _limit?: number;
@@ -147087,6 +148692,18 @@ export declare const gatewayReadFn: import("@tanstack/start-client-core").Requir
147087
148692
  };
147088
148693
  Returns: import("../integrations/supabase/types").Json;
147089
148694
  };
148695
+ invoice_save_branding_settings: {
148696
+ Args: {
148697
+ _payload: import("../integrations/supabase/types").Json;
148698
+ };
148699
+ Returns: import("../integrations/supabase/types").Json;
148700
+ };
148701
+ invoice_set_email_purpose: {
148702
+ Args: {
148703
+ _purpose: string;
148704
+ };
148705
+ Returns: string;
148706
+ };
147090
148707
  invoice_source_lines: {
147091
148708
  Args: {
147092
148709
  _source_id: string;
@@ -147094,6 +148711,19 @@ export declare const gatewayReadFn: import("@tanstack/start-client-core").Requir
147094
148711
  };
147095
148712
  Returns: import("../integrations/supabase/types").Json;
147096
148713
  };
148714
+ invoice_update_full: {
148715
+ Args: {
148716
+ _invoice_id: string;
148717
+ _payload: import("../integrations/supabase/types").Json;
148718
+ };
148719
+ Returns: import("../integrations/supabase/types").Json;
148720
+ };
148721
+ invoice_work_order_locked: {
148722
+ Args: {
148723
+ _werkbon_id: string;
148724
+ };
148725
+ Returns: import("../integrations/supabase/types").Json;
148726
+ };
147097
148727
  is_authenticated: {
147098
148728
  Args: never;
147099
148729
  Returns: boolean;
@@ -150393,6 +152023,19 @@ export declare const gatewayReadFn: import("@tanstack/start-client-core").Requir
150393
152023
  };
150394
152024
  Returns: boolean;
150395
152025
  };
152026
+ quote_assign_number: {
152027
+ Args: {
152028
+ _offerte_id: string;
152029
+ };
152030
+ Returns: string;
152031
+ };
152032
+ quote_create_follow_up_now: {
152033
+ Args: {
152034
+ _offerte_id: string;
152035
+ _payload?: import("../integrations/supabase/types").Json;
152036
+ };
152037
+ Returns: import("../integrations/supabase/types").Json;
152038
+ };
150396
152039
  quote_create_from_source: {
150397
152040
  Args: {
150398
152041
  _payload?: import("../integrations/supabase/types").Json;
@@ -151106,6 +152749,26 @@ export declare const gatewayReadFn: import("@tanstack/start-client-core").Requir
151106
152749
  };
151107
152750
  Returns: undefined;
151108
152751
  };
152752
+ set_product_stock: {
152753
+ Args: {
152754
+ p_incoming_stock?: number;
152755
+ p_minimum_stock?: number;
152756
+ p_notes?: string;
152757
+ p_physical_stock: number;
152758
+ p_product_id: string;
152759
+ };
152760
+ Returns: {
152761
+ connection_id: string;
152762
+ incoming_stock: number;
152763
+ minimum_stock: number;
152764
+ notes: string;
152765
+ physical_stock: number;
152766
+ product_id: string;
152767
+ reserved_stock: number;
152768
+ trade_item_key: string;
152769
+ updated_at: string;
152770
+ }[];
152771
+ };
151109
152772
  show_limit: {
151110
152773
  Args: never;
151111
152774
  Returns: number;
@@ -151630,6 +153293,13 @@ export declare const gatewayReadFn: import("@tanstack/start-client-core").Requir
151630
153293
  };
151631
153294
  Returns: number;
151632
153295
  };
153296
+ vakantie_overuren: {
153297
+ Args: {
153298
+ _user_id: string;
153299
+ _year?: number;
153300
+ };
153301
+ Returns: number;
153302
+ };
151633
153303
  vakantie_saldo: {
151634
153304
  Args: {
151635
153305
  _user_id: string;
@@ -151637,7 +153307,12 @@ export declare const gatewayReadFn: import("@tanstack/start-client-core").Requir
151637
153307
  };
151638
153308
  Returns: {
151639
153309
  day_hours: number;
153310
+ earned_from_overtime_days: number;
151640
153311
  entitlement_days: number;
153312
+ hours_to_next_day: number;
153313
+ overtime_hours: number;
153314
+ overtime_remainder_hours: number;
153315
+ paid_out_days: number;
151641
153316
  remaining_days: number;
151642
153317
  used_days: number;
151643
153318
  }[];
@@ -151648,7 +153323,12 @@ export declare const gatewayReadFn: import("@tanstack/start-client-core").Requir
151648
153323
  };
151649
153324
  Returns: {
151650
153325
  day_hours: number;
153326
+ earned_from_overtime_days: number;
151651
153327
  entitlement_days: number;
153328
+ hours_to_next_day: number;
153329
+ overtime_hours: number;
153330
+ overtime_remainder_hours: number;
153331
+ paid_out_days: number;
151652
153332
  remaining_days: number;
151653
153333
  used_days: number;
151654
153334
  user_id: string;
@@ -151702,12 +153382,25 @@ export declare const gatewayReadFn: import("@tanstack/start-client-core").Requir
151702
153382
  };
151703
153383
  Returns: import("../integrations/supabase/types").Json;
151704
153384
  };
153385
+ wo_list_proposals: {
153386
+ Args: {
153387
+ _status?: string;
153388
+ };
153389
+ Returns: import("../integrations/supabase/types").Json;
153390
+ };
151705
153391
  wo_process_offerte_request: {
151706
153392
  Args: {
151707
153393
  _queue_id: string;
151708
153394
  };
151709
153395
  Returns: import("../integrations/supabase/types").Json;
151710
153396
  };
153397
+ wo_process_proposal: {
153398
+ Args: {
153399
+ _id: string;
153400
+ _overrides?: import("../integrations/supabase/types").Json;
153401
+ };
153402
+ Returns: import("../integrations/supabase/types").Json;
153403
+ };
151711
153404
  wo_reject_offerte_request: {
151712
153405
  Args: {
151713
153406
  _queue_id: string;
@@ -151715,6 +153408,13 @@ export declare const gatewayReadFn: import("@tanstack/start-client-core").Requir
151715
153408
  };
151716
153409
  Returns: import("../integrations/supabase/types").Json;
151717
153410
  };
153411
+ wo_reject_proposal: {
153412
+ Args: {
153413
+ _id: string;
153414
+ _reden?: string;
153415
+ };
153416
+ Returns: import("../integrations/supabase/types").Json;
153417
+ };
151718
153418
  wo_set_status: {
151719
153419
  Args: {
151720
153420
  _reason?: string;
@@ -160024,6 +161724,69 @@ export declare const gatewaySupplyLineFn: import("@tanstack/start-client-core").
160024
161724
  };
160025
161725
  Relationships: [];
160026
161726
  };
161727
+ invoice_branding_settings: {
161728
+ Row: {
161729
+ address: string;
161730
+ chamber_of_commerce_number: string;
161731
+ city: string;
161732
+ company_name: string;
161733
+ created_at: string;
161734
+ email: string;
161735
+ email_purpose: string | null;
161736
+ iban: string;
161737
+ logo_path: string | null;
161738
+ payment_term_days: number;
161739
+ phone: string;
161740
+ postal_code: string;
161741
+ primary_color: string;
161742
+ secondary_color: string;
161743
+ singleton_key: boolean;
161744
+ updated_at: string;
161745
+ vat_identification_number: string;
161746
+ website: string;
161747
+ };
161748
+ Insert: {
161749
+ address?: string;
161750
+ chamber_of_commerce_number?: string;
161751
+ city?: string;
161752
+ company_name?: string;
161753
+ created_at?: string;
161754
+ email?: string;
161755
+ email_purpose?: string | null;
161756
+ iban?: string;
161757
+ logo_path?: string | null;
161758
+ payment_term_days?: number;
161759
+ phone?: string;
161760
+ postal_code?: string;
161761
+ primary_color?: string;
161762
+ secondary_color?: string;
161763
+ singleton_key?: boolean;
161764
+ updated_at?: string;
161765
+ vat_identification_number?: string;
161766
+ website?: string;
161767
+ };
161768
+ Update: {
161769
+ address?: string;
161770
+ chamber_of_commerce_number?: string;
161771
+ city?: string;
161772
+ company_name?: string;
161773
+ created_at?: string;
161774
+ email?: string;
161775
+ email_purpose?: string | null;
161776
+ iban?: string;
161777
+ logo_path?: string | null;
161778
+ payment_term_days?: number;
161779
+ phone?: string;
161780
+ postal_code?: string;
161781
+ primary_color?: string;
161782
+ secondary_color?: string;
161783
+ singleton_key?: boolean;
161784
+ updated_at?: string;
161785
+ vat_identification_number?: string;
161786
+ website?: string;
161787
+ };
161788
+ Relationships: [];
161789
+ };
160027
161790
  invoice_items: {
160028
161791
  Row: {
160029
161792
  created_at: string;
@@ -160037,6 +161800,7 @@ export declare const gatewaySupplyLineFn: import("@tanstack/start-client-core").
160037
161800
  total_cents: number;
160038
161801
  unit: string;
160039
161802
  unit_price_cents: number;
161803
+ vat_rate: number | null;
160040
161804
  };
160041
161805
  Insert: {
160042
161806
  created_at?: string;
@@ -160050,6 +161814,7 @@ export declare const gatewaySupplyLineFn: import("@tanstack/start-client-core").
160050
161814
  total_cents?: number;
160051
161815
  unit?: string;
160052
161816
  unit_price_cents?: number;
161817
+ vat_rate?: number | null;
160053
161818
  };
160054
161819
  Update: {
160055
161820
  created_at?: string;
@@ -160063,6 +161828,7 @@ export declare const gatewaySupplyLineFn: import("@tanstack/start-client-core").
160063
161828
  total_cents?: number;
160064
161829
  unit?: string;
160065
161830
  unit_price_cents?: number;
161831
+ vat_rate?: number | null;
160066
161832
  };
160067
161833
  Relationships: [{
160068
161834
  foreignKeyName: "invoice_items_invoice_id_fkey";
@@ -160308,6 +162074,7 @@ export declare const gatewaySupplyLineFn: import("@tanstack/start-client-core").
160308
162074
  };
160309
162075
  invoices: {
160310
162076
  Row: {
162077
+ branding_snapshot: import("../integrations/supabase/types").Json | null;
160311
162078
  created_at: string;
160312
162079
  created_by: string | null;
160313
162080
  customer_address: string | null;
@@ -160326,6 +162093,8 @@ export declare const gatewaySupplyLineFn: import("@tanstack/start-client-core").
160326
162093
  note: string | null;
160327
162094
  payment_term_days: number;
160328
162095
  reference: string | null;
162096
+ sent_at: string | null;
162097
+ sent_to: string | null;
160329
162098
  source_number: string | null;
160330
162099
  source_ref: string | null;
160331
162100
  source_type: string;
@@ -160338,6 +162107,7 @@ export declare const gatewaySupplyLineFn: import("@tanstack/start-client-core").
160338
162107
  work_address: string | null;
160339
162108
  };
160340
162109
  Insert: {
162110
+ branding_snapshot?: import("../integrations/supabase/types").Json | null;
160341
162111
  created_at?: string;
160342
162112
  created_by?: string | null;
160343
162113
  customer_address?: string | null;
@@ -160356,6 +162126,8 @@ export declare const gatewaySupplyLineFn: import("@tanstack/start-client-core").
160356
162126
  note?: string | null;
160357
162127
  payment_term_days?: number;
160358
162128
  reference?: string | null;
162129
+ sent_at?: string | null;
162130
+ sent_to?: string | null;
160359
162131
  source_number?: string | null;
160360
162132
  source_ref?: string | null;
160361
162133
  source_type?: string;
@@ -160368,6 +162140,7 @@ export declare const gatewaySupplyLineFn: import("@tanstack/start-client-core").
160368
162140
  work_address?: string | null;
160369
162141
  };
160370
162142
  Update: {
162143
+ branding_snapshot?: import("../integrations/supabase/types").Json | null;
160371
162144
  created_at?: string;
160372
162145
  created_by?: string | null;
160373
162146
  customer_address?: string | null;
@@ -160386,6 +162159,8 @@ export declare const gatewaySupplyLineFn: import("@tanstack/start-client-core").
160386
162159
  note?: string | null;
160387
162160
  payment_term_days?: number;
160388
162161
  reference?: string | null;
162162
+ sent_at?: string | null;
162163
+ sent_to?: string | null;
160389
162164
  source_number?: string | null;
160390
162165
  source_ref?: string | null;
160391
162166
  source_type?: string;
@@ -161094,6 +162869,7 @@ export declare const gatewaySupplyLineFn: import("@tanstack/start-client-core").
161094
162869
  quantity: number;
161095
162870
  sort_order: number;
161096
162871
  source: string;
162872
+ unit: string | null;
161097
162873
  unit_price_cents: number;
161098
162874
  updated_at: string;
161099
162875
  };
@@ -161107,6 +162883,7 @@ export declare const gatewaySupplyLineFn: import("@tanstack/start-client-core").
161107
162883
  quantity?: number;
161108
162884
  sort_order?: number;
161109
162885
  source?: string;
162886
+ unit?: string | null;
161110
162887
  unit_price_cents?: number;
161111
162888
  updated_at?: string;
161112
162889
  };
@@ -161120,6 +162897,7 @@ export declare const gatewaySupplyLineFn: import("@tanstack/start-client-core").
161120
162897
  quantity?: number;
161121
162898
  sort_order?: number;
161122
162899
  source?: string;
162900
+ unit?: string | null;
161123
162901
  unit_price_cents?: number;
161124
162902
  updated_at?: string;
161125
162903
  };
@@ -161143,6 +162921,7 @@ export declare const gatewaySupplyLineFn: import("@tanstack/start-client-core").
161143
162921
  created_at: string;
161144
162922
  default_geldigheid_dagen: number;
161145
162923
  default_vat_rate: number;
162924
+ email_purpose: string | null;
161146
162925
  id: string;
161147
162926
  singleton: boolean;
161148
162927
  updated_at: string;
@@ -161152,6 +162931,7 @@ export declare const gatewaySupplyLineFn: import("@tanstack/start-client-core").
161152
162931
  created_at?: string;
161153
162932
  default_geldigheid_dagen?: number;
161154
162933
  default_vat_rate?: number;
162934
+ email_purpose?: string | null;
161155
162935
  id?: string;
161156
162936
  singleton?: boolean;
161157
162937
  updated_at?: string;
@@ -161161,6 +162941,7 @@ export declare const gatewaySupplyLineFn: import("@tanstack/start-client-core").
161161
162941
  created_at?: string;
161162
162942
  default_geldigheid_dagen?: number;
161163
162943
  default_vat_rate?: number;
162944
+ email_purpose?: string | null;
161164
162945
  id?: string;
161165
162946
  singleton?: boolean;
161166
162947
  updated_at?: string;
@@ -161253,6 +163034,7 @@ export declare const gatewaySupplyLineFn: import("@tanstack/start-client-core").
161253
163034
  };
161254
163035
  itk_offertes: {
161255
163036
  Row: {
163037
+ aandachtspunten: string | null;
161256
163038
  ai_generated: boolean;
161257
163039
  approved_at: string | null;
161258
163040
  binnen_mandaat: boolean;
@@ -161268,6 +163050,7 @@ export declare const gatewaySupplyLineFn: import("@tanstack/start-client-core").
161268
163050
  notities: string | null;
161269
163051
  offerte_number: string | null;
161270
163052
  omschrijving: string;
163053
+ onderwerp: string | null;
161271
163054
  rejected_at: string | null;
161272
163055
  sent_at: string | null;
161273
163056
  source_number: string | null;
@@ -161280,12 +163063,15 @@ export declare const gatewaySupplyLineFn: import("@tanstack/start-client-core").
161280
163063
  valid_until: string | null;
161281
163064
  vat_cents: number;
161282
163065
  vat_rate: number;
163066
+ verzonden_naar: string | null;
161283
163067
  viewed_at: string | null;
161284
163068
  volgnummer: number | null;
163069
+ voorwaarden: string | null;
161285
163070
  werkbon_id: string | null;
161286
163071
  work_location_id: string | null;
161287
163072
  };
161288
163073
  Insert: {
163074
+ aandachtspunten?: string | null;
161289
163075
  ai_generated?: boolean;
161290
163076
  approved_at?: string | null;
161291
163077
  binnen_mandaat?: boolean;
@@ -161301,6 +163087,7 @@ export declare const gatewaySupplyLineFn: import("@tanstack/start-client-core").
161301
163087
  notities?: string | null;
161302
163088
  offerte_number?: string | null;
161303
163089
  omschrijving?: string;
163090
+ onderwerp?: string | null;
161304
163091
  rejected_at?: string | null;
161305
163092
  sent_at?: string | null;
161306
163093
  source_number?: string | null;
@@ -161313,12 +163100,15 @@ export declare const gatewaySupplyLineFn: import("@tanstack/start-client-core").
161313
163100
  valid_until?: string | null;
161314
163101
  vat_cents?: number;
161315
163102
  vat_rate?: number;
163103
+ verzonden_naar?: string | null;
161316
163104
  viewed_at?: string | null;
161317
163105
  volgnummer?: number | null;
163106
+ voorwaarden?: string | null;
161318
163107
  werkbon_id?: string | null;
161319
163108
  work_location_id?: string | null;
161320
163109
  };
161321
163110
  Update: {
163111
+ aandachtspunten?: string | null;
161322
163112
  ai_generated?: boolean;
161323
163113
  approved_at?: string | null;
161324
163114
  binnen_mandaat?: boolean;
@@ -161334,6 +163124,7 @@ export declare const gatewaySupplyLineFn: import("@tanstack/start-client-core").
161334
163124
  notities?: string | null;
161335
163125
  offerte_number?: string | null;
161336
163126
  omschrijving?: string;
163127
+ onderwerp?: string | null;
161337
163128
  rejected_at?: string | null;
161338
163129
  sent_at?: string | null;
161339
163130
  source_number?: string | null;
@@ -161346,8 +163137,10 @@ export declare const gatewaySupplyLineFn: import("@tanstack/start-client-core").
161346
163137
  valid_until?: string | null;
161347
163138
  vat_cents?: number;
161348
163139
  vat_rate?: number;
163140
+ verzonden_naar?: string | null;
161349
163141
  viewed_at?: string | null;
161350
163142
  volgnummer?: number | null;
163143
+ voorwaarden?: string | null;
161351
163144
  werkbon_id?: string | null;
161352
163145
  work_location_id?: string | null;
161353
163146
  };
@@ -173425,6 +175218,51 @@ export declare const gatewaySupplyLineFn: import("@tanstack/start-client-core").
173425
175218
  referencedColumns: ["id"];
173426
175219
  }];
173427
175220
  };
175221
+ vakantie_uitbetalingen: {
175222
+ Row: {
175223
+ created_at: string;
175224
+ created_by: string | null;
175225
+ days: number;
175226
+ id: string;
175227
+ note: string | null;
175228
+ updated_at: string;
175229
+ user_id: string;
175230
+ year: number;
175231
+ };
175232
+ Insert: {
175233
+ created_at?: string;
175234
+ created_by?: string | null;
175235
+ days: number;
175236
+ id?: string;
175237
+ note?: string | null;
175238
+ updated_at?: string;
175239
+ user_id: string;
175240
+ year?: number;
175241
+ };
175242
+ Update: {
175243
+ created_at?: string;
175244
+ created_by?: string | null;
175245
+ days?: number;
175246
+ id?: string;
175247
+ note?: string | null;
175248
+ updated_at?: string;
175249
+ user_id?: string;
175250
+ year?: number;
175251
+ };
175252
+ Relationships: [{
175253
+ foreignKeyName: "vakantie_uitbetalingen_created_by_fkey";
175254
+ columns: ["created_by"];
175255
+ isOneToOne: false;
175256
+ referencedRelation: "profiles";
175257
+ referencedColumns: ["id"];
175258
+ }, {
175259
+ foreignKeyName: "vakantie_uitbetalingen_user_id_fkey";
175260
+ columns: ["user_id"];
175261
+ isOneToOne: false;
175262
+ referencedRelation: "profiles";
175263
+ referencedColumns: ["id"];
175264
+ }];
175265
+ };
173428
175266
  van_inventories: {
173429
175267
  Row: {
173430
175268
  barcode: string | null;
@@ -174709,6 +176547,78 @@ export declare const gatewaySupplyLineFn: import("@tanstack/start-client-core").
174709
176547
  referencedColumns: ["id"];
174710
176548
  }];
174711
176549
  };
176550
+ werkbon_voorstellen: {
176551
+ Row: {
176552
+ bron_werkbon_id: string;
176553
+ budget_mandate_cents: number;
176554
+ created_at: string;
176555
+ created_by: string;
176556
+ customer_id: string | null;
176557
+ id: string;
176558
+ payload: import("../integrations/supabase/types").Json;
176559
+ reden: string | null;
176560
+ status: string;
176561
+ updated_at: string;
176562
+ verwerkt_door: string | null;
176563
+ verwerkt_op: string | null;
176564
+ werkbon_id: string | null;
176565
+ };
176566
+ Insert: {
176567
+ bron_werkbon_id: string;
176568
+ budget_mandate_cents?: number;
176569
+ created_at?: string;
176570
+ created_by?: string;
176571
+ customer_id?: string | null;
176572
+ id?: string;
176573
+ payload?: import("../integrations/supabase/types").Json;
176574
+ reden?: string | null;
176575
+ status?: string;
176576
+ updated_at?: string;
176577
+ verwerkt_door?: string | null;
176578
+ verwerkt_op?: string | null;
176579
+ werkbon_id?: string | null;
176580
+ };
176581
+ Update: {
176582
+ bron_werkbon_id?: string;
176583
+ budget_mandate_cents?: number;
176584
+ created_at?: string;
176585
+ created_by?: string;
176586
+ customer_id?: string | null;
176587
+ id?: string;
176588
+ payload?: import("../integrations/supabase/types").Json;
176589
+ reden?: string | null;
176590
+ status?: string;
176591
+ updated_at?: string;
176592
+ verwerkt_door?: string | null;
176593
+ verwerkt_op?: string | null;
176594
+ werkbon_id?: string | null;
176595
+ };
176596
+ Relationships: [{
176597
+ foreignKeyName: "werkbon_voorstellen_bron_werkbon_id_fkey";
176598
+ columns: ["bron_werkbon_id"];
176599
+ isOneToOne: false;
176600
+ referencedRelation: "werkbonnen";
176601
+ referencedColumns: ["id"];
176602
+ }, {
176603
+ foreignKeyName: "werkbon_voorstellen_bron_werkbon_id_fkey";
176604
+ columns: ["bron_werkbon_id"];
176605
+ isOneToOne: false;
176606
+ referencedRelation: "wo_overview";
176607
+ referencedColumns: ["id"];
176608
+ }, {
176609
+ foreignKeyName: "werkbon_voorstellen_werkbon_id_fkey";
176610
+ columns: ["werkbon_id"];
176611
+ isOneToOne: false;
176612
+ referencedRelation: "werkbonnen";
176613
+ referencedColumns: ["id"];
176614
+ }, {
176615
+ foreignKeyName: "werkbon_voorstellen_werkbon_id_fkey";
176616
+ columns: ["werkbon_id"];
176617
+ isOneToOne: false;
176618
+ referencedRelation: "wo_overview";
176619
+ referencedColumns: ["id"];
176620
+ }];
176621
+ };
174712
176622
  werkbonnen: {
174713
176623
  Row: {
174714
176624
  assigned_user_id: string | null;
@@ -175949,6 +177859,10 @@ export declare const gatewaySupplyLineFn: import("@tanstack/start-client-core").
175949
177859
  };
175950
177860
  Returns: undefined;
175951
177861
  };
177862
+ _wo_is_planner: {
177863
+ Args: never;
177864
+ Returns: boolean;
177865
+ };
175952
177866
  afh_city_code: {
175953
177867
  Args: {
175954
177868
  _city: string;
@@ -177061,6 +178975,22 @@ export declare const gatewaySupplyLineFn: import("@tanstack/start-client-core").
177061
178975
  };
177062
178976
  Returns: number;
177063
178977
  };
178978
+ get_product_stock: {
178979
+ Args: {
178980
+ p_product_id: string;
178981
+ };
178982
+ Returns: {
178983
+ connection_id: string;
178984
+ incoming_stock: number;
178985
+ minimum_stock: number;
178986
+ notes: string;
178987
+ physical_stock: number;
178988
+ product_id: string;
178989
+ reserved_stock: number;
178990
+ trade_item_key: string;
178991
+ updated_at: string;
178992
+ }[];
178993
+ };
177064
178994
  get_room_busy_windows: {
177065
178995
  Args: {
177066
178996
  p_from: string;
@@ -177398,6 +179328,10 @@ export declare const gatewaySupplyLineFn: import("@tanstack/start-client-core").
177398
179328
  };
177399
179329
  Returns: number;
177400
179330
  };
179331
+ invoice_branding_snapshot: {
179332
+ Args: never;
179333
+ Returns: import("../integrations/supabase/types").Json;
179334
+ };
177401
179335
  invoice_create_from_source: {
177402
179336
  Args: {
177403
179337
  _payload?: import("../integrations/supabase/types").Json;
@@ -177432,6 +179366,17 @@ export declare const gatewaySupplyLineFn: import("@tanstack/start-client-core").
177432
179366
  };
177433
179367
  Returns: import("../integrations/supabase/types").Json;
177434
179368
  };
179369
+ invoice_mark_sent: {
179370
+ Args: {
179371
+ _invoice_id: string;
179372
+ _to: string;
179373
+ };
179374
+ Returns: undefined;
179375
+ };
179376
+ invoice_peek_next_number: {
179377
+ Args: never;
179378
+ Returns: string;
179379
+ };
177435
179380
  invoice_ready_work_orders: {
177436
179381
  Args: {
177437
179382
  _limit?: number;
@@ -177444,6 +179389,18 @@ export declare const gatewaySupplyLineFn: import("@tanstack/start-client-core").
177444
179389
  };
177445
179390
  Returns: import("../integrations/supabase/types").Json;
177446
179391
  };
179392
+ invoice_save_branding_settings: {
179393
+ Args: {
179394
+ _payload: import("../integrations/supabase/types").Json;
179395
+ };
179396
+ Returns: import("../integrations/supabase/types").Json;
179397
+ };
179398
+ invoice_set_email_purpose: {
179399
+ Args: {
179400
+ _purpose: string;
179401
+ };
179402
+ Returns: string;
179403
+ };
177447
179404
  invoice_source_lines: {
177448
179405
  Args: {
177449
179406
  _source_id: string;
@@ -177451,6 +179408,19 @@ export declare const gatewaySupplyLineFn: import("@tanstack/start-client-core").
177451
179408
  };
177452
179409
  Returns: import("../integrations/supabase/types").Json;
177453
179410
  };
179411
+ invoice_update_full: {
179412
+ Args: {
179413
+ _invoice_id: string;
179414
+ _payload: import("../integrations/supabase/types").Json;
179415
+ };
179416
+ Returns: import("../integrations/supabase/types").Json;
179417
+ };
179418
+ invoice_work_order_locked: {
179419
+ Args: {
179420
+ _werkbon_id: string;
179421
+ };
179422
+ Returns: import("../integrations/supabase/types").Json;
179423
+ };
177454
179424
  is_authenticated: {
177455
179425
  Args: never;
177456
179426
  Returns: boolean;
@@ -180750,6 +182720,19 @@ export declare const gatewaySupplyLineFn: import("@tanstack/start-client-core").
180750
182720
  };
180751
182721
  Returns: boolean;
180752
182722
  };
182723
+ quote_assign_number: {
182724
+ Args: {
182725
+ _offerte_id: string;
182726
+ };
182727
+ Returns: string;
182728
+ };
182729
+ quote_create_follow_up_now: {
182730
+ Args: {
182731
+ _offerte_id: string;
182732
+ _payload?: import("../integrations/supabase/types").Json;
182733
+ };
182734
+ Returns: import("../integrations/supabase/types").Json;
182735
+ };
180753
182736
  quote_create_from_source: {
180754
182737
  Args: {
180755
182738
  _payload?: import("../integrations/supabase/types").Json;
@@ -181463,6 +183446,26 @@ export declare const gatewaySupplyLineFn: import("@tanstack/start-client-core").
181463
183446
  };
181464
183447
  Returns: undefined;
181465
183448
  };
183449
+ set_product_stock: {
183450
+ Args: {
183451
+ p_incoming_stock?: number;
183452
+ p_minimum_stock?: number;
183453
+ p_notes?: string;
183454
+ p_physical_stock: number;
183455
+ p_product_id: string;
183456
+ };
183457
+ Returns: {
183458
+ connection_id: string;
183459
+ incoming_stock: number;
183460
+ minimum_stock: number;
183461
+ notes: string;
183462
+ physical_stock: number;
183463
+ product_id: string;
183464
+ reserved_stock: number;
183465
+ trade_item_key: string;
183466
+ updated_at: string;
183467
+ }[];
183468
+ };
181466
183469
  show_limit: {
181467
183470
  Args: never;
181468
183471
  Returns: number;
@@ -181987,6 +183990,13 @@ export declare const gatewaySupplyLineFn: import("@tanstack/start-client-core").
181987
183990
  };
181988
183991
  Returns: number;
181989
183992
  };
183993
+ vakantie_overuren: {
183994
+ Args: {
183995
+ _user_id: string;
183996
+ _year?: number;
183997
+ };
183998
+ Returns: number;
183999
+ };
181990
184000
  vakantie_saldo: {
181991
184001
  Args: {
181992
184002
  _user_id: string;
@@ -181994,7 +184004,12 @@ export declare const gatewaySupplyLineFn: import("@tanstack/start-client-core").
181994
184004
  };
181995
184005
  Returns: {
181996
184006
  day_hours: number;
184007
+ earned_from_overtime_days: number;
181997
184008
  entitlement_days: number;
184009
+ hours_to_next_day: number;
184010
+ overtime_hours: number;
184011
+ overtime_remainder_hours: number;
184012
+ paid_out_days: number;
181998
184013
  remaining_days: number;
181999
184014
  used_days: number;
182000
184015
  }[];
@@ -182005,7 +184020,12 @@ export declare const gatewaySupplyLineFn: import("@tanstack/start-client-core").
182005
184020
  };
182006
184021
  Returns: {
182007
184022
  day_hours: number;
184023
+ earned_from_overtime_days: number;
182008
184024
  entitlement_days: number;
184025
+ hours_to_next_day: number;
184026
+ overtime_hours: number;
184027
+ overtime_remainder_hours: number;
184028
+ paid_out_days: number;
182009
184029
  remaining_days: number;
182010
184030
  used_days: number;
182011
184031
  user_id: string;
@@ -182059,12 +184079,25 @@ export declare const gatewaySupplyLineFn: import("@tanstack/start-client-core").
182059
184079
  };
182060
184080
  Returns: import("../integrations/supabase/types").Json;
182061
184081
  };
184082
+ wo_list_proposals: {
184083
+ Args: {
184084
+ _status?: string;
184085
+ };
184086
+ Returns: import("../integrations/supabase/types").Json;
184087
+ };
182062
184088
  wo_process_offerte_request: {
182063
184089
  Args: {
182064
184090
  _queue_id: string;
182065
184091
  };
182066
184092
  Returns: import("../integrations/supabase/types").Json;
182067
184093
  };
184094
+ wo_process_proposal: {
184095
+ Args: {
184096
+ _id: string;
184097
+ _overrides?: import("../integrations/supabase/types").Json;
184098
+ };
184099
+ Returns: import("../integrations/supabase/types").Json;
184100
+ };
182068
184101
  wo_reject_offerte_request: {
182069
184102
  Args: {
182070
184103
  _queue_id: string;
@@ -182072,6 +184105,13 @@ export declare const gatewaySupplyLineFn: import("@tanstack/start-client-core").
182072
184105
  };
182073
184106
  Returns: import("../integrations/supabase/types").Json;
182074
184107
  };
184108
+ wo_reject_proposal: {
184109
+ Args: {
184110
+ _id: string;
184111
+ _reden?: string;
184112
+ };
184113
+ Returns: import("../integrations/supabase/types").Json;
184114
+ };
182075
184115
  wo_set_status: {
182076
184116
  Args: {
182077
184117
  _reason?: string;