@flowselections/floriday-verkoop-module 1.0.44 → 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 (116) hide show
  1. package/dist-lib/components/floriday/FlorydaySyncHealthBanner.d.ts +9 -0
  2. package/dist-lib/components/floriday/FlorydaySyncHealthBanner.d.ts.map +1 -0
  3. package/dist-lib/components/floriday/FlorydaySyncHealthBanner.js +26 -0
  4. package/dist-lib/components/karindeling/AfmetingenTab.d.ts +6 -0
  5. package/dist-lib/components/karindeling/AfmetingenTab.d.ts.map +1 -0
  6. package/dist-lib/components/karindeling/AfmetingenTab.js +128 -0
  7. package/dist-lib/components/karindeling/KarindelingPage.d.ts +2 -0
  8. package/dist-lib/components/karindeling/KarindelingPage.d.ts.map +1 -0
  9. package/dist-lib/components/karindeling/KarindelingPage.js +102 -0
  10. package/dist-lib/components/ui/dropdown-menu.d.ts +9 -0
  11. package/dist-lib/components/ui/dropdown-menu.d.ts.map +1 -0
  12. package/dist-lib/components/ui/dropdown-menu.js +14 -0
  13. package/dist-lib/components/verkoop/AnalyticsCards.d.ts +1 -1
  14. package/dist-lib/components/verkoop/AnalyticsCards.d.ts.map +1 -1
  15. package/dist-lib/components/verkoop/AutoFulfillmentStatusCard.d.ts +1 -1
  16. package/dist-lib/components/verkoop/AutoFulfillmentStatusCard.d.ts.map +1 -1
  17. package/dist-lib/components/verkoop/CartAssignmentWizard.d.ts +1 -1
  18. package/dist-lib/components/verkoop/CartAssignmentWizard.d.ts.map +1 -1
  19. package/dist-lib/components/verkoop/CreateOrderDialog.d.ts +5 -0
  20. package/dist-lib/components/verkoop/CreateOrderDialog.d.ts.map +1 -0
  21. package/dist-lib/components/verkoop/CreateOrderDialog.js +33 -0
  22. package/dist-lib/components/verkoop/CreateOrderPage.d.ts +1 -1
  23. package/dist-lib/components/verkoop/CreateOrderPage.d.ts.map +1 -1
  24. package/dist-lib/components/verkoop/DiagnoseConnectionDialog.d.ts +1 -1
  25. package/dist-lib/components/verkoop/DiagnoseConnectionDialog.d.ts.map +1 -1
  26. package/dist-lib/components/verkoop/EditLocalOrderDialog.d.ts +1 -1
  27. package/dist-lib/components/verkoop/EditLocalOrderDialog.d.ts.map +1 -1
  28. package/dist-lib/components/verkoop/EngineBufferCard.d.ts +1 -1
  29. package/dist-lib/components/verkoop/EngineBufferCard.d.ts.map +1 -1
  30. package/dist-lib/components/verkoop/InvoiceTimingSettings.d.ts +1 -1
  31. package/dist-lib/components/verkoop/InvoiceTimingSettings.d.ts.map +1 -1
  32. package/dist-lib/components/verkoop/OrderAfleverbrievenCard.d.ts +1 -1
  33. package/dist-lib/components/verkoop/OrderAfleverbrievenCard.d.ts.map +1 -1
  34. package/dist-lib/components/verkoop/OrderCarrierPicker.d.ts +1 -1
  35. package/dist-lib/components/verkoop/OrderCarrierPicker.d.ts.map +1 -1
  36. package/dist-lib/components/verkoop/OrderControlStatusCard.d.ts +1 -1
  37. package/dist-lib/components/verkoop/OrderControlStatusCard.d.ts.map +1 -1
  38. package/dist-lib/components/verkoop/OrderKarindelingCard.d.ts +1 -1
  39. package/dist-lib/components/verkoop/OrderKarindelingCard.d.ts.map +1 -1
  40. package/dist-lib/components/verkoop/OrderPickupMomentPicker.d.ts +1 -1
  41. package/dist-lib/components/verkoop/OrderPickupMomentPicker.d.ts.map +1 -1
  42. package/dist-lib/components/verkoop/OrderShipmentsCard.d.ts +1 -1
  43. package/dist-lib/components/verkoop/OrderShipmentsCard.d.ts.map +1 -1
  44. package/dist-lib/components/verkoop/SalesOrderDetailPage.d.ts +1 -1
  45. package/dist-lib/components/verkoop/SalesOrderDetailPage.d.ts.map +1 -1
  46. package/dist-lib/components/verkoop/SalesOrderDetailView.d.ts +1 -1
  47. package/dist-lib/components/verkoop/SalesOrderDetailView.d.ts.map +1 -1
  48. package/dist-lib/components/verkoop/SalesOrdersFilterPanel.d.ts +1 -1
  49. package/dist-lib/components/verkoop/SalesOrdersFilterPanel.d.ts.map +1 -1
  50. package/dist-lib/components/verkoop/SalesOrdersFilters.d.ts +1 -1
  51. package/dist-lib/components/verkoop/SalesOrdersFilters.d.ts.map +1 -1
  52. package/dist-lib/components/verkoop/SalesOrdersTable.d.ts +1 -2
  53. package/dist-lib/components/verkoop/SalesOrdersTable.d.ts.map +1 -1
  54. package/dist-lib/components/verkoop/SearchableSelect.d.ts +1 -1
  55. package/dist-lib/components/verkoop/SearchableSelect.d.ts.map +1 -1
  56. package/dist-lib/components/verkoop/VerkoopOrdersPage.d.ts +1 -1
  57. package/dist-lib/components/verkoop/VerkoopOrdersPage.d.ts.map +1 -1
  58. package/dist-lib/components/verkoop/WeekCalendar.d.ts +1 -1
  59. package/dist-lib/components/verkoop/WeekCalendar.d.ts.map +1 -1
  60. package/dist-lib/integrations/supabase/auth-middleware.d.ts +520 -145
  61. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  62. package/dist-lib/integrations/supabase/client.d.ts +520 -145
  63. package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
  64. package/dist-lib/integrations/supabase/client.server.d.ts +520 -145
  65. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  66. package/dist-lib/integrations/supabase/types.d.ts +545 -161
  67. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  68. package/dist-lib/lib/cart-lock.functions.d.ts +520 -145
  69. package/dist-lib/lib/cart-lock.functions.d.ts.map +1 -1
  70. package/dist-lib/lib/cart-planning-settings.functions.d.ts +5720 -1595
  71. package/dist-lib/lib/cart-planning-settings.functions.d.ts.map +1 -1
  72. package/dist-lib/lib/cart-replan.functions.d.ts +1560 -435
  73. package/dist-lib/lib/cart-replan.functions.d.ts.map +1 -1
  74. package/dist-lib/lib/create-order.functions.d.ts +8840 -2465
  75. package/dist-lib/lib/create-order.functions.d.ts.map +1 -1
  76. package/dist-lib/lib/floriday/floriday.server.d.ts +14 -0
  77. package/dist-lib/lib/floriday/floriday.server.d.ts.map +1 -0
  78. package/dist-lib/lib/floriday/floriday.server.js +92 -0
  79. package/dist-lib/lib/floriday/sales-orders.functions.d.ts +4736 -0
  80. package/dist-lib/lib/floriday/sales-orders.functions.d.ts.map +1 -0
  81. package/dist-lib/lib/floriday/sales-orders.functions.js +193 -0
  82. package/dist-lib/lib/floriday-auto-fulfillment.functions.d.ts +1560 -435
  83. package/dist-lib/lib/floriday-auto-fulfillment.functions.d.ts.map +1 -1
  84. package/dist-lib/lib/floriday-logistic-labels.functions.d.ts +520 -145
  85. package/dist-lib/lib/floriday-logistic-labels.functions.d.ts.map +1 -1
  86. package/dist-lib/lib/floriday-mirror.functions.d.ts +520 -145
  87. package/dist-lib/lib/floriday-mirror.functions.d.ts.map +1 -1
  88. package/dist-lib/lib/floriday-public.functions.d.ts +3640 -1015
  89. package/dist-lib/lib/floriday-public.functions.d.ts.map +1 -1
  90. package/dist-lib/lib/floriday-writes.functions.d.ts +2600 -725
  91. package/dist-lib/lib/floriday-writes.functions.d.ts.map +1 -1
  92. package/dist-lib/lib/invoice-timing.functions.d.ts +2080 -580
  93. package/dist-lib/lib/invoice-timing.functions.d.ts.map +1 -1
  94. package/dist-lib/lib/load-carriers.functions.d.ts +520 -145
  95. package/dist-lib/lib/load-carriers.functions.d.ts.map +1 -1
  96. package/dist-lib/lib/logistics-engine.functions.d.ts +2600 -725
  97. package/dist-lib/lib/logistics-engine.functions.d.ts.map +1 -1
  98. package/dist-lib/lib/logistics-stock.functions.d.ts +1040 -290
  99. package/dist-lib/lib/logistics-stock.functions.d.ts.map +1 -1
  100. package/dist-lib/lib/order-addresses.functions.d.ts +520 -145
  101. package/dist-lib/lib/order-addresses.functions.d.ts.map +1 -1
  102. package/dist-lib/lib/order-buffers.functions.d.ts +1560 -435
  103. package/dist-lib/lib/order-buffers.functions.d.ts.map +1 -1
  104. package/dist-lib/lib/order-carrier.functions.d.ts +1040 -290
  105. package/dist-lib/lib/order-carrier.functions.d.ts.map +1 -1
  106. package/dist-lib/lib/order-pickup.functions.d.ts +1040 -290
  107. package/dist-lib/lib/order-pickup.functions.d.ts.map +1 -1
  108. package/dist-lib/lib/order-shipments.functions.d.ts +2080 -580
  109. package/dist-lib/lib/order-shipments.functions.d.ts.map +1 -1
  110. package/dist-lib/lib/salesorders-list.functions.d.ts +520 -145
  111. package/dist-lib/lib/salesorders-list.functions.d.ts.map +1 -1
  112. package/dist-lib/lib/salesorders.functions.d.ts +2600 -725
  113. package/dist-lib/lib/salesorders.functions.d.ts.map +1 -1
  114. package/dist-lib/lib/tradeitems.functions.d.ts +520 -145
  115. package/dist-lib/lib/tradeitems.functions.d.ts.map +1 -1
  116. package/package.json +3 -3
@@ -2794,6 +2794,42 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
2794
2794
  };
2795
2795
  Relationships: [];
2796
2796
  };
