@flowselections/layout-maker 1.7.3 → 1.8.0

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 (34) hide show
  1. package/README.md +131 -69
  2. package/dist-lib/components/PrinterSetupWizard.js +1 -1
  3. package/dist-lib/index.d.ts +2 -2
  4. package/dist-lib/index.d.ts.map +1 -1
  5. package/dist-lib/index.js +2 -2
  6. package/dist-lib/integrations/supabase/auth-middleware.d.ts +280 -13
  7. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  8. package/dist-lib/integrations/supabase/client.server.d.ts +280 -13
  9. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  10. package/dist-lib/integrations/supabase/types.d.ts +292 -14
  11. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  12. package/dist-lib/integrations/supabase/types.js +3 -0
  13. package/dist-lib/lib/aiLayout.functions.d.ts +280 -13
  14. package/dist-lib/lib/aiLayout.functions.d.ts.map +1 -1
  15. package/dist-lib/lib/aiLayout.server.js +9 -9
  16. package/dist-lib/lib/browserPrint.js +5 -5
  17. package/dist-lib/lib/documentProfiles.d.ts.map +1 -1
  18. package/dist-lib/lib/documentProfiles.js +3 -0
  19. package/dist-lib/lib/documentTypes.d.ts +1 -1
  20. package/dist-lib/lib/documentTypes.d.ts.map +1 -1
  21. package/dist-lib/lib/documentTypes.js +3 -0
  22. package/dist-lib/lib/layoutPreview.js +7 -7
  23. package/dist-lib/lib/pakbonHtml.js +50 -50
  24. package/dist-lib/lib/printApi.d.ts +71 -0
  25. package/dist-lib/lib/printApi.d.ts.map +1 -1
  26. package/dist-lib/lib/printApi.js +152 -12
  27. package/dist-lib/lib/printService.functions.d.ts +1120 -52
  28. package/dist-lib/lib/printService.functions.d.ts.map +1 -1
  29. package/dist-lib/lib/productiebonHtml.js +15 -15
  30. package/dist-lib/lib/profielHtml.js +18 -18
  31. package/dist-lib/lib/supabaseAdmin.server.d.ts +5 -5
  32. package/dist-lib/lib/supabaseAdmin.server.js +43 -43
  33. package/dist-lib/lib/testpagina.js +1 -1
  34. package/package.json +1 -1
@@ -7768,6 +7768,249 @@ export declare const netwerkPrinters: import("@tanstack/start-client-core").Opti
7768
7768
  };
7769
7769
  Relationships: [];
7770
7770
  };
