@flowselections/floriday-voorraad 1.0.28 → 1.0.29

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 (107) hide show
  1. package/dist-lib/components/voorraad/ArtikelWizard.d.ts +2 -1
  2. package/dist-lib/components/voorraad/ArtikelWizard.d.ts.map +1 -1
  3. package/dist-lib/components/voorraad/ArtikelWizard.js +555 -316
  4. package/dist-lib/components/voorraad/EditArtikelPage.d.ts +2 -1
  5. package/dist-lib/components/voorraad/EditArtikelPage.d.ts.map +1 -1
  6. package/dist-lib/components/voorraad/EditArtikelPage.js +3 -3
  7. package/dist-lib/components/voorraad/FustenPage.d.ts +2 -0
  8. package/dist-lib/components/voorraad/FustenPage.d.ts.map +1 -0
  9. package/dist-lib/components/voorraad/FustenPage.js +97 -0
  10. package/dist-lib/components/voorraad/LogistiekTakenCard.d.ts +2 -0
  11. package/dist-lib/components/voorraad/LogistiekTakenCard.d.ts.map +1 -0
  12. package/dist-lib/components/voorraad/LogistiekTakenCard.js +54 -0
  13. package/dist-lib/components/voorraad/PublicatiesPage.d.ts +2 -0
  14. package/dist-lib/components/voorraad/PublicatiesPage.d.ts.map +1 -0
  15. package/dist-lib/components/voorraad/PublicatiesPage.js +60 -0
  16. package/dist-lib/components/voorraad/PublishProgressCard.d.ts +12 -0
  17. package/dist-lib/components/voorraad/PublishProgressCard.d.ts.map +1 -0
  18. package/dist-lib/components/voorraad/PublishProgressCard.js +30 -0
  19. package/dist-lib/components/voorraad/PublishReadinessCard.d.ts +10 -0
  20. package/dist-lib/components/voorraad/PublishReadinessCard.d.ts.map +1 -0
  21. package/dist-lib/components/voorraad/PublishReadinessCard.js +12 -0
  22. package/dist-lib/components/voorraad/StockSyncStatus.d.ts +2 -0
  23. package/dist-lib/components/voorraad/StockSyncStatus.d.ts.map +1 -0
  24. package/dist-lib/components/voorraad/StockSyncStatus.js +23 -0
  25. package/dist-lib/components/voorraad/VoorraadPage.d.ts.map +1 -1
  26. package/dist-lib/components/voorraad/VoorraadPage.js +5 -1
  27. package/dist-lib/components/voorraad/VoorraadTable.d.ts.map +1 -1
  28. package/dist-lib/components/voorraad/VoorraadTable.js +1 -1
  29. package/dist-lib/hooks/useFusten.d.ts +17 -0
  30. package/dist-lib/hooks/useFusten.d.ts.map +1 -0
  31. package/dist-lib/hooks/useFusten.js +81 -0
  32. package/dist-lib/hooks/useLocalTradeItems.d.ts +14 -4
  33. package/dist-lib/hooks/useLocalTradeItems.d.ts.map +1 -1
  34. package/dist-lib/hooks/useLocalTradeItems.js +83 -5
  35. package/dist-lib/hooks/useLogisticsTasks.d.ts +13 -0
  36. package/dist-lib/hooks/useLogisticsTasks.d.ts.map +1 -0
  37. package/dist-lib/hooks/useLogisticsTasks.js +155 -0
  38. package/dist-lib/hooks/usePublishJob.d.ts +13 -0
  39. package/dist-lib/hooks/usePublishJob.d.ts.map +1 -0
  40. package/dist-lib/hooks/usePublishJob.js +67 -0
  41. package/dist-lib/hooks/useRegisterModuleBaseUrl.d.ts +2 -0
  42. package/dist-lib/hooks/useRegisterModuleBaseUrl.d.ts.map +1 -0
  43. package/dist-lib/hooks/useRegisterModuleBaseUrl.js +31 -0
  44. package/dist-lib/hooks/useStockSyncHealth.d.ts +8 -0
  45. package/dist-lib/hooks/useStockSyncHealth.d.ts.map +1 -0
  46. package/dist-lib/hooks/useStockSyncHealth.js +42 -0
  47. package/dist-lib/hooks/useTradeItemStock.d.ts.map +1 -1
  48. package/dist-lib/hooks/useTradeItemStock.js +37 -1
  49. package/dist-lib/index.d.ts.map +1 -1
  50. package/dist-lib/index.js +5 -1
  51. package/dist-lib/integrations/supabase/auth-middleware.d.ts +1849 -50
  52. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  53. package/dist-lib/integrations/supabase/client.d.ts +1849 -50
  54. package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
  55. package/dist-lib/integrations/supabase/client.server.d.ts +1849 -50
  56. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  57. package/dist-lib/integrations/supabase/types.d.ts +1870 -41
  58. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  59. package/dist-lib/lib/floricode-required-features.functions.d.ts +1849 -50
  60. package/dist-lib/lib/floricode-required-features.functions.d.ts.map +1 -1
  61. package/dist-lib/lib/floriday-client.d.ts +1 -1
  62. package/dist-lib/lib/floriday-client.d.ts.map +1 -1
  63. package/dist-lib/lib/floriday-client.js +1 -2
  64. package/dist-lib/lib/floriday-customer-offer.functions.d.ts +1849 -50
  65. package/dist-lib/lib/floriday-customer-offer.functions.d.ts.map +1 -1
  66. package/dist-lib/lib/floriday-customer-offer.functions.js +14 -19
  67. package/dist-lib/lib/floriday-env.functions.d.ts +35712 -0
  68. package/dist-lib/lib/floriday-env.functions.d.ts.map +1 -0
  69. package/dist-lib/lib/floriday-env.functions.js +16 -0
  70. package/dist-lib/lib/floriday-env.server.d.ts +12 -0
  71. package/dist-lib/lib/floriday-env.server.d.ts.map +1 -1
  72. package/dist-lib/lib/floriday-env.server.js +15 -2
  73. package/dist-lib/lib/floriday-gateway.functions.d.ts +26934 -82
  74. package/dist-lib/lib/floriday-gateway.functions.d.ts.map +1 -1
  75. package/dist-lib/lib/floriday-gateway.functions.js +12 -3
  76. package/dist-lib/lib/floriday-readiness.server.d.ts +11 -0
  77. package/dist-lib/lib/floriday-readiness.server.d.ts.map +1 -0
  78. package/dist-lib/lib/floriday-readiness.server.js +43 -0
  79. package/dist-lib/lib/floriday-vbn-required.functions.d.ts +3698 -100
  80. package/dist-lib/lib/floriday-vbn-required.functions.d.ts.map +1 -1
  81. package/dist-lib/lib/floriday-warehouse.functions.d.ts +5442 -45
  82. package/dist-lib/lib/floriday-warehouse.functions.d.ts.map +1 -1
  83. package/dist-lib/lib/floriday-warehouse.functions.js +3 -0
  84. package/dist-lib/lib/floriday-writes.functions.d.ts +3698 -100
  85. package/dist-lib/lib/floriday-writes.functions.d.ts.map +1 -1
  86. package/dist-lib/lib/fusten.d.ts +87 -0
  87. package/dist-lib/lib/fusten.d.ts.map +1 -0
  88. package/dist-lib/lib/fusten.js +389 -0
  89. package/dist-lib/lib/logistics-engine.d.ts +63 -0
  90. package/dist-lib/lib/logistics-engine.d.ts.map +1 -0
  91. package/dist-lib/lib/logistics-engine.js +57 -0
  92. package/dist-lib/lib/logistics-events.d.ts +18 -0
  93. package/dist-lib/lib/logistics-events.d.ts.map +1 -0
  94. package/dist-lib/lib/logistics-events.js +61 -0
  95. package/dist-lib/lib/module-runtime-config.functions.d.ts +14 -0
  96. package/dist-lib/lib/module-runtime-config.functions.d.ts.map +1 -0
  97. package/dist-lib/lib/module-runtime-config.functions.js +107 -0
  98. package/dist-lib/lib/publish-errors.d.ts +37 -0
  99. package/dist-lib/lib/publish-errors.d.ts.map +1 -0
  100. package/dist-lib/lib/publish-errors.js +183 -0
  101. package/dist-lib/lib/publish-pipeline.d.ts +91 -0
  102. package/dist-lib/lib/publish-pipeline.d.ts.map +1 -0
  103. package/dist-lib/lib/publish-pipeline.js +212 -0
  104. package/dist-lib/lib/publish-readiness.d.ts +42 -0
  105. package/dist-lib/lib/publish-readiness.d.ts.map +1 -0
  106. package/dist-lib/lib/publish-readiness.js +102 -0
  107. package/package.json +2 -2
@@ -1650,13 +1650,7 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
1650
1650
  id?: string;
1651
1651
  user_id?: string | null;
1652
1652
  };
1653
- Relationships: [{
1654
- foreignKeyName: "customer_audit_log_customer_id_fkey";
1655
- columns: ["customer_id"];
1656
- isOneToOne: false;
1657
- referencedRelation: "customers";
1658
- referencedColumns: ["id"];
1659
- }];
1653
+ Relationships: [];
1660
1654
  };
1661
1655
  customer_contacts: {
1662
1656
  Row: {
@@ -1717,9 +1711,12 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
1717
1711
  city: string | null;
1718
1712
  country: string | null;
1719
1713
  created_at: string;
1720
- customer_id: string;
1714
+ customer_id: string | null;
1715
+ external_key: string | null;
1716
+ external_provider: string | null;
1721
1717
  floriday_location_id: string | null;
1722
1718
  gln: string | null;
1719
+ group_key: string | null;
1723
1720
  house_number: string | null;
1724
1721
  id: string;
1725
1722
  is_primary: boolean;
@@ -1738,9 +1735,12 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
1738
1735
  city?: string | null;
1739
1736
  country?: string | null;
1740
1737
  created_at?: string;
1741
- customer_id: string;
1738
+ customer_id?: string | null;
1739
+ external_key?: string | null;
1740
+ external_provider?: string | null;
1742
1741
  floriday_location_id?: string | null;
1743
1742
  gln?: string | null;
1743
+ group_key?: string | null;
1744
1744
  house_number?: string | null;
1745
1745
  id?: string;
1746
1746
  is_primary?: boolean;
@@ -1759,9 +1759,12 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
1759
1759
  city?: string | null;
1760
1760
  country?: string | null;
1761
1761
  created_at?: string;
1762
- customer_id?: string;
1762
+ customer_id?: string | null;
1763
+ external_key?: string | null;
1764
+ external_provider?: string | null;
1763
1765
  floriday_location_id?: string | null;
1764
1766
  gln?: string | null;
1767
+ group_key?: string | null;
1765
1768
  house_number?: string | null;
1766
1769
  id?: string;
1767
1770
  is_primary?: boolean;
@@ -1850,6 +1853,39 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
1850
1853
  };
1851
1854
  Relationships: [];
1852
1855
  };
