@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
@@ -2773,6 +2773,42 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
2773
2773
  };
2774
2774
  Relationships: [];
2775
2775
  };
2776
+ document_bronregels: {
2777
+ Row: {
2778
+ bron: string;
2779
+ created_at: string;
2780
+ documenttype: string;
2781
+ herkomst: string;
2782
+ id: string;
2783
+ layout_id: string | null;
2784
+ updated_at: string;
2785
+ };
2786
+ Insert: {
2787
+ bron?: string;
2788
+ created_at?: string;
2789
+ documenttype: string;
2790
+ herkomst: string;
2791
+ id?: string;
2792
+ layout_id?: string | null;
2793
+ updated_at?: string;
2794
+ };
2795
+ Update: {
2796
+ bron?: string;
2797
+ created_at?: string;
2798
+ documenttype?: string;
2799
+ herkomst?: string;
2800
+ id?: string;
2801
+ layout_id?: string | null;
2802
+ updated_at?: string;
2803
+ };
2804
+ Relationships: [{
2805
+ foreignKeyName: "document_bronregels_layout_id_fkey";
2806
+ columns: ["layout_id"];
2807
+ isOneToOne: false;
2808
+ referencedRelation: "document_layouts";
2809
+ referencedColumns: ["id"];
2810
+ }];
2811
+ };
2776
2812
  document_formaat_printers: {
2777
2813
  Row: {
2778
2814
  created_at: string;
@@ -3050,6 +3086,7 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
3050
3086
  Row: {
3051
3087
  actief: boolean;
3052
3088
  breedte_mm: number;
3089
+ bron: string;
3053
3090
  config: import("../integrations/supabase/types").Json;
3054
3091
  created_at: string;
3055
3092
  created_by: string | null;
@@ -3067,12 +3104,14 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
3067
3104
  orientatie: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_orientation"];
3068
3105
  page_settings: import("../integrations/supabase/types").Json;
3069
3106
  papierformaat: string;
3107
+ systeem: boolean;
3070
3108
  thumbnail_url: string | null;
3071
3109
  updated_at: string;
3072
3110
  };
3073
3111
  Insert: {
3074
3112
  actief?: boolean;
3075
3113
  breedte_mm?: number;
3114
+ bron?: string;
3076
3115
  config?: import("../integrations/supabase/types").Json;
3077
3116
  created_at?: string;
3078
3117
  created_by?: string | null;
@@ -3090,12 +3129,14 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
3090
3129
  orientatie?: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_orientation"];
3091
3130
  page_settings?: import("../integrations/supabase/types").Json;
3092
3131
  papierformaat?: string;
3132
+ systeem?: boolean;
3093
3133
  thumbnail_url?: string | null;
3094
3134
  updated_at?: string;
3095
3135
  };
3096
3136
  Update: {
3097
3137
  actief?: boolean;
3098
3138
  breedte_mm?: number;
3139
+ bron?: string;
3099
3140
  config?: import("../integrations/supabase/types").Json;
3100
3141
  created_at?: string;
3101
3142
  created_by?: string | null;
@@ -3113,11 +3154,48 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
3113
3154
  orientatie?: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_orientation"];
3114
3155
  page_settings?: import("../integrations/supabase/types").Json;
3115
3156
  papierformaat?: string;
3157
+ systeem?: boolean;
3116
3158
  thumbnail_url?: string | null;
3117
3159
  updated_at?: string;
3118
3160
  };
3119
3161
  Relationships: [];
3120
3162
  };
3163
+ document_werkplek_printers: {
3164
+ Row: {
3165
+ created_at: string;
3166
+ documenttype: string;
3167
+ id: string;
3168
+ papierformaat: string | null;
3169
+ printer_id: string | null;
3170
+ updated_at: string;
3171
+ werkplek: string;
3172
+ };
3173
+ Insert: {
3174
+ created_at?: string;
3175
+ documenttype: string;
3176
+ id?: string;
3177
+ papierformaat?: string | null;
3178
+ printer_id?: string | null;
3179
+ updated_at?: string;
3180
+ werkplek: string;
3181
+ };
3182
+ Update: {
3183
+ created_at?: string;
3184
+ documenttype?: string;
3185
+ id?: string;
3186
+ papierformaat?: string | null;
3187
+ printer_id?: string | null;
3188
+ updated_at?: string;
3189
+ werkplek?: string;
3190
+ };
3191
+ Relationships: [{
3192
+ foreignKeyName: "document_werkplek_printers_printer_id_fkey";
3193
+ columns: ["printer_id"];
3194
+ isOneToOne: false;
3195
+ referencedRelation: "printers";
3196
+ referencedColumns: ["id"];
3197
+ }];
3198
+ };
3121
3199
  email_auth_connections: {
3122
3200
  Row: {
3123
3201
  access_token_encrypted: string | null;
@@ -5059,42 +5137,6 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
5059
5137
  };
5060
5138
  Relationships: [];
5061
5139
  };
5062
- facturen: {
5063
- Row: {
5064
- bedrag_incl_btw: number;
5065
- created_at: string;
5066
- datum: string;
5067
- factuurnummer: string;
5068
- id: string;
5069
- klantnaam: string;
5070
- status: string;
5071
- updated_at: string;
5072
- user_id: string;
5073
- };
5074
- Insert: {
5075
- bedrag_incl_btw: number;
5076
- created_at?: string;
5077
- datum?: string;
5078
- factuurnummer: string;
5079
- id?: string;
5080
- klantnaam: string;
5081
- status?: string;
5082
- updated_at?: string;
5083
- user_id?: string;
5084
- };
5085
- Update: {
5086
- bedrag_incl_btw?: number;
5087
- created_at?: string;
5088
- datum?: string;
5089
- factuurnummer?: string;
5090
- id?: string;
5091
- klantnaam?: string;
5092
- status?: string;
5093
- updated_at?: string;
5094
- user_id?: string;
5095
- };
5096
- Relationships: [];
5097
- };
5098
5140
  floricode_connection_settings: {
5099
5141
  Row: {
5100
5142
  catalog_key: string | null;
@@ -7399,8 +7441,63 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
7399
7441
  };
7400
7442
  Relationships: [];
7401
7443
  };
7444
+ invoice_items: {
7445
+ Row: {
7446
+ created_at: string;
7447
+ description: string;
7448
+ id: string;
7449
+ invoice_id: string;
7450
+ kind: string;
7451
+ quantity: number;
7452
+ sort_order: number;
7453
+ source_line_ref: string | null;
7454
+ total_cents: number;
7455
+ unit: string;
7456
+ unit_price_cents: number;
7457
+ };
7458
+ Insert: {
7459
+ created_at?: string;
7460
+ description?: string;
7461
+ id?: string;
7462
+ invoice_id: string;
7463
+ kind?: string;
7464
+ quantity?: number;
7465
+ sort_order?: number;
7466
+ source_line_ref?: string | null;
7467
+ total_cents?: number;
7468
+ unit?: string;
7469
+ unit_price_cents?: number;
7470
+ };
7471
+ Update: {
7472
+ created_at?: string;
7473
+ description?: string;
7474
+ id?: string;
7475
+ invoice_id?: string;
7476
+ kind?: string;
7477
+ quantity?: number;
7478
+ sort_order?: number;
7479
+ source_line_ref?: string | null;
7480
+ total_cents?: number;
7481
+ unit?: string;
7482
+ unit_price_cents?: number;
7483
+ };
7484
+ Relationships: [{
7485
+ foreignKeyName: "invoice_items_invoice_id_fkey";
7486
+ columns: ["invoice_id"];
7487
+ isOneToOne: false;
7488
+ referencedRelation: "invoices";
7489
+ referencedColumns: ["id"];
7490
+ }, {
7491
+ foreignKeyName: "invoice_items_invoice_id_fkey";
7492
+ columns: ["invoice_id"];
7493
+ isOneToOne: false;
7494
+ referencedRelation: "uren_facturen";
7495
+ referencedColumns: ["id"];
7496
+ }];
7497
+ };
7402
7498
  invoice_post_idempotency: {
7403
7499
  Row: {
7500
+ administration_code: string;
7404
7501
  client_request_id: string;
7405
7502
  completed_at: string | null;
7406
7503
  created_at: string;
@@ -7410,6 +7507,7 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
7410
7507
  user_id: string;
7411
7508
  };
7412
7509
  Insert: {
7510
+ administration_code?: string;
7413
7511
  client_request_id: string;
7414
7512
  completed_at?: string | null;
7415
7513
  created_at?: string;
@@ -7419,6 +7517,7 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
7419
7517
  user_id: string;
7420
7518
  };
7421
7519
  Update: {
7520
+ administration_code?: string;
7422
7521
  client_request_id?: string;
7423
7522
  completed_at?: string | null;
7424
7523
  created_at?: string;
@@ -7624,6 +7723,75 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
7624
7723
  };
7625
7724
  Relationships: [];
7626
7725
  };
7726
+ invoices: {
7727
+ Row: {
7728
+ created_at: string;
7729
+ created_by: string | null;
7730
+ customer_id: string | null;
7731
+ customer_name: string | null;
7732
+ due_date: string | null;
7733
+ id: string;
7734
+ invoice_date: string;
7735
+ invoice_number: string | null;
7736
+ note: string | null;
7737
+ source_number: string | null;
7738
+ source_ref: string | null;
7739
+ source_type: string;
7740
+ status: string;
7741
+ subtotal_cents: number;
7742
+ total_cents: number;
7743
+ updated_at: string;
7744
+ vat_cents: number;
7745
+ vat_rate: number;
7746
+ };
7747
+ Insert: {
7748
+ created_at?: string;
7749
+ created_by?: string | null;
7750
+ customer_id?: string | null;
7751
+ customer_name?: string | null;
7752
+ due_date?: string | null;
7753
+ id?: string;
7754
+ invoice_date?: string;
7755
+ invoice_number?: string | null;
7756
+ note?: string | null;
7757
+ source_number?: string | null;
7758
+ source_ref?: string | null;
7759
+ source_type?: string;
7760
+ status?: string;
7761
+ subtotal_cents?: number;
7762
+ total_cents?: number;
7763
+ updated_at?: string;
7764
+ vat_cents?: number;
7765
+ vat_rate?: number;
7766
+ };
7767
+ Update: {
7768
+ created_at?: string;
7769
+ created_by?: string | null;
7770
+ customer_id?: string | null;
7771
+ customer_name?: string | null;
7772
+ due_date?: string | null;
7773
+ id?: string;
7774
+ invoice_date?: string;
7775
+ invoice_number?: string | null;
7776
+ note?: string | null;
7777
+ source_number?: string | null;
7778
+ source_ref?: string | null;
7779
+ source_type?: string;
7780
+ status?: string;
7781
+ subtotal_cents?: number;
7782
+ total_cents?: number;
7783
+ updated_at?: string;
7784
+ vat_cents?: number;
7785
+ vat_rate?: number;
7786
+ };
7787
+ Relationships: [{
7788
+ foreignKeyName: "invoices_customer_id_fkey";
7789
+ columns: ["customer_id"];
7790
+ isOneToOne: false;
7791
+ referencedRelation: "itk_customers";
7792
+ referencedColumns: ["id"];
7793
+ }];
7794
+ };
7627
7795
  itk_contact_persons: {
7628
7796
  Row: {
7629
7797
  created_at: string;
@@ -8971,6 +9139,9 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
8971
9139
  id: string;
8972
9140
  last_error: string | null;
8973
9141
  last_error_at: string | null;
9142
+ last_error_code: string | null;
9143
+ last_gateway_status: number | null;
9144
+ last_response: import("../integrations/supabase/types").Json | null;
8974
9145
  last_sent_hash: string | null;
8975
9146
  locked_by: string | null;
8976
9147
  locked_until: string | null;
@@ -8991,6 +9162,9 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
8991
9162
  id?: string;
8992
9163
  last_error?: string | null;
8993
9164
  last_error_at?: string | null;
9165
+ last_error_code?: string | null;
9166
+ last_gateway_status?: number | null;
9167
+ last_response?: import("../integrations/supabase/types").Json | null;
8994
9168
  last_sent_hash?: string | null;
8995
9169
  locked_by?: string | null;
8996
9170
  locked_until?: string | null;
@@ -9011,6 +9185,9 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
9011
9185
  id?: string;
9012
9186
  last_error?: string | null;
9013
9187
  last_error_at?: string | null;
9188
+ last_error_code?: string | null;
9189
+ last_gateway_status?: number | null;
9190
+ last_response?: import("../integrations/supabase/types").Json | null;
9014
9191
  last_sent_hash?: string | null;
9015
9192
  locked_by?: string | null;
9016
9193
  locked_until?: string | null;
@@ -10564,6 +10741,7 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
10564
10741
  enforce: boolean;
10565
10742
  is_active: boolean;
10566
10743
  last_seen_at: string;
10744
+ missing_count: number;
10567
10745
  module_id: string;
10568
10746
  name: string;
10569
10747
  shell_id: string | null;
@@ -10574,6 +10752,7 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
10574
10752
  enforce?: boolean;
10575
10753
  is_active?: boolean;
10576
10754
  last_seen_at?: string;
10755
+ missing_count?: number;
10577
10756
  module_id: string;
10578
10757
  name: string;
10579
10758
  shell_id?: string | null;
@@ -10584,6 +10763,7 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
10584
10763
  enforce?: boolean;
10585
10764
  is_active?: boolean;
10586
10765
  last_seen_at?: string;
10766
+ missing_count?: number;
10587
10767
  module_id?: string;
10588
10768
  name?: string;
10589
10769
  shell_id?: string | null;
@@ -11583,6 +11763,7 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
11583
11763
  };
11584
11764
  order_invoice_links: {
11585
11765
  Row: {
11766
+ administration_code: string | null;
11586
11767
  attempts: number;
11587
11768
  created_at: string;
11588
11769
  error_message: string | null;
@@ -11595,6 +11776,7 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
11595
11776
  updated_at: string;
11596
11777
  };
11597
11778
  Insert: {
11779
+ administration_code?: string | null;
11598
11780
  attempts?: number;
11599
11781
  created_at?: string;
11600
11782
  error_message?: string | null;
@@ -11607,6 +11789,7 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
11607
11789
  updated_at?: string;
11608
11790
  };
11609
11791
  Update: {
11792
+ administration_code?: string | null;
11610
11793
  attempts?: number;
11611
11794
  created_at?: string;
11612
11795
  error_message?: string | null;
@@ -12772,6 +12955,27 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
12772
12955
  referencedColumns: ["id"];
12773
12956
  }];
12774
12957
  };
12958
+ pick_sync_state: {
12959
+ Row: {
12960
+ id: boolean;
12961
+ last_cleanup_at: string | null;
12962
+ last_sync_at: string | null;
12963
+ updated_at: string;
12964
+ };
12965
+ Insert: {
12966
+ id?: boolean;
12967
+ last_cleanup_at?: string | null;
12968
+ last_sync_at?: string | null;
12969
+ updated_at?: string;
12970
+ };
12971
+ Update: {
12972
+ id?: boolean;
12973
+ last_cleanup_at?: string | null;
12974
+ last_sync_at?: string | null;
12975
+ updated_at?: string;
12976
+ };
12977
+ Relationships: [];
12978
+ };
12775
12979
  pick_task_document_types: {
12776
12980
  Row: {
12777
12981
  created_at: string;
@@ -13054,6 +13258,7 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
13054
13258
  gebruiker_id: string | null;
13055
13259
  gebruiker_naam: string;
13056
13260
  gestart_op: string | null;
13261
+ herkomst: string | null;
13057
13262
  id: string;
13058
13263
  idempotentie_sleutel: string | null;
13059
13264
  is_herprint: boolean;
@@ -13083,6 +13288,7 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
13083
13288
  gebruiker_id?: string | null;
13084
13289
  gebruiker_naam?: string;
13085
13290
  gestart_op?: string | null;
13291
+ herkomst?: string | null;
13086
13292
  id?: string;
13087
13293
  idempotentie_sleutel?: string | null;
13088
13294
  is_herprint?: boolean;
@@ -13112,6 +13318,7 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
13112
13318
  gebruiker_id?: string | null;
13113
13319
  gebruiker_naam?: string;
13114
13320
  gestart_op?: string | null;
13321
+ herkomst?: string | null;
13115
13322
  id?: string;
13116
13323
  idempotentie_sleutel?: string | null;
13117
13324
  is_herprint?: boolean;
@@ -16116,12 +16323,16 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
16116
16323
  company_name: string | null;
16117
16324
  connected_at: string | null;
16118
16325
  created_at: string;
16326
+ disconnected_at: string | null;
16119
16327
  environment: string;
16120
16328
  id: string;
16329
+ initial_sync_completed_at: string | null;
16330
+ initial_sync_started_at: string | null;
16121
16331
  is_active: boolean;
16122
16332
  label: string | null;
16123
16333
  office_code: string | null;
16124
16334
  redirect_uri: string | null;
16335
+ superseded_at: string | null;
16125
16336
  updated_at: string;
16126
16337
  user_id: string;
16127
16338
  };
@@ -16132,12 +16343,16 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
16132
16343
  company_name?: string | null;
16133
16344
  connected_at?: string | null;
16134
16345
  created_at?: string;
16346
+ disconnected_at?: string | null;
16135
16347
  environment: string;
16136
16348
  id?: string;
16349
+ initial_sync_completed_at?: string | null;
16350
+ initial_sync_started_at?: string | null;
16137
16351
  is_active?: boolean;
16138
16352
  label?: string | null;
16139
16353
  office_code?: string | null;
16140
16354
  redirect_uri?: string | null;
16355
+ superseded_at?: string | null;
16141
16356
  updated_at?: string;
16142
16357
  user_id: string;
16143
16358
  };
@@ -16148,12 +16363,16 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
16148
16363
  company_name?: string | null;
16149
16364
  connected_at?: string | null;
16150
16365
  created_at?: string;
16366
+ disconnected_at?: string | null;
16151
16367
  environment?: string;
16152
16368
  id?: string;
16369
+ initial_sync_completed_at?: string | null;
16370
+ initial_sync_started_at?: string | null;
16153
16371
  is_active?: boolean;
16154
16372
  label?: string | null;
16155
16373
  office_code?: string | null;
16156
16374
  redirect_uri?: string | null;
16375
+ superseded_at?: string | null;
16157
16376
  updated_at?: string;
16158
16377
  user_id?: string;
16159
16378
  };