7771
+ itk_offerte_events: {
7772
+ Row: {
7773
+ created_at: string;
7774
+ event_type: string;
7775
+ id: string;
7776
+ metadata: import("../integrations/supabase/types.js").Json;
7777
+ offerte_id: string;
7778
+ omschrijving: string | null;
7779
+ user_id: string | null;
7780
+ };
7781
+ Insert: {
7782
+ created_at?: string;
7783
+ event_type: string;
7784
+ id?: string;
7785
+ metadata?: import("../integrations/supabase/types.js").Json;
7786
+ offerte_id: string;
7787
+ omschrijving?: string | null;
7788
+ user_id?: string | null;
7789
+ };
7790
+ Update: {
7791
+ created_at?: string;
7792
+ event_type?: string;
7793
+ id?: string;
7794
+ metadata?: import("../integrations/supabase/types.js").Json;
7795
+ offerte_id?: string;
7796
+ omschrijving?: string | null;
7797
+ user_id?: string | null;
7798
+ };
7799
+ Relationships: [{
7800
+ foreignKeyName: "itk_offerte_events_offerte_id_fkey";
7801
+ columns: ["offerte_id"];
7802
+ isOneToOne: false;
7803
+ referencedRelation: "itk_offertes";
7804
+ referencedColumns: ["id"];
7805
+ }];
7806
+ };
7807
+ itk_offerte_regels: {
7808
+ Row: {
7809
+ created_at: string;
7810
+ id: string;
7811
+ line_total_cents: number;
7812
+ offerte_id: string;
7813
+ omschrijving: string;
7814
+ package_id: string | null;
7815
+ quantity: number;
7816
+ sort_order: number;
7817
+ source: string;
7818
+ unit_price_cents: number;
7819
+ updated_at: string;
7820
+ };
7821
+ Insert: {
7822
+ created_at?: string;
7823
+ id?: string;
7824
+ line_total_cents?: number;
7825
+ offerte_id: string;
7826
+ omschrijving?: string;
7827
+ package_id?: string | null;
7828
+ quantity?: number;
7829
+ sort_order?: number;
7830
+ source?: string;
7831
+ unit_price_cents?: number;
7832
+ updated_at?: string;
7833
+ };
7834
+ Update: {
7835
+ created_at?: string;
7836
+ id?: string;
7837
+ line_total_cents?: number;
7838
+ offerte_id?: string;
7839
+ omschrijving?: string;
7840
+ package_id?: string | null;
7841
+ quantity?: number;
7842
+ sort_order?: number;
7843
+ source?: string;
7844
+ unit_price_cents?: number;
7845
+ updated_at?: string;
7846
+ };
7847
+ Relationships: [{
7848
+ foreignKeyName: "itk_offerte_regels_offerte_id_fkey";
7849
+ columns: ["offerte_id"];
7850
+ isOneToOne: false;
7851
+ referencedRelation: "itk_offertes";
7852
+ referencedColumns: ["id"];
7853
+ }, {
7854
+ foreignKeyName: "itk_offerte_regels_package_id_fkey";
7855
+ columns: ["package_id"];
7856
+ isOneToOne: false;
7857
+ referencedRelation: "werkbon_packages";
7858
+ referencedColumns: ["id"];
7859
+ }];
7860
+ };
7861
+ itk_offerte_settings: {
7862
+ Row: {
7863
+ auto_convert_binnen_mandaat: boolean;
7864
+ created_at: string;
7865
+ default_geldigheid_dagen: number;
7866
+ default_vat_rate: number;
7867
+ id: string;
7868
+ singleton: boolean;
7869
+ updated_at: string;
7870
+ };
7871
+ Insert: {
7872
+ auto_convert_binnen_mandaat?: boolean;
7873
+ created_at?: string;
7874
+ default_geldigheid_dagen?: number;
7875
+ default_vat_rate?: number;
7876
+ id?: string;
7877
+ singleton?: boolean;
7878
+ updated_at?: string;
7879
+ };
7880
+ Update: {
7881
+ auto_convert_binnen_mandaat?: boolean;
7882
+ created_at?: string;
7883
+ default_geldigheid_dagen?: number;
7884
+ default_vat_rate?: number;
7885
+ id?: string;
7886
+ singleton?: boolean;
7887
+ updated_at?: string;
7888
+ };
7889
+ Relationships: [];
7890
+ };
7891
+ itk_offertes: {
7892
+ Row: {
7893
+ ai_generated: boolean;
7894
+ approved_at: string | null;
7895
+ binnen_mandaat: boolean;
7896
+ contact_id: string | null;
7897
+ converted_at: string | null;
7898
+ created_at: string;
7899
+ created_by: string | null;
7900
+ customer_id: string | null;
7901
+ follow_up_werkbon_id: string | null;
7902
+ id: string;
7903
+ jaar: number;
7904
+ mandaat_restant_cents: number;
7905
+ notities: string | null;
7906
+ offerte_number: string | null;
7907
+ omschrijving: string;
7908
+ rejected_at: string | null;
7909
+ sent_at: string | null;
7910
+ status: string;
7911
+ subtotal_cents: number;
7912
+ total_cents: number;
7913
+ updated_at: string;
7914
+ valid_until: string | null;
7915
+ vat_cents: number;
7916
+ vat_rate: number;
7917
+ viewed_at: string | null;
7918
+ volgnummer: number | null;
7919
+ werkbon_id: string | null;
7920
+ work_location_id: string | null;
7921
+ };
7922
+ Insert: {
7923
+ ai_generated?: boolean;
7924
+ approved_at?: string | null;
7925
+ binnen_mandaat?: boolean;
7926
+ contact_id?: string | null;
7927
+ converted_at?: string | null;
7928
+ created_at?: string;
7929
+ created_by?: string | null;
7930
+ customer_id?: string | null;
7931
+ follow_up_werkbon_id?: string | null;
7932
+ id?: string;
7933
+ jaar?: number;
7934
+ mandaat_restant_cents?: number;
7935
+ notities?: string | null;
7936
+ offerte_number?: string | null;
7937
+ omschrijving?: string;
7938
+ rejected_at?: string | null;
7939
+ sent_at?: string | null;
7940
+ status?: string;
7941
+ subtotal_cents?: number;
7942
+ total_cents?: number;
7943
+ updated_at?: string;
7944
+ valid_until?: string | null;
7945
+ vat_cents?: number;
7946
+ vat_rate?: number;
7947
+ viewed_at?: string | null;
7948
+ volgnummer?: number | null;
7949
+ werkbon_id?: string | null;
7950
+ work_location_id?: string | null;
7951
+ };
7952
+ Update: {
7953
+ ai_generated?: boolean;
7954
+ approved_at?: string | null;
7955
+ binnen_mandaat?: boolean;
7956
+ contact_id?: string | null;
7957
+ converted_at?: string | null;
7958
+ created_at?: string;
7959
+ created_by?: string | null;
7960
+ customer_id?: string | null;
7961
+ follow_up_werkbon_id?: string | null;
7962
+ id?: string;
7963
+ jaar?: number;
7964
+ mandaat_restant_cents?: number;
7965
+ notities?: string | null;
7966
+ offerte_number?: string | null;
7967
+ omschrijving?: string;
7968
+ rejected_at?: string | null;
7969
+ sent_at?: string | null;
7970
+ status?: string;
7971
+ subtotal_cents?: number;
7972
+ total_cents?: number;
7973
+ updated_at?: string;
7974
+ valid_until?: string | null;
7975
+ vat_cents?: number;
7976
+ vat_rate?: number;
7977
+ viewed_at?: string | null;
7978
+ volgnummer?: number | null;
7979
+ werkbon_id?: string | null;
7980
+ work_location_id?: string | null;
7981
+ };
7982
+ Relationships: [{
7983
+ foreignKeyName: "itk_offertes_contact_id_fkey";
7984
+ columns: ["contact_id"];
7985
+ isOneToOne: false;
7986
+ referencedRelation: "itk_contact_persons";
7987
+ referencedColumns: ["id"];
7988
+ }, {
7989
+ foreignKeyName: "itk_offertes_customer_id_fkey";
7990
+ columns: ["customer_id"];
7991
+ isOneToOne: false;
7992
+ referencedRelation: "itk_customers";
7993
+ referencedColumns: ["id"];
7994
+ }, {
7995
+ foreignKeyName: "itk_offertes_follow_up_werkbon_id_fkey";
7996
+ columns: ["follow_up_werkbon_id"];
7997
+ isOneToOne: false;
7998
+ referencedRelation: "werkbonnen";
7999
+ referencedColumns: ["id"];
8000
+ }, {
8001
+ foreignKeyName: "itk_offertes_werkbon_id_fkey";
8002
+ columns: ["werkbon_id"];
8003
+ isOneToOne: false;
8004
+ referencedRelation: "werkbonnen";
8005
+ referencedColumns: ["id"];
8006
+ }, {
8007
+ foreignKeyName: "itk_offertes_work_location_id_fkey";
8008
+ columns: ["work_location_id"];
8009
+ isOneToOne: false;
8010
+ referencedRelation: "itk_work_locations";
8011
+ referencedColumns: ["id"];
8012
+ }];
8013
+ };
7771
8014
  itk_work_locations: {
7772
8015
  Row: {
7773
8016
  city: string | null;
@@ -10201,6 +10444,7 @@ export declare const netwerkPrinters: import("@tanstack/start-client-core").Opti
10201
10444
  module_registry: {
10202
10445
  Row: {
10203
10446
  created_at: string;
10447
+ enforce: boolean;
10204
10448
  is_active: boolean;
10205
10449
  last_seen_at: string;
10206
10450
  module_id: string;
@@ -10210,6 +10454,7 @@ export declare const netwerkPrinters: import("@tanstack/start-client-core").Opti
10210
10454
  };
10211
10455
  Insert: {
10212
10456
  created_at?: string;
10457
+ enforce?: boolean;
10213
10458
  is_active?: boolean;
10214
10459
  last_seen_at?: string;
10215
10460
  module_id: string;
@@ -10219,6 +10464,7 @@ export declare const netwerkPrinters: import("@tanstack/start-client-core").Opti
10219
10464
  };
10220
10465
  Update: {
10221
10466
  created_at?: string;
10467
+ enforce?: boolean;
10222
10468
  is_active?: boolean;
10223
10469
  last_seen_at?: string;
10224
10470
  module_id?: string;
@@ -14756,6 +15002,7 @@ export declare const netwerkPrinters: import("@tanstack/start-client-core").Opti
14756
15002
  type: string;
14757
15003
  updated_at: string;
14758
15004
  vereist_medewerker: boolean;
15005
+ werkplek: string | null;
14759
15006
  };
14760
15007
  Insert: {
14761
15008
  actief?: boolean;
@@ -14769,6 +15016,7 @@ export declare const netwerkPrinters: import("@tanstack/start-client-core").Opti
14769
15016
  type?: string;
14770
15017
  updated_at?: string;
14771
15018
  vereist_medewerker?: boolean;
15019
+ werkplek?: string | null;
14772
15020
  };
14773
15021
  Update: {
14774
15022
  actief?: boolean;
@@ -14782,6 +15030,7 @@ export declare const netwerkPrinters: import("@tanstack/start-client-core").Opti
14782
15030
  type?: string;
14783
15031
  updated_at?: string;
14784
15032
  vereist_medewerker?: boolean;
15033
+ werkplek?: string | null;
14785
15034
  };
14786
15035
  Relationships: [];
14787
15036
  };
@@ -15979,6 +16228,7 @@ export declare const netwerkPrinters: import("@tanstack/start-client-core").Opti
15979
16228
  invoice_enabled_mo: boolean;
15980
16229
  payment_gl_account: string;
15981
16230
  payment_journal_code: string;
16231
+ print_werkplek: string | null;
15982
16232
  updated_at: string;
15983
16233
  user_id: string;
15984
16234
  vat_code_eu_reverse: string | null;
@@ -16001,6 +16251,7 @@ export declare const netwerkPrinters: import("@tanstack/start-client-core").Opti
16001
16251
  invoice_enabled_mo?: boolean;
16002
16252
  payment_gl_account?: string;
16003
16253
  payment_journal_code?: string;
16254
+ print_werkplek?: string | null;
16004
16255
  updated_at?: string;
16005
16256
  user_id: string;
16006
16257
  vat_code_eu_reverse?: string | null;
@@ -16023,6 +16274,7 @@ export declare const netwerkPrinters: import("@tanstack/start-client-core").Opti
16023
16274
  invoice_enabled_mo?: boolean;
16024
16275
  payment_gl_account?: string;
16025
16276
  payment_journal_code?: string;
16277
+ print_werkplek?: string | null;
16026
16278
  updated_at?: string;
16027
16279
  user_id?: string;
16028
16280
  vat_code_eu_reverse?: string | null;
@@ -18974,6 +19226,19 @@ export declare const netwerkPrinters: import("@tanstack/start-client-core").Opti
18974
19226
  };
18975
19227
  Returns: undefined;
18976
19228
  };