1856
+ customer_logistics_strategy: {
1857
+ Row: {
1858
+ created_at: string;
1859
+ id: string;
1860
+ ref_key: string;
1861
+ scope: string;
1862
+ strategy_id: string | null;
1863
+ updated_at: string;
1864
+ };
1865
+ Insert: {
1866
+ created_at?: string;
1867
+ id?: string;
1868
+ ref_key: string;
1869
+ scope: string;
1870
+ strategy_id?: string | null;
1871
+ updated_at?: string;
1872
+ };
1873
+ Update: {
1874
+ created_at?: string;
1875
+ id?: string;
1876
+ ref_key?: string;
1877
+ scope?: string;
1878
+ strategy_id?: string | null;
1879
+ updated_at?: string;
1880
+ };
1881
+ Relationships: [{
1882
+ foreignKeyName: "customer_logistics_strategy_strategy_id_fkey";
1883
+ columns: ["strategy_id"];
1884
+ isOneToOne: false;
1885
+ referencedRelation: "logistics_strategies";
1886
+ referencedColumns: ["id"];
1887
+ }];
1888
+ };
1853
1889
  customer_price_group_members: {
1854
1890
  Row: {
1855
1891
  created_at: string;
@@ -2061,6 +2097,7 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
2061
2097
  bank_state: string | null;
2062
2098
  billing_email: string | null;
2063
2099
  bio: string | null;
2100
+ blocked: boolean;
2064
2101
  city: string | null;
2065
2102
  coc_number: string | null;
2066
2103
  commercial_name: string | null;
@@ -2069,11 +2106,14 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
2069
2106
  contact_person: string | null;
2070
2107
  country: string | null;
2071
2108
  created_at: string;
2109
+ credit_limit: number;
2072
2110
  custom_fields: import("../integrations/supabase/types").Json;
2073
2111
  customer_class: string | null;
2074
2112
  customer_number: string | null;
2075
2113
  discount_days: number | null;
2076
2114
  discount_percentage: number | null;
2115
+ discount_surcharge: string;
2116
+ e_invoicing: boolean;
2077
2117
  email: string | null;
2078
2118
  external_id: string | null;
2079
2119
  fax: string | null;
@@ -2084,19 +2124,23 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
2084
2124
  house_number: string | null;
2085
2125
  icp_country_code: string | null;
2086
2126
  id: string;
2127
+ invoice_send_as: string;
2087
2128
  is_active: boolean;
2088
2129
  language: string | null;
2089
2130
  last_synced_at: string | null;
2131
+ ledger_account: string | null;
2090
2132
  logo_url: string | null;
2091
2133
  markets: string[];
2092
2134
  notes: string | null;
2093
2135
  organization_type: string | null;
2094
2136
  payment_methods: string[];
2137
+ payment_spec_method: string;
2095
2138
  payment_term_days: number | null;
2096
2139
  phone: string | null;
2097
2140
  postal_code: string | null;
2098
2141
  product_groups: string[];
2099
2142
  segments: string[];
2143
+ send_reminder: string;
2100
2144
  source: string;
2101
2145
  street: string | null;
2102
2146
  sync_error: string | null;
@@ -2132,6 +2176,7 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
2132
2176
  bank_state?: string | null;
2133
2177
  billing_email?: string | null;
2134
2178
  bio?: string | null;
2179
+ blocked?: boolean;
2135
2180
  city?: string | null;
2136
2181
  coc_number?: string | null;
2137
2182
  commercial_name?: string | null;
@@ -2140,11 +2185,14 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
2140
2185
  contact_person?: string | null;
2141
2186
  country?: string | null;
2142
2187
  created_at?: string;
2188
+ credit_limit?: number;
2143
2189
  custom_fields?: import("../integrations/supabase/types").Json;
2144
2190
  customer_class?: string | null;
2145
2191
  customer_number?: string | null;
2146
2192
  discount_days?: number | null;
2147
2193
  discount_percentage?: number | null;
2194
+ discount_surcharge?: string;
2195
+ e_invoicing?: boolean;
2148
2196
  email?: string | null;
2149
2197
  external_id?: string | null;
2150
2198
  fax?: string | null;
@@ -2155,19 +2203,23 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
2155
2203
  house_number?: string | null;
2156
2204
  icp_country_code?: string | null;
2157
2205
  id?: string;
2206
+ invoice_send_as?: string;
2158
2207
  is_active?: boolean;
2159
2208
  language?: string | null;
2160
2209
  last_synced_at?: string | null;
2210
+ ledger_account?: string | null;
2161
2211
  logo_url?: string | null;
2162
2212
  markets?: string[];
2163
2213
  notes?: string | null;
2164
2214
  organization_type?: string | null;
2165
2215
  payment_methods?: string[];
2216
+ payment_spec_method?: string;
2166
2217
  payment_term_days?: number | null;
2167
2218
  phone?: string | null;
2168
2219
  postal_code?: string | null;
2169
2220
  product_groups?: string[];
2170
2221
  segments?: string[];
2222
+ send_reminder?: string;
2171
2223
  source?: string;
2172
2224
  street?: string | null;
2173
2225
  sync_error?: string | null;
@@ -2203,6 +2255,7 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
2203
2255
  bank_state?: string | null;
2204
2256
  billing_email?: string | null;
2205
2257
  bio?: string | null;
2258
+ blocked?: boolean;
2206
2259
  city?: string | null;
2207
2260
  coc_number?: string | null;
2208
2261
  commercial_name?: string | null;
@@ -2211,11 +2264,14 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
2211
2264
  contact_person?: string | null;
2212
2265
  country?: string | null;
2213
2266
  created_at?: string;
2267
+ credit_limit?: number;
2214
2268
  custom_fields?: import("../integrations/supabase/types").Json;
2215
2269
  customer_class?: string | null;
2216
2270
  customer_number?: string | null;
2217
2271
  discount_days?: number | null;
2218
2272
  discount_percentage?: number | null;
2273
+ discount_surcharge?: string;
2274
+ e_invoicing?: boolean;
2219
2275
  email?: string | null;
2220
2276
  external_id?: string | null;
2221
2277
  fax?: string | null;
@@ -2226,19 +2282,23 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
2226
2282
  house_number?: string | null;
2227
2283
  icp_country_code?: string | null;
2228
2284
  id?: string;
2285
+ invoice_send_as?: string;
2229
2286
  is_active?: boolean;
2230
2287
  language?: string | null;
2231
2288
  last_synced_at?: string | null;
2289
+ ledger_account?: string | null;
2232
2290
  logo_url?: string | null;
2233
2291
  markets?: string[];
2234
2292
  notes?: string | null;
2235
2293
  organization_type?: string | null;
2236
2294
  payment_methods?: string[];
2295
+ payment_spec_method?: string;
2237
2296
  payment_term_days?: number | null;
2238
2297
  phone?: string | null;
2239
2298
  postal_code?: string | null;
2240
2299
  product_groups?: string[];
2241
2300
  segments?: string[];
2301
+ send_reminder?: string;
2242
2302
  source?: string;
2243
2303
  street?: string | null;
2244
2304
  sync_error?: string | null;
@@ -2957,6 +3017,7 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
2957
3017
  status: string;
2958
3018
  token_expires_at: string | null;
2959
3019
  updated_at: string;
3020
+ watch_scope: string;
2960
3021
  webhook_last_attempt_at: string | null;
2961
3022
  webhook_last_error: string | null;
2962
3023
  webhook_status: string;
@@ -2999,6 +3060,7 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
2999
3060
  status?: string;
3000
3061
  token_expires_at?: string | null;
3001
3062
  updated_at?: string;
3063
+ watch_scope?: string;
3002
3064
  webhook_last_attempt_at?: string | null;
3003
3065
  webhook_last_error?: string | null;
3004
3066
  webhook_status?: string;
@@ -3041,6 +3103,7 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
3041
3103
  status?: string;
3042
3104
  token_expires_at?: string | null;
3043
3105
  updated_at?: string;
3106
+ watch_scope?: string;
3044
3107
  webhook_last_attempt_at?: string | null;
3045
3108
  webhook_last_error?: string | null;
3046
3109
  webhook_status?: string;
@@ -3239,6 +3302,72 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
3239
3302
  referencedColumns: ["id"];
3240
3303
  }];
3241
3304
  };
3305
+ email_auth_watch_folders: {
3306
+ Row: {
3307
+ connection_id: string;
3308
+ created_at: string;
3309
+ folder_id: string;
3310
+ folder_name: string | null;
3311
+ gmail_history_id: string | null;
3312
+ graph_subscription_expires_at: string | null;
3313
+ graph_subscription_id: string | null;
3314
+ id: string;
3315
+ imap_last_uid: number | null;
3316
+ imap_uid_validity: number | null;
3317
+ mailbox: string;
3318
+ provider: string;
3319
+ updated_at: string;
3320
+ webhook_last_error: string | null;
3321
+ webhook_status: string | null;
3322
+ };
3323
+ Insert: {
3324
+ connection_id: string;
3325
+ created_at?: string;
3326
+ folder_id: string;
3327
+ folder_name?: string | null;
3328
+ gmail_history_id?: string | null;
3329
+ graph_subscription_expires_at?: string | null;
3330
+ graph_subscription_id?: string | null;
3331
+ id?: string;
3332
+ imap_last_uid?: number | null;
3333
+ imap_uid_validity?: number | null;
3334
+ mailbox?: string;
3335
+ provider: string;
3336
+ updated_at?: string;
3337
+ webhook_last_error?: string | null;
3338
+ webhook_status?: string | null;
3339
+ };
3340
+ Update: {
3341
+ connection_id?: string;
3342
+ created_at?: string;
3343
+ folder_id?: string;
3344
+ folder_name?: string | null;
3345
+ gmail_history_id?: string | null;
3346
+ graph_subscription_expires_at?: string | null;
3347
+ graph_subscription_id?: string | null;
3348
+ id?: string;
3349
+ imap_last_uid?: number | null;
3350
+ imap_uid_validity?: number | null;
3351
+ mailbox?: string;
3352
+ provider?: string;
3353
+ updated_at?: string;
3354
+ webhook_last_error?: string | null;
3355
+ webhook_status?: string | null;
3356
+ };
3357
+ Relationships: [{
3358
+ foreignKeyName: "email_auth_watch_folders_connection_id_fkey";
3359
+ columns: ["connection_id"];
3360
+ isOneToOne: false;
3361
+ referencedRelation: "email_auth_connections";
3362
+ referencedColumns: ["id"];
3363
+ }, {
3364
+ foreignKeyName: "email_auth_watch_folders_connection_id_fkey";
3365
+ columns: ["connection_id"];
3366
+ isOneToOne: false;
3367
+ referencedRelation: "email_auth_connections_safe";
3368
+ referencedColumns: ["id"];
3369
+ }];
3370
+ };
3242
3371
  email_auth_webhook_log: {
3243
3372
  Row: {
3244
3373
  body_sample: string | null;
@@ -6332,6 +6461,108 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
6332
6461
  };
6333
6462
  Relationships: [];
6334
6463
  };