2797
+ document_bronregels: {
2798
+ Row: {
2799
+ bron: string;
2800
+ created_at: string;
2801
+ documenttype: string;
2802
+ herkomst: string;
2803
+ id: string;
2804
+ layout_id: string | null;
2805
+ updated_at: string;
2806
+ };
2807
+ Insert: {
2808
+ bron?: string;
2809
+ created_at?: string;
2810
+ documenttype: string;
2811
+ herkomst: string;
2812
+ id?: string;
2813
+ layout_id?: string | null;
2814
+ updated_at?: string;
2815
+ };
2816
+ Update: {
2817
+ bron?: string;
2818
+ created_at?: string;
2819
+ documenttype?: string;
2820
+ herkomst?: string;
2821
+ id?: string;
2822
+ layout_id?: string | null;
2823
+ updated_at?: string;
2824
+ };
2825
+ Relationships: [{
2826
+ foreignKeyName: "document_bronregels_layout_id_fkey";
2827
+ columns: ["layout_id"];
2828
+ isOneToOne: false;
2829
+ referencedRelation: "document_layouts";
2830
+ referencedColumns: ["id"];
2831
+ }];
2832
+ };
2797
2833
  document_formaat_printers: {
2798
2834
  Row: {
2799
2835
  created_at: string;
@@ -3071,6 +3107,7 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
3071
3107
  Row: {
3072
3108
  actief: boolean;
3073
3109
  breedte_mm: number;
3110
+ bron: string;
3074
3111
  config: import("../integrations/supabase/types").Json;
3075
3112
  created_at: string;
3076
3113
  created_by: string | null;
@@ -3088,12 +3125,14 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
3088
3125
  orientatie: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_orientation"];
3089
3126
  page_settings: import("../integrations/supabase/types").Json;
3090
3127
  papierformaat: string;
3128
+ systeem: boolean;
3091
3129
  thumbnail_url: string | null;
3092
3130
  updated_at: string;
3093
3131
  };
3094
3132
  Insert: {
3095
3133
  actief?: boolean;
3096
3134
  breedte_mm?: number;
3135
+ bron?: string;
3097
3136
  config?: import("../integrations/supabase/types").Json;
3098
3137
  created_at?: string;
3099
3138
  created_by?: string | null;
@@ -3111,12 +3150,14 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
3111
3150
  orientatie?: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_orientation"];
3112
3151
  page_settings?: import("../integrations/supabase/types").Json;
3113
3152
  papierformaat?: string;
3153
+ systeem?: boolean;
3114
3154
  thumbnail_url?: string | null;
3115
3155
  updated_at?: string;
3116
3156
  };
3117
3157
  Update: {
3118
3158
  actief?: boolean;
3119
3159
  breedte_mm?: number;
3160
+ bron?: string;
3120
3161
  config?: import("../integrations/supabase/types").Json;
3121
3162
  created_at?: string;
3122
3163
  created_by?: string | null;
@@ -3134,11 +3175,48 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
3134
3175
  orientatie?: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_orientation"];
3135
3176
  page_settings?: import("../integrations/supabase/types").Json;
3136
3177
  papierformaat?: string;
3178
+ systeem?: boolean;
3137
3179
  thumbnail_url?: string | null;
3138
3180
  updated_at?: string;
3139
3181
  };
3140
3182
  Relationships: [];
3141
3183
  };
3184
+ document_werkplek_printers: {
3185
+ Row: {
3186
+ created_at: string;
3187
+ documenttype: string;
3188
+ id: string;
3189
+ papierformaat: string | null;
3190
+ printer_id: string | null;
3191
+ updated_at: string;
3192
+ werkplek: string;
3193
+ };
3194
+ Insert: {
3195
+ created_at?: string;
3196
+ documenttype: string;
3197
+ id?: string;
3198
+ papierformaat?: string | null;
3199
+ printer_id?: string | null;
3200
+ updated_at?: string;
3201
+ werkplek: string;
3202
+ };
3203
+ Update: {
3204
+ created_at?: string;
3205
+ documenttype?: string;
3206
+ id?: string;
3207
+ papierformaat?: string | null;
3208
+ printer_id?: string | null;
3209
+ updated_at?: string;
3210
+ werkplek?: string;
3211
+ };
3212
+ Relationships: [{
3213
+ foreignKeyName: "document_werkplek_printers_printer_id_fkey";
3214
+ columns: ["printer_id"];
3215
+ isOneToOne: false;
3216
+ referencedRelation: "printers";
3217
+ referencedColumns: ["id"];
3218
+ }];
3219
+ };
3142
3220
  email_auth_connections: {
3143
3221
  Row: {
3144
3222
  access_token_encrypted: string | null;
@@ -5080,42 +5158,6 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
5080
5158
  };
5081
5159
  Relationships: [];
5082
5160
  };
5083
- facturen: {
5084
- Row: {
5085
- bedrag_incl_btw: number;
5086
- created_at: string;
5087
- datum: string;
5088
- factuurnummer: string;
5089
- id: string;
5090
- klantnaam: string;
5091
- status: string;
5092
- updated_at: string;
5093
- user_id: string;
5094
- };
5095
- Insert: {
5096
- bedrag_incl_btw: number;
5097
- created_at?: string;
5098
- datum?: string;
5099
- factuurnummer: string;
5100
- id?: string;
5101
- klantnaam: string;
5102
- status?: string;
5103
- updated_at?: string;
5104
- user_id?: string;
5105
- };
5106
- Update: {
5107
- bedrag_incl_btw?: number;
5108
- created_at?: string;
5109
- datum?: string;
5110
- factuurnummer?: string;
5111
- id?: string;
5112
- klantnaam?: string;
5113
- status?: string;
5114
- updated_at?: string;
5115
- user_id?: string;
5116
- };
5117
- Relationships: [];
5118
- };
5119
5161
  floricode_connection_settings: {
5120
5162
  Row: {
5121
5163
  catalog_key: string | null;
@@ -7420,8 +7462,63 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
7420
7462
  };
7421
7463
  Relationships: [];
7422
7464
  };
7465
+ invoice_items: {
7466
+ Row: {
7467
+ created_at: string;
7468
+ description: string;
7469
+ id: string;
7470
+ invoice_id: string;
7471
+ kind: string;
7472
+ quantity: number;
7473
+ sort_order: number;
7474
+ source_line_ref: string | null;
7475
+ total_cents: number;
7476
+ unit: string;
7477
+ unit_price_cents: number;
7478
+ };
7479
+ Insert: {
7480
+ created_at?: string;
7481
+ description?: string;
7482
+ id?: string;
7483
+ invoice_id: string;
7484
+ kind?: string;
7485
+ quantity?: number;
7486
+ sort_order?: number;
7487
+ source_line_ref?: string | null;
7488
+ total_cents?: number;
7489
+ unit?: string;
7490
+ unit_price_cents?: number;
7491
+ };
7492
+ Update: {
7493
+ created_at?: string;
7494
+ description?: string;
7495
+ id?: string;
7496
+ invoice_id?: string;
7497
+ kind?: string;
7498
+ quantity?: number;
7499
+ sort_order?: number;
7500
+ source_line_ref?: string | null;
7501
+ total_cents?: number;
7502
+ unit?: string;
7503
+ unit_price_cents?: number;
7504
+ };
7505
+ Relationships: [{
7506
+ foreignKeyName: "invoice_items_invoice_id_fkey";
7507
+ columns: ["invoice_id"];
7508
+ isOneToOne: false;
7509
+ referencedRelation: "invoices";
7510
+ referencedColumns: ["id"];
7511
+ }, {
7512
+ foreignKeyName: "invoice_items_invoice_id_fkey";
7513
+ columns: ["invoice_id"];
7514
+ isOneToOne: false;
7515
+ referencedRelation: "uren_facturen";
7516
+ referencedColumns: ["id"];
7517
+ }];
7518
+ };
7423
7519
  invoice_post_idempotency: {
7424
7520
  Row: {
7521
+ administration_code: string;
7425
7522
  client_request_id: string;
7426
7523
  completed_at: string | null;
7427
7524
  created_at: string;
@@ -7431,6 +7528,7 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
7431
7528
  user_id: string;
7432
7529
  };
7433
7530
  Insert: {
7531
+ administration_code?: string;
7434
7532
  client_request_id: string;
7435
7533
  completed_at?: string | null;
7436
7534
  created_at?: string;
@@ -7440,6 +7538,7 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
7440
7538
  user_id: string;
7441
7539
  };
7442
7540
  Update: {
7541
+ administration_code?: string;
7443
7542
  client_request_id?: string;
7444
7543
  completed_at?: string | null;
7445
7544
  created_at?: string;
@@ -7645,6 +7744,75 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
7645
7744
  };
7646
7745
  Relationships: [];
7647
7746
  };
7747
+ invoices: {
7748
+ Row: {
7749
+ created_at: string;
7750
+ created_by: string | null;
7751
+ customer_id: string | null;
7752
+ customer_name: string | null;
7753
+ due_date: string | null;
7754
+ id: string;
7755
+ invoice_date: string;
7756
+ invoice_number: string | null;
7757
+ note: string | null;
7758
+ source_number: string | null;
7759
+ source_ref: string | null;
7760
+ source_type: string;
7761
+ status: string;
7762
+ subtotal_cents: number;
7763
+ total_cents: number;
7764
+ updated_at: string;
7765
+ vat_cents: number;
7766
+ vat_rate: number;
7767
+ };
7768
+ Insert: {
7769
+ created_at?: string;
7770
+ created_by?: string | null;
7771
+ customer_id?: string | null;
7772
+ customer_name?: string | null;
7773
+ due_date?: string | null;
7774
+ id?: string;
7775
+ invoice_date?: string;
7776
+ invoice_number?: string | null;
7777
+ note?: string | null;
7778
+ source_number?: string | null;
7779
+ source_ref?: string | null;
7780
+ source_type?: string;
7781
+ status?: string;
7782
+ subtotal_cents?: number;
7783
+ total_cents?: number;
7784
+ updated_at?: string;
7785
+ vat_cents?: number;
7786
+ vat_rate?: number;
7787
+ };
7788
+ Update: {
7789
+ created_at?: string;
7790
+ created_by?: string | null;
7791
+ customer_id?: string | null;
7792
+ customer_name?: string | null;
7793
+ due_date?: string | null;
7794
+ id?: string;
7795
+ invoice_date?: string;
7796
+ invoice_number?: string | null;
7797
+ note?: string | null;
7798
+ source_number?: string | null;
7799
+ source_ref?: string | null;
7800
+ source_type?: string;
7801
+ status?: string;
7802
+ subtotal_cents?: number;
7803
+ total_cents?: number;
7804
+ updated_at?: string;
7805
+ vat_cents?: number;
7806
+ vat_rate?: number;
7807
+ };
7808
+ Relationships: [{
7809
+ foreignKeyName: "invoices_customer_id_fkey";
7810
+ columns: ["customer_id"];
7811
+ isOneToOne: false;
7812
+ referencedRelation: "itk_customers";
7813
+ referencedColumns: ["id"];
7814
+ }];
7815
+ };
7648
7816
  itk_contact_persons: {
7649
7817
  Row: {
7650
7818
  created_at: string;
@@ -8992,6 +9160,9 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
8992
9160
  id: string;
8993
9161
  last_error: string | null;
8994
9162
  last_error_at: string | null;
9163
+ last_error_code: string | null;
9164
+ last_gateway_status: number | null;
9165
+ last_response: import("../integrations/supabase/types").Json | null;
8995
9166
  last_sent_hash: string | null;
8996
9167
  locked_by: string | null;
8997
9168
  locked_until: string | null;
@@ -9012,6 +9183,9 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
9012
9183
  id?: string;
9013
9184
  last_error?: string | null;
9014
9185
  last_error_at?: string | null;
9186
+ last_error_code?: string | null;
9187
+ last_gateway_status?: number | null;
9188
+ last_response?: import("../integrations/supabase/types").Json | null;
9015
9189
  last_sent_hash?: string | null;
9016
9190
  locked_by?: string | null;
9017
9191
  locked_until?: string | null;
@@ -9032,6 +9206,9 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
9032
9206
  id?: string;
9033
9207
  last_error?: string | null;
9034
9208
  last_error_at?: string | null;
9209
+ last_error_code?: string | null;
9210
+ last_gateway_status?: number | null;
9211
+ last_response?: import("../integrations/supabase/types").Json | null;
9035
9212
  last_sent_hash?: string | null;
9036
9213
  locked_by?: string | null;
9037
9214
  locked_until?: string | null;
@@ -10585,6 +10762,7 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
10585
10762
  enforce: boolean;
10586
10763
  is_active: boolean;
10587
10764
  last_seen_at: string;
10765
+ missing_count: number;
10588
10766
  module_id: string;
10589
10767
  name: string;
10590
10768
  shell_id: string | null;
@@ -10595,6 +10773,7 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
10595
10773
  enforce?: boolean;
10596
10774
  is_active?: boolean;
10597
10775
  last_seen_at?: string;
10776
+ missing_count?: number;
10598
10777
  module_id: string;
10599
10778
  name: string;
10600
10779
  shell_id?: string | null;
@@ -10605,6 +10784,7 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
10605
10784
  enforce?: boolean;
10606
10785
  is_active?: boolean;
10607
10786
  last_seen_at?: string;
10787
+ missing_count?: number;
10608
10788
  module_id?: string;
10609
10789
  name?: string;
10610
10790
  shell_id?: string | null;
@@ -11604,6 +11784,7 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
11604
11784
  };
11605
11785
  order_invoice_links: {
11606
11786
  Row: {
11787
+ administration_code: string | null;
11607
11788
  attempts: number;
11608
11789
  created_at: string;
11609
11790
  error_message: string | null;
@@ -11616,6 +11797,7 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
11616
11797
  updated_at: string;
11617
11798
  };
11618
11799
  Insert: {
11800
+ administration_code?: string | null;
11619
11801
  attempts?: number;
11620
11802
  created_at?: string;
11621
11803
  error_message?: string | null;
@@ -11628,6 +11810,7 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
11628
11810
  updated_at?: string;
11629
11811
  };
11630
11812
  Update: {
11813
+ administration_code?: string | null;
11631
11814
  attempts?: number;
11632
11815
  created_at?: string;
11633
11816
  error_message?: string | null;
@@ -12793,6 +12976,27 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
12793
12976
  referencedColumns: ["id"];
12794
12977
  }];
12795
12978
  };
12979
+ pick_sync_state: {
12980
+ Row: {
12981
+ id: boolean;
12982
+ last_cleanup_at: string | null;
12983
+ last_sync_at: string | null;
12984
+ updated_at: string;
12985
+ };
12986
+ Insert: {
12987
+ id?: boolean;
12988
+ last_cleanup_at?: string | null;
12989
+ last_sync_at?: string | null;
12990
+ updated_at?: string;
12991
+ };
12992
+ Update: {
12993
+ id?: boolean;
12994
+ last_cleanup_at?: string | null;
12995
+ last_sync_at?: string | null;
12996
+ updated_at?: string;
12997
+ };
12998
+ Relationships: [];
12999
+ };
12796
13000
  pick_task_document_types: {
12797
13001
  Row: {
12798
13002
  created_at: string;
@@ -13075,6 +13279,7 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
13075
13279
  gebruiker_id: string | null;
13076
13280
  gebruiker_naam: string;
13077
13281
  gestart_op: string | null;
13282
+ herkomst: string | null;
13078
13283
  id: string;
13079
13284
  idempotentie_sleutel: string | null;
13080
13285
  is_herprint: boolean;
@@ -13104,6 +13309,7 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
13104
13309
  gebruiker_id?: string | null;
13105
13310
  gebruiker_naam?: string;
13106
13311
  gestart_op?: string | null;
13312
+ herkomst?: string | null;
13107
13313
  id?: string;
13108
13314
  idempotentie_sleutel?: string | null;
13109
13315
  is_herprint?: boolean;
@@ -13133,6 +13339,7 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
13133
13339
  gebruiker_id?: string | null;
13134
13340
  gebruiker_naam?: string;
13135
13341
  gestart_op?: string | null;
13342
+ herkomst?: string | null;
13136
13343
  id?: string;
13137
13344
  idempotentie_sleutel?: string | null;
13138
13345
  is_herprint?: boolean;
@@ -16137,12 +16344,16 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
16137
16344
  company_name: string | null;
16138
16345
  connected_at: string | null;
16139
16346
  created_at: string;
16347
+ disconnected_at: string | null;
16140
16348
  environment: string;
16141
16349
  id: string;
16350
+ initial_sync_completed_at: string | null;
16351
+ initial_sync_started_at: string | null;
16142
16352
  is_active: boolean;
16143
16353
  label: string | null;
16144
16354
  office_code: string | null;
16145
16355
  redirect_uri: string | null;
16356
+ superseded_at: string | null;
16146
16357
  updated_at: string;
16147
16358
  user_id: string;
16148
16359
  };
@@ -16153,12 +16364,16 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
16153
16364
  company_name?: string | null;
16154
16365
  connected_at?: string | null;
16155
16366
  created_at?: string;
16367
+ disconnected_at?: string | null;
16156
16368
  environment: string;
16157
16369
  id?: string;
16370
+ initial_sync_completed_at?: string | null;
16371
+ initial_sync_started_at?: string | null;
16158
16372
  is_active?: boolean;
16159
16373
  label?: string | null;
16160
16374
  office_code?: string | null;
16161
16375
  redirect_uri?: string | null;
16376
+ superseded_at?: string | null;
16162
16377
  updated_at?: string;
16163
16378
  user_id: string;
16164
16379
  };
@@ -16169,12 +16384,16 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
16169
16384
  company_name?: string | null;
16170
16385
  connected_at?: string | null;
16171
16386
  created_at?: string;
16387
+ disconnected_at?: string | null;
16172
16388
  environment?: string;
16173
16389
  id?: string;
16390
+ initial_sync_completed_at?: string | null;
16391
+ initial_sync_started_at?: string | null;
16174
16392
  is_active?: boolean;
16175
16393
  label?: string | null;
16176
16394
  office_code?: string | null;
16177
16395
  redirect_uri?: string | null;
16396
+ superseded_at?: string | null;
16178
16397
  updated_at?: string;
16179
16398
  user_id?: string;
16180
16399
  };