19229
+ approve_mailbox_order_proposal: {
19230
+ Args: {
19231
+ p_custom_fields: import("../integrations/supabase/types.js").Json;
19232
+ p_customer_id: string;
19233
+ p_delivery_date: string;
19234
+ p_field_values?: import("../integrations/supabase/types.js").Json;
19235
+ p_lines: import("../integrations/supabase/types.js").Json;
19236
+ p_notes: string;
19237
+ p_proposal_id: string;
19238
+ p_reviewed_by: string;
19239
+ };
19240
+ Returns: import("../integrations/supabase/types.js").Json;
19241
+ };
18977
19242
  assign_cart_numbers: {
18978
19243
  Args: {
18979
19244
  p_carts: import("../integrations/supabase/types.js").Json;
@@ -19405,7 +19670,7 @@ export declare const netwerkPrinters: import("@tanstack/start-client-core").Opti
19405
19670
  Returns: string;
19406
19671
  } | {
19407
19672
  Args: {
19408
- _feature_id?: string;
19673
+ _feature_id: string;
19409
19674
  _module_id: string;
19410
19675
  _user_id: string;
19411
19676
  };
@@ -19809,6 +20074,19 @@ export declare const netwerkPrinters: import("@tanstack/start-client-core").Opti
19809
20074
  Args: never;
19810
20075
  Returns: boolean;
19811
20076
  };
20077
+ itk_offerte_naar_werkbon: {
20078
+ Args: {
20079
+ _offerte_id: string;
20080
+ };
20081
+ Returns: string;
20082
+ };
20083
+ itk_offerte_restant_mandaat: {
20084
+ Args: {
20085
+ _exclude_offerte_id?: string;
20086
+ _werkbon_id: string;
20087
+ };
20088
+ Returns: number;
20089
+ };
19812
20090
  jwt_has_role: {
19813
20091
  Args: {
19814
20092
  _role: import("../integrations/supabase/types.js").Database["public"]["Enums"]["app_role"];
@@ -20148,17 +20426,6 @@ export declare const netwerkPrinters: import("@tanstack/start-client-core").Opti
20148
20426
  Returns: string;
20149
20427
  };
20150
20428
  logistics_emit_event: {
20151
- Args: {
20152
- p_event_type: string;
20153
- p_idempotency_key?: string;
20154
- p_order_ref: string;
20155
- p_payload?: import("../integrations/supabase/types.js").Json;
20156
- p_shadow?: boolean;
20157
- p_source_module: string;
20158
- p_strategy_id?: string;
20159
- };
20160
- Returns: import("../integrations/supabase/types.js").Json;
20161
- } | {
20162
20429
  Args: {
20163
20430
  p_event_type: string;
20164
20431
  p_idempotency_key?: string;
@@ -21615,7 +21882,7 @@ export declare const netwerkPrinters: import("@tanstack/start-client-core").Opti
21615
21882
  Enums: {
21616
21883
  ai_import_status: "nieuw" | "verwerken" | "bevestigen" | "klaar" | "mislukt";
21617
21884
  app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie";
21618
- doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon";
21885
+ doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon" | "veilingbon" | "afleverbrief" | "veilingbrief";
21619
21886
  doc_orientation: "portrait" | "landscape";
21620
21887
  exact_env: "staging" | "live";
21621
21888
  exact_push_status: "pending" | "sent" | "error";
@@ -29412,6 +29679,249 @@ export declare const verstuurPrintOpdracht: import("@tanstack/start-client-core"
29412
29679
  };
29413
29680
  Relationships: [];
29414
29681
  };
29682
+ itk_offerte_events: {
29683
+ Row: {
29684
+ created_at: string;
29685
+ event_type: string;
29686
+ id: string;
29687
+ metadata: import("../integrations/supabase/types.js").Json;
29688
+ offerte_id: string;
29689
+ omschrijving: string | null;
29690
+ user_id: string | null;
29691
+ };
29692
+ Insert: {
29693
+ created_at?: string;
29694
+ event_type: string;
29695
+ id?: string;
29696
+ metadata?: import("../integrations/supabase/types.js").Json;
29697
+ offerte_id: string;
29698
+ omschrijving?: string | null;
29699
+ user_id?: string | null;
29700
+ };
29701
+ Update: {
29702
+ created_at?: string;
29703
+ event_type?: string;
29704
+ id?: string;
29705
+ metadata?: import("../integrations/supabase/types.js").Json;
29706
+ offerte_id?: string;
29707
+ omschrijving?: string | null;
29708
+ user_id?: string | null;
29709
+ };
29710
+ Relationships: [{
29711
+ foreignKeyName: "itk_offerte_events_offerte_id_fkey";
29712
+ columns: ["offerte_id"];
29713
+ isOneToOne: false;
29714
+ referencedRelation: "itk_offertes";
29715
+ referencedColumns: ["id"];
29716
+ }];
29717
+ };
29718
+ itk_offerte_regels: {
29719
+ Row: {
29720
+ created_at: string;
29721
+ id: string;
29722
+ line_total_cents: number;
29723
+ offerte_id: string;
29724
+ omschrijving: string;
29725
+ package_id: string | null;
29726
+ quantity: number;
29727
+ sort_order: number;
29728
+ source: string;
29729
+ unit_price_cents: number;
29730
+ updated_at: string;
29731
+ };
29732
+ Insert: {
29733
+ created_at?: string;
29734
+ id?: string;
29735
+ line_total_cents?: number;
29736
+ offerte_id: string;
29737
+ omschrijving?: string;
29738
+ package_id?: string | null;
29739
+ quantity?: number;
29740
+ sort_order?: number;
29741
+ source?: string;
29742
+ unit_price_cents?: number;
29743
+ updated_at?: string;
29744
+ };
29745
+ Update: {
29746
+ created_at?: string;
29747
+ id?: string;
29748
+ line_total_cents?: number;
29749
+ offerte_id?: string;
29750
+ omschrijving?: string;
29751
+ package_id?: string | null;
29752
+ quantity?: number;
29753
+ sort_order?: number;
29754
+ source?: string;
29755
+ unit_price_cents?: number;
29756
+ updated_at?: string;
29757
+ };
29758
+ Relationships: [{
29759
+ foreignKeyName: "itk_offerte_regels_offerte_id_fkey";
29760
+ columns: ["offerte_id"];
29761
+ isOneToOne: false;
29762
+ referencedRelation: "itk_offertes";
29763
+ referencedColumns: ["id"];
29764
+ }, {
29765
+ foreignKeyName: "itk_offerte_regels_package_id_fkey";
29766
+ columns: ["package_id"];
29767
+ isOneToOne: false;
29768
+ referencedRelation: "werkbon_packages";
29769
+ referencedColumns: ["id"];
29770
+ }];
29771
+ };
29772
+ itk_offerte_settings: {
29773
+ Row: {
29774
+ auto_convert_binnen_mandaat: boolean;
29775
+ created_at: string;
29776
+ default_geldigheid_dagen: number;
29777
+ default_vat_rate: number;
29778
+ id: string;
29779
+ singleton: boolean;
29780
+ updated_at: string;
29781
+ };
29782
+ Insert: {
29783
+ auto_convert_binnen_mandaat?: boolean;
29784
+ created_at?: string;
29785
+ default_geldigheid_dagen?: number;
29786
+ default_vat_rate?: number;
29787
+ id?: string;
29788
+ singleton?: boolean;
29789
+ updated_at?: string;
29790
+ };
29791
+ Update: {
29792
+ auto_convert_binnen_mandaat?: boolean;
29793
+ created_at?: string;
29794
+ default_geldigheid_dagen?: number;
29795
+ default_vat_rate?: number;
29796
+ id?: string;
29797
+ singleton?: boolean;
29798
+ updated_at?: string;
29799
+ };
29800
+ Relationships: [];
29801
+ };
29802
+ itk_offertes: {
29803
+ Row: {
29804
+ ai_generated: boolean;
29805
+ approved_at: string | null;
29806
+ binnen_mandaat: boolean;
29807
+ contact_id: string | null;
29808
+ converted_at: string | null;
29809
+ created_at: string;
29810
+ created_by: string | null;
29811
+ customer_id: string | null;
29812
+ follow_up_werkbon_id: string | null;
29813
+ id: string;
29814
+ jaar: number;
29815
+ mandaat_restant_cents: number;
29816
+ notities: string | null;
29817
+ offerte_number: string | null;
29818
+ omschrijving: string;
29819
+ rejected_at: string | null;
29820
+ sent_at: string | null;
29821
+ status: string;
29822
+ subtotal_cents: number;
29823
+ total_cents: number;
29824
+ updated_at: string;
29825
+ valid_until: string | null;
29826
+ vat_cents: number;
29827
+ vat_rate: number;
29828
+ viewed_at: string | null;
29829
+ volgnummer: number | null;
29830
+ werkbon_id: string | null;
29831
+ work_location_id: string | null;
29832
+ };
29833
+ Insert: {
29834
+ ai_generated?: boolean;
29835
+ approved_at?: string | null;
29836
+ binnen_mandaat?: boolean;
29837
+ contact_id?: string | null;
29838
+ converted_at?: string | null;
29839
+ created_at?: string;
29840
+ created_by?: string | null;
29841
+ customer_id?: string | null;
29842
+ follow_up_werkbon_id?: string | null;
29843
+ id?: string;
29844
+ jaar?: number;
29845
+ mandaat_restant_cents?: number;
29846
+ notities?: string | null;
29847
+ offerte_number?: string | null;
29848
+ omschrijving?: string;
29849
+ rejected_at?: string | null;
29850
+ sent_at?: string | null;
29851
+ status?: string;
29852
+ subtotal_cents?: number;
29853
+ total_cents?: number;
29854
+ updated_at?: string;
29855
+ valid_until?: string | null;
29856
+ vat_cents?: number;
29857
+ vat_rate?: number;
29858
+ viewed_at?: string | null;
29859
+ volgnummer?: number | null;
29860
+ werkbon_id?: string | null;
29861
+ work_location_id?: string | null;
29862
+ };
29863
+ Update: {
29864
+ ai_generated?: boolean;
29865
+ approved_at?: string | null;
29866
+ binnen_mandaat?: boolean;
29867
+ contact_id?: string | null;
29868
+ converted_at?: string | null;
29869
+ created_at?: string;
29870
+ created_by?: string | null;
29871
+ customer_id?: string | null;
29872
+ follow_up_werkbon_id?: string | null;
29873
+ id?: string;
29874
+ jaar?: number;
29875
+ mandaat_restant_cents?: number;
29876
+ notities?: string | null;
29877
+ offerte_number?: string | null;
29878
+ omschrijving?: string;
29879
+ rejected_at?: string | null;
29880
+ sent_at?: string | null;
29881
+ status?: string;
29882
+ subtotal_cents?: number;
29883
+ total_cents?: number;
29884
+ updated_at?: string;
29885
+ valid_until?: string | null;
29886
+ vat_cents?: number;
29887
+ vat_rate?: number;
29888
+ viewed_at?: string | null;
29889
+ volgnummer?: number | null;
29890
+ werkbon_id?: string | null;
29891
+ work_location_id?: string | null;
29892
+ };
29893
+ Relationships: [{
29894
+ foreignKeyName: "itk_offertes_contact_id_fkey";
29895
+ columns: ["contact_id"];
29896
+ isOneToOne: false;
29897
+ referencedRelation: "itk_contact_persons";
29898
+ referencedColumns: ["id"];
29899
+ }, {
29900
+ foreignKeyName: "itk_offertes_customer_id_fkey";
29901
+ columns: ["customer_id"];
29902
+ isOneToOne: false;
29903
+ referencedRelation: "itk_customers";
29904
+ referencedColumns: ["id"];
29905
+ }, {
29906
+ foreignKeyName: "itk_offertes_follow_up_werkbon_id_fkey";
29907
+ columns: ["follow_up_werkbon_id"];
29908
+ isOneToOne: false;
29909
+ referencedRelation: "werkbonnen";
29910
+ referencedColumns: ["id"];
29911
+ }, {
29912
+ foreignKeyName: "itk_offertes_werkbon_id_fkey";
29913
+ columns: ["werkbon_id"];
29914
+ isOneToOne: false;
29915
+ referencedRelation: "werkbonnen";
29916
+ referencedColumns: ["id"];
29917
+ }, {
29918
+ foreignKeyName: "itk_offertes_work_location_id_fkey";
29919
+ columns: ["work_location_id"];
29920
+ isOneToOne: false;
29921
+ referencedRelation: "itk_work_locations";
29922
+ referencedColumns: ["id"];
29923
+ }];
29924
+ };
29415
29925
  itk_work_locations: {
29416
29926
  Row: {
29417
29927
  city: string | null;
@@ -31845,6 +32355,7 @@ export declare const verstuurPrintOpdracht: import("@tanstack/start-client-core"
31845
32355
  module_registry: {
31846
32356
  Row: {
31847
32357
  created_at: string;
32358
+ enforce: boolean;
31848
32359
  is_active: boolean;
31849
32360
  last_seen_at: string;
31850
32361
  module_id: string;
@@ -31854,6 +32365,7 @@ export declare const verstuurPrintOpdracht: import("@tanstack/start-client-core"
31854
32365
  };
31855
32366
  Insert: {
31856
32367
  created_at?: string;
32368
+ enforce?: boolean;
31857
32369
  is_active?: boolean;
31858
32370
  last_seen_at?: string;
31859
32371
  module_id: string;
@@ -31863,6 +32375,7 @@ export declare const verstuurPrintOpdracht: import("@tanstack/start-client-core"
31863
32375
  };
31864
32376
  Update: {
31865
32377
  created_at?: string;
32378
+ enforce?: boolean;
31866
32379
  is_active?: boolean;
31867
32380
  last_seen_at?: string;
31868
32381
  module_id?: string;
@@ -36400,6 +36913,7 @@ export declare const verstuurPrintOpdracht: import("@tanstack/start-client-core"
36400
36913
  type: string;
36401
36914
  updated_at: string;
36402
36915
  vereist_medewerker: boolean;
36916
+ werkplek: string | null;
36403
36917
  };
36404
36918
  Insert: {
36405
36919
  actief?: boolean;
@@ -36413,6 +36927,7 @@ export declare const verstuurPrintOpdracht: import("@tanstack/start-client-core"
36413
36927
  type?: string;
36414
36928
  updated_at?: string;
36415
36929
  vereist_medewerker?: boolean;
36930
+ werkplek?: string | null;
36416
36931
  };
36417
36932
  Update: {
36418
36933
  actief?: boolean;
@@ -36426,6 +36941,7 @@ export declare const verstuurPrintOpdracht: import("@tanstack/start-client-core"
36426
36941
  type?: string;
36427
36942
  updated_at?: string;
36428
36943
  vereist_medewerker?: boolean;
36944
+ werkplek?: string | null;
36429
36945
  };
36430
36946
  Relationships: [];
36431
36947
  };
@@ -37623,6 +38139,7 @@ export declare const verstuurPrintOpdracht: import("@tanstack/start-client-core"
37623
38139
  invoice_enabled_mo: boolean;
37624
38140
  payment_gl_account: string;
37625
38141
  payment_journal_code: string;
38142
+ print_werkplek: string | null;
37626
38143
  updated_at: string;
37627
38144
  user_id: string;
37628
38145
  vat_code_eu_reverse: string | null;
@@ -37645,6 +38162,7 @@ export declare const verstuurPrintOpdracht: import("@tanstack/start-client-core"
37645
38162
  invoice_enabled_mo?: boolean;
37646
38163
  payment_gl_account?: string;
37647
38164
  payment_journal_code?: string;
38165
+ print_werkplek?: string | null;
37648
38166
  updated_at?: string;
37649
38167
  user_id: string;
37650
38168
  vat_code_eu_reverse?: string | null;
@@ -37667,6 +38185,7 @@ export declare const verstuurPrintOpdracht: import("@tanstack/start-client-core"
37667
38185
  invoice_enabled_mo?: boolean;
37668
38186
  payment_gl_account?: string;
37669
38187
  payment_journal_code?: string;
38188
+ print_werkplek?: string | null;
37670
38189
  updated_at?: string;
37671
38190
  user_id?: string;
37672
38191
  vat_code_eu_reverse?: string | null;
@@ -40618,6 +41137,19 @@ export declare const verstuurPrintOpdracht: import("@tanstack/start-client-core"
40618
41137
  };
40619
41138
  Returns: undefined;
40620
41139
  };
41140
+ approve_mailbox_order_proposal: {
41141
+ Args: {
41142
+ p_custom_fields: import("../integrations/supabase/types.js").Json;
41143
+ p_customer_id: string;
41144
+ p_delivery_date: string;
41145
+ p_field_values?: import("../integrations/supabase/types.js").Json;
41146
+ p_lines: import("../integrations/supabase/types.js").Json;
41147
+ p_notes: string;
41148
+ p_proposal_id: string;
41149
+ p_reviewed_by: string;
41150
+ };
41151
+ Returns: import("../integrations/supabase/types.js").Json;
41152
+ };
40621
41153
  assign_cart_numbers: {
40622
41154
  Args: {
40623
41155
  p_carts: import("../integrations/supabase/types.js").Json;
@@ -41049,7 +41581,7 @@ export declare const verstuurPrintOpdracht: import("@tanstack/start-client-core"
41049
41581
  Returns: string;
41050
41582
  } | {
41051
41583
  Args: {
41052
- _feature_id?: string;
41584
+ _feature_id: string;
41053
41585
  _module_id: string;
41054
41586
  _user_id: string;
41055
41587
  };
@@ -41453,6 +41985,19 @@ export declare const verstuurPrintOpdracht: import("@tanstack/start-client-core"
41453
41985
  Args: never;
41454
41986
  Returns: boolean;
41455
41987
  };
41988
+ itk_offerte_naar_werkbon: {
41989
+ Args: {
41990
+ _offerte_id: string;
41991
+ };
41992
+ Returns: string;
41993
+ };
41994
+ itk_offerte_restant_mandaat: {
41995
+ Args: {
41996
+ _exclude_offerte_id?: string;
41997
+ _werkbon_id: string;
41998
+ };
41999
+ Returns: number;
42000
+ };
41456
42001
  jwt_has_role: {
41457
42002
  Args: {
41458
42003
  _role: import("../integrations/supabase/types.js").Database["public"]["Enums"]["app_role"];
@@ -41792,17 +42337,6 @@ export declare const verstuurPrintOpdracht: import("@tanstack/start-client-core"
41792
42337
  Returns: string;
41793
42338
  };
41794
42339
  logistics_emit_event: {
41795
- Args: {
41796
- p_event_type: string;
41797
- p_idempotency_key?: string;
41798
- p_order_ref: string;
41799
- p_payload?: import("../integrations/supabase/types.js").Json;
41800
- p_shadow?: boolean;
41801
- p_source_module: string;
41802
- p_strategy_id?: string;
41803
- };
41804
- Returns: import("../integrations/supabase/types.js").Json;
41805
- } | {
41806
42340
  Args: {
41807
42341
  p_event_type: string;
41808
42342
  p_idempotency_key?: string;
@@ -43259,7 +43793,7 @@ export declare const verstuurPrintOpdracht: import("@tanstack/start-client-core"
43259
43793
  Enums: {
43260
43794
  ai_import_status: "nieuw" | "verwerken" | "bevestigen" | "klaar" | "mislukt";
43261
43795
  app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie";
43262
- doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon";
43796
+ doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon" | "veilingbon" | "afleverbrief" | "veilingbrief";
43263
43797
  doc_orientation: "portrait" | "landscape";
43264
43798
  exact_env: "staging" | "live";
43265
43799
  exact_push_status: "pending" | "sent" | "error";
@@ -51066,6 +51600,249 @@ export declare const printStatus: import("@tanstack/start-client-core").Required
51066
51600
  };
51067
51601
  Relationships: [];
51068
51602
  };
51603
+ itk_offerte_events: {
51604
+ Row: {
51605
+ created_at: string;
51606
+ event_type: string;
51607
+ id: string;
51608
+ metadata: import("../integrations/supabase/types.js").Json;
51609
+ offerte_id: string;
51610
+ omschrijving: string | null;
51611
+ user_id: string | null;
51612
+ };
51613
+ Insert: {
51614
+ created_at?: string;
51615
+ event_type: string;
51616
+ id?: string;
51617
+ metadata?: import("../integrations/supabase/types.js").Json;
51618
+ offerte_id: string;
51619
+ omschrijving?: string | null;
51620
+ user_id?: string | null;
51621
+ };
51622
+ Update: {
51623
+ created_at?: string;
51624
+ event_type?: string;
51625
+ id?: string;
51626
+ metadata?: import("../integrations/supabase/types.js").Json;
51627
+ offerte_id?: string;
51628
+ omschrijving?: string | null;
51629
+ user_id?: string | null;
51630
+ };
51631
+ Relationships: [{
51632
+ foreignKeyName: "itk_offerte_events_offerte_id_fkey";
51633
+ columns: ["offerte_id"];
51634
+ isOneToOne: false;
51635
+ referencedRelation: "itk_offertes";
51636
+ referencedColumns: ["id"];
51637
+ }];
51638
+ };
51639
+ itk_offerte_regels: {
51640
+ Row: {
51641
+ created_at: string;
51642
+ id: string;
51643
+ line_total_cents: number;
51644
+ offerte_id: string;
51645
+ omschrijving: string;
51646
+ package_id: string | null;
51647
+ quantity: number;
51648
+ sort_order: number;
51649
+ source: string;
51650
+ unit_price_cents: number;
51651
+ updated_at: string;
51652
+ };
51653
+ Insert: {
51654
+ created_at?: string;
51655
+ id?: string;
51656
+ line_total_cents?: number;
51657
+ offerte_id: string;
51658
+ omschrijving?: string;
51659
+ package_id?: string | null;
51660
+ quantity?: number;
51661
+ sort_order?: number;
51662
+ source?: string;
51663
+ unit_price_cents?: number;
51664
+ updated_at?: string;
51665
+ };
51666
+ Update: {
51667
+ created_at?: string;
51668
+ id?: string;
51669
+ line_total_cents?: number;
51670
+ offerte_id?: string;
51671
+ omschrijving?: string;
51672
+ package_id?: string | null;
51673
+ quantity?: number;
51674
+ sort_order?: number;
51675
+ source?: string;
51676
+ unit_price_cents?: number;
51677
+ updated_at?: string;
51678
+ };
51679
+ Relationships: [{
51680
+ foreignKeyName: "itk_offerte_regels_offerte_id_fkey";
51681
+ columns: ["offerte_id"];
51682
+ isOneToOne: false;
51683
+ referencedRelation: "itk_offertes";
51684
+ referencedColumns: ["id"];
51685
+ }, {
51686
+ foreignKeyName: "itk_offerte_regels_package_id_fkey";
51687
+ columns: ["package_id"];
51688
+ isOneToOne: false;
51689
+ referencedRelation: "werkbon_packages";
51690
+ referencedColumns: ["id"];
51691
+ }];
51692
+ };
51693
+ itk_offerte_settings: {
51694
+ Row: {
51695
+ auto_convert_binnen_mandaat: boolean;
51696
+ created_at: string;
51697
+ default_geldigheid_dagen: number;
51698
+ default_vat_rate: number;
51699
+ id: string;
51700
+ singleton: boolean;
51701
+ updated_at: string;
51702
+ };
51703
+ Insert: {
51704
+ auto_convert_binnen_mandaat?: boolean;
51705
+ created_at?: string;
51706
+ default_geldigheid_dagen?: number;
51707
+ default_vat_rate?: number;
51708
+ id?: string;
51709
+ singleton?: boolean;
51710
+ updated_at?: string;
51711
+ };
51712
+ Update: {
51713
+ auto_convert_binnen_mandaat?: boolean;
51714
+ created_at?: string;
51715
+ default_geldigheid_dagen?: number;
51716
+ default_vat_rate?: number;
51717
+ id?: string;
51718
+ singleton?: boolean;
51719
+ updated_at?: string;
51720
+ };
51721
+ Relationships: [];
51722
+ };
51723
+ itk_offertes: {
51724
+ Row: {
51725
+ ai_generated: boolean;
51726
+ approved_at: string | null;
51727
+ binnen_mandaat: boolean;
51728
+ contact_id: string | null;
51729
+ converted_at: string | null;
51730
+ created_at: string;
51731
+ created_by: string | null;
51732
+ customer_id: string | null;
51733
+ follow_up_werkbon_id: string | null;
51734
+ id: string;
51735
+ jaar: number;
51736
+ mandaat_restant_cents: number;
51737
+ notities: string | null;
51738
+ offerte_number: string | null;
51739
+ omschrijving: string;
51740
+ rejected_at: string | null;
51741
+ sent_at: string | null;
51742
+ status: string;
51743
+ subtotal_cents: number;
51744
+ total_cents: number;
51745
+ updated_at: string;
51746
+ valid_until: string | null;
51747
+ vat_cents: number;
51748
+ vat_rate: number;
51749
+ viewed_at: string | null;
51750
+ volgnummer: number | null;
51751
+ werkbon_id: string | null;
51752
+ work_location_id: string | null;
51753
+ };
51754
+ Insert: {
51755
+ ai_generated?: boolean;
51756
+ approved_at?: string | null;
51757
+ binnen_mandaat?: boolean;
51758
+ contact_id?: string | null;
51759
+ converted_at?: string | null;
51760
+ created_at?: string;
51761
+ created_by?: string | null;
51762
+ customer_id?: string | null;
51763
+ follow_up_werkbon_id?: string | null;
51764
+ id?: string;
51765
+ jaar?: number;
51766
+ mandaat_restant_cents?: number;
51767
+ notities?: string | null;
51768
+ offerte_number?: string | null;
51769
+ omschrijving?: string;
51770
+ rejected_at?: string | null;
51771
+ sent_at?: string | null;
51772
+ status?: string;
51773
+ subtotal_cents?: number;
51774
+ total_cents?: number;
51775
+ updated_at?: string;
51776
+ valid_until?: string | null;
51777
+ vat_cents?: number;
51778
+ vat_rate?: number;
51779
+ viewed_at?: string | null;
51780
+ volgnummer?: number | null;
51781
+ werkbon_id?: string | null;
51782
+ work_location_id?: string | null;
51783
+ };
51784
+ Update: {
51785
+ ai_generated?: boolean;
51786
+ approved_at?: string | null;
51787
+ binnen_mandaat?: boolean;
51788
+ contact_id?: string | null;
51789
+ converted_at?: string | null;
51790
+ created_at?: string;
51791
+ created_by?: string | null;
51792
+ customer_id?: string | null;
51793
+ follow_up_werkbon_id?: string | null;
51794
+ id?: string;
51795
+ jaar?: number;
51796
+ mandaat_restant_cents?: number;
51797
+ notities?: string | null;
51798
+ offerte_number?: string | null;
51799
+ omschrijving?: string;
51800
+ rejected_at?: string | null;
51801
+ sent_at?: string | null;
51802
+ status?: string;
51803
+ subtotal_cents?: number;
51804
+ total_cents?: number;
51805
+ updated_at?: string;
51806
+ valid_until?: string | null;
51807
+ vat_cents?: number;
51808
+ vat_rate?: number;
51809
+ viewed_at?: string | null;
51810
+ volgnummer?: number | null;
51811
+ werkbon_id?: string | null;
51812
+ work_location_id?: string | null;
51813
+ };
51814
+ Relationships: [{
51815
+ foreignKeyName: "itk_offertes_contact_id_fkey";
51816
+ columns: ["contact_id"];
51817
+ isOneToOne: false;
51818
+ referencedRelation: "itk_contact_persons";
51819
+ referencedColumns: ["id"];
51820
+ }, {
51821
+ foreignKeyName: "itk_offertes_customer_id_fkey";
51822
+ columns: ["customer_id"];
51823
+ isOneToOne: false;
51824
+ referencedRelation: "itk_customers";
51825
+ referencedColumns: ["id"];
51826
+ }, {
51827
+ foreignKeyName: "itk_offertes_follow_up_werkbon_id_fkey";
51828
+ columns: ["follow_up_werkbon_id"];
51829
+ isOneToOne: false;
51830
+ referencedRelation: "werkbonnen";
51831
+ referencedColumns: ["id"];
51832
+ }, {
51833
+ foreignKeyName: "itk_offertes_werkbon_id_fkey";
51834
+ columns: ["werkbon_id"];
51835
+ isOneToOne: false;
51836
+ referencedRelation: "werkbonnen";
51837
+ referencedColumns: ["id"];
51838
+ }, {
51839
+ foreignKeyName: "itk_offertes_work_location_id_fkey";
51840
+ columns: ["work_location_id"];
51841
+ isOneToOne: false;
51842
+ referencedRelation: "itk_work_locations";
51843
+ referencedColumns: ["id"];
51844
+ }];
51845
+ };
51069
51846
  itk_work_locations: {
51070
51847
  Row: {
51071
51848
  city: string | null;
@@ -53499,6 +54276,7 @@ export declare const printStatus: import("@tanstack/start-client-core").Required
53499
54276
  module_registry: {
53500
54277
  Row: {
53501
54278
  created_at: string;
54279
+ enforce: boolean;
53502
54280
  is_active: boolean;
53503
54281
  last_seen_at: string;
53504
54282
  module_id: string;
@@ -53508,6 +54286,7 @@ export declare const printStatus: import("@tanstack/start-client-core").Required
53508
54286
  };
53509
54287
  Insert: {
53510
54288
  created_at?: string;
54289
+ enforce?: boolean;
53511
54290
  is_active?: boolean;
53512
54291
  last_seen_at?: string;
53513
54292
  module_id: string;
@@ -53517,6 +54296,7 @@ export declare const printStatus: import("@tanstack/start-client-core").Required
53517
54296
  };
53518
54297
  Update: {
53519
54298
  created_at?: string;
54299
+ enforce?: boolean;
53520
54300
  is_active?: boolean;
53521
54301
  last_seen_at?: string;
53522
54302
  module_id?: string;
@@ -58054,6 +58834,7 @@ export declare const printStatus: import("@tanstack/start-client-core").Required
58054
58834
  type: string;
58055
58835
  updated_at: string;
58056
58836
  vereist_medewerker: boolean;
58837
+ werkplek: string | null;
58057
58838
  };
58058
58839
  Insert: {
58059
58840
  actief?: boolean;
@@ -58067,6 +58848,7 @@ export declare const printStatus: import("@tanstack/start-client-core").Required
58067
58848
  type?: string;
58068
58849
  updated_at?: string;
58069
58850
  vereist_medewerker?: boolean;
58851
+ werkplek?: string | null;
58070
58852
  };
58071
58853
  Update: {
58072
58854
  actief?: boolean;
@@ -58080,6 +58862,7 @@ export declare const printStatus: import("@tanstack/start-client-core").Required
58080
58862
  type?: string;
58081
58863
  updated_at?: string;
58082
58864
  vereist_medewerker?: boolean;
58865
+ werkplek?: string | null;
58083
58866
  };
58084
58867
  Relationships: [];
58085
58868
  };
@@ -59277,6 +60060,7 @@ export declare const printStatus: import("@tanstack/start-client-core").Required
59277
60060
  invoice_enabled_mo: boolean;
59278
60061
  payment_gl_account: string;
59279
60062
  payment_journal_code: string;
60063
+ print_werkplek: string | null;
59280
60064
  updated_at: string;
59281
60065
  user_id: string;
59282
60066
  vat_code_eu_reverse: string | null;
@@ -59299,6 +60083,7 @@ export declare const printStatus: import("@tanstack/start-client-core").Required
59299
60083
  invoice_enabled_mo?: boolean;
59300
60084
  payment_gl_account?: string;
59301
60085
  payment_journal_code?: string;
60086
+ print_werkplek?: string | null;
59302
60087
  updated_at?: string;
59303
60088
  user_id: string;
59304
60089
  vat_code_eu_reverse?: string | null;
@@ -59321,6 +60106,7 @@ export declare const printStatus: import("@tanstack/start-client-core").Required
59321
60106
  invoice_enabled_mo?: boolean;
59322
60107
  payment_gl_account?: string;
59323
60108
  payment_journal_code?: string;
60109
+ print_werkplek?: string | null;
59324
60110
  updated_at?: string;
59325
60111
  user_id?: string;
59326
60112
  vat_code_eu_reverse?: string | null;
@@ -62272,6 +63058,19 @@ export declare const printStatus: import("@tanstack/start-client-core").Required
62272
63058
  };
62273
63059
  Returns: undefined;
62274
63060
  };
63061
+ approve_mailbox_order_proposal: {
63062
+ Args: {
63063
+ p_custom_fields: import("../integrations/supabase/types.js").Json;
63064
+ p_customer_id: string;
63065
+ p_delivery_date: string;
63066
+ p_field_values?: import("../integrations/supabase/types.js").Json;
63067
+ p_lines: import("../integrations/supabase/types.js").Json;
63068
+ p_notes: string;
63069
+ p_proposal_id: string;
63070
+ p_reviewed_by: string;
63071
+ };
63072
+ Returns: import("../integrations/supabase/types.js").Json;
63073
+ };
62275
63074
  assign_cart_numbers: {
62276
63075
  Args: {
62277
63076
  p_carts: import("../integrations/supabase/types.js").Json;
@@ -62703,7 +63502,7 @@ export declare const printStatus: import("@tanstack/start-client-core").Required
62703
63502
  Returns: string;
62704
63503
  } | {
62705
63504
  Args: {
62706
- _feature_id?: string;
63505
+ _feature_id: string;
62707
63506
  _module_id: string;
62708
63507
  _user_id: string;
62709
63508
  };
@@ -63107,6 +63906,19 @@ export declare const printStatus: import("@tanstack/start-client-core").Required
63107
63906
  Args: never;
63108
63907
  Returns: boolean;
63109
63908
  };
63909
+ itk_offerte_naar_werkbon: {
63910
+ Args: {
63911
+ _offerte_id: string;
63912
+ };
63913
+ Returns: string;
63914
+ };
63915
+ itk_offerte_restant_mandaat: {
63916
+ Args: {
63917
+ _exclude_offerte_id?: string;
63918
+ _werkbon_id: string;
63919
+ };
63920
+ Returns: number;
63921
+ };
63110
63922
  jwt_has_role: {
63111
63923
  Args: {
63112
63924
  _role: import("../integrations/supabase/types.js").Database["public"]["Enums"]["app_role"];
@@ -63446,17 +64258,6 @@ export declare const printStatus: import("@tanstack/start-client-core").Required
63446
64258
  Returns: string;
63447
64259
  };
63448
64260
  logistics_emit_event: {
63449
- Args: {
63450
- p_event_type: string;
63451
- p_idempotency_key?: string;
63452
- p_order_ref: string;
63453
- p_payload?: import("../integrations/supabase/types.js").Json;
63454
- p_shadow?: boolean;
63455
- p_source_module: string;
63456
- p_strategy_id?: string;
63457
- };
63458
- Returns: import("../integrations/supabase/types.js").Json;
63459
- } | {
63460
64261
  Args: {
63461
64262
  p_event_type: string;
63462
64263
  p_idempotency_key?: string;
@@ -64913,7 +65714,7 @@ export declare const printStatus: import("@tanstack/start-client-core").Required
64913
65714
  Enums: {
64914
65715
  ai_import_status: "nieuw" | "verwerken" | "bevestigen" | "klaar" | "mislukt";
64915
65716
  app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie";
64916
- doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon";
65717
+ doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon" | "veilingbon" | "afleverbrief" | "veilingbrief";
64917
65718
  doc_orientation: "portrait" | "landscape";
64918
65719
  exact_env: "staging" | "live";
64919
65720
  exact_push_status: "pending" | "sent" | "error";
@@ -72714,6 +73515,249 @@ export declare const netwerkComputers: import("@tanstack/start-client-core").Opt
72714
73515
  };
72715
73516
  Relationships: [];
72716
73517
  };
73518
+ itk_offerte_events: {
73519
+ Row: {
73520
+ created_at: string;
73521
+ event_type: string;
73522
+ id: string;
73523
+ metadata: import("../integrations/supabase/types.js").Json;
73524
+ offerte_id: string;
73525
+ omschrijving: string | null;
73526
+ user_id: string | null;
73527
+ };
73528
+ Insert: {
73529
+ created_at?: string;
73530
+ event_type: string;
73531
+ id?: string;
73532
+ metadata?: import("../integrations/supabase/types.js").Json;
73533
+ offerte_id: string;
73534
+ omschrijving?: string | null;
73535
+ user_id?: string | null;
73536
+ };
73537
+ Update: {
73538
+ created_at?: string;
73539
+ event_type?: string;
73540
+ id?: string;
73541
+ metadata?: import("../integrations/supabase/types.js").Json;
73542
+ offerte_id?: string;
73543
+ omschrijving?: string | null;
73544
+ user_id?: string | null;
73545
+ };
73546
+ Relationships: [{
73547
+ foreignKeyName: "itk_offerte_events_offerte_id_fkey";
73548
+ columns: ["offerte_id"];
73549
+ isOneToOne: false;
73550
+ referencedRelation: "itk_offertes";
73551
+ referencedColumns: ["id"];
73552
+ }];
73553
+ };
73554
+ itk_offerte_regels: {
73555
+ Row: {
73556
+ created_at: string;
73557
+ id: string;
73558
+ line_total_cents: number;
73559
+ offerte_id: string;
73560
+ omschrijving: string;
73561
+ package_id: string | null;
73562
+ quantity: number;
73563
+ sort_order: number;
73564
+ source: string;
73565
+ unit_price_cents: number;
73566
+ updated_at: string;
73567
+ };
73568
+ Insert: {
73569
+ created_at?: string;
73570
+ id?: string;
73571
+ line_total_cents?: number;
73572
+ offerte_id: string;
73573
+ omschrijving?: string;
73574
+ package_id?: string | null;
73575
+ quantity?: number;
73576
+ sort_order?: number;
73577
+ source?: string;
73578
+ unit_price_cents?: number;
73579
+ updated_at?: string;
73580
+ };
73581
+ Update: {
73582
+ created_at?: string;
73583
+ id?: string;
73584
+ line_total_cents?: number;
73585
+ offerte_id?: string;
73586
+ omschrijving?: string;
73587
+ package_id?: string | null;
73588
+ quantity?: number;
73589
+ sort_order?: number;
73590
+ source?: string;
73591
+ unit_price_cents?: number;
73592
+ updated_at?: string;
73593
+ };
73594
+ Relationships: [{
73595
+ foreignKeyName: "itk_offerte_regels_offerte_id_fkey";
73596
+ columns: ["offerte_id"];
73597
+ isOneToOne: false;
73598
+ referencedRelation: "itk_offertes";
73599
+ referencedColumns: ["id"];
73600
+ }, {
73601
+ foreignKeyName: "itk_offerte_regels_package_id_fkey";
73602
+ columns: ["package_id"];
73603
+ isOneToOne: false;
73604
+ referencedRelation: "werkbon_packages";
73605
+ referencedColumns: ["id"];
73606
+ }];
73607
+ };
73608
+ itk_offerte_settings: {
73609
+ Row: {
73610
+ auto_convert_binnen_mandaat: boolean;
73611
+ created_at: string;
73612
+ default_geldigheid_dagen: number;
73613
+ default_vat_rate: number;
73614
+ id: string;
73615
+ singleton: boolean;
73616
+ updated_at: string;
73617
+ };
73618
+ Insert: {
73619
+ auto_convert_binnen_mandaat?: boolean;
73620
+ created_at?: string;
73621
+ default_geldigheid_dagen?: number;
73622
+ default_vat_rate?: number;
73623
+ id?: string;
73624
+ singleton?: boolean;
73625
+ updated_at?: string;
73626
+ };
73627
+ Update: {
73628
+ auto_convert_binnen_mandaat?: boolean;
73629
+ created_at?: string;
73630
+ default_geldigheid_dagen?: number;
73631
+ default_vat_rate?: number;
73632
+ id?: string;
73633
+ singleton?: boolean;
73634
+ updated_at?: string;
73635
+ };
73636
+ Relationships: [];
73637
+ };
73638
+ itk_offertes: {
73639
+ Row: {
73640
+ ai_generated: boolean;
73641
+ approved_at: string | null;
73642
+ binnen_mandaat: boolean;
73643
+ contact_id: string | null;
73644
+ converted_at: string | null;
73645
+ created_at: string;
73646
+ created_by: string | null;
73647
+ customer_id: string | null;
73648
+ follow_up_werkbon_id: string | null;
73649
+ id: string;
73650
+ jaar: number;
73651
+ mandaat_restant_cents: number;
73652
+ notities: string | null;
73653
+ offerte_number: string | null;
73654
+ omschrijving: string;
73655
+ rejected_at: string | null;
73656
+ sent_at: string | null;
73657
+ status: string;
73658
+ subtotal_cents: number;
73659
+ total_cents: number;
73660
+ updated_at: string;
73661
+ valid_until: string | null;
73662
+ vat_cents: number;
73663
+ vat_rate: number;
73664
+ viewed_at: string | null;
73665
+ volgnummer: number | null;
73666
+ werkbon_id: string | null;
73667
+ work_location_id: string | null;
73668
+ };
73669
+ Insert: {
73670
+ ai_generated?: boolean;
73671
+ approved_at?: string | null;
73672
+ binnen_mandaat?: boolean;
73673
+ contact_id?: string | null;
73674
+ converted_at?: string | null;
73675
+ created_at?: string;
73676
+ created_by?: string | null;
73677
+ customer_id?: string | null;
73678
+ follow_up_werkbon_id?: string | null;
73679
+ id?: string;
73680
+ jaar?: number;
73681
+ mandaat_restant_cents?: number;
73682
+ notities?: string | null;
73683
+ offerte_number?: string | null;
73684
+ omschrijving?: string;
73685
+ rejected_at?: string | null;
73686
+ sent_at?: string | null;
73687
+ status?: string;
73688
+ subtotal_cents?: number;
73689
+ total_cents?: number;
73690
+ updated_at?: string;
73691
+ valid_until?: string | null;
73692
+ vat_cents?: number;
73693
+ vat_rate?: number;
73694
+ viewed_at?: string | null;
73695
+ volgnummer?: number | null;
73696
+ werkbon_id?: string | null;
73697
+ work_location_id?: string | null;
73698
+ };
73699
+ Update: {
73700
+ ai_generated?: boolean;
73701
+ approved_at?: string | null;
73702
+ binnen_mandaat?: boolean;
73703
+ contact_id?: string | null;
73704
+ converted_at?: string | null;
73705
+ created_at?: string;
73706
+ created_by?: string | null;
73707
+ customer_id?: string | null;
73708
+ follow_up_werkbon_id?: string | null;
73709
+ id?: string;
73710
+ jaar?: number;
73711
+ mandaat_restant_cents?: number;
73712
+ notities?: string | null;
73713
+ offerte_number?: string | null;
73714
+ omschrijving?: string;
73715
+ rejected_at?: string | null;
73716
+ sent_at?: string | null;
73717
+ status?: string;
73718
+ subtotal_cents?: number;
73719
+ total_cents?: number;
73720
+ updated_at?: string;
73721
+ valid_until?: string | null;
73722
+ vat_cents?: number;
73723
+ vat_rate?: number;
73724
+ viewed_at?: string | null;
73725
+ volgnummer?: number | null;
73726
+ werkbon_id?: string | null;
73727
+ work_location_id?: string | null;
73728
+ };
73729
+ Relationships: [{
73730
+ foreignKeyName: "itk_offertes_contact_id_fkey";
73731
+ columns: ["contact_id"];
73732
+ isOneToOne: false;
73733
+ referencedRelation: "itk_contact_persons";
73734
+ referencedColumns: ["id"];
73735
+ }, {
73736
+ foreignKeyName: "itk_offertes_customer_id_fkey";
73737
+ columns: ["customer_id"];
73738
+ isOneToOne: false;
73739
+ referencedRelation: "itk_customers";
73740
+ referencedColumns: ["id"];
73741
+ }, {
73742
+ foreignKeyName: "itk_offertes_follow_up_werkbon_id_fkey";
73743
+ columns: ["follow_up_werkbon_id"];
73744
+ isOneToOne: false;
73745
+ referencedRelation: "werkbonnen";
73746
+ referencedColumns: ["id"];
73747
+ }, {
73748
+ foreignKeyName: "itk_offertes_werkbon_id_fkey";
73749
+ columns: ["werkbon_id"];
73750
+ isOneToOne: false;
73751
+ referencedRelation: "werkbonnen";
73752
+ referencedColumns: ["id"];
73753
+ }, {
73754
+ foreignKeyName: "itk_offertes_work_location_id_fkey";
73755
+ columns: ["work_location_id"];
73756
+ isOneToOne: false;
73757
+ referencedRelation: "itk_work_locations";
73758
+ referencedColumns: ["id"];
73759
+ }];
73760
+ };
72717
73761
  itk_work_locations: {
72718
73762
  Row: {
72719
73763
  city: string | null;
@@ -75147,6 +76191,7 @@ export declare const netwerkComputers: import("@tanstack/start-client-core").Opt
75147
76191
  module_registry: {
75148
76192
  Row: {
75149
76193
  created_at: string;
76194
+ enforce: boolean;
75150
76195
  is_active: boolean;
75151
76196
  last_seen_at: string;
75152
76197
  module_id: string;
@@ -75156,6 +76201,7 @@ export declare const netwerkComputers: import("@tanstack/start-client-core").Opt
75156
76201
  };
75157
76202
  Insert: {
75158
76203
  created_at?: string;
76204
+ enforce?: boolean;
75159
76205
  is_active?: boolean;
75160
76206
  last_seen_at?: string;
75161
76207
  module_id: string;
@@ -75165,6 +76211,7 @@ export declare const netwerkComputers: import("@tanstack/start-client-core").Opt
75165
76211
  };
75166
76212
  Update: {
75167
76213
  created_at?: string;
76214
+ enforce?: boolean;
75168
76215
  is_active?: boolean;
75169
76216
  last_seen_at?: string;
75170
76217
  module_id?: string;
@@ -79702,6 +80749,7 @@ export declare const netwerkComputers: import("@tanstack/start-client-core").Opt
79702
80749
  type: string;
79703
80750
  updated_at: string;
79704
80751
  vereist_medewerker: boolean;
80752
+ werkplek: string | null;
79705
80753
  };
79706
80754
  Insert: {
79707
80755
  actief?: boolean;
@@ -79715,6 +80763,7 @@ export declare const netwerkComputers: import("@tanstack/start-client-core").Opt
79715
80763
  type?: string;
79716
80764
  updated_at?: string;
79717
80765
  vereist_medewerker?: boolean;
80766
+ werkplek?: string | null;
79718
80767
  };
79719
80768
  Update: {
79720
80769
  actief?: boolean;
@@ -79728,6 +80777,7 @@ export declare const netwerkComputers: import("@tanstack/start-client-core").Opt
79728
80777
  type?: string;
79729
80778
  updated_at?: string;
79730
80779
  vereist_medewerker?: boolean;
80780
+ werkplek?: string | null;
79731
80781
  };
79732
80782
  Relationships: [];
79733
80783
  };
@@ -80925,6 +81975,7 @@ export declare const netwerkComputers: import("@tanstack/start-client-core").Opt
80925
81975
  invoice_enabled_mo: boolean;
80926
81976
  payment_gl_account: string;
80927
81977
  payment_journal_code: string;
81978
+ print_werkplek: string | null;
80928
81979
  updated_at: string;
80929
81980
  user_id: string;
80930
81981
  vat_code_eu_reverse: string | null;
@@ -80947,6 +81998,7 @@ export declare const netwerkComputers: import("@tanstack/start-client-core").Opt
80947
81998
  invoice_enabled_mo?: boolean;
80948
81999
  payment_gl_account?: string;
80949
82000
  payment_journal_code?: string;
82001
+ print_werkplek?: string | null;
80950
82002
  updated_at?: string;
80951
82003
  user_id: string;
80952
82004
  vat_code_eu_reverse?: string | null;
@@ -80969,6 +82021,7 @@ export declare const netwerkComputers: import("@tanstack/start-client-core").Opt
80969
82021
  invoice_enabled_mo?: boolean;
80970
82022
  payment_gl_account?: string;
80971
82023
  payment_journal_code?: string;
82024
+ print_werkplek?: string | null;
80972
82025
  updated_at?: string;
80973
82026
  user_id?: string;
80974
82027
  vat_code_eu_reverse?: string | null;
@@ -83920,6 +84973,19 @@ export declare const netwerkComputers: import("@tanstack/start-client-core").Opt
83920
84973
  };
83921
84974
  Returns: undefined;
83922
84975
  };
84976
+ approve_mailbox_order_proposal: {
84977
+ Args: {
84978
+ p_custom_fields: import("../integrations/supabase/types.js").Json;
84979
+ p_customer_id: string;
84980
+ p_delivery_date: string;
84981
+ p_field_values?: import("../integrations/supabase/types.js").Json;
84982
+ p_lines: import("../integrations/supabase/types.js").Json;
84983
+ p_notes: string;
84984
+ p_proposal_id: string;
84985
+ p_reviewed_by: string;
84986
+ };
84987
+ Returns: import("../integrations/supabase/types.js").Json;
84988
+ };
83923
84989
  assign_cart_numbers: {
83924
84990
  Args: {
83925
84991
  p_carts: import("../integrations/supabase/types.js").Json;
@@ -84351,7 +85417,7 @@ export declare const netwerkComputers: import("@tanstack/start-client-core").Opt
84351
85417
  Returns: string;
84352
85418
  } | {
84353
85419
  Args: {
84354
- _feature_id?: string;
85420
+ _feature_id: string;
84355
85421
  _module_id: string;
84356
85422
  _user_id: string;
84357
85423
  };
@@ -84755,6 +85821,19 @@ export declare const netwerkComputers: import("@tanstack/start-client-core").Opt
84755
85821
  Args: never;
84756
85822
  Returns: boolean;
84757
85823
  };
85824
+ itk_offerte_naar_werkbon: {
85825
+ Args: {
85826
+ _offerte_id: string;
85827
+ };
85828
+ Returns: string;
85829
+ };
85830
+ itk_offerte_restant_mandaat: {
85831
+ Args: {
85832
+ _exclude_offerte_id?: string;
85833
+ _werkbon_id: string;
85834
+ };
85835
+ Returns: number;
85836
+ };
84758
85837
  jwt_has_role: {
84759
85838
  Args: {
84760
85839
  _role: import("../integrations/supabase/types.js").Database["public"]["Enums"]["app_role"];
@@ -85094,17 +86173,6 @@ export declare const netwerkComputers: import("@tanstack/start-client-core").Opt
85094
86173
  Returns: string;
85095
86174
  };
85096
86175
  logistics_emit_event: {
85097
- Args: {
85098
- p_event_type: string;
85099
- p_idempotency_key?: string;
85100
- p_order_ref: string;
85101
- p_payload?: import("../integrations/supabase/types.js").Json;
85102
- p_shadow?: boolean;
85103
- p_source_module: string;
85104
- p_strategy_id?: string;
85105
- };
85106
- Returns: import("../integrations/supabase/types.js").Json;
85107
- } | {
85108
86176
  Args: {
85109
86177
  p_event_type: string;
85110
86178
  p_idempotency_key?: string;
@@ -86561,7 +87629,7 @@ export declare const netwerkComputers: import("@tanstack/start-client-core").Opt
86561
87629
  Enums: {
86562
87630
  ai_import_status: "nieuw" | "verwerken" | "bevestigen" | "klaar" | "mislukt";
86563
87631
  app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie";
86564
- doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon";
87632
+ doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon" | "veilingbon" | "afleverbrief" | "veilingbrief";
86565
87633
  doc_orientation: "portrait" | "landscape";
86566
87634
  exact_env: "staging" | "live";
86567
87635
  exact_push_status: "pending" | "sent" | "error";