6464
+ fust_stock_mutations: {
6465
+ Row: {
6466
+ created_at: string;
6467
+ delta: number;
6468
+ fust_type_id: string;
6469
+ id: string;
6470
+ note: string | null;
6471
+ reason: string;
6472
+ trade_item_key: string | null;
6473
+ user_id: string;
6474
+ };
6475
+ Insert: {
6476
+ created_at?: string;
6477
+ delta: number;
6478
+ fust_type_id: string;
6479
+ id?: string;
6480
+ note?: string | null;
6481
+ reason?: string;
6482
+ trade_item_key?: string | null;
6483
+ user_id: string;
6484
+ };
6485
+ Update: {
6486
+ created_at?: string;
6487
+ delta?: number;
6488
+ fust_type_id?: string;
6489
+ id?: string;
6490
+ note?: string | null;
6491
+ reason?: string;
6492
+ trade_item_key?: string | null;
6493
+ user_id?: string;
6494
+ };
6495
+ Relationships: [{
6496
+ foreignKeyName: "fust_stock_mutations_fust_type_id_fkey";
6497
+ columns: ["fust_type_id"];
6498
+ isOneToOne: false;
6499
+ referencedRelation: "fust_types";
6500
+ referencedColumns: ["id"];
6501
+ }];
6502
+ };
6503
+ fust_types: {
6504
+ Row: {
6505
+ connection_id: string | null;
6506
+ created_at: string;
6507
+ custom_package_id: string | null;
6508
+ fust_key: string;
6509
+ height_mm: number | null;
6510
+ id: string;
6511
+ in_use: boolean;
6512
+ length_mm: number | null;
6513
+ minimum_stock: number;
6514
+ name: string;
6515
+ notes: string | null;
6516
+ source: string;
6517
+ stock: number;
6518
+ updated_at: string;
6519
+ used_by_count: number;
6520
+ user_id: string;
6521
+ vbn_code: number | null;
6522
+ width_mm: number | null;
6523
+ };
6524
+ Insert: {
6525
+ connection_id?: string | null;
6526
+ created_at?: string;
6527
+ custom_package_id?: string | null;
6528
+ fust_key: string;
6529
+ height_mm?: number | null;
6530
+ id?: string;
6531
+ in_use?: boolean;
6532
+ length_mm?: number | null;
6533
+ minimum_stock?: number;
6534
+ name: string;
6535
+ notes?: string | null;
6536
+ source?: string;
6537
+ stock?: number;
6538
+ updated_at?: string;
6539
+ used_by_count?: number;
6540
+ user_id: string;
6541
+ vbn_code?: number | null;
6542
+ width_mm?: number | null;
6543
+ };
6544
+ Update: {
6545
+ connection_id?: string | null;
6546
+ created_at?: string;
6547
+ custom_package_id?: string | null;
6548
+ fust_key?: string;
6549
+ height_mm?: number | null;
6550
+ id?: string;
6551
+ in_use?: boolean;
6552
+ length_mm?: number | null;
6553
+ minimum_stock?: number;
6554
+ name?: string;
6555
+ notes?: string | null;
6556
+ source?: string;
6557
+ stock?: number;
6558
+ updated_at?: string;
6559
+ used_by_count?: number;
6560
+ user_id?: string;
6561
+ vbn_code?: number | null;
6562
+ width_mm?: number | null;
6563
+ };
6564
+ Relationships: [];
6565
+ };
6335
6566
  imap_accounts: {
6336
6567
  Row: {
6337
6568
  created_at: string;
@@ -7019,6 +7250,72 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
7019
7250
  referencedColumns: ["id"];
7020
7251
  }];
7021
7252
  };
7253
+ load_carrier_types: {
7254
+ Row: {
7255
+ allow_mixing: boolean;
7256
+ capacity_model: string;
7257
+ code: string;
7258
+ created_at: string;
7259
+ id: string;
7260
+ is_active: boolean;
7261
+ is_default: boolean;
7262
+ layer_length_cm: number;
7263
+ layer_width_cm: number;
7264
+ layers_per_carrier: number;
7265
+ max_boxes: number | null;
7266
+ max_crates_per_layer: number | null;
7267
+ max_customers: number | null;
7268
+ max_height_cm: number | null;
7269
+ max_orders: number | null;
7270
+ max_weight_kg: number | null;
7271
+ name: string;
7272
+ sort_order: number;
7273
+ updated_at: string;
7274
+ };
7275
+ Insert: {
7276
+ allow_mixing?: boolean;
7277
+ capacity_model?: string;
7278
+ code: string;
7279
+ created_at?: string;
7280
+ id?: string;
7281
+ is_active?: boolean;
7282
+ is_default?: boolean;
7283
+ layer_length_cm?: number;
7284
+ layer_width_cm?: number;
7285
+ layers_per_carrier?: number;
7286
+ max_boxes?: number | null;
7287
+ max_crates_per_layer?: number | null;
7288
+ max_customers?: number | null;
7289
+ max_height_cm?: number | null;
7290
+ max_orders?: number | null;
7291
+ max_weight_kg?: number | null;
7292
+ name: string;
7293
+ sort_order?: number;
7294
+ updated_at?: string;
7295
+ };
7296
+ Update: {
7297
+ allow_mixing?: boolean;
7298
+ capacity_model?: string;
7299
+ code?: string;
7300
+ created_at?: string;
7301
+ id?: string;
7302
+ is_active?: boolean;
7303
+ is_default?: boolean;
7304
+ layer_length_cm?: number;
7305
+ layer_width_cm?: number;
7306
+ layers_per_carrier?: number;
7307
+ max_boxes?: number | null;
7308
+ max_crates_per_layer?: number | null;
7309
+ max_customers?: number | null;
7310
+ max_height_cm?: number | null;
7311
+ max_orders?: number | null;
7312
+ max_weight_kg?: number | null;
7313
+ name?: string;
7314
+ sort_order?: number;
7315
+ updated_at?: string;
7316
+ };
7317
+ Relationships: [];
7318
+ };
7022
7319
  local_customer_agreements: {
7023
7320
  Row: {
7024
7321
  base_price: number | null;
@@ -7349,6 +7646,63 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
7349
7646
  referencedColumns: ["id"];
7350
7647
  }];
7351
7648
  };
7649
+ logistics_events: {
7650
+ Row: {
7651
+ created_at: string;
7652
+ error: string | null;
7653
+ event_type: string;
7654
+ id: string;
7655
+ idempotency_key: string | null;
7656
+ order_ref: string;
7657
+ payload: import("../integrations/supabase/types").Json;
7658
+ plan_run_id: string | null;
7659
+ priority: number;
7660
+ processed_at: string | null;
7661
+ shadow: boolean;
7662
+ source_module: string;
7663
+ status: string;
7664
+ strategy_id: string | null;
7665
+ updated_at: string;
7666
+ user_id: string;
7667
+ };
7668
+ Insert: {
7669
+ created_at?: string;
7670
+ error?: string | null;
7671
+ event_type?: string;
7672
+ id?: string;
7673
+ idempotency_key?: string | null;
7674
+ order_ref: string;
7675
+ payload?: import("../integrations/supabase/types").Json;
7676
+ plan_run_id?: string | null;
7677
+ priority?: number;
7678
+ processed_at?: string | null;
7679
+ shadow?: boolean;
7680
+ source_module: string;
7681
+ status?: string;
7682
+ strategy_id?: string | null;
7683
+ updated_at?: string;
7684
+ user_id?: string;
7685
+ };
7686
+ Update: {
7687
+ created_at?: string;
7688
+ error?: string | null;
7689
+ event_type?: string;
7690
+ id?: string;
7691
+ idempotency_key?: string | null;
7692
+ order_ref?: string;
7693
+ payload?: import("../integrations/supabase/types").Json;
7694
+ plan_run_id?: string | null;
7695
+ priority?: number;
7696
+ processed_at?: string | null;
7697
+ shadow?: boolean;
7698
+ source_module?: string;
7699
+ status?: string;
7700
+ strategy_id?: string | null;
7701
+ updated_at?: string;
7702
+ user_id?: string;
7703
+ };
7704
+ Relationships: [];
7705
+ };
7352
7706
  logistics_formulas: {
7353
7707
  Row: {
7354
7708
  created_at: string;
@@ -7391,22 +7745,292 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
7391
7745
  referencedColumns: ["id"];
7392
7746
  }];
7393
7747
  };