@@ -16234,6 +16453,7 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
16234
16453
  twinfield_customers: {
16235
16454
  Row: {
16236
16455
  address: string | null;
16456
+ administration_code: string;
16237
16457
  city: string | null;
16238
16458
  country: string | null;
16239
16459
  created_at: string;
@@ -16253,6 +16473,7 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
16253
16473
  };
16254
16474
  Insert: {
16255
16475
  address?: string | null;
16476
+ administration_code?: string;
16256
16477
  city?: string | null;
16257
16478
  country?: string | null;
16258
16479
  created_at?: string;
@@ -16272,6 +16493,7 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
16272
16493
  };
16273
16494
  Update: {
16274
16495
  address?: string | null;
16496
+ administration_code?: string;
16275
16497
  city?: string | null;
16276
16498
  country?: string | null;
16277
16499
  created_at?: string;
@@ -16485,7 +16707,9 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
16485
16707
  };
16486
16708
  twinfield_invoice_settings: {
16487
16709
  Row: {
16710
+ administration_code: string | null;
16488
16711
  auto_invoice_enabled: boolean;
16712
+ auto_invoice_start_date: string | null;
16489
16713
  auto_invoice_trigger_statuses: string[];
16490
16714
  created_at: string;
16491
16715
  debtor_gl_account: string;
@@ -16499,15 +16723,19 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
16499
16723
  invoice_enabled_fo: boolean;
16500
16724
  invoice_enabled_ho: boolean;
16501
16725
  invoice_enabled_mo: boolean;
16726
+ needs_review: boolean;
16502
16727
  payment_gl_account: string;
16503
16728
  payment_journal_code: string;
16729
+ settings_confirmed_at: string | null;
16504
16730
  updated_at: string;
16505
16731
  user_id: string;
16506
16732
  vat_code_eu_reverse: string | null;
16507
16733
  vat_code_export: string | null;
16508
16734
  };
16509
16735
  Insert: {
16736
+ administration_code?: string | null;
16510
16737
  auto_invoice_enabled?: boolean;
16738
+ auto_invoice_start_date?: string | null;
16511
16739
  auto_invoice_trigger_statuses?: string[];
16512
16740
  created_at?: string;
16513
16741
  debtor_gl_account?: string;
@@ -16521,15 +16749,19 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
16521
16749
  invoice_enabled_fo?: boolean;
16522
16750
  invoice_enabled_ho?: boolean;
16523
16751
  invoice_enabled_mo?: boolean;
16752
+ needs_review?: boolean;
16524
16753
  payment_gl_account?: string;
16525
16754
  payment_journal_code?: string;
16755
+ settings_confirmed_at?: string | null;
16526
16756
  updated_at?: string;
16527
16757
  user_id: string;
16528
16758
  vat_code_eu_reverse?: string | null;
16529
16759
  vat_code_export?: string | null;
16530
16760
  };
16531
16761
  Update: {
16762
+ administration_code?: string | null;
16532
16763
  auto_invoice_enabled?: boolean;
16764
+ auto_invoice_start_date?: string | null;
16533
16765
  auto_invoice_trigger_statuses?: string[];
16534
16766
  created_at?: string;
16535
16767
  debtor_gl_account?: string;
@@ -16543,8 +16775,10 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
16543
16775
  invoice_enabled_fo?: boolean;
16544
16776
  invoice_enabled_ho?: boolean;
16545
16777
  invoice_enabled_mo?: boolean;
16778
+ needs_review?: boolean;
16546
16779
  payment_gl_account?: string;
16547
16780
  payment_journal_code?: string;
16781
+ settings_confirmed_at?: string | null;
16548
16782
  updated_at?: string;
16549
16783
  user_id?: string;
16550
16784
  vat_code_eu_reverse?: string | null;
@@ -17149,114 +17383,6 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
17149
17383
  };
17150
17384
  Relationships: [];
17151
17385
  };
17152
- uren_facturen: {
17153
- Row: {
17154
- created_at: string;
17155
- created_by: string | null;
17156
- customer_id: string | null;
17157
- customer_name: string | null;
17158
- id: string;
17159
- invoice_number: string | null;
17160
- note: string | null;
17161
- status: string;
17162
- total_excl_cents: number;
17163
- total_incl_cents: number;
17164
- updated_at: string;
17165
- vat_cents: number;
17166
- vat_percentage: number;
17167
- werkbon_id: string | null;
17168
- };
17169
- Insert: {
17170
- created_at?: string;
17171
- created_by?: string | null;
17172
- customer_id?: string | null;
17173
- customer_name?: string | null;
17174
- id?: string;
17175
- invoice_number?: string | null;
17176
- note?: string | null;
17177
- status?: string;
17178
- total_excl_cents?: number;
17179
- total_incl_cents?: number;
17180
- updated_at?: string;
17181
- vat_cents?: number;
17182
- vat_percentage?: number;
17183
- werkbon_id?: string | null;
17184
- };
17185
- Update: {
17186
- created_at?: string;
17187
- created_by?: string | null;
17188
- customer_id?: string | null;
17189
- customer_name?: string | null;
17190
- id?: string;
17191
- invoice_number?: string | null;
17192
- note?: string | null;
17193
- status?: string;
17194
- total_excl_cents?: number;
17195
- total_incl_cents?: number;
17196
- updated_at?: string;
17197
- vat_cents?: number;
17198
- vat_percentage?: number;
17199
- werkbon_id?: string | null;
17200
- };
17201
- Relationships: [{
17202
- foreignKeyName: "uren_facturen_customer_id_fkey";
17203
- columns: ["customer_id"];
17204
- isOneToOne: false;
17205
- referencedRelation: "itk_customers";
17206
- referencedColumns: ["id"];
17207
- }, {
17208
- foreignKeyName: "uren_facturen_werkbon_id_fkey";
17209
- columns: ["werkbon_id"];
17210
- isOneToOne: true;
17211
- referencedRelation: "werkbonnen";
17212
- referencedColumns: ["id"];
17213
- }];
17214
- };
17215
- uren_factuur_regels: {
17216
- Row: {
17217
- created_at: string;
17218
- description: string;
17219
- factuur_id: string;
17220
- id: string;
17221
- kind: string | null;
17222
- quantity: number;
17223
- sort_order: number;
17224
- total_cents: number;
17225
- unit: string;
17226
- unit_price_cents: number;
17227
- };
17228
- Insert: {
17229
- created_at?: string;
17230
- description: string;
17231
- factuur_id: string;
17232
- id?: string;
17233
- kind?: string | null;
17234
- quantity?: number;
17235
- sort_order?: number;
17236
- total_cents?: number;
17237
- unit?: string;
17238
- unit_price_cents?: number;
17239
- };
17240
- Update: {
17241
- created_at?: string;
17242
- description?: string;
17243
- factuur_id?: string;
17244
- id?: string;
17245
- kind?: string | null;
17246
- quantity?: number;
17247
- sort_order?: number;
17248
- total_cents?: number;
17249
- unit?: string;
17250
- unit_price_cents?: number;
17251
- };
17252
- Relationships: [{
17253
- foreignKeyName: "uren_factuur_regels_factuur_id_fkey";
17254
- columns: ["factuur_id"];
17255
- isOneToOne: false;
17256
- referencedRelation: "uren_facturen";
17257
- referencedColumns: ["id"];
17258
- }];
17259
- };
17260
17386
  uren_offerte_regels: {
17261
17387
  Row: {
17262
17388
  created_at: string;
@@ -18510,6 +18636,9 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
18510
18636
  scheduled_end_time: string | null;
18511
18637
  scheduled_start_time: string | null;
18512
18638
  sequence_number: number;
18639
+ signature_accepted_at: string | null;
18640
+ signature_by_user_id: string | null;
18641
+ signature_name: string | null;
18513
18642
  source_email_meta: import("../integrations/supabase/types").Json | null;
18514
18643
  source_mailbox_message_id: string | null;
18515
18644
  source_pdf_path: string | null;
@@ -18545,6 +18674,9 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
18545
18674
  scheduled_end_time?: string | null;
18546
18675
  scheduled_start_time?: string | null;
18547
18676
  sequence_number: number;
18677
+ signature_accepted_at?: string | null;
18678
+ signature_by_user_id?: string | null;
18679
+ signature_name?: string | null;
18548
18680
  source_email_meta?: import("../integrations/supabase/types").Json | null;
18549
18681
  source_mailbox_message_id?: string | null;
18550
18682
  source_pdf_path?: string | null;
@@ -18580,6 +18712,9 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
18580
18712
  scheduled_end_time?: string | null;
18581
18713
  scheduled_start_time?: string | null;
18582
18714
  sequence_number?: number;
18715
+ signature_accepted_at?: string | null;
18716
+ signature_by_user_id?: string | null;
18717
+ signature_name?: string | null;
18583
18718
  source_email_meta?: import("../integrations/supabase/types").Json | null;
18584
18719
  source_mailbox_message_id?: string | null;
18585
18720
  source_pdf_path?: string | null;
@@ -19096,6 +19231,114 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
19096
19231
  };
19097
19232
  Relationships: [];
19098
19233
  };
19234
+ uren_facturen: {
19235
+ Row: {
19236
+ created_at: string | null;
19237
+ created_by: string | null;
19238
+ customer_id: string | null;
19239
+ customer_name: string | null;
19240
+ id: string | null;
19241
+ invoice_number: string | null;
19242
+ note: string | null;
19243
+ status: string | null;
19244
+ total_excl_cents: number | null;
19245
+ total_incl_cents: number | null;
19246
+ updated_at: string | null;
19247
+ vat_cents: number | null;
19248
+ vat_percentage: number | null;
19249
+ werkbon_id: string | null;
19250
+ };
19251
+ Insert: {
19252
+ created_at?: string | null;
19253
+ created_by?: string | null;
19254
+ customer_id?: string | null;
19255
+ customer_name?: string | null;
19256
+ id?: string | null;
19257
+ invoice_number?: string | null;
19258
+ note?: string | null;
19259
+ status?: string | null;
19260
+ total_excl_cents?: number | null;
19261
+ total_incl_cents?: number | null;
19262
+ updated_at?: string | null;
19263
+ vat_cents?: number | null;
19264
+ vat_percentage?: number | null;
19265
+ werkbon_id?: never;
19266
+ };
19267
+ Update: {
19268
+ created_at?: string | null;
19269
+ created_by?: string | null;
19270
+ customer_id?: string | null;
19271
+ customer_name?: string | null;
19272
+ id?: string | null;
19273
+ invoice_number?: string | null;
19274
+ note?: string | null;
19275
+ status?: string | null;
19276
+ total_excl_cents?: number | null;
19277
+ total_incl_cents?: number | null;
19278
+ updated_at?: string | null;
19279
+ vat_cents?: number | null;
19280
+ vat_percentage?: number | null;
19281
+ werkbon_id?: never;
19282
+ };
19283
+ Relationships: [{
19284
+ foreignKeyName: "invoices_customer_id_fkey";
19285
+ columns: ["customer_id"];
19286
+ isOneToOne: false;
19287
+ referencedRelation: "itk_customers";
19288
+ referencedColumns: ["id"];
19289
+ }];
19290
+ };
19291
+ uren_factuur_regels: {
19292
+ Row: {
19293
+ created_at: string | null;
19294
+ description: string | null;
19295
+ factuur_id: string | null;
19296
+ id: string | null;
19297
+ kind: string | null;
19298
+ quantity: number | null;
19299
+ sort_order: number | null;
19300
+ total_cents: number | null;
19301
+ unit: string | null;
19302
+ unit_price_cents: number | null;
19303
+ };
19304
+ Insert: {
19305
+ created_at?: string | null;
19306
+ description?: string | null;
19307
+ factuur_id?: string | null;
19308
+ id?: string | null;
19309
+ kind?: string | null;
19310
+ quantity?: number | null;
19311
+ sort_order?: number | null;
19312
+ total_cents?: number | null;
19313
+ unit?: string | null;
19314
+ unit_price_cents?: number | null;
19315
+ };
19316
+ Update: {
19317
+ created_at?: string | null;
19318
+ description?: string | null;
19319
+ factuur_id?: string | null;
19320
+ id?: string | null;
19321
+ kind?: string | null;
19322
+ quantity?: number | null;
19323
+ sort_order?: number | null;
19324
+ total_cents?: number | null;
19325
+ unit?: string | null;
19326
+ unit_price_cents?: number | null;
19327
+ };
19328
+ Relationships: [{
19329
+ foreignKeyName: "invoice_items_invoice_id_fkey";
19330
+ columns: ["factuur_id"];
19331
+ isOneToOne: false;
19332
+ referencedRelation: "invoices";
19333
+ referencedColumns: ["id"];
19334
+ }, {
19335
+ foreignKeyName: "invoice_items_invoice_id_fkey";
19336
+ columns: ["factuur_id"];
19337
+ isOneToOne: false;
19338
+ referencedRelation: "uren_facturen";
19339
+ referencedColumns: ["id"];
19340
+ }];
19341
+ };
19099
19342
  v_external_customers_exact: {
19100
19343
  Row: {
19101
19344
  account_number: string | null;
@@ -19601,6 +19844,7 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
19601
19844
  gebruiker_id: string | null;
19602
19845
  gebruiker_naam: string;
19603
19846
  gestart_op: string | null;
19847
+ herkomst: string | null;
19604
19848
  id: string;
19605
19849
  idempotentie_sleutel: string | null;
19606
19850
  is_herprint: boolean;
@@ -19721,6 +19965,7 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
19721
19965
  gebruiker_id: string | null;
19722
19966
  gebruiker_naam: string;
19723
19967
  gestart_op: string | null;
19968
+ herkomst: string | null;
19724
19969
  id: string;
19725
19970
  idempotentie_sleutel: string | null;
19726
19971
  is_herprint: boolean;
@@ -20322,6 +20567,46 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
20322
20567
  Args: never;
20323
20568
  Returns: boolean;
20324
20569
  };
20570
+ invoice_create_from_source: {
20571
+ Args: {
20572
+ _payload?: import("../integrations/supabase/types").Json;
20573
+ _source_id: string;
20574
+ _source_type: string;
20575
+ };
20576
+ Returns: import("../integrations/supabase/types").Json;
20577
+ };
20578
+ invoice_get_billable_lines: {
20579
+ Args: {
20580
+ _invoice_id: string;
20581
+ };
20582
+ Returns: import("../integrations/supabase/types").Json;
20583
+ };
20584
+ invoice_get_for_source: {
20585
+ Args: {
20586
+ _source_id: string;
20587
+ _source_type: string;
20588
+ };
20589
+ Returns: import("../integrations/supabase/types").Json;
20590
+ };
20591
+ invoice_get_summary: {
20592
+ Args: {
20593
+ _invoice_id: string;
20594
+ };
20595
+ Returns: import("../integrations/supabase/types").Json;
20596
+ };
20597
+ invoice_list_sources: {
20598
+ Args: {
20599
+ _limit?: number;
20600
+ _source_type?: string;
20601
+ };
20602
+ Returns: import("../integrations/supabase/types").Json;
20603
+ };
20604
+ invoice_recalc_totals: {
20605
+ Args: {
20606
+ _invoice_id: string;
20607
+ };
20608
+ Returns: import("../integrations/supabase/types").Json;
20609
+ };
20325
20610
  is_authenticated: {
20326
20611
  Args: never;
20327
20612
  Returns: boolean;
@@ -20390,6 +20675,29 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
20390
20675
  roles: string[];
20391
20676
  }[];
20392
20677
  };
20678
+ list_monteur_absences: {
20679
+ Args: {
20680
+ _from: string;
20681
+ _to: string;
20682
+ };
20683
+ Returns: {
20684
+ absence_date: string;
20685
+ end_time: string;
20686
+ full_day: boolean;
20687
+ kind: string;
20688
+ monteur_id: string;
20689
+ start_time: string;
20690
+ }[];
20691
+ };
20692
+ list_monteurs: {
20693
+ Args: never;
20694
+ Returns: {
20695
+ avatar_url: string;
20696
+ display_name: string;
20697
+ email: string;
20698
+ id: string;
20699
+ }[];
20700
+ };
20393
20701
  list_my_planning_items: {
20394
20702
  Args: {
20395
20703
  _from: string;
@@ -20801,6 +21109,23 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
20801
21109
  };
20802
21110
  Returns: string;
20803
21111
  };
21112
+ logistics_floriday_finish_push_v2: {
21113
+ Args: {
21114
+ _error?: string;
21115
+ _error_code?: string;
21116
+ _fulfillment_order_id?: string;
21117
+ _gateway_status?: number;
21118
+ _id: string;
21119
+ _max_age_hours?: number;
21120
+ _max_attempts?: number;
21121
+ _ok: boolean;
21122
+ _permanent?: boolean;
21123
+ _response?: import("../integrations/supabase/types").Json;
21124
+ _revision: number;
21125
+ _sent_hash?: string;
21126
+ };
21127
+ Returns: string;
21128
+ };
20804
21129
  logistics_floriday_prune_pushes: {
20805
21130
  Args: {
20806
21131
  _days?: number;
@@ -21343,6 +21668,13 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
21343
21668
  isSetofReturn: false;
21344
21669
  };
21345
21670
  };
21671
+ pick_cleanup_maintenance: {
21672
+ Args: {
21673
+ _heartbeat_hours?: number;
21674
+ _log_days?: number;
21675
+ };
21676
+ Returns: import("../integrations/supabase/types").Json;
21677
+ };
21346
21678
  pick_complete_print: {
21347
21679
  Args: {
21348
21680
  _printer_id: string;
@@ -21394,6 +21726,14 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
21394
21726
  Args: never;
21395
21727
  Returns: string;
21396
21728
  };
21729
+ pick_day_counts: {
21730
+ Args: {
21731
+ _pick_day?: string;
21732
+ _screen_id?: string;
21733
+ _station_id?: string;
21734
+ };
21735
+ Returns: import("../integrations/supabase/types").Json;
21736
+ };
21397
21737
  pick_document_layout_data: {
21398
21738
  Args: {
21399
21739
  _layout_id: string;
@@ -21431,6 +21771,14 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
21431
21771
  };
21432
21772
  Returns: undefined;
21433
21773
  };
21774
+ pick_reprint_document: {
21775
+ Args: {
21776
+ _queue_item_id: string;
21777
+ _session_id: string;
21778
+ _throttle_seconds?: number;
21779
+ };
21780
+ Returns: string;
21781
+ };
21434
21782
  pick_reset_print: {
21435
21783
  Args: {
21436
21784
  _queue_item_id: string;
@@ -21496,6 +21844,12 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
21496
21844
  };
21497
21845
  Returns: string;
21498
21846
  };
21847
+ pick_sync_queue_throttled: {
21848
+ Args: {
21849
+ _min_seconds?: number;
21850
+ };
21851
+ Returns: import("../integrations/supabase/types").Json;
21852
+ };
21499
21853
  pickstation_get_orders_raw: {
21500
21854
  Args: never;
21501
21855
  Returns: import("../integrations/supabase/types").Json;
@@ -21641,6 +21995,12 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
21641
21995
  };
21642
21996
  Returns: boolean;
21643
21997
  };
21998
+ release_stale_order_invoice_links: {
21999
+ Args: {
22000
+ _minutes?: number;
22001
+ };
22002
+ Returns: number;
22003
+ };
21644
22004
  reorder_customer_price_groups: {
21645
22005
  Args: {
21646
22006
  _ids: string[];
@@ -22159,6 +22519,20 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
22159
22519
  };
22160
22520
  Returns: undefined;
22161
22521
  };
22522
+ twinfield_deactivate_connection: {
22523
+ Args: {
22524
+ p_connection_id: string;
22525
+ p_user_id: string;
22526
+ };
22527
+ Returns: import("../integrations/supabase/types").Json;
22528
+ };
22529
+ twinfield_handle_administration_change: {
22530
+ Args: {
22531
+ _administration_code: string;
22532
+ _user_id: string;
22533
+ };
22534
+ Returns: undefined;
22535
+ };
22162
22536
  twinfield_prune_push_queue: {
22163
22537
  Args: never;
22164
22538
  Returns: number;
@@ -22178,10 +22552,11 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
22178
22552
  p_company_name?: string;
22179
22553
  p_environment: string;
22180
22554
  p_office_code?: string;
22555
+ p_reset_sync?: boolean;
22181
22556
  p_status?: string;
22182
22557
  p_user_id: string;
22183
22558
  };
22184
- Returns: string;
22559
+ Returns: import("../integrations/supabase/types").Json;
22185
22560
  };
