@flowselections/floriday-verkoop-module 1.0.45 → 1.0.46

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 (51) hide show
  1. package/dist-lib/integrations/supabase/auth-middleware.d.ts +520 -145
  2. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  3. package/dist-lib/integrations/supabase/client.d.ts +520 -145
  4. package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
  5. package/dist-lib/integrations/supabase/client.server.d.ts +520 -145
  6. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  7. package/dist-lib/integrations/supabase/types.d.ts +545 -161
  8. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  9. package/dist-lib/lib/cart-lock.functions.d.ts +520 -145
  10. package/dist-lib/lib/cart-lock.functions.d.ts.map +1 -1
  11. package/dist-lib/lib/cart-planning-settings.functions.d.ts +5720 -1595
  12. package/dist-lib/lib/cart-planning-settings.functions.d.ts.map +1 -1
  13. package/dist-lib/lib/cart-replan.functions.d.ts +1560 -435
  14. package/dist-lib/lib/cart-replan.functions.d.ts.map +1 -1
  15. package/dist-lib/lib/create-order.functions.d.ts +8840 -2465
  16. package/dist-lib/lib/create-order.functions.d.ts.map +1 -1
  17. package/dist-lib/lib/floriday-auto-fulfillment.functions.d.ts +1560 -435
  18. package/dist-lib/lib/floriday-auto-fulfillment.functions.d.ts.map +1 -1
  19. package/dist-lib/lib/floriday-logistic-labels.functions.d.ts +520 -145
  20. package/dist-lib/lib/floriday-logistic-labels.functions.d.ts.map +1 -1
  21. package/dist-lib/lib/floriday-mirror.functions.d.ts +520 -145
  22. package/dist-lib/lib/floriday-mirror.functions.d.ts.map +1 -1
  23. package/dist-lib/lib/floriday-public.functions.d.ts +3640 -1015
  24. package/dist-lib/lib/floriday-public.functions.d.ts.map +1 -1
  25. package/dist-lib/lib/floriday-writes.functions.d.ts +2600 -725
  26. package/dist-lib/lib/floriday-writes.functions.d.ts.map +1 -1
  27. package/dist-lib/lib/invoice-timing.functions.d.ts +2080 -580
  28. package/dist-lib/lib/invoice-timing.functions.d.ts.map +1 -1
  29. package/dist-lib/lib/load-carriers.functions.d.ts +520 -145
  30. package/dist-lib/lib/load-carriers.functions.d.ts.map +1 -1
  31. package/dist-lib/lib/logistics-engine.functions.d.ts +2600 -725
  32. package/dist-lib/lib/logistics-engine.functions.d.ts.map +1 -1
  33. package/dist-lib/lib/logistics-stock.functions.d.ts +1040 -290
  34. package/dist-lib/lib/logistics-stock.functions.d.ts.map +1 -1
  35. package/dist-lib/lib/order-addresses.functions.d.ts +520 -145
  36. package/dist-lib/lib/order-addresses.functions.d.ts.map +1 -1
  37. package/dist-lib/lib/order-buffers.functions.d.ts +1560 -435
  38. package/dist-lib/lib/order-buffers.functions.d.ts.map +1 -1
  39. package/dist-lib/lib/order-carrier.functions.d.ts +1040 -290
  40. package/dist-lib/lib/order-carrier.functions.d.ts.map +1 -1
  41. package/dist-lib/lib/order-pickup.functions.d.ts +1040 -290
  42. package/dist-lib/lib/order-pickup.functions.d.ts.map +1 -1
  43. package/dist-lib/lib/order-shipments.functions.d.ts +2080 -580
  44. package/dist-lib/lib/order-shipments.functions.d.ts.map +1 -1
  45. package/dist-lib/lib/salesorders-list.functions.d.ts +520 -145
  46. package/dist-lib/lib/salesorders-list.functions.d.ts.map +1 -1
  47. package/dist-lib/lib/salesorders.functions.d.ts +2600 -725
  48. package/dist-lib/lib/salesorders.functions.d.ts.map +1 -1
  49. package/dist-lib/lib/tradeitems.functions.d.ts +520 -145
  50. package/dist-lib/lib/tradeitems.functions.d.ts.map +1 -1
  51. package/package.json +1 -1
@@ -2759,6 +2759,42 @@ export declare const getInvoiceTimingSettings: import("@tanstack/start-client-co
2759
2759
  };
2760
2760
  Relationships: [];
2761
2761
  };