7394
- logistics_strategies: {
7748
+ logistics_plan_runs: {
7395
7749
  Row: {
7396
- color: string;
7397
7750
  created_at: string;
7398
- description: string | null;
7751
+ error: string | null;
7399
7752
  id: string;
7400
- is_active: boolean;
7401
- name: string;
7402
- priority: number;
7753
+ input: import("../integrations/supabase/types").Json;
7754
+ order_ref: string;
7755
+ rule_config_id: string | null;
7756
+ rule_version: number | null;
7757
+ settings_hash: string | null;
7758
+ settings_snapshot: import("../integrations/supabase/types").Json;
7759
+ source_module: string | null;
7760
+ status: string;
7761
+ strategy_id: string | null;
7762
+ tasks_created: number;
7763
+ tasks_revised: number;
7764
+ trigger: string;
7403
7765
  updated_at: string;
7404
- updated_by: string | null;
7405
7766
  user_id: string;
7406
- version: number;
7767
+ warnings: import("../integrations/supabase/types").Json;
7407
7768
  };
7408
7769
  Insert: {
7409
- color?: string;
7770
+ created_at?: string;
7771
+ error?: string | null;
7772
+ id?: string;
7773
+ input?: import("../integrations/supabase/types").Json;
7774
+ order_ref: string;
7775
+ rule_config_id?: string | null;
7776
+ rule_version?: number | null;
7777
+ settings_hash?: string | null;
7778
+ settings_snapshot?: import("../integrations/supabase/types").Json;
7779
+ source_module?: string | null;
7780
+ status?: string;
7781
+ strategy_id?: string | null;
7782
+ tasks_created?: number;
7783
+ tasks_revised?: number;
7784
+ trigger?: string;
7785
+ updated_at?: string;
7786
+ user_id?: string;
7787
+ warnings?: import("../integrations/supabase/types").Json;
7788
+ };
7789
+ Update: {
7790
+ created_at?: string;
7791
+ error?: string | null;
7792
+ id?: string;
7793
+ input?: import("../integrations/supabase/types").Json;
7794
+ order_ref?: string;
7795
+ rule_config_id?: string | null;
7796
+ rule_version?: number | null;
7797
+ settings_hash?: string | null;
7798
+ settings_snapshot?: import("../integrations/supabase/types").Json;
7799
+ source_module?: string | null;
7800
+ status?: string;
7801
+ strategy_id?: string | null;
7802
+ tasks_created?: number;
7803
+ tasks_revised?: number;
7804
+ trigger?: string;
7805
+ updated_at?: string;
7806
+ user_id?: string;
7807
+ warnings?: import("../integrations/supabase/types").Json;
7808
+ };
7809
+ Relationships: [{
7810
+ foreignKeyName: "logistics_plan_runs_rule_config_id_fkey";
7811
+ columns: ["rule_config_id"];
7812
+ isOneToOne: false;
7813
+ referencedRelation: "logistics_rule_configs";
7814
+ referencedColumns: ["id"];
7815
+ }, {
7816
+ foreignKeyName: "logistics_plan_runs_strategy_id_fkey";
7817
+ columns: ["strategy_id"];
7818
+ isOneToOne: false;
7819
+ referencedRelation: "logistics_strategies";
7820
+ referencedColumns: ["id"];
7821
+ }];
7822
+ };
7823
+ logistics_rebuffer_state: {
7824
+ Row: {
7825
+ created_at: string;
7826
+ id: boolean;
7827
+ last_checked: number;
7828
+ last_duration_ms: number;
7829
+ last_run_at: string | null;
7830
+ last_updated: number;
7831
+ pending: boolean;
7832
+ requested_at: string | null;
7833
+ updated_at: string;
7834
+ };
7835
+ Insert: {
7836
+ created_at?: string;
7837
+ id?: boolean;
7838
+ last_checked?: number;
7839
+ last_duration_ms?: number;
7840
+ last_run_at?: string | null;
7841
+ last_updated?: number;
7842
+ pending?: boolean;
7843
+ requested_at?: string | null;
7844
+ updated_at?: string;
7845
+ };
7846
+ Update: {
7847
+ created_at?: string;
7848
+ id?: boolean;
7849
+ last_checked?: number;
7850
+ last_duration_ms?: number;
7851
+ last_run_at?: string | null;
7852
+ last_updated?: number;
7853
+ pending?: boolean;
7854
+ requested_at?: string | null;
7855
+ updated_at?: string;
7856
+ };
7857
+ Relationships: [];
7858
+ };
7859
+ logistics_rule_configs: {
7860
+ Row: {
7861
+ created_at: string;
7862
+ current_version: number;
7863
+ description: string | null;
7864
+ id: string;
7865
+ is_active: boolean;
7866
+ name: string;
7867
+ settings: import("../integrations/supabase/types").Json;
7868
+ status: string;
7869
+ strategy_id: string | null;
7870
+ updated_at: string;
7871
+ user_id: string;
7872
+ };
7873
+ Insert: {
7874
+ created_at?: string;
7875
+ current_version?: number;
7876
+ description?: string | null;
7877
+ id?: string;
7878
+ is_active?: boolean;
7879
+ name: string;
7880
+ settings?: import("../integrations/supabase/types").Json;
7881
+ status?: string;
7882
+ strategy_id?: string | null;
7883
+ updated_at?: string;
7884
+ user_id?: string;
7885
+ };
7886
+ Update: {
7887
+ created_at?: string;
7888
+ current_version?: number;
7889
+ description?: string | null;
7890
+ id?: string;
7891
+ is_active?: boolean;
7892
+ name?: string;
7893
+ settings?: import("../integrations/supabase/types").Json;
7894
+ status?: string;
7895
+ strategy_id?: string | null;
7896
+ updated_at?: string;
7897
+ user_id?: string;
7898
+ };
7899
+ Relationships: [{
7900
+ foreignKeyName: "logistics_rule_configs_strategy_id_fkey";
7901
+ columns: ["strategy_id"];
7902
+ isOneToOne: false;
7903
+ referencedRelation: "logistics_strategies";
7904
+ referencedColumns: ["id"];
7905
+ }];
7906
+ };
7907
+ logistics_rule_versions: {
7908
+ Row: {
7909
+ config_id: string;
7910
+ created_at: string;
7911
+ id: string;
7912
+ label: string | null;
7913
+ note: string | null;
7914
+ settings: import("../integrations/supabase/types").Json;
7915
+ status: string;
7916
+ user_id: string;
7917
+ version: number;
7918
+ };
7919
+ Insert: {
7920
+ config_id: string;
7921
+ created_at?: string;
7922
+ id?: string;
7923
+ label?: string | null;
7924
+ note?: string | null;
7925
+ settings?: import("../integrations/supabase/types").Json;
7926
+ status?: string;
7927
+ user_id?: string;
7928
+ version: number;
7929
+ };
7930
+ Update: {
7931
+ config_id?: string;
7932
+ created_at?: string;
7933
+ id?: string;
7934
+ label?: string | null;
7935
+ note?: string | null;
7936
+ settings?: import("../integrations/supabase/types").Json;
7937
+ status?: string;
7938
+ user_id?: string;
7939
+ version?: number;
7940
+ };
7941
+ Relationships: [{
7942
+ foreignKeyName: "logistics_rule_versions_config_id_fkey";
7943
+ columns: ["config_id"];
7944
+ isOneToOne: false;
7945
+ referencedRelation: "logistics_rule_configs";
7946
+ referencedColumns: ["id"];
7947
+ }];
7948
+ };
7949
+ logistics_stock_alerts: {
7950
+ Row: {
7951
+ created_at: string;
7952
+ customer_name: string | null;
7953
+ delivery_date: string | null;
7954
+ email_enabled: boolean;
7955
+ email_error: string | null;
7956
+ email_outbox_id: string | null;
7957
+ email_recipients: string[];
7958
+ email_sent_at: string | null;
7959
+ email_status: string;
7960
+ id: string;
7961
+ notification_id: string | null;
7962
+ order_id: string | null;
7963
+ order_ref: string;
7964
+ priority: number;
7965
+ resolved_at: string | null;
7966
+ resolved_by: string | null;
7967
+ shortages: import("../integrations/supabase/types").Json;
7968
+ status: string;
7969
+ updated_at: string;
7970
+ user_id: string;
7971
+ };
7972
+ Insert: {
7973
+ created_at?: string;
7974
+ customer_name?: string | null;
7975
+ delivery_date?: string | null;
7976
+ email_enabled?: boolean;
7977
+ email_error?: string | null;
7978
+ email_outbox_id?: string | null;
7979
+ email_recipients?: string[];
7980
+ email_sent_at?: string | null;
7981
+ email_status?: string;
7982
+ id?: string;
7983
+ notification_id?: string | null;
7984
+ order_id?: string | null;
7985
+ order_ref: string;
7986
+ priority?: number;
7987
+ resolved_at?: string | null;
7988
+ resolved_by?: string | null;
7989
+ shortages?: import("../integrations/supabase/types").Json;
7990
+ status?: string;
7991
+ updated_at?: string;
7992
+ user_id: string;
7993
+ };
7994
+ Update: {
7995
+ created_at?: string;
7996
+ customer_name?: string | null;
7997
+ delivery_date?: string | null;
7998
+ email_enabled?: boolean;
7999
+ email_error?: string | null;
8000
+ email_outbox_id?: string | null;
8001
+ email_recipients?: string[];
8002
+ email_sent_at?: string | null;
8003
+ email_status?: string;
8004
+ id?: string;
8005
+ notification_id?: string | null;
8006
+ order_id?: string | null;
8007
+ order_ref?: string;
8008
+ priority?: number;
8009
+ resolved_at?: string | null;
8010
+ resolved_by?: string | null;
8011
+ shortages?: import("../integrations/supabase/types").Json;
8012
+ status?: string;
8013
+ updated_at?: string;
8014
+ user_id?: string;
8015
+ };
8016
+ Relationships: [];
8017
+ };
8018
+ logistics_strategies: {
8019
+ Row: {
8020
+ color: string;
8021
+ created_at: string;
8022
+ description: string | null;
8023
+ id: string;
8024
+ is_active: boolean;
8025
+ name: string;
8026
+ priority: number;
8027
+ updated_at: string;
8028
+ updated_by: string | null;
8029
+ user_id: string;
8030
+ version: number;
8031
+ };
8032
+ Insert: {
8033
+ color?: string;
7410
8034
  created_at?: string;
7411
8035
  description?: string | null;
7412
8036
  id?: string;
@@ -7481,6 +8105,114 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
7481
8105
  referencedColumns: ["id"];
7482
8106
  }];
7483
8107
  };
8108
+ logistics_tasks: {
8109
+ Row: {
8110
+ buffer_ref: string | null;
8111
+ claimed_at: string | null;
8112
+ claimed_by: string | null;
8113
+ completed_at: string | null;
8114
+ created_at: string;
8115
+ depends_on: string[];
8116
+ due_at: string | null;
8117
+ error: string | null;
8118
+ id: string;
8119
+ order_ref: string;
8120
+ owner_module: string;
8121
+ payload: import("../integrations/supabase/types").Json;
8122
+ plan_run_id: string | null;
8123
+ planned_end: string | null;
8124
+ planned_start: string | null;
8125
+ priority: number;
8126
+ result: import("../integrations/supabase/types").Json | null;
8127
+ rule_config_id: string | null;
8128
+ rule_version: number | null;
8129
+ sequence: number;
8130
+ shadow: boolean;
8131
+ started_at: string | null;
8132
+ status: string;
8133
+ strategy_id: string | null;
8134
+ task_type: string;
8135
+ updated_at: string;
8136
+ user_id: string;
8137
+ };
8138
+ Insert: {
8139
+ buffer_ref?: string | null;
8140
+ claimed_at?: string | null;
8141
+ claimed_by?: string | null;
8142
+ completed_at?: string | null;
8143
+ created_at?: string;
8144
+ depends_on?: string[];
8145
+ due_at?: string | null;
8146
+ error?: string | null;
8147
+ id?: string;
8148
+ order_ref: string;
8149
+ owner_module: string;
8150
+ payload?: import("../integrations/supabase/types").Json;
8151
+ plan_run_id?: string | null;
8152
+ planned_end?: string | null;
8153
+ planned_start?: string | null;
8154
+ priority?: number;
8155
+ result?: import("../integrations/supabase/types").Json | null;
8156
+ rule_config_id?: string | null;
8157
+ rule_version?: number | null;
8158
+ sequence?: number;
8159
+ shadow?: boolean;
8160
+ started_at?: string | null;
8161
+ status?: string;
8162
+ strategy_id?: string | null;
8163
+ task_type: string;
8164
+ updated_at?: string;
8165
+ user_id?: string;
8166
+ };
8167
+ Update: {
8168
+ buffer_ref?: string | null;
8169
+ claimed_at?: string | null;
8170
+ claimed_by?: string | null;
8171
+ completed_at?: string | null;
8172
+ created_at?: string;
8173
+ depends_on?: string[];
8174
+ due_at?: string | null;
8175
+ error?: string | null;
8176
+ id?: string;
8177
+ order_ref?: string;
8178
+ owner_module?: string;
8179
+ payload?: import("../integrations/supabase/types").Json;
8180
+ plan_run_id?: string | null;
8181
+ planned_end?: string | null;
8182
+ planned_start?: string | null;
8183
+ priority?: number;
8184
+ result?: import("../integrations/supabase/types").Json | null;
8185
+ rule_config_id?: string | null;
8186
+ rule_version?: number | null;
8187
+ sequence?: number;
8188
+ shadow?: boolean;
8189
+ started_at?: string | null;
8190
+ status?: string;
8191
+ strategy_id?: string | null;
8192
+ task_type?: string;
8193
+ updated_at?: string;
8194
+ user_id?: string;
8195
+ };
8196
+ Relationships: [{
8197
+ foreignKeyName: "logistics_tasks_plan_run_id_fkey";
8198
+ columns: ["plan_run_id"];
8199
+ isOneToOne: false;
8200
+ referencedRelation: "logistics_plan_runs";
8201
+ referencedColumns: ["id"];
8202
+ }, {
8203
+ foreignKeyName: "logistics_tasks_rule_config_id_fkey";
8204
+ columns: ["rule_config_id"];
8205
+ isOneToOne: false;
8206
+ referencedRelation: "logistics_rule_configs";
8207
+ referencedColumns: ["id"];
8208
+ }, {
8209
+ foreignKeyName: "logistics_tasks_strategy_id_fkey";
8210
+ columns: ["strategy_id"];
8211
+ isOneToOne: false;
8212
+ referencedRelation: "logistics_strategies";
8213
+ referencedColumns: ["id"];
8214
+ }];
8215
+ };
7484
8216
  logistics_variables: {
7485
8217
  Row: {
7486
8218
  created_at: string;
@@ -8075,6 +8807,24 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
8075
8807
  };
8076
8808
  Relationships: [];
8077
8809
  };