22186
22561
  upsert_auto_fulfillment_log: {
22187
22562
  Args: {
@@ -25025,6 +25400,42 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
25025
25400
  };
25026
25401
  Relationships: [];
25027
25402
  };
25403
+ document_bronregels: {
25404
+ Row: {
25405
+ bron: string;
25406
+ created_at: string;
25407
+ documenttype: string;
25408
+ herkomst: string;
25409
+ id: string;
25410
+ layout_id: string | null;
25411
+ updated_at: string;
25412
+ };
25413
+ Insert: {
25414
+ bron?: string;
25415
+ created_at?: string;
25416
+ documenttype: string;
25417
+ herkomst: string;
25418
+ id?: string;
25419
+ layout_id?: string | null;
25420
+ updated_at?: string;
25421
+ };
25422
+ Update: {
25423
+ bron?: string;
25424
+ created_at?: string;
25425
+ documenttype?: string;
25426
+ herkomst?: string;
25427
+ id?: string;
25428
+ layout_id?: string | null;
25429
+ updated_at?: string;
25430
+ };
25431
+ Relationships: [{
25432
+ foreignKeyName: "document_bronregels_layout_id_fkey";
25433
+ columns: ["layout_id"];
25434
+ isOneToOne: false;
25435
+ referencedRelation: "document_layouts";
25436
+ referencedColumns: ["id"];
25437
+ }];
25438
+ };
25028
25439
  document_formaat_printers: {
25029
25440
  Row: {
25030
25441
  created_at: string;
@@ -25302,6 +25713,7 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
25302
25713
  Row: {
25303
25714
  actief: boolean;
25304
25715
  breedte_mm: number;
25716
+ bron: string;
25305
25717
  config: import("../integrations/supabase/types").Json;
25306
25718
  created_at: string;
25307
25719
  created_by: string | null;
@@ -25319,12 +25731,14 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
25319
25731
  orientatie: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_orientation"];
25320
25732
  page_settings: import("../integrations/supabase/types").Json;
25321
25733
  papierformaat: string;
25734
+ systeem: boolean;
25322
25735
  thumbnail_url: string | null;
25323
25736
  updated_at: string;
25324
25737
  };
25325
25738
  Insert: {
25326
25739
  actief?: boolean;
25327
25740
  breedte_mm?: number;
25741
+ bron?: string;
25328
25742
  config?: import("../integrations/supabase/types").Json;
25329
25743
  created_at?: string;
25330
25744
  created_by?: string | null;
@@ -25342,12 +25756,14 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
25342
25756
  orientatie?: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_orientation"];
25343
25757
  page_settings?: import("../integrations/supabase/types").Json;
25344
25758
  papierformaat?: string;
25759
+ systeem?: boolean;
25345
25760
  thumbnail_url?: string | null;
25346
25761
  updated_at?: string;
25347
25762
  };
25348
25763
  Update: {
25349
25764
  actief?: boolean;
25350
25765
  breedte_mm?: number;
25766
+ bron?: string;
25351
25767
  config?: import("../integrations/supabase/types").Json;
25352
25768
  created_at?: string;
25353
25769
  created_by?: string | null;
@@ -25365,11 +25781,48 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
25365
25781
  orientatie?: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_orientation"];
25366
25782
  page_settings?: import("../integrations/supabase/types").Json;
25367
25783
  papierformaat?: string;
25784
+ systeem?: boolean;
25368
25785
  thumbnail_url?: string | null;
25369
25786
  updated_at?: string;
25370
25787
  };
25371
25788
  Relationships: [];
25372
25789
  };
25790
+ document_werkplek_printers: {
25791
+ Row: {
25792
+ created_at: string;
25793
+ documenttype: string;
25794
+ id: string;
25795
+ papierformaat: string | null;
25796
+ printer_id: string | null;
25797
+ updated_at: string;
25798
+ werkplek: string;
25799
+ };
25800
+ Insert: {
25801
+ created_at?: string;
25802
+ documenttype: string;
25803
+ id?: string;
25804
+ papierformaat?: string | null;
25805
+ printer_id?: string | null;
25806
+ updated_at?: string;
25807
+ werkplek: string;
25808
+ };
25809
+ Update: {
25810
+ created_at?: string;
25811
+ documenttype?: string;
25812
+ id?: string;
25813
+ papierformaat?: string | null;
25814
+ printer_id?: string | null;
25815
+ updated_at?: string;
25816
+ werkplek?: string;
25817
+ };
25818
+ Relationships: [{
25819
+ foreignKeyName: "document_werkplek_printers_printer_id_fkey";
25820
+ columns: ["printer_id"];
25821
+ isOneToOne: false;
25822
+ referencedRelation: "printers";
25823
+ referencedColumns: ["id"];
25824
+ }];
25825
+ };
25373
25826
  email_auth_connections: {
25374
25827
  Row: {
25375
25828
  access_token_encrypted: string | null;
@@ -27311,42 +27764,6 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
27311
27764
  };
27312
27765
  Relationships: [];
27313
27766
  };
27314
- facturen: {
27315
- Row: {
27316
- bedrag_incl_btw: number;
27317
- created_at: string;
27318
- datum: string;
27319
- factuurnummer: string;
27320
- id: string;
27321
- klantnaam: string;
27322
- status: string;
27323
- updated_at: string;
27324
- user_id: string;
27325
- };
27326
- Insert: {
27327
- bedrag_incl_btw: number;
27328
- created_at?: string;
27329
- datum?: string;
27330
- factuurnummer: string;
27331
- id?: string;
27332
- klantnaam: string;
27333
- status?: string;
27334
- updated_at?: string;
27335
- user_id?: string;
27336
- };
27337
- Update: {
27338
- bedrag_incl_btw?: number;
27339
- created_at?: string;
27340
- datum?: string;
27341
- factuurnummer?: string;
27342
- id?: string;
27343
- klantnaam?: string;
27344
- status?: string;
27345
- updated_at?: string;
27346
- user_id?: string;
27347
- };
27348
- Relationships: [];
27349
- };
27350
27767
  floricode_connection_settings: {
27351
27768
  Row: {
27352
27769
  catalog_key: string | null;
@@ -29651,8 +30068,63 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
29651
30068
  };
29652
30069
  Relationships: [];
29653
30070
  };
30071
+ invoice_items: {
30072
+ Row: {
30073
+ created_at: string;
30074
+ description: string;
30075
+ id: string;
30076
+ invoice_id: string;
30077
+ kind: string;
30078
+ quantity: number;
30079
+ sort_order: number;
30080
+ source_line_ref: string | null;
30081
+ total_cents: number;
30082
+ unit: string;
30083
+ unit_price_cents: number;
30084
+ };
30085
+ Insert: {
30086
+ created_at?: string;
30087
+ description?: string;
30088
+ id?: string;
30089
+ invoice_id: string;
30090
+ kind?: string;
30091
+ quantity?: number;
30092
+ sort_order?: number;
30093
+ source_line_ref?: string | null;
30094
+ total_cents?: number;
30095
+ unit?: string;
30096
+ unit_price_cents?: number;
30097
+ };
30098
+ Update: {
30099
+ created_at?: string;
30100
+ description?: string;
30101
+ id?: string;
30102
+ invoice_id?: string;
30103
+ kind?: string;
30104
+ quantity?: number;
30105
+ sort_order?: number;
30106
+ source_line_ref?: string | null;
30107
+ total_cents?: number;
30108
+ unit?: string;
30109
+ unit_price_cents?: number;
30110
+ };
30111
+ Relationships: [{
30112
+ foreignKeyName: "invoice_items_invoice_id_fkey";
30113
+ columns: ["invoice_id"];
30114
+ isOneToOne: false;
30115
+ referencedRelation: "invoices";
30116
+ referencedColumns: ["id"];
30117
+ }, {
30118
+ foreignKeyName: "invoice_items_invoice_id_fkey";
30119
+ columns: ["invoice_id"];
30120
+ isOneToOne: false;
30121
+ referencedRelation: "uren_facturen";
30122
+ referencedColumns: ["id"];
30123
+ }];
30124
+ };
29654
30125
  invoice_post_idempotency: {
29655
30126
  Row: {
30127
+ administration_code: string;
29656
30128
  client_request_id: string;
29657
30129
  completed_at: string | null;
29658
30130
  created_at: string;
@@ -29662,6 +30134,7 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
29662
30134
  user_id: string;
29663
30135
  };
29664
30136
  Insert: {
30137
+ administration_code?: string;
29665
30138
  client_request_id: string;
29666
30139
  completed_at?: string | null;
29667
30140
  created_at?: string;
@@ -29671,6 +30144,7 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
29671
30144
  user_id: string;
29672
30145
  };
29673
30146
  Update: {
30147
+ administration_code?: string;
29674
30148
  client_request_id?: string;
29675
30149
  completed_at?: string | null;
29676
30150
  created_at?: string;
@@ -29876,6 +30350,75 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
29876
30350
  };
29877
30351
  Relationships: [];
29878
30352
  };
30353
+ invoices: {
30354
+ Row: {
30355
+ created_at: string;
30356
+ created_by: string | null;
30357
+ customer_id: string | null;
30358
+ customer_name: string | null;
30359
+ due_date: string | null;
30360
+ id: string;
30361
+ invoice_date: string;
30362
+ invoice_number: string | null;
30363
+ note: string | null;
30364
+ source_number: string | null;
30365
+ source_ref: string | null;
30366
+ source_type: string;
30367
+ status: string;
30368
+ subtotal_cents: number;
30369
+ total_cents: number;
30370
+ updated_at: string;
30371
+ vat_cents: number;
30372
+ vat_rate: number;
30373
+ };
30374
+ Insert: {
30375
+ created_at?: string;
30376
+ created_by?: string | null;
30377
+ customer_id?: string | null;
30378
+ customer_name?: string | null;
30379
+ due_date?: string | null;
30380
+ id?: string;
30381
+ invoice_date?: string;
30382
+ invoice_number?: string | null;
30383
+ note?: string | null;
30384
+ source_number?: string | null;
30385
+ source_ref?: string | null;
30386
+ source_type?: string;
30387
+ status?: string;
30388
+ subtotal_cents?: number;
30389
+ total_cents?: number;
30390
+ updated_at?: string;
30391
+ vat_cents?: number;
30392
+ vat_rate?: number;
30393
+ };
30394
+ Update: {
30395
+ created_at?: string;
30396
+ created_by?: string | null;
30397
+ customer_id?: string | null;
30398
+ customer_name?: string | null;
30399
+ due_date?: string | null;
30400
+ id?: string;
30401
+ invoice_date?: string;
30402
+ invoice_number?: string | null;
30403
+ note?: string | null;
30404
+ source_number?: string | null;
30405
+ source_ref?: string | null;
30406
+ source_type?: string;
30407
+ status?: string;
30408
+ subtotal_cents?: number;
30409
+ total_cents?: number;
30410
+ updated_at?: string;
30411
+ vat_cents?: number;
30412
+ vat_rate?: number;
30413
+ };
30414
+ Relationships: [{
30415
+ foreignKeyName: "invoices_customer_id_fkey";
30416
+ columns: ["customer_id"];
30417
+ isOneToOne: false;
30418
+ referencedRelation: "itk_customers";
30419
+ referencedColumns: ["id"];
30420
+ }];
30421
+ };
29879
30422
  itk_contact_persons: {
29880
30423
  Row: {
29881
30424
  created_at: string;
@@ -31223,6 +31766,9 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
31223
31766
  id: string;
31224
31767
  last_error: string | null;
31225
31768
  last_error_at: string | null;
31769
+ last_error_code: string | null;
31770
+ last_gateway_status: number | null;
31771
+ last_response: import("../integrations/supabase/types").Json | null;
31226
31772
  last_sent_hash: string | null;
31227
31773
  locked_by: string | null;
31228
31774
  locked_until: string | null;
@@ -31243,6 +31789,9 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
31243
31789
  id?: string;
31244
31790
  last_error?: string | null;
31245
31791
  last_error_at?: string | null;
31792
+ last_error_code?: string | null;
31793
+ last_gateway_status?: number | null;
31794
+ last_response?: import("../integrations/supabase/types").Json | null;
31246
31795
  last_sent_hash?: string | null;
31247
31796
  locked_by?: string | null;
31248
31797
  locked_until?: string | null;
@@ -31263,6 +31812,9 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
31263
31812
  id?: string;
31264
31813
  last_error?: string | null;
31265
31814
  last_error_at?: string | null;
31815
+ last_error_code?: string | null;
31816
+ last_gateway_status?: number | null;
31817
+ last_response?: import("../integrations/supabase/types").Json | null;
31266
31818
  last_sent_hash?: string | null;
31267
31819
  locked_by?: string | null;
31268
31820
  locked_until?: string | null;
@@ -32816,6 +33368,7 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
32816
33368
  enforce: boolean;
32817
33369
  is_active: boolean;
32818
33370
  last_seen_at: string;
33371
+ missing_count: number;
32819
33372
  module_id: string;
32820
33373
  name: string;
32821
33374
  shell_id: string | null;
@@ -32826,6 +33379,7 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
32826
33379
  enforce?: boolean;
32827
33380
  is_active?: boolean;
32828
33381
  last_seen_at?: string;
33382
+ missing_count?: number;
32829
33383
  module_id: string;
32830
33384
  name: string;
32831
33385
  shell_id?: string | null;
@@ -32836,6 +33390,7 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
32836
33390
  enforce?: boolean;
32837
33391
  is_active?: boolean;
32838
33392
  last_seen_at?: string;
33393
+ missing_count?: number;
32839
33394
  module_id?: string;
32840
33395
  name?: string;
32841
33396
  shell_id?: string | null;
@@ -33835,6 +34390,7 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
33835
34390
  };
33836
34391
  order_invoice_links: {
33837
34392
  Row: {
34393
+ administration_code: string | null;
33838
34394
  attempts: number;
33839
34395
  created_at: string;
33840
34396
  error_message: string | null;
@@ -33847,6 +34403,7 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
33847
34403
  updated_at: string;
33848
34404
  };
33849
34405
  Insert: {
34406
+ administration_code?: string | null;
33850
34407
  attempts?: number;
33851
34408
  created_at?: string;
33852
34409
  error_message?: string | null;
@@ -33859,6 +34416,7 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
33859
34416
  updated_at?: string;
33860
34417
  };
33861
34418
  Update: {
34419
+ administration_code?: string | null;
33862
34420
  attempts?: number;
33863
34421
  created_at?: string;
33864
34422
  error_message?: string | null;
@@ -35024,6 +35582,27 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
35024
35582
  referencedColumns: ["id"];
35025
35583
  }];
35026
35584
  };
35585
+ pick_sync_state: {
35586
+ Row: {
35587
+ id: boolean;
35588
+ last_cleanup_at: string | null;
35589
+ last_sync_at: string | null;
35590
+ updated_at: string;
35591
+ };
35592
+ Insert: {
35593
+ id?: boolean;
35594
+ last_cleanup_at?: string | null;
35595
+ last_sync_at?: string | null;
35596
+ updated_at?: string;
35597
+ };
35598
+ Update: {
35599
+ id?: boolean;
35600
+ last_cleanup_at?: string | null;
35601
+ last_sync_at?: string | null;
35602
+ updated_at?: string;
35603
+ };
35604
+ Relationships: [];
35605
+ };
35027
35606
  pick_task_document_types: {
35028
35607
  Row: {
35029
35608
  created_at: string;
@@ -35306,6 +35885,7 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
35306
35885
  gebruiker_id: string | null;
35307
35886
  gebruiker_naam: string;
35308
35887
  gestart_op: string | null;
35888
+ herkomst: string | null;
35309
35889
  id: string;
35310
35890
  idempotentie_sleutel: string | null;
35311
35891
  is_herprint: boolean;
@@ -35335,6 +35915,7 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
35335
35915
  gebruiker_id?: string | null;
35336
35916
  gebruiker_naam?: string;
35337
35917
  gestart_op?: string | null;
35918
+ herkomst?: string | null;
35338
35919
  id?: string;
35339
35920
  idempotentie_sleutel?: string | null;
35340
35921
  is_herprint?: boolean;
@@ -35364,6 +35945,7 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
35364
35945
  gebruiker_id?: string | null;
35365
35946
  gebruiker_naam?: string;
35366
35947
  gestart_op?: string | null;
35948
+ herkomst?: string | null;
35367
35949
  id?: string;
35368
35950
  idempotentie_sleutel?: string | null;
35369
35951
  is_herprint?: boolean;
@@ -38368,12 +38950,16 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
38368
38950
  company_name: string | null;
38369
38951
  connected_at: string | null;
38370
38952
  created_at: string;
38953
+ disconnected_at: string | null;
38371
38954
  environment: string;
38372
38955
  id: string;
38956
+ initial_sync_completed_at: string | null;
38957
+ initial_sync_started_at: string | null;
38373
38958
  is_active: boolean;
38374
38959
  label: string | null;
38375
38960
  office_code: string | null;
38376
38961
  redirect_uri: string | null;
38962
+ superseded_at: string | null;
38377
38963
  updated_at: string;
38378
38964
  user_id: string;
38379
38965
  };
@@ -38384,12 +38970,16 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
38384
38970
  company_name?: string | null;
38385
38971
  connected_at?: string | null;
38386
38972
  created_at?: string;
38973
+ disconnected_at?: string | null;
38387
38974
  environment: string;
38388
38975
  id?: string;
38976
+ initial_sync_completed_at?: string | null;
38977
+ initial_sync_started_at?: string | null;
38389
38978
  is_active?: boolean;
38390
38979
  label?: string | null;
38391
38980
  office_code?: string | null;
38392
38981
  redirect_uri?: string | null;
38982
+ superseded_at?: string | null;
38393
38983
  updated_at?: string;
38394
38984
  user_id: string;
38395
38985
  };
@@ -38400,12 +38990,16 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
38400
38990
  company_name?: string | null;
38401
38991
  connected_at?: string | null;
38402
38992
  created_at?: string;
38993
+ disconnected_at?: string | null;
38403
38994
  environment?: string;
38404
38995
  id?: string;
38996
+ initial_sync_completed_at?: string | null;
38997
+ initial_sync_started_at?: string | null;
38405
38998
  is_active?: boolean;
38406
38999
  label?: string | null;
38407
39000
  office_code?: string | null;
38408
39001
  redirect_uri?: string | null;
39002
+ superseded_at?: string | null;
38409
39003
  updated_at?: string;
38410
39004
  user_id?: string;
38411
39005
  };