@@ -16213,6 +16432,7 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
16213
16432
  twinfield_customers: {
16214
16433
  Row: {
16215
16434
  address: string | null;
16435
+ administration_code: string;
16216
16436
  city: string | null;
16217
16437
  country: string | null;
16218
16438
  created_at: string;
@@ -16232,6 +16452,7 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
16232
16452
  };
16233
16453
  Insert: {
16234
16454
  address?: string | null;
16455
+ administration_code?: string;
16235
16456
  city?: string | null;
16236
16457
  country?: string | null;
16237
16458
  created_at?: string;
@@ -16251,6 +16472,7 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
16251
16472
  };
16252
16473
  Update: {
16253
16474
  address?: string | null;
16475
+ administration_code?: string;
16254
16476
  city?: string | null;
16255
16477
  country?: string | null;
16256
16478
  created_at?: string;
@@ -16464,7 +16686,9 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
16464
16686
  };
16465
16687
  twinfield_invoice_settings: {
16466
16688
  Row: {
16689
+ administration_code: string | null;
16467
16690
  auto_invoice_enabled: boolean;
16691
+ auto_invoice_start_date: string | null;
16468
16692
  auto_invoice_trigger_statuses: string[];
16469
16693
  created_at: string;
16470
16694
  debtor_gl_account: string;
@@ -16478,15 +16702,19 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
16478
16702
  invoice_enabled_fo: boolean;
16479
16703
  invoice_enabled_ho: boolean;
16480
16704
  invoice_enabled_mo: boolean;
16705
+ needs_review: boolean;
16481
16706
  payment_gl_account: string;
16482
16707
  payment_journal_code: string;
16708
+ settings_confirmed_at: string | null;
16483
16709
  updated_at: string;
16484
16710
  user_id: string;
16485
16711
  vat_code_eu_reverse: string | null;
16486
16712
  vat_code_export: string | null;
16487
16713
  };
16488
16714
  Insert: {
16715
+ administration_code?: string | null;
16489
16716
  auto_invoice_enabled?: boolean;
16717
+ auto_invoice_start_date?: string | null;
16490
16718
  auto_invoice_trigger_statuses?: string[];
16491
16719
  created_at?: string;
16492
16720
  debtor_gl_account?: string;
@@ -16500,15 +16728,19 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
16500
16728
  invoice_enabled_fo?: boolean;
16501
16729
  invoice_enabled_ho?: boolean;
16502
16730
  invoice_enabled_mo?: boolean;
16731
+ needs_review?: boolean;
16503
16732
  payment_gl_account?: string;
16504
16733
  payment_journal_code?: string;
16734
+ settings_confirmed_at?: string | null;
16505
16735
  updated_at?: string;
16506
16736
  user_id: string;
16507
16737
  vat_code_eu_reverse?: string | null;
16508
16738
  vat_code_export?: string | null;
16509
16739
  };
16510
16740
  Update: {
16741
+ administration_code?: string | null;
16511
16742
  auto_invoice_enabled?: boolean;
16743
+ auto_invoice_start_date?: string | null;
16512
16744
  auto_invoice_trigger_statuses?: string[];
16513
16745
  created_at?: string;
16514
16746
  debtor_gl_account?: string;
@@ -16522,8 +16754,10 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
16522
16754
  invoice_enabled_fo?: boolean;
16523
16755
  invoice_enabled_ho?: boolean;
16524
16756
  invoice_enabled_mo?: boolean;
16757
+ needs_review?: boolean;
16525
16758
  payment_gl_account?: string;
16526
16759
  payment_journal_code?: string;
16760
+ settings_confirmed_at?: string | null;
16527
16761
  updated_at?: string;
16528
16762
  user_id?: string;
16529
16763
  vat_code_eu_reverse?: string | null;
@@ -17128,114 +17362,6 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
17128
17362
  };
17129
17363
  Relationships: [];
17130
17364
  };
17131
- uren_facturen: {
17132
- Row: {
17133
- created_at: string;
17134
- created_by: string | null;
17135
- customer_id: string | null;
17136
- customer_name: string | null;
17137
- id: string;
17138
- invoice_number: string | null;
17139
- note: string | null;
17140
- status: string;
17141
- total_excl_cents: number;
17142
- total_incl_cents: number;
17143
- updated_at: string;
17144
- vat_cents: number;
17145
- vat_percentage: number;
17146
- werkbon_id: string | null;
17147
- };
17148
- Insert: {
17149
- created_at?: string;
17150
- created_by?: string | null;
17151
- customer_id?: string | null;
17152
- customer_name?: string | null;
17153
- id?: string;
17154
- invoice_number?: string | null;
17155
- note?: string | null;
17156
- status?: string;
17157
- total_excl_cents?: number;
17158
- total_incl_cents?: number;
17159
- updated_at?: string;
17160
- vat_cents?: number;
17161
- vat_percentage?: number;
17162
- werkbon_id?: string | null;
17163
- };
17164
- Update: {
17165
- created_at?: string;
17166
- created_by?: string | null;
17167
- customer_id?: string | null;
17168
- customer_name?: string | null;
17169
- id?: string;
17170
- invoice_number?: string | null;
17171
- note?: string | null;
17172
- status?: string;
17173
- total_excl_cents?: number;
17174
- total_incl_cents?: number;
17175
- updated_at?: string;
17176
- vat_cents?: number;
17177
- vat_percentage?: number;
17178
- werkbon_id?: string | null;
17179
- };
17180
- Relationships: [{
17181
- foreignKeyName: "uren_facturen_customer_id_fkey";
17182
- columns: ["customer_id"];
17183
- isOneToOne: false;
17184
- referencedRelation: "itk_customers";
17185
- referencedColumns: ["id"];
17186
- }, {
17187
- foreignKeyName: "uren_facturen_werkbon_id_fkey";
17188
- columns: ["werkbon_id"];
17189
- isOneToOne: true;
17190
- referencedRelation: "werkbonnen";
17191
- referencedColumns: ["id"];
17192
- }];
17193
- };
17194
- uren_factuur_regels: {
17195
- Row: {
17196
- created_at: string;
17197
- description: string;
17198
- factuur_id: string;
17199
- id: string;
17200
- kind: string | null;
17201
- quantity: number;
17202
- sort_order: number;
17203
- total_cents: number;
17204
- unit: string;
17205
- unit_price_cents: number;
17206
- };
17207
- Insert: {
17208
- created_at?: string;
17209
- description: string;
17210
- factuur_id: string;
17211
- id?: string;
17212
- kind?: string | null;
17213
- quantity?: number;
17214
- sort_order?: number;
17215
- total_cents?: number;
17216
- unit?: string;
17217
- unit_price_cents?: number;
17218
- };
17219
- Update: {
17220
- created_at?: string;
17221
- description?: string;
17222
- factuur_id?: string;
17223
- id?: string;
17224
- kind?: string | null;
17225
- quantity?: number;
17226
- sort_order?: number;
17227
- total_cents?: number;
17228
- unit?: string;
17229
- unit_price_cents?: number;
17230
- };
17231
- Relationships: [{
17232
- foreignKeyName: "uren_factuur_regels_factuur_id_fkey";
17233
- columns: ["factuur_id"];
17234
- isOneToOne: false;
17235
- referencedRelation: "uren_facturen";
17236
- referencedColumns: ["id"];
17237
- }];
17238
- };
17239
17365
  uren_offerte_regels: {
17240
17366
  Row: {
17241
17367
  created_at: string;
@@ -18489,6 +18615,9 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
18489
18615
  scheduled_end_time: string | null;
18490
18616
  scheduled_start_time: string | null;
18491
18617
  sequence_number: number;
18618
+ signature_accepted_at: string | null;
18619
+ signature_by_user_id: string | null;
18620
+ signature_name: string | null;
18492
18621
  source_email_meta: import("../integrations/supabase/types").Json | null;
18493
18622
  source_mailbox_message_id: string | null;
18494
18623
  source_pdf_path: string | null;
@@ -18524,6 +18653,9 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
18524
18653
  scheduled_end_time?: string | null;
18525
18654
  scheduled_start_time?: string | null;
18526
18655
  sequence_number: number;
18656
+ signature_accepted_at?: string | null;
18657
+ signature_by_user_id?: string | null;
18658
+ signature_name?: string | null;
18527
18659
  source_email_meta?: import("../integrations/supabase/types").Json | null;
18528
18660
  source_mailbox_message_id?: string | null;
18529
18661
  source_pdf_path?: string | null;
@@ -18559,6 +18691,9 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
18559
18691
  scheduled_end_time?: string | null;
18560
18692
  scheduled_start_time?: string | null;
18561
18693
  sequence_number?: number;
18694
+ signature_accepted_at?: string | null;
18695
+ signature_by_user_id?: string | null;
18696
+ signature_name?: string | null;
18562
18697
  source_email_meta?: import("../integrations/supabase/types").Json | null;
18563
18698
  source_mailbox_message_id?: string | null;
18564
18699
  source_pdf_path?: string | null;
@@ -19075,6 +19210,114 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
19075
19210
  };
19076
19211
  Relationships: [];
19077
19212
  };
19213
+ uren_facturen: {
19214
+ Row: {
19215
+ created_at: string | null;
19216
+ created_by: string | null;
19217
+ customer_id: string | null;
19218
+ customer_name: string | null;
19219
+ id: string | null;
19220
+ invoice_number: string | null;
19221
+ note: string | null;
19222
+ status: string | null;
19223
+ total_excl_cents: number | null;
19224
+ total_incl_cents: number | null;
19225
+ updated_at: string | null;
19226
+ vat_cents: number | null;
19227
+ vat_percentage: number | null;
19228
+ werkbon_id: string | null;
19229
+ };
19230
+ Insert: {
19231
+ created_at?: string | null;
19232
+ created_by?: string | null;
19233
+ customer_id?: string | null;
19234
+ customer_name?: string | null;
19235
+ id?: string | null;
19236
+ invoice_number?: string | null;
19237
+ note?: string | null;
19238
+ status?: string | null;
19239
+ total_excl_cents?: number | null;
19240
+ total_incl_cents?: number | null;
19241
+ updated_at?: string | null;
19242
+ vat_cents?: number | null;
19243
+ vat_percentage?: number | null;
19244
+ werkbon_id?: never;
19245
+ };
19246
+ Update: {
19247
+ created_at?: string | null;
19248
+ created_by?: string | null;
19249
+ customer_id?: string | null;
19250
+ customer_name?: string | null;
19251
+ id?: string | null;
19252
+ invoice_number?: string | null;
19253
+ note?: string | null;
19254
+ status?: string | null;
19255
+ total_excl_cents?: number | null;
19256
+ total_incl_cents?: number | null;
19257
+ updated_at?: string | null;
19258
+ vat_cents?: number | null;
19259
+ vat_percentage?: number | null;
19260
+ werkbon_id?: never;
19261
+ };
19262
+ Relationships: [{
19263
+ foreignKeyName: "invoices_customer_id_fkey";
19264
+ columns: ["customer_id"];
19265
+ isOneToOne: false;
19266
+ referencedRelation: "itk_customers";
19267
+ referencedColumns: ["id"];
19268
+ }];
19269
+ };
19270
+ uren_factuur_regels: {
19271
+ Row: {
19272
+ created_at: string | null;
19273
+ description: string | null;
19274
+ factuur_id: string | null;
19275
+ id: string | null;
19276
+ kind: string | null;
19277
+ quantity: number | null;
19278
+ sort_order: number | null;
19279
+ total_cents: number | null;
19280
+ unit: string | null;
19281
+ unit_price_cents: number | null;
19282
+ };
19283
+ Insert: {
19284
+ created_at?: string | null;
19285
+ description?: string | null;
19286
+ factuur_id?: string | null;
19287
+ id?: string | null;
19288
+ kind?: string | null;
19289
+ quantity?: number | null;
19290
+ sort_order?: number | null;
19291
+ total_cents?: number | null;
19292
+ unit?: string | null;
19293
+ unit_price_cents?: number | null;
19294
+ };
19295
+ Update: {
19296
+ created_at?: string | null;
19297
+ description?: string | null;
19298
+ factuur_id?: string | null;
19299
+ id?: string | null;
19300
+ kind?: string | null;
19301
+ quantity?: number | null;
19302
+ sort_order?: number | null;
19303
+ total_cents?: number | null;
19304
+ unit?: string | null;
19305
+ unit_price_cents?: number | null;
19306
+ };
19307
+ Relationships: [{
19308
+ foreignKeyName: "invoice_items_invoice_id_fkey";
19309
+ columns: ["factuur_id"];
19310
+ isOneToOne: false;
19311
+ referencedRelation: "invoices";
19312
+ referencedColumns: ["id"];
19313
+ }, {
19314
+ foreignKeyName: "invoice_items_invoice_id_fkey";
19315
+ columns: ["factuur_id"];
19316
+ isOneToOne: false;
19317
+ referencedRelation: "uren_facturen";
19318
+ referencedColumns: ["id"];
19319
+ }];
19320
+ };
19078
19321
  v_external_customers_exact: {
19079
19322
  Row: {
19080
19323
  account_number: string | null;
@@ -19580,6 +19823,7 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
19580
19823
  gebruiker_id: string | null;
19581
19824
  gebruiker_naam: string;
19582
19825
  gestart_op: string | null;
19826
+ herkomst: string | null;
19583
19827
  id: string;
19584
19828
  idempotentie_sleutel: string | null;
19585
19829
  is_herprint: boolean;
@@ -19700,6 +19944,7 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
19700
19944
  gebruiker_id: string | null;
19701
19945
  gebruiker_naam: string;
19702
19946
  gestart_op: string | null;
19947
+ herkomst: string | null;
19703
19948
  id: string;
19704
19949
  idempotentie_sleutel: string | null;
19705
19950
  is_herprint: boolean;
@@ -20301,6 +20546,46 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
20301
20546
  Args: never;
20302
20547
  Returns: boolean;
20303
20548
  };
20549
+ invoice_create_from_source: {
20550
+ Args: {
20551
+ _payload?: import("../integrations/supabase/types").Json;
20552
+ _source_id: string;
20553
+ _source_type: string;
20554
+ };
20555
+ Returns: import("../integrations/supabase/types").Json;
20556
+ };
20557
+ invoice_get_billable_lines: {
20558
+ Args: {
20559
+ _invoice_id: string;
20560
+ };
20561
+ Returns: import("../integrations/supabase/types").Json;
20562
+ };
20563
+ invoice_get_for_source: {
20564
+ Args: {
20565
+ _source_id: string;
20566
+ _source_type: string;
20567
+ };
20568
+ Returns: import("../integrations/supabase/types").Json;
20569
+ };
20570
+ invoice_get_summary: {
20571
+ Args: {
20572
+ _invoice_id: string;
20573
+ };
20574
+ Returns: import("../integrations/supabase/types").Json;
20575
+ };
20576
+ invoice_list_sources: {
20577
+ Args: {
20578
+ _limit?: number;
20579
+ _source_type?: string;
20580
+ };
20581
+ Returns: import("../integrations/supabase/types").Json;
20582
+ };
20583
+ invoice_recalc_totals: {
20584
+ Args: {
20585
+ _invoice_id: string;
20586
+ };
20587
+ Returns: import("../integrations/supabase/types").Json;
20588
+ };
20304
20589
  is_authenticated: {
20305
20590
  Args: never;
20306
20591
  Returns: boolean;
@@ -20369,6 +20654,29 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
20369
20654
  roles: string[];
20370
20655
  }[];
20371
20656
  };
20657
+ list_monteur_absences: {
20658
+ Args: {
20659
+ _from: string;
20660
+ _to: string;
20661
+ };
20662
+ Returns: {
20663
+ absence_date: string;
20664
+ end_time: string;
20665
+ full_day: boolean;
20666
+ kind: string;
20667
+ monteur_id: string;
20668
+ start_time: string;
20669
+ }[];
20670
+ };
20671
+ list_monteurs: {
20672
+ Args: never;
20673
+ Returns: {
20674
+ avatar_url: string;
20675
+ display_name: string;
20676
+ email: string;
20677
+ id: string;
20678
+ }[];
20679
+ };
20372
20680
  list_my_planning_items: {
20373
20681
  Args: {
20374
20682
  _from: string;
@@ -20780,6 +21088,23 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
20780
21088
  };
20781
21089
  Returns: string;
20782
21090
  };
21091
+ logistics_floriday_finish_push_v2: {
21092
+ Args: {
21093
+ _error?: string;
21094
+ _error_code?: string;
21095
+ _fulfillment_order_id?: string;
21096
+ _gateway_status?: number;
21097
+ _id: string;
21098
+ _max_age_hours?: number;
21099
+ _max_attempts?: number;
21100
+ _ok: boolean;
21101
+ _permanent?: boolean;
21102
+ _response?: import("../integrations/supabase/types").Json;
21103
+ _revision: number;
21104
+ _sent_hash?: string;
21105
+ };
21106
+ Returns: string;
21107
+ };
20783
21108
  logistics_floriday_prune_pushes: {
20784
21109
  Args: {
20785
21110
  _days?: number;
@@ -21322,6 +21647,13 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
21322
21647
  isSetofReturn: false;
21323
21648
  };
21324
21649
  };
21650
+ pick_cleanup_maintenance: {
21651
+ Args: {
21652
+ _heartbeat_hours?: number;
21653
+ _log_days?: number;
21654
+ };
21655
+ Returns: import("../integrations/supabase/types").Json;
21656
+ };
21325
21657
  pick_complete_print: {
21326
21658
  Args: {
21327
21659
  _printer_id: string;
@@ -21373,6 +21705,14 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
21373
21705
  Args: never;
21374
21706
  Returns: string;
21375
21707
  };
21708
+ pick_day_counts: {
21709
+ Args: {
21710
+ _pick_day?: string;
21711
+ _screen_id?: string;
21712
+ _station_id?: string;
21713
+ };
21714
+ Returns: import("../integrations/supabase/types").Json;
21715
+ };
21376
21716
  pick_document_layout_data: {
21377
21717
  Args: {
21378
21718
  _layout_id: string;
@@ -21410,6 +21750,14 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
21410
21750
  };
21411
21751
  Returns: undefined;
21412
21752
  };
21753
+ pick_reprint_document: {
21754
+ Args: {
21755
+ _queue_item_id: string;
21756
+ _session_id: string;
21757
+ _throttle_seconds?: number;
21758
+ };
21759
+ Returns: string;
21760
+ };
21413
21761
  pick_reset_print: {
21414
21762
  Args: {
21415
21763
  _queue_item_id: string;
@@ -21475,6 +21823,12 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
21475
21823
  };
21476
21824
  Returns: string;
21477
21825
  };
21826
+ pick_sync_queue_throttled: {
21827
+ Args: {
21828
+ _min_seconds?: number;
21829
+ };
21830
+ Returns: import("../integrations/supabase/types").Json;
21831
+ };
21478
21832
  pickstation_get_orders_raw: {
21479
21833
  Args: never;
21480
21834
  Returns: import("../integrations/supabase/types").Json;
@@ -21620,6 +21974,12 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
21620
21974
  };
21621
21975
  Returns: boolean;
21622
21976
  };
21977
+ release_stale_order_invoice_links: {
21978
+ Args: {
21979
+ _minutes?: number;
21980
+ };
21981
+ Returns: number;
21982
+ };
21623
21983
  reorder_customer_price_groups: {
21624
21984
  Args: {
21625
21985
  _ids: string[];
@@ -22138,6 +22498,20 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
22138
22498
  };
22139
22499
  Returns: undefined;
22140
22500
  };
22501
+ twinfield_deactivate_connection: {
22502
+ Args: {
22503
+ p_connection_id: string;
22504
+ p_user_id: string;
22505
+ };
22506
+ Returns: import("../integrations/supabase/types").Json;
22507
+ };
22508
+ twinfield_handle_administration_change: {
22509
+ Args: {
22510
+ _administration_code: string;
22511
+ _user_id: string;
22512
+ };
22513
+ Returns: undefined;
22514
+ };
22141
22515
  twinfield_prune_push_queue: {
22142
22516
  Args: never;
22143
22517
  Returns: number;
@@ -22157,10 +22531,11 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
22157
22531
  p_company_name?: string;
22158
22532
  p_environment: string;
22159
22533
  p_office_code?: string;
22534
+ p_reset_sync?: boolean;
22160
22535
  p_status?: string;
22161
22536
  p_user_id: string;
22162
22537
  };
22163
- Returns: string;
22538
+ Returns: import("../integrations/supabase/types").Json;
22164
22539
  };