8810
+ module_runtime_config: {
8811
+ Row: {
8812
+ key: string;
8813
+ updated_at: string;
8814
+ value: string;
8815
+ };
8816
+ Insert: {
8817
+ key: string;
8818
+ updated_at?: string;
8819
+ value: string;
8820
+ };
8821
+ Update: {
8822
+ key?: string;
8823
+ updated_at?: string;
8824
+ value?: string;
8825
+ };
8826
+ Relationships: [];
8827
+ };
8078
8828
  modules: {
8079
8829
  Row: {
8080
8830
  created_at: string;
@@ -8875,6 +9625,7 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
8875
9625
  };
8876
9626
  order_cart_items: {
8877
9627
  Row: {
9628
+ boxes: number | null;
8878
9629
  cart_id: string;
8879
9630
  crates: number;
8880
9631
  crates_per_layer: number;
@@ -8887,8 +9638,10 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
8887
9638
  plants_per_crate: number;
8888
9639
  product_id: string | null;
8889
9640
  product_name: string;
9641
+ weight_kg: number | null;
8890
9642
  };
8891
9643
  Insert: {
9644
+ boxes?: number | null;
8892
9645
  cart_id: string;
8893
9646
  crates: number;
8894
9647
  crates_per_layer?: number;
@@ -8901,8 +9654,10 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
8901
9654
  plants_per_crate?: number;
8902
9655
  product_id?: string | null;
8903
9656
  product_name: string;
9657
+ weight_kg?: number | null;
8904
9658
  };
8905
9659
  Update: {
9660
+ boxes?: number | null;
8906
9661
  cart_id?: string;
8907
9662
  crates?: number;
8908
9663
  crates_per_layer?: number;
@@ -8915,6 +9670,7 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
8915
9670
  plants_per_crate?: number;
8916
9671
  product_id?: string | null;
8917
9672
  product_name?: string;
9673
+ weight_kg?: number | null;
8918
9674
  };
8919
9675
  Relationships: [{
8920
9676
  foreignKeyName: "order_cart_items_cart_id_fkey";
@@ -8940,47 +9696,59 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
8940
9696
  Row: {
8941
9697
  algorithm_version: number;
8942
9698
  buffer_id: string | null;
9699
+ carrier_type: string;
9700
+ carrier_type_id: string | null;
8943
9701
  cart_number: number;
8944
9702
  created_at: string;
8945
9703
  id: string;
8946
9704
  is_auto: boolean;
8947
9705
  is_complete: boolean;
9706
+ max_layers: number | null;
8948
9707
  notes: string | null;
8949
9708
  occupancy_pct: number;
8950
9709
  order_id: string | null;
8951
9710
  source: string;
8952
9711
  total_layers_used: number;
8953
9712
  updated_at: string;
9713
+ weight_kg: number | null;
8954
9714
  };
8955
9715
  Insert: {
8956
9716
  algorithm_version?: number;
8957
9717
  buffer_id?: string | null;
9718
+ carrier_type?: string;
9719
+ carrier_type_id?: string | null;
8958
9720
  cart_number: number;
8959
9721
  created_at?: string;
8960
9722
  id?: string;
8961
9723
  is_auto?: boolean;
8962
9724
  is_complete?: boolean;
9725
+ max_layers?: number | null;
8963
9726
  notes?: string | null;
8964
9727
  occupancy_pct?: number;
8965
9728
  order_id?: string | null;
8966
9729
  source?: string;
8967
9730
  total_layers_used?: number;
8968
9731
  updated_at?: string;
9732
+ weight_kg?: number | null;
8969
9733
  };
8970
9734
  Update: {
8971
9735
  algorithm_version?: number;
8972
9736
  buffer_id?: string | null;
9737
+ carrier_type?: string;
9738
+ carrier_type_id?: string | null;
8973
9739
  cart_number?: number;
8974
9740
  created_at?: string;
8975
9741
  id?: string;
8976
9742
  is_auto?: boolean;
8977
9743
  is_complete?: boolean;
9744
+ max_layers?: number | null;
8978
9745
  notes?: string | null;
8979
9746
  occupancy_pct?: number;
8980
9747
  order_id?: string | null;
8981
9748
  source?: string;
8982
9749
  total_layers_used?: number;
8983
9750
  updated_at?: string;
9751
+ weight_kg?: number | null;
8984
9752
  };
8985
9753
  Relationships: [{
8986
9754
  foreignKeyName: "order_carts_buffer_id_fkey";
@@ -8988,6 +9756,12 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
8988
9756
  isOneToOne: false;
8989
9757
  referencedRelation: "order_buffers";
8990
9758
  referencedColumns: ["id"];
9759
+ }, {
9760
+ foreignKeyName: "order_carts_carrier_type_id_fkey";
9761
+ columns: ["carrier_type_id"];
9762
+ isOneToOne: false;
9763
+ referencedRelation: "load_carrier_types";
9764
+ referencedColumns: ["id"];
8991
9765
  }, {
8992
9766
  foreignKeyName: "order_carts_order_id_fkey";
8993
9767
  columns: ["order_id"];
@@ -10127,6 +10901,7 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
10127
10901
  lock_timeout_seconds: number;
10128
10902
  name: string;
10129
10903
  require_country_selection: boolean;
10904
+ slug: string | null;
10130
10905
  sort_order: number;
10131
10906
  sort_rules: import("../integrations/supabase/types").Json;
10132
10907
  task_id: string | null;
@@ -10147,6 +10922,7 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
10147
10922
  lock_timeout_seconds?: number;
10148
10923
  name: string;
10149
10924
  require_country_selection?: boolean;
10925
+ slug?: string | null;
10150
10926
  sort_order?: number;
10151
10927
  sort_rules?: import("../integrations/supabase/types").Json;
10152
10928
  task_id?: string | null;
@@ -10167,6 +10943,7 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
10167
10943
  lock_timeout_seconds?: number;
10168
10944
  name?: string;
10169
10945
  require_country_selection?: boolean;
10946
+ slug?: string | null;
10170
10947
  sort_order?: number;
10171
10948
  sort_rules?: import("../integrations/supabase/types").Json;
10172
10949
  task_id?: string | null;
@@ -10700,7 +11477,55 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
10700
11477
  };
10701
11478
  Relationships: [];
10702
11479
  };
10703
- product_bom_items: {
11480
+ product_bom_external_items: {
11481
+ Row: {
11482
+ created_at: string;
11483
+ id: string;
11484
+ name: string;
11485
+ packing_configuration_id: string | null;
11486
+ parent_product_id: string | null;
11487
+ parent_trade_item_floriday_id: string | null;
11488
+ quantity: number;
11489
+ sort_order: number;
11490
+ tenant_id: string;
11491
+ unit: string;
11492
+ updated_at: string;
11493
+ };
11494
+ Insert: {
11495
+ created_at?: string;
11496
+ id?: string;
11497
+ name: string;
11498
+ packing_configuration_id?: string | null;
11499
+ parent_product_id?: string | null;
11500
+ parent_trade_item_floriday_id?: string | null;
11501
+ quantity?: number;
11502
+ sort_order?: number;
11503
+ tenant_id: string;
11504
+ unit?: string;
11505
+ updated_at?: string;
11506
+ };
11507
+ Update: {
11508
+ created_at?: string;
11509
+ id?: string;
11510
+ name?: string;
11511
+ packing_configuration_id?: string | null;
11512
+ parent_product_id?: string | null;
11513
+ parent_trade_item_floriday_id?: string | null;
11514
+ quantity?: number;
11515
+ sort_order?: number;
11516
+ tenant_id?: string;
11517
+ unit?: string;
11518
+ updated_at?: string;
11519
+ };
11520
+ Relationships: [{
11521
+ foreignKeyName: "product_bom_external_items_parent_product_id_fkey";
11522
+ columns: ["parent_product_id"];
11523
+ isOneToOne: false;
11524
+ referencedRelation: "products";
11525
+ referencedColumns: ["id"];
11526
+ }];
11527
+ };
11528
+ product_bom_items: {
10704
11529
  Row: {
10705
11530
  component_product_id: string | null;
10706
11531
  component_trade_item_floriday_id: string | null;
@@ -11936,6 +12761,270 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
11936
12761
  };
11937
12762
  Relationships: [];
11938
12763
  };
12764
+ scan_kar_items: {
12765
+ Row: {
12766
+ barcode: string;
12767
+ id: string;
12768
+ kar_id: string;
12769
+ pakbon_id: string;
12770
+ pakbon_item_id: string;
12771
+ product_id: string | null;
12772
+ product_name: string;
12773
+ quantity: number;
12774
+ scanned_at: string;
12775
+ scanned_by: string | null;
12776
+ };
12777
+ Insert: {
12778
+ barcode: string;
12779
+ id?: string;
12780
+ kar_id: string;
12781
+ pakbon_id: string;
12782
+ pakbon_item_id: string;
12783
+ product_id?: string | null;
12784
+ product_name: string;
12785
+ quantity?: number;
12786
+ scanned_at?: string;
12787
+ scanned_by?: string | null;
12788
+ };
12789
+ Update: {
12790
+ barcode?: string;
12791
+ id?: string;
12792
+ kar_id?: string;
12793
+ pakbon_id?: string;
12794
+ pakbon_item_id?: string;
12795
+ product_id?: string | null;
12796
+ product_name?: string;
12797
+ quantity?: number;
12798
+ scanned_at?: string;
12799
+ scanned_by?: string | null;
12800
+ };
12801
+ Relationships: [{
12802
+ foreignKeyName: "scan_kar_items_kar_id_fkey";
12803
+ columns: ["kar_id"];
12804
+ isOneToOne: false;
12805
+ referencedRelation: "scan_karren";
12806
+ referencedColumns: ["id"];
12807
+ }, {
12808
+ foreignKeyName: "scan_kar_items_pakbon_id_fkey";
12809
+ columns: ["pakbon_id"];
12810
+ isOneToOne: false;
12811
+ referencedRelation: "scan_pakbonnen";
12812
+ referencedColumns: ["id"];
12813
+ }, {
12814
+ foreignKeyName: "scan_kar_items_pakbon_item_id_fkey";
12815
+ columns: ["pakbon_item_id"];
12816
+ isOneToOne: false;
12817
+ referencedRelation: "scan_pakbon_items";
12818
+ referencedColumns: ["id"];
12819
+ }];
12820
+ };
12821
+ scan_kar_pakbonnen: {
12822
+ Row: {
12823
+ created_at: string;
12824
+ id: string;
12825
+ kar_id: string;
12826
+ pakbon_id: string;
12827
+ };
12828
+ Insert: {
12829
+ created_at?: string;
12830
+ id?: string;
12831
+ kar_id: string;
12832
+ pakbon_id: string;
12833
+ };
12834
+ Update: {
12835
+ created_at?: string;
12836
+ id?: string;
12837
+ kar_id?: string;
12838
+ pakbon_id?: string;
12839
+ };
12840
+ Relationships: [{
12841
+ foreignKeyName: "scan_kar_pakbonnen_kar_id_fkey";
12842
+ columns: ["kar_id"];
12843
+ isOneToOne: false;
12844
+ referencedRelation: "scan_karren";
12845
+ referencedColumns: ["id"];
12846
+ }, {
12847
+ foreignKeyName: "scan_kar_pakbonnen_pakbon_id_fkey";
12848
+ columns: ["pakbon_id"];
12849
+ isOneToOne: false;
12850
+ referencedRelation: "scan_pakbonnen";
12851
+ referencedColumns: ["id"];
12852
+ }];
12853
+ };
12854
+ scan_karren: {
12855
+ Row: {
12856
+ afgerond_op: string | null;
12857
+ buffer_key: string | null;
12858
+ created_at: string;
12859
+ customer_names: string[];
12860
+ geprint: boolean;
12861
+ geprint_op: string | null;
12862
+ id: string;
12863
+ kar_nummer: string;
12864
+ medewerker_id: string | null;
12865
+ medewerker_naam: string | null;
12866
+ naar_pickstation: boolean;
12867
+ naar_pickstation_op: string | null;
12868
+ order_number: string | null;
12869
+ scanner_key: string;
12870
+ status: string;
12871
+ totaal_producten: number;
12872
+ updated_at: string;
12873
+ };
12874
+ Insert: {
12875
+ afgerond_op?: string | null;
12876
+ buffer_key?: string | null;
12877
+ created_at?: string;
12878
+ customer_names?: string[];
12879
+ geprint?: boolean;
12880
+ geprint_op?: string | null;
12881
+ id?: string;
12882
+ kar_nummer?: string;
12883
+ medewerker_id?: string | null;
12884
+ medewerker_naam?: string | null;
12885
+ naar_pickstation?: boolean;
12886
+ naar_pickstation_op?: string | null;
12887
+ order_number?: string | null;
12888
+ scanner_key?: string;
12889
+ status?: string;
12890
+ totaal_producten?: number;
12891
+ updated_at?: string;
12892
+ };
12893
+ Update: {
12894
+ afgerond_op?: string | null;
12895
+ buffer_key?: string | null;
12896
+ created_at?: string;
12897
+ customer_names?: string[];
12898
+ geprint?: boolean;
12899
+ geprint_op?: string | null;
12900
+ id?: string;
12901
+ kar_nummer?: string;
12902
+ medewerker_id?: string | null;
12903
+ medewerker_naam?: string | null;
12904
+ naar_pickstation?: boolean;
12905
+ naar_pickstation_op?: string | null;
12906
+ order_number?: string | null;
12907
+ scanner_key?: string;
12908
+ status?: string;
12909
+ totaal_producten?: number;
12910
+ updated_at?: string;
12911
+ };
12912
+ Relationships: [];
12913
+ };
12914
+ scan_logs: {
12915
+ Row: {
12916
+ code: string;
12917
+ created_at: string;
12918
+ id: string;
12919
+ kar_id: string | null;
12920
+ message: string | null;
12921
+ result: string;
12922
+ scanner_key: string;
12923
+ user_id: string | null;
12924
+ };
12925
+ Insert: {
12926
+ code: string;
12927
+ created_at?: string;
12928
+ id?: string;
12929
+ kar_id?: string | null;
12930
+ message?: string | null;
12931
+ result: string;
12932
+ scanner_key?: string;
12933
+ user_id?: string | null;
12934
+ };
12935
+ Update: {
12936
+ code?: string;
12937
+ created_at?: string;
12938
+ id?: string;
12939
+ kar_id?: string | null;
12940
+ message?: string | null;
12941
+ result?: string;
12942
+ scanner_key?: string;
12943
+ user_id?: string | null;
12944
+ };
12945
+ Relationships: [];
12946
+ };
12947
+ scan_pakbon_items: {
12948
+ Row: {
12949
+ barcode: string;
12950
+ created_at: string;
12951
+ id: string;
12952
+ pakbon_id: string;
12953
+ product_id: string | null;
12954
+ product_name: string;
12955
+ quantity: number;
12956
+ scanned_quantity: number;
12957
+ };
12958
+ Insert: {
12959
+ barcode: string;
12960
+ created_at?: string;
12961
+ id?: string;
12962
+ pakbon_id: string;
12963
+ product_id?: string | null;
12964
+ product_name: string;
12965
+ quantity?: number;
12966
+ scanned_quantity?: number;
12967
+ };
12968
+ Update: {
12969
+ barcode?: string;
12970
+ created_at?: string;
12971
+ id?: string;
12972
+ pakbon_id?: string;
12973
+ product_id?: string | null;
12974
+ product_name?: string;
12975
+ quantity?: number;
12976
+ scanned_quantity?: number;
12977
+ };
12978
+ Relationships: [{
12979
+ foreignKeyName: "scan_pakbon_items_pakbon_id_fkey";
12980
+ columns: ["pakbon_id"];
12981
+ isOneToOne: false;
12982
+ referencedRelation: "scan_pakbonnen";
12983
+ referencedColumns: ["id"];
12984
+ }];
12985
+ };
12986
+ scan_pakbonnen: {
12987
+ Row: {
12988
+ barcode: string;
12989
+ buffer_key: string | null;
12990
+ created_at: string;
12991
+ customer_name: string;
12992
+ id: string;
12993
+ order_id: string | null;
12994
+ order_number: string;
12995
+ pakbon_nummer: string;
12996
+ printed_at: string;
12997
+ status: string;
12998
+ updated_at: string;
12999
+ };
13000
+ Insert: {
13001
+ barcode: string;
13002
+ buffer_key?: string | null;
13003
+ created_at?: string;
13004
+ customer_name: string;
13005
+ id?: string;
13006
+ order_id?: string | null;
13007
+ order_number: string;
13008
+ pakbon_nummer: string;
13009
+ printed_at?: string;
13010
+ status?: string;
13011
+ updated_at?: string;
13012
+ };
13013
+ Update: {
13014
+ barcode?: string;
13015
+ buffer_key?: string | null;
13016
+ created_at?: string;
13017
+ customer_name?: string;
13018
+ id?: string;
13019
+ order_id?: string | null;
13020
+ order_number?: string;
13021
+ pakbon_nummer?: string;
13022
+ printed_at?: string;
13023
+ status?: string;
13024
+ updated_at?: string;
13025
+ };
13026
+ Relationships: [];
13027
+ };
11939
13028
  sidebar_config: {
11940
13029
  Row: {
11941
13030
  id: string;
@@ -12614,6 +13703,24 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
12614
13703
  };
12615
13704
  Relationships: [];
12616
13705
  };
13706
+ twinfield_cron_auth: {
13707
+ Row: {
13708
+ created_at: string;
13709
+ id: number;
13710
+ secret: string;
13711
+ };
13712
+ Insert: {
13713
+ created_at?: string;
13714
+ id?: number;
13715
+ secret?: string;
13716
+ };
13717
+ Update: {
13718
+ created_at?: string;
13719
+ id?: number;
13720
+ secret?: string;
13721
+ };
13722
+ Relationships: [];
13723
+ };
12617
13724
  twinfield_customers: {
12618
13725
  Row: {
12619
13726
  address: string | null;
@@ -12875,6 +13982,7 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
12875
13982
  default_invoice_type: string;
12876
13983
  default_payment_term_days: number;
12877
13984
  default_vat_code: string;
13985
+ home_country_code: string;
12878
13986
  invoice_enabled_ao: boolean;
12879
13987
  invoice_enabled_fo: boolean;
12880
13988
  invoice_enabled_ho: boolean;
@@ -12883,6 +13991,8 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
12883
13991
  payment_journal_code: string;
12884
13992
  updated_at: string;
12885
13993
  user_id: string;
13994
+ vat_code_eu_reverse: string | null;
13995
+ vat_code_export: string | null;
12886
13996
  };
12887
13997
  Insert: {
12888
13998
  created_at?: string;
@@ -12892,6 +14002,7 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
12892
14002
  default_invoice_type?: string;
12893
14003
  default_payment_term_days?: number;
12894
14004
  default_vat_code?: string;
14005
+ home_country_code?: string;
12895
14006
  invoice_enabled_ao?: boolean;
12896
14007
  invoice_enabled_fo?: boolean;
12897
14008
  invoice_enabled_ho?: boolean;
@@ -12900,6 +14011,8 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
12900
14011
  payment_journal_code?: string;
12901
14012
  updated_at?: string;
12902
14013
  user_id: string;
14014
+ vat_code_eu_reverse?: string | null;
14015
+ vat_code_export?: string | null;
12903
14016
  };
12904
14017
  Update: {
12905
14018
  created_at?: string;
@@ -12909,6 +14022,7 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
12909
14022
  default_invoice_type?: string;
12910
14023
  default_payment_term_days?: number;
12911
14024
  default_vat_code?: string;
14025
+ home_country_code?: string;
12912
14026
  invoice_enabled_ao?: boolean;
12913
14027
  invoice_enabled_fo?: boolean;
12914
14028
  invoice_enabled_ho?: boolean;
@@ -12917,6 +14031,8 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
12917
14031
  payment_journal_code?: string;
12918
14032
  updated_at?: string;
12919
14033
  user_id?: string;
14034
+ vat_code_eu_reverse?: string | null;
14035
+ vat_code_export?: string | null;
12920
14036
  };
12921
14037
  Relationships: [];
12922
14038
  };
@@ -13118,46 +14234,124 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
13118
14234
  referencedColumns: ["id"];
13119
14235
  }];
13120
14236
  };
13121
- twinfield_push_queue: {
14237
+ twinfield_ledger_accounts_cache: {
13122
14238
  Row: {
13123
- action: string;
13124
- attempts: number;
13125
- connection_id: string;
14239
+ code: string;
14240
+ connection_id: string | null;
13126
14241
  created_at: string;
13127
- customer_id: string | null;
13128
- external_id: string | null;
14242
+ dim_type: string;
14243
+ fetched_at: string;
13129
14244
  id: string;
13130
- idempotency_key: string;
13131
- last_error: string | null;
13132
- next_attempt_at: string;
13133
- office_code: string | null;
13134
- payload: import("../integrations/supabase/types").Json;
13135
- status: string;
14245
+ is_active: boolean;
14246
+ name: string | null;
14247
+ office_code: string;
13136
14248
  updated_at: string;
13137
14249
  };
13138
14250
  Insert: {
13139
- action?: string;
13140
- attempts?: number;
13141
- connection_id: string;
14251
+ code: string;
14252
+ connection_id?: string | null;
13142
14253
  created_at?: string;
13143
- customer_id?: string | null;
13144
- external_id?: string | null;
14254
+ dim_type?: string;
14255
+ fetched_at?: string;
13145
14256
  id?: string;
13146
- idempotency_key: string;
13147
- last_error?: string | null;
13148
- next_attempt_at?: string;
13149
- office_code?: string | null;
13150
- payload: import("../integrations/supabase/types").Json;
13151
- status?: string;
14257
+ is_active?: boolean;
14258
+ name?: string | null;
14259
+ office_code: string;
13152
14260
  updated_at?: string;
13153
14261
  };
13154
14262
  Update: {
13155
- action?: string;
13156
- attempts?: number;
13157
- connection_id?: string;
14263
+ code?: string;
14264
+ connection_id?: string | null;
13158
14265
  created_at?: string;
13159
- customer_id?: string | null;
13160
- external_id?: string | null;
14266
+ dim_type?: string;
14267
+ fetched_at?: string;
14268
+ id?: string;
14269
+ is_active?: boolean;
14270
+ name?: string | null;
14271
+ office_code?: string;
14272
+ updated_at?: string;
14273
+ };
14274
+ Relationships: [];
14275
+ };
14276
+ twinfield_push_log: {
14277
+ Row: {
14278
+ created_at: string;
14279
+ customer_id: string | null;
14280
+ id: string;
14281
+ message: string | null;
14282
+ office_code: string | null;
14283
+ ok: boolean;
14284
+ queue_id: string | null;
14285
+ request_xml: string | null;
14286
+ response_raw: string | null;
14287
+ twinfield_code: string | null;
14288
+ };
14289
+ Insert: {
14290
+ created_at?: string;
14291
+ customer_id?: string | null;
14292
+ id?: string;
14293
+ message?: string | null;
14294
+ office_code?: string | null;
14295
+ ok?: boolean;
14296
+ queue_id?: string | null;
14297
+ request_xml?: string | null;
14298
+ response_raw?: string | null;
14299
+ twinfield_code?: string | null;
14300
+ };
14301
+ Update: {
14302
+ created_at?: string;
14303
+ customer_id?: string | null;
14304
+ id?: string;
14305
+ message?: string | null;
14306
+ office_code?: string | null;
14307
+ ok?: boolean;
14308
+ queue_id?: string | null;
14309
+ request_xml?: string | null;
14310
+ response_raw?: string | null;
14311
+ twinfield_code?: string | null;
14312
+ };
14313
+ Relationships: [];
14314
+ };
14315
+ twinfield_push_queue: {
14316
+ Row: {
14317
+ action: string;
14318
+ attempts: number;
14319
+ connection_id: string | null;
14320
+ created_at: string;
14321
+ customer_id: string | null;
14322
+ external_id: string | null;
14323
+ id: string;
14324
+ idempotency_key: string;
14325
+ last_error: string | null;
14326
+ next_attempt_at: string;
14327
+ office_code: string | null;
14328
+ payload: import("../integrations/supabase/types").Json;
14329
+ status: string;
14330
+ updated_at: string;
14331
+ };
14332
+ Insert: {
14333
+ action?: string;
14334
+ attempts?: number;
14335
+ connection_id?: string | null;
14336
+ created_at?: string;
14337
+ customer_id?: string | null;
14338
+ external_id?: string | null;
14339
+ id?: string;
14340
+ idempotency_key: string;
14341
+ last_error?: string | null;
14342
+ next_attempt_at?: string;
14343
+ office_code?: string | null;
14344
+ payload: import("../integrations/supabase/types").Json;
14345
+ status?: string;
14346
+ updated_at?: string;
14347
+ };
14348
+ Update: {
14349
+ action?: string;
14350
+ attempts?: number;
14351
+ connection_id?: string | null;
14352
+ created_at?: string;
14353
+ customer_id?: string | null;
14354
+ external_id?: string | null;
13161
14355
  id?: string;
13162
14356
  idempotency_key?: string;
13163
14357
  last_error?: string | null;
@@ -13208,6 +14402,27 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
13208
14402
  };
13209
14403
  Relationships: [];
13210
14404
  };
14405
+ twinfield_revoked_accounts: {
14406
+ Row: {
14407
+ account_key: string;
14408
+ last_revoke_error: string | null;
14409
+ revoked_at: string;
14410
+ user_id: string;
14411
+ };
14412
+ Insert: {
14413
+ account_key: string;
14414
+ last_revoke_error?: string | null;
14415
+ revoked_at?: string;
14416
+ user_id: string;
14417
+ };
14418
+ Update: {
14419
+ account_key?: string;
14420
+ last_revoke_error?: string | null;
14421
+ revoked_at?: string;
14422
+ user_id?: string;
14423
+ };
14424
+ Relationships: [];
14425
+ };
13211
14426
  twinfield_session_cache: {
13212
14427
  Row: {
13213
14428
  cluster: string;
@@ -13463,6 +14678,162 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
13463
14678
  };
13464
14679
  Relationships: [];
13465
14680
  };
14681
+ voorraad_publish_jobs: {
14682
+ Row: {
14683
+ connection_id: string | null;
14684
+ created_at: string;
14685
+ environment: string;
14686
+ finished_at: string | null;
14687
+ id: string;
14688
+ intent: string;
14689
+ product_id: string | null;
14690
+ reference_code: string;
14691
+ snapshot: import("../integrations/supabase/types").Json;
14692
+ status: string;
14693
+ summary: import("../integrations/supabase/types").Json;
14694
+ title: string | null;
14695
+ trade_item_id: string | null;
14696
+ trade_item_key: string | null;
14697
+ updated_at: string;
14698
+ user_id: string;
14699
+ };
14700
+ Insert: {
14701
+ connection_id?: string | null;
14702
+ created_at?: string;
14703
+ environment?: string;
14704
+ finished_at?: string | null;
14705
+ id?: string;
14706
+ intent?: string;
14707
+ product_id?: string | null;
14708
+ reference_code?: string;
14709
+ snapshot?: import("../integrations/supabase/types").Json;
14710
+ status?: string;
14711
+ summary?: import("../integrations/supabase/types").Json;
14712
+ title?: string | null;
14713
+ trade_item_id?: string | null;
14714
+ trade_item_key?: string | null;
14715
+ updated_at?: string;
14716
+ user_id: string;
14717
+ };
14718
+ Update: {
14719
+ connection_id?: string | null;
14720
+ created_at?: string;
14721
+ environment?: string;
14722
+ finished_at?: string | null;
14723
+ id?: string;
14724
+ intent?: string;
14725
+ product_id?: string | null;
14726
+ reference_code?: string;
14727
+ snapshot?: import("../integrations/supabase/types").Json;
14728
+ status?: string;
14729
+ summary?: import("../integrations/supabase/types").Json;
14730
+ title?: string | null;
14731
+ trade_item_id?: string | null;
14732
+ trade_item_key?: string | null;
14733
+ updated_at?: string;
14734
+ user_id?: string;
14735
+ };
14736
+ Relationships: [];
14737
+ };
14738
+ voorraad_publish_learnings: {
14739
+ Row: {
14740
+ created_at: string;
14741
+ field_key: string;
14742
+ hits: number;
14743
+ id: string;
14744
+ label: string | null;
14745
+ last_error: string | null;
14746
+ scope: string;
14747
+ updated_at: string;
14748
+ vbn_code: string;
14749
+ };
14750
+ Insert: {
14751
+ created_at?: string;
14752
+ field_key: string;
14753
+ hits?: number;
14754
+ id?: string;
14755
+ label?: string | null;
14756
+ last_error?: string | null;
14757
+ scope?: string;
14758
+ updated_at?: string;
14759
+ vbn_code: string;
14760
+ };
14761
+ Update: {
14762
+ created_at?: string;
14763
+ field_key?: string;
14764
+ hits?: number;
14765
+ id?: string;
14766
+ label?: string | null;
14767
+ last_error?: string | null;
14768
+ scope?: string;
14769
+ updated_at?: string;
14770
+ vbn_code?: string;
14771
+ };
14772
+ Relationships: [];
14773
+ };
14774
+ voorraad_publish_steps: {
14775
+ Row: {
14776
+ attempts: number;
14777
+ created_at: string;
14778
+ error_code: string | null;
14779
+ error_detail: string | null;
14780
+ error_message: string | null;
14781
+ finished_at: string | null;
14782
+ id: string;
14783
+ job_id: string;
14784
+ label: string;
14785
+ position: number;
14786
+ result: import("../integrations/supabase/types").Json | null;
14787
+ started_at: string | null;
14788
+ status: string;
14789
+ step_key: string;
14790
+ updated_at: string;
14791
+ user_id: string;
14792
+ };
14793
+ Insert: {
14794
+ attempts?: number;
14795
+ created_at?: string;
14796
+ error_code?: string | null;
14797
+ error_detail?: string | null;
14798
+ error_message?: string | null;
14799
+ finished_at?: string | null;
14800
+ id?: string;
14801
+ job_id: string;
14802
+ label: string;
14803
+ position?: number;
14804
+ result?: import("../integrations/supabase/types").Json | null;
14805
+ started_at?: string | null;
14806
+ status?: string;
14807
+ step_key: string;
14808
+ updated_at?: string;
14809
+ user_id: string;
14810
+ };
14811
+ Update: {
14812
+ attempts?: number;
14813
+ created_at?: string;
14814
+ error_code?: string | null;
14815
+ error_detail?: string | null;
14816
+ error_message?: string | null;
14817
+ finished_at?: string | null;
14818
+ id?: string;
14819
+ job_id?: string;
14820
+ label?: string;
14821
+ position?: number;
14822
+ result?: import("../integrations/supabase/types").Json | null;
14823
+ started_at?: string | null;
14824
+ status?: string;
14825
+ step_key?: string;
14826
+ updated_at?: string;
14827
+ user_id?: string;
14828
+ };
14829
+ Relationships: [{
14830
+ foreignKeyName: "voorraad_publish_steps_job_id_fkey";
14831
+ columns: ["job_id"];
14832
+ isOneToOne: false;
14833
+ referencedRelation: "voorraad_publish_jobs";
14834
+ referencedColumns: ["id"];
14835
+ }];
14836
+ };
13466
14837
  werkbon_package_ai_rules: {
13467
14838
  Row: {
13468
14839
  active: boolean;
@@ -14726,12 +16097,13 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
14726
16097
  };
14727
16098
  claim_twinfield_push_batch: {
14728
16099
  Args: {
16100
+ _customer_id?: string;
14729
16101
  _limit?: number;
14730
16102
  };
14731
16103
  Returns: {
14732
16104
  action: string;
14733
16105
  attempts: number;
14734
- connection_id: string;
16106
+ connection_id: string | null;
14735
16107
  created_at: string;
14736
16108
  customer_id: string | null;
14737
16109
  external_id: string | null;
@@ -14815,6 +16187,15 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
14815
16187
  };
14816
16188
  Returns: import("../integrations/supabase/types").Json;
14817
16189
  };
16190
+ customer_soft_key: {
16191
+ Args: {
16192
+ _email: string;
16193
+ _house: string;
16194
+ _name: string;
16195
+ _postal: string;
16196
+ };
16197
+ Returns: string;
16198
+ };
14818
16199
  dashboard_alert_counts: {
14819
16200
  Args: never;
14820
16201
  Returns: import("../integrations/supabase/types").Json;
@@ -15280,6 +16661,403 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
15280
16661
  };
15281
16662
  Returns: string;
15282
16663
  };
16664
+ logistics_address_key: {
16665
+ Args: {
16666
+ p_location: string;
16667
+ };
16668
+ Returns: string;
16669
+ };
16670
+ logistics_allowed_load_carriers: {
16671
+ Args: {
16672
+ p_strategy_id?: string;
16673
+ p_user_id?: string;
16674
+ };
16675
+ Returns: import("../integrations/supabase/types").Json;
16676
+ };
16677
+ logistics_apply_buffer_decision: {
16678
+ Args: {
16679
+ p_order_id: string;
16680
+ };
16681
+ Returns: string;
16682
+ };
16683
+ logistics_apply_order_buffer: {
16684
+ Args: {
16685
+ p_order_id: string;
16686
+ };
16687
+ Returns: import("../integrations/supabase/types").Json;
16688
+ };
16689
+ logistics_backorder_allowed: {
16690
+ Args: {
16691
+ p_strategy_id?: string;
16692
+ };
16693
+ Returns: boolean;
16694
+ };
16695
+ logistics_buffer_criteria: {
16696
+ Args: {
16697
+ p_settings: import("../integrations/supabase/types").Json;
16698
+ };
16699
+ Returns: string[];
16700
+ };
16701
+ logistics_buffer_decision: {
16702
+ Args: {
16703
+ p_order?: import("../integrations/supabase/types").Json;
16704
+ p_strategy_id?: string;
16705
+ p_user_id?: string;
16706
+ };
16707
+ Returns: import("../integrations/supabase/types").Json;
16708
+ };
16709
+ logistics_buffer_simulate: {
16710
+ Args: {
16711
+ p_orders?: import("../integrations/supabase/types").Json;
16712
+ p_strategy_id?: string;
16713
+ };
16714
+ Returns: import("../integrations/supabase/types").Json;
16715
+ };
16716
+ logistics_buffer_value: {
16717
+ Args: {
16718
+ p_criterion: string;
16719
+ p_order: import("../integrations/supabase/types").Json;
16720
+ };
16721
+ Returns: string;
16722
+ };
16723
+ logistics_cancel_order: {
16724
+ Args: {
16725
+ p_order_ref: string;
16726
+ p_reason?: string;
16727
+ p_user_id?: string;
16728
+ };
16729
+ Returns: number;
16730
+ };
16731
+ logistics_check_order_allowed: {
16732
+ Args: {
16733
+ p_lines: import("../integrations/supabase/types").Json;
16734
+ p_strategy_id?: string;
16735
+ };
16736
+ Returns: import("../integrations/supabase/types").Json;
16737
+ };
16738
+ logistics_check_order_stock: {
16739
+ Args: {
16740
+ p_event_id: string;
16741
+ };
16742
+ Returns: string;
16743
+ };
16744
+ logistics_claim_next_task: {
16745
+ Args: {
16746
+ p_owner_module: string;
16747
+ p_worker?: string;
16748
+ };
16749
+ Returns: {
16750
+ buffer_ref: string | null;
16751
+ claimed_at: string | null;
16752
+ claimed_by: string | null;
16753
+ completed_at: string | null;
16754
+ created_at: string;
16755
+ depends_on: string[];
16756
+ due_at: string | null;
16757
+ error: string | null;
16758
+ id: string;
16759
+ order_ref: string;
16760
+ owner_module: string;
16761
+ payload: import("../integrations/supabase/types").Json;
16762
+ plan_run_id: string | null;
16763
+ planned_end: string | null;
16764
+ planned_start: string | null;
16765
+ priority: number;
16766
+ result: import("../integrations/supabase/types").Json | null;
16767
+ rule_config_id: string | null;
16768
+ rule_version: number | null;
16769
+ sequence: number;
16770
+ shadow: boolean;
16771
+ started_at: string | null;
16772
+ status: string;
16773
+ strategy_id: string | null;
16774
+ task_type: string;
16775
+ updated_at: string;
16776
+ user_id: string;
16777
+ };
16778
+ SetofOptions: {
16779
+ from: "*";
16780
+ to: "logistics_tasks";
16781
+ isOneToOne: true;
16782
+ isSetofReturn: false;
16783
+ };
16784
+ };
16785
+ logistics_claim_task: {
16786
+ Args: {
16787
+ p_task_id: string;
16788
+ p_worker?: string;
16789
+ };
16790
+ Returns: {
16791
+ buffer_ref: string | null;
16792
+ claimed_at: string | null;
16793
+ claimed_by: string | null;
16794
+ completed_at: string | null;
16795
+ created_at: string;
16796
+ depends_on: string[];
16797
+ due_at: string | null;
16798
+ error: string | null;
16799
+ id: string;
16800
+ order_ref: string;
16801
+ owner_module: string;
16802
+ payload: import("../integrations/supabase/types").Json;
16803
+ plan_run_id: string | null;
16804
+ planned_end: string | null;
16805
+ planned_start: string | null;
16806
+ priority: number;
16807
+ result: import("../integrations/supabase/types").Json | null;
16808
+ rule_config_id: string | null;
16809
+ rule_version: number | null;
16810
+ sequence: number;
16811
+ shadow: boolean;
16812
+ started_at: string | null;
16813
+ status: string;
16814
+ strategy_id: string | null;
16815
+ task_type: string;
16816
+ updated_at: string;
16817
+ user_id: string;
16818
+ };
16819
+ SetofOptions: {
16820
+ from: "*";
16821
+ to: "logistics_tasks";
16822
+ isOneToOne: true;
16823
+ isSetofReturn: false;
16824
+ };
16825
+ };
16826
+ logistics_complete_task: {
16827
+ Args: {
16828
+ p_result?: import("../integrations/supabase/types").Json;
16829
+ p_task_id: string;
16830
+ };
16831
+ Returns: {
16832
+ buffer_ref: string | null;
16833
+ claimed_at: string | null;
16834
+ claimed_by: string | null;
16835
+ completed_at: string | null;
16836
+ created_at: string;
16837
+ depends_on: string[];
16838
+ due_at: string | null;
16839
+ error: string | null;
16840
+ id: string;
16841
+ order_ref: string;
16842
+ owner_module: string;
16843
+ payload: import("../integrations/supabase/types").Json;
16844
+ plan_run_id: string | null;
16845
+ planned_end: string | null;
16846
+ planned_start: string | null;
16847
+ priority: number;
16848
+ result: import("../integrations/supabase/types").Json | null;
16849
+ rule_config_id: string | null;
16850
+ rule_version: number | null;
16851
+ sequence: number;
16852
+ shadow: boolean;
16853
+ started_at: string | null;
16854
+ status: string;
16855
+ strategy_id: string | null;
16856
+ task_type: string;
16857
+ updated_at: string;
16858
+ user_id: string;
16859
+ };
16860
+ SetofOptions: {
16861
+ from: "*";
16862
+ to: "logistics_tasks";
16863
+ isOneToOne: true;
16864
+ isSetofReturn: false;
16865
+ };
16866
+ };
16867
+ logistics_emit_event: {
16868
+ Args: {
16869
+ p_event_type: string;
16870
+ p_idempotency_key?: string;
16871
+ p_order_ref: string;
16872
+ p_payload?: import("../integrations/supabase/types").Json;
16873
+ p_shadow?: boolean;
16874
+ p_source_module: string;
16875
+ p_strategy_id?: string;
16876
+ };
16877
+ Returns: import("../integrations/supabase/types").Json;
16878
+ } | {
16879
+ Args: {
16880
+ p_event_type: string;
16881
+ p_idempotency_key?: string;
16882
+ p_order_ref: string;
16883
+ p_payload?: import("../integrations/supabase/types").Json;
16884
+ p_priority?: number;
16885
+ p_shadow?: boolean;
16886
+ p_source_module: string;
16887
+ p_strategy_id?: string;
16888
+ };
16889
+ Returns: import("../integrations/supabase/types").Json;
16890
+ };
16891
+ logistics_fail_task: {
16892
+ Args: {
16893
+ p_error: string;
16894
+ p_task_id: string;
16895
+ };
16896
+ Returns: {
16897
+ buffer_ref: string | null;
16898
+ claimed_at: string | null;
16899
+ claimed_by: string | null;
16900
+ completed_at: string | null;
16901
+ created_at: string;
16902
+ depends_on: string[];
16903
+ due_at: string | null;
16904
+ error: string | null;
16905
+ id: string;
16906
+ order_ref: string;
16907
+ owner_module: string;
16908
+ payload: import("../integrations/supabase/types").Json;
16909
+ plan_run_id: string | null;
16910
+ planned_end: string | null;
16911
+ planned_start: string | null;
16912
+ priority: number;
16913
+ result: import("../integrations/supabase/types").Json | null;
16914
+ rule_config_id: string | null;
16915
+ rule_version: number | null;
16916
+ sequence: number;
16917
+ shadow: boolean;
16918
+ started_at: string | null;
16919
+ status: string;
16920
+ strategy_id: string | null;
16921
+ task_type: string;
16922
+ updated_at: string;
16923
+ user_id: string;
16924
+ };
16925
+ SetofOptions: {
16926
+ from: "*";
16927
+ to: "logistics_tasks";
16928
+ isOneToOne: true;
16929
+ isSetofReturn: false;
16930
+ };
16931
+ };
16932
+ logistics_not_past: {
16933
+ Args: {
16934
+ p_ts: string;
16935
+ };
16936
+ Returns: string;
16937
+ };
16938
+ logistics_queue_stock_email: {
16939
+ Args: {
16940
+ p_alert_id: string;
16941
+ };
16942
+ Returns: string;
16943
+ };
16944
+ logistics_reapply_buffer_decisions: {
16945
+ Args: never;
16946
+ Returns: number;
16947
+ };
16948
+ logistics_rebuffer_open_orders: {
16949
+ Args: {
16950
+ p_strategy_id?: string;
16951
+ };
16952
+ Returns: import("../integrations/supabase/types").Json;
16953
+ };
16954
+ logistics_rebuffer_orders: {
16955
+ Args: {
16956
+ p_days?: number;
16957
+ };
16958
+ Returns: import("../integrations/supabase/types").Json;
16959
+ };
16960
+ logistics_rebuffer_pending: {
16961
+ Args: never;
16962
+ Returns: import("../integrations/supabase/types").Json;
16963
+ };
16964
+ logistics_rescan_orders: {
16965
+ Args: {
16966
+ p_days?: number;
16967
+ };
16968
+ Returns: number;
16969
+ };
16970
+ logistics_resolve_settings: {
16971
+ Args: {
16972
+ p_config_id: string;
16973
+ p_user_id: string;
16974
+ p_version: number;
16975
+ };
16976
+ Returns: import("../integrations/supabase/types").Json;
16977
+ };
16978
+ logistics_rule_bool: {
16979
+ Args: {
16980
+ p_default: boolean;
16981
+ p_key: string;
16982
+ p_settings: import("../integrations/supabase/types").Json;
16983
+ p_step: string;
16984
+ };
16985
+ Returns: boolean;
16986
+ };
16987
+ logistics_rule_num: {
16988
+ Args: {
16989
+ p_default: number;
16990
+ p_key: string;
16991
+ p_settings: import("../integrations/supabase/types").Json;
16992
+ p_step: string;
16993
+ };
16994
+ Returns: number;
16995
+ };
16996
+ logistics_rule_text: {
16997
+ Args: {
16998
+ p_default: string;
16999
+ p_key: string;
17000
+ p_settings: import("../integrations/supabase/types").Json;
17001
+ p_step: string;
17002
+ };
17003
+ Returns: string;
17004
+ };
17005
+ logistics_rule_value: {
17006
+ Args: {
17007
+ p_key: string;
17008
+ p_settings: import("../integrations/supabase/types").Json;
17009
+ p_step: string;
17010
+ };
17011
+ Returns: import("../integrations/supabase/types").Json;
17012
+ };
17013
+ logistics_scan_order_stock: {
17014
+ Args: {
17015
+ p_order_id: string;
17016
+ };
17017
+ Returns: string;
17018
+ };
17019
+ logistics_set_order_priority: {
17020
+ Args: {
17021
+ p_order_ref: string;
17022
+ p_priority: number;
17023
+ p_user_id?: string;
17024
+ };
17025
+ Returns: number;
17026
+ };
17027
+ logistics_supersede_stale_tasks: {
17028
+ Args: {
17029
+ p_keep: string[];
17030
+ p_order_ref: string;
17031
+ p_run_id: string;
17032
+ p_user_id: string;
17033
+ };
17034
+ Returns: number;
17035
+ };
17036
+ logistics_task_owner: {
17037
+ Args: {
17038
+ p_task_type: string;
17039
+ };
17040
+ Returns: string;
17041
+ };
17042
+ logistics_upsert_task: {
17043
+ Args: {
17044
+ p_buffer_ref: string;
17045
+ p_end: string;
17046
+ p_order_ref: string;
17047
+ p_owner: string;
17048
+ p_payload: import("../integrations/supabase/types").Json;
17049
+ p_rule_config_id: string;
17050
+ p_rule_version: number;
17051
+ p_run_id: string;
17052
+ p_sequence: number;
17053
+ p_shadow: boolean;
17054
+ p_start: string;
17055
+ p_strategy_id: string;
17056
+ p_task_type: string;
17057
+ p_user_id: string;
17058
+ };
17059
+ Returns: string;
17060
+ };
15283
17061
  mark_offer_clicked: {
15284
17062
  Args: {
15285
17063
  p_code: string;
@@ -15533,6 +17311,13 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
15533
17311
  waiting: number;
15534
17312
  }[];
15535
17313
  };
17314
+ pick_station_slugify: {
17315
+ Args: {
17316
+ _id: string;
17317
+ _name: string;
17318
+ };
17319
+ Returns: string;
17320
+ };
15536
17321
  pickstation_get_orders_raw: {
15537
17322
  Args: never;
15538
17323
  Returns: import("../integrations/supabase/types").Json;
@@ -15573,6 +17358,12 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
15573
17358
  };
15574
17359
  Returns: undefined;
15575
17360
  };
17361
+ process_logistics_event: {
17362
+ Args: {
17363
+ p_event_id: string;
17364
+ };
17365
+ Returns: string;
17366
+ };
15576
17367
  produce_designed_product: {
15577
17368
  Args: {
15578
17369
  p_parent_id: string;
@@ -15698,6 +17489,14 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
15698
17489
  };
15699
17490
  Returns: import("../integrations/supabase/types").Json;
15700
17491
  };
17492
+ run_floriday_continuous_stock_sync: {
17493
+ Args: never;
17494
+ Returns: undefined;
17495
+ };
17496
+ run_twinfield_queue_tick: {
17497
+ Args: never;
17498
+ Returns: undefined;
17499
+ };
15701
17500
  schedule_floriday_additional_services_sync: {
15702
17501
  Args: {
15703
17502
  p_apikey: string;
@@ -16029,7 +17828,7 @@ export declare const getVbnRequiredFeatures: import("@tanstack/start-client-core
16029
17828
  };
16030
17829
  twinfield_register_cron: {
16031
17830
  Args: {
16032
- apikey: string;
17831
+ apikey?: string;
16033
17832
  base_url: string;
16034
17833
  };
16035
17834
  Returns: import("../integrations/supabase/types").Json;