@@ -38465,6 +39059,7 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
38465
39059
  twinfield_customers: {
38466
39060
  Row: {
38467
39061
  address: string | null;
39062
+ administration_code: string;
38468
39063
  city: string | null;
38469
39064
  country: string | null;
38470
39065
  created_at: string;
@@ -38484,6 +39079,7 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
38484
39079
  };
38485
39080
  Insert: {
38486
39081
  address?: string | null;
39082
+ administration_code?: string;
38487
39083
  city?: string | null;
38488
39084
  country?: string | null;
38489
39085
  created_at?: string;
@@ -38503,6 +39099,7 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
38503
39099
  };
38504
39100
  Update: {
38505
39101
  address?: string | null;
39102
+ administration_code?: string;
38506
39103
  city?: string | null;
38507
39104
  country?: string | null;
38508
39105
  created_at?: string;
@@ -38716,7 +39313,9 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
38716
39313
  };
38717
39314
  twinfield_invoice_settings: {
38718
39315
  Row: {
39316
+ administration_code: string | null;
38719
39317
  auto_invoice_enabled: boolean;
39318
+ auto_invoice_start_date: string | null;
38720
39319
  auto_invoice_trigger_statuses: string[];
38721
39320
  created_at: string;
38722
39321
  debtor_gl_account: string;
@@ -38730,15 +39329,19 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
38730
39329
  invoice_enabled_fo: boolean;
38731
39330
  invoice_enabled_ho: boolean;
38732
39331
  invoice_enabled_mo: boolean;
39332
+ needs_review: boolean;
38733
39333
  payment_gl_account: string;
38734
39334
  payment_journal_code: string;
39335
+ settings_confirmed_at: string | null;
38735
39336
  updated_at: string;
38736
39337
  user_id: string;
38737
39338
  vat_code_eu_reverse: string | null;
38738
39339
  vat_code_export: string | null;
38739
39340
  };
38740
39341
  Insert: {
39342
+ administration_code?: string | null;
38741
39343
  auto_invoice_enabled?: boolean;
39344
+ auto_invoice_start_date?: string | null;
38742
39345
  auto_invoice_trigger_statuses?: string[];
38743
39346
  created_at?: string;
38744
39347
  debtor_gl_account?: string;
@@ -38752,15 +39355,19 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
38752
39355
  invoice_enabled_fo?: boolean;
38753
39356
  invoice_enabled_ho?: boolean;
38754
39357
  invoice_enabled_mo?: boolean;
39358
+ needs_review?: boolean;
38755
39359
  payment_gl_account?: string;
38756
39360
  payment_journal_code?: string;
39361
+ settings_confirmed_at?: string | null;
38757
39362
  updated_at?: string;
38758
39363
  user_id: string;
38759
39364
  vat_code_eu_reverse?: string | null;
38760
39365
  vat_code_export?: string | null;
38761
39366
  };
38762
39367
  Update: {
39368
+ administration_code?: string | null;
38763
39369
  auto_invoice_enabled?: boolean;
39370
+ auto_invoice_start_date?: string | null;
38764
39371
  auto_invoice_trigger_statuses?: string[];
38765
39372
  created_at?: string;
38766
39373
  debtor_gl_account?: string;
@@ -38774,8 +39381,10 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
38774
39381
  invoice_enabled_fo?: boolean;
38775
39382
  invoice_enabled_ho?: boolean;
38776
39383
  invoice_enabled_mo?: boolean;
39384
+ needs_review?: boolean;
38777
39385
  payment_gl_account?: string;
38778
39386
  payment_journal_code?: string;
39387
+ settings_confirmed_at?: string | null;
38779
39388
  updated_at?: string;
38780
39389
  user_id?: string;
38781
39390
  vat_code_eu_reverse?: string | null;
@@ -39380,114 +39989,6 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
39380
39989
  };
39381
39990
  Relationships: [];
39382
39991
  };
39383
- uren_facturen: {
39384
- Row: {
39385
- created_at: string;
39386
- created_by: string | null;
39387
- customer_id: string | null;
39388
- customer_name: string | null;
39389
- id: string;
39390
- invoice_number: string | null;
39391
- note: string | null;
39392
- status: string;
39393
- total_excl_cents: number;
39394
- total_incl_cents: number;
39395
- updated_at: string;
39396
- vat_cents: number;
39397
- vat_percentage: number;
39398
- werkbon_id: string | null;
39399
- };
39400
- Insert: {
39401
- created_at?: string;
39402
- created_by?: string | null;
39403
- customer_id?: string | null;
39404
- customer_name?: string | null;
39405
- id?: string;
39406
- invoice_number?: string | null;
39407
- note?: string | null;
39408
- status?: string;
39409
- total_excl_cents?: number;
39410
- total_incl_cents?: number;
39411
- updated_at?: string;
39412
- vat_cents?: number;
39413
- vat_percentage?: number;
39414
- werkbon_id?: string | null;
39415
- };
39416
- Update: {
39417
- created_at?: string;
39418
- created_by?: string | null;
39419
- customer_id?: string | null;
39420
- customer_name?: string | null;
39421
- id?: string;
39422
- invoice_number?: string | null;
39423
- note?: string | null;
39424
- status?: string;
39425
- total_excl_cents?: number;
39426
- total_incl_cents?: number;
39427
- updated_at?: string;
39428
- vat_cents?: number;
39429
- vat_percentage?: number;
39430
- werkbon_id?: string | null;
39431
- };
39432
- Relationships: [{
39433
- foreignKeyName: "uren_facturen_customer_id_fkey";
39434
- columns: ["customer_id"];
39435
- isOneToOne: false;
39436
- referencedRelation: "itk_customers";
39437
- referencedColumns: ["id"];
39438
- }, {
39439
- foreignKeyName: "uren_facturen_werkbon_id_fkey";
39440
- columns: ["werkbon_id"];
39441
- isOneToOne: true;
39442
- referencedRelation: "werkbonnen";
39443
- referencedColumns: ["id"];
39444
- }];
39445
- };
39446
- uren_factuur_regels: {
39447
- Row: {
39448
- created_at: string;
39449
- description: string;
39450
- factuur_id: string;
39451
- id: string;
39452
- kind: string | null;
39453
- quantity: number;
39454
- sort_order: number;
39455
- total_cents: number;
39456
- unit: string;
39457
- unit_price_cents: number;
39458
- };
39459
- Insert: {
39460
- created_at?: string;
39461
- description: string;
39462
- factuur_id: string;
39463
- id?: string;
39464
- kind?: string | null;
39465
- quantity?: number;
39466
- sort_order?: number;
39467
- total_cents?: number;
39468
- unit?: string;
39469
- unit_price_cents?: number;
39470
- };
39471
- Update: {
39472
- created_at?: string;
39473
- description?: string;
39474
- factuur_id?: string;
39475
- id?: string;
39476
- kind?: string | null;
39477
- quantity?: number;
39478
- sort_order?: number;
39479
- total_cents?: number;
39480
- unit?: string;
39481
- unit_price_cents?: number;
39482
- };
39483
- Relationships: [{
39484
- foreignKeyName: "uren_factuur_regels_factuur_id_fkey";
39485
- columns: ["factuur_id"];
39486
- isOneToOne: false;
39487
- referencedRelation: "uren_facturen";
39488
- referencedColumns: ["id"];
39489
- }];
39490
- };
39491
39992
  uren_offerte_regels: {
39492
39993
  Row: {
39493
39994
  created_at: string;
@@ -40741,6 +41242,9 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
40741
41242
  scheduled_end_time: string | null;
40742
41243
  scheduled_start_time: string | null;
40743
41244
  sequence_number: number;
41245
+ signature_accepted_at: string | null;
41246
+ signature_by_user_id: string | null;
41247
+ signature_name: string | null;
40744
41248
  source_email_meta: import("../integrations/supabase/types").Json | null;
40745
41249
  source_mailbox_message_id: string | null;
40746
41250
  source_pdf_path: string | null;
@@ -40776,6 +41280,9 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
40776
41280
  scheduled_end_time?: string | null;
40777
41281
  scheduled_start_time?: string | null;
40778
41282
  sequence_number: number;
41283
+ signature_accepted_at?: string | null;
41284
+ signature_by_user_id?: string | null;
41285
+ signature_name?: string | null;
40779
41286
  source_email_meta?: import("../integrations/supabase/types").Json | null;
40780
41287
  source_mailbox_message_id?: string | null;
40781
41288
  source_pdf_path?: string | null;
@@ -40811,6 +41318,9 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
40811
41318
  scheduled_end_time?: string | null;
40812
41319
  scheduled_start_time?: string | null;
40813
41320
  sequence_number?: number;
41321
+ signature_accepted_at?: string | null;
41322
+ signature_by_user_id?: string | null;
41323
+ signature_name?: string | null;
40814
41324
  source_email_meta?: import("../integrations/supabase/types").Json | null;
40815
41325
  source_mailbox_message_id?: string | null;
40816
41326
  source_pdf_path?: string | null;
@@ -41327,6 +41837,114 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
41327
41837
  };
41328
41838
  Relationships: [];
41329
41839
  };
41840
+ uren_facturen: {
41841
+ Row: {
41842
+ created_at: string | null;
41843
+ created_by: string | null;
41844
+ customer_id: string | null;
41845
+ customer_name: string | null;
41846
+ id: string | null;
41847
+ invoice_number: string | null;
41848
+ note: string | null;
41849
+ status: string | null;
41850
+ total_excl_cents: number | null;
41851
+ total_incl_cents: number | null;
41852
+ updated_at: string | null;
41853
+ vat_cents: number | null;
41854
+ vat_percentage: number | null;
41855
+ werkbon_id: string | null;
41856
+ };
41857
+ Insert: {
41858
+ created_at?: string | null;
41859
+ created_by?: string | null;
41860
+ customer_id?: string | null;
41861
+ customer_name?: string | null;
41862
+ id?: string | null;
41863
+ invoice_number?: string | null;
41864
+ note?: string | null;
41865
+ status?: string | null;
41866
+ total_excl_cents?: number | null;
41867
+ total_incl_cents?: number | null;
41868
+ updated_at?: string | null;
41869
+ vat_cents?: number | null;
41870
+ vat_percentage?: number | null;
41871
+ werkbon_id?: never;
41872
+ };
41873
+ Update: {
41874
+ created_at?: string | null;
41875
+ created_by?: string | null;
41876
+ customer_id?: string | null;
41877
+ customer_name?: string | null;
41878
+ id?: string | null;
41879
+ invoice_number?: string | null;
41880
+ note?: string | null;
41881
+ status?: string | null;
41882
+ total_excl_cents?: number | null;
41883
+ total_incl_cents?: number | null;
41884
+ updated_at?: string | null;
41885
+ vat_cents?: number | null;
41886
+ vat_percentage?: number | null;
41887
+ werkbon_id?: never;
41888
+ };
41889
+ Relationships: [{
41890
+ foreignKeyName: "invoices_customer_id_fkey";
41891
+ columns: ["customer_id"];
41892
+ isOneToOne: false;
41893
+ referencedRelation: "itk_customers";
41894
+ referencedColumns: ["id"];
41895
+ }];
41896
+ };
41897
+ uren_factuur_regels: {
41898
+ Row: {
41899
+ created_at: string | null;
41900
+ description: string | null;
41901
+ factuur_id: string | null;
41902
+ id: string | null;
41903
+ kind: string | null;
41904
+ quantity: number | null;
41905
+ sort_order: number | null;
41906
+ total_cents: number | null;
41907
+ unit: string | null;
41908
+ unit_price_cents: number | null;
41909
+ };
41910
+ Insert: {
41911
+ created_at?: string | null;
41912
+ description?: string | null;
41913
+ factuur_id?: string | null;
41914
+ id?: string | null;
41915
+ kind?: string | null;
41916
+ quantity?: number | null;
41917
+ sort_order?: number | null;
41918
+ total_cents?: number | null;
41919
+ unit?: string | null;
41920
+ unit_price_cents?: number | null;
41921
+ };
41922
+ Update: {
41923
+ created_at?: string | null;
41924
+ description?: string | null;
41925
+ factuur_id?: string | null;
41926
+ id?: string | null;
41927
+ kind?: string | null;
41928
+ quantity?: number | null;
41929
+ sort_order?: number | null;
41930
+ total_cents?: number | null;
41931
+ unit?: string | null;
41932
+ unit_price_cents?: number | null;
41933
+ };
41934
+ Relationships: [{
41935
+ foreignKeyName: "invoice_items_invoice_id_fkey";
41936
+ columns: ["factuur_id"];
41937
+ isOneToOne: false;
41938
+ referencedRelation: "invoices";
41939
+ referencedColumns: ["id"];
41940
+ }, {
41941
+ foreignKeyName: "invoice_items_invoice_id_fkey";
41942
+ columns: ["factuur_id"];
41943
+ isOneToOne: false;
41944
+ referencedRelation: "uren_facturen";
41945
+ referencedColumns: ["id"];
41946
+ }];
41947
+ };
41330
41948
  v_external_customers_exact: {
41331
41949
  Row: {
41332
41950
  account_number: string | null;
@@ -41832,6 +42450,7 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
41832
42450
  gebruiker_id: string | null;
41833
42451
  gebruiker_naam: string;
41834
42452
  gestart_op: string | null;
42453
+ herkomst: string | null;
41835
42454
  id: string;
41836
42455
  idempotentie_sleutel: string | null;
41837
42456
  is_herprint: boolean;
@@ -41952,6 +42571,7 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
41952
42571
  gebruiker_id: string | null;
41953
42572
  gebruiker_naam: string;
41954
42573
  gestart_op: string | null;
42574
+ herkomst: string | null;
41955
42575
  id: string;
41956
42576
  idempotentie_sleutel: string | null;
41957
42577
  is_herprint: boolean;
@@ -42553,6 +43173,46 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
42553
43173
  Args: never;
42554
43174
  Returns: boolean;
42555
43175
  };
43176
+ invoice_create_from_source: {
43177
+ Args: {
43178
+ _payload?: import("../integrations/supabase/types").Json;
43179
+ _source_id: string;
43180
+ _source_type: string;
43181
+ };
43182
+ Returns: import("../integrations/supabase/types").Json;
43183
+ };
43184
+ invoice_get_billable_lines: {
43185
+ Args: {
43186
+ _invoice_id: string;
43187
+ };
43188
+ Returns: import("../integrations/supabase/types").Json;
43189
+ };
43190
+ invoice_get_for_source: {
43191
+ Args: {
43192
+ _source_id: string;
43193
+ _source_type: string;
43194
+ };
43195
+ Returns: import("../integrations/supabase/types").Json;
43196
+ };
43197
+ invoice_get_summary: {
43198
+ Args: {
43199
+ _invoice_id: string;
43200
+ };
43201
+ Returns: import("../integrations/supabase/types").Json;
43202
+ };
43203
+ invoice_list_sources: {
43204
+ Args: {
43205
+ _limit?: number;
43206
+ _source_type?: string;
43207
+ };
43208
+ Returns: import("../integrations/supabase/types").Json;
43209
+ };
43210
+ invoice_recalc_totals: {
43211
+ Args: {
43212
+ _invoice_id: string;
43213
+ };
43214
+ Returns: import("../integrations/supabase/types").Json;
43215
+ };
42556
43216
  is_authenticated: {
42557
43217
  Args: never;
42558
43218
  Returns: boolean;
@@ -42621,6 +43281,29 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
42621
43281
  roles: string[];
42622
43282
  }[];
42623
43283
  };
43284
+ list_monteur_absences: {
43285
+ Args: {
43286
+ _from: string;
43287
+ _to: string;
43288
+ };
43289
+ Returns: {
43290
+ absence_date: string;
43291
+ end_time: string;
43292
+ full_day: boolean;
43293
+ kind: string;
43294
+ monteur_id: string;
43295
+ start_time: string;
43296
+ }[];
43297
+ };
43298
+ list_monteurs: {
43299
+ Args: never;
43300
+ Returns: {
43301
+ avatar_url: string;
43302
+ display_name: string;
43303
+ email: string;
43304
+ id: string;
43305
+ }[];
43306
+ };
42624
43307
  list_my_planning_items: {
42625
43308
  Args: {
42626
43309
  _from: string;
@@ -43032,6 +43715,23 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
43032
43715
  };
43033
43716
  Returns: string;
43034
43717
  };
43718
+ logistics_floriday_finish_push_v2: {
43719
+ Args: {
43720
+ _error?: string;
43721
+ _error_code?: string;
43722
+ _fulfillment_order_id?: string;
43723
+ _gateway_status?: number;
43724
+ _id: string;
43725
+ _max_age_hours?: number;
43726
+ _max_attempts?: number;
43727
+ _ok: boolean;
43728
+ _permanent?: boolean;
43729
+ _response?: import("../integrations/supabase/types").Json;
43730
+ _revision: number;
43731
+ _sent_hash?: string;
43732
+ };
43733
+ Returns: string;
43734
+ };
43035
43735
  logistics_floriday_prune_pushes: {
43036
43736
  Args: {
43037
43737
  _days?: number;
@@ -43574,6 +44274,13 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
43574
44274
  isSetofReturn: false;
43575
44275
  };
43576
44276
  };
44277
+ pick_cleanup_maintenance: {
44278
+ Args: {
44279
+ _heartbeat_hours?: number;
44280
+ _log_days?: number;
44281
+ };
44282
+ Returns: import("../integrations/supabase/types").Json;
44283
+ };
43577
44284
  pick_complete_print: {
43578
44285
  Args: {
43579
44286
  _printer_id: string;
@@ -43625,6 +44332,14 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
43625
44332
  Args: never;
43626
44333
  Returns: string;
43627
44334
  };
44335
+ pick_day_counts: {
44336
+ Args: {
44337
+ _pick_day?: string;
44338
+ _screen_id?: string;
44339
+ _station_id?: string;
44340
+ };
44341
+ Returns: import("../integrations/supabase/types").Json;
44342
+ };
43628
44343
  pick_document_layout_data: {
43629
44344
  Args: {
43630
44345
  _layout_id: string;
@@ -43662,6 +44377,14 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
43662
44377
  };
43663
44378
  Returns: undefined;
43664
44379
  };
44380
+ pick_reprint_document: {
44381
+ Args: {
44382
+ _queue_item_id: string;
44383
+ _session_id: string;
44384
+ _throttle_seconds?: number;
44385
+ };
44386
+ Returns: string;
44387
+ };
43665
44388
  pick_reset_print: {
43666
44389
  Args: {
43667
44390
  _queue_item_id: string;
@@ -43727,6 +44450,12 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
43727
44450
  };
43728
44451
  Returns: string;
43729
44452
  };
44453
+ pick_sync_queue_throttled: {
44454
+ Args: {
44455
+ _min_seconds?: number;
44456
+ };
44457
+ Returns: import("../integrations/supabase/types").Json;
44458
+ };
43730
44459
  pickstation_get_orders_raw: {
43731
44460
  Args: never;
43732
44461
  Returns: import("../integrations/supabase/types").Json;
@@ -43872,6 +44601,12 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
43872
44601
  };
43873
44602
  Returns: boolean;
43874
44603
  };
44604
+ release_stale_order_invoice_links: {
44605
+ Args: {
44606
+ _minutes?: number;
44607
+ };
44608
+ Returns: number;
44609
+ };
43875
44610
  reorder_customer_price_groups: {
43876
44611
  Args: {
43877
44612
  _ids: string[];
@@ -44390,6 +45125,20 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
44390
45125
  };
44391
45126
  Returns: undefined;
44392
45127
  };
45128
+ twinfield_deactivate_connection: {
45129
+ Args: {
45130
+ p_connection_id: string;
45131
+ p_user_id: string;
45132
+ };
45133
+ Returns: import("../integrations/supabase/types").Json;
45134
+ };
45135
+ twinfield_handle_administration_change: {
45136
+ Args: {
45137
+ _administration_code: string;
45138
+ _user_id: string;
45139
+ };
45140
+ Returns: undefined;
45141
+ };
44393
45142
  twinfield_prune_push_queue: {
44394
45143
  Args: never;
44395
45144
  Returns: number;
@@ -44409,10 +45158,11 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
44409
45158
  p_company_name?: string;
44410
45159
  p_environment: string;
44411
45160
  p_office_code?: string;
45161
+ p_reset_sync?: boolean;
44412
45162
  p_status?: string;
44413
45163
  p_user_id: string;
44414
45164
  };
44415
- Returns: string;
45165
+ Returns: import("../integrations/supabase/types").Json;
44416
45166
  };