22165
22540
  upsert_auto_fulfillment_log: {
22166
22541
  Args: {
@@ -24988,6 +25363,42 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
24988
25363
  };
24989
25364
  Relationships: [];
24990
25365
  };
25366
+ document_bronregels: {
25367
+ Row: {
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
+ Insert: {
25377
+ bron?: string;
25378
+ created_at?: string;
25379
+ documenttype: string;
25380
+ herkomst: string;
25381
+ id?: string;
25382
+ layout_id?: string | null;
25383
+ updated_at?: string;
25384
+ };
25385
+ Update: {
25386
+ bron?: string;
25387
+ created_at?: string;
25388
+ documenttype?: string;
25389
+ herkomst?: string;
25390
+ id?: string;
25391
+ layout_id?: string | null;
25392
+ updated_at?: string;
25393
+ };
25394
+ Relationships: [{
25395
+ foreignKeyName: "document_bronregels_layout_id_fkey";
25396
+ columns: ["layout_id"];
25397
+ isOneToOne: false;
25398
+ referencedRelation: "document_layouts";
25399
+ referencedColumns: ["id"];
25400
+ }];
25401
+ };
24991
25402
  document_formaat_printers: {
24992
25403
  Row: {
24993
25404
  created_at: string;
@@ -25265,6 +25676,7 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
25265
25676
  Row: {
25266
25677
  actief: boolean;
25267
25678
  breedte_mm: number;
25679
+ bron: string;
25268
25680
  config: import("../integrations/supabase/types").Json;
25269
25681
  created_at: string;
25270
25682
  created_by: string | null;
@@ -25282,12 +25694,14 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
25282
25694
  orientatie: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_orientation"];
25283
25695
  page_settings: import("../integrations/supabase/types").Json;
25284
25696
  papierformaat: string;
25697
+ systeem: boolean;
25285
25698
  thumbnail_url: string | null;
25286
25699
  updated_at: string;
25287
25700
  };
25288
25701
  Insert: {
25289
25702
  actief?: boolean;
25290
25703
  breedte_mm?: number;
25704
+ bron?: string;
25291
25705
  config?: import("../integrations/supabase/types").Json;
25292
25706
  created_at?: string;
25293
25707
  created_by?: string | null;
@@ -25305,12 +25719,14 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
25305
25719
  orientatie?: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_orientation"];
25306
25720
  page_settings?: import("../integrations/supabase/types").Json;
25307
25721
  papierformaat?: string;
25722
+ systeem?: boolean;
25308
25723
  thumbnail_url?: string | null;
25309
25724
  updated_at?: string;
25310
25725
  };
25311
25726
  Update: {
25312
25727
  actief?: boolean;
25313
25728
  breedte_mm?: number;
25729
+ bron?: string;
25314
25730
  config?: import("../integrations/supabase/types").Json;
25315
25731
  created_at?: string;
25316
25732
  created_by?: string | null;
@@ -25328,11 +25744,48 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
25328
25744
  orientatie?: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_orientation"];
25329
25745
  page_settings?: import("../integrations/supabase/types").Json;
25330
25746
  papierformaat?: string;
25747
+ systeem?: boolean;
25331
25748
  thumbnail_url?: string | null;
25332
25749
  updated_at?: string;
25333
25750
  };
25334
25751
  Relationships: [];
25335
25752
  };
25753
+ document_werkplek_printers: {
25754
+ Row: {
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
+ Insert: {
25764
+ created_at?: string;
25765
+ documenttype: string;
25766
+ id?: string;
25767
+ papierformaat?: string | null;
25768
+ printer_id?: string | null;
25769
+ updated_at?: string;
25770
+ werkplek: string;
25771
+ };
25772
+ Update: {
25773
+ created_at?: string;
25774
+ documenttype?: string;
25775
+ id?: string;
25776
+ papierformaat?: string | null;
25777
+ printer_id?: string | null;
25778
+ updated_at?: string;
25779
+ werkplek?: string;
25780
+ };
25781
+ Relationships: [{
25782
+ foreignKeyName: "document_werkplek_printers_printer_id_fkey";
25783
+ columns: ["printer_id"];
25784
+ isOneToOne: false;
25785
+ referencedRelation: "printers";
25786
+ referencedColumns: ["id"];
25787
+ }];
25788
+ };
25336
25789
  email_auth_connections: {
25337
25790
  Row: {
25338
25791
  access_token_encrypted: string | null;
@@ -27274,42 +27727,6 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
27274
27727
  };
27275
27728
  Relationships: [];
27276
27729
  };
27277
- facturen: {
27278
- Row: {
27279
- bedrag_incl_btw: number;
27280
- created_at: string;
27281
- datum: string;
27282
- factuurnummer: string;
27283
- id: string;
27284
- klantnaam: string;
27285
- status: string;
27286
- updated_at: string;
27287
- user_id: string;
27288
- };
27289
- Insert: {
27290
- bedrag_incl_btw: number;
27291
- created_at?: string;
27292
- datum?: string;
27293
- factuurnummer: string;
27294
- id?: string;
27295
- klantnaam: string;
27296
- status?: string;
27297
- updated_at?: string;
27298
- user_id?: string;
27299
- };
27300
- Update: {
27301
- bedrag_incl_btw?: number;
27302
- created_at?: string;
27303
- datum?: string;
27304
- factuurnummer?: string;
27305
- id?: string;
27306
- klantnaam?: string;
27307
- status?: string;
27308
- updated_at?: string;
27309
- user_id?: string;
27310
- };
27311
- Relationships: [];
27312
- };
27313
27730
  floricode_connection_settings: {
27314
27731
  Row: {
27315
27732
  catalog_key: string | null;
@@ -29614,8 +30031,63 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
29614
30031
  };
29615
30032
  Relationships: [];
29616
30033
  };
30034
+ invoice_items: {
30035
+ Row: {
30036
+ created_at: string;
30037
+ description: string;
30038
+ id: string;
30039
+ invoice_id: string;
30040
+ kind: string;
30041
+ quantity: number;
30042
+ sort_order: number;
30043
+ source_line_ref: string | null;
30044
+ total_cents: number;
30045
+ unit: string;
30046
+ unit_price_cents: number;
30047
+ };
30048
+ Insert: {
30049
+ created_at?: string;
30050
+ description?: string;
30051
+ id?: string;
30052
+ invoice_id: string;
30053
+ kind?: string;
30054
+ quantity?: number;
30055
+ sort_order?: number;
30056
+ source_line_ref?: string | null;
30057
+ total_cents?: number;
30058
+ unit?: string;
30059
+ unit_price_cents?: number;
30060
+ };
30061
+ Update: {
30062
+ created_at?: string;
30063
+ description?: string;
30064
+ id?: string;
30065
+ invoice_id?: string;
30066
+ kind?: string;
30067
+ quantity?: number;
30068
+ sort_order?: number;
30069
+ source_line_ref?: string | null;
30070
+ total_cents?: number;
30071
+ unit?: string;
30072
+ unit_price_cents?: number;
30073
+ };
30074
+ Relationships: [{
30075
+ foreignKeyName: "invoice_items_invoice_id_fkey";
30076
+ columns: ["invoice_id"];
30077
+ isOneToOne: false;
30078
+ referencedRelation: "invoices";
30079
+ referencedColumns: ["id"];
30080
+ }, {
30081
+ foreignKeyName: "invoice_items_invoice_id_fkey";
30082
+ columns: ["invoice_id"];
30083
+ isOneToOne: false;
30084
+ referencedRelation: "uren_facturen";
30085
+ referencedColumns: ["id"];
30086
+ }];
30087
+ };
29617
30088
  invoice_post_idempotency: {
29618
30089
  Row: {
30090
+ administration_code: string;
29619
30091
  client_request_id: string;
29620
30092
  completed_at: string | null;
29621
30093
  created_at: string;
@@ -29625,6 +30097,7 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
29625
30097
  user_id: string;
29626
30098
  };
29627
30099
  Insert: {
30100
+ administration_code?: string;
29628
30101
  client_request_id: string;
29629
30102
  completed_at?: string | null;
29630
30103
  created_at?: string;
@@ -29634,6 +30107,7 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
29634
30107
  user_id: string;
29635
30108
  };
29636
30109
  Update: {
30110
+ administration_code?: string;
29637
30111
  client_request_id?: string;
29638
30112
  completed_at?: string | null;
29639
30113
  created_at?: string;
@@ -29839,6 +30313,75 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
29839
30313
  };
29840
30314
  Relationships: [];
29841
30315
  };
30316
+ invoices: {
30317
+ Row: {
30318
+ created_at: string;
30319
+ created_by: string | null;
30320
+ customer_id: string | null;
30321
+ customer_name: string | null;
30322
+ due_date: string | null;
30323
+ id: string;
30324
+ invoice_date: string;
30325
+ invoice_number: string | null;
30326
+ note: string | null;
30327
+ source_number: string | null;
30328
+ source_ref: string | null;
30329
+ source_type: string;
30330
+ status: string;
30331
+ subtotal_cents: number;
30332
+ total_cents: number;
30333
+ updated_at: string;
30334
+ vat_cents: number;
30335
+ vat_rate: number;
30336
+ };
30337
+ Insert: {
30338
+ created_at?: string;
30339
+ created_by?: string | null;
30340
+ customer_id?: string | null;
30341
+ customer_name?: string | null;
30342
+ due_date?: string | null;
30343
+ id?: string;
30344
+ invoice_date?: string;
30345
+ invoice_number?: string | null;
30346
+ note?: string | null;
30347
+ source_number?: string | null;
30348
+ source_ref?: string | null;
30349
+ source_type?: string;
30350
+ status?: string;
30351
+ subtotal_cents?: number;
30352
+ total_cents?: number;
30353
+ updated_at?: string;
30354
+ vat_cents?: number;
30355
+ vat_rate?: number;
30356
+ };
30357
+ Update: {
30358
+ created_at?: string;
30359
+ created_by?: string | null;
30360
+ customer_id?: string | null;
30361
+ customer_name?: string | null;
30362
+ due_date?: string | null;
30363
+ id?: string;
30364
+ invoice_date?: string;
30365
+ invoice_number?: string | null;
30366
+ note?: string | null;
30367
+ source_number?: string | null;
30368
+ source_ref?: string | null;
30369
+ source_type?: string;
30370
+ status?: string;
30371
+ subtotal_cents?: number;
30372
+ total_cents?: number;
30373
+ updated_at?: string;
30374
+ vat_cents?: number;
30375
+ vat_rate?: number;
30376
+ };
30377
+ Relationships: [{
30378
+ foreignKeyName: "invoices_customer_id_fkey";
30379
+ columns: ["customer_id"];
30380
+ isOneToOne: false;
30381
+ referencedRelation: "itk_customers";
30382
+ referencedColumns: ["id"];
30383
+ }];
30384
+ };
29842
30385
  itk_contact_persons: {
29843
30386
  Row: {
29844
30387
  created_at: string;
@@ -31186,6 +31729,9 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
31186
31729
  id: string;
31187
31730
  last_error: string | null;
31188
31731
  last_error_at: string | null;
31732
+ last_error_code: string | null;
31733
+ last_gateway_status: number | null;
31734
+ last_response: import("../integrations/supabase/types").Json | null;
31189
31735
  last_sent_hash: string | null;
31190
31736
  locked_by: string | null;
31191
31737
  locked_until: string | null;
@@ -31206,6 +31752,9 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
31206
31752
  id?: string;
31207
31753
  last_error?: string | null;
31208
31754
  last_error_at?: string | null;
31755
+ last_error_code?: string | null;
31756
+ last_gateway_status?: number | null;
31757
+ last_response?: import("../integrations/supabase/types").Json | null;
31209
31758
  last_sent_hash?: string | null;
31210
31759
  locked_by?: string | null;
31211
31760
  locked_until?: string | null;
@@ -31226,6 +31775,9 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
31226
31775
  id?: string;
31227
31776
  last_error?: string | null;
31228
31777
  last_error_at?: string | null;
31778
+ last_error_code?: string | null;
31779
+ last_gateway_status?: number | null;
31780
+ last_response?: import("../integrations/supabase/types").Json | null;
31229
31781
  last_sent_hash?: string | null;
31230
31782
  locked_by?: string | null;
31231
31783
  locked_until?: string | null;
@@ -32779,6 +33331,7 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
32779
33331
  enforce: boolean;
32780
33332
  is_active: boolean;
32781
33333
  last_seen_at: string;
33334
+ missing_count: number;
32782
33335
  module_id: string;
32783
33336
  name: string;
32784
33337
  shell_id: string | null;
@@ -32789,6 +33342,7 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
32789
33342
  enforce?: boolean;
32790
33343
  is_active?: boolean;
32791
33344
  last_seen_at?: string;
33345
+ missing_count?: number;
32792
33346
  module_id: string;
32793
33347
  name: string;
32794
33348
  shell_id?: string | null;
@@ -32799,6 +33353,7 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
32799
33353
  enforce?: boolean;
32800
33354
  is_active?: boolean;
32801
33355
  last_seen_at?: string;
33356
+ missing_count?: number;
32802
33357
  module_id?: string;
32803
33358
  name?: string;
32804
33359
  shell_id?: string | null;
@@ -33798,6 +34353,7 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
33798
34353
  };
33799
34354
  order_invoice_links: {
33800
34355
  Row: {
34356
+ administration_code: string | null;
33801
34357
  attempts: number;
33802
34358
  created_at: string;
33803
34359
  error_message: string | null;
@@ -33810,6 +34366,7 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
33810
34366
  updated_at: string;
33811
34367
  };
33812
34368
  Insert: {
34369
+ administration_code?: string | null;
33813
34370
  attempts?: number;
33814
34371
  created_at?: string;
33815
34372
  error_message?: string | null;
@@ -33822,6 +34379,7 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
33822
34379
  updated_at?: string;
33823
34380
  };
33824
34381
  Update: {
34382
+ administration_code?: string | null;
33825
34383
  attempts?: number;
33826
34384
  created_at?: string;
33827
34385
  error_message?: string | null;
@@ -34987,6 +35545,27 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
34987
35545
  referencedColumns: ["id"];
34988
35546
  }];
34989
35547
  };
35548
+ pick_sync_state: {
35549
+ Row: {
35550
+ id: boolean;
35551
+ last_cleanup_at: string | null;
35552
+ last_sync_at: string | null;
35553
+ updated_at: string;
35554
+ };
35555
+ Insert: {
35556
+ id?: boolean;
35557
+ last_cleanup_at?: string | null;
35558
+ last_sync_at?: string | null;
35559
+ updated_at?: string;
35560
+ };
35561
+ Update: {
35562
+ id?: boolean;
35563
+ last_cleanup_at?: string | null;
35564
+ last_sync_at?: string | null;
35565
+ updated_at?: string;
35566
+ };
35567
+ Relationships: [];
35568
+ };
34990
35569
  pick_task_document_types: {
34991
35570
  Row: {
34992
35571
  created_at: string;
@@ -35269,6 +35848,7 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
35269
35848
  gebruiker_id: string | null;
35270
35849
  gebruiker_naam: string;
35271
35850
  gestart_op: string | null;
35851
+ herkomst: string | null;
35272
35852
  id: string;
35273
35853
  idempotentie_sleutel: string | null;
35274
35854
  is_herprint: boolean;
@@ -35298,6 +35878,7 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
35298
35878
  gebruiker_id?: string | null;
35299
35879
  gebruiker_naam?: string;
35300
35880
  gestart_op?: string | null;
35881
+ herkomst?: string | null;
35301
35882
  id?: string;
35302
35883
  idempotentie_sleutel?: string | null;
35303
35884
  is_herprint?: boolean;
@@ -35327,6 +35908,7 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
35327
35908
  gebruiker_id?: string | null;
35328
35909
  gebruiker_naam?: string;
35329
35910
  gestart_op?: string | null;
35911
+ herkomst?: string | null;
35330
35912
  id?: string;
35331
35913
  idempotentie_sleutel?: string | null;
35332
35914
  is_herprint?: boolean;
@@ -38331,12 +38913,16 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
38331
38913
  company_name: string | null;
38332
38914
  connected_at: string | null;
38333
38915
  created_at: string;
38916
+ disconnected_at: string | null;
38334
38917
  environment: string;
38335
38918
  id: string;
38919
+ initial_sync_completed_at: string | null;
38920
+ initial_sync_started_at: string | null;
38336
38921
  is_active: boolean;
38337
38922
  label: string | null;
38338
38923
  office_code: string | null;
38339
38924
  redirect_uri: string | null;
38925
+ superseded_at: string | null;
38340
38926
  updated_at: string;
38341
38927
  user_id: string;
38342
38928
  };
@@ -38347,12 +38933,16 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
38347
38933
  company_name?: string | null;
38348
38934
  connected_at?: string | null;
38349
38935
  created_at?: string;
38936
+ disconnected_at?: string | null;
38350
38937
  environment: string;
38351
38938
  id?: string;
38939
+ initial_sync_completed_at?: string | null;
38940
+ initial_sync_started_at?: string | null;
38352
38941
  is_active?: boolean;
38353
38942
  label?: string | null;
38354
38943
  office_code?: string | null;
38355
38944
  redirect_uri?: string | null;
38945
+ superseded_at?: string | null;
38356
38946
  updated_at?: string;
38357
38947
  user_id: string;
38358
38948
  };
@@ -38363,12 +38953,16 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
38363
38953
  company_name?: string | null;
38364
38954
  connected_at?: string | null;
38365
38955
  created_at?: string;
38956
+ disconnected_at?: string | null;
38366
38957
  environment?: string;
38367
38958
  id?: string;
38959
+ initial_sync_completed_at?: string | null;
38960
+ initial_sync_started_at?: string | null;
38368
38961
  is_active?: boolean;
38369
38962
  label?: string | null;
38370
38963
  office_code?: string | null;
38371
38964
  redirect_uri?: string | null;
38965
+ superseded_at?: string | null;
38372
38966
  updated_at?: string;
38373
38967
  user_id?: string;
38374
38968
  };
@@ -38428,6 +39022,7 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
38428
39022
  twinfield_customers: {
38429
39023
  Row: {
38430
39024
  address: string | null;
39025
+ administration_code: string;
38431
39026
  city: string | null;
38432
39027
  country: string | null;
38433
39028
  created_at: string;
@@ -38447,6 +39042,7 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
38447
39042
  };
38448
39043
  Insert: {
38449
39044
  address?: string | null;
39045
+ administration_code?: string;
38450
39046
  city?: string | null;
38451
39047
  country?: string | null;
38452
39048
  created_at?: string;
@@ -38466,6 +39062,7 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
38466
39062
  };
38467
39063
  Update: {
38468
39064
  address?: string | null;
39065
+ administration_code?: string;
38469
39066
  city?: string | null;
38470
39067
  country?: string | null;
38471
39068
  created_at?: string;
@@ -38679,7 +39276,9 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
38679
39276
  };
38680
39277
  twinfield_invoice_settings: {
38681
39278
  Row: {
39279
+ administration_code: string | null;
38682
39280
  auto_invoice_enabled: boolean;
39281
+ auto_invoice_start_date: string | null;
38683
39282
  auto_invoice_trigger_statuses: string[];
38684
39283
  created_at: string;
38685
39284
  debtor_gl_account: string;
@@ -38693,15 +39292,19 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
38693
39292
  invoice_enabled_fo: boolean;
38694
39293
  invoice_enabled_ho: boolean;
38695
39294
  invoice_enabled_mo: boolean;
39295
+ needs_review: boolean;
38696
39296
  payment_gl_account: string;
38697
39297
  payment_journal_code: string;
39298
+ settings_confirmed_at: string | null;
38698
39299
  updated_at: string;
38699
39300
  user_id: string;
38700
39301
  vat_code_eu_reverse: string | null;
38701
39302
  vat_code_export: string | null;
38702
39303
  };
38703
39304
  Insert: {
39305
+ administration_code?: string | null;
38704
39306
  auto_invoice_enabled?: boolean;
39307
+ auto_invoice_start_date?: string | null;
38705
39308
  auto_invoice_trigger_statuses?: string[];
38706
39309
  created_at?: string;
38707
39310
  debtor_gl_account?: string;
@@ -38715,15 +39318,19 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
38715
39318
  invoice_enabled_fo?: boolean;
38716
39319
  invoice_enabled_ho?: boolean;
38717
39320
  invoice_enabled_mo?: boolean;
39321
+ needs_review?: boolean;
38718
39322
  payment_gl_account?: string;
38719
39323
  payment_journal_code?: string;
39324
+ settings_confirmed_at?: string | null;
38720
39325
  updated_at?: string;
38721
39326
  user_id: string;
38722
39327
  vat_code_eu_reverse?: string | null;
38723
39328
  vat_code_export?: string | null;
38724
39329
  };
38725
39330
  Update: {
39331
+ administration_code?: string | null;
38726
39332
  auto_invoice_enabled?: boolean;
39333
+ auto_invoice_start_date?: string | null;
38727
39334
  auto_invoice_trigger_statuses?: string[];
38728
39335
  created_at?: string;
38729
39336
  debtor_gl_account?: string;
@@ -38737,8 +39344,10 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
38737
39344
  invoice_enabled_fo?: boolean;
38738
39345
  invoice_enabled_ho?: boolean;
38739
39346
  invoice_enabled_mo?: boolean;
39347
+ needs_review?: boolean;
38740
39348
  payment_gl_account?: string;
38741
39349
  payment_journal_code?: string;
39350
+ settings_confirmed_at?: string | null;
38742
39351
  updated_at?: string;
38743
39352
  user_id?: string;
38744
39353
  vat_code_eu_reverse?: string | null;
@@ -39343,114 +39952,6 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
39343
39952
  };
39344
39953
  Relationships: [];
39345
39954
  };
39346
- uren_facturen: {
39347
- Row: {
39348
- created_at: string;
39349
- created_by: string | null;
39350
- customer_id: string | null;
39351
- customer_name: string | null;
39352
- id: string;
39353
- invoice_number: string | null;
39354
- note: string | null;
39355
- status: string;
39356
- total_excl_cents: number;
39357
- total_incl_cents: number;
39358
- updated_at: string;
39359
- vat_cents: number;
39360
- vat_percentage: number;
39361
- werkbon_id: string | null;
39362
- };
39363
- Insert: {
39364
- created_at?: string;
39365
- created_by?: string | null;
39366
- customer_id?: string | null;
39367
- customer_name?: string | null;
39368
- id?: string;
39369
- invoice_number?: string | null;
39370
- note?: string | null;
39371
- status?: string;
39372
- total_excl_cents?: number;
39373
- total_incl_cents?: number;
39374
- updated_at?: string;
39375
- vat_cents?: number;
39376
- vat_percentage?: number;
39377
- werkbon_id?: string | null;
39378
- };
39379
- Update: {
39380
- created_at?: string;
39381
- created_by?: string | null;
39382
- customer_id?: string | null;
39383
- customer_name?: string | null;
39384
- id?: string;
39385
- invoice_number?: string | null;
39386
- note?: string | null;
39387
- status?: string;
39388
- total_excl_cents?: number;
39389
- total_incl_cents?: number;
39390
- updated_at?: string;
39391
- vat_cents?: number;
39392
- vat_percentage?: number;
39393
- werkbon_id?: string | null;
39394
- };
39395
- Relationships: [{
39396
- foreignKeyName: "uren_facturen_customer_id_fkey";
39397
- columns: ["customer_id"];
39398
- isOneToOne: false;
39399
- referencedRelation: "itk_customers";
39400
- referencedColumns: ["id"];
39401
- }, {
39402
- foreignKeyName: "uren_facturen_werkbon_id_fkey";
39403
- columns: ["werkbon_id"];
39404
- isOneToOne: true;
39405
- referencedRelation: "werkbonnen";
39406
- referencedColumns: ["id"];
39407
- }];
39408
- };
39409
- uren_factuur_regels: {
39410
- Row: {
39411
- created_at: string;
39412
- description: string;
39413
- factuur_id: string;
39414
- id: string;
39415
- kind: string | null;
39416
- quantity: number;
39417
- sort_order: number;
39418
- total_cents: number;
39419
- unit: string;
39420
- unit_price_cents: number;
39421
- };
39422
- Insert: {
39423
- created_at?: string;
39424
- description: string;
39425
- factuur_id: string;
39426
- id?: string;
39427
- kind?: string | null;
39428
- quantity?: number;
39429
- sort_order?: number;
39430
- total_cents?: number;
39431
- unit?: string;
39432
- unit_price_cents?: number;
39433
- };
39434
- Update: {
39435
- created_at?: string;
39436
- description?: string;
39437
- factuur_id?: string;
39438
- id?: string;
39439
- kind?: string | null;
39440
- quantity?: number;
39441
- sort_order?: number;
39442
- total_cents?: number;
39443
- unit?: string;
39444
- unit_price_cents?: number;
39445
- };
39446
- Relationships: [{
39447
- foreignKeyName: "uren_factuur_regels_factuur_id_fkey";
39448
- columns: ["factuur_id"];
39449
- isOneToOne: false;
39450
- referencedRelation: "uren_facturen";
39451
- referencedColumns: ["id"];
39452
- }];
39453
- };
39454
39955
  uren_offerte_regels: {
39455
39956
  Row: {
39456
39957
  created_at: string;
@@ -40704,6 +41205,9 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
40704
41205
  scheduled_end_time: string | null;
40705
41206
  scheduled_start_time: string | null;
40706
41207
  sequence_number: number;
41208
+ signature_accepted_at: string | null;
41209
+ signature_by_user_id: string | null;
41210
+ signature_name: string | null;
40707
41211
  source_email_meta: import("../integrations/supabase/types").Json | null;
40708
41212
  source_mailbox_message_id: string | null;
40709
41213
  source_pdf_path: string | null;
@@ -40739,6 +41243,9 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
40739
41243
  scheduled_end_time?: string | null;
40740
41244
  scheduled_start_time?: string | null;
40741
41245
  sequence_number: number;
41246
+ signature_accepted_at?: string | null;
41247
+ signature_by_user_id?: string | null;
41248
+ signature_name?: string | null;
40742
41249
  source_email_meta?: import("../integrations/supabase/types").Json | null;
40743
41250
  source_mailbox_message_id?: string | null;
40744
41251
  source_pdf_path?: string | null;
@@ -40774,6 +41281,9 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
40774
41281
  scheduled_end_time?: string | null;
40775
41282
  scheduled_start_time?: string | null;
40776
41283
  sequence_number?: number;
41284
+ signature_accepted_at?: string | null;
41285
+ signature_by_user_id?: string | null;
41286
+ signature_name?: string | null;
40777
41287
  source_email_meta?: import("../integrations/supabase/types").Json | null;
40778
41288
  source_mailbox_message_id?: string | null;
40779
41289
  source_pdf_path?: string | null;
@@ -41290,6 +41800,114 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
41290
41800
  };
41291
41801
  Relationships: [];
41292
41802
  };
41803
+ uren_facturen: {
41804
+ Row: {
41805
+ created_at: string | null;
41806
+ created_by: string | null;
41807
+ customer_id: string | null;
41808
+ customer_name: string | null;
41809
+ id: string | null;
41810
+ invoice_number: string | null;
41811
+ note: string | null;
41812
+ status: string | null;
41813
+ total_excl_cents: number | null;
41814
+ total_incl_cents: number | null;
41815
+ updated_at: string | null;
41816
+ vat_cents: number | null;
41817
+ vat_percentage: number | null;
41818
+ werkbon_id: string | null;
41819
+ };
41820
+ Insert: {
41821
+ created_at?: string | null;
41822
+ created_by?: string | null;
41823
+ customer_id?: string | null;
41824
+ customer_name?: string | null;
41825
+ id?: string | null;
41826
+ invoice_number?: string | null;
41827
+ note?: string | null;
41828
+ status?: string | null;
41829
+ total_excl_cents?: number | null;
41830
+ total_incl_cents?: number | null;
41831
+ updated_at?: string | null;
41832
+ vat_cents?: number | null;
41833
+ vat_percentage?: number | null;
41834
+ werkbon_id?: never;
41835
+ };
41836
+ Update: {
41837
+ created_at?: string | null;
41838
+ created_by?: string | null;
41839
+ customer_id?: string | null;
41840
+ customer_name?: string | null;
41841
+ id?: string | null;
41842
+ invoice_number?: string | null;
41843
+ note?: string | null;
41844
+ status?: string | null;
41845
+ total_excl_cents?: number | null;
41846
+ total_incl_cents?: number | null;
41847
+ updated_at?: string | null;
41848
+ vat_cents?: number | null;
41849
+ vat_percentage?: number | null;
41850
+ werkbon_id?: never;
41851
+ };
41852
+ Relationships: [{
41853
+ foreignKeyName: "invoices_customer_id_fkey";
41854
+ columns: ["customer_id"];
41855
+ isOneToOne: false;
41856
+ referencedRelation: "itk_customers";
41857
+ referencedColumns: ["id"];
41858
+ }];
41859
+ };
41860
+ uren_factuur_regels: {
41861
+ Row: {
41862
+ created_at: string | null;
41863
+ description: string | null;
41864
+ factuur_id: string | null;
41865
+ id: string | null;
41866
+ kind: string | null;
41867
+ quantity: number | null;
41868
+ sort_order: number | null;
41869
+ total_cents: number | null;
41870
+ unit: string | null;
41871
+ unit_price_cents: number | null;
41872
+ };
41873
+ Insert: {
41874
+ created_at?: string | null;
41875
+ description?: string | null;
41876
+ factuur_id?: string | null;
41877
+ id?: string | null;
41878
+ kind?: string | null;
41879
+ quantity?: number | null;
41880
+ sort_order?: number | null;
41881
+ total_cents?: number | null;
41882
+ unit?: string | null;
41883
+ unit_price_cents?: number | null;
41884
+ };
41885
+ Update: {
41886
+ created_at?: string | null;
41887
+ description?: string | null;
41888
+ factuur_id?: string | null;
41889
+ id?: string | null;
41890
+ kind?: string | null;
41891
+ quantity?: number | null;
41892
+ sort_order?: number | null;
41893
+ total_cents?: number | null;
41894
+ unit?: string | null;
41895
+ unit_price_cents?: number | null;
41896
+ };
41897
+ Relationships: [{
41898
+ foreignKeyName: "invoice_items_invoice_id_fkey";
41899
+ columns: ["factuur_id"];
41900
+ isOneToOne: false;
41901
+ referencedRelation: "invoices";
41902
+ referencedColumns: ["id"];
41903
+ }, {
41904
+ foreignKeyName: "invoice_items_invoice_id_fkey";
41905
+ columns: ["factuur_id"];
41906
+ isOneToOne: false;
41907
+ referencedRelation: "uren_facturen";
41908
+ referencedColumns: ["id"];
41909
+ }];
41910
+ };
41293
41911
  v_external_customers_exact: {
41294
41912
  Row: {
41295
41913
  account_number: string | null;
@@ -41795,6 +42413,7 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
41795
42413
  gebruiker_id: string | null;
41796
42414
  gebruiker_naam: string;
41797
42415
  gestart_op: string | null;
42416
+ herkomst: string | null;
41798
42417
  id: string;
41799
42418
  idempotentie_sleutel: string | null;
41800
42419
  is_herprint: boolean;
@@ -41915,6 +42534,7 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
41915
42534
  gebruiker_id: string | null;
41916
42535
  gebruiker_naam: string;
41917
42536
  gestart_op: string | null;
42537
+ herkomst: string | null;
41918
42538
  id: string;
41919
42539
  idempotentie_sleutel: string | null;
41920
42540
  is_herprint: boolean;
@@ -42516,6 +43136,46 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
42516
43136
  Args: never;
42517
43137
  Returns: boolean;
42518
43138
  };
43139
+ invoice_create_from_source: {
43140
+ Args: {
43141
+ _payload?: import("../integrations/supabase/types").Json;
43142
+ _source_id: string;
43143
+ _source_type: string;
43144
+ };
43145
+ Returns: import("../integrations/supabase/types").Json;
43146
+ };
43147
+ invoice_get_billable_lines: {
43148
+ Args: {
43149
+ _invoice_id: string;
43150
+ };
43151
+ Returns: import("../integrations/supabase/types").Json;
43152
+ };
43153
+ invoice_get_for_source: {
43154
+ Args: {
43155
+ _source_id: string;
43156
+ _source_type: string;
43157
+ };
43158
+ Returns: import("../integrations/supabase/types").Json;
43159
+ };
43160
+ invoice_get_summary: {
43161
+ Args: {
43162
+ _invoice_id: string;
43163
+ };
43164
+ Returns: import("../integrations/supabase/types").Json;
43165
+ };
43166
+ invoice_list_sources: {
43167
+ Args: {
43168
+ _limit?: number;
43169
+ _source_type?: string;
43170
+ };
43171
+ Returns: import("../integrations/supabase/types").Json;
43172
+ };
43173
+ invoice_recalc_totals: {
43174
+ Args: {
43175
+ _invoice_id: string;
43176
+ };
43177
+ Returns: import("../integrations/supabase/types").Json;
43178
+ };
42519
43179
  is_authenticated: {
42520
43180
  Args: never;
42521
43181
  Returns: boolean;
@@ -42584,6 +43244,29 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
42584
43244
  roles: string[];
42585
43245
  }[];
42586
43246
  };
43247
+ list_monteur_absences: {
43248
+ Args: {
43249
+ _from: string;
43250
+ _to: string;
43251
+ };
43252
+ Returns: {
43253
+ absence_date: string;
43254
+ end_time: string;
43255
+ full_day: boolean;
43256
+ kind: string;
43257
+ monteur_id: string;
43258
+ start_time: string;
43259
+ }[];
43260
+ };
43261
+ list_monteurs: {
43262
+ Args: never;
43263
+ Returns: {
43264
+ avatar_url: string;
43265
+ display_name: string;
43266
+ email: string;
43267
+ id: string;
43268
+ }[];
43269
+ };
42587
43270
  list_my_planning_items: {
42588
43271
  Args: {
42589
43272
  _from: string;
@@ -42995,6 +43678,23 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
42995
43678
  };
42996
43679
  Returns: string;
42997
43680
  };
43681
+ logistics_floriday_finish_push_v2: {
43682
+ Args: {
43683
+ _error?: string;
43684
+ _error_code?: string;
43685
+ _fulfillment_order_id?: string;
43686
+ _gateway_status?: number;
43687
+ _id: string;
43688
+ _max_age_hours?: number;
43689
+ _max_attempts?: number;
43690
+ _ok: boolean;
43691
+ _permanent?: boolean;
43692
+ _response?: import("../integrations/supabase/types").Json;
43693
+ _revision: number;
43694
+ _sent_hash?: string;
43695
+ };
43696
+ Returns: string;
43697
+ };
42998
43698
  logistics_floriday_prune_pushes: {
42999
43699
  Args: {
43000
43700
  _days?: number;
@@ -43537,6 +44237,13 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
43537
44237
  isSetofReturn: false;
43538
44238
  };
43539
44239
  };
44240
+ pick_cleanup_maintenance: {
44241
+ Args: {
44242
+ _heartbeat_hours?: number;
44243
+ _log_days?: number;
44244
+ };
44245
+ Returns: import("../integrations/supabase/types").Json;
44246
+ };
43540
44247
  pick_complete_print: {
43541
44248
  Args: {
43542
44249
  _printer_id: string;
@@ -43588,6 +44295,14 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
43588
44295
  Args: never;
43589
44296
  Returns: string;
43590
44297
  };
44298
+ pick_day_counts: {
44299
+ Args: {
44300
+ _pick_day?: string;
44301
+ _screen_id?: string;
44302
+ _station_id?: string;
44303
+ };
44304
+ Returns: import("../integrations/supabase/types").Json;
44305
+ };
43591
44306
  pick_document_layout_data: {
43592
44307
  Args: {
43593
44308
  _layout_id: string;
@@ -43625,6 +44340,14 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
43625
44340
  };
43626
44341
  Returns: undefined;
43627
44342
  };
44343
+ pick_reprint_document: {
44344
+ Args: {
44345
+ _queue_item_id: string;
44346
+ _session_id: string;
44347
+ _throttle_seconds?: number;
44348
+ };
44349
+ Returns: string;
44350
+ };
43628
44351
  pick_reset_print: {
43629
44352
  Args: {
43630
44353
  _queue_item_id: string;
@@ -43690,6 +44413,12 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
43690
44413
  };
43691
44414
  Returns: string;
43692
44415
  };
44416
+ pick_sync_queue_throttled: {
44417
+ Args: {
44418
+ _min_seconds?: number;
44419
+ };
44420
+ Returns: import("../integrations/supabase/types").Json;
44421
+ };
43693
44422
  pickstation_get_orders_raw: {
43694
44423
  Args: never;
43695
44424
  Returns: import("../integrations/supabase/types").Json;
@@ -43835,6 +44564,12 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
43835
44564
  };
43836
44565
  Returns: boolean;
43837
44566
  };
44567
+ release_stale_order_invoice_links: {
44568
+ Args: {
44569
+ _minutes?: number;
44570
+ };
44571
+ Returns: number;
44572
+ };
43838
44573
  reorder_customer_price_groups: {
43839
44574
  Args: {
43840
44575
  _ids: string[];
@@ -44353,6 +45088,20 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
44353
45088
  };
44354
45089
  Returns: undefined;
44355
45090
  };
45091
+ twinfield_deactivate_connection: {
45092
+ Args: {
45093
+ p_connection_id: string;
45094
+ p_user_id: string;
45095
+ };
45096
+ Returns: import("../integrations/supabase/types").Json;
45097
+ };
45098
+ twinfield_handle_administration_change: {
45099
+ Args: {
45100
+ _administration_code: string;
45101
+ _user_id: string;
45102
+ };
45103
+ Returns: undefined;
45104
+ };
44356
45105
  twinfield_prune_push_queue: {
44357
45106
  Args: never;
44358
45107
  Returns: number;
@@ -44372,10 +45121,11 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
44372
45121
  p_company_name?: string;
44373
45122
  p_environment: string;
44374
45123
  p_office_code?: string;
45124
+ p_reset_sync?: boolean;
44375
45125
  p_status?: string;
44376
45126
  p_user_id: string;
44377
45127
  };
44378
- Returns: string;
45128
+ Returns: import("../integrations/supabase/types").Json;
44379
45129
  };
44380
45130
  upsert_auto_fulfillment_log: {
44381
45131
  Args: {
@@ -47204,6 +47954,42 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
47204
47954
  };
47205
47955
  Relationships: [];
47206
47956
  };
47957
+ document_bronregels: {
47958
+ Row: {
47959
+ bron: string;
47960
+ created_at: string;
47961
+ documenttype: string;
47962
+ herkomst: string;
47963
+ id: string;
47964
+ layout_id: string | null;
47965
+ updated_at: string;
47966
+ };
47967
+ Insert: {
47968
+ bron?: string;
47969
+ created_at?: string;
47970
+ documenttype: string;
47971
+ herkomst: string;
47972
+ id?: string;
47973
+ layout_id?: string | null;
47974
+ updated_at?: string;
47975
+ };
47976
+ Update: {
47977
+ bron?: string;
47978
+ created_at?: string;
47979
+ documenttype?: string;
47980
+ herkomst?: string;
47981
+ id?: string;
47982
+ layout_id?: string | null;
47983
+ updated_at?: string;
47984
+ };
47985
+ Relationships: [{
47986
+ foreignKeyName: "document_bronregels_layout_id_fkey";
47987
+ columns: ["layout_id"];
47988
+ isOneToOne: false;
47989
+ referencedRelation: "document_layouts";
47990
+ referencedColumns: ["id"];
47991
+ }];
47992
+ };
47207
47993
  document_formaat_printers: {
47208
47994
  Row: {
47209
47995
  created_at: string;
@@ -47481,6 +48267,7 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
47481
48267
  Row: {
47482
48268
  actief: boolean;
47483
48269
  breedte_mm: number;
48270
+ bron: string;
47484
48271
  config: import("../integrations/supabase/types").Json;
47485
48272
  created_at: string;
47486
48273
  created_by: string | null;
@@ -47498,12 +48285,14 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
47498
48285
  orientatie: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_orientation"];
47499
48286
  page_settings: import("../integrations/supabase/types").Json;
47500
48287
  papierformaat: string;
48288
+ systeem: boolean;
47501
48289
  thumbnail_url: string | null;
47502
48290
  updated_at: string;
47503
48291
  };
47504
48292
  Insert: {
47505
48293
  actief?: boolean;
47506
48294
  breedte_mm?: number;
48295
+ bron?: string;
47507
48296
  config?: import("../integrations/supabase/types").Json;
47508
48297
  created_at?: string;
47509
48298
  created_by?: string | null;
@@ -47521,12 +48310,14 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
47521
48310
  orientatie?: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_orientation"];
47522
48311
  page_settings?: import("../integrations/supabase/types").Json;
47523
48312
  papierformaat?: string;
48313
+ systeem?: boolean;
47524
48314
  thumbnail_url?: string | null;
47525
48315
  updated_at?: string;
47526
48316
  };
47527
48317
  Update: {
47528
48318
  actief?: boolean;
47529
48319
  breedte_mm?: number;
48320
+ bron?: string;
47530
48321
  config?: import("../integrations/supabase/types").Json;
47531
48322
  created_at?: string;
47532
48323
  created_by?: string | null;
@@ -47544,11 +48335,48 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
47544
48335
  orientatie?: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_orientation"];
47545
48336
  page_settings?: import("../integrations/supabase/types").Json;
47546
48337
  papierformaat?: string;
48338
+ systeem?: boolean;
47547
48339
  thumbnail_url?: string | null;
47548
48340
  updated_at?: string;
47549
48341
  };
47550
48342
  Relationships: [];
47551
48343
  };
48344
+ document_werkplek_printers: {
48345
+ Row: {
48346
+ created_at: string;
48347
+ documenttype: string;
48348
+ id: string;
48349
+ papierformaat: string | null;
48350
+ printer_id: string | null;
48351
+ updated_at: string;
48352
+ werkplek: string;
48353
+ };
48354
+ Insert: {
48355
+ created_at?: string;
48356
+ documenttype: string;
48357
+ id?: string;
48358
+ papierformaat?: string | null;
48359
+ printer_id?: string | null;
48360
+ updated_at?: string;
48361
+ werkplek: string;
48362
+ };
48363
+ Update: {
48364
+ created_at?: string;
48365
+ documenttype?: string;
48366
+ id?: string;
48367
+ papierformaat?: string | null;
48368
+ printer_id?: string | null;
48369
+ updated_at?: string;
48370
+ werkplek?: string;
48371
+ };
48372
+ Relationships: [{
48373
+ foreignKeyName: "document_werkplek_printers_printer_id_fkey";
48374
+ columns: ["printer_id"];
48375
+ isOneToOne: false;
48376
+ referencedRelation: "printers";
48377
+ referencedColumns: ["id"];
48378
+ }];
48379
+ };
47552
48380
  email_auth_connections: {
47553
48381
  Row: {
47554
48382
  access_token_encrypted: string | null;
@@ -49490,42 +50318,6 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
49490
50318
  };
49491
50319
  Relationships: [];
49492
50320
  };
49493
- facturen: {
49494
- Row: {
49495
- bedrag_incl_btw: number;
49496
- created_at: string;
49497
- datum: string;
49498
- factuurnummer: string;
49499
- id: string;
49500
- klantnaam: string;
49501
- status: string;
49502
- updated_at: string;
49503
- user_id: string;
49504
- };
49505
- Insert: {
49506
- bedrag_incl_btw: number;
49507
- created_at?: string;
49508
- datum?: string;
49509
- factuurnummer: string;
49510
- id?: string;
49511
- klantnaam: string;
49512
- status?: string;
49513
- updated_at?: string;
49514
- user_id?: string;
49515
- };
49516
- Update: {
49517
- bedrag_incl_btw?: number;
49518
- created_at?: string;
49519
- datum?: string;
49520
- factuurnummer?: string;
49521
- id?: string;
49522
- klantnaam?: string;
49523
- status?: string;
49524
- updated_at?: string;
49525
- user_id?: string;
49526
- };
49527
- Relationships: [];
49528
- };
49529
50321
  floricode_connection_settings: {
49530
50322
  Row: {
49531
50323
  catalog_key: string | null;
@@ -51830,8 +52622,63 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
51830
52622
  };
51831
52623
  Relationships: [];
51832
52624
  };
52625
+ invoice_items: {
52626
+ Row: {
52627
+ created_at: string;
52628
+ description: string;
52629
+ id: string;
52630
+ invoice_id: string;
52631
+ kind: string;
52632
+ quantity: number;
52633
+ sort_order: number;
52634
+ source_line_ref: string | null;
52635
+ total_cents: number;
52636
+ unit: string;
52637
+ unit_price_cents: number;
52638
+ };
52639
+ Insert: {
52640
+ created_at?: string;
52641
+ description?: string;
52642
+ id?: string;
52643
+ invoice_id: string;
52644
+ kind?: string;
52645
+ quantity?: number;
52646
+ sort_order?: number;
52647
+ source_line_ref?: string | null;
52648
+ total_cents?: number;
52649
+ unit?: string;
52650
+ unit_price_cents?: number;
52651
+ };
52652
+ Update: {
52653
+ created_at?: string;
52654
+ description?: string;
52655
+ id?: string;
52656
+ invoice_id?: string;
52657
+ kind?: string;
52658
+ quantity?: number;
52659
+ sort_order?: number;
52660
+ source_line_ref?: string | null;
52661
+ total_cents?: number;
52662
+ unit?: string;
52663
+ unit_price_cents?: number;
52664
+ };
52665
+ Relationships: [{
52666
+ foreignKeyName: "invoice_items_invoice_id_fkey";
52667
+ columns: ["invoice_id"];
52668
+ isOneToOne: false;
52669
+ referencedRelation: "invoices";
52670
+ referencedColumns: ["id"];
52671
+ }, {
52672
+ foreignKeyName: "invoice_items_invoice_id_fkey";
52673
+ columns: ["invoice_id"];
52674
+ isOneToOne: false;
52675
+ referencedRelation: "uren_facturen";
52676
+ referencedColumns: ["id"];
52677
+ }];
52678
+ };
51833
52679
  invoice_post_idempotency: {
51834
52680
  Row: {
52681
+ administration_code: string;
51835
52682
  client_request_id: string;
51836
52683
  completed_at: string | null;
51837
52684
  created_at: string;
@@ -51841,6 +52688,7 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
51841
52688
  user_id: string;
51842
52689
  };
51843
52690
  Insert: {
52691
+ administration_code?: string;
51844
52692
  client_request_id: string;
51845
52693
  completed_at?: string | null;
51846
52694
  created_at?: string;
@@ -51850,6 +52698,7 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
51850
52698
  user_id: string;
51851
52699
  };
51852
52700
  Update: {
52701
+ administration_code?: string;
51853
52702
  client_request_id?: string;
51854
52703
  completed_at?: string | null;
51855
52704
  created_at?: string;
@@ -52055,6 +52904,75 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
52055
52904
  };
52056
52905
  Relationships: [];
52057
52906
  };
52907
+ invoices: {
52908
+ Row: {
52909
+ created_at: string;
52910
+ created_by: string | null;
52911
+ customer_id: string | null;
52912
+ customer_name: string | null;
52913
+ due_date: string | null;
52914
+ id: string;
52915
+ invoice_date: string;
52916
+ invoice_number: string | null;
52917
+ note: string | null;
52918
+ source_number: string | null;
52919
+ source_ref: string | null;
52920
+ source_type: string;
52921
+ status: string;
52922
+ subtotal_cents: number;
52923
+ total_cents: number;
52924
+ updated_at: string;
52925
+ vat_cents: number;
52926
+ vat_rate: number;
52927
+ };
52928
+ Insert: {
52929
+ created_at?: string;
52930
+ created_by?: string | null;
52931
+ customer_id?: string | null;
52932
+ customer_name?: string | null;
52933
+ due_date?: string | null;
52934
+ id?: string;
52935
+ invoice_date?: string;
52936
+ invoice_number?: string | null;
52937
+ note?: string | null;
52938
+ source_number?: string | null;
52939
+ source_ref?: string | null;
52940
+ source_type?: string;
52941
+ status?: string;
52942
+ subtotal_cents?: number;
52943
+ total_cents?: number;
52944
+ updated_at?: string;
52945
+ vat_cents?: number;
52946
+ vat_rate?: number;
52947
+ };
52948
+ Update: {
52949
+ created_at?: string;
52950
+ created_by?: string | null;
52951
+ customer_id?: string | null;
52952
+ customer_name?: string | null;
52953
+ due_date?: string | null;
52954
+ id?: string;
52955
+ invoice_date?: string;
52956
+ invoice_number?: string | null;
52957
+ note?: string | null;
52958
+ source_number?: string | null;
52959
+ source_ref?: string | null;
52960
+ source_type?: string;
52961
+ status?: string;
52962
+ subtotal_cents?: number;
52963
+ total_cents?: number;
52964
+ updated_at?: string;
52965
+ vat_cents?: number;
52966
+ vat_rate?: number;
52967
+ };
52968
+ Relationships: [{
52969
+ foreignKeyName: "invoices_customer_id_fkey";
52970
+ columns: ["customer_id"];
52971
+ isOneToOne: false;
52972
+ referencedRelation: "itk_customers";
52973
+ referencedColumns: ["id"];
52974
+ }];
52975
+ };
52058
52976
  itk_contact_persons: {
52059
52977
  Row: {
52060
52978
  created_at: string;
@@ -53402,6 +54320,9 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
53402
54320
  id: string;
53403
54321
  last_error: string | null;
53404
54322
  last_error_at: string | null;
54323
+ last_error_code: string | null;
54324
+ last_gateway_status: number | null;
54325
+ last_response: import("../integrations/supabase/types").Json | null;
53405
54326
  last_sent_hash: string | null;
53406
54327
  locked_by: string | null;
53407
54328
  locked_until: string | null;
@@ -53422,6 +54343,9 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
53422
54343
  id?: string;
53423
54344
  last_error?: string | null;
53424
54345
  last_error_at?: string | null;
54346
+ last_error_code?: string | null;
54347
+ last_gateway_status?: number | null;
54348
+ last_response?: import("../integrations/supabase/types").Json | null;
53425
54349
  last_sent_hash?: string | null;
53426
54350
  locked_by?: string | null;
53427
54351
  locked_until?: string | null;
@@ -53442,6 +54366,9 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
53442
54366
  id?: string;
53443
54367
  last_error?: string | null;
53444
54368
  last_error_at?: string | null;
54369
+ last_error_code?: string | null;
54370
+ last_gateway_status?: number | null;
54371
+ last_response?: import("../integrations/supabase/types").Json | null;
53445
54372
  last_sent_hash?: string | null;
53446
54373
  locked_by?: string | null;
53447
54374
  locked_until?: string | null;
@@ -54995,6 +55922,7 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
54995
55922
  enforce: boolean;
54996
55923
  is_active: boolean;
54997
55924
  last_seen_at: string;
55925
+ missing_count: number;
54998
55926
  module_id: string;
54999
55927
  name: string;
55000
55928
  shell_id: string | null;
@@ -55005,6 +55933,7 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
55005
55933
  enforce?: boolean;
55006
55934
  is_active?: boolean;
55007
55935
  last_seen_at?: string;
55936
+ missing_count?: number;
55008
55937
  module_id: string;
55009
55938
  name: string;
55010
55939
  shell_id?: string | null;
@@ -55015,6 +55944,7 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
55015
55944
  enforce?: boolean;
55016
55945
  is_active?: boolean;
55017
55946
  last_seen_at?: string;
55947
+ missing_count?: number;
55018
55948
  module_id?: string;
55019
55949
  name?: string;
55020
55950
  shell_id?: string | null;
@@ -56014,6 +56944,7 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
56014
56944
  };
56015
56945
  order_invoice_links: {
56016
56946
  Row: {
56947
+ administration_code: string | null;
56017
56948
  attempts: number;
56018
56949
  created_at: string;
56019
56950
  error_message: string | null;
@@ -56026,6 +56957,7 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
56026
56957
  updated_at: string;
56027
56958
  };
56028
56959
  Insert: {
56960
+ administration_code?: string | null;
56029
56961
  attempts?: number;
56030
56962
  created_at?: string;
56031
56963
  error_message?: string | null;
@@ -56038,6 +56970,7 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
56038
56970
  updated_at?: string;
56039
56971
  };
56040
56972
  Update: {
56973
+ administration_code?: string | null;
56041
56974
  attempts?: number;
56042
56975
  created_at?: string;
56043
56976
  error_message?: string | null;
@@ -57203,6 +58136,27 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
57203
58136
  referencedColumns: ["id"];
57204
58137
  }];
57205
58138
  };
58139
+ pick_sync_state: {
58140
+ Row: {
58141
+ id: boolean;
58142
+ last_cleanup_at: string | null;
58143
+ last_sync_at: string | null;
58144
+ updated_at: string;
58145
+ };
58146
+ Insert: {
58147
+ id?: boolean;
58148
+ last_cleanup_at?: string | null;
58149
+ last_sync_at?: string | null;
58150
+ updated_at?: string;
58151
+ };
58152
+ Update: {
58153
+ id?: boolean;
58154
+ last_cleanup_at?: string | null;
58155
+ last_sync_at?: string | null;
58156
+ updated_at?: string;
58157
+ };
58158
+ Relationships: [];
58159
+ };
57206
58160
  pick_task_document_types: {
57207
58161
  Row: {
57208
58162
  created_at: string;
@@ -57485,6 +58439,7 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
57485
58439
  gebruiker_id: string | null;
57486
58440
  gebruiker_naam: string;
57487
58441
  gestart_op: string | null;
58442
+ herkomst: string | null;
57488
58443
  id: string;
57489
58444
  idempotentie_sleutel: string | null;
57490
58445
  is_herprint: boolean;
@@ -57514,6 +58469,7 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
57514
58469
  gebruiker_id?: string | null;
57515
58470
  gebruiker_naam?: string;
57516
58471
  gestart_op?: string | null;
58472
+ herkomst?: string | null;
57517
58473
  id?: string;
57518
58474
  idempotentie_sleutel?: string | null;
57519
58475
  is_herprint?: boolean;
@@ -57543,6 +58499,7 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
57543
58499
  gebruiker_id?: string | null;
57544
58500
  gebruiker_naam?: string;
57545
58501
  gestart_op?: string | null;
58502
+ herkomst?: string | null;
57546
58503
  id?: string;
57547
58504
  idempotentie_sleutel?: string | null;
57548
58505
  is_herprint?: boolean;
@@ -60547,12 +61504,16 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
60547
61504
  company_name: string | null;
60548
61505
  connected_at: string | null;
60549
61506
  created_at: string;
61507
+ disconnected_at: string | null;
60550
61508
  environment: string;
60551
61509
  id: string;
61510
+ initial_sync_completed_at: string | null;
61511
+ initial_sync_started_at: string | null;
60552
61512
  is_active: boolean;
60553
61513
  label: string | null;
60554
61514
  office_code: string | null;
60555
61515
  redirect_uri: string | null;
61516
+ superseded_at: string | null;
60556
61517
  updated_at: string;
60557
61518
  user_id: string;
60558
61519
  };
@@ -60563,12 +61524,16 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
60563
61524
  company_name?: string | null;
60564
61525
  connected_at?: string | null;
60565
61526
  created_at?: string;
61527
+ disconnected_at?: string | null;
60566
61528
  environment: string;
60567
61529
  id?: string;
61530
+ initial_sync_completed_at?: string | null;
61531
+ initial_sync_started_at?: string | null;
60568
61532
  is_active?: boolean;
60569
61533
  label?: string | null;
60570
61534
  office_code?: string | null;
60571
61535
  redirect_uri?: string | null;
61536
+ superseded_at?: string | null;
60572
61537
  updated_at?: string;
60573
61538
  user_id: string;
60574
61539
  };
@@ -60579,12 +61544,16 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
60579
61544
  company_name?: string | null;
60580
61545
  connected_at?: string | null;
60581
61546
  created_at?: string;
61547
+ disconnected_at?: string | null;
60582
61548
  environment?: string;
60583
61549
  id?: string;
61550
+ initial_sync_completed_at?: string | null;
61551
+ initial_sync_started_at?: string | null;
60584
61552
  is_active?: boolean;
60585
61553
  label?: string | null;
60586
61554
  office_code?: string | null;
60587
61555
  redirect_uri?: string | null;
61556
+ superseded_at?: string | null;
60588
61557
  updated_at?: string;
60589
61558
  user_id?: string;
60590
61559
  };
@@ -60644,6 +61613,7 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
60644
61613
  twinfield_customers: {
60645
61614
  Row: {
60646
61615
  address: string | null;
61616
+ administration_code: string;
60647
61617
  city: string | null;
60648
61618
  country: string | null;
60649
61619
  created_at: string;
@@ -60663,6 +61633,7 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
60663
61633
  };
60664
61634
  Insert: {
60665
61635
  address?: string | null;
61636
+ administration_code?: string;
60666
61637
  city?: string | null;
60667
61638
  country?: string | null;
60668
61639
  created_at?: string;
@@ -60682,6 +61653,7 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
60682
61653
  };
60683
61654
  Update: {
60684
61655
  address?: string | null;
61656
+ administration_code?: string;
60685
61657
  city?: string | null;
60686
61658
  country?: string | null;
60687
61659
  created_at?: string;
@@ -60895,7 +61867,9 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
60895
61867
  };
60896
61868
  twinfield_invoice_settings: {
60897
61869
  Row: {
61870
+ administration_code: string | null;
60898
61871
  auto_invoice_enabled: boolean;
61872
+ auto_invoice_start_date: string | null;
60899
61873
  auto_invoice_trigger_statuses: string[];
60900
61874
  created_at: string;
60901
61875
  debtor_gl_account: string;
@@ -60909,15 +61883,19 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
60909
61883
  invoice_enabled_fo: boolean;
60910
61884
  invoice_enabled_ho: boolean;
60911
61885
  invoice_enabled_mo: boolean;
61886
+ needs_review: boolean;
60912
61887
  payment_gl_account: string;
60913
61888
  payment_journal_code: string;
61889
+ settings_confirmed_at: string | null;
60914
61890
  updated_at: string;
60915
61891
  user_id: string;
60916
61892
  vat_code_eu_reverse: string | null;
60917
61893
  vat_code_export: string | null;
60918
61894
  };
60919
61895
  Insert: {
61896
+ administration_code?: string | null;
60920
61897
  auto_invoice_enabled?: boolean;
61898
+ auto_invoice_start_date?: string | null;
60921
61899
  auto_invoice_trigger_statuses?: string[];
60922
61900
  created_at?: string;
60923
61901
  debtor_gl_account?: string;
@@ -60931,15 +61909,19 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
60931
61909
  invoice_enabled_fo?: boolean;
60932
61910
  invoice_enabled_ho?: boolean;
60933
61911
  invoice_enabled_mo?: boolean;
61912
+ needs_review?: boolean;
60934
61913
  payment_gl_account?: string;
60935
61914
  payment_journal_code?: string;
61915
+ settings_confirmed_at?: string | null;
60936
61916
  updated_at?: string;
60937
61917
  user_id: string;
60938
61918
  vat_code_eu_reverse?: string | null;
60939
61919
  vat_code_export?: string | null;
60940
61920
  };
60941
61921
  Update: {
61922
+ administration_code?: string | null;
60942
61923
  auto_invoice_enabled?: boolean;
61924
+ auto_invoice_start_date?: string | null;
60943
61925
  auto_invoice_trigger_statuses?: string[];
60944
61926
  created_at?: string;
60945
61927
  debtor_gl_account?: string;
@@ -60953,8 +61935,10 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
60953
61935
  invoice_enabled_fo?: boolean;
60954
61936
  invoice_enabled_ho?: boolean;
60955
61937
  invoice_enabled_mo?: boolean;
61938
+ needs_review?: boolean;
60956
61939
  payment_gl_account?: string;
60957
61940
  payment_journal_code?: string;
61941
+ settings_confirmed_at?: string | null;
60958
61942
  updated_at?: string;
60959
61943
  user_id?: string;
60960
61944
  vat_code_eu_reverse?: string | null;
@@ -61559,114 +62543,6 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
61559
62543
  };
61560
62544
  Relationships: [];
61561
62545
  };
61562
- uren_facturen: {
61563
- Row: {
61564
- created_at: string;
61565
- created_by: string | null;
61566
- customer_id: string | null;
61567
- customer_name: string | null;
61568
- id: string;
61569
- invoice_number: string | null;
61570
- note: string | null;
61571
- status: string;
61572
- total_excl_cents: number;
61573
- total_incl_cents: number;
61574
- updated_at: string;
61575
- vat_cents: number;
61576
- vat_percentage: number;
61577
- werkbon_id: string | null;
61578
- };
61579
- Insert: {
61580
- created_at?: string;
61581
- created_by?: string | null;
61582
- customer_id?: string | null;
61583
- customer_name?: string | null;
61584
- id?: string;
61585
- invoice_number?: string | null;
61586
- note?: string | null;
61587
- status?: string;
61588
- total_excl_cents?: number;
61589
- total_incl_cents?: number;
61590
- updated_at?: string;
61591
- vat_cents?: number;
61592
- vat_percentage?: number;
61593
- werkbon_id?: string | null;
61594
- };
61595
- Update: {
61596
- created_at?: string;
61597
- created_by?: string | null;
61598
- customer_id?: string | null;
61599
- customer_name?: string | null;
61600
- id?: string;
61601
- invoice_number?: string | null;
61602
- note?: string | null;
61603
- status?: string;
61604
- total_excl_cents?: number;
61605
- total_incl_cents?: number;
61606
- updated_at?: string;
61607
- vat_cents?: number;
61608
- vat_percentage?: number;
61609
- werkbon_id?: string | null;
61610
- };
61611
- Relationships: [{
61612
- foreignKeyName: "uren_facturen_customer_id_fkey";
61613
- columns: ["customer_id"];
61614
- isOneToOne: false;
61615
- referencedRelation: "itk_customers";
61616
- referencedColumns: ["id"];
61617
- }, {
61618
- foreignKeyName: "uren_facturen_werkbon_id_fkey";
61619
- columns: ["werkbon_id"];
61620
- isOneToOne: true;
61621
- referencedRelation: "werkbonnen";
61622
- referencedColumns: ["id"];
61623
- }];
61624
- };
61625
- uren_factuur_regels: {
61626
- Row: {
61627
- created_at: string;
61628
- description: string;
61629
- factuur_id: string;
61630
- id: string;
61631
- kind: string | null;
61632
- quantity: number;
61633
- sort_order: number;
61634
- total_cents: number;
61635
- unit: string;
61636
- unit_price_cents: number;
61637
- };
61638
- Insert: {
61639
- created_at?: string;
61640
- description: string;
61641
- factuur_id: string;
61642
- id?: string;
61643
- kind?: string | null;
61644
- quantity?: number;
61645
- sort_order?: number;
61646
- total_cents?: number;
61647
- unit?: string;
61648
- unit_price_cents?: number;
61649
- };
61650
- Update: {
61651
- created_at?: string;
61652
- description?: string;
61653
- factuur_id?: string;
61654
- id?: string;
61655
- kind?: string | null;
61656
- quantity?: number;
61657
- sort_order?: number;
61658
- total_cents?: number;
61659
- unit?: string;
61660
- unit_price_cents?: number;
61661
- };
61662
- Relationships: [{
61663
- foreignKeyName: "uren_factuur_regels_factuur_id_fkey";
61664
- columns: ["factuur_id"];
61665
- isOneToOne: false;
61666
- referencedRelation: "uren_facturen";
61667
- referencedColumns: ["id"];
61668
- }];
61669
- };
61670
62546
  uren_offerte_regels: {
61671
62547
  Row: {
61672
62548
  created_at: string;
@@ -62920,6 +63796,9 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
62920
63796
  scheduled_end_time: string | null;
62921
63797
  scheduled_start_time: string | null;
62922
63798
  sequence_number: number;
63799
+ signature_accepted_at: string | null;
63800
+ signature_by_user_id: string | null;
63801
+ signature_name: string | null;
62923
63802
  source_email_meta: import("../integrations/supabase/types").Json | null;
62924
63803
  source_mailbox_message_id: string | null;
62925
63804
  source_pdf_path: string | null;
@@ -62955,6 +63834,9 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
62955
63834
  scheduled_end_time?: string | null;
62956
63835
  scheduled_start_time?: string | null;
62957
63836
  sequence_number: number;
63837
+ signature_accepted_at?: string | null;
63838
+ signature_by_user_id?: string | null;
63839
+ signature_name?: string | null;
62958
63840
  source_email_meta?: import("../integrations/supabase/types").Json | null;
62959
63841
  source_mailbox_message_id?: string | null;
62960
63842
  source_pdf_path?: string | null;
@@ -62990,6 +63872,9 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
62990
63872
  scheduled_end_time?: string | null;
62991
63873
  scheduled_start_time?: string | null;
62992
63874
  sequence_number?: number;
63875
+ signature_accepted_at?: string | null;
63876
+ signature_by_user_id?: string | null;
63877
+ signature_name?: string | null;
62993
63878
  source_email_meta?: import("../integrations/supabase/types").Json | null;
62994
63879
  source_mailbox_message_id?: string | null;
62995
63880
  source_pdf_path?: string | null;
@@ -63506,6 +64391,114 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
63506
64391
  };
63507
64392
  Relationships: [];
63508
64393
  };
64394
+ uren_facturen: {
64395
+ Row: {
64396
+ created_at: string | null;
64397
+ created_by: string | null;
64398
+ customer_id: string | null;
64399
+ customer_name: string | null;
64400
+ id: string | null;
64401
+ invoice_number: string | null;
64402
+ note: string | null;
64403
+ status: string | null;
64404
+ total_excl_cents: number | null;
64405
+ total_incl_cents: number | null;
64406
+ updated_at: string | null;
64407
+ vat_cents: number | null;
64408
+ vat_percentage: number | null;
64409
+ werkbon_id: string | null;
64410
+ };
64411
+ Insert: {
64412
+ created_at?: string | null;
64413
+ created_by?: string | null;
64414
+ customer_id?: string | null;
64415
+ customer_name?: string | null;
64416
+ id?: string | null;
64417
+ invoice_number?: string | null;
64418
+ note?: string | null;
64419
+ status?: string | null;
64420
+ total_excl_cents?: number | null;
64421
+ total_incl_cents?: number | null;
64422
+ updated_at?: string | null;
64423
+ vat_cents?: number | null;
64424
+ vat_percentage?: number | null;
64425
+ werkbon_id?: never;
64426
+ };
64427
+ Update: {
64428
+ created_at?: string | null;
64429
+ created_by?: string | null;
64430
+ customer_id?: string | null;
64431
+ customer_name?: string | null;
64432
+ id?: string | null;
64433
+ invoice_number?: string | null;
64434
+ note?: string | null;
64435
+ status?: string | null;
64436
+ total_excl_cents?: number | null;
64437
+ total_incl_cents?: number | null;
64438
+ updated_at?: string | null;
64439
+ vat_cents?: number | null;
64440
+ vat_percentage?: number | null;
64441
+ werkbon_id?: never;
64442
+ };
64443
+ Relationships: [{
64444
+ foreignKeyName: "invoices_customer_id_fkey";
64445
+ columns: ["customer_id"];
64446
+ isOneToOne: false;
64447
+ referencedRelation: "itk_customers";
64448
+ referencedColumns: ["id"];
64449
+ }];
64450
+ };
64451
+ uren_factuur_regels: {
64452
+ Row: {
64453
+ created_at: string | null;
64454
+ description: string | null;
64455
+ factuur_id: string | null;
64456
+ id: string | null;
64457
+ kind: string | null;
64458
+ quantity: number | null;
64459
+ sort_order: number | null;
64460
+ total_cents: number | null;
64461
+ unit: string | null;
64462
+ unit_price_cents: number | null;
64463
+ };
64464
+ Insert: {
64465
+ created_at?: string | null;
64466
+ description?: string | null;
64467
+ factuur_id?: string | null;
64468
+ id?: string | null;
64469
+ kind?: string | null;
64470
+ quantity?: number | null;
64471
+ sort_order?: number | null;
64472
+ total_cents?: number | null;
64473
+ unit?: string | null;
64474
+ unit_price_cents?: number | null;
64475
+ };
64476
+ Update: {
64477
+ created_at?: string | null;
64478
+ description?: string | null;
64479
+ factuur_id?: string | null;
64480
+ id?: string | null;
64481
+ kind?: string | null;
64482
+ quantity?: number | null;
64483
+ sort_order?: number | null;
64484
+ total_cents?: number | null;
64485
+ unit?: string | null;
64486
+ unit_price_cents?: number | null;
64487
+ };
64488
+ Relationships: [{
64489
+ foreignKeyName: "invoice_items_invoice_id_fkey";
64490
+ columns: ["factuur_id"];
64491
+ isOneToOne: false;
64492
+ referencedRelation: "invoices";
64493
+ referencedColumns: ["id"];
64494
+ }, {
64495
+ foreignKeyName: "invoice_items_invoice_id_fkey";
64496
+ columns: ["factuur_id"];
64497
+ isOneToOne: false;
64498
+ referencedRelation: "uren_facturen";
64499
+ referencedColumns: ["id"];
64500
+ }];
64501
+ };
63509
64502
  v_external_customers_exact: {
63510
64503
  Row: {
63511
64504
  account_number: string | null;
@@ -64011,6 +65004,7 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
64011
65004
  gebruiker_id: string | null;
64012
65005
  gebruiker_naam: string;
64013
65006
  gestart_op: string | null;
65007
+ herkomst: string | null;
64014
65008
  id: string;
64015
65009
  idempotentie_sleutel: string | null;
64016
65010
  is_herprint: boolean;
@@ -64131,6 +65125,7 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
64131
65125
  gebruiker_id: string | null;
64132
65126
  gebruiker_naam: string;
64133
65127
  gestart_op: string | null;
65128
+ herkomst: string | null;
64134
65129
  id: string;
64135
65130
  idempotentie_sleutel: string | null;
64136
65131
  is_herprint: boolean;
@@ -64732,6 +65727,46 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
64732
65727
  Args: never;
64733
65728
  Returns: boolean;
64734
65729
  };
65730
+ invoice_create_from_source: {
65731
+ Args: {
65732
+ _payload?: import("../integrations/supabase/types").Json;
65733
+ _source_id: string;
65734
+ _source_type: string;
65735
+ };
65736
+ Returns: import("../integrations/supabase/types").Json;
65737
+ };
65738
+ invoice_get_billable_lines: {
65739
+ Args: {
65740
+ _invoice_id: string;
65741
+ };
65742
+ Returns: import("../integrations/supabase/types").Json;
65743
+ };
65744
+ invoice_get_for_source: {
65745
+ Args: {
65746
+ _source_id: string;
65747
+ _source_type: string;
65748
+ };
65749
+ Returns: import("../integrations/supabase/types").Json;
65750
+ };
65751
+ invoice_get_summary: {
65752
+ Args: {
65753
+ _invoice_id: string;
65754
+ };
65755
+ Returns: import("../integrations/supabase/types").Json;
65756
+ };
65757
+ invoice_list_sources: {
65758
+ Args: {
65759
+ _limit?: number;
65760
+ _source_type?: string;
65761
+ };
65762
+ Returns: import("../integrations/supabase/types").Json;
65763
+ };
65764
+ invoice_recalc_totals: {
65765
+ Args: {
65766
+ _invoice_id: string;
65767
+ };
65768
+ Returns: import("../integrations/supabase/types").Json;
65769
+ };
64735
65770
  is_authenticated: {
64736
65771
  Args: never;
64737
65772
  Returns: boolean;
@@ -64800,6 +65835,29 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
64800
65835
  roles: string[];
64801
65836
  }[];
64802
65837
  };
65838
+ list_monteur_absences: {
65839
+ Args: {
65840
+ _from: string;
65841
+ _to: string;
65842
+ };
65843
+ Returns: {
65844
+ absence_date: string;
65845
+ end_time: string;
65846
+ full_day: boolean;
65847
+ kind: string;
65848
+ monteur_id: string;
65849
+ start_time: string;
65850
+ }[];
65851
+ };
65852
+ list_monteurs: {
65853
+ Args: never;
65854
+ Returns: {
65855
+ avatar_url: string;
65856
+ display_name: string;
65857
+ email: string;
65858
+ id: string;
65859
+ }[];
65860
+ };
64803
65861
  list_my_planning_items: {
64804
65862
  Args: {
64805
65863
  _from: string;
@@ -65211,6 +66269,23 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
65211
66269
  };
65212
66270
  Returns: string;
65213
66271
  };
66272
+ logistics_floriday_finish_push_v2: {
66273
+ Args: {
66274
+ _error?: string;
66275
+ _error_code?: string;
66276
+ _fulfillment_order_id?: string;
66277
+ _gateway_status?: number;
66278
+ _id: string;
66279
+ _max_age_hours?: number;
66280
+ _max_attempts?: number;
66281
+ _ok: boolean;
66282
+ _permanent?: boolean;
66283
+ _response?: import("../integrations/supabase/types").Json;
66284
+ _revision: number;
66285
+ _sent_hash?: string;
66286
+ };
66287
+ Returns: string;
66288
+ };
65214
66289
  logistics_floriday_prune_pushes: {
65215
66290
  Args: {
65216
66291
  _days?: number;
@@ -65753,6 +66828,13 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
65753
66828
  isSetofReturn: false;
65754
66829
  };
65755
66830
  };
66831
+ pick_cleanup_maintenance: {
66832
+ Args: {
66833
+ _heartbeat_hours?: number;
66834
+ _log_days?: number;
66835
+ };
66836
+ Returns: import("../integrations/supabase/types").Json;
66837
+ };
65756
66838
  pick_complete_print: {
65757
66839
  Args: {
65758
66840
  _printer_id: string;
@@ -65804,6 +66886,14 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
65804
66886
  Args: never;
65805
66887
  Returns: string;
65806
66888
  };
66889
+ pick_day_counts: {
66890
+ Args: {
66891
+ _pick_day?: string;
66892
+ _screen_id?: string;
66893
+ _station_id?: string;
66894
+ };
66895
+ Returns: import("../integrations/supabase/types").Json;
66896
+ };
65807
66897
  pick_document_layout_data: {
65808
66898
  Args: {
65809
66899
  _layout_id: string;
@@ -65841,6 +66931,14 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
65841
66931
  };
65842
66932
  Returns: undefined;
65843
66933
  };
66934
+ pick_reprint_document: {
66935
+ Args: {
66936
+ _queue_item_id: string;
66937
+ _session_id: string;
66938
+ _throttle_seconds?: number;
66939
+ };
66940
+ Returns: string;
66941
+ };
65844
66942
  pick_reset_print: {
65845
66943
  Args: {
65846
66944
  _queue_item_id: string;
@@ -65906,6 +67004,12 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
65906
67004
  };
65907
67005
  Returns: string;
65908
67006
  };
67007
+ pick_sync_queue_throttled: {
67008
+ Args: {
67009
+ _min_seconds?: number;
67010
+ };
67011
+ Returns: import("../integrations/supabase/types").Json;
67012
+ };
65909
67013
  pickstation_get_orders_raw: {
65910
67014
  Args: never;
65911
67015
  Returns: import("../integrations/supabase/types").Json;
@@ -66051,6 +67155,12 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
66051
67155
  };
66052
67156
  Returns: boolean;
66053
67157
  };
67158
+ release_stale_order_invoice_links: {
67159
+ Args: {
67160
+ _minutes?: number;
67161
+ };
67162
+ Returns: number;
67163
+ };
66054
67164
  reorder_customer_price_groups: {
66055
67165
  Args: {
66056
67166
  _ids: string[];
@@ -66569,6 +67679,20 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
66569
67679
  };
66570
67680
  Returns: undefined;
66571
67681
  };
67682
+ twinfield_deactivate_connection: {
67683
+ Args: {
67684
+ p_connection_id: string;
67685
+ p_user_id: string;
67686
+ };
67687
+ Returns: import("../integrations/supabase/types").Json;
67688
+ };
67689
+ twinfield_handle_administration_change: {
67690
+ Args: {
67691
+ _administration_code: string;
67692
+ _user_id: string;
67693
+ };
67694
+ Returns: undefined;
67695
+ };
66572
67696
  twinfield_prune_push_queue: {
66573
67697
  Args: never;
66574
67698
  Returns: number;
@@ -66588,10 +67712,11 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
66588
67712
  p_company_name?: string;
66589
67713
  p_environment: string;
66590
67714
  p_office_code?: string;
67715
+ p_reset_sync?: boolean;
66591
67716
  p_status?: string;
66592
67717
  p_user_id: string;
66593
67718
  };
66594
- Returns: string;
67719
+ Returns: import("../integrations/supabase/types").Json;
66595
67720
  };
66596
67721
  upsert_auto_fulfillment_log: {
66597
67722
  Args: {