2762
+ document_bronregels: {
2763
+ Row: {
2764
+ bron: string;
2765
+ created_at: string;
2766
+ documenttype: string;
2767
+ herkomst: string;
2768
+ id: string;
2769
+ layout_id: string | null;
2770
+ updated_at: string;
2771
+ };
2772
+ Insert: {
2773
+ bron?: string;
2774
+ created_at?: string;
2775
+ documenttype: string;
2776
+ herkomst: string;
2777
+ id?: string;
2778
+ layout_id?: string | null;
2779
+ updated_at?: string;
2780
+ };
2781
+ Update: {
2782
+ bron?: string;
2783
+ created_at?: string;
2784
+ documenttype?: string;
2785
+ herkomst?: string;
2786
+ id?: string;
2787
+ layout_id?: string | null;
2788
+ updated_at?: string;
2789
+ };
2790
+ Relationships: [{
2791
+ foreignKeyName: "document_bronregels_layout_id_fkey";
2792
+ columns: ["layout_id"];
2793
+ isOneToOne: false;
2794
+ referencedRelation: "document_layouts";
2795
+ referencedColumns: ["id"];
2796
+ }];
2797
+ };
2762
2798
  document_formaat_printers: {
2763
2799
  Row: {
2764
2800
  created_at: string;
@@ -3036,6 +3072,7 @@ export declare const getInvoiceTimingSettings: import("@tanstack/start-client-co
3036
3072
  Row: {
3037
3073
  actief: boolean;
3038
3074
  breedte_mm: number;
3075
+ bron: string;
3039
3076
  config: import("../integrations/supabase/types").Json;
3040
3077
  created_at: string;
3041
3078
  created_by: string | null;
@@ -3053,12 +3090,14 @@ export declare const getInvoiceTimingSettings: import("@tanstack/start-client-co
3053
3090
  orientatie: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_orientation"];
3054
3091
  page_settings: import("../integrations/supabase/types").Json;
3055
3092
  papierformaat: string;
3093
+ systeem: boolean;
3056
3094
  thumbnail_url: string | null;
3057
3095
  updated_at: string;
3058
3096
  };
3059
3097
  Insert: {
3060
3098
  actief?: boolean;
3061
3099
  breedte_mm?: number;
3100
+ bron?: string;
3062
3101
  config?: import("../integrations/supabase/types").Json;
3063
3102
  created_at?: string;
3064
3103
  created_by?: string | null;
@@ -3076,12 +3115,14 @@ export declare const getInvoiceTimingSettings: import("@tanstack/start-client-co
3076
3115
  orientatie?: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_orientation"];
3077
3116
  page_settings?: import("../integrations/supabase/types").Json;
3078
3117
  papierformaat?: string;
3118
+ systeem?: boolean;
3079
3119
  thumbnail_url?: string | null;
3080
3120
  updated_at?: string;
3081
3121
  };
3082
3122
  Update: {
3083
3123
  actief?: boolean;
3084
3124
  breedte_mm?: number;
3125
+ bron?: string;
3085
3126
  config?: import("../integrations/supabase/types").Json;
3086
3127
  created_at?: string;
3087
3128
  created_by?: string | null;
@@ -3099,11 +3140,48 @@ export declare const getInvoiceTimingSettings: import("@tanstack/start-client-co
3099
3140
  orientatie?: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_orientation"];
3100
3141
  page_settings?: import("../integrations/supabase/types").Json;
3101
3142
  papierformaat?: string;
3143
+ systeem?: boolean;
3102
3144
  thumbnail_url?: string | null;
3103
3145
  updated_at?: string;
3104
3146
  };
3105
3147
  Relationships: [];
3106
3148
  };
3149
+ document_werkplek_printers: {
3150
+ Row: {
3151
+ created_at: string;
3152
+ documenttype: string;
3153
+ id: string;
3154
+ papierformaat: string | null;
3155
+ printer_id: string | null;
3156
+ updated_at: string;
3157
+ werkplek: string;
3158
+ };
3159
+ Insert: {
3160
+ created_at?: string;
3161
+ documenttype: string;
3162
+ id?: string;
3163
+ papierformaat?: string | null;
3164
+ printer_id?: string | null;
3165
+ updated_at?: string;
3166
+ werkplek: string;
3167
+ };
3168
+ Update: {
3169
+ created_at?: string;
3170
+ documenttype?: string;
3171
+ id?: string;
3172
+ papierformaat?: string | null;
3173
+ printer_id?: string | null;
3174
+ updated_at?: string;
3175
+ werkplek?: string;
3176
+ };
3177
+ Relationships: [{
3178
+ foreignKeyName: "document_werkplek_printers_printer_id_fkey";
3179
+ columns: ["printer_id"];
3180
+ isOneToOne: false;
3181
+ referencedRelation: "printers";
3182
+ referencedColumns: ["id"];
3183
+ }];
3184
+ };
3107
3185
  email_auth_connections: {
3108
3186
  Row: {
3109
3187
  access_token_encrypted: string | null;
@@ -5045,42 +5123,6 @@ export declare const getInvoiceTimingSettings: import("@tanstack/start-client-co
5045
5123
  };
5046
5124
  Relationships: [];
5047
5125
  };
5048
- facturen: {
5049
- Row: {
5050
- bedrag_incl_btw: number;
5051
- created_at: string;
5052
- datum: string;
5053
- factuurnummer: string;
5054
- id: string;
5055
- klantnaam: string;
5056
- status: string;
5057
- updated_at: string;
5058
- user_id: string;
5059
- };
5060
- Insert: {
5061
- bedrag_incl_btw: number;
5062
- created_at?: string;
5063
- datum?: string;
5064
- factuurnummer: string;
5065
- id?: string;
5066
- klantnaam: string;
5067
- status?: string;
5068
- updated_at?: string;
5069
- user_id?: string;
5070
- };
5071
- Update: {
5072
- bedrag_incl_btw?: number;
5073
- created_at?: string;
5074
- datum?: string;
5075
- factuurnummer?: string;
5076
- id?: string;
5077
- klantnaam?: string;
5078
- status?: string;
5079
- updated_at?: string;
5080
- user_id?: string;
5081
- };
5082
- Relationships: [];
5083
- };
5084
5126
  floricode_connection_settings: {
5085
5127
  Row: {
5086
5128
  catalog_key: string | null;
@@ -7385,8 +7427,63 @@ export declare const getInvoiceTimingSettings: import("@tanstack/start-client-co
7385
7427
  };
7386
7428
  Relationships: [];
7387
7429
  };
7430
+ invoice_items: {
7431
+ Row: {
7432
+ created_at: string;
7433
+ description: string;
7434
+ id: string;
7435
+ invoice_id: string;
7436
+ kind: string;
7437
+ quantity: number;
7438
+ sort_order: number;
7439
+ source_line_ref: string | null;
7440
+ total_cents: number;
7441
+ unit: string;
7442
+ unit_price_cents: number;
7443
+ };
7444
+ Insert: {
7445
+ created_at?: string;
7446
+ description?: string;
7447
+ id?: string;
7448
+ invoice_id: string;
7449
+ kind?: string;
7450
+ quantity?: number;
7451
+ sort_order?: number;
7452
+ source_line_ref?: string | null;
7453
+ total_cents?: number;
7454
+ unit?: string;
7455
+ unit_price_cents?: number;
7456
+ };
7457
+ Update: {
7458
+ created_at?: string;
7459
+ description?: string;
7460
+ id?: string;
7461
+ invoice_id?: string;
7462
+ kind?: string;
7463
+ quantity?: number;
7464
+ sort_order?: number;
7465
+ source_line_ref?: string | null;
7466
+ total_cents?: number;
7467
+ unit?: string;
7468
+ unit_price_cents?: number;
7469
+ };
7470
+ Relationships: [{
7471
+ foreignKeyName: "invoice_items_invoice_id_fkey";
7472
+ columns: ["invoice_id"];
7473
+ isOneToOne: false;
7474
+ referencedRelation: "invoices";
7475
+ referencedColumns: ["id"];
7476
+ }, {
7477
+ foreignKeyName: "invoice_items_invoice_id_fkey";
7478
+ columns: ["invoice_id"];
7479
+ isOneToOne: false;
7480
+ referencedRelation: "uren_facturen";
7481
+ referencedColumns: ["id"];
7482
+ }];
7483
+ };
7388
7484
  invoice_post_idempotency: {
7389
7485
  Row: {
7486
+ administration_code: string;
7390
7487
  client_request_id: string;
7391
7488
  completed_at: string | null;
7392
7489
  created_at: string;
@@ -7396,6 +7493,7 @@ export declare const getInvoiceTimingSettings: import("@tanstack/start-client-co
7396
7493
  user_id: string;
7397
7494
  };
7398
7495
  Insert: {
7496
+ administration_code?: string;
7399
7497
  client_request_id: string;
7400
7498
  completed_at?: string | null;
7401
7499
  created_at?: string;
@@ -7405,6 +7503,7 @@ export declare const getInvoiceTimingSettings: import("@tanstack/start-client-co
7405
7503
  user_id: string;
7406
7504
  };
7407
7505
  Update: {
7506
+ administration_code?: string;
7408
7507
  client_request_id?: string;
7409
7508
  completed_at?: string | null;
7410
7509
  created_at?: string;
@@ -7610,6 +7709,75 @@ export declare const getInvoiceTimingSettings: import("@tanstack/start-client-co
7610
7709
  };
7611
7710
  Relationships: [];
7612
7711
  };
7712
+ invoices: {
7713
+ Row: {
7714
+ created_at: string;
7715
+ created_by: string | null;
7716
+ customer_id: string | null;
7717
+ customer_name: string | null;
7718
+ due_date: string | null;
7719
+ id: string;
7720
+ invoice_date: string;
7721
+ invoice_number: string | null;
7722
+ note: string | null;
7723
+ source_number: string | null;
7724
+ source_ref: string | null;
7725
+ source_type: string;
7726
+ status: string;
7727
+ subtotal_cents: number;
7728
+ total_cents: number;
7729
+ updated_at: string;
7730
+ vat_cents: number;
7731
+ vat_rate: number;
7732
+ };
7733
+ Insert: {
7734
+ created_at?: string;
7735
+ created_by?: string | null;
7736
+ customer_id?: string | null;
7737
+ customer_name?: string | null;
7738
+ due_date?: string | null;
7739
+ id?: string;
7740
+ invoice_date?: string;
7741
+ invoice_number?: string | null;
7742
+ note?: string | null;
7743
+ source_number?: string | null;
7744
+ source_ref?: string | null;
7745
+ source_type?: string;
7746
+ status?: string;
7747
+ subtotal_cents?: number;
7748
+ total_cents?: number;
7749
+ updated_at?: string;
7750
+ vat_cents?: number;
7751
+ vat_rate?: number;
7752
+ };
7753
+ Update: {
7754
+ created_at?: string;
7755
+ created_by?: string | null;
7756
+ customer_id?: string | null;
7757
+ customer_name?: string | null;
7758
+ due_date?: string | null;
7759
+ id?: string;
7760
+ invoice_date?: string;
7761
+ invoice_number?: string | null;
7762
+ note?: string | null;
7763
+ source_number?: string | null;
7764
+ source_ref?: string | null;
7765
+ source_type?: string;
7766
+ status?: string;
7767
+ subtotal_cents?: number;
7768
+ total_cents?: number;
7769
+ updated_at?: string;
7770
+ vat_cents?: number;
7771
+ vat_rate?: number;
7772
+ };
7773
+ Relationships: [{
7774
+ foreignKeyName: "invoices_customer_id_fkey";
7775
+ columns: ["customer_id"];
7776
+ isOneToOne: false;
7777
+ referencedRelation: "itk_customers";
7778
+ referencedColumns: ["id"];
7779
+ }];
7780
+ };
7613
7781
  itk_contact_persons: {
7614
7782
  Row: {
7615
7783
  created_at: string;
@@ -8957,6 +9125,9 @@ export declare const getInvoiceTimingSettings: import("@tanstack/start-client-co
8957
9125
  id: string;
8958
9126
  last_error: string | null;
8959
9127
  last_error_at: string | null;
9128
+ last_error_code: string | null;
9129
+ last_gateway_status: number | null;
9130
+ last_response: import("../integrations/supabase/types").Json | null;
8960
9131
  last_sent_hash: string | null;
8961
9132
  locked_by: string | null;
8962
9133
  locked_until: string | null;
@@ -8977,6 +9148,9 @@ export declare const getInvoiceTimingSettings: import("@tanstack/start-client-co
8977
9148
  id?: string;
8978
9149
  last_error?: string | null;
8979
9150
  last_error_at?: string | null;
9151
+ last_error_code?: string | null;
9152
+ last_gateway_status?: number | null;
9153
+ last_response?: import("../integrations/supabase/types").Json | null;
8980
9154
  last_sent_hash?: string | null;
8981
9155
  locked_by?: string | null;
8982
9156
  locked_until?: string | null;
@@ -8997,6 +9171,9 @@ export declare const getInvoiceTimingSettings: import("@tanstack/start-client-co
8997
9171
  id?: string;
8998
9172
  last_error?: string | null;
8999
9173
  last_error_at?: string | null;
9174
+ last_error_code?: string | null;
9175
+ last_gateway_status?: number | null;
9176
+ last_response?: import("../integrations/supabase/types").Json | null;
9000
9177
  last_sent_hash?: string | null;
9001
9178
  locked_by?: string | null;
9002
9179
  locked_until?: string | null;
@@ -10550,6 +10727,7 @@ export declare const getInvoiceTimingSettings: import("@tanstack/start-client-co
10550
10727
  enforce: boolean;
10551
10728
  is_active: boolean;
10552
10729
  last_seen_at: string;
10730
+ missing_count: number;
10553
10731
  module_id: string;
10554
10732
  name: string;
10555
10733
  shell_id: string | null;
@@ -10560,6 +10738,7 @@ export declare const getInvoiceTimingSettings: import("@tanstack/start-client-co
10560
10738
  enforce?: boolean;
10561
10739
  is_active?: boolean;
10562
10740
  last_seen_at?: string;
10741
+ missing_count?: number;
10563
10742
  module_id: string;
10564
10743
  name: string;
10565
10744
  shell_id?: string | null;
@@ -10570,6 +10749,7 @@ export declare const getInvoiceTimingSettings: import("@tanstack/start-client-co
10570
10749
  enforce?: boolean;
10571
10750
  is_active?: boolean;
10572
10751
  last_seen_at?: string;
10752
+ missing_count?: number;
10573
10753
  module_id?: string;
10574
10754
  name?: string;
10575
10755
  shell_id?: string | null;
@@ -11569,6 +11749,7 @@ export declare const getInvoiceTimingSettings: import("@tanstack/start-client-co
11569
11749
  };
11570
11750
  order_invoice_links: {
11571
11751
  Row: {
11752
+ administration_code: string | null;
11572
11753
  attempts: number;
11573
11754
  created_at: string;
11574
11755
  error_message: string | null;
@@ -11581,6 +11762,7 @@ export declare const getInvoiceTimingSettings: import("@tanstack/start-client-co
11581
11762
  updated_at: string;
11582
11763
  };
11583
11764
  Insert: {
11765
+ administration_code?: string | null;
11584
11766
  attempts?: number;
11585
11767
  created_at?: string;
11586
11768
  error_message?: string | null;
@@ -11593,6 +11775,7 @@ export declare const getInvoiceTimingSettings: import("@tanstack/start-client-co
11593
11775
  updated_at?: string;
11594
11776
  };
11595
11777
  Update: {
11778
+ administration_code?: string | null;
11596
11779
  attempts?: number;
11597
11780
  created_at?: string;
11598
11781
  error_message?: string | null;
@@ -12758,6 +12941,27 @@ export declare const getInvoiceTimingSettings: import("@tanstack/start-client-co
12758
12941
  referencedColumns: ["id"];
12759
12942
  }];
12760
12943
  };
12944
+ pick_sync_state: {
12945
+ Row: {
12946
+ id: boolean;
12947
+ last_cleanup_at: string | null;
12948
+ last_sync_at: string | null;
12949
+ updated_at: string;
12950
+ };
12951
+ Insert: {
12952
+ id?: boolean;
12953
+ last_cleanup_at?: string | null;
12954
+ last_sync_at?: string | null;
12955
+ updated_at?: string;
12956
+ };
12957
+ Update: {
12958
+ id?: boolean;
12959
+ last_cleanup_at?: string | null;
12960
+ last_sync_at?: string | null;
12961
+ updated_at?: string;
12962
+ };
12963
+ Relationships: [];
12964
+ };
12761
12965
  pick_task_document_types: {
12762
12966
  Row: {
12763
12967
  created_at: string;
@@ -13040,6 +13244,7 @@ export declare const getInvoiceTimingSettings: import("@tanstack/start-client-co
13040
13244
  gebruiker_id: string | null;
13041
13245
  gebruiker_naam: string;
13042
13246
  gestart_op: string | null;
13247
+ herkomst: string | null;
13043
13248
  id: string;
13044
13249
  idempotentie_sleutel: string | null;
13045
13250
  is_herprint: boolean;
@@ -13069,6 +13274,7 @@ export declare const getInvoiceTimingSettings: import("@tanstack/start-client-co
13069
13274
  gebruiker_id?: string | null;
13070
13275
  gebruiker_naam?: string;
13071
13276
  gestart_op?: string | null;
13277
+ herkomst?: string | null;
13072
13278
  id?: string;
13073
13279
  idempotentie_sleutel?: string | null;
13074
13280
  is_herprint?: boolean;
@@ -13098,6 +13304,7 @@ export declare const getInvoiceTimingSettings: import("@tanstack/start-client-co
13098
13304
  gebruiker_id?: string | null;
13099
13305
  gebruiker_naam?: string;
13100
13306
  gestart_op?: string | null;
13307
+ herkomst?: string | null;
13101
13308
  id?: string;
13102
13309
  idempotentie_sleutel?: string | null;
13103
13310
  is_herprint?: boolean;
@@ -16102,12 +16309,16 @@ export declare const getInvoiceTimingSettings: import("@tanstack/start-client-co
16102
16309
  company_name: string | null;
16103
16310
  connected_at: string | null;
16104
16311
  created_at: string;
16312
+ disconnected_at: string | null;
16105
16313
  environment: string;
16106
16314
  id: string;
16315
+ initial_sync_completed_at: string | null;
16316
+ initial_sync_started_at: string | null;
16107
16317
  is_active: boolean;
16108
16318
  label: string | null;
16109
16319
  office_code: string | null;
16110
16320
  redirect_uri: string | null;
16321
+ superseded_at: string | null;
16111
16322
  updated_at: string;
16112
16323
  user_id: string;
16113
16324
  };
@@ -16118,12 +16329,16 @@ export declare const getInvoiceTimingSettings: import("@tanstack/start-client-co
16118
16329
  company_name?: string | null;
16119
16330
  connected_at?: string | null;
16120
16331
  created_at?: string;
16332
+ disconnected_at?: string | null;
16121
16333
  environment: string;
16122
16334
  id?: string;
16335
+ initial_sync_completed_at?: string | null;
16336
+ initial_sync_started_at?: string | null;
16123
16337
  is_active?: boolean;
16124
16338
  label?: string | null;
16125
16339
  office_code?: string | null;
16126
16340
  redirect_uri?: string | null;
16341
+ superseded_at?: string | null;
16127
16342
  updated_at?: string;
16128
16343
  user_id: string;
16129
16344
  };
@@ -16134,12 +16349,16 @@ export declare const getInvoiceTimingSettings: import("@tanstack/start-client-co
16134
16349
  company_name?: string | null;
16135
16350
  connected_at?: string | null;
16136
16351
  created_at?: string;
16352
+ disconnected_at?: string | null;
16137
16353
  environment?: string;
16138
16354
  id?: string;
16355
+ initial_sync_completed_at?: string | null;
16356
+ initial_sync_started_at?: string | null;
16139
16357
  is_active?: boolean;
16140
16358
  label?: string | null;
16141
16359
  office_code?: string | null;
16142
16360
  redirect_uri?: string | null;
16361
+ superseded_at?: string | null;
16143
16362
  updated_at?: string;
16144
16363
  user_id?: string;
16145
16364
  };
@@ -16199,6 +16418,7 @@ export declare const getInvoiceTimingSettings: import("@tanstack/start-client-co
16199
16418
  twinfield_customers: {
16200
16419
  Row: {
16201
16420
  address: string | null;
16421
+ administration_code: string;
16202
16422
  city: string | null;
16203
16423
  country: string | null;
16204
16424
  created_at: string;
@@ -16218,6 +16438,7 @@ export declare const getInvoiceTimingSettings: import("@tanstack/start-client-co
16218
16438
  };
16219
16439
  Insert: {
16220
16440
  address?: string | null;
16441
+ administration_code?: string;
16221
16442
  city?: string | null;
16222
16443
  country?: string | null;
16223
16444
  created_at?: string;
@@ -16237,6 +16458,7 @@ export declare const getInvoiceTimingSettings: import("@tanstack/start-client-co
16237
16458
  };
16238
16459
  Update: {
16239
16460
  address?: string | null;
16461
+ administration_code?: string;
16240
16462
  city?: string | null;
16241
16463
  country?: string | null;
16242
16464
  created_at?: string;
@@ -16450,7 +16672,9 @@ export declare const getInvoiceTimingSettings: import("@tanstack/start-client-co
16450
16672
  };
16451
16673
  twinfield_invoice_settings: {
16452
16674
  Row: {
16675
+ administration_code: string | null;
16453
16676
  auto_invoice_enabled: boolean;
16677
+ auto_invoice_start_date: string | null;
16454
16678
  auto_invoice_trigger_statuses: string[];
16455
16679
  created_at: string;
16456
16680
  debtor_gl_account: string;
@@ -16464,15 +16688,19 @@ export declare const getInvoiceTimingSettings: import("@tanstack/start-client-co
16464
16688
  invoice_enabled_fo: boolean;
16465
16689
  invoice_enabled_ho: boolean;
16466
16690
  invoice_enabled_mo: boolean;
16691
+ needs_review: boolean;
16467
16692
  payment_gl_account: string;
16468
16693
  payment_journal_code: string;
16694
+ settings_confirmed_at: string | null;
16469
16695
  updated_at: string;
16470
16696
  user_id: string;
16471
16697
  vat_code_eu_reverse: string | null;
16472
16698
  vat_code_export: string | null;
16473
16699
  };
16474
16700
  Insert: {
16701
+ administration_code?: string | null;
16475
16702
  auto_invoice_enabled?: boolean;
16703
+ auto_invoice_start_date?: string | null;
16476
16704
  auto_invoice_trigger_statuses?: string[];
16477
16705
  created_at?: string;
16478
16706
  debtor_gl_account?: string;
@@ -16486,15 +16714,19 @@ export declare const getInvoiceTimingSettings: import("@tanstack/start-client-co
16486
16714
  invoice_enabled_fo?: boolean;
16487
16715
  invoice_enabled_ho?: boolean;
16488
16716
  invoice_enabled_mo?: boolean;
16717
+ needs_review?: boolean;
16489
16718
  payment_gl_account?: string;
16490
16719
  payment_journal_code?: string;
16720
+ settings_confirmed_at?: string | null;
16491
16721
  updated_at?: string;
16492
16722
  user_id: string;
16493
16723
  vat_code_eu_reverse?: string | null;
16494
16724
  vat_code_export?: string | null;
16495
16725
  };
16496
16726
  Update: {
16727
+ administration_code?: string | null;
16497
16728
  auto_invoice_enabled?: boolean;
16729
+ auto_invoice_start_date?: string | null;
16498
16730
  auto_invoice_trigger_statuses?: string[];
16499
16731
  created_at?: string;
16500
16732
  debtor_gl_account?: string;
@@ -16508,8 +16740,10 @@ export declare const getInvoiceTimingSettings: import("@tanstack/start-client-co
16508
16740
  invoice_enabled_fo?: boolean;
16509
16741
  invoice_enabled_ho?: boolean;
16510
16742
  invoice_enabled_mo?: boolean;
16743
+ needs_review?: boolean;
16511
16744
  payment_gl_account?: string;
16512
16745
  payment_journal_code?: string;
16746
+ settings_confirmed_at?: string | null;
16513
16747
  updated_at?: string;
16514
16748
  user_id?: string;
16515
16749
  vat_code_eu_reverse?: string | null;
@@ -17114,114 +17348,6 @@ export declare const getInvoiceTimingSettings: import("@tanstack/start-client-co
17114
17348
  };
17115
17349
  Relationships: [];
17116
17350
  };
17117
- uren_facturen: {
17118
- Row: {
17119
- created_at: string;
17120
- created_by: string | null;
17121
- customer_id: string | null;
17122
- customer_name: string | null;
17123
- id: string;
17124
- invoice_number: string | null;
17125
- note: string | null;
17126
- status: string;
17127
- total_excl_cents: number;
17128
- total_incl_cents: number;
17129
- updated_at: string;
17130
- vat_cents: number;
17131
- vat_percentage: number;
17132
- werkbon_id: string | null;
17133
- };
17134
- Insert: {
17135
- created_at?: string;
17136
- created_by?: string | null;
17137
- customer_id?: string | null;
17138
- customer_name?: string | null;
17139
- id?: string;
17140
- invoice_number?: string | null;
17141
- note?: string | null;
17142
- status?: string;
17143
- total_excl_cents?: number;
17144
- total_incl_cents?: number;
17145
- updated_at?: string;
17146
- vat_cents?: number;
17147
- vat_percentage?: number;
17148
- werkbon_id?: string | null;
17149
- };
17150
- Update: {
17151
- created_at?: string;
17152
- created_by?: string | null;
17153
- customer_id?: string | null;
17154
- customer_name?: string | null;
17155
- id?: string;
17156
- invoice_number?: string | null;
17157
- note?: string | null;
17158
- status?: string;
17159
- total_excl_cents?: number;
17160
- total_incl_cents?: number;
17161
- updated_at?: string;
17162
- vat_cents?: number;
17163
- vat_percentage?: number;
17164
- werkbon_id?: string | null;
17165
- };
17166
- Relationships: [{
17167
- foreignKeyName: "uren_facturen_customer_id_fkey";
17168
- columns: ["customer_id"];
17169
- isOneToOne: false;
17170
- referencedRelation: "itk_customers";
17171
- referencedColumns: ["id"];
17172
- }, {
17173
- foreignKeyName: "uren_facturen_werkbon_id_fkey";
17174
- columns: ["werkbon_id"];
17175
- isOneToOne: true;
17176
- referencedRelation: "werkbonnen";
17177
- referencedColumns: ["id"];
17178
- }];
17179
- };
17180
- uren_factuur_regels: {
17181
- Row: {
17182
- created_at: string;
17183
- description: string;
17184
- factuur_id: string;
17185
- id: string;
17186
- kind: string | null;
17187
- quantity: number;
17188
- sort_order: number;
17189
- total_cents: number;
17190
- unit: string;
17191
- unit_price_cents: number;
17192
- };
17193
- Insert: {
17194
- created_at?: string;
17195
- description: string;
17196
- factuur_id: string;
17197
- id?: string;
17198
- kind?: string | null;
17199
- quantity?: number;
17200
- sort_order?: number;
17201
- total_cents?: number;
17202
- unit?: string;
17203
- unit_price_cents?: number;
17204
- };
17205
- Update: {
17206
- created_at?: string;
17207
- description?: string;
17208
- factuur_id?: string;
17209
- id?: string;
17210
- kind?: string | null;
17211
- quantity?: number;
17212
- sort_order?: number;
17213
- total_cents?: number;
17214
- unit?: string;
17215
- unit_price_cents?: number;
17216
- };
17217
- Relationships: [{
17218
- foreignKeyName: "uren_factuur_regels_factuur_id_fkey";
17219
- columns: ["factuur_id"];
17220
- isOneToOne: false;
17221
- referencedRelation: "uren_facturen";
17222
- referencedColumns: ["id"];
17223
- }];
17224
- };
17225
17351
  uren_offerte_regels: {
17226
17352
  Row: {
17227
17353
  created_at: string;
@@ -18475,6 +18601,9 @@ export declare const getInvoiceTimingSettings: import("@tanstack/start-client-co
18475
18601
  scheduled_end_time: string | null;
18476
18602
  scheduled_start_time: string | null;
18477
18603
  sequence_number: number;
18604
+ signature_accepted_at: string | null;
18605
+ signature_by_user_id: string | null;
18606
+ signature_name: string | null;
18478
18607
  source_email_meta: import("../integrations/supabase/types").Json | null;
18479
18608
  source_mailbox_message_id: string | null;
18480
18609
  source_pdf_path: string | null;
@@ -18510,6 +18639,9 @@ export declare const getInvoiceTimingSettings: import("@tanstack/start-client-co
18510
18639
  scheduled_end_time?: string | null;
18511
18640
  scheduled_start_time?: string | null;
18512
18641
  sequence_number: number;
18642
+ signature_accepted_at?: string | null;
18643
+ signature_by_user_id?: string | null;
18644
+ signature_name?: string | null;
18513
18645
  source_email_meta?: import("../integrations/supabase/types").Json | null;
18514
18646
  source_mailbox_message_id?: string | null;
18515
18647
  source_pdf_path?: string | null;
@@ -18545,6 +18677,9 @@ export declare const getInvoiceTimingSettings: import("@tanstack/start-client-co
18545
18677
  scheduled_end_time?: string | null;
18546
18678
  scheduled_start_time?: string | null;
18547
18679
  sequence_number?: number;
18680
+ signature_accepted_at?: string | null;
18681
+ signature_by_user_id?: string | null;
18682
+ signature_name?: string | null;
18548
18683
  source_email_meta?: import("../integrations/supabase/types").Json | null;
18549
18684
  source_mailbox_message_id?: string | null;
18550
18685
  source_pdf_path?: string | null;
@@ -19061,6 +19196,114 @@ export declare const getInvoiceTimingSettings: import("@tanstack/start-client-co
19061
19196
  };
19062
19197
  Relationships: [];
19063
19198
  };
19199
+ uren_facturen: {
19200
+ Row: {
19201
+ created_at: string | null;
19202
+ created_by: string | null;
19203
+ customer_id: string | null;
19204
+ customer_name: string | null;
19205
+ id: string | null;
19206
+ invoice_number: string | null;
19207
+ note: string | null;
19208
+ status: string | null;
19209
+ total_excl_cents: number | null;
19210
+ total_incl_cents: number | null;
19211
+ updated_at: string | null;
19212
+ vat_cents: number | null;
19213
+ vat_percentage: number | null;
19214
+ werkbon_id: string | null;
19215
+ };
19216
+ Insert: {
19217
+ created_at?: string | null;
19218
+ created_by?: string | null;
19219
+ customer_id?: string | null;
19220
+ customer_name?: string | null;
19221
+ id?: string | null;
19222
+ invoice_number?: string | null;
19223
+ note?: string | null;
19224
+ status?: string | null;
19225
+ total_excl_cents?: number | null;
19226
+ total_incl_cents?: number | null;
19227
+ updated_at?: string | null;
19228
+ vat_cents?: number | null;
19229
+ vat_percentage?: number | null;
19230
+ werkbon_id?: never;
19231
+ };
19232
+ Update: {
19233
+ created_at?: string | null;
19234
+ created_by?: string | null;
19235
+ customer_id?: string | null;
19236
+ customer_name?: string | null;
19237
+ id?: string | null;
19238
+ invoice_number?: string | null;
19239
+ note?: string | null;
19240
+ status?: string | null;
19241
+ total_excl_cents?: number | null;
19242
+ total_incl_cents?: number | null;
19243
+ updated_at?: string | null;
19244
+ vat_cents?: number | null;
19245
+ vat_percentage?: number | null;
19246
+ werkbon_id?: never;
19247
+ };
19248
+ Relationships: [{
19249
+ foreignKeyName: "invoices_customer_id_fkey";
19250
+ columns: ["customer_id"];
19251
+ isOneToOne: false;
19252
+ referencedRelation: "itk_customers";
19253
+ referencedColumns: ["id"];
19254
+ }];
19255
+ };
19256
+ uren_factuur_regels: {
19257
+ Row: {
19258
+ created_at: string | null;
19259
+ description: string | null;
19260
+ factuur_id: string | null;
19261
+ id: string | null;
19262
+ kind: string | null;
19263
+ quantity: number | null;
19264
+ sort_order: number | null;
19265
+ total_cents: number | null;
19266
+ unit: string | null;
19267
+ unit_price_cents: number | null;
19268
+ };
19269
+ Insert: {
19270
+ created_at?: string | null;
19271
+ description?: string | null;
19272
+ factuur_id?: string | null;
19273
+ id?: string | null;
19274
+ kind?: string | null;
19275
+ quantity?: number | null;
19276
+ sort_order?: number | null;
19277
+ total_cents?: number | null;
19278
+ unit?: string | null;
19279
+ unit_price_cents?: number | null;
19280
+ };
19281
+ Update: {
19282
+ created_at?: string | null;
19283
+ description?: string | null;
19284
+ factuur_id?: string | null;
19285
+ id?: string | null;
19286
+ kind?: string | null;
19287
+ quantity?: number | null;
19288
+ sort_order?: number | null;
19289
+ total_cents?: number | null;
19290
+ unit?: string | null;
19291
+ unit_price_cents?: number | null;
19292
+ };
19293
+ Relationships: [{
19294
+ foreignKeyName: "invoice_items_invoice_id_fkey";
19295
+ columns: ["factuur_id"];
19296
+ isOneToOne: false;
19297
+ referencedRelation: "invoices";
19298
+ referencedColumns: ["id"];
19299
+ }, {
19300
+ foreignKeyName: "invoice_items_invoice_id_fkey";
19301
+ columns: ["factuur_id"];
19302
+ isOneToOne: false;
19303
+ referencedRelation: "uren_facturen";
19304
+ referencedColumns: ["id"];
19305
+ }];
19306
+ };
19064
19307
  v_external_customers_exact: {
19065
19308
  Row: {
19066
19309
  account_number: string | null;
@@ -19566,6 +19809,7 @@ export declare const getInvoiceTimingSettings: import("@tanstack/start-client-co
19566
19809
  gebruiker_id: string | null;
19567
19810
  gebruiker_naam: string;
19568
19811
  gestart_op: string | null;
19812
+ herkomst: string | null;
19569
19813
  id: string;
19570
19814
  idempotentie_sleutel: string | null;
19571
19815
  is_herprint: boolean;
@@ -19686,6 +19930,7 @@ export declare const getInvoiceTimingSettings: import("@tanstack/start-client-co
19686
19930
  gebruiker_id: string | null;
19687
19931
  gebruiker_naam: string;
19688
19932
  gestart_op: string | null;
19933
+ herkomst: string | null;
19689
19934
  id: string;
19690
19935
  idempotentie_sleutel: string | null;
19691
19936
  is_herprint: boolean;
@@ -20287,6 +20532,46 @@ export declare const getInvoiceTimingSettings: import("@tanstack/start-client-co
20287
20532
  Args: never;
20288
20533
  Returns: boolean;
20289
20534
  };
20535
+ invoice_create_from_source: {
20536
+ Args: {
20537
+ _payload?: import("../integrations/supabase/types").Json;
20538
+ _source_id: string;
20539
+ _source_type: string;
20540
+ };
20541
+ Returns: import("../integrations/supabase/types").Json;
20542
+ };
20543
+ invoice_get_billable_lines: {
20544
+ Args: {
20545
+ _invoice_id: string;
20546
+ };
20547
+ Returns: import("../integrations/supabase/types").Json;
20548
+ };
20549
+ invoice_get_for_source: {
20550
+ Args: {
20551
+ _source_id: string;
20552
+ _source_type: string;
20553
+ };
20554
+ Returns: import("../integrations/supabase/types").Json;
20555
+ };
20556
+ invoice_get_summary: {
20557
+ Args: {
20558
+ _invoice_id: string;
20559
+ };
20560
+ Returns: import("../integrations/supabase/types").Json;
20561
+ };
20562
+ invoice_list_sources: {
20563
+ Args: {
20564
+ _limit?: number;
20565
+ _source_type?: string;
20566
+ };
20567
+ Returns: import("../integrations/supabase/types").Json;
20568
+ };
20569
+ invoice_recalc_totals: {
20570
+ Args: {
20571
+ _invoice_id: string;
20572
+ };
20573
+ Returns: import("../integrations/supabase/types").Json;
20574
+ };
20290
20575
  is_authenticated: {
20291
20576
  Args: never;
20292
20577
  Returns: boolean;
@@ -20355,6 +20640,29 @@ export declare const getInvoiceTimingSettings: import("@tanstack/start-client-co
20355
20640
  roles: string[];
20356
20641
  }[];
20357
20642
  };
20643
+ list_monteur_absences: {
20644
+ Args: {
20645
+ _from: string;
20646
+ _to: string;
20647
+ };
20648
+ Returns: {
20649
+ absence_date: string;
20650
+ end_time: string;
20651
+ full_day: boolean;
20652
+ kind: string;
20653
+ monteur_id: string;
20654
+ start_time: string;
20655
+ }[];
20656
+ };
20657
+ list_monteurs: {
20658
+ Args: never;
20659
+ Returns: {
20660
+ avatar_url: string;
20661
+ display_name: string;
20662
+ email: string;
20663
+ id: string;
20664
+ }[];
20665
+ };
20358
20666
  list_my_planning_items: {
20359
20667
  Args: {
20360
20668
  _from: string;
@@ -20766,6 +21074,23 @@ export declare const getInvoiceTimingSettings: import("@tanstack/start-client-co
20766
21074
  };
20767
21075
  Returns: string;
20768
21076
  };
21077
+ logistics_floriday_finish_push_v2: {
21078
+ Args: {
21079
+ _error?: string;
21080
+ _error_code?: string;
21081
+ _fulfillment_order_id?: string;
21082
+ _gateway_status?: number;
21083
+ _id: string;
21084
+ _max_age_hours?: number;
21085
+ _max_attempts?: number;
21086
+ _ok: boolean;
21087
+ _permanent?: boolean;
21088
+ _response?: import("../integrations/supabase/types").Json;
21089
+ _revision: number;
21090
+ _sent_hash?: string;
21091
+ };
21092
+ Returns: string;
21093
+ };
20769
21094
  logistics_floriday_prune_pushes: {
20770
21095
  Args: {
20771
21096
  _days?: number;
@@ -21308,6 +21633,13 @@ export declare const getInvoiceTimingSettings: import("@tanstack/start-client-co
21308
21633
  isSetofReturn: false;
21309
21634
  };
21310
21635
  };
21636
+ pick_cleanup_maintenance: {
21637
+ Args: {
21638
+ _heartbeat_hours?: number;
21639
+ _log_days?: number;
21640
+ };
21641
+ Returns: import("../integrations/supabase/types").Json;
21642
+ };
21311
21643
  pick_complete_print: {
21312
21644
  Args: {
21313
21645
  _printer_id: string;
@@ -21359,6 +21691,14 @@ export declare const getInvoiceTimingSettings: import("@tanstack/start-client-co
21359
21691
  Args: never;
21360
21692
  Returns: string;
21361
21693
  };
21694
+ pick_day_counts: {
21695
+ Args: {
21696
+ _pick_day?: string;
21697
+ _screen_id?: string;
21698
+ _station_id?: string;
21699
+ };
21700
+ Returns: import("../integrations/supabase/types").Json;
21701
+ };
21362
21702
  pick_document_layout_data: {
21363
21703
  Args: {
21364
21704
  _layout_id: string;
@@ -21396,6 +21736,14 @@ export declare const getInvoiceTimingSettings: import("@tanstack/start-client-co
21396
21736
  };
21397
21737
  Returns: undefined;
21398
21738
  };
21739
+ pick_reprint_document: {
21740
+ Args: {
21741
+ _queue_item_id: string;
21742
+ _session_id: string;
21743
+ _throttle_seconds?: number;
21744
+ };
21745
+ Returns: string;
21746
+ };
21399
21747
  pick_reset_print: {
21400
21748
  Args: {
21401
21749
  _queue_item_id: string;
@@ -21461,6 +21809,12 @@ export declare const getInvoiceTimingSettings: import("@tanstack/start-client-co
21461
21809
  };
21462
21810
  Returns: string;
21463
21811
  };
21812
+ pick_sync_queue_throttled: {
21813
+ Args: {
21814
+ _min_seconds?: number;
21815
+ };
21816
+ Returns: import("../integrations/supabase/types").Json;
21817
+ };
21464
21818
  pickstation_get_orders_raw: {
21465
21819
  Args: never;
21466
21820
  Returns: import("../integrations/supabase/types").Json;
@@ -21606,6 +21960,12 @@ export declare const getInvoiceTimingSettings: import("@tanstack/start-client-co
21606
21960
  };
21607
21961
  Returns: boolean;
21608
21962
  };
21963
+ release_stale_order_invoice_links: {
21964
+ Args: {
21965
+ _minutes?: number;
21966
+ };
21967
+ Returns: number;
21968
+ };
21609
21969
  reorder_customer_price_groups: {
21610
21970
  Args: {
21611
21971
  _ids: string[];
@@ -22124,6 +22484,20 @@ export declare const getInvoiceTimingSettings: import("@tanstack/start-client-co
22124
22484
  };
22125
22485
  Returns: undefined;
22126
22486
  };
22487
+ twinfield_deactivate_connection: {
22488
+ Args: {
22489
+ p_connection_id: string;
22490
+ p_user_id: string;
22491
+ };
22492
+ Returns: import("../integrations/supabase/types").Json;
22493
+ };
22494
+ twinfield_handle_administration_change: {
22495
+ Args: {
22496
+ _administration_code: string;
22497
+ _user_id: string;
22498
+ };
22499
+ Returns: undefined;
22500
+ };
22127
22501
  twinfield_prune_push_queue: {
22128
22502
  Args: never;
22129
22503
  Returns: number;
@@ -22143,10 +22517,11 @@ export declare const getInvoiceTimingSettings: import("@tanstack/start-client-co
22143
22517
  p_company_name?: string;
22144
22518
  p_environment: string;
22145
22519
  p_office_code?: string;
22520
+ p_reset_sync?: boolean;
22146
22521
  p_status?: string;
22147
22522
  p_user_id: string;
22148
22523
  };
22149
- Returns: string;
22524
+ Returns: import("../integrations/supabase/types").Json;
22150
22525
  };
22151
22526
  upsert_auto_fulfillment_log: {
22152
22527
  Args: {
@@ -24970,6 +25345,42 @@ export declare const saveInvoiceTimingSettings: import("@tanstack/start-client-c
24970
25345
  };
24971
25346
  Relationships: [];
24972
25347
  };
25348
+ document_bronregels: {
25349
+ Row: {
25350
+ bron: string;
25351
+ created_at: string;
25352
+ documenttype: string;
25353
+ herkomst: string;
25354
+ id: string;
25355
+ layout_id: string | null;
25356
+ updated_at: string;
25357
+ };
25358
+ Insert: {
25359
+ bron?: string;
25360
+ created_at?: string;
25361
+ documenttype: string;
25362
+ herkomst: string;
25363
+ id?: string;
25364
+ layout_id?: string | null;
25365
+ updated_at?: string;
25366
+ };
25367
+ Update: {
25368
+ bron?: string;
25369
+ created_at?: string;
25370
+ documenttype?: string;
25371
+ herkomst?: string;
25372
+ id?: string;
25373
+ layout_id?: string | null;
25374
+ updated_at?: string;
25375
+ };
25376
+ Relationships: [{
25377
+ foreignKeyName: "document_bronregels_layout_id_fkey";
25378
+ columns: ["layout_id"];
25379
+ isOneToOne: false;
25380
+ referencedRelation: "document_layouts";
25381
+ referencedColumns: ["id"];
25382
+ }];
25383
+ };
24973
25384
  document_formaat_printers: {
24974
25385
  Row: {
24975
25386
  created_at: string;
@@ -25247,6 +25658,7 @@ export declare const saveInvoiceTimingSettings: import("@tanstack/start-client-c
25247
25658
  Row: {
25248
25659
  actief: boolean;
25249
25660
  breedte_mm: number;
25661
+ bron: string;
25250
25662
  config: import("../integrations/supabase/types").Json;
25251
25663
  created_at: string;
25252
25664
  created_by: string | null;
@@ -25264,12 +25676,14 @@ export declare const saveInvoiceTimingSettings: import("@tanstack/start-client-c
25264
25676
  orientatie: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_orientation"];
25265
25677
  page_settings: import("../integrations/supabase/types").Json;
25266
25678
  papierformaat: string;
25679
+ systeem: boolean;
25267
25680
  thumbnail_url: string | null;
25268
25681
  updated_at: string;
25269
25682
  };
25270
25683
  Insert: {
25271
25684
  actief?: boolean;
25272
25685
  breedte_mm?: number;
25686
+ bron?: string;
25273
25687
  config?: import("../integrations/supabase/types").Json;
25274
25688
  created_at?: string;
25275
25689
  created_by?: string | null;
@@ -25287,12 +25701,14 @@ export declare const saveInvoiceTimingSettings: import("@tanstack/start-client-c
25287
25701
  orientatie?: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_orientation"];
25288
25702
  page_settings?: import("../integrations/supabase/types").Json;
25289
25703
  papierformaat?: string;
25704
+ systeem?: boolean;
25290
25705
  thumbnail_url?: string | null;
25291
25706
  updated_at?: string;
25292
25707
  };
25293
25708
  Update: {
25294
25709
  actief?: boolean;
25295
25710
  breedte_mm?: number;
25711
+ bron?: string;
25296
25712
  config?: import("../integrations/supabase/types").Json;
25297
25713
  created_at?: string;
25298
25714
  created_by?: string | null;
@@ -25310,11 +25726,48 @@ export declare const saveInvoiceTimingSettings: import("@tanstack/start-client-c
25310
25726
  orientatie?: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_orientation"];
25311
25727
  page_settings?: import("../integrations/supabase/types").Json;
25312
25728
  papierformaat?: string;
25729
+ systeem?: boolean;
25313
25730
  thumbnail_url?: string | null;
25314
25731
  updated_at?: string;
25315
25732
  };
25316
25733
  Relationships: [];
25317
25734
  };
25735
+ document_werkplek_printers: {
25736
+ Row: {
25737
+ created_at: string;
25738
+ documenttype: string;
25739
+ id: string;
25740
+ papierformaat: string | null;
25741
+ printer_id: string | null;
25742
+ updated_at: string;
25743
+ werkplek: string;
25744
+ };
25745
+ Insert: {
25746
+ created_at?: string;
25747
+ documenttype: string;
25748
+ id?: string;
25749
+ papierformaat?: string | null;
25750
+ printer_id?: string | null;
25751
+ updated_at?: string;
25752
+ werkplek: string;
25753
+ };
25754
+ Update: {
25755
+ created_at?: string;
25756
+ documenttype?: string;
25757
+ id?: string;
25758
+ papierformaat?: string | null;
25759
+ printer_id?: string | null;
25760
+ updated_at?: string;
25761
+ werkplek?: string;
25762
+ };
25763
+ Relationships: [{
25764
+ foreignKeyName: "document_werkplek_printers_printer_id_fkey";
25765
+ columns: ["printer_id"];
25766
+ isOneToOne: false;
25767
+ referencedRelation: "printers";
25768
+ referencedColumns: ["id"];
25769
+ }];
25770
+ };
25318
25771
  email_auth_connections: {
25319
25772
  Row: {
25320
25773
  access_token_encrypted: string | null;
@@ -27256,42 +27709,6 @@ export declare const saveInvoiceTimingSettings: import("@tanstack/start-client-c
27256
27709
  };
27257
27710
  Relationships: [];
27258
27711
  };
27259
- facturen: {
27260
- Row: {
27261
- bedrag_incl_btw: number;
27262
- created_at: string;
27263
- datum: string;
27264
- factuurnummer: string;
27265
- id: string;
27266
- klantnaam: string;
27267
- status: string;
27268
- updated_at: string;
27269
- user_id: string;
27270
- };
27271
- Insert: {
27272
- bedrag_incl_btw: number;
27273
- created_at?: string;
27274
- datum?: string;
27275
- factuurnummer: string;
27276
- id?: string;
27277
- klantnaam: string;
27278
- status?: string;
27279
- updated_at?: string;
27280
- user_id?: string;
27281
- };
27282
- Update: {
27283
- bedrag_incl_btw?: number;
27284
- created_at?: string;
27285
- datum?: string;
27286
- factuurnummer?: string;
27287
- id?: string;
27288
- klantnaam?: string;
27289
- status?: string;
27290
- updated_at?: string;
27291
- user_id?: string;
27292
- };
27293
- Relationships: [];
27294
- };
27295
27712
  floricode_connection_settings: {
27296
27713
  Row: {
27297
27714
  catalog_key: string | null;
@@ -29596,8 +30013,63 @@ export declare const saveInvoiceTimingSettings: import("@tanstack/start-client-c
29596
30013
  };
29597
30014
  Relationships: [];
29598
30015
  };
30016
+ invoice_items: {
30017
+ Row: {
30018
+ created_at: string;
30019
+ description: string;
30020
+ id: string;
30021
+ invoice_id: string;
30022
+ kind: string;
30023
+ quantity: number;
30024
+ sort_order: number;
30025
+ source_line_ref: string | null;
30026
+ total_cents: number;
30027
+ unit: string;
30028
+ unit_price_cents: number;
30029
+ };
30030
+ Insert: {
30031
+ created_at?: string;
30032
+ description?: string;
30033
+ id?: string;
30034
+ invoice_id: string;
30035
+ kind?: string;
30036
+ quantity?: number;
30037
+ sort_order?: number;
30038
+ source_line_ref?: string | null;
30039
+ total_cents?: number;
30040
+ unit?: string;
30041
+ unit_price_cents?: number;
30042
+ };
30043
+ Update: {
30044
+ created_at?: string;
30045
+ description?: string;
30046
+ id?: string;
30047
+ invoice_id?: string;
30048
+ kind?: string;
30049
+ quantity?: number;
30050
+ sort_order?: number;
30051
+ source_line_ref?: string | null;
30052
+ total_cents?: number;
30053
+ unit?: string;
30054
+ unit_price_cents?: number;
30055
+ };
30056
+ Relationships: [{
30057
+ foreignKeyName: "invoice_items_invoice_id_fkey";
30058
+ columns: ["invoice_id"];
30059
+ isOneToOne: false;
30060
+ referencedRelation: "invoices";
30061
+ referencedColumns: ["id"];
30062
+ }, {
30063
+ foreignKeyName: "invoice_items_invoice_id_fkey";
30064
+ columns: ["invoice_id"];
30065
+ isOneToOne: false;
30066
+ referencedRelation: "uren_facturen";
30067
+ referencedColumns: ["id"];
30068
+ }];
30069
+ };
29599
30070
  invoice_post_idempotency: {
29600
30071
  Row: {
30072
+ administration_code: string;
29601
30073
  client_request_id: string;
29602
30074
  completed_at: string | null;
29603
30075
  created_at: string;
@@ -29607,6 +30079,7 @@ export declare const saveInvoiceTimingSettings: import("@tanstack/start-client-c
29607
30079
  user_id: string;
29608
30080
  };
29609
30081
  Insert: {
30082
+ administration_code?: string;
29610
30083
  client_request_id: string;
29611
30084
  completed_at?: string | null;
29612
30085
  created_at?: string;
@@ -29616,6 +30089,7 @@ export declare const saveInvoiceTimingSettings: import("@tanstack/start-client-c
29616
30089
  user_id: string;
29617
30090
  };
29618
30091
  Update: {
30092
+ administration_code?: string;
29619
30093
  client_request_id?: string;
29620
30094
  completed_at?: string | null;
29621
30095
  created_at?: string;
@@ -29821,6 +30295,75 @@ export declare const saveInvoiceTimingSettings: import("@tanstack/start-client-c
29821
30295
  };
29822
30296
  Relationships: [];
29823
30297
  };
30298
+ invoices: {
30299
+ Row: {
30300
+ created_at: string;
30301
+ created_by: string | null;
30302
+ customer_id: string | null;
30303
+ customer_name: string | null;
30304
+ due_date: string | null;
30305
+ id: string;
30306
+ invoice_date: string;
30307
+ invoice_number: string | null;
30308
+ note: string | null;
30309
+ source_number: string | null;
30310
+ source_ref: string | null;
30311
+ source_type: string;
30312
+ status: string;
30313
+ subtotal_cents: number;
30314
+ total_cents: number;
30315
+ updated_at: string;
30316
+ vat_cents: number;
30317
+ vat_rate: number;
30318
+ };
30319
+ Insert: {
30320
+ created_at?: string;
30321
+ created_by?: string | null;
30322
+ customer_id?: string | null;
30323
+ customer_name?: string | null;
30324
+ due_date?: string | null;
30325
+ id?: string;
30326
+ invoice_date?: string;
30327
+ invoice_number?: string | null;
30328
+ note?: string | null;
30329
+ source_number?: string | null;
30330
+ source_ref?: string | null;
30331
+ source_type?: string;
30332
+ status?: string;
30333
+ subtotal_cents?: number;
30334
+ total_cents?: number;
30335
+ updated_at?: string;
30336
+ vat_cents?: number;
30337
+ vat_rate?: number;
30338
+ };
30339
+ Update: {
30340
+ created_at?: string;
30341
+ created_by?: string | null;
30342
+ customer_id?: string | null;
30343
+ customer_name?: string | null;
30344
+ due_date?: string | null;
30345
+ id?: string;
30346
+ invoice_date?: string;
30347
+ invoice_number?: string | null;
30348
+ note?: string | null;
30349
+ source_number?: string | null;
30350
+ source_ref?: string | null;
30351
+ source_type?: string;
30352
+ status?: string;
30353
+ subtotal_cents?: number;
30354
+ total_cents?: number;
30355
+ updated_at?: string;
30356
+ vat_cents?: number;
30357
+ vat_rate?: number;
30358
+ };
30359
+ Relationships: [{
30360
+ foreignKeyName: "invoices_customer_id_fkey";
30361
+ columns: ["customer_id"];
30362
+ isOneToOne: false;
30363
+ referencedRelation: "itk_customers";
30364
+ referencedColumns: ["id"];
30365
+ }];
30366
+ };
29824
30367
  itk_contact_persons: {
29825
30368
  Row: {
29826
30369
  created_at: string;
@@ -31168,6 +31711,9 @@ export declare const saveInvoiceTimingSettings: import("@tanstack/start-client-c
31168
31711
  id: string;
31169
31712
  last_error: string | null;
31170
31713
  last_error_at: string | null;
31714
+ last_error_code: string | null;
31715
+ last_gateway_status: number | null;
31716
+ last_response: import("../integrations/supabase/types").Json | null;
31171
31717
  last_sent_hash: string | null;
31172
31718
  locked_by: string | null;
31173
31719
  locked_until: string | null;
@@ -31188,6 +31734,9 @@ export declare const saveInvoiceTimingSettings: import("@tanstack/start-client-c
31188
31734
  id?: string;
31189
31735
  last_error?: string | null;
31190
31736
  last_error_at?: string | null;
31737
+ last_error_code?: string | null;
31738
+ last_gateway_status?: number | null;
31739
+ last_response?: import("../integrations/supabase/types").Json | null;
31191
31740
  last_sent_hash?: string | null;
31192
31741
  locked_by?: string | null;
31193
31742
  locked_until?: string | null;
@@ -31208,6 +31757,9 @@ export declare const saveInvoiceTimingSettings: import("@tanstack/start-client-c
31208
31757
  id?: string;
31209
31758
  last_error?: string | null;
31210
31759
  last_error_at?: string | null;
31760
+ last_error_code?: string | null;
31761
+ last_gateway_status?: number | null;
31762
+ last_response?: import("../integrations/supabase/types").Json | null;
31211
31763
  last_sent_hash?: string | null;
31212
31764
  locked_by?: string | null;
31213
31765
  locked_until?: string | null;
@@ -32761,6 +33313,7 @@ export declare const saveInvoiceTimingSettings: import("@tanstack/start-client-c
32761
33313
  enforce: boolean;
32762
33314
  is_active: boolean;
32763
33315
  last_seen_at: string;
33316
+ missing_count: number;
32764
33317
  module_id: string;
32765
33318
  name: string;
32766
33319
  shell_id: string | null;
@@ -32771,6 +33324,7 @@ export declare const saveInvoiceTimingSettings: import("@tanstack/start-client-c
32771
33324
  enforce?: boolean;
32772
33325
  is_active?: boolean;
32773
33326
  last_seen_at?: string;
33327
+ missing_count?: number;
32774
33328
  module_id: string;
32775
33329
  name: string;
32776
33330
  shell_id?: string | null;
@@ -32781,6 +33335,7 @@ export declare const saveInvoiceTimingSettings: import("@tanstack/start-client-c
32781
33335
  enforce?: boolean;
32782
33336
  is_active?: boolean;
32783
33337
  last_seen_at?: string;
33338
+ missing_count?: number;
32784
33339
  module_id?: string;
32785
33340
  name?: string;
32786
33341
  shell_id?: string | null;
@@ -33780,6 +34335,7 @@ export declare const saveInvoiceTimingSettings: import("@tanstack/start-client-c
33780
34335
  };
33781
34336
  order_invoice_links: {
33782
34337
  Row: {
34338
+ administration_code: string | null;
33783
34339
  attempts: number;
33784
34340
  created_at: string;
33785
34341
  error_message: string | null;
@@ -33792,6 +34348,7 @@ export declare const saveInvoiceTimingSettings: import("@tanstack/start-client-c
33792
34348
  updated_at: string;
33793
34349
  };
33794
34350
  Insert: {
34351
+ administration_code?: string | null;
33795
34352
  attempts?: number;
33796
34353
  created_at?: string;
33797
34354
  error_message?: string | null;
@@ -33804,6 +34361,7 @@ export declare const saveInvoiceTimingSettings: import("@tanstack/start-client-c
33804
34361
  updated_at?: string;
33805
34362
  };
33806
34363
  Update: {
34364
+ administration_code?: string | null;
33807
34365
  attempts?: number;
33808
34366
  created_at?: string;
33809
34367
  error_message?: string | null;
@@ -34969,6 +35527,27 @@ export declare const saveInvoiceTimingSettings: import("@tanstack/start-client-c
34969
35527
  referencedColumns: ["id"];
34970
35528
  }];
34971
35529
  };
35530
+ pick_sync_state: {
35531
+ Row: {
35532
+ id: boolean;
35533
+ last_cleanup_at: string | null;
35534
+ last_sync_at: string | null;
35535
+ updated_at: string;
35536
+ };
35537
+ Insert: {
35538
+ id?: boolean;
35539
+ last_cleanup_at?: string | null;
35540
+ last_sync_at?: string | null;
35541
+ updated_at?: string;
35542
+ };
35543
+ Update: {
35544
+ id?: boolean;
35545
+ last_cleanup_at?: string | null;
35546
+ last_sync_at?: string | null;
35547
+ updated_at?: string;
35548
+ };
35549
+ Relationships: [];
35550
+ };
34972
35551
  pick_task_document_types: {
34973
35552
  Row: {
34974
35553
  created_at: string;
@@ -35251,6 +35830,7 @@ export declare const saveInvoiceTimingSettings: import("@tanstack/start-client-c
35251
35830
  gebruiker_id: string | null;
35252
35831
  gebruiker_naam: string;
35253
35832
  gestart_op: string | null;
35833
+ herkomst: string | null;
35254
35834
  id: string;
35255
35835
  idempotentie_sleutel: string | null;
35256
35836
  is_herprint: boolean;
@@ -35280,6 +35860,7 @@ export declare const saveInvoiceTimingSettings: import("@tanstack/start-client-c
35280
35860
  gebruiker_id?: string | null;
35281
35861
  gebruiker_naam?: string;
35282
35862
  gestart_op?: string | null;
35863
+ herkomst?: string | null;
35283
35864
  id?: string;
35284
35865
  idempotentie_sleutel?: string | null;
35285
35866
  is_herprint?: boolean;
@@ -35309,6 +35890,7 @@ export declare const saveInvoiceTimingSettings: import("@tanstack/start-client-c
35309
35890
  gebruiker_id?: string | null;
35310
35891
  gebruiker_naam?: string;
35311
35892
  gestart_op?: string | null;
35893
+ herkomst?: string | null;
35312
35894
  id?: string;
35313
35895
  idempotentie_sleutel?: string | null;
35314
35896
  is_herprint?: boolean;
@@ -38313,12 +38895,16 @@ export declare const saveInvoiceTimingSettings: import("@tanstack/start-client-c
38313
38895
  company_name: string | null;
38314
38896
  connected_at: string | null;
38315
38897
  created_at: string;
38898
+ disconnected_at: string | null;
38316
38899
  environment: string;
38317
38900
  id: string;
38901
+ initial_sync_completed_at: string | null;
38902
+ initial_sync_started_at: string | null;
38318
38903
  is_active: boolean;
38319
38904
  label: string | null;
38320
38905
  office_code: string | null;
38321
38906
  redirect_uri: string | null;
38907
+ superseded_at: string | null;
38322
38908
  updated_at: string;
38323
38909
  user_id: string;
38324
38910
  };
@@ -38329,12 +38915,16 @@ export declare const saveInvoiceTimingSettings: import("@tanstack/start-client-c
38329
38915
  company_name?: string | null;
38330
38916
  connected_at?: string | null;
38331
38917
  created_at?: string;
38918
+ disconnected_at?: string | null;
38332
38919
  environment: string;
38333
38920
  id?: string;
38921
+ initial_sync_completed_at?: string | null;
38922
+ initial_sync_started_at?: string | null;
38334
38923
  is_active?: boolean;
38335
38924
  label?: string | null;
38336
38925
  office_code?: string | null;
38337
38926
  redirect_uri?: string | null;
38927
+ superseded_at?: string | null;
38338
38928
  updated_at?: string;
38339
38929
  user_id: string;
38340
38930
  };
@@ -38345,12 +38935,16 @@ export declare const saveInvoiceTimingSettings: import("@tanstack/start-client-c
38345
38935
  company_name?: string | null;
38346
38936
  connected_at?: string | null;
38347
38937
  created_at?: string;
38938
+ disconnected_at?: string | null;
38348
38939
  environment?: string;
38349
38940
  id?: string;
38941
+ initial_sync_completed_at?: string | null;
38942
+ initial_sync_started_at?: string | null;
38350
38943
  is_active?: boolean;
38351
38944
  label?: string | null;
38352
38945
  office_code?: string | null;
38353
38946
  redirect_uri?: string | null;
38947
+ superseded_at?: string | null;
38354
38948
  updated_at?: string;
38355
38949
  user_id?: string;
38356
38950
  };
@@ -38410,6 +39004,7 @@ export declare const saveInvoiceTimingSettings: import("@tanstack/start-client-c
38410
39004
  twinfield_customers: {
38411
39005
  Row: {
38412
39006
  address: string | null;
39007
+ administration_code: string;
38413
39008
  city: string | null;
38414
39009
  country: string | null;
38415
39010
  created_at: string;
@@ -38429,6 +39024,7 @@ export declare const saveInvoiceTimingSettings: import("@tanstack/start-client-c
38429
39024
  };
38430
39025
  Insert: {
38431
39026
  address?: string | null;
39027
+ administration_code?: string;
38432
39028
  city?: string | null;
38433
39029
  country?: string | null;
38434
39030
  created_at?: string;
@@ -38448,6 +39044,7 @@ export declare const saveInvoiceTimingSettings: import("@tanstack/start-client-c
38448
39044
  };
38449
39045
  Update: {
38450
39046
  address?: string | null;
39047
+ administration_code?: string;
38451
39048
  city?: string | null;
38452
39049
  country?: string | null;
38453
39050
  created_at?: string;
@@ -38661,7 +39258,9 @@ export declare const saveInvoiceTimingSettings: import("@tanstack/start-client-c
38661
39258
  };
38662
39259
  twinfield_invoice_settings: {
38663
39260
  Row: {
39261
+ administration_code: string | null;
38664
39262
  auto_invoice_enabled: boolean;
39263
+ auto_invoice_start_date: string | null;
38665
39264
  auto_invoice_trigger_statuses: string[];
38666
39265
  created_at: string;
38667
39266
  debtor_gl_account: string;
@@ -38675,15 +39274,19 @@ export declare const saveInvoiceTimingSettings: import("@tanstack/start-client-c
38675
39274
  invoice_enabled_fo: boolean;
38676
39275
  invoice_enabled_ho: boolean;
38677
39276
  invoice_enabled_mo: boolean;
39277
+ needs_review: boolean;
38678
39278
  payment_gl_account: string;
38679
39279
  payment_journal_code: string;
39280
+ settings_confirmed_at: string | null;
38680
39281
  updated_at: string;
38681
39282
  user_id: string;
38682
39283
  vat_code_eu_reverse: string | null;
38683
39284
  vat_code_export: string | null;
38684
39285
  };
38685
39286
  Insert: {
39287
+ administration_code?: string | null;
38686
39288
  auto_invoice_enabled?: boolean;
39289
+ auto_invoice_start_date?: string | null;
38687
39290
  auto_invoice_trigger_statuses?: string[];
38688
39291
  created_at?: string;
38689
39292
  debtor_gl_account?: string;
@@ -38697,15 +39300,19 @@ export declare const saveInvoiceTimingSettings: import("@tanstack/start-client-c
38697
39300
  invoice_enabled_fo?: boolean;
38698
39301
  invoice_enabled_ho?: boolean;
38699
39302
  invoice_enabled_mo?: boolean;
39303
+ needs_review?: boolean;
38700
39304
  payment_gl_account?: string;
38701
39305
  payment_journal_code?: string;
39306
+ settings_confirmed_at?: string | null;
38702
39307
  updated_at?: string;
38703
39308
  user_id: string;
38704
39309
  vat_code_eu_reverse?: string | null;
38705
39310
  vat_code_export?: string | null;
38706
39311
  };
38707
39312
  Update: {
39313
+ administration_code?: string | null;
38708
39314
  auto_invoice_enabled?: boolean;
39315
+ auto_invoice_start_date?: string | null;
38709
39316
  auto_invoice_trigger_statuses?: string[];
38710
39317
  created_at?: string;
38711
39318
  debtor_gl_account?: string;
@@ -38719,8 +39326,10 @@ export declare const saveInvoiceTimingSettings: import("@tanstack/start-client-c
38719
39326
  invoice_enabled_fo?: boolean;
38720
39327
  invoice_enabled_ho?: boolean;
38721
39328
  invoice_enabled_mo?: boolean;
39329
+ needs_review?: boolean;
38722
39330
  payment_gl_account?: string;
38723
39331
  payment_journal_code?: string;
39332
+ settings_confirmed_at?: string | null;
38724
39333
  updated_at?: string;
38725
39334
  user_id?: string;
38726
39335
  vat_code_eu_reverse?: string | null;
@@ -39325,114 +39934,6 @@ export declare const saveInvoiceTimingSettings: import("@tanstack/start-client-c
39325
39934
  };
39326
39935
  Relationships: [];
39327
39936
  };
39328
- uren_facturen: {
39329
- Row: {
39330
- created_at: string;
39331
- created_by: string | null;
39332
- customer_id: string | null;
39333
- customer_name: string | null;
39334
- id: string;
39335
- invoice_number: string | null;
39336
- note: string | null;
39337
- status: string;
39338
- total_excl_cents: number;
39339
- total_incl_cents: number;
39340
- updated_at: string;
39341
- vat_cents: number;
39342
- vat_percentage: number;
39343
- werkbon_id: string | null;
39344
- };
39345
- Insert: {
39346
- created_at?: string;
39347
- created_by?: string | null;
39348
- customer_id?: string | null;
39349
- customer_name?: string | null;
39350
- id?: string;
39351
- invoice_number?: string | null;
39352
- note?: string | null;
39353
- status?: string;
39354
- total_excl_cents?: number;
39355
- total_incl_cents?: number;
39356
- updated_at?: string;
39357
- vat_cents?: number;
39358
- vat_percentage?: number;
39359
- werkbon_id?: string | null;
39360
- };
39361
- Update: {
39362
- created_at?: string;
39363
- created_by?: string | null;
39364
- customer_id?: string | null;
39365
- customer_name?: string | null;
39366
- id?: string;
39367
- invoice_number?: string | null;
39368
- note?: string | null;
39369
- status?: string;
39370
- total_excl_cents?: number;
39371
- total_incl_cents?: number;
39372
- updated_at?: string;
39373
- vat_cents?: number;
39374
- vat_percentage?: number;
39375
- werkbon_id?: string | null;
39376
- };
39377
- Relationships: [{
39378
- foreignKeyName: "uren_facturen_customer_id_fkey";
39379
- columns: ["customer_id"];
39380
- isOneToOne: false;
39381
- referencedRelation: "itk_customers";
39382
- referencedColumns: ["id"];
39383
- }, {
39384
- foreignKeyName: "uren_facturen_werkbon_id_fkey";
39385
- columns: ["werkbon_id"];
39386
- isOneToOne: true;
39387
- referencedRelation: "werkbonnen";
39388
- referencedColumns: ["id"];
39389
- }];
39390
- };
39391
- uren_factuur_regels: {
39392
- Row: {
39393
- created_at: string;
39394
- description: string;
39395
- factuur_id: string;
39396
- id: string;
39397
- kind: string | null;
39398
- quantity: number;
39399
- sort_order: number;
39400
- total_cents: number;
39401
- unit: string;
39402
- unit_price_cents: number;
39403
- };
39404
- Insert: {
39405
- created_at?: string;
39406
- description: string;
39407
- factuur_id: string;
39408
- id?: string;
39409
- kind?: string | null;
39410
- quantity?: number;
39411
- sort_order?: number;
39412
- total_cents?: number;
39413
- unit?: string;
39414
- unit_price_cents?: number;
39415
- };
39416
- Update: {
39417
- created_at?: string;
39418
- description?: string;
39419
- factuur_id?: string;
39420
- id?: string;
39421
- kind?: string | null;
39422
- quantity?: number;
39423
- sort_order?: number;
39424
- total_cents?: number;
39425
- unit?: string;
39426
- unit_price_cents?: number;
39427
- };
39428
- Relationships: [{
39429
- foreignKeyName: "uren_factuur_regels_factuur_id_fkey";
39430
- columns: ["factuur_id"];
39431
- isOneToOne: false;
39432
- referencedRelation: "uren_facturen";
39433
- referencedColumns: ["id"];
39434
- }];
39435
- };
39436
39937
  uren_offerte_regels: {
39437
39938
  Row: {
39438
39939
  created_at: string;
@@ -40686,6 +41187,9 @@ export declare const saveInvoiceTimingSettings: import("@tanstack/start-client-c
40686
41187
  scheduled_end_time: string | null;
40687
41188
  scheduled_start_time: string | null;
40688
41189
  sequence_number: number;
41190
+ signature_accepted_at: string | null;
41191
+ signature_by_user_id: string | null;
41192
+ signature_name: string | null;
40689
41193
  source_email_meta: import("../integrations/supabase/types").Json | null;
40690
41194
  source_mailbox_message_id: string | null;
40691
41195
  source_pdf_path: string | null;
@@ -40721,6 +41225,9 @@ export declare const saveInvoiceTimingSettings: import("@tanstack/start-client-c
40721
41225
  scheduled_end_time?: string | null;
40722
41226
  scheduled_start_time?: string | null;
40723
41227
  sequence_number: number;
41228
+ signature_accepted_at?: string | null;
41229
+ signature_by_user_id?: string | null;
41230
+ signature_name?: string | null;
40724
41231
  source_email_meta?: import("../integrations/supabase/types").Json | null;
40725
41232
  source_mailbox_message_id?: string | null;
40726
41233
  source_pdf_path?: string | null;
@@ -40756,6 +41263,9 @@ export declare const saveInvoiceTimingSettings: import("@tanstack/start-client-c
40756
41263
  scheduled_end_time?: string | null;
40757
41264
  scheduled_start_time?: string | null;
40758
41265
  sequence_number?: number;
41266
+ signature_accepted_at?: string | null;
41267
+ signature_by_user_id?: string | null;
41268
+ signature_name?: string | null;
40759
41269
  source_email_meta?: import("../integrations/supabase/types").Json | null;
40760
41270
  source_mailbox_message_id?: string | null;
40761
41271
  source_pdf_path?: string | null;
@@ -41272,6 +41782,114 @@ export declare const saveInvoiceTimingSettings: import("@tanstack/start-client-c
41272
41782
  };
41273
41783
  Relationships: [];
41274
41784
  };
41785
+ uren_facturen: {
41786
+ Row: {
41787
+ created_at: string | null;
41788
+ created_by: string | null;
41789
+ customer_id: string | null;
41790
+ customer_name: string | null;
41791
+ id: string | null;
41792
+ invoice_number: string | null;
41793
+ note: string | null;
41794
+ status: string | null;
41795
+ total_excl_cents: number | null;
41796
+ total_incl_cents: number | null;
41797
+ updated_at: string | null;
41798
+ vat_cents: number | null;
41799
+ vat_percentage: number | null;
41800
+ werkbon_id: string | null;
41801
+ };
41802
+ Insert: {
41803
+ created_at?: string | null;
41804
+ created_by?: string | null;
41805
+ customer_id?: string | null;
41806
+ customer_name?: string | null;
41807
+ id?: string | null;
41808
+ invoice_number?: string | null;
41809
+ note?: string | null;
41810
+ status?: string | null;
41811
+ total_excl_cents?: number | null;
41812
+ total_incl_cents?: number | null;
41813
+ updated_at?: string | null;
41814
+ vat_cents?: number | null;
41815
+ vat_percentage?: number | null;
41816
+ werkbon_id?: never;
41817
+ };
41818
+ Update: {
41819
+ created_at?: string | null;
41820
+ created_by?: string | null;
41821
+ customer_id?: string | null;
41822
+ customer_name?: string | null;
41823
+ id?: string | null;
41824
+ invoice_number?: string | null;
41825
+ note?: string | null;
41826
+ status?: string | null;
41827
+ total_excl_cents?: number | null;
41828
+ total_incl_cents?: number | null;
41829
+ updated_at?: string | null;
41830
+ vat_cents?: number | null;
41831
+ vat_percentage?: number | null;
41832
+ werkbon_id?: never;
41833
+ };
41834
+ Relationships: [{
41835
+ foreignKeyName: "invoices_customer_id_fkey";
41836
+ columns: ["customer_id"];
41837
+ isOneToOne: false;
41838
+ referencedRelation: "itk_customers";
41839
+ referencedColumns: ["id"];
41840
+ }];
41841
+ };
41842
+ uren_factuur_regels: {
41843
+ Row: {
41844
+ created_at: string | null;
41845
+ description: string | null;
41846
+ factuur_id: string | null;
41847
+ id: string | null;
41848
+ kind: string | null;
41849
+ quantity: number | null;
41850
+ sort_order: number | null;
41851
+ total_cents: number | null;
41852
+ unit: string | null;
41853
+ unit_price_cents: number | null;
41854
+ };
41855
+ Insert: {
41856
+ created_at?: string | null;
41857
+ description?: string | null;
41858
+ factuur_id?: string | null;
41859
+ id?: string | null;
41860
+ kind?: string | null;
41861
+ quantity?: number | null;
41862
+ sort_order?: number | null;
41863
+ total_cents?: number | null;
41864
+ unit?: string | null;
41865
+ unit_price_cents?: number | null;
41866
+ };
41867
+ Update: {
41868
+ created_at?: string | null;
41869
+ description?: string | null;
41870
+ factuur_id?: string | null;
41871
+ id?: string | null;
41872
+ kind?: string | null;
41873
+ quantity?: number | null;
41874
+ sort_order?: number | null;
41875
+ total_cents?: number | null;
41876
+ unit?: string | null;
41877
+ unit_price_cents?: number | null;
41878
+ };
41879
+ Relationships: [{
41880
+ foreignKeyName: "invoice_items_invoice_id_fkey";
41881
+ columns: ["factuur_id"];
41882
+ isOneToOne: false;
41883
+ referencedRelation: "invoices";
41884
+ referencedColumns: ["id"];
41885
+ }, {
41886
+ foreignKeyName: "invoice_items_invoice_id_fkey";
41887
+ columns: ["factuur_id"];
41888
+ isOneToOne: false;
41889
+ referencedRelation: "uren_facturen";
41890
+ referencedColumns: ["id"];
41891
+ }];
41892
+ };
41275
41893
  v_external_customers_exact: {
41276
41894
  Row: {
41277
41895
  account_number: string | null;
@@ -41777,6 +42395,7 @@ export declare const saveInvoiceTimingSettings: import("@tanstack/start-client-c
41777
42395
  gebruiker_id: string | null;
41778
42396
  gebruiker_naam: string;
41779
42397
  gestart_op: string | null;
42398
+ herkomst: string | null;
41780
42399
  id: string;
41781
42400
  idempotentie_sleutel: string | null;
41782
42401
  is_herprint: boolean;
@@ -41897,6 +42516,7 @@ export declare const saveInvoiceTimingSettings: import("@tanstack/start-client-c
41897
42516
  gebruiker_id: string | null;
41898
42517
  gebruiker_naam: string;
41899
42518
  gestart_op: string | null;
42519
+ herkomst: string | null;
41900
42520
  id: string;
41901
42521
  idempotentie_sleutel: string | null;
41902
42522
  is_herprint: boolean;
@@ -42498,6 +43118,46 @@ export declare const saveInvoiceTimingSettings: import("@tanstack/start-client-c
42498
43118
  Args: never;
42499
43119
  Returns: boolean;
42500
43120
  };
43121
+ invoice_create_from_source: {
43122
+ Args: {
43123
+ _payload?: import("../integrations/supabase/types").Json;
43124
+ _source_id: string;
43125
+ _source_type: string;
43126
+ };
43127
+ Returns: import("../integrations/supabase/types").Json;
43128
+ };
43129
+ invoice_get_billable_lines: {
43130
+ Args: {
43131
+ _invoice_id: string;
43132
+ };
43133
+ Returns: import("../integrations/supabase/types").Json;
43134
+ };
43135
+ invoice_get_for_source: {
43136
+ Args: {
43137
+ _source_id: string;
43138
+ _source_type: string;
43139
+ };
43140
+ Returns: import("../integrations/supabase/types").Json;
43141
+ };
43142
+ invoice_get_summary: {
43143
+ Args: {
43144
+ _invoice_id: string;
43145
+ };
43146
+ Returns: import("../integrations/supabase/types").Json;
43147
+ };
43148
+ invoice_list_sources: {
43149
+ Args: {
43150
+ _limit?: number;
43151
+ _source_type?: string;
43152
+ };
43153
+ Returns: import("../integrations/supabase/types").Json;
43154
+ };
43155
+ invoice_recalc_totals: {
43156
+ Args: {
43157
+ _invoice_id: string;
43158
+ };
43159
+ Returns: import("../integrations/supabase/types").Json;
43160
+ };
42501
43161
  is_authenticated: {
42502
43162
  Args: never;
42503
43163
  Returns: boolean;
@@ -42566,6 +43226,29 @@ export declare const saveInvoiceTimingSettings: import("@tanstack/start-client-c
42566
43226
  roles: string[];
42567
43227
  }[];
42568
43228
  };
43229
+ list_monteur_absences: {
43230
+ Args: {
43231
+ _from: string;
43232
+ _to: string;
43233
+ };
43234
+ Returns: {
43235
+ absence_date: string;
43236
+ end_time: string;
43237
+ full_day: boolean;
43238
+ kind: string;
43239
+ monteur_id: string;
43240
+ start_time: string;
43241
+ }[];
43242
+ };
43243
+ list_monteurs: {
43244
+ Args: never;
43245
+ Returns: {
43246
+ avatar_url: string;
43247
+ display_name: string;
43248
+ email: string;
43249
+ id: string;
43250
+ }[];
43251
+ };
42569
43252
  list_my_planning_items: {
42570
43253
  Args: {
42571
43254
  _from: string;
@@ -42977,6 +43660,23 @@ export declare const saveInvoiceTimingSettings: import("@tanstack/start-client-c
42977
43660
  };
42978
43661
  Returns: string;
42979
43662
  };
43663
+ logistics_floriday_finish_push_v2: {
43664
+ Args: {
43665
+ _error?: string;
43666
+ _error_code?: string;
43667
+ _fulfillment_order_id?: string;
43668
+ _gateway_status?: number;
43669
+ _id: string;
43670
+ _max_age_hours?: number;
43671
+ _max_attempts?: number;
43672
+ _ok: boolean;
43673
+ _permanent?: boolean;
43674
+ _response?: import("../integrations/supabase/types").Json;
43675
+ _revision: number;
43676
+ _sent_hash?: string;
43677
+ };
43678
+ Returns: string;
43679
+ };
42980
43680
  logistics_floriday_prune_pushes: {
42981
43681
  Args: {
42982
43682
  _days?: number;
@@ -43519,6 +44219,13 @@ export declare const saveInvoiceTimingSettings: import("@tanstack/start-client-c
43519
44219
  isSetofReturn: false;
43520
44220
  };
43521
44221
  };
44222
+ pick_cleanup_maintenance: {
44223
+ Args: {
44224
+ _heartbeat_hours?: number;
44225
+ _log_days?: number;
44226
+ };
44227
+ Returns: import("../integrations/supabase/types").Json;
44228
+ };
43522
44229
  pick_complete_print: {
43523
44230
  Args: {
43524
44231
  _printer_id: string;
@@ -43570,6 +44277,14 @@ export declare const saveInvoiceTimingSettings: import("@tanstack/start-client-c
43570
44277
  Args: never;
43571
44278
  Returns: string;
43572
44279
  };
44280
+ pick_day_counts: {
44281
+ Args: {
44282
+ _pick_day?: string;
44283
+ _screen_id?: string;
44284
+ _station_id?: string;
44285
+ };
44286
+ Returns: import("../integrations/supabase/types").Json;
44287
+ };
43573
44288
  pick_document_layout_data: {
43574
44289
  Args: {
43575
44290
  _layout_id: string;
@@ -43607,6 +44322,14 @@ export declare const saveInvoiceTimingSettings: import("@tanstack/start-client-c
43607
44322
  };
43608
44323
  Returns: undefined;
43609
44324
  };
44325
+ pick_reprint_document: {
44326
+ Args: {
44327
+ _queue_item_id: string;
44328
+ _session_id: string;
44329
+ _throttle_seconds?: number;
44330
+ };
44331
+ Returns: string;
44332
+ };
43610
44333
  pick_reset_print: {
43611
44334
  Args: {
43612
44335
  _queue_item_id: string;
@@ -43672,6 +44395,12 @@ export declare const saveInvoiceTimingSettings: import("@tanstack/start-client-c
43672
44395
  };
43673
44396
  Returns: string;
43674
44397
  };
44398
+ pick_sync_queue_throttled: {
44399
+ Args: {
44400
+ _min_seconds?: number;
44401
+ };
44402
+ Returns: import("../integrations/supabase/types").Json;
44403
+ };
43675
44404
  pickstation_get_orders_raw: {
43676
44405
  Args: never;
43677
44406
  Returns: import("../integrations/supabase/types").Json;
@@ -43817,6 +44546,12 @@ export declare const saveInvoiceTimingSettings: import("@tanstack/start-client-c
43817
44546
  };
43818
44547
  Returns: boolean;
43819
44548
  };
44549
+ release_stale_order_invoice_links: {
44550
+ Args: {
44551
+ _minutes?: number;
44552
+ };
44553
+ Returns: number;
44554
+ };
43820
44555
  reorder_customer_price_groups: {
43821
44556
  Args: {
43822
44557
  _ids: string[];
@@ -44335,6 +45070,20 @@ export declare const saveInvoiceTimingSettings: import("@tanstack/start-client-c
44335
45070
  };
44336
45071
  Returns: undefined;
44337
45072
  };
45073
+ twinfield_deactivate_connection: {
45074
+ Args: {
45075
+ p_connection_id: string;
45076
+ p_user_id: string;
45077
+ };
45078
+ Returns: import("../integrations/supabase/types").Json;
45079
+ };
45080
+ twinfield_handle_administration_change: {
45081
+ Args: {
45082
+ _administration_code: string;
45083
+ _user_id: string;
45084
+ };
45085
+ Returns: undefined;
45086
+ };
44338
45087
  twinfield_prune_push_queue: {
44339
45088
  Args: never;
44340
45089
  Returns: number;
@@ -44354,10 +45103,11 @@ export declare const saveInvoiceTimingSettings: import("@tanstack/start-client-c
44354
45103
  p_company_name?: string;
44355
45104
  p_environment: string;
44356
45105
  p_office_code?: string;
45106
+ p_reset_sync?: boolean;
44357
45107
  p_status?: string;
44358
45108
  p_user_id: string;
44359
45109
  };
44360
- Returns: string;
45110
+ Returns: import("../integrations/supabase/types").Json;
44361
45111
  };
44362
45112
  upsert_auto_fulfillment_log: {
44363
45113
  Args: {
@@ -47194,6 +47944,42 @@ export declare const recomputeInvoiceDueForOrder: import("@tanstack/start-client
47194
47944
  };
47195
47945
  Relationships: [];
47196
47946
  };
47947
+ document_bronregels: {
47948
+ Row: {
47949
+ bron: string;
47950
+ created_at: string;
47951
+ documenttype: string;
47952
+ herkomst: string;
47953
+ id: string;
47954
+ layout_id: string | null;
47955
+ updated_at: string;
47956
+ };
47957
+ Insert: {
47958
+ bron?: string;
47959
+ created_at?: string;
47960
+ documenttype: string;
47961
+ herkomst: string;
47962
+ id?: string;
47963
+ layout_id?: string | null;
47964
+ updated_at?: string;
47965
+ };
47966
+ Update: {
47967
+ bron?: string;
47968
+ created_at?: string;
47969
+ documenttype?: string;
47970
+ herkomst?: string;
47971
+ id?: string;
47972
+ layout_id?: string | null;
47973
+ updated_at?: string;
47974
+ };
47975
+ Relationships: [{
47976
+ foreignKeyName: "document_bronregels_layout_id_fkey";
47977
+ columns: ["layout_id"];
47978
+ isOneToOne: false;
47979
+ referencedRelation: "document_layouts";
47980
+ referencedColumns: ["id"];
47981
+ }];
47982
+ };
47197
47983
  document_formaat_printers: {
47198
47984
  Row: {
47199
47985
  created_at: string;
@@ -47471,6 +48257,7 @@ export declare const recomputeInvoiceDueForOrder: import("@tanstack/start-client
47471
48257
  Row: {
47472
48258
  actief: boolean;
47473
48259
  breedte_mm: number;
48260
+ bron: string;
47474
48261
  config: import("../integrations/supabase/types").Json;
47475
48262
  created_at: string;
47476
48263
  created_by: string | null;
@@ -47488,12 +48275,14 @@ export declare const recomputeInvoiceDueForOrder: import("@tanstack/start-client
47488
48275
  orientatie: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_orientation"];
47489
48276
  page_settings: import("../integrations/supabase/types").Json;
47490
48277
  papierformaat: string;
48278
+ systeem: boolean;
47491
48279
  thumbnail_url: string | null;
47492
48280
  updated_at: string;
47493
48281
  };
47494
48282
  Insert: {
47495
48283
  actief?: boolean;
47496
48284
  breedte_mm?: number;
48285
+ bron?: string;
47497
48286
  config?: import("../integrations/supabase/types").Json;
47498
48287
  created_at?: string;
47499
48288
  created_by?: string | null;
@@ -47511,12 +48300,14 @@ export declare const recomputeInvoiceDueForOrder: import("@tanstack/start-client
47511
48300
  orientatie?: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_orientation"];
47512
48301
  page_settings?: import("../integrations/supabase/types").Json;
47513
48302
  papierformaat?: string;
48303
+ systeem?: boolean;
47514
48304
  thumbnail_url?: string | null;
47515
48305
  updated_at?: string;
47516
48306
  };
47517
48307
  Update: {
47518
48308
  actief?: boolean;
47519
48309
  breedte_mm?: number;
48310
+ bron?: string;
47520
48311
  config?: import("../integrations/supabase/types").Json;
47521
48312
  created_at?: string;
47522
48313
  created_by?: string | null;
@@ -47534,11 +48325,48 @@ export declare const recomputeInvoiceDueForOrder: import("@tanstack/start-client
47534
48325
  orientatie?: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_orientation"];
47535
48326
  page_settings?: import("../integrations/supabase/types").Json;
47536
48327
  papierformaat?: string;
48328
+ systeem?: boolean;
47537
48329
  thumbnail_url?: string | null;
47538
48330
  updated_at?: string;
47539
48331
  };
47540
48332
  Relationships: [];
47541
48333
  };
48334
+ document_werkplek_printers: {
48335
+ Row: {
48336
+ created_at: string;
48337
+ documenttype: string;
48338
+ id: string;
48339
+ papierformaat: string | null;
48340
+ printer_id: string | null;
48341
+ updated_at: string;
48342
+ werkplek: string;
48343
+ };
48344
+ Insert: {
48345
+ created_at?: string;
48346
+ documenttype: string;
48347
+ id?: string;
48348
+ papierformaat?: string | null;
48349
+ printer_id?: string | null;
48350
+ updated_at?: string;
48351
+ werkplek: string;
48352
+ };
48353
+ Update: {
48354
+ created_at?: string;
48355
+ documenttype?: string;
48356
+ id?: string;
48357
+ papierformaat?: string | null;
48358
+ printer_id?: string | null;
48359
+ updated_at?: string;
48360
+ werkplek?: string;
48361
+ };
48362
+ Relationships: [{
48363
+ foreignKeyName: "document_werkplek_printers_printer_id_fkey";
48364
+ columns: ["printer_id"];
48365
+ isOneToOne: false;
48366
+ referencedRelation: "printers";
48367
+ referencedColumns: ["id"];
48368
+ }];
48369
+ };
47542
48370
  email_auth_connections: {
47543
48371
  Row: {
47544
48372
  access_token_encrypted: string | null;
@@ -49480,42 +50308,6 @@ export declare const recomputeInvoiceDueForOrder: import("@tanstack/start-client
49480
50308
  };
49481
50309
  Relationships: [];
49482
50310
  };
49483
- facturen: {
49484
- Row: {
49485
- bedrag_incl_btw: number;
49486
- created_at: string;
49487
- datum: string;
49488
- factuurnummer: string;
49489
- id: string;
49490
- klantnaam: string;
49491
- status: string;
49492
- updated_at: string;
49493
- user_id: string;
49494
- };
49495
- Insert: {
49496
- bedrag_incl_btw: number;
49497
- created_at?: string;
49498
- datum?: string;
49499
- factuurnummer: string;
49500
- id?: string;
49501
- klantnaam: string;
49502
- status?: string;
49503
- updated_at?: string;
49504
- user_id?: string;
49505
- };
49506
- Update: {
49507
- bedrag_incl_btw?: number;
49508
- created_at?: string;
49509
- datum?: string;
49510
- factuurnummer?: string;
49511
- id?: string;
49512
- klantnaam?: string;
49513
- status?: string;
49514
- updated_at?: string;
49515
- user_id?: string;
49516
- };
49517
- Relationships: [];
49518
- };
49519
50311
  floricode_connection_settings: {
49520
50312
  Row: {
49521
50313
  catalog_key: string | null;
@@ -51820,8 +52612,63 @@ export declare const recomputeInvoiceDueForOrder: import("@tanstack/start-client
51820
52612
  };
51821
52613
  Relationships: [];
51822
52614
  };
52615
+ invoice_items: {
52616
+ Row: {
52617
+ created_at: string;
52618
+ description: string;
52619
+ id: string;
52620
+ invoice_id: string;
52621
+ kind: string;
52622
+ quantity: number;
52623
+ sort_order: number;
52624
+ source_line_ref: string | null;
52625
+ total_cents: number;
52626
+ unit: string;
52627
+ unit_price_cents: number;
52628
+ };
52629
+ Insert: {
52630
+ created_at?: string;
52631
+ description?: string;
52632
+ id?: string;
52633
+ invoice_id: string;
52634
+ kind?: string;
52635
+ quantity?: number;
52636
+ sort_order?: number;
52637
+ source_line_ref?: string | null;
52638
+ total_cents?: number;
52639
+ unit?: string;
52640
+ unit_price_cents?: number;
52641
+ };
52642
+ Update: {
52643
+ created_at?: string;
52644
+ description?: string;
52645
+ id?: string;
52646
+ invoice_id?: string;
52647
+ kind?: string;
52648
+ quantity?: number;
52649
+ sort_order?: number;
52650
+ source_line_ref?: string | null;
52651
+ total_cents?: number;
52652
+ unit?: string;
52653
+ unit_price_cents?: number;
52654
+ };
52655
+ Relationships: [{
52656
+ foreignKeyName: "invoice_items_invoice_id_fkey";
52657
+ columns: ["invoice_id"];
52658
+ isOneToOne: false;
52659
+ referencedRelation: "invoices";
52660
+ referencedColumns: ["id"];
52661
+ }, {
52662
+ foreignKeyName: "invoice_items_invoice_id_fkey";
52663
+ columns: ["invoice_id"];
52664
+ isOneToOne: false;
52665
+ referencedRelation: "uren_facturen";
52666
+ referencedColumns: ["id"];
52667
+ }];
52668
+ };
51823
52669
  invoice_post_idempotency: {
51824
52670
  Row: {
52671
+ administration_code: string;
51825
52672
  client_request_id: string;
51826
52673
  completed_at: string | null;
51827
52674
  created_at: string;
@@ -51831,6 +52678,7 @@ export declare const recomputeInvoiceDueForOrder: import("@tanstack/start-client
51831
52678
  user_id: string;
51832
52679
  };
51833
52680
  Insert: {
52681
+ administration_code?: string;
51834
52682
  client_request_id: string;
51835
52683
  completed_at?: string | null;
51836
52684
  created_at?: string;
@@ -51840,6 +52688,7 @@ export declare const recomputeInvoiceDueForOrder: import("@tanstack/start-client
51840
52688
  user_id: string;
51841
52689
  };
51842
52690
  Update: {
52691
+ administration_code?: string;
51843
52692
  client_request_id?: string;
51844
52693
  completed_at?: string | null;
51845
52694
  created_at?: string;
@@ -52045,6 +52894,75 @@ export declare const recomputeInvoiceDueForOrder: import("@tanstack/start-client
52045
52894
  };
52046
52895
  Relationships: [];
52047
52896
  };
52897
+ invoices: {
52898
+ Row: {
52899
+ created_at: string;
52900
+ created_by: string | null;
52901
+ customer_id: string | null;
52902
+ customer_name: string | null;
52903
+ due_date: string | null;
52904
+ id: string;
52905
+ invoice_date: string;
52906
+ invoice_number: string | null;
52907
+ note: string | null;
52908
+ source_number: string | null;
52909
+ source_ref: string | null;
52910
+ source_type: string;
52911
+ status: string;
52912
+ subtotal_cents: number;
52913
+ total_cents: number;
52914
+ updated_at: string;
52915
+ vat_cents: number;
52916
+ vat_rate: number;
52917
+ };
52918
+ Insert: {
52919
+ created_at?: string;
52920
+ created_by?: string | null;
52921
+ customer_id?: string | null;
52922
+ customer_name?: string | null;
52923
+ due_date?: string | null;
52924
+ id?: string;
52925
+ invoice_date?: string;
52926
+ invoice_number?: string | null;
52927
+ note?: string | null;
52928
+ source_number?: string | null;
52929
+ source_ref?: string | null;
52930
+ source_type?: string;
52931
+ status?: string;
52932
+ subtotal_cents?: number;
52933
+ total_cents?: number;
52934
+ updated_at?: string;
52935
+ vat_cents?: number;
52936
+ vat_rate?: number;
52937
+ };
52938
+ Update: {
52939
+ created_at?: string;
52940
+ created_by?: string | null;
52941
+ customer_id?: string | null;
52942
+ customer_name?: string | null;
52943
+ due_date?: string | null;
52944
+ id?: string;
52945
+ invoice_date?: string;
52946
+ invoice_number?: string | null;
52947
+ note?: string | null;
52948
+ source_number?: string | null;
52949
+ source_ref?: string | null;
52950
+ source_type?: string;
52951
+ status?: string;
52952
+ subtotal_cents?: number;
52953
+ total_cents?: number;
52954
+ updated_at?: string;
52955
+ vat_cents?: number;
52956
+ vat_rate?: number;
52957
+ };
52958
+ Relationships: [{
52959
+ foreignKeyName: "invoices_customer_id_fkey";
52960
+ columns: ["customer_id"];
52961
+ isOneToOne: false;
52962
+ referencedRelation: "itk_customers";
52963
+ referencedColumns: ["id"];
52964
+ }];
52965
+ };
52048
52966
  itk_contact_persons: {
52049
52967
  Row: {
52050
52968
  created_at: string;
@@ -53392,6 +54310,9 @@ export declare const recomputeInvoiceDueForOrder: import("@tanstack/start-client
53392
54310
  id: string;
53393
54311
  last_error: string | null;
53394
54312
  last_error_at: string | null;
54313
+ last_error_code: string | null;
54314
+ last_gateway_status: number | null;
54315
+ last_response: import("../integrations/supabase/types").Json | null;
53395
54316
  last_sent_hash: string | null;
53396
54317
  locked_by: string | null;
53397
54318
  locked_until: string | null;
@@ -53412,6 +54333,9 @@ export declare const recomputeInvoiceDueForOrder: import("@tanstack/start-client
53412
54333
  id?: string;
53413
54334
  last_error?: string | null;
53414
54335
  last_error_at?: string | null;
54336
+ last_error_code?: string | null;
54337
+ last_gateway_status?: number | null;
54338
+ last_response?: import("../integrations/supabase/types").Json | null;
53415
54339
  last_sent_hash?: string | null;
53416
54340
  locked_by?: string | null;
53417
54341
  locked_until?: string | null;
@@ -53432,6 +54356,9 @@ export declare const recomputeInvoiceDueForOrder: import("@tanstack/start-client
53432
54356
  id?: string;
53433
54357
  last_error?: string | null;
53434
54358
  last_error_at?: string | null;
54359
+ last_error_code?: string | null;
54360
+ last_gateway_status?: number | null;
54361
+ last_response?: import("../integrations/supabase/types").Json | null;
53435
54362
  last_sent_hash?: string | null;
53436
54363
  locked_by?: string | null;
53437
54364
  locked_until?: string | null;
@@ -54985,6 +55912,7 @@ export declare const recomputeInvoiceDueForOrder: import("@tanstack/start-client
54985
55912
  enforce: boolean;
54986
55913
  is_active: boolean;
54987
55914
  last_seen_at: string;
55915
+ missing_count: number;
54988
55916
  module_id: string;
54989
55917
  name: string;
54990
55918
  shell_id: string | null;
@@ -54995,6 +55923,7 @@ export declare const recomputeInvoiceDueForOrder: import("@tanstack/start-client
54995
55923
  enforce?: boolean;
54996
55924
  is_active?: boolean;
54997
55925
  last_seen_at?: string;
55926
+ missing_count?: number;
54998
55927
  module_id: string;
54999
55928
  name: string;
55000
55929
  shell_id?: string | null;
@@ -55005,6 +55934,7 @@ export declare const recomputeInvoiceDueForOrder: import("@tanstack/start-client
55005
55934
  enforce?: boolean;
55006
55935
  is_active?: boolean;
55007
55936
  last_seen_at?: string;
55937
+ missing_count?: number;
55008
55938
  module_id?: string;
55009
55939
  name?: string;
55010
55940
  shell_id?: string | null;
@@ -56004,6 +56934,7 @@ export declare const recomputeInvoiceDueForOrder: import("@tanstack/start-client
56004
56934
  };
56005
56935
  order_invoice_links: {
56006
56936
  Row: {
56937
+ administration_code: string | null;
56007
56938
  attempts: number;
56008
56939
  created_at: string;
56009
56940
  error_message: string | null;
@@ -56016,6 +56947,7 @@ export declare const recomputeInvoiceDueForOrder: import("@tanstack/start-client
56016
56947
  updated_at: string;
56017
56948
  };
56018
56949
  Insert: {
56950
+ administration_code?: string | null;
56019
56951
  attempts?: number;
56020
56952
  created_at?: string;
56021
56953
  error_message?: string | null;
@@ -56028,6 +56960,7 @@ export declare const recomputeInvoiceDueForOrder: import("@tanstack/start-client
56028
56960
  updated_at?: string;
56029
56961
  };
56030
56962
  Update: {
56963
+ administration_code?: string | null;
56031
56964
  attempts?: number;
56032
56965
  created_at?: string;
56033
56966
  error_message?: string | null;
@@ -57193,6 +58126,27 @@ export declare const recomputeInvoiceDueForOrder: import("@tanstack/start-client
57193
58126
  referencedColumns: ["id"];
57194
58127
  }];
57195
58128
  };
58129
+ pick_sync_state: {
58130
+ Row: {
58131
+ id: boolean;
58132
+ last_cleanup_at: string | null;
58133
+ last_sync_at: string | null;
58134
+ updated_at: string;
58135
+ };
58136
+ Insert: {
58137
+ id?: boolean;
58138
+ last_cleanup_at?: string | null;
58139
+ last_sync_at?: string | null;
58140
+ updated_at?: string;
58141
+ };
58142
+ Update: {
58143
+ id?: boolean;
58144
+ last_cleanup_at?: string | null;
58145
+ last_sync_at?: string | null;
58146
+ updated_at?: string;
58147
+ };
58148
+ Relationships: [];
58149
+ };
57196
58150
  pick_task_document_types: {
57197
58151
  Row: {
57198
58152
  created_at: string;
@@ -57475,6 +58429,7 @@ export declare const recomputeInvoiceDueForOrder: import("@tanstack/start-client
57475
58429
  gebruiker_id: string | null;
57476
58430
  gebruiker_naam: string;
57477
58431
  gestart_op: string | null;
58432
+ herkomst: string | null;
57478
58433
  id: string;
57479
58434
  idempotentie_sleutel: string | null;
57480
58435
  is_herprint: boolean;
@@ -57504,6 +58459,7 @@ export declare const recomputeInvoiceDueForOrder: import("@tanstack/start-client
57504
58459
  gebruiker_id?: string | null;
57505
58460
  gebruiker_naam?: string;
57506
58461
  gestart_op?: string | null;
58462
+ herkomst?: string | null;
57507
58463
  id?: string;
57508
58464
  idempotentie_sleutel?: string | null;
57509
58465
  is_herprint?: boolean;
@@ -57533,6 +58489,7 @@ export declare const recomputeInvoiceDueForOrder: import("@tanstack/start-client
57533
58489
  gebruiker_id?: string | null;
57534
58490
  gebruiker_naam?: string;
57535
58491
  gestart_op?: string | null;
58492
+ herkomst?: string | null;
57536
58493
  id?: string;
57537
58494
  idempotentie_sleutel?: string | null;
57538
58495
  is_herprint?: boolean;
@@ -60537,12 +61494,16 @@ export declare const recomputeInvoiceDueForOrder: import("@tanstack/start-client
60537
61494
  company_name: string | null;
60538
61495
  connected_at: string | null;
60539
61496
  created_at: string;
61497
+ disconnected_at: string | null;
60540
61498
  environment: string;
60541
61499
  id: string;
61500
+ initial_sync_completed_at: string | null;
61501
+ initial_sync_started_at: string | null;
60542
61502
  is_active: boolean;
60543
61503
  label: string | null;
60544
61504
  office_code: string | null;
60545
61505
  redirect_uri: string | null;
61506
+ superseded_at: string | null;
60546
61507
  updated_at: string;
60547
61508
  user_id: string;
60548
61509
  };
@@ -60553,12 +61514,16 @@ export declare const recomputeInvoiceDueForOrder: import("@tanstack/start-client
60553
61514
  company_name?: string | null;
60554
61515
  connected_at?: string | null;
60555
61516
  created_at?: string;
61517
+ disconnected_at?: string | null;
60556
61518
  environment: string;
60557
61519
  id?: string;
61520
+ initial_sync_completed_at?: string | null;
61521
+ initial_sync_started_at?: string | null;
60558
61522
  is_active?: boolean;
60559
61523
  label?: string | null;
60560
61524
  office_code?: string | null;
60561
61525
  redirect_uri?: string | null;
61526
+ superseded_at?: string | null;
60562
61527
  updated_at?: string;
60563
61528
  user_id: string;
60564
61529
  };
@@ -60569,12 +61534,16 @@ export declare const recomputeInvoiceDueForOrder: import("@tanstack/start-client
60569
61534
  company_name?: string | null;
60570
61535
  connected_at?: string | null;
60571
61536
  created_at?: string;
61537
+ disconnected_at?: string | null;
60572
61538
  environment?: string;
60573
61539
  id?: string;
61540
+ initial_sync_completed_at?: string | null;
61541
+ initial_sync_started_at?: string | null;
60574
61542
  is_active?: boolean;
60575
61543
  label?: string | null;
60576
61544
  office_code?: string | null;
60577
61545
  redirect_uri?: string | null;
61546
+ superseded_at?: string | null;
60578
61547
  updated_at?: string;
60579
61548
  user_id?: string;
60580
61549
  };
@@ -60634,6 +61603,7 @@ export declare const recomputeInvoiceDueForOrder: import("@tanstack/start-client
60634
61603
  twinfield_customers: {
60635
61604
  Row: {
60636
61605
  address: string | null;
61606
+ administration_code: string;
60637
61607
  city: string | null;
60638
61608
  country: string | null;
60639
61609
  created_at: string;
@@ -60653,6 +61623,7 @@ export declare const recomputeInvoiceDueForOrder: import("@tanstack/start-client
60653
61623
  };
60654
61624
  Insert: {
60655
61625
  address?: string | null;
61626
+ administration_code?: string;
60656
61627
  city?: string | null;
60657
61628
  country?: string | null;
60658
61629
  created_at?: string;
@@ -60672,6 +61643,7 @@ export declare const recomputeInvoiceDueForOrder: import("@tanstack/start-client
60672
61643
  };
60673
61644
  Update: {
60674
61645
  address?: string | null;
61646
+ administration_code?: string;
60675
61647
  city?: string | null;
60676
61648
  country?: string | null;
60677
61649
  created_at?: string;
@@ -60885,7 +61857,9 @@ export declare const recomputeInvoiceDueForOrder: import("@tanstack/start-client
60885
61857
  };
60886
61858
  twinfield_invoice_settings: {
60887
61859
  Row: {
61860
+ administration_code: string | null;
60888
61861
  auto_invoice_enabled: boolean;
61862
+ auto_invoice_start_date: string | null;
60889
61863
  auto_invoice_trigger_statuses: string[];
60890
61864
  created_at: string;
60891
61865
  debtor_gl_account: string;
@@ -60899,15 +61873,19 @@ export declare const recomputeInvoiceDueForOrder: import("@tanstack/start-client
60899
61873
  invoice_enabled_fo: boolean;
60900
61874
  invoice_enabled_ho: boolean;
60901
61875
  invoice_enabled_mo: boolean;
61876
+ needs_review: boolean;
60902
61877
  payment_gl_account: string;
60903
61878
  payment_journal_code: string;
61879
+ settings_confirmed_at: string | null;
60904
61880
  updated_at: string;
60905
61881
  user_id: string;
60906
61882
  vat_code_eu_reverse: string | null;
60907
61883
  vat_code_export: string | null;
60908
61884
  };
60909
61885
  Insert: {
61886
+ administration_code?: string | null;
60910
61887
  auto_invoice_enabled?: boolean;
61888
+ auto_invoice_start_date?: string | null;
60911
61889
  auto_invoice_trigger_statuses?: string[];
60912
61890
  created_at?: string;
60913
61891
  debtor_gl_account?: string;
@@ -60921,15 +61899,19 @@ export declare const recomputeInvoiceDueForOrder: import("@tanstack/start-client
60921
61899
  invoice_enabled_fo?: boolean;
60922
61900
  invoice_enabled_ho?: boolean;
60923
61901
  invoice_enabled_mo?: boolean;
61902
+ needs_review?: boolean;
60924
61903
  payment_gl_account?: string;
60925
61904
  payment_journal_code?: string;
61905
+ settings_confirmed_at?: string | null;
60926
61906
  updated_at?: string;
60927
61907
  user_id: string;
60928
61908
  vat_code_eu_reverse?: string | null;
60929
61909
  vat_code_export?: string | null;
60930
61910
  };
60931
61911
  Update: {
61912
+ administration_code?: string | null;
60932
61913
  auto_invoice_enabled?: boolean;
61914
+ auto_invoice_start_date?: string | null;
60933
61915
  auto_invoice_trigger_statuses?: string[];
60934
61916
  created_at?: string;
60935
61917
  debtor_gl_account?: string;
@@ -60943,8 +61925,10 @@ export declare const recomputeInvoiceDueForOrder: import("@tanstack/start-client
60943
61925
  invoice_enabled_fo?: boolean;
60944
61926
  invoice_enabled_ho?: boolean;
60945
61927
  invoice_enabled_mo?: boolean;
61928
+ needs_review?: boolean;
60946
61929
  payment_gl_account?: string;
60947
61930
  payment_journal_code?: string;
61931
+ settings_confirmed_at?: string | null;
60948
61932
  updated_at?: string;
60949
61933
  user_id?: string;
60950
61934
  vat_code_eu_reverse?: string | null;
@@ -61549,114 +62533,6 @@ export declare const recomputeInvoiceDueForOrder: import("@tanstack/start-client
61549
62533
  };
61550
62534
  Relationships: [];
61551
62535
  };
61552
- uren_facturen: {
61553
- Row: {
61554
- created_at: string;
61555
- created_by: string | null;
61556
- customer_id: string | null;
61557
- customer_name: string | null;
61558
- id: string;
61559
- invoice_number: string | null;
61560
- note: string | null;
61561
- status: string;
61562
- total_excl_cents: number;
61563
- total_incl_cents: number;
61564
- updated_at: string;
61565
- vat_cents: number;
61566
- vat_percentage: number;
61567
- werkbon_id: string | null;
61568
- };
61569
- Insert: {
61570
- created_at?: string;
61571
- created_by?: string | null;
61572
- customer_id?: string | null;
61573
- customer_name?: string | null;
61574
- id?: string;
61575
- invoice_number?: string | null;
61576
- note?: string | null;
61577
- status?: string;
61578
- total_excl_cents?: number;
61579
- total_incl_cents?: number;
61580
- updated_at?: string;
61581
- vat_cents?: number;
61582
- vat_percentage?: number;
61583
- werkbon_id?: string | null;
61584
- };
61585
- Update: {
61586
- created_at?: string;
61587
- created_by?: string | null;
61588
- customer_id?: string | null;
61589
- customer_name?: string | null;
61590
- id?: string;
61591
- invoice_number?: string | null;
61592
- note?: string | null;
61593
- status?: string;
61594
- total_excl_cents?: number;
61595
- total_incl_cents?: number;
61596
- updated_at?: string;
61597
- vat_cents?: number;
61598
- vat_percentage?: number;
61599
- werkbon_id?: string | null;
61600
- };
61601
- Relationships: [{
61602
- foreignKeyName: "uren_facturen_customer_id_fkey";
61603
- columns: ["customer_id"];
61604
- isOneToOne: false;
61605
- referencedRelation: "itk_customers";
61606
- referencedColumns: ["id"];
61607
- }, {
61608
- foreignKeyName: "uren_facturen_werkbon_id_fkey";
61609
- columns: ["werkbon_id"];
61610
- isOneToOne: true;
61611
- referencedRelation: "werkbonnen";
61612
- referencedColumns: ["id"];
61613
- }];
61614
- };
61615
- uren_factuur_regels: {
61616
- Row: {
61617
- created_at: string;
61618
- description: string;
61619
- factuur_id: string;
61620
- id: string;
61621
- kind: string | null;
61622
- quantity: number;
61623
- sort_order: number;
61624
- total_cents: number;
61625
- unit: string;
61626
- unit_price_cents: number;
61627
- };
61628
- Insert: {
61629
- created_at?: string;
61630
- description: string;
61631
- factuur_id: string;
61632
- id?: string;
61633
- kind?: string | null;
61634
- quantity?: number;
61635
- sort_order?: number;
61636
- total_cents?: number;
61637
- unit?: string;
61638
- unit_price_cents?: number;
61639
- };
61640
- Update: {
61641
- created_at?: string;
61642
- description?: string;
61643
- factuur_id?: string;
61644
- id?: string;
61645
- kind?: string | null;
61646
- quantity?: number;
61647
- sort_order?: number;
61648
- total_cents?: number;
61649
- unit?: string;
61650
- unit_price_cents?: number;
61651
- };
61652
- Relationships: [{
61653
- foreignKeyName: "uren_factuur_regels_factuur_id_fkey";
61654
- columns: ["factuur_id"];
61655
- isOneToOne: false;
61656
- referencedRelation: "uren_facturen";
61657
- referencedColumns: ["id"];
61658
- }];
61659
- };
61660
62536
  uren_offerte_regels: {
61661
62537
  Row: {
61662
62538
  created_at: string;
@@ -62910,6 +63786,9 @@ export declare const recomputeInvoiceDueForOrder: import("@tanstack/start-client
62910
63786
  scheduled_end_time: string | null;
62911
63787
  scheduled_start_time: string | null;
62912
63788
  sequence_number: number;
63789
+ signature_accepted_at: string | null;
63790
+ signature_by_user_id: string | null;
63791
+ signature_name: string | null;
62913
63792
  source_email_meta: import("../integrations/supabase/types").Json | null;
62914
63793
  source_mailbox_message_id: string | null;
62915
63794
  source_pdf_path: string | null;
@@ -62945,6 +63824,9 @@ export declare const recomputeInvoiceDueForOrder: import("@tanstack/start-client
62945
63824
  scheduled_end_time?: string | null;
62946
63825
  scheduled_start_time?: string | null;
62947
63826
  sequence_number: number;
63827
+ signature_accepted_at?: string | null;
63828
+ signature_by_user_id?: string | null;
63829
+ signature_name?: string | null;
62948
63830
  source_email_meta?: import("../integrations/supabase/types").Json | null;
62949
63831
  source_mailbox_message_id?: string | null;
62950
63832
  source_pdf_path?: string | null;
@@ -62980,6 +63862,9 @@ export declare const recomputeInvoiceDueForOrder: import("@tanstack/start-client
62980
63862
  scheduled_end_time?: string | null;
62981
63863
  scheduled_start_time?: string | null;
62982
63864
  sequence_number?: number;
63865
+ signature_accepted_at?: string | null;
63866
+ signature_by_user_id?: string | null;
63867
+ signature_name?: string | null;
62983
63868
  source_email_meta?: import("../integrations/supabase/types").Json | null;
62984
63869
  source_mailbox_message_id?: string | null;
62985
63870
  source_pdf_path?: string | null;
@@ -63496,6 +64381,114 @@ export declare const recomputeInvoiceDueForOrder: import("@tanstack/start-client
63496
64381
  };
63497
64382
  Relationships: [];
63498
64383
  };
64384
+ uren_facturen: {
64385
+ Row: {
64386
+ created_at: string | null;
64387
+ created_by: string | null;
64388
+ customer_id: string | null;
64389
+ customer_name: string | null;
64390
+ id: string | null;
64391
+ invoice_number: string | null;
64392
+ note: string | null;
64393
+ status: string | null;
64394
+ total_excl_cents: number | null;
64395
+ total_incl_cents: number | null;
64396
+ updated_at: string | null;
64397
+ vat_cents: number | null;
64398
+ vat_percentage: number | null;
64399
+ werkbon_id: string | null;
64400
+ };
64401
+ Insert: {
64402
+ created_at?: string | null;
64403
+ created_by?: string | null;
64404
+ customer_id?: string | null;
64405
+ customer_name?: string | null;
64406
+ id?: string | null;
64407
+ invoice_number?: string | null;
64408
+ note?: string | null;
64409
+ status?: string | null;
64410
+ total_excl_cents?: number | null;
64411
+ total_incl_cents?: number | null;
64412
+ updated_at?: string | null;
64413
+ vat_cents?: number | null;
64414
+ vat_percentage?: number | null;
64415
+ werkbon_id?: never;
64416
+ };
64417
+ Update: {
64418
+ created_at?: string | null;
64419
+ created_by?: string | null;
64420
+ customer_id?: string | null;
64421
+ customer_name?: string | null;
64422
+ id?: string | null;
64423
+ invoice_number?: string | null;
64424
+ note?: string | null;
64425
+ status?: string | null;
64426
+ total_excl_cents?: number | null;
64427
+ total_incl_cents?: number | null;
64428
+ updated_at?: string | null;
64429
+ vat_cents?: number | null;
64430
+ vat_percentage?: number | null;
64431
+ werkbon_id?: never;
64432
+ };
64433
+ Relationships: [{
64434
+ foreignKeyName: "invoices_customer_id_fkey";
64435
+ columns: ["customer_id"];
64436
+ isOneToOne: false;
64437
+ referencedRelation: "itk_customers";
64438
+ referencedColumns: ["id"];
64439
+ }];
64440
+ };
64441
+ uren_factuur_regels: {
64442
+ Row: {
64443
+ created_at: string | null;
64444
+ description: string | null;
64445
+ factuur_id: string | null;
64446
+ id: string | null;
64447
+ kind: string | null;
64448
+ quantity: number | null;
64449
+ sort_order: number | null;
64450
+ total_cents: number | null;
64451
+ unit: string | null;
64452
+ unit_price_cents: number | null;
64453
+ };
64454
+ Insert: {
64455
+ created_at?: string | null;
64456
+ description?: string | null;
64457
+ factuur_id?: string | null;
64458
+ id?: string | null;
64459
+ kind?: string | null;
64460
+ quantity?: number | null;
64461
+ sort_order?: number | null;
64462
+ total_cents?: number | null;
64463
+ unit?: string | null;
64464
+ unit_price_cents?: number | null;
64465
+ };
64466
+ Update: {
64467
+ created_at?: string | null;
64468
+ description?: string | null;
64469
+ factuur_id?: string | null;
64470
+ id?: string | null;
64471
+ kind?: string | null;
64472
+ quantity?: number | null;
64473
+ sort_order?: number | null;
64474
+ total_cents?: number | null;
64475
+ unit?: string | null;
64476
+ unit_price_cents?: number | null;
64477
+ };
64478
+ Relationships: [{
64479
+ foreignKeyName: "invoice_items_invoice_id_fkey";
64480
+ columns: ["factuur_id"];
64481
+ isOneToOne: false;
64482
+ referencedRelation: "invoices";
64483
+ referencedColumns: ["id"];
64484
+ }, {
64485
+ foreignKeyName: "invoice_items_invoice_id_fkey";
64486
+ columns: ["factuur_id"];
64487
+ isOneToOne: false;
64488
+ referencedRelation: "uren_facturen";
64489
+ referencedColumns: ["id"];
64490
+ }];
64491
+ };
63499
64492
  v_external_customers_exact: {
63500
64493
  Row: {
63501
64494
  account_number: string | null;
@@ -64001,6 +64994,7 @@ export declare const recomputeInvoiceDueForOrder: import("@tanstack/start-client
64001
64994
  gebruiker_id: string | null;
64002
64995
  gebruiker_naam: string;
64003
64996
  gestart_op: string | null;
64997
+ herkomst: string | null;
64004
64998
  id: string;
64005
64999
  idempotentie_sleutel: string | null;
64006
65000
  is_herprint: boolean;
@@ -64121,6 +65115,7 @@ export declare const recomputeInvoiceDueForOrder: import("@tanstack/start-client
64121
65115
  gebruiker_id: string | null;
64122
65116
  gebruiker_naam: string;
64123
65117
  gestart_op: string | null;
65118
+ herkomst: string | null;
64124
65119
  id: string;
64125
65120
  idempotentie_sleutel: string | null;
64126
65121
  is_herprint: boolean;
@@ -64722,6 +65717,46 @@ export declare const recomputeInvoiceDueForOrder: import("@tanstack/start-client
64722
65717
  Args: never;
64723
65718
  Returns: boolean;
64724
65719
  };
65720
+ invoice_create_from_source: {
65721
+ Args: {
65722
+ _payload?: import("../integrations/supabase/types").Json;
65723
+ _source_id: string;
65724
+ _source_type: string;
65725
+ };
65726
+ Returns: import("../integrations/supabase/types").Json;
65727
+ };
65728
+ invoice_get_billable_lines: {
65729
+ Args: {
65730
+ _invoice_id: string;
65731
+ };
65732
+ Returns: import("../integrations/supabase/types").Json;
65733
+ };
65734
+ invoice_get_for_source: {
65735
+ Args: {
65736
+ _source_id: string;
65737
+ _source_type: string;
65738
+ };
65739
+ Returns: import("../integrations/supabase/types").Json;
65740
+ };
65741
+ invoice_get_summary: {
65742
+ Args: {
65743
+ _invoice_id: string;
65744
+ };
65745
+ Returns: import("../integrations/supabase/types").Json;
65746
+ };
65747
+ invoice_list_sources: {
65748
+ Args: {
65749
+ _limit?: number;
65750
+ _source_type?: string;
65751
+ };
65752
+ Returns: import("../integrations/supabase/types").Json;
65753
+ };
65754
+ invoice_recalc_totals: {
65755
+ Args: {
65756
+ _invoice_id: string;
65757
+ };
65758
+ Returns: import("../integrations/supabase/types").Json;
65759
+ };
64725
65760
  is_authenticated: {
64726
65761
  Args: never;
64727
65762
  Returns: boolean;
@@ -64790,6 +65825,29 @@ export declare const recomputeInvoiceDueForOrder: import("@tanstack/start-client
64790
65825
  roles: string[];
64791
65826
  }[];
64792
65827
  };
65828
+ list_monteur_absences: {
65829
+ Args: {
65830
+ _from: string;
65831
+ _to: string;
65832
+ };
65833
+ Returns: {
65834
+ absence_date: string;
65835
+ end_time: string;
65836
+ full_day: boolean;
65837
+ kind: string;
65838
+ monteur_id: string;
65839
+ start_time: string;
65840
+ }[];
65841
+ };
65842
+ list_monteurs: {
65843
+ Args: never;
65844
+ Returns: {
65845
+ avatar_url: string;
65846
+ display_name: string;
65847
+ email: string;
65848
+ id: string;
65849
+ }[];
65850
+ };
64793
65851
  list_my_planning_items: {
64794
65852
  Args: {
64795
65853
  _from: string;
@@ -65201,6 +66259,23 @@ export declare const recomputeInvoiceDueForOrder: import("@tanstack/start-client
65201
66259
  };
65202
66260
  Returns: string;
65203
66261
  };
66262
+ logistics_floriday_finish_push_v2: {
66263
+ Args: {
66264
+ _error?: string;
66265
+ _error_code?: string;
66266
+ _fulfillment_order_id?: string;
66267
+ _gateway_status?: number;
66268
+ _id: string;
66269
+ _max_age_hours?: number;
66270
+ _max_attempts?: number;
66271
+ _ok: boolean;
66272
+ _permanent?: boolean;
66273
+ _response?: import("../integrations/supabase/types").Json;
66274
+ _revision: number;
66275
+ _sent_hash?: string;
66276
+ };
66277
+ Returns: string;
66278
+ };
65204
66279
  logistics_floriday_prune_pushes: {
65205
66280
  Args: {
65206
66281
  _days?: number;
@@ -65743,6 +66818,13 @@ export declare const recomputeInvoiceDueForOrder: import("@tanstack/start-client
65743
66818
  isSetofReturn: false;
65744
66819
  };
65745
66820
  };
66821
+ pick_cleanup_maintenance: {
66822
+ Args: {
66823
+ _heartbeat_hours?: number;
66824
+ _log_days?: number;
66825
+ };
66826
+ Returns: import("../integrations/supabase/types").Json;
66827
+ };
65746
66828
  pick_complete_print: {
65747
66829
  Args: {
65748
66830
  _printer_id: string;
@@ -65794,6 +66876,14 @@ export declare const recomputeInvoiceDueForOrder: import("@tanstack/start-client
65794
66876
  Args: never;
65795
66877
  Returns: string;
65796
66878
  };
66879
+ pick_day_counts: {
66880
+ Args: {
66881
+ _pick_day?: string;
66882
+ _screen_id?: string;
66883
+ _station_id?: string;
66884
+ };
66885
+ Returns: import("../integrations/supabase/types").Json;
66886
+ };
65797
66887
  pick_document_layout_data: {
65798
66888
  Args: {
65799
66889
  _layout_id: string;
@@ -65831,6 +66921,14 @@ export declare const recomputeInvoiceDueForOrder: import("@tanstack/start-client
65831
66921
  };
65832
66922
  Returns: undefined;
65833
66923
  };
66924
+ pick_reprint_document: {
66925
+ Args: {
66926
+ _queue_item_id: string;
66927
+ _session_id: string;
66928
+ _throttle_seconds?: number;
66929
+ };
66930
+ Returns: string;
66931
+ };
65834
66932
  pick_reset_print: {
65835
66933
  Args: {
65836
66934
  _queue_item_id: string;
@@ -65896,6 +66994,12 @@ export declare const recomputeInvoiceDueForOrder: import("@tanstack/start-client
65896
66994
  };
65897
66995
  Returns: string;
65898
66996
  };
66997
+ pick_sync_queue_throttled: {
66998
+ Args: {
66999
+ _min_seconds?: number;
67000
+ };
67001
+ Returns: import("../integrations/supabase/types").Json;
67002
+ };
65899
67003
  pickstation_get_orders_raw: {
65900
67004
  Args: never;
65901
67005
  Returns: import("../integrations/supabase/types").Json;
@@ -66041,6 +67145,12 @@ export declare const recomputeInvoiceDueForOrder: import("@tanstack/start-client
66041
67145
  };
66042
67146
  Returns: boolean;
66043
67147
  };
67148
+ release_stale_order_invoice_links: {
67149
+ Args: {
67150
+ _minutes?: number;
67151
+ };
67152
+ Returns: number;
67153
+ };
66044
67154
  reorder_customer_price_groups: {
66045
67155
  Args: {
66046
67156
  _ids: string[];
@@ -66559,6 +67669,20 @@ export declare const recomputeInvoiceDueForOrder: import("@tanstack/start-client
66559
67669
  };
66560
67670
  Returns: undefined;
66561
67671
  };
67672
+ twinfield_deactivate_connection: {
67673
+ Args: {
67674
+ p_connection_id: string;
67675
+ p_user_id: string;
67676
+ };
67677
+ Returns: import("../integrations/supabase/types").Json;
67678
+ };
67679
+ twinfield_handle_administration_change: {
67680
+ Args: {
67681
+ _administration_code: string;
67682
+ _user_id: string;
67683
+ };
67684
+ Returns: undefined;
67685
+ };
66562
67686
  twinfield_prune_push_queue: {
66563
67687
  Args: never;
66564
67688
  Returns: number;
@@ -66578,10 +67702,11 @@ export declare const recomputeInvoiceDueForOrder: import("@tanstack/start-client
66578
67702
  p_company_name?: string;
66579
67703
  p_environment: string;
66580
67704
  p_office_code?: string;
67705
+ p_reset_sync?: boolean;
66581
67706
  p_status?: string;
66582
67707
  p_user_id: string;
66583
67708
  };
66584
- Returns: string;
67709
+ Returns: import("../integrations/supabase/types").Json;
66585
67710
  };
66586
67711
  upsert_auto_fulfillment_log: {
66587
67712
  Args: {
@@ -69409,6 +70534,42 @@ export declare const getOrderInvoiceMoment: import("@tanstack/start-client-core"
69409
70534
  };
69410
70535
  Relationships: [];
69411
70536
  };
70537
+ document_bronregels: {
70538
+ Row: {
70539
+ bron: string;
70540
+ created_at: string;
70541
+ documenttype: string;
70542
+ herkomst: string;
70543
+ id: string;
70544
+ layout_id: string | null;
70545
+ updated_at: string;
70546
+ };
70547
+ Insert: {
70548
+ bron?: string;
70549
+ created_at?: string;
70550
+ documenttype: string;
70551
+ herkomst: string;
70552
+ id?: string;
70553
+ layout_id?: string | null;
70554
+ updated_at?: string;
70555
+ };
70556
+ Update: {
70557
+ bron?: string;
70558
+ created_at?: string;
70559
+ documenttype?: string;
70560
+ herkomst?: string;
70561
+ id?: string;
70562
+ layout_id?: string | null;
70563
+ updated_at?: string;
70564
+ };
70565
+ Relationships: [{
70566
+ foreignKeyName: "document_bronregels_layout_id_fkey";
70567
+ columns: ["layout_id"];
70568
+ isOneToOne: false;
70569
+ referencedRelation: "document_layouts";
70570
+ referencedColumns: ["id"];
70571
+ }];
70572
+ };
69412
70573
  document_formaat_printers: {
69413
70574
  Row: {
69414
70575
  created_at: string;
@@ -69686,6 +70847,7 @@ export declare const getOrderInvoiceMoment: import("@tanstack/start-client-core"
69686
70847
  Row: {
69687
70848
  actief: boolean;
69688
70849
  breedte_mm: number;
70850
+ bron: string;
69689
70851
  config: import("../integrations/supabase/types").Json;
69690
70852
  created_at: string;
69691
70853
  created_by: string | null;
@@ -69703,12 +70865,14 @@ export declare const getOrderInvoiceMoment: import("@tanstack/start-client-core"
69703
70865
  orientatie: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_orientation"];
69704
70866
  page_settings: import("../integrations/supabase/types").Json;
69705
70867
  papierformaat: string;
70868
+ systeem: boolean;
69706
70869
  thumbnail_url: string | null;
69707
70870
  updated_at: string;
69708
70871
  };
69709
70872
  Insert: {
69710
70873
  actief?: boolean;
69711
70874
  breedte_mm?: number;
70875
+ bron?: string;
69712
70876
  config?: import("../integrations/supabase/types").Json;
69713
70877
  created_at?: string;
69714
70878
  created_by?: string | null;
@@ -69726,12 +70890,14 @@ export declare const getOrderInvoiceMoment: import("@tanstack/start-client-core"
69726
70890
  orientatie?: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_orientation"];
69727
70891
  page_settings?: import("../integrations/supabase/types").Json;
69728
70892
  papierformaat?: string;
70893
+ systeem?: boolean;
69729
70894
  thumbnail_url?: string | null;
69730
70895
  updated_at?: string;
69731
70896
  };
69732
70897
  Update: {
69733
70898
  actief?: boolean;
69734
70899
  breedte_mm?: number;
70900
+ bron?: string;
69735
70901
  config?: import("../integrations/supabase/types").Json;
69736
70902
  created_at?: string;
69737
70903
  created_by?: string | null;
@@ -69749,11 +70915,48 @@ export declare const getOrderInvoiceMoment: import("@tanstack/start-client-core"
69749
70915
  orientatie?: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_orientation"];
69750
70916
  page_settings?: import("../integrations/supabase/types").Json;
69751
70917
  papierformaat?: string;
70918
+ systeem?: boolean;
69752
70919
  thumbnail_url?: string | null;
69753
70920
  updated_at?: string;
69754
70921
  };
69755
70922
  Relationships: [];
69756
70923
  };
70924
+ document_werkplek_printers: {
70925
+ Row: {
70926
+ created_at: string;
70927
+ documenttype: string;
70928
+ id: string;
70929
+ papierformaat: string | null;
70930
+ printer_id: string | null;
70931
+ updated_at: string;
70932
+ werkplek: string;
70933
+ };
70934
+ Insert: {
70935
+ created_at?: string;
70936
+ documenttype: string;
70937
+ id?: string;
70938
+ papierformaat?: string | null;
70939
+ printer_id?: string | null;
70940
+ updated_at?: string;
70941
+ werkplek: string;
70942
+ };
70943
+ Update: {
70944
+ created_at?: string;
70945
+ documenttype?: string;
70946
+ id?: string;
70947
+ papierformaat?: string | null;
70948
+ printer_id?: string | null;
70949
+ updated_at?: string;
70950
+ werkplek?: string;
70951
+ };
70952
+ Relationships: [{
70953
+ foreignKeyName: "document_werkplek_printers_printer_id_fkey";
70954
+ columns: ["printer_id"];
70955
+ isOneToOne: false;
70956
+ referencedRelation: "printers";
70957
+ referencedColumns: ["id"];
70958
+ }];
70959
+ };
69757
70960
  email_auth_connections: {
69758
70961
  Row: {
69759
70962
  access_token_encrypted: string | null;
@@ -71695,42 +72898,6 @@ export declare const getOrderInvoiceMoment: import("@tanstack/start-client-core"
71695
72898
  };
71696
72899
  Relationships: [];
71697
72900
  };
71698
- facturen: {
71699
- Row: {
71700
- bedrag_incl_btw: number;
71701
- created_at: string;
71702
- datum: string;
71703
- factuurnummer: string;
71704
- id: string;
71705
- klantnaam: string;
71706
- status: string;
71707
- updated_at: string;
71708
- user_id: string;
71709
- };
71710
- Insert: {
71711
- bedrag_incl_btw: number;
71712
- created_at?: string;
71713
- datum?: string;
71714
- factuurnummer: string;
71715
- id?: string;
71716
- klantnaam: string;
71717
- status?: string;
71718
- updated_at?: string;
71719
- user_id?: string;
71720
- };
71721
- Update: {
71722
- bedrag_incl_btw?: number;
71723
- created_at?: string;
71724
- datum?: string;
71725
- factuurnummer?: string;
71726
- id?: string;
71727
- klantnaam?: string;
71728
- status?: string;
71729
- updated_at?: string;
71730
- user_id?: string;
71731
- };
71732
- Relationships: [];
71733
- };
71734
72901
  floricode_connection_settings: {
71735
72902
  Row: {
71736
72903
  catalog_key: string | null;
@@ -74035,8 +75202,63 @@ export declare const getOrderInvoiceMoment: import("@tanstack/start-client-core"
74035
75202
  };
74036
75203
  Relationships: [];
74037
75204
  };
75205
+ invoice_items: {
75206
+ Row: {
75207
+ created_at: string;
75208
+ description: string;
75209
+ id: string;
75210
+ invoice_id: string;
75211
+ kind: string;
75212
+ quantity: number;
75213
+ sort_order: number;
75214
+ source_line_ref: string | null;
75215
+ total_cents: number;
75216
+ unit: string;
75217
+ unit_price_cents: number;
75218
+ };
75219
+ Insert: {
75220
+ created_at?: string;
75221
+ description?: string;
75222
+ id?: string;
75223
+ invoice_id: string;
75224
+ kind?: string;
75225
+ quantity?: number;
75226
+ sort_order?: number;
75227
+ source_line_ref?: string | null;
75228
+ total_cents?: number;
75229
+ unit?: string;
75230
+ unit_price_cents?: number;
75231
+ };
75232
+ Update: {
75233
+ created_at?: string;
75234
+ description?: string;
75235
+ id?: string;
75236
+ invoice_id?: string;
75237
+ kind?: string;
75238
+ quantity?: number;
75239
+ sort_order?: number;
75240
+ source_line_ref?: string | null;
75241
+ total_cents?: number;
75242
+ unit?: string;
75243
+ unit_price_cents?: number;
75244
+ };
75245
+ Relationships: [{
75246
+ foreignKeyName: "invoice_items_invoice_id_fkey";
75247
+ columns: ["invoice_id"];
75248
+ isOneToOne: false;
75249
+ referencedRelation: "invoices";
75250
+ referencedColumns: ["id"];
75251
+ }, {
75252
+ foreignKeyName: "invoice_items_invoice_id_fkey";
75253
+ columns: ["invoice_id"];
75254
+ isOneToOne: false;
75255
+ referencedRelation: "uren_facturen";
75256
+ referencedColumns: ["id"];
75257
+ }];
75258
+ };
74038
75259
  invoice_post_idempotency: {
74039
75260
  Row: {
75261
+ administration_code: string;
74040
75262
  client_request_id: string;
74041
75263
  completed_at: string | null;
74042
75264
  created_at: string;
@@ -74046,6 +75268,7 @@ export declare const getOrderInvoiceMoment: import("@tanstack/start-client-core"
74046
75268
  user_id: string;
74047
75269
  };
74048
75270
  Insert: {
75271
+ administration_code?: string;
74049
75272
  client_request_id: string;
74050
75273
  completed_at?: string | null;
74051
75274
  created_at?: string;
@@ -74055,6 +75278,7 @@ export declare const getOrderInvoiceMoment: import("@tanstack/start-client-core"
74055
75278
  user_id: string;
74056
75279
  };
74057
75280
  Update: {
75281
+ administration_code?: string;
74058
75282
  client_request_id?: string;
74059
75283
  completed_at?: string | null;
74060
75284
  created_at?: string;
@@ -74260,6 +75484,75 @@ export declare const getOrderInvoiceMoment: import("@tanstack/start-client-core"
74260
75484
  };
74261
75485
  Relationships: [];
74262
75486
  };
75487
+ invoices: {
75488
+ Row: {
75489
+ created_at: string;
75490
+ created_by: string | null;
75491
+ customer_id: string | null;
75492
+ customer_name: string | null;
75493
+ due_date: string | null;
75494
+ id: string;
75495
+ invoice_date: string;
75496
+ invoice_number: string | null;
75497
+ note: string | null;
75498
+ source_number: string | null;
75499
+ source_ref: string | null;
75500
+ source_type: string;
75501
+ status: string;
75502
+ subtotal_cents: number;
75503
+ total_cents: number;
75504
+ updated_at: string;
75505
+ vat_cents: number;
75506
+ vat_rate: number;
75507
+ };
75508
+ Insert: {
75509
+ created_at?: string;
75510
+ created_by?: string | null;
75511
+ customer_id?: string | null;
75512
+ customer_name?: string | null;
75513
+ due_date?: string | null;
75514
+ id?: string;
75515
+ invoice_date?: string;
75516
+ invoice_number?: string | null;
75517
+ note?: string | null;
75518
+ source_number?: string | null;
75519
+ source_ref?: string | null;
75520
+ source_type?: string;
75521
+ status?: string;
75522
+ subtotal_cents?: number;
75523
+ total_cents?: number;
75524
+ updated_at?: string;
75525
+ vat_cents?: number;
75526
+ vat_rate?: number;
75527
+ };
75528
+ Update: {
75529
+ created_at?: string;
75530
+ created_by?: string | null;
75531
+ customer_id?: string | null;
75532
+ customer_name?: string | null;
75533
+ due_date?: string | null;
75534
+ id?: string;
75535
+ invoice_date?: string;
75536
+ invoice_number?: string | null;
75537
+ note?: string | null;
75538
+ source_number?: string | null;
75539
+ source_ref?: string | null;
75540
+ source_type?: string;
75541
+ status?: string;
75542
+ subtotal_cents?: number;
75543
+ total_cents?: number;
75544
+ updated_at?: string;
75545
+ vat_cents?: number;
75546
+ vat_rate?: number;
75547
+ };
75548
+ Relationships: [{
75549
+ foreignKeyName: "invoices_customer_id_fkey";
75550
+ columns: ["customer_id"];
75551
+ isOneToOne: false;
75552
+ referencedRelation: "itk_customers";
75553
+ referencedColumns: ["id"];
75554
+ }];
75555
+ };
74263
75556
  itk_contact_persons: {
74264
75557
  Row: {
74265
75558
  created_at: string;
@@ -75607,6 +76900,9 @@ export declare const getOrderInvoiceMoment: import("@tanstack/start-client-core"
75607
76900
  id: string;
75608
76901
  last_error: string | null;
75609
76902
  last_error_at: string | null;
76903
+ last_error_code: string | null;
76904
+ last_gateway_status: number | null;
76905
+ last_response: import("../integrations/supabase/types").Json | null;
75610
76906
  last_sent_hash: string | null;
75611
76907
  locked_by: string | null;
75612
76908
  locked_until: string | null;
@@ -75627,6 +76923,9 @@ export declare const getOrderInvoiceMoment: import("@tanstack/start-client-core"
75627
76923
  id?: string;
75628
76924
  last_error?: string | null;
75629
76925
  last_error_at?: string | null;
76926
+ last_error_code?: string | null;
76927
+ last_gateway_status?: number | null;
76928
+ last_response?: import("../integrations/supabase/types").Json | null;
75630
76929
  last_sent_hash?: string | null;
75631
76930
  locked_by?: string | null;
75632
76931
  locked_until?: string | null;
@@ -75647,6 +76946,9 @@ export declare const getOrderInvoiceMoment: import("@tanstack/start-client-core"
75647
76946
  id?: string;
75648
76947
  last_error?: string | null;
75649
76948
  last_error_at?: string | null;
76949
+ last_error_code?: string | null;
76950
+ last_gateway_status?: number | null;
76951
+ last_response?: import("../integrations/supabase/types").Json | null;
75650
76952
  last_sent_hash?: string | null;
75651
76953
  locked_by?: string | null;
75652
76954
  locked_until?: string | null;
@@ -77200,6 +78502,7 @@ export declare const getOrderInvoiceMoment: import("@tanstack/start-client-core"
77200
78502
  enforce: boolean;
77201
78503
  is_active: boolean;
77202
78504
  last_seen_at: string;
78505
+ missing_count: number;
77203
78506
  module_id: string;
77204
78507
  name: string;
77205
78508
  shell_id: string | null;
@@ -77210,6 +78513,7 @@ export declare const getOrderInvoiceMoment: import("@tanstack/start-client-core"
77210
78513
  enforce?: boolean;
77211
78514
  is_active?: boolean;
77212
78515
  last_seen_at?: string;
78516
+ missing_count?: number;
77213
78517
  module_id: string;
77214
78518
  name: string;
77215
78519
  shell_id?: string | null;
@@ -77220,6 +78524,7 @@ export declare const getOrderInvoiceMoment: import("@tanstack/start-client-core"
77220
78524
  enforce?: boolean;
77221
78525
  is_active?: boolean;
77222
78526
  last_seen_at?: string;
78527
+ missing_count?: number;
77223
78528
  module_id?: string;
77224
78529
  name?: string;
77225
78530
  shell_id?: string | null;
@@ -78219,6 +79524,7 @@ export declare const getOrderInvoiceMoment: import("@tanstack/start-client-core"
78219
79524
  };
78220
79525
  order_invoice_links: {
78221
79526
  Row: {
79527
+ administration_code: string | null;
78222
79528
  attempts: number;
78223
79529
  created_at: string;
78224
79530
  error_message: string | null;
@@ -78231,6 +79537,7 @@ export declare const getOrderInvoiceMoment: import("@tanstack/start-client-core"
78231
79537
  updated_at: string;
78232
79538
  };
78233
79539
  Insert: {
79540
+ administration_code?: string | null;
78234
79541
  attempts?: number;
78235
79542
  created_at?: string;
78236
79543
  error_message?: string | null;
@@ -78243,6 +79550,7 @@ export declare const getOrderInvoiceMoment: import("@tanstack/start-client-core"
78243
79550
  updated_at?: string;
78244
79551
  };
78245
79552
  Update: {
79553
+ administration_code?: string | null;
78246
79554
  attempts?: number;
78247
79555
  created_at?: string;
78248
79556
  error_message?: string | null;
@@ -79408,6 +80716,27 @@ export declare const getOrderInvoiceMoment: import("@tanstack/start-client-core"
79408
80716
  referencedColumns: ["id"];
79409
80717
  }];
79410
80718
  };
80719
+ pick_sync_state: {
80720
+ Row: {
80721
+ id: boolean;
80722
+ last_cleanup_at: string | null;
80723
+ last_sync_at: string | null;
80724
+ updated_at: string;
80725
+ };
80726
+ Insert: {
80727
+ id?: boolean;
80728
+ last_cleanup_at?: string | null;
80729
+ last_sync_at?: string | null;
80730
+ updated_at?: string;
80731
+ };
80732
+ Update: {
80733
+ id?: boolean;
80734
+ last_cleanup_at?: string | null;
80735
+ last_sync_at?: string | null;
80736
+ updated_at?: string;
80737
+ };
80738
+ Relationships: [];
80739
+ };
79411
80740
  pick_task_document_types: {
79412
80741
  Row: {
79413
80742
  created_at: string;
@@ -79690,6 +81019,7 @@ export declare const getOrderInvoiceMoment: import("@tanstack/start-client-core"
79690
81019
  gebruiker_id: string | null;
79691
81020
  gebruiker_naam: string;
79692
81021
  gestart_op: string | null;
81022
+ herkomst: string | null;
79693
81023
  id: string;
79694
81024
  idempotentie_sleutel: string | null;
79695
81025
  is_herprint: boolean;
@@ -79719,6 +81049,7 @@ export declare const getOrderInvoiceMoment: import("@tanstack/start-client-core"
79719
81049
  gebruiker_id?: string | null;
79720
81050
  gebruiker_naam?: string;
79721
81051
  gestart_op?: string | null;
81052
+ herkomst?: string | null;
79722
81053
  id?: string;
79723
81054
  idempotentie_sleutel?: string | null;
79724
81055
  is_herprint?: boolean;
@@ -79748,6 +81079,7 @@ export declare const getOrderInvoiceMoment: import("@tanstack/start-client-core"
79748
81079
  gebruiker_id?: string | null;
79749
81080
  gebruiker_naam?: string;
79750
81081
  gestart_op?: string | null;
81082
+ herkomst?: string | null;
79751
81083
  id?: string;
79752
81084
  idempotentie_sleutel?: string | null;
79753
81085
  is_herprint?: boolean;
@@ -82752,12 +84084,16 @@ export declare const getOrderInvoiceMoment: import("@tanstack/start-client-core"
82752
84084
  company_name: string | null;
82753
84085
  connected_at: string | null;
82754
84086
  created_at: string;
84087
+ disconnected_at: string | null;
82755
84088
  environment: string;
82756
84089
  id: string;
84090
+ initial_sync_completed_at: string | null;
84091
+ initial_sync_started_at: string | null;
82757
84092
  is_active: boolean;
82758
84093
  label: string | null;
82759
84094
  office_code: string | null;
82760
84095
  redirect_uri: string | null;
84096
+ superseded_at: string | null;
82761
84097
  updated_at: string;
82762
84098
  user_id: string;
82763
84099
  };
@@ -82768,12 +84104,16 @@ export declare const getOrderInvoiceMoment: import("@tanstack/start-client-core"
82768
84104
  company_name?: string | null;
82769
84105
  connected_at?: string | null;
82770
84106
  created_at?: string;
84107
+ disconnected_at?: string | null;
82771
84108
  environment: string;
82772
84109
  id?: string;
84110
+ initial_sync_completed_at?: string | null;
84111
+ initial_sync_started_at?: string | null;
82773
84112
  is_active?: boolean;
82774
84113
  label?: string | null;
82775
84114
  office_code?: string | null;
82776
84115
  redirect_uri?: string | null;
84116
+ superseded_at?: string | null;
82777
84117
  updated_at?: string;
82778
84118
  user_id: string;
82779
84119
  };
@@ -82784,12 +84124,16 @@ export declare const getOrderInvoiceMoment: import("@tanstack/start-client-core"
82784
84124
  company_name?: string | null;
82785
84125
  connected_at?: string | null;
82786
84126
  created_at?: string;
84127
+ disconnected_at?: string | null;
82787
84128
  environment?: string;
82788
84129
  id?: string;
84130
+ initial_sync_completed_at?: string | null;
84131
+ initial_sync_started_at?: string | null;
82789
84132
  is_active?: boolean;
82790
84133
  label?: string | null;
82791
84134
  office_code?: string | null;
82792
84135
  redirect_uri?: string | null;
84136
+ superseded_at?: string | null;
82793
84137
  updated_at?: string;
82794
84138
  user_id?: string;
82795
84139
  };
@@ -82849,6 +84193,7 @@ export declare const getOrderInvoiceMoment: import("@tanstack/start-client-core"
82849
84193
  twinfield_customers: {
82850
84194
  Row: {
82851
84195
  address: string | null;
84196
+ administration_code: string;
82852
84197
  city: string | null;
82853
84198
  country: string | null;
82854
84199
  created_at: string;
@@ -82868,6 +84213,7 @@ export declare const getOrderInvoiceMoment: import("@tanstack/start-client-core"
82868
84213
  };
82869
84214
  Insert: {
82870
84215
  address?: string | null;
84216
+ administration_code?: string;
82871
84217
  city?: string | null;
82872
84218
  country?: string | null;
82873
84219
  created_at?: string;
@@ -82887,6 +84233,7 @@ export declare const getOrderInvoiceMoment: import("@tanstack/start-client-core"
82887
84233
  };
82888
84234
  Update: {
82889
84235
  address?: string | null;
84236
+ administration_code?: string;
82890
84237
  city?: string | null;
82891
84238
  country?: string | null;
82892
84239
  created_at?: string;
@@ -83100,7 +84447,9 @@ export declare const getOrderInvoiceMoment: import("@tanstack/start-client-core"
83100
84447
  };
83101
84448
  twinfield_invoice_settings: {
83102
84449
  Row: {
84450
+ administration_code: string | null;
83103
84451
  auto_invoice_enabled: boolean;
84452
+ auto_invoice_start_date: string | null;
83104
84453
  auto_invoice_trigger_statuses: string[];
83105
84454
  created_at: string;
83106
84455
  debtor_gl_account: string;
@@ -83114,15 +84463,19 @@ export declare const getOrderInvoiceMoment: import("@tanstack/start-client-core"
83114
84463
  invoice_enabled_fo: boolean;
83115
84464
  invoice_enabled_ho: boolean;
83116
84465
  invoice_enabled_mo: boolean;
84466
+ needs_review: boolean;
83117
84467
  payment_gl_account: string;
83118
84468
  payment_journal_code: string;
84469
+ settings_confirmed_at: string | null;
83119
84470
  updated_at: string;
83120
84471
  user_id: string;
83121
84472
  vat_code_eu_reverse: string | null;
83122
84473
  vat_code_export: string | null;
83123
84474
  };
83124
84475
  Insert: {
84476
+ administration_code?: string | null;
83125
84477
  auto_invoice_enabled?: boolean;
84478
+ auto_invoice_start_date?: string | null;
83126
84479
  auto_invoice_trigger_statuses?: string[];
83127
84480
  created_at?: string;
83128
84481
  debtor_gl_account?: string;
@@ -83136,15 +84489,19 @@ export declare const getOrderInvoiceMoment: import("@tanstack/start-client-core"
83136
84489
  invoice_enabled_fo?: boolean;
83137
84490
  invoice_enabled_ho?: boolean;
83138
84491
  invoice_enabled_mo?: boolean;
84492
+ needs_review?: boolean;
83139
84493
  payment_gl_account?: string;
83140
84494
  payment_journal_code?: string;
84495
+ settings_confirmed_at?: string | null;
83141
84496
  updated_at?: string;
83142
84497
  user_id: string;
83143
84498
  vat_code_eu_reverse?: string | null;
83144
84499
  vat_code_export?: string | null;
83145
84500
  };
83146
84501
  Update: {
84502
+ administration_code?: string | null;
83147
84503
  auto_invoice_enabled?: boolean;
84504
+ auto_invoice_start_date?: string | null;
83148
84505
  auto_invoice_trigger_statuses?: string[];
83149
84506
  created_at?: string;
83150
84507
  debtor_gl_account?: string;
@@ -83158,8 +84515,10 @@ export declare const getOrderInvoiceMoment: import("@tanstack/start-client-core"
83158
84515
  invoice_enabled_fo?: boolean;
83159
84516
  invoice_enabled_ho?: boolean;
83160
84517
  invoice_enabled_mo?: boolean;
84518
+ needs_review?: boolean;
83161
84519
  payment_gl_account?: string;
83162
84520
  payment_journal_code?: string;
84521
+ settings_confirmed_at?: string | null;
83163
84522
  updated_at?: string;
83164
84523
  user_id?: string;
83165
84524
  vat_code_eu_reverse?: string | null;
@@ -83764,114 +85123,6 @@ export declare const getOrderInvoiceMoment: import("@tanstack/start-client-core"
83764
85123
  };
83765
85124
  Relationships: [];
83766
85125
  };
83767
- uren_facturen: {
83768
- Row: {
83769
- created_at: string;
83770
- created_by: string | null;
83771
- customer_id: string | null;
83772
- customer_name: string | null;
83773
- id: string;
83774
- invoice_number: string | null;
83775
- note: string | null;
83776
- status: string;
83777
- total_excl_cents: number;
83778
- total_incl_cents: number;
83779
- updated_at: string;
83780
- vat_cents: number;
83781
- vat_percentage: number;
83782
- werkbon_id: string | null;
83783
- };
83784
- Insert: {
83785
- created_at?: string;
83786
- created_by?: string | null;
83787
- customer_id?: string | null;
83788
- customer_name?: string | null;
83789
- id?: string;
83790
- invoice_number?: string | null;
83791
- note?: string | null;
83792
- status?: string;
83793
- total_excl_cents?: number;
83794
- total_incl_cents?: number;
83795
- updated_at?: string;
83796
- vat_cents?: number;
83797
- vat_percentage?: number;
83798
- werkbon_id?: string | null;
83799
- };
83800
- Update: {
83801
- created_at?: string;
83802
- created_by?: string | null;
83803
- customer_id?: string | null;
83804
- customer_name?: string | null;
83805
- id?: string;
83806
- invoice_number?: string | null;
83807
- note?: string | null;
83808
- status?: string;
83809
- total_excl_cents?: number;
83810
- total_incl_cents?: number;
83811
- updated_at?: string;
83812
- vat_cents?: number;
83813
- vat_percentage?: number;
83814
- werkbon_id?: string | null;
83815
- };
83816
- Relationships: [{
83817
- foreignKeyName: "uren_facturen_customer_id_fkey";
83818
- columns: ["customer_id"];
83819
- isOneToOne: false;
83820
- referencedRelation: "itk_customers";
83821
- referencedColumns: ["id"];
83822
- }, {
83823
- foreignKeyName: "uren_facturen_werkbon_id_fkey";
83824
- columns: ["werkbon_id"];
83825
- isOneToOne: true;
83826
- referencedRelation: "werkbonnen";
83827
- referencedColumns: ["id"];
83828
- }];
83829
- };
83830
- uren_factuur_regels: {
83831
- Row: {
83832
- created_at: string;
83833
- description: string;
83834
- factuur_id: string;
83835
- id: string;
83836
- kind: string | null;
83837
- quantity: number;
83838
- sort_order: number;
83839
- total_cents: number;
83840
- unit: string;
83841
- unit_price_cents: number;
83842
- };
83843
- Insert: {
83844
- created_at?: string;
83845
- description: string;
83846
- factuur_id: string;
83847
- id?: string;
83848
- kind?: string | null;
83849
- quantity?: number;
83850
- sort_order?: number;
83851
- total_cents?: number;
83852
- unit?: string;
83853
- unit_price_cents?: number;
83854
- };
83855
- Update: {
83856
- created_at?: string;
83857
- description?: string;
83858
- factuur_id?: string;
83859
- id?: string;
83860
- kind?: string | null;
83861
- quantity?: number;
83862
- sort_order?: number;
83863
- total_cents?: number;
83864
- unit?: string;
83865
- unit_price_cents?: number;
83866
- };
83867
- Relationships: [{
83868
- foreignKeyName: "uren_factuur_regels_factuur_id_fkey";
83869
- columns: ["factuur_id"];
83870
- isOneToOne: false;
83871
- referencedRelation: "uren_facturen";
83872
- referencedColumns: ["id"];
83873
- }];
83874
- };
83875
85126
  uren_offerte_regels: {
83876
85127
  Row: {
83877
85128
  created_at: string;
@@ -85125,6 +86376,9 @@ export declare const getOrderInvoiceMoment: import("@tanstack/start-client-core"
85125
86376
  scheduled_end_time: string | null;
85126
86377
  scheduled_start_time: string | null;
85127
86378
  sequence_number: number;
86379
+ signature_accepted_at: string | null;
86380
+ signature_by_user_id: string | null;
86381
+ signature_name: string | null;
85128
86382
  source_email_meta: import("../integrations/supabase/types").Json | null;
85129
86383
  source_mailbox_message_id: string | null;
85130
86384
  source_pdf_path: string | null;
@@ -85160,6 +86414,9 @@ export declare const getOrderInvoiceMoment: import("@tanstack/start-client-core"
85160
86414
  scheduled_end_time?: string | null;
85161
86415
  scheduled_start_time?: string | null;
85162
86416
  sequence_number: number;
86417
+ signature_accepted_at?: string | null;
86418
+ signature_by_user_id?: string | null;
86419
+ signature_name?: string | null;
85163
86420
  source_email_meta?: import("../integrations/supabase/types").Json | null;
85164
86421
  source_mailbox_message_id?: string | null;
85165
86422
  source_pdf_path?: string | null;
@@ -85195,6 +86452,9 @@ export declare const getOrderInvoiceMoment: import("@tanstack/start-client-core"
85195
86452
  scheduled_end_time?: string | null;
85196
86453
  scheduled_start_time?: string | null;
85197
86454
  sequence_number?: number;
86455
+ signature_accepted_at?: string | null;
86456
+ signature_by_user_id?: string | null;
86457
+ signature_name?: string | null;
85198
86458
  source_email_meta?: import("../integrations/supabase/types").Json | null;
85199
86459
  source_mailbox_message_id?: string | null;
85200
86460
  source_pdf_path?: string | null;
@@ -85711,6 +86971,114 @@ export declare const getOrderInvoiceMoment: import("@tanstack/start-client-core"
85711
86971
  };
85712
86972
  Relationships: [];
85713
86973
  };
86974
+ uren_facturen: {
86975
+ Row: {
86976
+ created_at: string | null;
86977
+ created_by: string | null;
86978
+ customer_id: string | null;
86979
+ customer_name: string | null;
86980
+ id: string | null;
86981
+ invoice_number: string | null;
86982
+ note: string | null;
86983
+ status: string | null;
86984
+ total_excl_cents: number | null;
86985
+ total_incl_cents: number | null;
86986
+ updated_at: string | null;
86987
+ vat_cents: number | null;
86988
+ vat_percentage: number | null;
86989
+ werkbon_id: string | null;
86990
+ };
86991
+ Insert: {
86992
+ created_at?: string | null;
86993
+ created_by?: string | null;
86994
+ customer_id?: string | null;
86995
+ customer_name?: string | null;
86996
+ id?: string | null;
86997
+ invoice_number?: string | null;
86998
+ note?: string | null;
86999
+ status?: string | null;
87000
+ total_excl_cents?: number | null;
87001
+ total_incl_cents?: number | null;
87002
+ updated_at?: string | null;
87003
+ vat_cents?: number | null;
87004
+ vat_percentage?: number | null;
87005
+ werkbon_id?: never;
87006
+ };
87007
+ Update: {
87008
+ created_at?: string | null;
87009
+ created_by?: string | null;
87010
+ customer_id?: string | null;
87011
+ customer_name?: string | null;
87012
+ id?: string | null;
87013
+ invoice_number?: string | null;
87014
+ note?: string | null;
87015
+ status?: string | null;
87016
+ total_excl_cents?: number | null;
87017
+ total_incl_cents?: number | null;
87018
+ updated_at?: string | null;
87019
+ vat_cents?: number | null;
87020
+ vat_percentage?: number | null;
87021
+ werkbon_id?: never;
87022
+ };
87023
+ Relationships: [{
87024
+ foreignKeyName: "invoices_customer_id_fkey";
87025
+ columns: ["customer_id"];
87026
+ isOneToOne: false;
87027
+ referencedRelation: "itk_customers";
87028
+ referencedColumns: ["id"];
87029
+ }];
87030
+ };
87031
+ uren_factuur_regels: {
87032
+ Row: {
87033
+ created_at: string | null;
87034
+ description: string | null;
87035
+ factuur_id: string | null;
87036
+ id: string | null;
87037
+ kind: string | null;
87038
+ quantity: number | null;
87039
+ sort_order: number | null;
87040
+ total_cents: number | null;
87041
+ unit: string | null;
87042
+ unit_price_cents: number | null;
87043
+ };
87044
+ Insert: {
87045
+ created_at?: string | null;
87046
+ description?: string | null;
87047
+ factuur_id?: string | null;
87048
+ id?: string | null;
87049
+ kind?: string | null;
87050
+ quantity?: number | null;
87051
+ sort_order?: number | null;
87052
+ total_cents?: number | null;
87053
+ unit?: string | null;
87054
+ unit_price_cents?: number | null;
87055
+ };
87056
+ Update: {
87057
+ created_at?: string | null;
87058
+ description?: string | null;
87059
+ factuur_id?: string | null;
87060
+ id?: string | null;
87061
+ kind?: string | null;
87062
+ quantity?: number | null;
87063
+ sort_order?: number | null;
87064
+ total_cents?: number | null;
87065
+ unit?: string | null;
87066
+ unit_price_cents?: number | null;
87067
+ };
87068
+ Relationships: [{
87069
+ foreignKeyName: "invoice_items_invoice_id_fkey";
87070
+ columns: ["factuur_id"];
87071
+ isOneToOne: false;
87072
+ referencedRelation: "invoices";
87073
+ referencedColumns: ["id"];
87074
+ }, {
87075
+ foreignKeyName: "invoice_items_invoice_id_fkey";
87076
+ columns: ["factuur_id"];
87077
+ isOneToOne: false;
87078
+ referencedRelation: "uren_facturen";
87079
+ referencedColumns: ["id"];
87080
+ }];
87081
+ };
85714
87082
  v_external_customers_exact: {
85715
87083
  Row: {
85716
87084
  account_number: string | null;
@@ -86216,6 +87584,7 @@ export declare const getOrderInvoiceMoment: import("@tanstack/start-client-core"
86216
87584
  gebruiker_id: string | null;
86217
87585
  gebruiker_naam: string;
86218
87586
  gestart_op: string | null;
87587
+ herkomst: string | null;
86219
87588
  id: string;
86220
87589
  idempotentie_sleutel: string | null;
86221
87590
  is_herprint: boolean;
@@ -86336,6 +87705,7 @@ export declare const getOrderInvoiceMoment: import("@tanstack/start-client-core"
86336
87705
  gebruiker_id: string | null;
86337
87706
  gebruiker_naam: string;
86338
87707
  gestart_op: string | null;
87708
+ herkomst: string | null;
86339
87709
  id: string;
86340
87710
  idempotentie_sleutel: string | null;
86341
87711
  is_herprint: boolean;
@@ -86937,6 +88307,46 @@ export declare const getOrderInvoiceMoment: import("@tanstack/start-client-core"
86937
88307
  Args: never;
86938
88308
  Returns: boolean;
86939
88309
  };
88310
+ invoice_create_from_source: {
88311
+ Args: {
88312
+ _payload?: import("../integrations/supabase/types").Json;
88313
+ _source_id: string;
88314
+ _source_type: string;
88315
+ };
88316
+ Returns: import("../integrations/supabase/types").Json;
88317
+ };
88318
+ invoice_get_billable_lines: {
88319
+ Args: {
88320
+ _invoice_id: string;
88321
+ };
88322
+ Returns: import("../integrations/supabase/types").Json;
88323
+ };
88324
+ invoice_get_for_source: {
88325
+ Args: {
88326
+ _source_id: string;
88327
+ _source_type: string;
88328
+ };
88329
+ Returns: import("../integrations/supabase/types").Json;
88330
+ };
88331
+ invoice_get_summary: {
88332
+ Args: {
88333
+ _invoice_id: string;
88334
+ };
88335
+ Returns: import("../integrations/supabase/types").Json;
88336
+ };
88337
+ invoice_list_sources: {
88338
+ Args: {
88339
+ _limit?: number;
88340
+ _source_type?: string;
88341
+ };
88342
+ Returns: import("../integrations/supabase/types").Json;
88343
+ };
88344
+ invoice_recalc_totals: {
88345
+ Args: {
88346
+ _invoice_id: string;
88347
+ };
88348
+ Returns: import("../integrations/supabase/types").Json;
88349
+ };
86940
88350
  is_authenticated: {
86941
88351
  Args: never;
86942
88352
  Returns: boolean;
@@ -87005,6 +88415,29 @@ export declare const getOrderInvoiceMoment: import("@tanstack/start-client-core"
87005
88415
  roles: string[];
87006
88416
  }[];
87007
88417
  };
88418
+ list_monteur_absences: {
88419
+ Args: {
88420
+ _from: string;
88421
+ _to: string;
88422
+ };
88423
+ Returns: {
88424
+ absence_date: string;
88425
+ end_time: string;
88426
+ full_day: boolean;
88427
+ kind: string;
88428
+ monteur_id: string;
88429
+ start_time: string;
88430
+ }[];
88431
+ };
88432
+ list_monteurs: {
88433
+ Args: never;
88434
+ Returns: {
88435
+ avatar_url: string;
88436
+ display_name: string;
88437
+ email: string;
88438
+ id: string;
88439
+ }[];
88440
+ };
87008
88441
  list_my_planning_items: {
87009
88442
  Args: {
87010
88443
  _from: string;
@@ -87416,6 +88849,23 @@ export declare const getOrderInvoiceMoment: import("@tanstack/start-client-core"
87416
88849
  };
87417
88850
  Returns: string;
87418
88851
  };
88852
+ logistics_floriday_finish_push_v2: {
88853
+ Args: {
88854
+ _error?: string;
88855
+ _error_code?: string;
88856
+ _fulfillment_order_id?: string;
88857
+ _gateway_status?: number;
88858
+ _id: string;
88859
+ _max_age_hours?: number;
88860
+ _max_attempts?: number;
88861
+ _ok: boolean;
88862
+ _permanent?: boolean;
88863
+ _response?: import("../integrations/supabase/types").Json;
88864
+ _revision: number;
88865
+ _sent_hash?: string;
88866
+ };
88867
+ Returns: string;
88868
+ };
87419
88869
  logistics_floriday_prune_pushes: {
87420
88870
  Args: {
87421
88871
  _days?: number;
@@ -87958,6 +89408,13 @@ export declare const getOrderInvoiceMoment: import("@tanstack/start-client-core"
87958
89408
  isSetofReturn: false;
87959
89409
  };
87960
89410
  };
89411
+ pick_cleanup_maintenance: {
89412
+ Args: {
89413
+ _heartbeat_hours?: number;
89414
+ _log_days?: number;
89415
+ };
89416
+ Returns: import("../integrations/supabase/types").Json;
89417
+ };
87961
89418
  pick_complete_print: {
87962
89419
  Args: {
87963
89420
  _printer_id: string;
@@ -88009,6 +89466,14 @@ export declare const getOrderInvoiceMoment: import("@tanstack/start-client-core"
88009
89466
  Args: never;
88010
89467
  Returns: string;
88011
89468
  };
89469
+ pick_day_counts: {
89470
+ Args: {
89471
+ _pick_day?: string;
89472
+ _screen_id?: string;
89473
+ _station_id?: string;
89474
+ };
89475
+ Returns: import("../integrations/supabase/types").Json;
89476
+ };
88012
89477
  pick_document_layout_data: {
88013
89478
  Args: {
88014
89479
  _layout_id: string;
@@ -88046,6 +89511,14 @@ export declare const getOrderInvoiceMoment: import("@tanstack/start-client-core"
88046
89511
  };
88047
89512
  Returns: undefined;
88048
89513
  };
89514
+ pick_reprint_document: {
89515
+ Args: {
89516
+ _queue_item_id: string;
89517
+ _session_id: string;
89518
+ _throttle_seconds?: number;
89519
+ };
89520
+ Returns: string;
89521
+ };
88049
89522
  pick_reset_print: {
88050
89523
  Args: {
88051
89524
  _queue_item_id: string;
@@ -88111,6 +89584,12 @@ export declare const getOrderInvoiceMoment: import("@tanstack/start-client-core"
88111
89584
  };
88112
89585
  Returns: string;
88113
89586
  };
89587
+ pick_sync_queue_throttled: {
89588
+ Args: {
89589
+ _min_seconds?: number;
89590
+ };
89591
+ Returns: import("../integrations/supabase/types").Json;
89592
+ };
88114
89593
  pickstation_get_orders_raw: {
88115
89594
  Args: never;
88116
89595
  Returns: import("../integrations/supabase/types").Json;
@@ -88256,6 +89735,12 @@ export declare const getOrderInvoiceMoment: import("@tanstack/start-client-core"
88256
89735
  };
88257
89736
  Returns: boolean;
88258
89737
  };
89738
+ release_stale_order_invoice_links: {
89739
+ Args: {
89740
+ _minutes?: number;
89741
+ };
89742
+ Returns: number;
89743
+ };
88259
89744
  reorder_customer_price_groups: {
88260
89745
  Args: {
88261
89746
  _ids: string[];
@@ -88774,6 +90259,20 @@ export declare const getOrderInvoiceMoment: import("@tanstack/start-client-core"
88774
90259
  };
88775
90260
  Returns: undefined;
88776
90261
  };
90262
+ twinfield_deactivate_connection: {
90263
+ Args: {
90264
+ p_connection_id: string;
90265
+ p_user_id: string;
90266
+ };
90267
+ Returns: import("../integrations/supabase/types").Json;
90268
+ };
90269
+ twinfield_handle_administration_change: {
90270
+ Args: {
90271
+ _administration_code: string;
90272
+ _user_id: string;
90273
+ };
90274
+ Returns: undefined;
90275
+ };
88777
90276
  twinfield_prune_push_queue: {
88778
90277
  Args: never;
88779
90278
  Returns: number;
@@ -88793,10 +90292,11 @@ export declare const getOrderInvoiceMoment: import("@tanstack/start-client-core"
88793
90292
  p_company_name?: string;
88794
90293
  p_environment: string;
88795
90294
  p_office_code?: string;
90295
+ p_reset_sync?: boolean;
88796
90296
  p_status?: string;
88797
90297
  p_user_id: string;
88798
90298
  };
88799
- Returns: string;
90299
+ Returns: import("../integrations/supabase/types").Json;
88800
90300
  };
88801
90301
  upsert_auto_fulfillment_log: {
88802
90302
  Args: {