44417
45167
  upsert_auto_fulfillment_log: {
44418
45168
  Args: {
@@ -47264,6 +48014,42 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
47264
48014
  };
47265
48015
  Relationships: [];
47266
48016
  };
48017
+ document_bronregels: {
48018
+ Row: {
48019
+ bron: string;
48020
+ created_at: string;
48021
+ documenttype: string;
48022
+ herkomst: string;
48023
+ id: string;
48024
+ layout_id: string | null;
48025
+ updated_at: string;
48026
+ };
48027
+ Insert: {
48028
+ bron?: string;
48029
+ created_at?: string;
48030
+ documenttype: string;
48031
+ herkomst: string;
48032
+ id?: string;
48033
+ layout_id?: string | null;
48034
+ updated_at?: string;
48035
+ };
48036
+ Update: {
48037
+ bron?: string;
48038
+ created_at?: string;
48039
+ documenttype?: string;
48040
+ herkomst?: string;
48041
+ id?: string;
48042
+ layout_id?: string | null;
48043
+ updated_at?: string;
48044
+ };
48045
+ Relationships: [{
48046
+ foreignKeyName: "document_bronregels_layout_id_fkey";
48047
+ columns: ["layout_id"];
48048
+ isOneToOne: false;
48049
+ referencedRelation: "document_layouts";
48050
+ referencedColumns: ["id"];
48051
+ }];
48052
+ };
47267
48053
  document_formaat_printers: {
47268
48054
  Row: {
47269
48055
  created_at: string;
@@ -47541,6 +48327,7 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
47541
48327
  Row: {
47542
48328
  actief: boolean;
47543
48329
  breedte_mm: number;
48330
+ bron: string;
47544
48331
  config: import("../integrations/supabase/types").Json;
47545
48332
  created_at: string;
47546
48333
  created_by: string | null;
@@ -47558,12 +48345,14 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
47558
48345
  orientatie: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_orientation"];
47559
48346
  page_settings: import("../integrations/supabase/types").Json;
47560
48347
  papierformaat: string;
48348
+ systeem: boolean;
47561
48349
  thumbnail_url: string | null;
47562
48350
  updated_at: string;
47563
48351
  };
47564
48352
  Insert: {
47565
48353
  actief?: boolean;
47566
48354
  breedte_mm?: number;
48355
+ bron?: string;
47567
48356
  config?: import("../integrations/supabase/types").Json;
47568
48357
  created_at?: string;
47569
48358
  created_by?: string | null;
@@ -47581,12 +48370,14 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
47581
48370
  orientatie?: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_orientation"];
47582
48371
  page_settings?: import("../integrations/supabase/types").Json;
47583
48372
  papierformaat?: string;
48373
+ systeem?: boolean;
47584
48374
  thumbnail_url?: string | null;
47585
48375
  updated_at?: string;
47586
48376
  };
47587
48377
  Update: {
47588
48378
  actief?: boolean;
47589
48379
  breedte_mm?: number;
48380
+ bron?: string;
47590
48381
  config?: import("../integrations/supabase/types").Json;
47591
48382
  created_at?: string;
47592
48383
  created_by?: string | null;
@@ -47604,11 +48395,48 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
47604
48395
  orientatie?: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_orientation"];
47605
48396
  page_settings?: import("../integrations/supabase/types").Json;
47606
48397
  papierformaat?: string;
48398
+ systeem?: boolean;
47607
48399
  thumbnail_url?: string | null;
47608
48400
  updated_at?: string;
47609
48401
  };
47610
48402
  Relationships: [];
47611
48403
  };
48404
+ document_werkplek_printers: {
48405
+ Row: {
48406
+ created_at: string;
48407
+ documenttype: string;
48408
+ id: string;
48409
+ papierformaat: string | null;
48410
+ printer_id: string | null;
48411
+ updated_at: string;
48412
+ werkplek: string;
48413
+ };
48414
+ Insert: {
48415
+ created_at?: string;
48416
+ documenttype: string;
48417
+ id?: string;
48418
+ papierformaat?: string | null;
48419
+ printer_id?: string | null;
48420
+ updated_at?: string;
48421
+ werkplek: string;
48422
+ };
48423
+ Update: {
48424
+ created_at?: string;
48425
+ documenttype?: string;
48426
+ id?: string;
48427
+ papierformaat?: string | null;
48428
+ printer_id?: string | null;
48429
+ updated_at?: string;
48430
+ werkplek?: string;
48431
+ };
48432
+ Relationships: [{
48433
+ foreignKeyName: "document_werkplek_printers_printer_id_fkey";
48434
+ columns: ["printer_id"];
48435
+ isOneToOne: false;
48436
+ referencedRelation: "printers";
48437
+ referencedColumns: ["id"];
48438
+ }];
48439
+ };
47612
48440
  email_auth_connections: {
47613
48441
  Row: {
47614
48442
  access_token_encrypted: string | null;
@@ -49550,42 +50378,6 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
49550
50378
  };
49551
50379
  Relationships: [];
49552
50380
  };
49553
- facturen: {
49554
- Row: {
49555
- bedrag_incl_btw: number;
49556
- created_at: string;
49557
- datum: string;
49558
- factuurnummer: string;
49559
- id: string;
49560
- klantnaam: string;
49561
- status: string;
49562
- updated_at: string;
49563
- user_id: string;
49564
- };
49565
- Insert: {
49566
- bedrag_incl_btw: number;
49567
- created_at?: string;
49568
- datum?: string;
49569
- factuurnummer: string;
49570
- id?: string;
49571
- klantnaam: string;
49572
- status?: string;
49573
- updated_at?: string;
49574
- user_id?: string;
49575
- };
49576
- Update: {
49577
- bedrag_incl_btw?: number;
49578
- created_at?: string;
49579
- datum?: string;
49580
- factuurnummer?: string;
49581
- id?: string;
49582
- klantnaam?: string;
49583
- status?: string;
49584
- updated_at?: string;
49585
- user_id?: string;
49586
- };
49587
- Relationships: [];
49588
- };
49589
50381
  floricode_connection_settings: {
49590
50382
  Row: {
49591
50383
  catalog_key: string | null;
@@ -51890,8 +52682,63 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
51890
52682
  };
51891
52683
  Relationships: [];
51892
52684
  };
52685
+ invoice_items: {
52686
+ Row: {
52687
+ created_at: string;
52688
+ description: string;
52689
+ id: string;
52690
+ invoice_id: string;
52691
+ kind: string;
52692
+ quantity: number;
52693
+ sort_order: number;
52694
+ source_line_ref: string | null;
52695
+ total_cents: number;
52696
+ unit: string;
52697
+ unit_price_cents: number;
52698
+ };
52699
+ Insert: {
52700
+ created_at?: string;
52701
+ description?: string;
52702
+ id?: string;
52703
+ invoice_id: string;
52704
+ kind?: string;
52705
+ quantity?: number;
52706
+ sort_order?: number;
52707
+ source_line_ref?: string | null;
52708
+ total_cents?: number;
52709
+ unit?: string;
52710
+ unit_price_cents?: number;
52711
+ };
52712
+ Update: {
52713
+ created_at?: string;
52714
+ description?: string;
52715
+ id?: string;
52716
+ invoice_id?: string;
52717
+ kind?: string;
52718
+ quantity?: number;
52719
+ sort_order?: number;
52720
+ source_line_ref?: string | null;
52721
+ total_cents?: number;
52722
+ unit?: string;
52723
+ unit_price_cents?: number;
52724
+ };
52725
+ Relationships: [{
52726
+ foreignKeyName: "invoice_items_invoice_id_fkey";
52727
+ columns: ["invoice_id"];
52728
+ isOneToOne: false;
52729
+ referencedRelation: "invoices";
52730
+ referencedColumns: ["id"];
52731
+ }, {
52732
+ foreignKeyName: "invoice_items_invoice_id_fkey";
52733
+ columns: ["invoice_id"];
52734
+ isOneToOne: false;
52735
+ referencedRelation: "uren_facturen";
52736
+ referencedColumns: ["id"];
52737
+ }];
52738
+ };
51893
52739
  invoice_post_idempotency: {
51894
52740
  Row: {
52741
+ administration_code: string;
51895
52742
  client_request_id: string;
51896
52743
  completed_at: string | null;
51897
52744
  created_at: string;
@@ -51901,6 +52748,7 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
51901
52748
  user_id: string;
51902
52749
  };
51903
52750
  Insert: {
52751
+ administration_code?: string;
51904
52752
  client_request_id: string;
51905
52753
  completed_at?: string | null;
51906
52754
  created_at?: string;
@@ -51910,6 +52758,7 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
51910
52758
  user_id: string;
51911
52759
  };
51912
52760
  Update: {
52761
+ administration_code?: string;
51913
52762
  client_request_id?: string;
51914
52763
  completed_at?: string | null;
51915
52764
  created_at?: string;
@@ -52115,6 +52964,75 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
52115
52964
  };
52116
52965
  Relationships: [];
52117
52966
  };
52967
+ invoices: {
52968
+ Row: {
52969
+ created_at: string;
52970
+ created_by: string | null;
52971
+ customer_id: string | null;
52972
+ customer_name: string | null;
52973
+ due_date: string | null;
52974
+ id: string;
52975
+ invoice_date: string;
52976
+ invoice_number: string | null;
52977
+ note: string | null;
52978
+ source_number: string | null;
52979
+ source_ref: string | null;
52980
+ source_type: string;
52981
+ status: string;
52982
+ subtotal_cents: number;
52983
+ total_cents: number;
52984
+ updated_at: string;
52985
+ vat_cents: number;
52986
+ vat_rate: number;
52987
+ };
52988
+ Insert: {
52989
+ created_at?: string;
52990
+ created_by?: string | null;
52991
+ customer_id?: string | null;
52992
+ customer_name?: string | null;
52993
+ due_date?: string | null;
52994
+ id?: string;
52995
+ invoice_date?: string;
52996
+ invoice_number?: string | null;
52997
+ note?: string | null;
52998
+ source_number?: string | null;
52999
+ source_ref?: string | null;
53000
+ source_type?: string;
53001
+ status?: string;
53002
+ subtotal_cents?: number;
53003
+ total_cents?: number;
53004
+ updated_at?: string;
53005
+ vat_cents?: number;
53006
+ vat_rate?: number;
53007
+ };
53008
+ Update: {
53009
+ created_at?: string;
53010
+ created_by?: string | null;
53011
+ customer_id?: string | null;
53012
+ customer_name?: string | null;
53013
+ due_date?: string | null;
53014
+ id?: string;
53015
+ invoice_date?: string;
53016
+ invoice_number?: string | null;
53017
+ note?: string | null;
53018
+ source_number?: string | null;
53019
+ source_ref?: string | null;
53020
+ source_type?: string;
53021
+ status?: string;
53022
+ subtotal_cents?: number;
53023
+ total_cents?: number;
53024
+ updated_at?: string;
53025
+ vat_cents?: number;
53026
+ vat_rate?: number;
53027
+ };
53028
+ Relationships: [{
53029
+ foreignKeyName: "invoices_customer_id_fkey";
53030
+ columns: ["customer_id"];
53031
+ isOneToOne: false;
53032
+ referencedRelation: "itk_customers";
53033
+ referencedColumns: ["id"];
53034
+ }];
53035
+ };
52118
53036
  itk_contact_persons: {
52119
53037
  Row: {
52120
53038
  created_at: string;
@@ -53462,6 +54380,9 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
53462
54380
  id: string;
53463
54381
  last_error: string | null;
53464
54382
  last_error_at: string | null;
54383
+ last_error_code: string | null;
54384
+ last_gateway_status: number | null;
54385
+ last_response: import("../integrations/supabase/types").Json | null;
53465
54386
  last_sent_hash: string | null;
53466
54387
  locked_by: string | null;
53467
54388
  locked_until: string | null;
@@ -53482,6 +54403,9 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
53482
54403
  id?: string;
53483
54404
  last_error?: string | null;
53484
54405
  last_error_at?: string | null;
54406
+ last_error_code?: string | null;
54407
+ last_gateway_status?: number | null;
54408
+ last_response?: import("../integrations/supabase/types").Json | null;
53485
54409
  last_sent_hash?: string | null;
53486
54410
  locked_by?: string | null;
53487
54411
  locked_until?: string | null;
@@ -53502,6 +54426,9 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
53502
54426
  id?: string;
53503
54427
  last_error?: string | null;
53504
54428
  last_error_at?: string | null;
54429
+ last_error_code?: string | null;
54430
+ last_gateway_status?: number | null;
54431
+ last_response?: import("../integrations/supabase/types").Json | null;
53505
54432
  last_sent_hash?: string | null;
53506
54433
  locked_by?: string | null;
53507
54434
  locked_until?: string | null;
@@ -55055,6 +55982,7 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
55055
55982
  enforce: boolean;
55056
55983
  is_active: boolean;
55057
55984
  last_seen_at: string;
55985
+ missing_count: number;
55058
55986
  module_id: string;
55059
55987
  name: string;
55060
55988
  shell_id: string | null;
@@ -55065,6 +55993,7 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
55065
55993
  enforce?: boolean;
55066
55994
  is_active?: boolean;
55067
55995
  last_seen_at?: string;
55996
+ missing_count?: number;
55068
55997
  module_id: string;
55069
55998
  name: string;
55070
55999
  shell_id?: string | null;
@@ -55075,6 +56004,7 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
55075
56004
  enforce?: boolean;
55076
56005
  is_active?: boolean;
55077
56006
  last_seen_at?: string;
56007
+ missing_count?: number;
55078
56008
  module_id?: string;
55079
56009
  name?: string;
55080
56010
  shell_id?: string | null;
@@ -56074,6 +57004,7 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
56074
57004
  };
56075
57005
  order_invoice_links: {
56076
57006
  Row: {
57007
+ administration_code: string | null;
56077
57008
  attempts: number;
56078
57009
  created_at: string;
56079
57010
  error_message: string | null;
@@ -56086,6 +57017,7 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
56086
57017
  updated_at: string;
56087
57018
  };
56088
57019
  Insert: {
57020
+ administration_code?: string | null;
56089
57021
  attempts?: number;
56090
57022
  created_at?: string;
56091
57023
  error_message?: string | null;
@@ -56098,6 +57030,7 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
56098
57030
  updated_at?: string;
56099
57031
  };
56100
57032
  Update: {
57033
+ administration_code?: string | null;
56101
57034
  attempts?: number;
56102
57035
  created_at?: string;
56103
57036
  error_message?: string | null;
@@ -57263,6 +58196,27 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
57263
58196
  referencedColumns: ["id"];
57264
58197
  }];
57265
58198
  };
58199
+ pick_sync_state: {
58200
+ Row: {
58201
+ id: boolean;
58202
+ last_cleanup_at: string | null;
58203
+ last_sync_at: string | null;
58204
+ updated_at: string;
58205
+ };
58206
+ Insert: {
58207
+ id?: boolean;
58208
+ last_cleanup_at?: string | null;
58209
+ last_sync_at?: string | null;
58210
+ updated_at?: string;
58211
+ };
58212
+ Update: {
58213
+ id?: boolean;
58214
+ last_cleanup_at?: string | null;
58215
+ last_sync_at?: string | null;
58216
+ updated_at?: string;
58217
+ };
58218
+ Relationships: [];
58219
+ };
57266
58220
  pick_task_document_types: {
57267
58221
  Row: {
57268
58222
  created_at: string;
@@ -57545,6 +58499,7 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
57545
58499
  gebruiker_id: string | null;
57546
58500
  gebruiker_naam: string;
57547
58501
  gestart_op: string | null;
58502
+ herkomst: string | null;
57548
58503
  id: string;
57549
58504
  idempotentie_sleutel: string | null;
57550
58505
  is_herprint: boolean;
@@ -57574,6 +58529,7 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
57574
58529
  gebruiker_id?: string | null;
57575
58530
  gebruiker_naam?: string;
57576
58531
  gestart_op?: string | null;
58532
+ herkomst?: string | null;
57577
58533
  id?: string;
57578
58534
  idempotentie_sleutel?: string | null;
57579
58535
  is_herprint?: boolean;
@@ -57603,6 +58559,7 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
57603
58559
  gebruiker_id?: string | null;
57604
58560
  gebruiker_naam?: string;
57605
58561
  gestart_op?: string | null;
58562
+ herkomst?: string | null;
57606
58563
  id?: string;
57607
58564
  idempotentie_sleutel?: string | null;
57608
58565
  is_herprint?: boolean;
@@ -60607,12 +61564,16 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
60607
61564
  company_name: string | null;
60608
61565
  connected_at: string | null;
60609
61566
  created_at: string;
61567
+ disconnected_at: string | null;
60610
61568
  environment: string;
60611
61569
  id: string;
61570
+ initial_sync_completed_at: string | null;
61571
+ initial_sync_started_at: string | null;
60612
61572
  is_active: boolean;
60613
61573
  label: string | null;
60614
61574
  office_code: string | null;
60615
61575
  redirect_uri: string | null;
61576
+ superseded_at: string | null;
60616
61577
  updated_at: string;
60617
61578
  user_id: string;
60618
61579
  };
@@ -60623,12 +61584,16 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
60623
61584
  company_name?: string | null;
60624
61585
  connected_at?: string | null;
60625
61586
  created_at?: string;
61587
+ disconnected_at?: string | null;
60626
61588
  environment: string;
60627
61589
  id?: string;
61590
+ initial_sync_completed_at?: string | null;
61591
+ initial_sync_started_at?: string | null;
60628
61592
  is_active?: boolean;
60629
61593
  label?: string | null;
60630
61594
  office_code?: string | null;
60631
61595
  redirect_uri?: string | null;
61596
+ superseded_at?: string | null;
60632
61597
  updated_at?: string;
60633
61598
  user_id: string;
60634
61599
  };
@@ -60639,12 +61604,16 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
60639
61604
  company_name?: string | null;
60640
61605
  connected_at?: string | null;
60641
61606
  created_at?: string;
61607
+ disconnected_at?: string | null;
60642
61608
  environment?: string;
60643
61609
  id?: string;
61610
+ initial_sync_completed_at?: string | null;
61611
+ initial_sync_started_at?: string | null;
60644
61612
  is_active?: boolean;
60645
61613
  label?: string | null;
60646
61614
  office_code?: string | null;
60647
61615
  redirect_uri?: string | null;
61616
+ superseded_at?: string | null;
60648
61617
  updated_at?: string;
60649
61618
  user_id?: string;
60650
61619
  };
@@ -60704,6 +61673,7 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
60704
61673
  twinfield_customers: {
60705
61674
  Row: {
60706
61675
  address: string | null;
61676
+ administration_code: string;
60707
61677
  city: string | null;
60708
61678
  country: string | null;
60709
61679
  created_at: string;
@@ -60723,6 +61693,7 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
60723
61693
  };
60724
61694
  Insert: {
60725
61695
  address?: string | null;
61696
+ administration_code?: string;
60726
61697
  city?: string | null;
60727
61698
  country?: string | null;
60728
61699
  created_at?: string;
@@ -60742,6 +61713,7 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
60742
61713
  };
60743
61714
  Update: {
60744
61715
  address?: string | null;
61716
+ administration_code?: string;
60745
61717
  city?: string | null;
60746
61718
  country?: string | null;
60747
61719
  created_at?: string;
@@ -60955,7 +61927,9 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
60955
61927
  };
60956
61928
  twinfield_invoice_settings: {
60957
61929
  Row: {
61930
+ administration_code: string | null;
60958
61931
  auto_invoice_enabled: boolean;
61932
+ auto_invoice_start_date: string | null;
60959
61933
  auto_invoice_trigger_statuses: string[];
60960
61934
  created_at: string;
60961
61935
  debtor_gl_account: string;
@@ -60969,15 +61943,19 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
60969
61943
  invoice_enabled_fo: boolean;
60970
61944
  invoice_enabled_ho: boolean;
60971
61945
  invoice_enabled_mo: boolean;
61946
+ needs_review: boolean;
60972
61947
  payment_gl_account: string;
60973
61948
  payment_journal_code: string;
61949
+ settings_confirmed_at: string | null;
60974
61950
  updated_at: string;
60975
61951
  user_id: string;
60976
61952
  vat_code_eu_reverse: string | null;
60977
61953
  vat_code_export: string | null;
60978
61954
  };
60979
61955
  Insert: {
61956
+ administration_code?: string | null;
60980
61957
  auto_invoice_enabled?: boolean;
61958
+ auto_invoice_start_date?: string | null;
60981
61959
  auto_invoice_trigger_statuses?: string[];
60982
61960
  created_at?: string;
60983
61961
  debtor_gl_account?: string;
@@ -60991,15 +61969,19 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
60991
61969
  invoice_enabled_fo?: boolean;
60992
61970
  invoice_enabled_ho?: boolean;
60993
61971
  invoice_enabled_mo?: boolean;
61972
+ needs_review?: boolean;
60994
61973
  payment_gl_account?: string;
60995
61974
  payment_journal_code?: string;
61975
+ settings_confirmed_at?: string | null;
60996
61976
  updated_at?: string;
60997
61977
  user_id: string;
60998
61978
  vat_code_eu_reverse?: string | null;
60999
61979
  vat_code_export?: string | null;
61000
61980
  };
61001
61981
  Update: {
61982
+ administration_code?: string | null;
61002
61983
  auto_invoice_enabled?: boolean;
61984
+ auto_invoice_start_date?: string | null;
61003
61985
  auto_invoice_trigger_statuses?: string[];
61004
61986
  created_at?: string;
61005
61987
  debtor_gl_account?: string;
@@ -61013,8 +61995,10 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
61013
61995
  invoice_enabled_fo?: boolean;
61014
61996
  invoice_enabled_ho?: boolean;
61015
61997
  invoice_enabled_mo?: boolean;
61998
+ needs_review?: boolean;
61016
61999
  payment_gl_account?: string;
61017
62000
  payment_journal_code?: string;
62001
+ settings_confirmed_at?: string | null;
61018
62002
  updated_at?: string;
61019
62003
  user_id?: string;
61020
62004
  vat_code_eu_reverse?: string | null;
@@ -61619,114 +62603,6 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
61619
62603
  };
61620
62604
  Relationships: [];
61621
62605
  };
61622
- uren_facturen: {
61623
- Row: {
61624
- created_at: string;
61625
- created_by: string | null;
61626
- customer_id: string | null;
61627
- customer_name: string | null;
61628
- id: string;
61629
- invoice_number: string | null;
61630
- note: string | null;
61631
- status: string;
61632
- total_excl_cents: number;
61633
- total_incl_cents: number;
61634
- updated_at: string;
61635
- vat_cents: number;
61636
- vat_percentage: number;
61637
- werkbon_id: string | null;
61638
- };
61639
- Insert: {
61640
- created_at?: string;
61641
- created_by?: string | null;
61642
- customer_id?: string | null;
61643
- customer_name?: string | null;
61644
- id?: string;
61645
- invoice_number?: string | null;
61646
- note?: string | null;
61647
- status?: string;
61648
- total_excl_cents?: number;
61649
- total_incl_cents?: number;
61650
- updated_at?: string;
61651
- vat_cents?: number;
61652
- vat_percentage?: number;
61653
- werkbon_id?: string | null;
61654
- };
61655
- Update: {
61656
- created_at?: string;
61657
- created_by?: string | null;
61658
- customer_id?: string | null;
61659
- customer_name?: string | null;
61660
- id?: string;
61661
- invoice_number?: string | null;
61662
- note?: string | null;
61663
- status?: string;
61664
- total_excl_cents?: number;
61665
- total_incl_cents?: number;
61666
- updated_at?: string;
61667
- vat_cents?: number;
61668
- vat_percentage?: number;
61669
- werkbon_id?: string | null;
61670
- };
61671
- Relationships: [{
61672
- foreignKeyName: "uren_facturen_customer_id_fkey";
61673
- columns: ["customer_id"];
61674
- isOneToOne: false;
61675
- referencedRelation: "itk_customers";
61676
- referencedColumns: ["id"];
61677
- }, {
61678
- foreignKeyName: "uren_facturen_werkbon_id_fkey";
61679
- columns: ["werkbon_id"];
61680
- isOneToOne: true;
61681
- referencedRelation: "werkbonnen";
61682
- referencedColumns: ["id"];
61683
- }];
61684
- };
61685
- uren_factuur_regels: {
61686
- Row: {
61687
- created_at: string;
61688
- description: string;
61689
- factuur_id: string;
61690
- id: string;
61691
- kind: string | null;
61692
- quantity: number;
61693
- sort_order: number;
61694
- total_cents: number;
61695
- unit: string;
61696
- unit_price_cents: number;
61697
- };
61698
- Insert: {
61699
- created_at?: string;
61700
- description: string;
61701
- factuur_id: string;
61702
- id?: string;
61703
- kind?: string | null;
61704
- quantity?: number;
61705
- sort_order?: number;
61706
- total_cents?: number;
61707
- unit?: string;
61708
- unit_price_cents?: number;
61709
- };
61710
- Update: {
61711
- created_at?: string;
61712
- description?: string;
61713
- factuur_id?: string;
61714
- id?: string;
61715
- kind?: string | null;
61716
- quantity?: number;
61717
- sort_order?: number;
61718
- total_cents?: number;
61719
- unit?: string;
61720
- unit_price_cents?: number;
61721
- };
61722
- Relationships: [{
61723
- foreignKeyName: "uren_factuur_regels_factuur_id_fkey";
61724
- columns: ["factuur_id"];
61725
- isOneToOne: false;
61726
- referencedRelation: "uren_facturen";
61727
- referencedColumns: ["id"];
61728
- }];
61729
- };
61730
62606
  uren_offerte_regels: {
61731
62607
  Row: {
61732
62608
  created_at: string;
@@ -62980,6 +63856,9 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
62980
63856
  scheduled_end_time: string | null;
62981
63857
  scheduled_start_time: string | null;
62982
63858
  sequence_number: number;
63859
+ signature_accepted_at: string | null;
63860
+ signature_by_user_id: string | null;
63861
+ signature_name: string | null;
62983
63862
  source_email_meta: import("../integrations/supabase/types").Json | null;
62984
63863
  source_mailbox_message_id: string | null;
62985
63864
  source_pdf_path: string | null;
@@ -63015,6 +63894,9 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
63015
63894
  scheduled_end_time?: string | null;
63016
63895
  scheduled_start_time?: string | null;
63017
63896
  sequence_number: number;
63897
+ signature_accepted_at?: string | null;
63898
+ signature_by_user_id?: string | null;
63899
+ signature_name?: string | null;
63018
63900
  source_email_meta?: import("../integrations/supabase/types").Json | null;
63019
63901
  source_mailbox_message_id?: string | null;
63020
63902
  source_pdf_path?: string | null;
@@ -63050,6 +63932,9 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
63050
63932
  scheduled_end_time?: string | null;
63051
63933
  scheduled_start_time?: string | null;
63052
63934
  sequence_number?: number;
63935
+ signature_accepted_at?: string | null;
63936
+ signature_by_user_id?: string | null;
63937
+ signature_name?: string | null;
63053
63938
  source_email_meta?: import("../integrations/supabase/types").Json | null;
63054
63939
  source_mailbox_message_id?: string | null;
63055
63940
  source_pdf_path?: string | null;
@@ -63566,6 +64451,114 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
63566
64451
  };
63567
64452
  Relationships: [];
63568
64453
  };
64454
+ uren_facturen: {
64455
+ Row: {
64456
+ created_at: string | null;
64457
+ created_by: string | null;
64458
+ customer_id: string | null;
64459
+ customer_name: string | null;
64460
+ id: string | null;
64461
+ invoice_number: string | null;
64462
+ note: string | null;
64463
+ status: string | null;
64464
+ total_excl_cents: number | null;
64465
+ total_incl_cents: number | null;
64466
+ updated_at: string | null;
64467
+ vat_cents: number | null;
64468
+ vat_percentage: number | null;
64469
+ werkbon_id: string | null;
64470
+ };
64471
+ Insert: {
64472
+ created_at?: string | null;
64473
+ created_by?: string | null;
64474
+ customer_id?: string | null;
64475
+ customer_name?: string | null;
64476
+ id?: string | null;
64477
+ invoice_number?: string | null;
64478
+ note?: string | null;
64479
+ status?: string | null;
64480
+ total_excl_cents?: number | null;
64481
+ total_incl_cents?: number | null;
64482
+ updated_at?: string | null;
64483
+ vat_cents?: number | null;
64484
+ vat_percentage?: number | null;
64485
+ werkbon_id?: never;
64486
+ };
64487
+ Update: {
64488
+ created_at?: string | null;
64489
+ created_by?: string | null;
64490
+ customer_id?: string | null;
64491
+ customer_name?: string | null;
64492
+ id?: string | null;
64493
+ invoice_number?: string | null;
64494
+ note?: string | null;
64495
+ status?: string | null;
64496
+ total_excl_cents?: number | null;
64497
+ total_incl_cents?: number | null;
64498
+ updated_at?: string | null;
64499
+ vat_cents?: number | null;
64500
+ vat_percentage?: number | null;
64501
+ werkbon_id?: never;
64502
+ };
64503
+ Relationships: [{
64504
+ foreignKeyName: "invoices_customer_id_fkey";
64505
+ columns: ["customer_id"];
64506
+ isOneToOne: false;
64507
+ referencedRelation: "itk_customers";
64508
+ referencedColumns: ["id"];
64509
+ }];
64510
+ };
64511
+ uren_factuur_regels: {
64512
+ Row: {
64513
+ created_at: string | null;
64514
+ description: string | null;
64515
+ factuur_id: string | null;
64516
+ id: string | null;
64517
+ kind: string | null;
64518
+ quantity: number | null;
64519
+ sort_order: number | null;
64520
+ total_cents: number | null;
64521
+ unit: string | null;
64522
+ unit_price_cents: number | null;
64523
+ };
64524
+ Insert: {
64525
+ created_at?: string | null;
64526
+ description?: string | null;
64527
+ factuur_id?: string | null;
64528
+ id?: string | null;
64529
+ kind?: string | null;
64530
+ quantity?: number | null;
64531
+ sort_order?: number | null;
64532
+ total_cents?: number | null;
64533
+ unit?: string | null;
64534
+ unit_price_cents?: number | null;
64535
+ };
64536
+ Update: {
64537
+ created_at?: string | null;
64538
+ description?: string | null;
64539
+ factuur_id?: string | null;
64540
+ id?: string | null;
64541
+ kind?: string | null;
64542
+ quantity?: number | null;
64543
+ sort_order?: number | null;
64544
+ total_cents?: number | null;
64545
+ unit?: string | null;
64546
+ unit_price_cents?: number | null;
64547
+ };
64548
+ Relationships: [{
64549
+ foreignKeyName: "invoice_items_invoice_id_fkey";
64550
+ columns: ["factuur_id"];
64551
+ isOneToOne: false;
64552
+ referencedRelation: "invoices";
64553
+ referencedColumns: ["id"];
64554
+ }, {
64555
+ foreignKeyName: "invoice_items_invoice_id_fkey";
64556
+ columns: ["factuur_id"];
64557
+ isOneToOne: false;
64558
+ referencedRelation: "uren_facturen";
64559
+ referencedColumns: ["id"];
64560
+ }];
64561
+ };
63569
64562
  v_external_customers_exact: {
63570
64563
  Row: {
63571
64564
  account_number: string | null;
@@ -64071,6 +65064,7 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
64071
65064
  gebruiker_id: string | null;
64072
65065
  gebruiker_naam: string;
64073
65066
  gestart_op: string | null;
65067
+ herkomst: string | null;
64074
65068
  id: string;
64075
65069
  idempotentie_sleutel: string | null;
64076
65070
  is_herprint: boolean;
@@ -64191,6 +65185,7 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
64191
65185
  gebruiker_id: string | null;
64192
65186
  gebruiker_naam: string;
64193
65187
  gestart_op: string | null;
65188
+ herkomst: string | null;
64194
65189
  id: string;
64195
65190
  idempotentie_sleutel: string | null;
64196
65191
  is_herprint: boolean;
@@ -64792,6 +65787,46 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
64792
65787
  Args: never;
64793
65788
  Returns: boolean;
64794
65789
  };
65790
+ invoice_create_from_source: {
65791
+ Args: {
65792
+ _payload?: import("../integrations/supabase/types").Json;
65793
+ _source_id: string;
65794
+ _source_type: string;
65795
+ };
65796
+ Returns: import("../integrations/supabase/types").Json;
65797
+ };
65798
+ invoice_get_billable_lines: {
65799
+ Args: {
65800
+ _invoice_id: string;
65801
+ };
65802
+ Returns: import("../integrations/supabase/types").Json;
65803
+ };
65804
+ invoice_get_for_source: {
65805
+ Args: {
65806
+ _source_id: string;
65807
+ _source_type: string;
65808
+ };
65809
+ Returns: import("../integrations/supabase/types").Json;
65810
+ };
65811
+ invoice_get_summary: {
65812
+ Args: {
65813
+ _invoice_id: string;
65814
+ };
65815
+ Returns: import("../integrations/supabase/types").Json;
65816
+ };
65817
+ invoice_list_sources: {
65818
+ Args: {
65819
+ _limit?: number;
65820
+ _source_type?: string;
65821
+ };
65822
+ Returns: import("../integrations/supabase/types").Json;
65823
+ };
65824
+ invoice_recalc_totals: {
65825
+ Args: {
65826
+ _invoice_id: string;
65827
+ };
65828
+ Returns: import("../integrations/supabase/types").Json;
65829
+ };
64795
65830
  is_authenticated: {
64796
65831
  Args: never;
64797
65832
  Returns: boolean;
@@ -64860,6 +65895,29 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
64860
65895
  roles: string[];
64861
65896
  }[];
64862
65897
  };
65898
+ list_monteur_absences: {
65899
+ Args: {
65900
+ _from: string;
65901
+ _to: string;
65902
+ };
65903
+ Returns: {
65904
+ absence_date: string;
65905
+ end_time: string;
65906
+ full_day: boolean;
65907
+ kind: string;
65908
+ monteur_id: string;
65909
+ start_time: string;
65910
+ }[];
65911
+ };
65912
+ list_monteurs: {
65913
+ Args: never;
65914
+ Returns: {
65915
+ avatar_url: string;
65916
+ display_name: string;
65917
+ email: string;
65918
+ id: string;
65919
+ }[];
65920
+ };
64863
65921
  list_my_planning_items: {
64864
65922
  Args: {
64865
65923
  _from: string;
@@ -65271,6 +66329,23 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
65271
66329
  };
65272
66330
  Returns: string;
65273
66331
  };
66332
+ logistics_floriday_finish_push_v2: {
66333
+ Args: {
66334
+ _error?: string;
66335
+ _error_code?: string;
66336
+ _fulfillment_order_id?: string;
66337
+ _gateway_status?: number;
66338
+ _id: string;
66339
+ _max_age_hours?: number;
66340
+ _max_attempts?: number;
66341
+ _ok: boolean;
66342
+ _permanent?: boolean;
66343
+ _response?: import("../integrations/supabase/types").Json;
66344
+ _revision: number;
66345
+ _sent_hash?: string;
66346
+ };
66347
+ Returns: string;
66348
+ };
65274
66349
  logistics_floriday_prune_pushes: {
65275
66350
  Args: {
65276
66351
  _days?: number;
@@ -65813,6 +66888,13 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
65813
66888
  isSetofReturn: false;
65814
66889
  };
65815
66890
  };
66891
+ pick_cleanup_maintenance: {
66892
+ Args: {
66893
+ _heartbeat_hours?: number;
66894
+ _log_days?: number;
66895
+ };
66896
+ Returns: import("../integrations/supabase/types").Json;
66897
+ };
65816
66898
  pick_complete_print: {
65817
66899
  Args: {
65818
66900
  _printer_id: string;
@@ -65864,6 +66946,14 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
65864
66946
  Args: never;
65865
66947
  Returns: string;
65866
66948
  };
66949
+ pick_day_counts: {
66950
+ Args: {
66951
+ _pick_day?: string;
66952
+ _screen_id?: string;
66953
+ _station_id?: string;
66954
+ };
66955
+ Returns: import("../integrations/supabase/types").Json;
66956
+ };
65867
66957
  pick_document_layout_data: {
65868
66958
  Args: {
65869
66959
  _layout_id: string;
@@ -65901,6 +66991,14 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
65901
66991
  };
65902
66992
  Returns: undefined;
65903
66993
  };
66994
+ pick_reprint_document: {
66995
+ Args: {
66996
+ _queue_item_id: string;
66997
+ _session_id: string;
66998
+ _throttle_seconds?: number;
66999
+ };
67000
+ Returns: string;
67001
+ };
65904
67002
  pick_reset_print: {
65905
67003
  Args: {
65906
67004
  _queue_item_id: string;
@@ -65966,6 +67064,12 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
65966
67064
  };
65967
67065
  Returns: string;
65968
67066
  };
67067
+ pick_sync_queue_throttled: {
67068
+ Args: {
67069
+ _min_seconds?: number;
67070
+ };
67071
+ Returns: import("../integrations/supabase/types").Json;
67072
+ };
65969
67073
  pickstation_get_orders_raw: {
65970
67074
  Args: never;
65971
67075
  Returns: import("../integrations/supabase/types").Json;
@@ -66111,6 +67215,12 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
66111
67215
  };
66112
67216
  Returns: boolean;
66113
67217
  };
67218
+ release_stale_order_invoice_links: {
67219
+ Args: {
67220
+ _minutes?: number;
67221
+ };
67222
+ Returns: number;
67223
+ };
66114
67224
  reorder_customer_price_groups: {
66115
67225
  Args: {
66116
67226
  _ids: string[];
@@ -66629,6 +67739,20 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
66629
67739
  };
66630
67740
  Returns: undefined;
66631
67741
  };
67742
+ twinfield_deactivate_connection: {
67743
+ Args: {
67744
+ p_connection_id: string;
67745
+ p_user_id: string;
67746
+ };
67747
+ Returns: import("../integrations/supabase/types").Json;
67748
+ };
67749
+ twinfield_handle_administration_change: {
67750
+ Args: {
67751
+ _administration_code: string;
67752
+ _user_id: string;
67753
+ };
67754
+ Returns: undefined;
67755
+ };
66632
67756
  twinfield_prune_push_queue: {
66633
67757
  Args: never;
66634
67758
  Returns: number;
@@ -66648,10 +67772,11 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
66648
67772
  p_company_name?: string;
66649
67773
  p_environment: string;
66650
67774
  p_office_code?: string;
67775
+ p_reset_sync?: boolean;
66651
67776
  p_status?: string;
66652
67777
  p_user_id: string;
66653
67778
  };
66654
- Returns: string;
67779
+ Returns: import("../integrations/supabase/types").Json;
66655
67780
  };
66656
67781
  upsert_auto_fulfillment_log: {
66657
67782
  Args: {