@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
@@ -1622,13 +1622,7 @@ export declare const getFloridayVbnRequired: import("@tanstack/start-client-core
1622
1622
  id?: string;
1623
1623
  user_id?: string | null;
1624
1624
  };
1625
- Relationships: [{
1626
- foreignKeyName: "customer_audit_log_customer_id_fkey";
1627
- columns: ["customer_id"];
1628
- isOneToOne: false;
1629
- referencedRelation: "customers";
1630
- referencedColumns: ["id"];
1631
- }];
1625
+ Relationships: [];
1632
1626
  };
1633
1627
  customer_contacts: {
1634
1628
  Row: {
@@ -1689,9 +1683,12 @@ export declare const getFloridayVbnRequired: import("@tanstack/start-client-core
1689
1683
  city: string | null;
1690
1684
  country: string | null;
1691
1685
  created_at: string;
1692
- customer_id: string;
1686
+ customer_id: string | null;
1687
+ external_key: string | null;
1688
+ external_provider: string | null;
1693
1689
  floriday_location_id: string | null;
1694
1690
  gln: string | null;
1691
+ group_key: string | null;
1695
1692
  house_number: string | null;
1696
1693
  id: string;
1697
1694
  is_primary: boolean;
@@ -1710,9 +1707,12 @@ export declare const getFloridayVbnRequired: import("@tanstack/start-client-core
1710
1707
  city?: string | null;
1711
1708
  country?: string | null;
1712
1709
  created_at?: string;
1713
- customer_id: string;
1710
+ customer_id?: string | null;
1711
+ external_key?: string | null;
1712
+ external_provider?: string | null;
1714
1713
  floriday_location_id?: string | null;
1715
1714
  gln?: string | null;
1715
+ group_key?: string | null;
1716
1716
  house_number?: string | null;
1717
1717
  id?: string;
1718
1718
  is_primary?: boolean;
@@ -1731,9 +1731,12 @@ export declare const getFloridayVbnRequired: import("@tanstack/start-client-core
1731
1731
  city?: string | null;
1732
1732
  country?: string | null;
1733
1733
  created_at?: string;
1734
- customer_id?: string;
1734
+ customer_id?: string | null;
1735
+ external_key?: string | null;
1736
+ external_provider?: string | null;
1735
1737
  floriday_location_id?: string | null;
1736
1738
  gln?: string | null;
1739
+ group_key?: string | null;
1737
1740
  house_number?: string | null;
1738
1741
  id?: string;
1739
1742
  is_primary?: boolean;
@@ -1822,6 +1825,39 @@ export declare const getFloridayVbnRequired: import("@tanstack/start-client-core
1822
1825
  };
1823
1826
  Relationships: [];
1824
1827
  };
1828
+ customer_logistics_strategy: {
1829
+ Row: {
1830
+ created_at: string;
1831
+ id: string;
1832
+ ref_key: string;
1833
+ scope: string;
1834
+ strategy_id: string | null;
1835
+ updated_at: string;
1836
+ };
1837
+ Insert: {
1838
+ created_at?: string;
1839
+ id?: string;
1840
+ ref_key: string;
1841
+ scope: string;
1842
+ strategy_id?: string | null;
1843
+ updated_at?: string;
1844
+ };
1845
+ Update: {
1846
+ created_at?: string;
1847
+ id?: string;
1848
+ ref_key?: string;
1849
+ scope?: string;
1850
+ strategy_id?: string | null;
1851
+ updated_at?: string;
1852
+ };
1853
+ Relationships: [{
1854
+ foreignKeyName: "customer_logistics_strategy_strategy_id_fkey";
1855
+ columns: ["strategy_id"];
1856
+ isOneToOne: false;
1857
+ referencedRelation: "logistics_strategies";
1858
+ referencedColumns: ["id"];
1859
+ }];
1860
+ };
1825
1861
  customer_price_group_members: {
1826
1862
  Row: {
1827
1863
  created_at: string;
@@ -2033,6 +2069,7 @@ export declare const getFloridayVbnRequired: import("@tanstack/start-client-core
2033
2069
  bank_state: string | null;
2034
2070
  billing_email: string | null;
2035
2071
  bio: string | null;
2072
+ blocked: boolean;
2036
2073
  city: string | null;
2037
2074
  coc_number: string | null;
2038
2075
  commercial_name: string | null;
@@ -2041,11 +2078,14 @@ export declare const getFloridayVbnRequired: import("@tanstack/start-client-core
2041
2078
  contact_person: string | null;
2042
2079
  country: string | null;
2043
2080
  created_at: string;
2081
+ credit_limit: number;
2044
2082
  custom_fields: import("../integrations/supabase/types").Json;
2045
2083
  customer_class: string | null;
2046
2084
  customer_number: string | null;
2047
2085
  discount_days: number | null;
2048
2086
  discount_percentage: number | null;
2087
+ discount_surcharge: string;
2088
+ e_invoicing: boolean;
2049
2089
  email: string | null;
2050
2090
  external_id: string | null;
2051
2091
  fax: string | null;
@@ -2056,19 +2096,23 @@ export declare const getFloridayVbnRequired: import("@tanstack/start-client-core
2056
2096
  house_number: string | null;
2057
2097
  icp_country_code: string | null;
2058
2098
  id: string;
2099
+ invoice_send_as: string;
2059
2100
  is_active: boolean;
2060
2101
  language: string | null;
2061
2102
  last_synced_at: string | null;
2103
+ ledger_account: string | null;
2062
2104
  logo_url: string | null;
2063
2105
  markets: string[];
2064
2106
  notes: string | null;
2065
2107
  organization_type: string | null;
2066
2108
  payment_methods: string[];
2109
+ payment_spec_method: string;
2067
2110
  payment_term_days: number | null;
2068
2111
  phone: string | null;
2069
2112
  postal_code: string | null;
2070
2113
  product_groups: string[];
2071
2114
  segments: string[];
2115
+ send_reminder: string;
2072
2116
  source: string;
2073
2117
  street: string | null;
2074
2118
  sync_error: string | null;
@@ -2104,6 +2148,7 @@ export declare const getFloridayVbnRequired: import("@tanstack/start-client-core
2104
2148
  bank_state?: string | null;
2105
2149
  billing_email?: string | null;
2106
2150
  bio?: string | null;
2151
+ blocked?: boolean;
2107
2152
  city?: string | null;
2108
2153
  coc_number?: string | null;
2109
2154
  commercial_name?: string | null;
@@ -2112,11 +2157,14 @@ export declare const getFloridayVbnRequired: import("@tanstack/start-client-core
2112
2157
  contact_person?: string | null;
2113
2158
  country?: string | null;
2114
2159
  created_at?: string;
2160
+ credit_limit?: number;
2115
2161
  custom_fields?: import("../integrations/supabase/types").Json;
2116
2162
  customer_class?: string | null;
2117
2163
  customer_number?: string | null;
2118
2164
  discount_days?: number | null;
2119
2165
  discount_percentage?: number | null;
2166
+ discount_surcharge?: string;
2167
+ e_invoicing?: boolean;
2120
2168
  email?: string | null;
2121
2169
  external_id?: string | null;
2122
2170
  fax?: string | null;
@@ -2127,19 +2175,23 @@ export declare const getFloridayVbnRequired: import("@tanstack/start-client-core
2127
2175
  house_number?: string | null;
2128
2176
  icp_country_code?: string | null;
2129
2177
  id?: string;
2178
+ invoice_send_as?: string;
2130
2179
  is_active?: boolean;
2131
2180
  language?: string | null;
2132
2181
  last_synced_at?: string | null;
2182
+ ledger_account?: string | null;
2133
2183
  logo_url?: string | null;
2134
2184
  markets?: string[];
2135
2185
  notes?: string | null;
2136
2186
  organization_type?: string | null;
2137
2187
  payment_methods?: string[];
2188
+ payment_spec_method?: string;
2138
2189
  payment_term_days?: number | null;
2139
2190
  phone?: string | null;
2140
2191
  postal_code?: string | null;
2141
2192
  product_groups?: string[];
2142
2193
  segments?: string[];
2194
+ send_reminder?: string;
2143
2195
  source?: string;
2144
2196
  street?: string | null;
2145
2197
  sync_error?: string | null;
@@ -2175,6 +2227,7 @@ export declare const getFloridayVbnRequired: import("@tanstack/start-client-core
2175
2227
  bank_state?: string | null;
2176
2228
  billing_email?: string | null;
2177
2229
  bio?: string | null;
2230
+ blocked?: boolean;
2178
2231
  city?: string | null;
2179
2232
  coc_number?: string | null;
2180
2233
  commercial_name?: string | null;
@@ -2183,11 +2236,14 @@ export declare const getFloridayVbnRequired: import("@tanstack/start-client-core
2183
2236
  contact_person?: string | null;
2184
2237
  country?: string | null;
2185
2238
  created_at?: string;
2239
+ credit_limit?: number;
2186
2240
  custom_fields?: import("../integrations/supabase/types").Json;
2187
2241
  customer_class?: string | null;
2188
2242
  customer_number?: string | null;
2189
2243
  discount_days?: number | null;
2190
2244
  discount_percentage?: number | null;
2245
+ discount_surcharge?: string;
2246
+ e_invoicing?: boolean;
2191
2247
  email?: string | null;
2192
2248
  external_id?: string | null;
2193
2249
  fax?: string | null;
@@ -2198,19 +2254,23 @@ export declare const getFloridayVbnRequired: import("@tanstack/start-client-core
2198
2254
  house_number?: string | null;
2199
2255
  icp_country_code?: string | null;
2200
2256
  id?: string;
2257
+ invoice_send_as?: string;
2201
2258
  is_active?: boolean;
2202
2259
  language?: string | null;
2203
2260
  last_synced_at?: string | null;
2261
+ ledger_account?: string | null;
2204
2262
  logo_url?: string | null;
2205
2263
  markets?: string[];
2206
2264
  notes?: string | null;
2207
2265
  organization_type?: string | null;
2208
2266
  payment_methods?: string[];
2267
+ payment_spec_method?: string;
2209
2268
  payment_term_days?: number | null;
2210
2269
  phone?: string | null;
2211
2270
  postal_code?: string | null;
2212
2271
  product_groups?: string[];
2213
2272
  segments?: string[];
2273
+ send_reminder?: string;
2214
2274
  source?: string;
2215
2275
  street?: string | null;
2216
2276
  sync_error?: string | null;
@@ -2929,6 +2989,7 @@ export declare const getFloridayVbnRequired: import("@tanstack/start-client-core
2929
2989
  status: string;
2930
2990
  token_expires_at: string | null;
2931
2991
  updated_at: string;
2992
+ watch_scope: string;
2932
2993
  webhook_last_attempt_at: string | null;
2933
2994
  webhook_last_error: string | null;
2934
2995
  webhook_status: string;
@@ -2971,6 +3032,7 @@ export declare const getFloridayVbnRequired: import("@tanstack/start-client-core
2971
3032
  status?: string;
2972
3033
  token_expires_at?: string | null;
2973
3034
  updated_at?: string;
3035
+ watch_scope?: string;
2974
3036
  webhook_last_attempt_at?: string | null;
2975
3037
  webhook_last_error?: string | null;
2976
3038
  webhook_status?: string;
@@ -3013,6 +3075,7 @@ export declare const getFloridayVbnRequired: import("@tanstack/start-client-core
3013
3075
  status?: string;
3014
3076
  token_expires_at?: string | null;
3015
3077
  updated_at?: string;
3078
+ watch_scope?: string;
3016
3079
  webhook_last_attempt_at?: string | null;
3017
3080
  webhook_last_error?: string | null;
3018
3081
  webhook_status?: string;
@@ -3211,6 +3274,72 @@ export declare const getFloridayVbnRequired: import("@tanstack/start-client-core
3211
3274
  referencedColumns: ["id"];
3212
3275
  }];
3213
3276
  };
3277
+ email_auth_watch_folders: {
3278
+ Row: {
3279
+ connection_id: string;
3280
+ created_at: string;
3281
+ folder_id: string;
3282
+ folder_name: string | null;
3283
+ gmail_history_id: string | null;
3284
+ graph_subscription_expires_at: string | null;
3285
+ graph_subscription_id: string | null;
3286
+ id: string;
3287
+ imap_last_uid: number | null;
3288
+ imap_uid_validity: number | null;
3289
+ mailbox: string;
3290
+ provider: string;
3291
+ updated_at: string;
3292
+ webhook_last_error: string | null;
3293
+ webhook_status: string | null;
3294
+ };
3295
+ Insert: {
3296
+ connection_id: string;
3297
+ created_at?: string;
3298
+ folder_id: string;
3299
+ folder_name?: string | null;
3300
+ gmail_history_id?: string | null;
3301
+ graph_subscription_expires_at?: string | null;
3302
+ graph_subscription_id?: string | null;
3303
+ id?: string;
3304
+ imap_last_uid?: number | null;
3305
+ imap_uid_validity?: number | null;
3306
+ mailbox?: string;
3307
+ provider: string;
3308
+ updated_at?: string;
3309
+ webhook_last_error?: string | null;
3310
+ webhook_status?: string | null;
3311
+ };
3312
+ Update: {
3313
+ connection_id?: string;
3314
+ created_at?: string;
3315
+ folder_id?: string;
3316
+ folder_name?: string | null;
3317
+ gmail_history_id?: string | null;
3318
+ graph_subscription_expires_at?: string | null;
3319
+ graph_subscription_id?: string | null;
3320
+ id?: string;
3321
+ imap_last_uid?: number | null;
3322
+ imap_uid_validity?: number | null;
3323
+ mailbox?: string;
3324
+ provider?: string;
3325
+ updated_at?: string;
3326
+ webhook_last_error?: string | null;
3327
+ webhook_status?: string | null;
3328
+ };
3329
+ Relationships: [{
3330
+ foreignKeyName: "email_auth_watch_folders_connection_id_fkey";
3331
+ columns: ["connection_id"];
3332
+ isOneToOne: false;
3333
+ referencedRelation: "email_auth_connections";
3334
+ referencedColumns: ["id"];
3335
+ }, {
3336
+ foreignKeyName: "email_auth_watch_folders_connection_id_fkey";
3337
+ columns: ["connection_id"];
3338
+ isOneToOne: false;
3339
+ referencedRelation: "email_auth_connections_safe";
3340
+ referencedColumns: ["id"];
3341
+ }];
3342
+ };
3214
3343
  email_auth_webhook_log: {
3215
3344
  Row: {
3216
3345
  body_sample: string | null;
@@ -6304,6 +6433,108 @@ export declare const getFloridayVbnRequired: import("@tanstack/start-client-core
6304
6433
  };
6305
6434
  Relationships: [];
6306
6435
  };
6436
+ fust_stock_mutations: {
6437
+ Row: {
6438
+ created_at: string;
6439
+ delta: number;
6440
+ fust_type_id: string;
6441
+ id: string;
6442
+ note: string | null;
6443
+ reason: string;
6444
+ trade_item_key: string | null;
6445
+ user_id: string;
6446
+ };
6447
+ Insert: {
6448
+ created_at?: string;
6449
+ delta: number;
6450
+ fust_type_id: string;
6451
+ id?: string;
6452
+ note?: string | null;
6453
+ reason?: string;
6454
+ trade_item_key?: string | null;
6455
+ user_id: string;
6456
+ };
6457
+ Update: {
6458
+ created_at?: string;
6459
+ delta?: number;
6460
+ fust_type_id?: string;
6461
+ id?: string;
6462
+ note?: string | null;
6463
+ reason?: string;
6464
+ trade_item_key?: string | null;
6465
+ user_id?: string;
6466
+ };
6467
+ Relationships: [{
6468
+ foreignKeyName: "fust_stock_mutations_fust_type_id_fkey";
6469
+ columns: ["fust_type_id"];
6470
+ isOneToOne: false;
6471
+ referencedRelation: "fust_types";
6472
+ referencedColumns: ["id"];
6473
+ }];
6474
+ };
6475
+ fust_types: {
6476
+ Row: {
6477
+ connection_id: string | null;
6478
+ created_at: string;
6479
+ custom_package_id: string | null;
6480
+ fust_key: string;
6481
+ height_mm: number | null;
6482
+ id: string;
6483
+ in_use: boolean;
6484
+ length_mm: number | null;
6485
+ minimum_stock: number;
6486
+ name: string;
6487
+ notes: string | null;
6488
+ source: string;
6489
+ stock: number;
6490
+ updated_at: string;
6491
+ used_by_count: number;
6492
+ user_id: string;
6493
+ vbn_code: number | null;
6494
+ width_mm: number | null;
6495
+ };
6496
+ Insert: {
6497
+ connection_id?: string | null;
6498
+ created_at?: string;
6499
+ custom_package_id?: string | null;
6500
+ fust_key: string;
6501
+ height_mm?: number | null;
6502
+ id?: string;
6503
+ in_use?: boolean;
6504
+ length_mm?: number | null;
6505
+ minimum_stock?: number;
6506
+ name: string;
6507
+ notes?: string | null;
6508
+ source?: string;
6509
+ stock?: number;
6510
+ updated_at?: string;
6511
+ used_by_count?: number;
6512
+ user_id: string;
6513
+ vbn_code?: number | null;
6514
+ width_mm?: number | null;
6515
+ };
6516
+ Update: {
6517
+ connection_id?: string | null;
6518
+ created_at?: string;
6519
+ custom_package_id?: string | null;
6520
+ fust_key?: string;
6521
+ height_mm?: number | null;
6522
+ id?: string;
6523
+ in_use?: boolean;
6524
+ length_mm?: number | null;
6525
+ minimum_stock?: number;
6526
+ name?: string;
6527
+ notes?: string | null;
6528
+ source?: string;
6529
+ stock?: number;
6530
+ updated_at?: string;
6531
+ used_by_count?: number;
6532
+ user_id?: string;
6533
+ vbn_code?: number | null;
6534
+ width_mm?: number | null;
6535
+ };
6536
+ Relationships: [];
6537
+ };
6307
6538
  imap_accounts: {
6308
6539
  Row: {
6309
6540
  created_at: string;
@@ -6991,6 +7222,72 @@ export declare const getFloridayVbnRequired: import("@tanstack/start-client-core
6991
7222
  referencedColumns: ["id"];
6992
7223
  }];
6993
7224
  };
7225
+ load_carrier_types: {
7226
+ Row: {
7227
+ allow_mixing: boolean;
7228
+ capacity_model: string;
7229
+ code: string;
7230
+ created_at: string;
7231
+ id: string;
7232
+ is_active: boolean;
7233
+ is_default: boolean;
7234
+ layer_length_cm: number;
7235
+ layer_width_cm: number;
7236
+ layers_per_carrier: number;
7237
+ max_boxes: number | null;
7238
+ max_crates_per_layer: number | null;
7239
+ max_customers: number | null;
7240
+ max_height_cm: number | null;
7241
+ max_orders: number | null;
7242
+ max_weight_kg: number | null;
7243
+ name: string;
7244
+ sort_order: number;
7245
+ updated_at: string;
7246
+ };
7247
+ Insert: {
7248
+ allow_mixing?: boolean;
7249
+ capacity_model?: string;
7250
+ code: string;
7251
+ created_at?: string;
7252
+ id?: string;
7253
+ is_active?: boolean;
7254
+ is_default?: boolean;
7255
+ layer_length_cm?: number;
7256
+ layer_width_cm?: number;
7257
+ layers_per_carrier?: number;
7258
+ max_boxes?: number | null;
7259
+ max_crates_per_layer?: number | null;
7260
+ max_customers?: number | null;
7261
+ max_height_cm?: number | null;
7262
+ max_orders?: number | null;
7263
+ max_weight_kg?: number | null;
7264
+ name: string;
7265
+ sort_order?: number;
7266
+ updated_at?: string;
7267
+ };
7268
+ Update: {
7269
+ allow_mixing?: boolean;
7270
+ capacity_model?: string;
7271
+ code?: string;
7272
+ created_at?: string;
7273
+ id?: string;
7274
+ is_active?: boolean;
7275
+ is_default?: boolean;
7276
+ layer_length_cm?: number;
7277
+ layer_width_cm?: number;
7278
+ layers_per_carrier?: number;
7279
+ max_boxes?: number | null;
7280
+ max_crates_per_layer?: number | null;
7281
+ max_customers?: number | null;
7282
+ max_height_cm?: number | null;
7283
+ max_orders?: number | null;
7284
+ max_weight_kg?: number | null;
7285
+ name?: string;
7286
+ sort_order?: number;
7287
+ updated_at?: string;
7288
+ };
7289
+ Relationships: [];
7290
+ };
6994
7291
  local_customer_agreements: {
6995
7292
  Row: {
6996
7293
  base_price: number | null;
@@ -7321,6 +7618,63 @@ export declare const getFloridayVbnRequired: import("@tanstack/start-client-core
7321
7618
  referencedColumns: ["id"];
7322
7619
  }];
7323
7620
  };
7621
+ logistics_events: {
7622
+ Row: {
7623
+ created_at: string;
7624
+ error: string | null;
7625
+ event_type: string;
7626
+ id: string;
7627
+ idempotency_key: string | null;
7628
+ order_ref: string;
7629
+ payload: import("../integrations/supabase/types").Json;
7630
+ plan_run_id: string | null;
7631
+ priority: number;
7632
+ processed_at: string | null;
7633
+ shadow: boolean;
7634
+ source_module: string;
7635
+ status: string;
7636
+ strategy_id: string | null;
7637
+ updated_at: string;
7638
+ user_id: string;
7639
+ };
7640
+ Insert: {
7641
+ created_at?: string;
7642
+ error?: string | null;
7643
+ event_type?: string;
7644
+ id?: string;
7645
+ idempotency_key?: string | null;
7646
+ order_ref: string;
7647
+ payload?: import("../integrations/supabase/types").Json;
7648
+ plan_run_id?: string | null;
7649
+ priority?: number;
7650
+ processed_at?: string | null;
7651
+ shadow?: boolean;
7652
+ source_module: string;
7653
+ status?: string;
7654
+ strategy_id?: string | null;
7655
+ updated_at?: string;
7656
+ user_id?: string;
7657
+ };
7658
+ Update: {
7659
+ created_at?: string;
7660
+ error?: string | null;
7661
+ event_type?: string;
7662
+ id?: string;
7663
+ idempotency_key?: string | null;
7664
+ order_ref?: string;
7665
+ payload?: import("../integrations/supabase/types").Json;
7666
+ plan_run_id?: string | null;
7667
+ priority?: number;
7668
+ processed_at?: string | null;
7669
+ shadow?: boolean;
7670
+ source_module?: string;
7671
+ status?: string;
7672
+ strategy_id?: string | null;
7673
+ updated_at?: string;
7674
+ user_id?: string;
7675
+ };
7676
+ Relationships: [];
7677
+ };
7324
7678
  logistics_formulas: {
7325
7679
  Row: {
7326
7680
  created_at: string;
@@ -7363,22 +7717,292 @@ export declare const getFloridayVbnRequired: import("@tanstack/start-client-core
7363
7717
  referencedColumns: ["id"];
7364
7718
  }];
7365
7719
  };
7366
- logistics_strategies: {
7720
+ logistics_plan_runs: {
7367
7721
  Row: {
7368
- color: string;
7369
7722
  created_at: string;
7370
- description: string | null;
7723
+ error: string | null;
7371
7724
  id: string;
7372
- is_active: boolean;
7373
- name: string;
7374
- priority: number;
7725
+ input: import("../integrations/supabase/types").Json;
7726
+ order_ref: string;
7727
+ rule_config_id: string | null;
7728
+ rule_version: number | null;
7729
+ settings_hash: string | null;
7730
+ settings_snapshot: import("../integrations/supabase/types").Json;
7731
+ source_module: string | null;
7732
+ status: string;
7733
+ strategy_id: string | null;
7734
+ tasks_created: number;
7735
+ tasks_revised: number;
7736
+ trigger: string;
7375
7737
  updated_at: string;
7376
- updated_by: string | null;
7377
7738
  user_id: string;
7378
- version: number;
7739
+ warnings: import("../integrations/supabase/types").Json;
7379
7740
  };
7380
7741
  Insert: {
7381
- color?: string;
7742
+ created_at?: string;
7743
+ error?: string | null;
7744
+ id?: string;
7745
+ input?: import("../integrations/supabase/types").Json;
7746
+ order_ref: string;
7747
+ rule_config_id?: string | null;
7748
+ rule_version?: number | null;
7749
+ settings_hash?: string | null;
7750
+ settings_snapshot?: import("../integrations/supabase/types").Json;
7751
+ source_module?: string | null;
7752
+ status?: string;
7753
+ strategy_id?: string | null;
7754
+ tasks_created?: number;
7755
+ tasks_revised?: number;
7756
+ trigger?: string;
7757
+ updated_at?: string;
7758
+ user_id?: string;
7759
+ warnings?: import("../integrations/supabase/types").Json;
7760
+ };
7761
+ Update: {
7762
+ created_at?: string;
7763
+ error?: string | null;
7764
+ id?: string;
7765
+ input?: import("../integrations/supabase/types").Json;
7766
+ order_ref?: string;
7767
+ rule_config_id?: string | null;
7768
+ rule_version?: number | null;
7769
+ settings_hash?: string | null;
7770
+ settings_snapshot?: import("../integrations/supabase/types").Json;
7771
+ source_module?: string | null;
7772
+ status?: string;
7773
+ strategy_id?: string | null;
7774
+ tasks_created?: number;
7775
+ tasks_revised?: number;
7776
+ trigger?: string;
7777
+ updated_at?: string;
7778
+ user_id?: string;
7779
+ warnings?: import("../integrations/supabase/types").Json;
7780
+ };
7781
+ Relationships: [{
7782
+ foreignKeyName: "logistics_plan_runs_rule_config_id_fkey";
7783
+ columns: ["rule_config_id"];
7784
+ isOneToOne: false;
7785
+ referencedRelation: "logistics_rule_configs";
7786
+ referencedColumns: ["id"];
7787
+ }, {
7788
+ foreignKeyName: "logistics_plan_runs_strategy_id_fkey";
7789
+ columns: ["strategy_id"];
7790
+ isOneToOne: false;
7791
+ referencedRelation: "logistics_strategies";
7792
+ referencedColumns: ["id"];
7793
+ }];
7794
+ };
7795
+ logistics_rebuffer_state: {
7796
+ Row: {
7797
+ created_at: string;
7798
+ id: boolean;
7799
+ last_checked: number;
7800
+ last_duration_ms: number;
7801
+ last_run_at: string | null;
7802
+ last_updated: number;
7803
+ pending: boolean;
7804
+ requested_at: string | null;
7805
+ updated_at: string;
7806
+ };
7807
+ Insert: {
7808
+ created_at?: string;
7809
+ id?: boolean;
7810
+ last_checked?: number;
7811
+ last_duration_ms?: number;
7812
+ last_run_at?: string | null;
7813
+ last_updated?: number;
7814
+ pending?: boolean;
7815
+ requested_at?: string | null;
7816
+ updated_at?: string;
7817
+ };
7818
+ Update: {
7819
+ created_at?: string;
7820
+ id?: boolean;
7821
+ last_checked?: number;
7822
+ last_duration_ms?: number;
7823
+ last_run_at?: string | null;
7824
+ last_updated?: number;
7825
+ pending?: boolean;
7826
+ requested_at?: string | null;
7827
+ updated_at?: string;
7828
+ };
7829
+ Relationships: [];
7830
+ };
7831
+ logistics_rule_configs: {
7832
+ Row: {
7833
+ created_at: string;
7834
+ current_version: number;
7835
+ description: string | null;
7836
+ id: string;
7837
+ is_active: boolean;
7838
+ name: string;
7839
+ settings: import("../integrations/supabase/types").Json;
7840
+ status: string;
7841
+ strategy_id: string | null;
7842
+ updated_at: string;
7843
+ user_id: string;
7844
+ };
7845
+ Insert: {
7846
+ created_at?: string;
7847
+ current_version?: number;
7848
+ description?: string | null;
7849
+ id?: string;
7850
+ is_active?: boolean;
7851
+ name: string;
7852
+ settings?: import("../integrations/supabase/types").Json;
7853
+ status?: string;
7854
+ strategy_id?: string | null;
7855
+ updated_at?: string;
7856
+ user_id?: string;
7857
+ };
7858
+ Update: {
7859
+ created_at?: string;
7860
+ current_version?: number;
7861
+ description?: string | null;
7862
+ id?: string;
7863
+ is_active?: boolean;
7864
+ name?: string;
7865
+ settings?: import("../integrations/supabase/types").Json;
7866
+ status?: string;
7867
+ strategy_id?: string | null;
7868
+ updated_at?: string;
7869
+ user_id?: string;
7870
+ };
7871
+ Relationships: [{
7872
+ foreignKeyName: "logistics_rule_configs_strategy_id_fkey";
7873
+ columns: ["strategy_id"];
7874
+ isOneToOne: false;
7875
+ referencedRelation: "logistics_strategies";
7876
+ referencedColumns: ["id"];
7877
+ }];
7878
+ };
7879
+ logistics_rule_versions: {
7880
+ Row: {
7881
+ config_id: string;
7882
+ created_at: string;
7883
+ id: string;
7884
+ label: string | null;
7885
+ note: string | null;
7886
+ settings: import("../integrations/supabase/types").Json;
7887
+ status: string;
7888
+ user_id: string;
7889
+ version: number;
7890
+ };
7891
+ Insert: {
7892
+ config_id: string;
7893
+ created_at?: string;
7894
+ id?: string;
7895
+ label?: string | null;
7896
+ note?: string | null;
7897
+ settings?: import("../integrations/supabase/types").Json;
7898
+ status?: string;
7899
+ user_id?: string;
7900
+ version: number;
7901
+ };
7902
+ Update: {
7903
+ config_id?: string;
7904
+ created_at?: string;
7905
+ id?: string;
7906
+ label?: string | null;
7907
+ note?: string | null;
7908
+ settings?: import("../integrations/supabase/types").Json;
7909
+ status?: string;
7910
+ user_id?: string;
7911
+ version?: number;
7912
+ };
7913
+ Relationships: [{
7914
+ foreignKeyName: "logistics_rule_versions_config_id_fkey";
7915
+ columns: ["config_id"];
7916
+ isOneToOne: false;
7917
+ referencedRelation: "logistics_rule_configs";
7918
+ referencedColumns: ["id"];
7919
+ }];
7920
+ };
7921
+ logistics_stock_alerts: {
7922
+ Row: {
7923
+ created_at: string;
7924
+ customer_name: string | null;
7925
+ delivery_date: string | null;
7926
+ email_enabled: boolean;
7927
+ email_error: string | null;
7928
+ email_outbox_id: string | null;
7929
+ email_recipients: string[];
7930
+ email_sent_at: string | null;
7931
+ email_status: string;
7932
+ id: string;
7933
+ notification_id: string | null;
7934
+ order_id: string | null;
7935
+ order_ref: string;
7936
+ priority: number;
7937
+ resolved_at: string | null;
7938
+ resolved_by: string | null;
7939
+ shortages: import("../integrations/supabase/types").Json;
7940
+ status: string;
7941
+ updated_at: string;
7942
+ user_id: string;
7943
+ };
7944
+ Insert: {
7945
+ created_at?: string;
7946
+ customer_name?: string | null;
7947
+ delivery_date?: string | null;
7948
+ email_enabled?: boolean;
7949
+ email_error?: string | null;
7950
+ email_outbox_id?: string | null;
7951
+ email_recipients?: string[];
7952
+ email_sent_at?: string | null;
7953
+ email_status?: string;
7954
+ id?: string;
7955
+ notification_id?: string | null;
7956
+ order_id?: string | null;
7957
+ order_ref: string;
7958
+ priority?: number;
7959
+ resolved_at?: string | null;
7960
+ resolved_by?: string | null;
7961
+ shortages?: import("../integrations/supabase/types").Json;
7962
+ status?: string;
7963
+ updated_at?: string;
7964
+ user_id: string;
7965
+ };
7966
+ Update: {
7967
+ created_at?: string;
7968
+ customer_name?: string | null;
7969
+ delivery_date?: string | null;
7970
+ email_enabled?: boolean;
7971
+ email_error?: string | null;
7972
+ email_outbox_id?: string | null;
7973
+ email_recipients?: string[];
7974
+ email_sent_at?: string | null;
7975
+ email_status?: string;
7976
+ id?: string;
7977
+ notification_id?: string | null;
7978
+ order_id?: string | null;
7979
+ order_ref?: string;
7980
+ priority?: number;
7981
+ resolved_at?: string | null;
7982
+ resolved_by?: string | null;
7983
+ shortages?: import("../integrations/supabase/types").Json;
7984
+ status?: string;
7985
+ updated_at?: string;
7986
+ user_id?: string;
7987
+ };
7988
+ Relationships: [];
7989
+ };
7990
+ logistics_strategies: {
7991
+ Row: {
7992
+ color: string;
7993
+ created_at: string;
7994
+ description: string | null;
7995
+ id: string;
7996
+ is_active: boolean;
7997
+ name: string;
7998
+ priority: number;
7999
+ updated_at: string;
8000
+ updated_by: string | null;
8001
+ user_id: string;
8002
+ version: number;
8003
+ };
8004
+ Insert: {
8005
+ color?: string;
7382
8006
  created_at?: string;
7383
8007
  description?: string | null;
7384
8008
  id?: string;
@@ -7453,6 +8077,114 @@ export declare const getFloridayVbnRequired: import("@tanstack/start-client-core
7453
8077
  referencedColumns: ["id"];
7454
8078
  }];
7455
8079
  };
8080
+ logistics_tasks: {
8081
+ Row: {
8082
+ buffer_ref: string | null;
8083
+ claimed_at: string | null;
8084
+ claimed_by: string | null;
8085
+ completed_at: string | null;
8086
+ created_at: string;
8087
+ depends_on: string[];
8088
+ due_at: string | null;
8089
+ error: string | null;
8090
+ id: string;
8091
+ order_ref: string;
8092
+ owner_module: string;
8093
+ payload: import("../integrations/supabase/types").Json;
8094
+ plan_run_id: string | null;
8095
+ planned_end: string | null;
8096
+ planned_start: string | null;
8097
+ priority: number;
8098
+ result: import("../integrations/supabase/types").Json | null;
8099
+ rule_config_id: string | null;
8100
+ rule_version: number | null;
8101
+ sequence: number;
8102
+ shadow: boolean;
8103
+ started_at: string | null;
8104
+ status: string;
8105
+ strategy_id: string | null;
8106
+ task_type: string;
8107
+ updated_at: string;
8108
+ user_id: string;
8109
+ };
8110
+ Insert: {
8111
+ buffer_ref?: string | null;
8112
+ claimed_at?: string | null;
8113
+ claimed_by?: string | null;
8114
+ completed_at?: string | null;
8115
+ created_at?: string;
8116
+ depends_on?: string[];
8117
+ due_at?: string | null;
8118
+ error?: string | null;
8119
+ id?: string;
8120
+ order_ref: string;
8121
+ owner_module: string;
8122
+ payload?: import("../integrations/supabase/types").Json;
8123
+ plan_run_id?: string | null;
8124
+ planned_end?: string | null;
8125
+ planned_start?: string | null;
8126
+ priority?: number;
8127
+ result?: import("../integrations/supabase/types").Json | null;
8128
+ rule_config_id?: string | null;
8129
+ rule_version?: number | null;
8130
+ sequence?: number;
8131
+ shadow?: boolean;
8132
+ started_at?: string | null;
8133
+ status?: string;
8134
+ strategy_id?: string | null;
8135
+ task_type: string;
8136
+ updated_at?: string;
8137
+ user_id?: string;
8138
+ };
8139
+ Update: {
8140
+ buffer_ref?: string | null;
8141
+ claimed_at?: string | null;
8142
+ claimed_by?: string | null;
8143
+ completed_at?: string | null;
8144
+ created_at?: string;
8145
+ depends_on?: string[];
8146
+ due_at?: string | null;
8147
+ error?: string | null;
8148
+ id?: string;
8149
+ order_ref?: string;
8150
+ owner_module?: string;
8151
+ payload?: import("../integrations/supabase/types").Json;
8152
+ plan_run_id?: string | null;
8153
+ planned_end?: string | null;
8154
+ planned_start?: string | null;
8155
+ priority?: number;
8156
+ result?: import("../integrations/supabase/types").Json | null;
8157
+ rule_config_id?: string | null;
8158
+ rule_version?: number | null;
8159
+ sequence?: number;
8160
+ shadow?: boolean;
8161
+ started_at?: string | null;
8162
+ status?: string;
8163
+ strategy_id?: string | null;
8164
+ task_type?: string;
8165
+ updated_at?: string;
8166
+ user_id?: string;
8167
+ };
8168
+ Relationships: [{
8169
+ foreignKeyName: "logistics_tasks_plan_run_id_fkey";
8170
+ columns: ["plan_run_id"];
8171
+ isOneToOne: false;
8172
+ referencedRelation: "logistics_plan_runs";
8173
+ referencedColumns: ["id"];
8174
+ }, {
8175
+ foreignKeyName: "logistics_tasks_rule_config_id_fkey";
8176
+ columns: ["rule_config_id"];
8177
+ isOneToOne: false;
8178
+ referencedRelation: "logistics_rule_configs";
8179
+ referencedColumns: ["id"];
8180
+ }, {
8181
+ foreignKeyName: "logistics_tasks_strategy_id_fkey";
8182
+ columns: ["strategy_id"];
8183
+ isOneToOne: false;
8184
+ referencedRelation: "logistics_strategies";
8185
+ referencedColumns: ["id"];
8186
+ }];
8187
+ };
7456
8188
  logistics_variables: {
7457
8189
  Row: {
7458
8190
  created_at: string;
@@ -8047,6 +8779,24 @@ export declare const getFloridayVbnRequired: import("@tanstack/start-client-core
8047
8779
  };
8048
8780
  Relationships: [];
8049
8781
  };
8782
+ module_runtime_config: {
8783
+ Row: {
8784
+ key: string;
8785
+ updated_at: string;
8786
+ value: string;
8787
+ };
8788
+ Insert: {
8789
+ key: string;
8790
+ updated_at?: string;
8791
+ value: string;
8792
+ };
8793
+ Update: {
8794
+ key?: string;
8795
+ updated_at?: string;
8796
+ value?: string;
8797
+ };
8798
+ Relationships: [];
8799
+ };
8050
8800
  modules: {
8051
8801
  Row: {
8052
8802
  created_at: string;
@@ -8847,6 +9597,7 @@ export declare const getFloridayVbnRequired: import("@tanstack/start-client-core
8847
9597
  };
8848
9598
  order_cart_items: {
8849
9599
  Row: {
9600
+ boxes: number | null;
8850
9601
  cart_id: string;
8851
9602
  crates: number;
8852
9603
  crates_per_layer: number;
@@ -8859,8 +9610,10 @@ export declare const getFloridayVbnRequired: import("@tanstack/start-client-core
8859
9610
  plants_per_crate: number;
8860
9611
  product_id: string | null;
8861
9612
  product_name: string;
9613
+ weight_kg: number | null;
8862
9614
  };
8863
9615
  Insert: {
9616
+ boxes?: number | null;
8864
9617
  cart_id: string;
8865
9618
  crates: number;
8866
9619
  crates_per_layer?: number;
@@ -8873,8 +9626,10 @@ export declare const getFloridayVbnRequired: import("@tanstack/start-client-core
8873
9626
  plants_per_crate?: number;
8874
9627
  product_id?: string | null;
8875
9628
  product_name: string;
9629
+ weight_kg?: number | null;
8876
9630
  };
8877
9631
  Update: {
9632
+ boxes?: number | null;
8878
9633
  cart_id?: string;
8879
9634
  crates?: number;
8880
9635
  crates_per_layer?: number;
@@ -8887,6 +9642,7 @@ export declare const getFloridayVbnRequired: import("@tanstack/start-client-core
8887
9642
  plants_per_crate?: number;
8888
9643
  product_id?: string | null;
8889
9644
  product_name?: string;
9645
+ weight_kg?: number | null;
8890
9646
  };
8891
9647
  Relationships: [{
8892
9648
  foreignKeyName: "order_cart_items_cart_id_fkey";
@@ -8912,47 +9668,59 @@ export declare const getFloridayVbnRequired: import("@tanstack/start-client-core
8912
9668
  Row: {
8913
9669
  algorithm_version: number;
8914
9670
  buffer_id: string | null;
9671
+ carrier_type: string;
9672
+ carrier_type_id: string | null;
8915
9673
  cart_number: number;
8916
9674
  created_at: string;
8917
9675
  id: string;
8918
9676
  is_auto: boolean;
8919
9677
  is_complete: boolean;
9678
+ max_layers: number | null;
8920
9679
  notes: string | null;
8921
9680
  occupancy_pct: number;
8922
9681
  order_id: string | null;
8923
9682
  source: string;
8924
9683
  total_layers_used: number;
8925
9684
  updated_at: string;
9685
+ weight_kg: number | null;
8926
9686
  };
8927
9687
  Insert: {
8928
9688
  algorithm_version?: number;
8929
9689
  buffer_id?: string | null;
9690
+ carrier_type?: string;
9691
+ carrier_type_id?: string | null;
8930
9692
  cart_number: number;
8931
9693
  created_at?: string;
8932
9694
  id?: string;
8933
9695
  is_auto?: boolean;
8934
9696
  is_complete?: boolean;
9697
+ max_layers?: number | null;
8935
9698
  notes?: string | null;
8936
9699
  occupancy_pct?: number;
8937
9700
  order_id?: string | null;
8938
9701
  source?: string;
8939
9702
  total_layers_used?: number;
8940
9703
  updated_at?: string;
9704
+ weight_kg?: number | null;
8941
9705
  };
8942
9706
  Update: {
8943
9707
  algorithm_version?: number;
8944
9708
  buffer_id?: string | null;
9709
+ carrier_type?: string;
9710
+ carrier_type_id?: string | null;
8945
9711
  cart_number?: number;
8946
9712
  created_at?: string;
8947
9713
  id?: string;
8948
9714
  is_auto?: boolean;
8949
9715
  is_complete?: boolean;
9716
+ max_layers?: number | null;
8950
9717
  notes?: string | null;
8951
9718
  occupancy_pct?: number;
8952
9719
  order_id?: string | null;
8953
9720
  source?: string;
8954
9721
  total_layers_used?: number;
8955
9722
  updated_at?: string;
9723
+ weight_kg?: number | null;
8956
9724
  };
8957
9725
  Relationships: [{
8958
9726
  foreignKeyName: "order_carts_buffer_id_fkey";
@@ -8960,6 +9728,12 @@ export declare const getFloridayVbnRequired: import("@tanstack/start-client-core
8960
9728
  isOneToOne: false;
8961
9729
  referencedRelation: "order_buffers";
8962
9730
  referencedColumns: ["id"];
9731
+ }, {
9732
+ foreignKeyName: "order_carts_carrier_type_id_fkey";
9733
+ columns: ["carrier_type_id"];
9734
+ isOneToOne: false;
9735
+ referencedRelation: "load_carrier_types";
9736
+ referencedColumns: ["id"];
8963
9737
  }, {
8964
9738
  foreignKeyName: "order_carts_order_id_fkey";
8965
9739
  columns: ["order_id"];
@@ -10099,6 +10873,7 @@ export declare const getFloridayVbnRequired: import("@tanstack/start-client-core
10099
10873
  lock_timeout_seconds: number;
10100
10874
  name: string;
10101
10875
  require_country_selection: boolean;
10876
+ slug: string | null;
10102
10877
  sort_order: number;
10103
10878
  sort_rules: import("../integrations/supabase/types").Json;
10104
10879
  task_id: string | null;
@@ -10119,6 +10894,7 @@ export declare const getFloridayVbnRequired: import("@tanstack/start-client-core
10119
10894
  lock_timeout_seconds?: number;
10120
10895
  name: string;
10121
10896
  require_country_selection?: boolean;
10897
+ slug?: string | null;
10122
10898
  sort_order?: number;
10123
10899
  sort_rules?: import("../integrations/supabase/types").Json;
10124
10900
  task_id?: string | null;
@@ -10139,6 +10915,7 @@ export declare const getFloridayVbnRequired: import("@tanstack/start-client-core
10139
10915
  lock_timeout_seconds?: number;
10140
10916
  name?: string;
10141
10917
  require_country_selection?: boolean;
10918
+ slug?: string | null;
10142
10919
  sort_order?: number;
10143
10920
  sort_rules?: import("../integrations/supabase/types").Json;
10144
10921
  task_id?: string | null;
@@ -10672,7 +11449,55 @@ export declare const getFloridayVbnRequired: import("@tanstack/start-client-core
10672
11449
  };
10673
11450
  Relationships: [];
10674
11451
  };
10675
- product_bom_items: {
11452
+ product_bom_external_items: {
11453
+ Row: {
11454
+ created_at: string;
11455
+ id: string;
11456
+ name: string;
11457
+ packing_configuration_id: string | null;
11458
+ parent_product_id: string | null;
11459
+ parent_trade_item_floriday_id: string | null;
11460
+ quantity: number;
11461
+ sort_order: number;
11462
+ tenant_id: string;
11463
+ unit: string;
11464
+ updated_at: string;
11465
+ };
11466
+ Insert: {
11467
+ created_at?: string;
11468
+ id?: string;
11469
+ name: string;
11470
+ packing_configuration_id?: string | null;
11471
+ parent_product_id?: string | null;
11472
+ parent_trade_item_floriday_id?: string | null;
11473
+ quantity?: number;
11474
+ sort_order?: number;
11475
+ tenant_id: string;
11476
+ unit?: string;
11477
+ updated_at?: string;
11478
+ };
11479
+ Update: {
11480
+ created_at?: string;
11481
+ id?: string;
11482
+ name?: string;
11483
+ packing_configuration_id?: string | null;
11484
+ parent_product_id?: string | null;
11485
+ parent_trade_item_floriday_id?: string | null;
11486
+ quantity?: number;
11487
+ sort_order?: number;
11488
+ tenant_id?: string;
11489
+ unit?: string;
11490
+ updated_at?: string;
11491
+ };
11492
+ Relationships: [{
11493
+ foreignKeyName: "product_bom_external_items_parent_product_id_fkey";
11494
+ columns: ["parent_product_id"];
11495
+ isOneToOne: false;
11496
+ referencedRelation: "products";
11497
+ referencedColumns: ["id"];
11498
+ }];
11499
+ };
11500
+ product_bom_items: {
10676
11501
  Row: {
10677
11502
  component_product_id: string | null;
10678
11503
  component_trade_item_floriday_id: string | null;
@@ -11908,6 +12733,270 @@ export declare const getFloridayVbnRequired: import("@tanstack/start-client-core
11908
12733
  };
11909
12734
  Relationships: [];
11910
12735
  };
12736
+ scan_kar_items: {
12737
+ Row: {
12738
+ barcode: string;
12739
+ id: string;
12740
+ kar_id: string;
12741
+ pakbon_id: string;
12742
+ pakbon_item_id: string;
12743
+ product_id: string | null;
12744
+ product_name: string;
12745
+ quantity: number;
12746
+ scanned_at: string;
12747
+ scanned_by: string | null;
12748
+ };
12749
+ Insert: {
12750
+ barcode: string;
12751
+ id?: string;
12752
+ kar_id: string;
12753
+ pakbon_id: string;
12754
+ pakbon_item_id: string;
12755
+ product_id?: string | null;
12756
+ product_name: string;
12757
+ quantity?: number;
12758
+ scanned_at?: string;
12759
+ scanned_by?: string | null;
12760
+ };
12761
+ Update: {
12762
+ barcode?: string;
12763
+ id?: string;
12764
+ kar_id?: string;
12765
+ pakbon_id?: string;
12766
+ pakbon_item_id?: string;
12767
+ product_id?: string | null;
12768
+ product_name?: string;
12769
+ quantity?: number;
12770
+ scanned_at?: string;
12771
+ scanned_by?: string | null;
12772
+ };
12773
+ Relationships: [{
12774
+ foreignKeyName: "scan_kar_items_kar_id_fkey";
12775
+ columns: ["kar_id"];
12776
+ isOneToOne: false;
12777
+ referencedRelation: "scan_karren";
12778
+ referencedColumns: ["id"];
12779
+ }, {
12780
+ foreignKeyName: "scan_kar_items_pakbon_id_fkey";
12781
+ columns: ["pakbon_id"];
12782
+ isOneToOne: false;
12783
+ referencedRelation: "scan_pakbonnen";
12784
+ referencedColumns: ["id"];
12785
+ }, {
12786
+ foreignKeyName: "scan_kar_items_pakbon_item_id_fkey";
12787
+ columns: ["pakbon_item_id"];
12788
+ isOneToOne: false;
12789
+ referencedRelation: "scan_pakbon_items";
12790
+ referencedColumns: ["id"];
12791
+ }];
12792
+ };
12793
+ scan_kar_pakbonnen: {
12794
+ Row: {
12795
+ created_at: string;
12796
+ id: string;
12797
+ kar_id: string;
12798
+ pakbon_id: string;
12799
+ };
12800
+ Insert: {
12801
+ created_at?: string;
12802
+ id?: string;
12803
+ kar_id: string;
12804
+ pakbon_id: string;
12805
+ };
12806
+ Update: {
12807
+ created_at?: string;
12808
+ id?: string;
12809
+ kar_id?: string;
12810
+ pakbon_id?: string;
12811
+ };
12812
+ Relationships: [{
12813
+ foreignKeyName: "scan_kar_pakbonnen_kar_id_fkey";
12814
+ columns: ["kar_id"];
12815
+ isOneToOne: false;
12816
+ referencedRelation: "scan_karren";
12817
+ referencedColumns: ["id"];
12818
+ }, {
12819
+ foreignKeyName: "scan_kar_pakbonnen_pakbon_id_fkey";
12820
+ columns: ["pakbon_id"];
12821
+ isOneToOne: false;
12822
+ referencedRelation: "scan_pakbonnen";
12823
+ referencedColumns: ["id"];
12824
+ }];
12825
+ };
12826
+ scan_karren: {
12827
+ Row: {
12828
+ afgerond_op: string | null;
12829
+ buffer_key: string | null;
12830
+ created_at: string;
12831
+ customer_names: string[];
12832
+ geprint: boolean;
12833
+ geprint_op: string | null;
12834
+ id: string;
12835
+ kar_nummer: string;
12836
+ medewerker_id: string | null;
12837
+ medewerker_naam: string | null;
12838
+ naar_pickstation: boolean;
12839
+ naar_pickstation_op: string | null;
12840
+ order_number: string | null;
12841
+ scanner_key: string;
12842
+ status: string;
12843
+ totaal_producten: number;
12844
+ updated_at: string;
12845
+ };
12846
+ Insert: {
12847
+ afgerond_op?: string | null;
12848
+ buffer_key?: string | null;
12849
+ created_at?: string;
12850
+ customer_names?: string[];
12851
+ geprint?: boolean;
12852
+ geprint_op?: string | null;
12853
+ id?: string;
12854
+ kar_nummer?: string;
12855
+ medewerker_id?: string | null;
12856
+ medewerker_naam?: string | null;
12857
+ naar_pickstation?: boolean;
12858
+ naar_pickstation_op?: string | null;
12859
+ order_number?: string | null;
12860
+ scanner_key?: string;
12861
+ status?: string;
12862
+ totaal_producten?: number;
12863
+ updated_at?: string;
12864
+ };
12865
+ Update: {
12866
+ afgerond_op?: string | null;
12867
+ buffer_key?: string | null;
12868
+ created_at?: string;
12869
+ customer_names?: string[];
12870
+ geprint?: boolean;
12871
+ geprint_op?: string | null;
12872
+ id?: string;
12873
+ kar_nummer?: string;
12874
+ medewerker_id?: string | null;
12875
+ medewerker_naam?: string | null;
12876
+ naar_pickstation?: boolean;
12877
+ naar_pickstation_op?: string | null;
12878
+ order_number?: string | null;
12879
+ scanner_key?: string;
12880
+ status?: string;
12881
+ totaal_producten?: number;
12882
+ updated_at?: string;
12883
+ };
12884
+ Relationships: [];
12885
+ };
12886
+ scan_logs: {
12887
+ Row: {
12888
+ code: string;
12889
+ created_at: string;
12890
+ id: string;
12891
+ kar_id: string | null;
12892
+ message: string | null;
12893
+ result: string;
12894
+ scanner_key: string;
12895
+ user_id: string | null;
12896
+ };
12897
+ Insert: {
12898
+ code: string;
12899
+ created_at?: string;
12900
+ id?: string;
12901
+ kar_id?: string | null;
12902
+ message?: string | null;
12903
+ result: string;
12904
+ scanner_key?: string;
12905
+ user_id?: string | null;
12906
+ };
12907
+ Update: {
12908
+ code?: string;
12909
+ created_at?: string;
12910
+ id?: string;
12911
+ kar_id?: string | null;
12912
+ message?: string | null;
12913
+ result?: string;
12914
+ scanner_key?: string;
12915
+ user_id?: string | null;
12916
+ };
12917
+ Relationships: [];
12918
+ };
12919
+ scan_pakbon_items: {
12920
+ Row: {
12921
+ barcode: string;
12922
+ created_at: string;
12923
+ id: string;
12924
+ pakbon_id: string;
12925
+ product_id: string | null;
12926
+ product_name: string;
12927
+ quantity: number;
12928
+ scanned_quantity: number;
12929
+ };
12930
+ Insert: {
12931
+ barcode: string;
12932
+ created_at?: string;
12933
+ id?: string;
12934
+ pakbon_id: string;
12935
+ product_id?: string | null;
12936
+ product_name: string;
12937
+ quantity?: number;
12938
+ scanned_quantity?: number;
12939
+ };
12940
+ Update: {
12941
+ barcode?: string;
12942
+ created_at?: string;
12943
+ id?: string;
12944
+ pakbon_id?: string;
12945
+ product_id?: string | null;
12946
+ product_name?: string;
12947
+ quantity?: number;
12948
+ scanned_quantity?: number;
12949
+ };
12950
+ Relationships: [{
12951
+ foreignKeyName: "scan_pakbon_items_pakbon_id_fkey";
12952
+ columns: ["pakbon_id"];
12953
+ isOneToOne: false;
12954
+ referencedRelation: "scan_pakbonnen";
12955
+ referencedColumns: ["id"];
12956
+ }];
12957
+ };
12958
+ scan_pakbonnen: {
12959
+ Row: {
12960
+ barcode: string;
12961
+ buffer_key: string | null;
12962
+ created_at: string;
12963
+ customer_name: string;
12964
+ id: string;
12965
+ order_id: string | null;
12966
+ order_number: string;
12967
+ pakbon_nummer: string;
12968
+ printed_at: string;
12969
+ status: string;
12970
+ updated_at: string;
12971
+ };
12972
+ Insert: {
12973
+ barcode: string;
12974
+ buffer_key?: string | null;
12975
+ created_at?: string;
12976
+ customer_name: string;
12977
+ id?: string;
12978
+ order_id?: string | null;
12979
+ order_number: string;
12980
+ pakbon_nummer: string;
12981
+ printed_at?: string;
12982
+ status?: string;
12983
+ updated_at?: string;
12984
+ };
12985
+ Update: {
12986
+ barcode?: string;
12987
+ buffer_key?: string | null;
12988
+ created_at?: string;
12989
+ customer_name?: string;
12990
+ id?: string;
12991
+ order_id?: string | null;
12992
+ order_number?: string;
12993
+ pakbon_nummer?: string;
12994
+ printed_at?: string;
12995
+ status?: string;
12996
+ updated_at?: string;
12997
+ };
12998
+ Relationships: [];
12999
+ };
11911
13000
  sidebar_config: {
11912
13001
  Row: {
11913
13002
  id: string;
@@ -12586,6 +13675,24 @@ export declare const getFloridayVbnRequired: import("@tanstack/start-client-core
12586
13675
  };
12587
13676
  Relationships: [];
12588
13677
  };
13678
+ twinfield_cron_auth: {
13679
+ Row: {
13680
+ created_at: string;
13681
+ id: number;
13682
+ secret: string;
13683
+ };
13684
+ Insert: {
13685
+ created_at?: string;
13686
+ id?: number;
13687
+ secret?: string;
13688
+ };
13689
+ Update: {
13690
+ created_at?: string;
13691
+ id?: number;
13692
+ secret?: string;
13693
+ };
13694
+ Relationships: [];
13695
+ };
12589
13696
  twinfield_customers: {
12590
13697
  Row: {
12591
13698
  address: string | null;
@@ -12847,6 +13954,7 @@ export declare const getFloridayVbnRequired: import("@tanstack/start-client-core
12847
13954
  default_invoice_type: string;
12848
13955
  default_payment_term_days: number;
12849
13956
  default_vat_code: string;
13957
+ home_country_code: string;
12850
13958
  invoice_enabled_ao: boolean;
12851
13959
  invoice_enabled_fo: boolean;
12852
13960
  invoice_enabled_ho: boolean;
@@ -12855,6 +13963,8 @@ export declare const getFloridayVbnRequired: import("@tanstack/start-client-core
12855
13963
  payment_journal_code: string;
12856
13964
  updated_at: string;
12857
13965
  user_id: string;
13966
+ vat_code_eu_reverse: string | null;
13967
+ vat_code_export: string | null;
12858
13968
  };
12859
13969
  Insert: {
12860
13970
  created_at?: string;
@@ -12864,6 +13974,7 @@ export declare const getFloridayVbnRequired: import("@tanstack/start-client-core
12864
13974
  default_invoice_type?: string;
12865
13975
  default_payment_term_days?: number;
12866
13976
  default_vat_code?: string;
13977
+ home_country_code?: string;
12867
13978
  invoice_enabled_ao?: boolean;
12868
13979
  invoice_enabled_fo?: boolean;
12869
13980
  invoice_enabled_ho?: boolean;
@@ -12872,6 +13983,8 @@ export declare const getFloridayVbnRequired: import("@tanstack/start-client-core
12872
13983
  payment_journal_code?: string;
12873
13984
  updated_at?: string;
12874
13985
  user_id: string;
13986
+ vat_code_eu_reverse?: string | null;
13987
+ vat_code_export?: string | null;
12875
13988
  };
12876
13989
  Update: {
12877
13990
  created_at?: string;
@@ -12881,6 +13994,7 @@ export declare const getFloridayVbnRequired: import("@tanstack/start-client-core
12881
13994
  default_invoice_type?: string;
12882
13995
  default_payment_term_days?: number;
12883
13996
  default_vat_code?: string;
13997
+ home_country_code?: string;
12884
13998
  invoice_enabled_ao?: boolean;
12885
13999
  invoice_enabled_fo?: boolean;
12886
14000
  invoice_enabled_ho?: boolean;
@@ -12889,6 +14003,8 @@ export declare const getFloridayVbnRequired: import("@tanstack/start-client-core
12889
14003
  payment_journal_code?: string;
12890
14004
  updated_at?: string;
12891
14005
  user_id?: string;
14006
+ vat_code_eu_reverse?: string | null;
14007
+ vat_code_export?: string | null;
12892
14008
  };
12893
14009
  Relationships: [];
12894
14010
  };
@@ -13090,46 +14206,124 @@ export declare const getFloridayVbnRequired: import("@tanstack/start-client-core
13090
14206
  referencedColumns: ["id"];
13091
14207
  }];
13092
14208
  };
13093
- twinfield_push_queue: {
14209
+ twinfield_ledger_accounts_cache: {
13094
14210
  Row: {
13095
- action: string;
13096
- attempts: number;
13097
- connection_id: string;
14211
+ code: string;
14212
+ connection_id: string | null;
13098
14213
  created_at: string;
13099
- customer_id: string | null;
13100
- external_id: string | null;
14214
+ dim_type: string;
14215
+ fetched_at: string;
13101
14216
  id: string;
13102
- idempotency_key: string;
13103
- last_error: string | null;
13104
- next_attempt_at: string;
13105
- office_code: string | null;
13106
- payload: import("../integrations/supabase/types").Json;
13107
- status: string;
14217
+ is_active: boolean;
14218
+ name: string | null;
14219
+ office_code: string;
13108
14220
  updated_at: string;
13109
14221
  };
13110
14222
  Insert: {
13111
- action?: string;
13112
- attempts?: number;
13113
- connection_id: string;
14223
+ code: string;
14224
+ connection_id?: string | null;
13114
14225
  created_at?: string;
13115
- customer_id?: string | null;
13116
- external_id?: string | null;
14226
+ dim_type?: string;
14227
+ fetched_at?: string;
13117
14228
  id?: string;
13118
- idempotency_key: string;
13119
- last_error?: string | null;
13120
- next_attempt_at?: string;
13121
- office_code?: string | null;
13122
- payload: import("../integrations/supabase/types").Json;
13123
- status?: string;
14229
+ is_active?: boolean;
14230
+ name?: string | null;
14231
+ office_code: string;
13124
14232
  updated_at?: string;
13125
14233
  };
13126
14234
  Update: {
13127
- action?: string;
13128
- attempts?: number;
13129
- connection_id?: string;
14235
+ code?: string;
14236
+ connection_id?: string | null;
13130
14237
  created_at?: string;
13131
- customer_id?: string | null;
13132
- external_id?: string | null;
14238
+ dim_type?: string;
14239
+ fetched_at?: string;
14240
+ id?: string;
14241
+ is_active?: boolean;
14242
+ name?: string | null;
14243
+ office_code?: string;
14244
+ updated_at?: string;
14245
+ };
14246
+ Relationships: [];
14247
+ };
14248
+ twinfield_push_log: {
14249
+ Row: {
14250
+ created_at: string;
14251
+ customer_id: string | null;
14252
+ id: string;
14253
+ message: string | null;
14254
+ office_code: string | null;
14255
+ ok: boolean;
14256
+ queue_id: string | null;
14257
+ request_xml: string | null;
14258
+ response_raw: string | null;
14259
+ twinfield_code: string | null;
14260
+ };
14261
+ Insert: {
14262
+ created_at?: string;
14263
+ customer_id?: string | null;
14264
+ id?: string;
14265
+ message?: string | null;
14266
+ office_code?: string | null;
14267
+ ok?: boolean;
14268
+ queue_id?: string | null;
14269
+ request_xml?: string | null;
14270
+ response_raw?: string | null;
14271
+ twinfield_code?: string | null;
14272
+ };
14273
+ Update: {
14274
+ created_at?: string;
14275
+ customer_id?: string | null;
14276
+ id?: string;
14277
+ message?: string | null;
14278
+ office_code?: string | null;
14279
+ ok?: boolean;
14280
+ queue_id?: string | null;
14281
+ request_xml?: string | null;
14282
+ response_raw?: string | null;
14283
+ twinfield_code?: string | null;
14284
+ };
14285
+ Relationships: [];
14286
+ };
14287
+ twinfield_push_queue: {
14288
+ Row: {
14289
+ action: string;
14290
+ attempts: number;
14291
+ connection_id: string | null;
14292
+ created_at: string;
14293
+ customer_id: string | null;
14294
+ external_id: string | null;
14295
+ id: string;
14296
+ idempotency_key: string;
14297
+ last_error: string | null;
14298
+ next_attempt_at: string;
14299
+ office_code: string | null;
14300
+ payload: import("../integrations/supabase/types").Json;
14301
+ status: string;
14302
+ updated_at: string;
14303
+ };
14304
+ Insert: {
14305
+ action?: string;
14306
+ attempts?: number;
14307
+ connection_id?: string | null;
14308
+ created_at?: string;
14309
+ customer_id?: string | null;
14310
+ external_id?: string | null;
14311
+ id?: string;
14312
+ idempotency_key: string;
14313
+ last_error?: string | null;
14314
+ next_attempt_at?: string;
14315
+ office_code?: string | null;
14316
+ payload: import("../integrations/supabase/types").Json;
14317
+ status?: string;
14318
+ updated_at?: string;
14319
+ };
14320
+ Update: {
14321
+ action?: string;
14322
+ attempts?: number;
14323
+ connection_id?: string | null;
14324
+ created_at?: string;
14325
+ customer_id?: string | null;
14326
+ external_id?: string | null;
13133
14327
  id?: string;
13134
14328
  idempotency_key?: string;
13135
14329
  last_error?: string | null;
@@ -13180,6 +14374,27 @@ export declare const getFloridayVbnRequired: import("@tanstack/start-client-core
13180
14374
  };
13181
14375
  Relationships: [];
13182
14376
  };
14377
+ twinfield_revoked_accounts: {
14378
+ Row: {
14379
+ account_key: string;
14380
+ last_revoke_error: string | null;
14381
+ revoked_at: string;
14382
+ user_id: string;
14383
+ };
14384
+ Insert: {
14385
+ account_key: string;
14386
+ last_revoke_error?: string | null;
14387
+ revoked_at?: string;
14388
+ user_id: string;
14389
+ };
14390
+ Update: {
14391
+ account_key?: string;
14392
+ last_revoke_error?: string | null;
14393
+ revoked_at?: string;
14394
+ user_id?: string;
14395
+ };
14396
+ Relationships: [];
14397
+ };
13183
14398
  twinfield_session_cache: {
13184
14399
  Row: {
13185
14400
  cluster: string;
@@ -13435,6 +14650,162 @@ export declare const getFloridayVbnRequired: import("@tanstack/start-client-core
13435
14650
  };
13436
14651
  Relationships: [];
13437
14652
  };
14653
+ voorraad_publish_jobs: {
14654
+ Row: {
14655
+ connection_id: string | null;
14656
+ created_at: string;
14657
+ environment: string;
14658
+ finished_at: string | null;
14659
+ id: string;
14660
+ intent: string;
14661
+ product_id: string | null;
14662
+ reference_code: string;
14663
+ snapshot: import("../integrations/supabase/types").Json;
14664
+ status: string;
14665
+ summary: import("../integrations/supabase/types").Json;
14666
+ title: string | null;
14667
+ trade_item_id: string | null;
14668
+ trade_item_key: string | null;
14669
+ updated_at: string;
14670
+ user_id: string;
14671
+ };
14672
+ Insert: {
14673
+ connection_id?: string | null;
14674
+ created_at?: string;
14675
+ environment?: string;
14676
+ finished_at?: string | null;
14677
+ id?: string;
14678
+ intent?: string;
14679
+ product_id?: string | null;
14680
+ reference_code?: string;
14681
+ snapshot?: import("../integrations/supabase/types").Json;
14682
+ status?: string;
14683
+ summary?: import("../integrations/supabase/types").Json;
14684
+ title?: string | null;
14685
+ trade_item_id?: string | null;
14686
+ trade_item_key?: string | null;
14687
+ updated_at?: string;
14688
+ user_id: string;
14689
+ };
14690
+ Update: {
14691
+ connection_id?: string | null;
14692
+ created_at?: string;
14693
+ environment?: string;
14694
+ finished_at?: string | null;
14695
+ id?: string;
14696
+ intent?: string;
14697
+ product_id?: string | null;
14698
+ reference_code?: string;
14699
+ snapshot?: import("../integrations/supabase/types").Json;
14700
+ status?: string;
14701
+ summary?: import("../integrations/supabase/types").Json;
14702
+ title?: string | null;
14703
+ trade_item_id?: string | null;
14704
+ trade_item_key?: string | null;
14705
+ updated_at?: string;
14706
+ user_id?: string;
14707
+ };
14708
+ Relationships: [];
14709
+ };
14710
+ voorraad_publish_learnings: {
14711
+ Row: {
14712
+ created_at: string;
14713
+ field_key: string;
14714
+ hits: number;
14715
+ id: string;
14716
+ label: string | null;
14717
+ last_error: string | null;
14718
+ scope: string;
14719
+ updated_at: string;
14720
+ vbn_code: string;
14721
+ };
14722
+ Insert: {
14723
+ created_at?: string;
14724
+ field_key: string;
14725
+ hits?: number;
14726
+ id?: string;
14727
+ label?: string | null;
14728
+ last_error?: string | null;
14729
+ scope?: string;
14730
+ updated_at?: string;
14731
+ vbn_code: string;
14732
+ };
14733
+ Update: {
14734
+ created_at?: string;
14735
+ field_key?: string;
14736
+ hits?: number;
14737
+ id?: string;
14738
+ label?: string | null;
14739
+ last_error?: string | null;
14740
+ scope?: string;
14741
+ updated_at?: string;
14742
+ vbn_code?: string;
14743
+ };
14744
+ Relationships: [];
14745
+ };
14746
+ voorraad_publish_steps: {
14747
+ Row: {
14748
+ attempts: number;
14749
+ created_at: string;
14750
+ error_code: string | null;
14751
+ error_detail: string | null;
14752
+ error_message: string | null;
14753
+ finished_at: string | null;
14754
+ id: string;
14755
+ job_id: string;
14756
+ label: string;
14757
+ position: number;
14758
+ result: import("../integrations/supabase/types").Json | null;
14759
+ started_at: string | null;
14760
+ status: string;
14761
+ step_key: string;
14762
+ updated_at: string;
14763
+ user_id: string;
14764
+ };
14765
+ Insert: {
14766
+ attempts?: number;
14767
+ created_at?: string;
14768
+ error_code?: string | null;
14769
+ error_detail?: string | null;
14770
+ error_message?: string | null;
14771
+ finished_at?: string | null;
14772
+ id?: string;
14773
+ job_id: string;
14774
+ label: string;
14775
+ position?: number;
14776
+ result?: import("../integrations/supabase/types").Json | null;
14777
+ started_at?: string | null;
14778
+ status?: string;
14779
+ step_key: string;
14780
+ updated_at?: string;
14781
+ user_id: string;
14782
+ };
14783
+ Update: {
14784
+ attempts?: number;
14785
+ created_at?: string;
14786
+ error_code?: string | null;
14787
+ error_detail?: string | null;
14788
+ error_message?: string | null;
14789
+ finished_at?: string | null;
14790
+ id?: string;
14791
+ job_id?: string;
14792
+ label?: string;
14793
+ position?: number;
14794
+ result?: import("../integrations/supabase/types").Json | null;
14795
+ started_at?: string | null;
14796
+ status?: string;
14797
+ step_key?: string;
14798
+ updated_at?: string;
14799
+ user_id?: string;
14800
+ };
14801
+ Relationships: [{
14802
+ foreignKeyName: "voorraad_publish_steps_job_id_fkey";
14803
+ columns: ["job_id"];
14804
+ isOneToOne: false;
14805
+ referencedRelation: "voorraad_publish_jobs";
14806
+ referencedColumns: ["id"];
14807
+ }];
14808
+ };
13438
14809
  werkbon_package_ai_rules: {
13439
14810
  Row: {
13440
14811
  active: boolean;
@@ -14698,12 +16069,13 @@ export declare const getFloridayVbnRequired: import("@tanstack/start-client-core
14698
16069
  };
14699
16070
  claim_twinfield_push_batch: {
14700
16071
  Args: {
16072
+ _customer_id?: string;
14701
16073
  _limit?: number;
14702
16074
  };
14703
16075
  Returns: {
14704
16076
  action: string;
14705
16077
  attempts: number;
14706
- connection_id: string;
16078
+ connection_id: string | null;
14707
16079
  created_at: string;
14708
16080
  customer_id: string | null;
14709
16081
  external_id: string | null;
@@ -14787,6 +16159,15 @@ export declare const getFloridayVbnRequired: import("@tanstack/start-client-core
14787
16159
  };
14788
16160
  Returns: import("../integrations/supabase/types").Json;
14789
16161
  };
16162
+ customer_soft_key: {
16163
+ Args: {
16164
+ _email: string;
16165
+ _house: string;
16166
+ _name: string;
16167
+ _postal: string;
16168
+ };
16169
+ Returns: string;
16170
+ };
14790
16171
  dashboard_alert_counts: {
14791
16172
  Args: never;
14792
16173
  Returns: import("../integrations/supabase/types").Json;
@@ -15252,47 +16633,444 @@ export declare const getFloridayVbnRequired: import("@tanstack/start-client-core
15252
16633
  };
15253
16634
  Returns: string;
15254
16635
  };
15255
- mark_offer_clicked: {
16636
+ logistics_address_key: {
15256
16637
  Args: {
15257
- p_code: string;
16638
+ p_location: string;
15258
16639
  };
15259
- Returns: undefined;
16640
+ Returns: string;
15260
16641
  };
15261
- mark_offer_ordered: {
16642
+ logistics_allowed_load_carriers: {
15262
16643
  Args: {
15263
- p_code: string;
16644
+ p_strategy_id?: string;
16645
+ p_user_id?: string;
15264
16646
  };
15265
- Returns: undefined;
16647
+ Returns: import("../integrations/supabase/types").Json;
15266
16648
  };
15267
- mark_salesorder_controlled: {
16649
+ logistics_apply_buffer_decision: {
15268
16650
  Args: {
15269
- p_controlled: boolean;
15270
- p_floriday_id: string;
16651
+ p_order_id: string;
15271
16652
  };
15272
- Returns: undefined;
16653
+ Returns: string;
15273
16654
  };
15274
- mark_shipment_shipped: {
16655
+ logistics_apply_order_buffer: {
15275
16656
  Args: {
15276
- p_shipment_id: string;
16657
+ p_order_id: string;
15277
16658
  };
15278
- Returns: undefined;
16659
+ Returns: import("../integrations/supabase/types").Json;
15279
16660
  };
15280
- merge_products: {
16661
+ logistics_backorder_allowed: {
15281
16662
  Args: {
15282
- _canonical: string;
15283
- _loser: string;
16663
+ p_strategy_id?: string;
15284
16664
  };
15285
- Returns: undefined;
16665
+ Returns: boolean;
15286
16666
  };
15287
- next_manufacture_partij: {
16667
+ logistics_buffer_criteria: {
15288
16668
  Args: {
15289
- _tenant_id: string;
16669
+ p_settings: import("../integrations/supabase/types").Json;
15290
16670
  };
15291
- Returns: string;
16671
+ Returns: string[];
15292
16672
  };
15293
- next_order_number: {
16673
+ logistics_buffer_decision: {
15294
16674
  Args: {
15295
- p_prefix: string;
16675
+ p_order?: import("../integrations/supabase/types").Json;
16676
+ p_strategy_id?: string;
16677
+ p_user_id?: string;
16678
+ };
16679
+ Returns: import("../integrations/supabase/types").Json;
16680
+ };
16681
+ logistics_buffer_simulate: {
16682
+ Args: {
16683
+ p_orders?: import("../integrations/supabase/types").Json;
16684
+ p_strategy_id?: string;
16685
+ };
16686
+ Returns: import("../integrations/supabase/types").Json;
16687
+ };
16688
+ logistics_buffer_value: {
16689
+ Args: {
16690
+ p_criterion: string;
16691
+ p_order: import("../integrations/supabase/types").Json;
16692
+ };
16693
+ Returns: string;
16694
+ };
16695
+ logistics_cancel_order: {
16696
+ Args: {
16697
+ p_order_ref: string;
16698
+ p_reason?: string;
16699
+ p_user_id?: string;
16700
+ };
16701
+ Returns: number;
16702
+ };
16703
+ logistics_check_order_allowed: {
16704
+ Args: {
16705
+ p_lines: import("../integrations/supabase/types").Json;
16706
+ p_strategy_id?: string;
16707
+ };
16708
+ Returns: import("../integrations/supabase/types").Json;
16709
+ };
16710
+ logistics_check_order_stock: {
16711
+ Args: {
16712
+ p_event_id: string;
16713
+ };
16714
+ Returns: string;
16715
+ };
16716
+ logistics_claim_next_task: {
16717
+ Args: {
16718
+ p_owner_module: string;
16719
+ p_worker?: string;
16720
+ };
16721
+ Returns: {
16722
+ buffer_ref: string | null;
16723
+ claimed_at: string | null;
16724
+ claimed_by: string | null;
16725
+ completed_at: string | null;
16726
+ created_at: string;
16727
+ depends_on: string[];
16728
+ due_at: string | null;
16729
+ error: string | null;
16730
+ id: string;
16731
+ order_ref: string;
16732
+ owner_module: string;
16733
+ payload: import("../integrations/supabase/types").Json;
16734
+ plan_run_id: string | null;
16735
+ planned_end: string | null;
16736
+ planned_start: string | null;
16737
+ priority: number;
16738
+ result: import("../integrations/supabase/types").Json | null;
16739
+ rule_config_id: string | null;
16740
+ rule_version: number | null;
16741
+ sequence: number;
16742
+ shadow: boolean;
16743
+ started_at: string | null;
16744
+ status: string;
16745
+ strategy_id: string | null;
16746
+ task_type: string;
16747
+ updated_at: string;
16748
+ user_id: string;
16749
+ };
16750
+ SetofOptions: {
16751
+ from: "*";
16752
+ to: "logistics_tasks";
16753
+ isOneToOne: true;
16754
+ isSetofReturn: false;
16755
+ };
16756
+ };
16757
+ logistics_claim_task: {
16758
+ Args: {
16759
+ p_task_id: string;
16760
+ p_worker?: string;
16761
+ };
16762
+ Returns: {
16763
+ buffer_ref: string | null;
16764
+ claimed_at: string | null;
16765
+ claimed_by: string | null;
16766
+ completed_at: string | null;
16767
+ created_at: string;
16768
+ depends_on: string[];
16769
+ due_at: string | null;
16770
+ error: string | null;
16771
+ id: string;
16772
+ order_ref: string;
16773
+ owner_module: string;
16774
+ payload: import("../integrations/supabase/types").Json;
16775
+ plan_run_id: string | null;
16776
+ planned_end: string | null;
16777
+ planned_start: string | null;
16778
+ priority: number;
16779
+ result: import("../integrations/supabase/types").Json | null;
16780
+ rule_config_id: string | null;
16781
+ rule_version: number | null;
16782
+ sequence: number;
16783
+ shadow: boolean;
16784
+ started_at: string | null;
16785
+ status: string;
16786
+ strategy_id: string | null;
16787
+ task_type: string;
16788
+ updated_at: string;
16789
+ user_id: string;
16790
+ };
16791
+ SetofOptions: {
16792
+ from: "*";
16793
+ to: "logistics_tasks";
16794
+ isOneToOne: true;
16795
+ isSetofReturn: false;
16796
+ };
16797
+ };
16798
+ logistics_complete_task: {
16799
+ Args: {
16800
+ p_result?: import("../integrations/supabase/types").Json;
16801
+ p_task_id: string;
16802
+ };
16803
+ Returns: {
16804
+ buffer_ref: string | null;
16805
+ claimed_at: string | null;
16806
+ claimed_by: string | null;
16807
+ completed_at: string | null;
16808
+ created_at: string;
16809
+ depends_on: string[];
16810
+ due_at: string | null;
16811
+ error: string | null;
16812
+ id: string;
16813
+ order_ref: string;
16814
+ owner_module: string;
16815
+ payload: import("../integrations/supabase/types").Json;
16816
+ plan_run_id: string | null;
16817
+ planned_end: string | null;
16818
+ planned_start: string | null;
16819
+ priority: number;
16820
+ result: import("../integrations/supabase/types").Json | null;
16821
+ rule_config_id: string | null;
16822
+ rule_version: number | null;
16823
+ sequence: number;
16824
+ shadow: boolean;
16825
+ started_at: string | null;
16826
+ status: string;
16827
+ strategy_id: string | null;
16828
+ task_type: string;
16829
+ updated_at: string;
16830
+ user_id: string;
16831
+ };
16832
+ SetofOptions: {
16833
+ from: "*";
16834
+ to: "logistics_tasks";
16835
+ isOneToOne: true;
16836
+ isSetofReturn: false;
16837
+ };
16838
+ };
16839
+ logistics_emit_event: {
16840
+ Args: {
16841
+ p_event_type: string;
16842
+ p_idempotency_key?: string;
16843
+ p_order_ref: string;
16844
+ p_payload?: import("../integrations/supabase/types").Json;
16845
+ p_shadow?: boolean;
16846
+ p_source_module: string;
16847
+ p_strategy_id?: string;
16848
+ };
16849
+ Returns: import("../integrations/supabase/types").Json;
16850
+ } | {
16851
+ Args: {
16852
+ p_event_type: string;
16853
+ p_idempotency_key?: string;
16854
+ p_order_ref: string;
16855
+ p_payload?: import("../integrations/supabase/types").Json;
16856
+ p_priority?: number;
16857
+ p_shadow?: boolean;
16858
+ p_source_module: string;
16859
+ p_strategy_id?: string;
16860
+ };
16861
+ Returns: import("../integrations/supabase/types").Json;
16862
+ };
16863
+ logistics_fail_task: {
16864
+ Args: {
16865
+ p_error: string;
16866
+ p_task_id: string;
16867
+ };
16868
+ Returns: {
16869
+ buffer_ref: string | null;
16870
+ claimed_at: string | null;
16871
+ claimed_by: string | null;
16872
+ completed_at: string | null;
16873
+ created_at: string;
16874
+ depends_on: string[];
16875
+ due_at: string | null;
16876
+ error: string | null;
16877
+ id: string;
16878
+ order_ref: string;
16879
+ owner_module: string;
16880
+ payload: import("../integrations/supabase/types").Json;
16881
+ plan_run_id: string | null;
16882
+ planned_end: string | null;
16883
+ planned_start: string | null;
16884
+ priority: number;
16885
+ result: import("../integrations/supabase/types").Json | null;
16886
+ rule_config_id: string | null;
16887
+ rule_version: number | null;
16888
+ sequence: number;
16889
+ shadow: boolean;
16890
+ started_at: string | null;
16891
+ status: string;
16892
+ strategy_id: string | null;
16893
+ task_type: string;
16894
+ updated_at: string;
16895
+ user_id: string;
16896
+ };
16897
+ SetofOptions: {
16898
+ from: "*";
16899
+ to: "logistics_tasks";
16900
+ isOneToOne: true;
16901
+ isSetofReturn: false;
16902
+ };
16903
+ };
16904
+ logistics_not_past: {
16905
+ Args: {
16906
+ p_ts: string;
16907
+ };
16908
+ Returns: string;
16909
+ };
16910
+ logistics_queue_stock_email: {
16911
+ Args: {
16912
+ p_alert_id: string;
16913
+ };
16914
+ Returns: string;
16915
+ };
16916
+ logistics_reapply_buffer_decisions: {
16917
+ Args: never;
16918
+ Returns: number;
16919
+ };
16920
+ logistics_rebuffer_open_orders: {
16921
+ Args: {
16922
+ p_strategy_id?: string;
16923
+ };
16924
+ Returns: import("../integrations/supabase/types").Json;
16925
+ };
16926
+ logistics_rebuffer_orders: {
16927
+ Args: {
16928
+ p_days?: number;
16929
+ };
16930
+ Returns: import("../integrations/supabase/types").Json;
16931
+ };
16932
+ logistics_rebuffer_pending: {
16933
+ Args: never;
16934
+ Returns: import("../integrations/supabase/types").Json;
16935
+ };
16936
+ logistics_rescan_orders: {
16937
+ Args: {
16938
+ p_days?: number;
16939
+ };
16940
+ Returns: number;
16941
+ };
16942
+ logistics_resolve_settings: {
16943
+ Args: {
16944
+ p_config_id: string;
16945
+ p_user_id: string;
16946
+ p_version: number;
16947
+ };
16948
+ Returns: import("../integrations/supabase/types").Json;
16949
+ };
16950
+ logistics_rule_bool: {
16951
+ Args: {
16952
+ p_default: boolean;
16953
+ p_key: string;
16954
+ p_settings: import("../integrations/supabase/types").Json;
16955
+ p_step: string;
16956
+ };
16957
+ Returns: boolean;
16958
+ };
16959
+ logistics_rule_num: {
16960
+ Args: {
16961
+ p_default: number;
16962
+ p_key: string;
16963
+ p_settings: import("../integrations/supabase/types").Json;
16964
+ p_step: string;
16965
+ };
16966
+ Returns: number;
16967
+ };
16968
+ logistics_rule_text: {
16969
+ Args: {
16970
+ p_default: string;
16971
+ p_key: string;
16972
+ p_settings: import("../integrations/supabase/types").Json;
16973
+ p_step: string;
16974
+ };
16975
+ Returns: string;
16976
+ };
16977
+ logistics_rule_value: {
16978
+ Args: {
16979
+ p_key: string;
16980
+ p_settings: import("../integrations/supabase/types").Json;
16981
+ p_step: string;
16982
+ };
16983
+ Returns: import("../integrations/supabase/types").Json;
16984
+ };
16985
+ logistics_scan_order_stock: {
16986
+ Args: {
16987
+ p_order_id: string;
16988
+ };
16989
+ Returns: string;
16990
+ };
16991
+ logistics_set_order_priority: {
16992
+ Args: {
16993
+ p_order_ref: string;
16994
+ p_priority: number;
16995
+ p_user_id?: string;
16996
+ };
16997
+ Returns: number;
16998
+ };
16999
+ logistics_supersede_stale_tasks: {
17000
+ Args: {
17001
+ p_keep: string[];
17002
+ p_order_ref: string;
17003
+ p_run_id: string;
17004
+ p_user_id: string;
17005
+ };
17006
+ Returns: number;
17007
+ };
17008
+ logistics_task_owner: {
17009
+ Args: {
17010
+ p_task_type: string;
17011
+ };
17012
+ Returns: string;
17013
+ };
17014
+ logistics_upsert_task: {
17015
+ Args: {
17016
+ p_buffer_ref: string;
17017
+ p_end: string;
17018
+ p_order_ref: string;
17019
+ p_owner: string;
17020
+ p_payload: import("../integrations/supabase/types").Json;
17021
+ p_rule_config_id: string;
17022
+ p_rule_version: number;
17023
+ p_run_id: string;
17024
+ p_sequence: number;
17025
+ p_shadow: boolean;
17026
+ p_start: string;
17027
+ p_strategy_id: string;
17028
+ p_task_type: string;
17029
+ p_user_id: string;
17030
+ };
17031
+ Returns: string;
17032
+ };
17033
+ mark_offer_clicked: {
17034
+ Args: {
17035
+ p_code: string;
17036
+ };
17037
+ Returns: undefined;
17038
+ };
17039
+ mark_offer_ordered: {
17040
+ Args: {
17041
+ p_code: string;
17042
+ };
17043
+ Returns: undefined;
17044
+ };
17045
+ mark_salesorder_controlled: {
17046
+ Args: {
17047
+ p_controlled: boolean;
17048
+ p_floriday_id: string;
17049
+ };
17050
+ Returns: undefined;
17051
+ };
17052
+ mark_shipment_shipped: {
17053
+ Args: {
17054
+ p_shipment_id: string;
17055
+ };
17056
+ Returns: undefined;
17057
+ };
17058
+ merge_products: {
17059
+ Args: {
17060
+ _canonical: string;
17061
+ _loser: string;
17062
+ };
17063
+ Returns: undefined;
17064
+ };
17065
+ next_manufacture_partij: {
17066
+ Args: {
17067
+ _tenant_id: string;
17068
+ };
17069
+ Returns: string;
17070
+ };
17071
+ next_order_number: {
17072
+ Args: {
17073
+ p_prefix: string;
15296
17074
  };
15297
17075
  Returns: string;
15298
17076
  };
@@ -15505,6 +17283,13 @@ export declare const getFloridayVbnRequired: import("@tanstack/start-client-core
15505
17283
  waiting: number;
15506
17284
  }[];
15507
17285
  };
17286
+ pick_station_slugify: {
17287
+ Args: {
17288
+ _id: string;
17289
+ _name: string;
17290
+ };
17291
+ Returns: string;
17292
+ };
15508
17293
  pickstation_get_orders_raw: {
15509
17294
  Args: never;
15510
17295
  Returns: import("../integrations/supabase/types").Json;
@@ -15545,6 +17330,12 @@ export declare const getFloridayVbnRequired: import("@tanstack/start-client-core
15545
17330
  };
15546
17331
  Returns: undefined;
15547
17332
  };
17333
+ process_logistics_event: {
17334
+ Args: {
17335
+ p_event_id: string;
17336
+ };
17337
+ Returns: string;
17338
+ };
15548
17339
  produce_designed_product: {
15549
17340
  Args: {
15550
17341
  p_parent_id: string;
@@ -15670,6 +17461,14 @@ export declare const getFloridayVbnRequired: import("@tanstack/start-client-core
15670
17461
  };
15671
17462
  Returns: import("../integrations/supabase/types").Json;
15672
17463
  };
17464
+ run_floriday_continuous_stock_sync: {
17465
+ Args: never;
17466
+ Returns: undefined;
17467
+ };
17468
+ run_twinfield_queue_tick: {
17469
+ Args: never;
17470
+ Returns: undefined;
17471
+ };
15673
17472
  schedule_floriday_additional_services_sync: {
15674
17473
  Args: {
15675
17474
  p_apikey: string;
@@ -16001,7 +17800,7 @@ export declare const getFloridayVbnRequired: import("@tanstack/start-client-core
16001
17800
  };
16002
17801
  twinfield_register_cron: {
16003
17802
  Args: {
16004
- apikey: string;
17803
+ apikey?: string;
16005
17804
  base_url: string;
16006
17805
  };
16007
17806
  Returns: import("../integrations/supabase/types").Json;
@@ -17688,13 +19487,7 @@ export declare const saveFloridayVbnRequired: import("@tanstack/start-client-cor
17688
19487
  id?: string;
17689
19488
  user_id?: string | null;
17690
19489
  };
17691
- Relationships: [{
17692
- foreignKeyName: "customer_audit_log_customer_id_fkey";
17693
- columns: ["customer_id"];
17694
- isOneToOne: false;
17695
- referencedRelation: "customers";
17696
- referencedColumns: ["id"];
17697
- }];
19490
+ Relationships: [];
17698
19491
  };
17699
19492
  customer_contacts: {
17700
19493
  Row: {
@@ -17755,9 +19548,12 @@ export declare const saveFloridayVbnRequired: import("@tanstack/start-client-cor
17755
19548
  city: string | null;
17756
19549
  country: string | null;
17757
19550
  created_at: string;
17758
- customer_id: string;
19551
+ customer_id: string | null;
19552
+ external_key: string | null;
19553
+ external_provider: string | null;
17759
19554
  floriday_location_id: string | null;
17760
19555
  gln: string | null;
19556
+ group_key: string | null;
17761
19557
  house_number: string | null;
17762
19558
  id: string;
17763
19559
  is_primary: boolean;
@@ -17776,9 +19572,12 @@ export declare const saveFloridayVbnRequired: import("@tanstack/start-client-cor
17776
19572
  city?: string | null;
17777
19573
  country?: string | null;
17778
19574
  created_at?: string;
17779
- customer_id: string;
19575
+ customer_id?: string | null;
19576
+ external_key?: string | null;
19577
+ external_provider?: string | null;
17780
19578
  floriday_location_id?: string | null;
17781
19579
  gln?: string | null;
19580
+ group_key?: string | null;
17782
19581
  house_number?: string | null;
17783
19582
  id?: string;
17784
19583
  is_primary?: boolean;
@@ -17797,9 +19596,12 @@ export declare const saveFloridayVbnRequired: import("@tanstack/start-client-cor
17797
19596
  city?: string | null;
17798
19597
  country?: string | null;
17799
19598
  created_at?: string;
17800
- customer_id?: string;
19599
+ customer_id?: string | null;
19600
+ external_key?: string | null;
19601
+ external_provider?: string | null;
17801
19602
  floriday_location_id?: string | null;
17802
19603
  gln?: string | null;
19604
+ group_key?: string | null;
17803
19605
  house_number?: string | null;
17804
19606
  id?: string;
17805
19607
  is_primary?: boolean;
@@ -17888,6 +19690,39 @@ export declare const saveFloridayVbnRequired: import("@tanstack/start-client-cor
17888
19690
  };
17889
19691
  Relationships: [];
17890
19692
  };
19693
+ customer_logistics_strategy: {
19694
+ Row: {
19695
+ created_at: string;
19696
+ id: string;
19697
+ ref_key: string;
19698
+ scope: string;
19699
+ strategy_id: string | null;
19700
+ updated_at: string;
19701
+ };
19702
+ Insert: {
19703
+ created_at?: string;
19704
+ id?: string;
19705
+ ref_key: string;
19706
+ scope: string;
19707
+ strategy_id?: string | null;
19708
+ updated_at?: string;
19709
+ };
19710
+ Update: {
19711
+ created_at?: string;
19712
+ id?: string;
19713
+ ref_key?: string;
19714
+ scope?: string;
19715
+ strategy_id?: string | null;
19716
+ updated_at?: string;
19717
+ };
19718
+ Relationships: [{
19719
+ foreignKeyName: "customer_logistics_strategy_strategy_id_fkey";
19720
+ columns: ["strategy_id"];
19721
+ isOneToOne: false;
19722
+ referencedRelation: "logistics_strategies";
19723
+ referencedColumns: ["id"];
19724
+ }];
19725
+ };
17891
19726
  customer_price_group_members: {
17892
19727
  Row: {
17893
19728
  created_at: string;
@@ -18099,6 +19934,7 @@ export declare const saveFloridayVbnRequired: import("@tanstack/start-client-cor
18099
19934
  bank_state: string | null;
18100
19935
  billing_email: string | null;
18101
19936
  bio: string | null;
19937
+ blocked: boolean;
18102
19938
  city: string | null;
18103
19939
  coc_number: string | null;
18104
19940
  commercial_name: string | null;
@@ -18107,11 +19943,14 @@ export declare const saveFloridayVbnRequired: import("@tanstack/start-client-cor
18107
19943
  contact_person: string | null;
18108
19944
  country: string | null;
18109
19945
  created_at: string;
19946
+ credit_limit: number;
18110
19947
  custom_fields: import("../integrations/supabase/types").Json;
18111
19948
  customer_class: string | null;
18112
19949
  customer_number: string | null;
18113
19950
  discount_days: number | null;
18114
19951
  discount_percentage: number | null;
19952
+ discount_surcharge: string;
19953
+ e_invoicing: boolean;
18115
19954
  email: string | null;
18116
19955
  external_id: string | null;
18117
19956
  fax: string | null;
@@ -18122,19 +19961,23 @@ export declare const saveFloridayVbnRequired: import("@tanstack/start-client-cor
18122
19961
  house_number: string | null;
18123
19962
  icp_country_code: string | null;
18124
19963
  id: string;
19964
+ invoice_send_as: string;
18125
19965
  is_active: boolean;
18126
19966
  language: string | null;
18127
19967
  last_synced_at: string | null;
19968
+ ledger_account: string | null;
18128
19969
  logo_url: string | null;
18129
19970
  markets: string[];
18130
19971
  notes: string | null;
18131
19972
  organization_type: string | null;
18132
19973
  payment_methods: string[];
19974
+ payment_spec_method: string;
18133
19975
  payment_term_days: number | null;
18134
19976
  phone: string | null;
18135
19977
  postal_code: string | null;
18136
19978
  product_groups: string[];
18137
19979
  segments: string[];
19980
+ send_reminder: string;
18138
19981
  source: string;
18139
19982
  street: string | null;
18140
19983
  sync_error: string | null;
@@ -18170,6 +20013,7 @@ export declare const saveFloridayVbnRequired: import("@tanstack/start-client-cor
18170
20013
  bank_state?: string | null;
18171
20014
  billing_email?: string | null;
18172
20015
  bio?: string | null;
20016
+ blocked?: boolean;
18173
20017
  city?: string | null;
18174
20018
  coc_number?: string | null;
18175
20019
  commercial_name?: string | null;
@@ -18178,11 +20022,14 @@ export declare const saveFloridayVbnRequired: import("@tanstack/start-client-cor
18178
20022
  contact_person?: string | null;
18179
20023
  country?: string | null;
18180
20024
  created_at?: string;
20025
+ credit_limit?: number;
18181
20026
  custom_fields?: import("../integrations/supabase/types").Json;
18182
20027
  customer_class?: string | null;
18183
20028
  customer_number?: string | null;
18184
20029
  discount_days?: number | null;
18185
20030
  discount_percentage?: number | null;
20031
+ discount_surcharge?: string;
20032
+ e_invoicing?: boolean;
18186
20033
  email?: string | null;
18187
20034
  external_id?: string | null;
18188
20035
  fax?: string | null;
@@ -18193,19 +20040,23 @@ export declare const saveFloridayVbnRequired: import("@tanstack/start-client-cor
18193
20040
  house_number?: string | null;
18194
20041
  icp_country_code?: string | null;
18195
20042
  id?: string;
20043
+ invoice_send_as?: string;
18196
20044
  is_active?: boolean;
18197
20045
  language?: string | null;
18198
20046
  last_synced_at?: string | null;
20047
+ ledger_account?: string | null;
18199
20048
  logo_url?: string | null;
18200
20049
  markets?: string[];
18201
20050
  notes?: string | null;
18202
20051
  organization_type?: string | null;
18203
20052
  payment_methods?: string[];
20053
+ payment_spec_method?: string;
18204
20054
  payment_term_days?: number | null;
18205
20055
  phone?: string | null;
18206
20056
  postal_code?: string | null;
18207
20057
  product_groups?: string[];
18208
20058
  segments?: string[];
20059
+ send_reminder?: string;
18209
20060
  source?: string;
18210
20061
  street?: string | null;
18211
20062
  sync_error?: string | null;
@@ -18241,6 +20092,7 @@ export declare const saveFloridayVbnRequired: import("@tanstack/start-client-cor
18241
20092
  bank_state?: string | null;
18242
20093
  billing_email?: string | null;
18243
20094
  bio?: string | null;
20095
+ blocked?: boolean;
18244
20096
  city?: string | null;
18245
20097
  coc_number?: string | null;
18246
20098
  commercial_name?: string | null;
@@ -18249,11 +20101,14 @@ export declare const saveFloridayVbnRequired: import("@tanstack/start-client-cor
18249
20101
  contact_person?: string | null;
18250
20102
  country?: string | null;
18251
20103
  created_at?: string;
20104
+ credit_limit?: number;
18252
20105
  custom_fields?: import("../integrations/supabase/types").Json;
18253
20106
  customer_class?: string | null;
18254
20107
  customer_number?: string | null;
18255
20108
  discount_days?: number | null;
18256
20109
  discount_percentage?: number | null;
20110
+ discount_surcharge?: string;
20111
+ e_invoicing?: boolean;
18257
20112
  email?: string | null;
18258
20113
  external_id?: string | null;
18259
20114
  fax?: string | null;
@@ -18264,19 +20119,23 @@ export declare const saveFloridayVbnRequired: import("@tanstack/start-client-cor
18264
20119
  house_number?: string | null;
18265
20120
  icp_country_code?: string | null;
18266
20121
  id?: string;
20122
+ invoice_send_as?: string;
18267
20123
  is_active?: boolean;
18268
20124
  language?: string | null;
18269
20125
  last_synced_at?: string | null;
20126
+ ledger_account?: string | null;
18270
20127
  logo_url?: string | null;
18271
20128
  markets?: string[];
18272
20129
  notes?: string | null;
18273
20130
  organization_type?: string | null;
18274
20131
  payment_methods?: string[];
20132
+ payment_spec_method?: string;
18275
20133
  payment_term_days?: number | null;
18276
20134
  phone?: string | null;
18277
20135
  postal_code?: string | null;
18278
20136
  product_groups?: string[];
18279
20137
  segments?: string[];
20138
+ send_reminder?: string;
18280
20139
  source?: string;
18281
20140
  street?: string | null;
18282
20141
  sync_error?: string | null;
@@ -18995,6 +20854,7 @@ export declare const saveFloridayVbnRequired: import("@tanstack/start-client-cor
18995
20854
  status: string;
18996
20855
  token_expires_at: string | null;
18997
20856
  updated_at: string;
20857
+ watch_scope: string;
18998
20858
  webhook_last_attempt_at: string | null;
18999
20859
  webhook_last_error: string | null;
19000
20860
  webhook_status: string;
@@ -19037,6 +20897,7 @@ export declare const saveFloridayVbnRequired: import("@tanstack/start-client-cor
19037
20897
  status?: string;
19038
20898
  token_expires_at?: string | null;
19039
20899
  updated_at?: string;
20900
+ watch_scope?: string;
19040
20901
  webhook_last_attempt_at?: string | null;
19041
20902
  webhook_last_error?: string | null;
19042
20903
  webhook_status?: string;
@@ -19079,6 +20940,7 @@ export declare const saveFloridayVbnRequired: import("@tanstack/start-client-cor
19079
20940
  status?: string;
19080
20941
  token_expires_at?: string | null;
19081
20942
  updated_at?: string;
20943
+ watch_scope?: string;
19082
20944
  webhook_last_attempt_at?: string | null;
19083
20945
  webhook_last_error?: string | null;
19084
20946
  webhook_status?: string;
@@ -19277,6 +21139,72 @@ export declare const saveFloridayVbnRequired: import("@tanstack/start-client-cor
19277
21139
  referencedColumns: ["id"];
19278
21140
  }];
19279
21141
  };
21142
+ email_auth_watch_folders: {
21143
+ Row: {
21144
+ connection_id: string;
21145
+ created_at: string;
21146
+ folder_id: string;
21147
+ folder_name: string | null;
21148
+ gmail_history_id: string | null;
21149
+ graph_subscription_expires_at: string | null;
21150
+ graph_subscription_id: string | null;
21151
+ id: string;
21152
+ imap_last_uid: number | null;
21153
+ imap_uid_validity: number | null;
21154
+ mailbox: string;
21155
+ provider: string;
21156
+ updated_at: string;
21157
+ webhook_last_error: string | null;
21158
+ webhook_status: string | null;
21159
+ };
21160
+ Insert: {
21161
+ connection_id: string;
21162
+ created_at?: string;
21163
+ folder_id: string;
21164
+ folder_name?: string | null;
21165
+ gmail_history_id?: string | null;
21166
+ graph_subscription_expires_at?: string | null;
21167
+ graph_subscription_id?: string | null;
21168
+ id?: string;
21169
+ imap_last_uid?: number | null;
21170
+ imap_uid_validity?: number | null;
21171
+ mailbox?: string;
21172
+ provider: string;
21173
+ updated_at?: string;
21174
+ webhook_last_error?: string | null;
21175
+ webhook_status?: string | null;
21176
+ };
21177
+ Update: {
21178
+ connection_id?: string;
21179
+ created_at?: string;
21180
+ folder_id?: string;
21181
+ folder_name?: string | null;
21182
+ gmail_history_id?: string | null;
21183
+ graph_subscription_expires_at?: string | null;
21184
+ graph_subscription_id?: string | null;
21185
+ id?: string;
21186
+ imap_last_uid?: number | null;
21187
+ imap_uid_validity?: number | null;
21188
+ mailbox?: string;
21189
+ provider?: string;
21190
+ updated_at?: string;
21191
+ webhook_last_error?: string | null;
21192
+ webhook_status?: string | null;
21193
+ };
21194
+ Relationships: [{
21195
+ foreignKeyName: "email_auth_watch_folders_connection_id_fkey";
21196
+ columns: ["connection_id"];
21197
+ isOneToOne: false;
21198
+ referencedRelation: "email_auth_connections";
21199
+ referencedColumns: ["id"];
21200
+ }, {
21201
+ foreignKeyName: "email_auth_watch_folders_connection_id_fkey";
21202
+ columns: ["connection_id"];
21203
+ isOneToOne: false;
21204
+ referencedRelation: "email_auth_connections_safe";
21205
+ referencedColumns: ["id"];
21206
+ }];
21207
+ };
19280
21208
  email_auth_webhook_log: {
19281
21209
  Row: {
19282
21210
  body_sample: string | null;
@@ -22370,6 +24298,108 @@ export declare const saveFloridayVbnRequired: import("@tanstack/start-client-cor
22370
24298
  };
22371
24299
  Relationships: [];
22372
24300
  };
24301
+ fust_stock_mutations: {
24302
+ Row: {
24303
+ created_at: string;
24304
+ delta: number;
24305
+ fust_type_id: string;
24306
+ id: string;
24307
+ note: string | null;
24308
+ reason: string;
24309
+ trade_item_key: string | null;
24310
+ user_id: string;
24311
+ };
24312
+ Insert: {
24313
+ created_at?: string;
24314
+ delta: number;
24315
+ fust_type_id: string;
24316
+ id?: string;
24317
+ note?: string | null;
24318
+ reason?: string;
24319
+ trade_item_key?: string | null;
24320
+ user_id: string;
24321
+ };
24322
+ Update: {
24323
+ created_at?: string;
24324
+ delta?: number;
24325
+ fust_type_id?: string;
24326
+ id?: string;
24327
+ note?: string | null;
24328
+ reason?: string;
24329
+ trade_item_key?: string | null;
24330
+ user_id?: string;
24331
+ };
24332
+ Relationships: [{
24333
+ foreignKeyName: "fust_stock_mutations_fust_type_id_fkey";
24334
+ columns: ["fust_type_id"];
24335
+ isOneToOne: false;
24336
+ referencedRelation: "fust_types";
24337
+ referencedColumns: ["id"];
24338
+ }];
24339
+ };
24340
+ fust_types: {
24341
+ Row: {
24342
+ connection_id: string | null;
24343
+ created_at: string;
24344
+ custom_package_id: string | null;
24345
+ fust_key: string;
24346
+ height_mm: number | null;
24347
+ id: string;
24348
+ in_use: boolean;
24349
+ length_mm: number | null;
24350
+ minimum_stock: number;
24351
+ name: string;
24352
+ notes: string | null;
24353
+ source: string;
24354
+ stock: number;
24355
+ updated_at: string;
24356
+ used_by_count: number;
24357
+ user_id: string;
24358
+ vbn_code: number | null;
24359
+ width_mm: number | null;
24360
+ };
24361
+ Insert: {
24362
+ connection_id?: string | null;
24363
+ created_at?: string;
24364
+ custom_package_id?: string | null;
24365
+ fust_key: string;
24366
+ height_mm?: number | null;
24367
+ id?: string;
24368
+ in_use?: boolean;
24369
+ length_mm?: number | null;
24370
+ minimum_stock?: number;
24371
+ name: string;
24372
+ notes?: string | null;
24373
+ source?: string;
24374
+ stock?: number;
24375
+ updated_at?: string;
24376
+ used_by_count?: number;
24377
+ user_id: string;
24378
+ vbn_code?: number | null;
24379
+ width_mm?: number | null;
24380
+ };
24381
+ Update: {
24382
+ connection_id?: string | null;
24383
+ created_at?: string;
24384
+ custom_package_id?: string | null;
24385
+ fust_key?: string;
24386
+ height_mm?: number | null;
24387
+ id?: string;
24388
+ in_use?: boolean;
24389
+ length_mm?: number | null;
24390
+ minimum_stock?: number;
24391
+ name?: string;
24392
+ notes?: string | null;
24393
+ source?: string;
24394
+ stock?: number;
24395
+ updated_at?: string;
24396
+ used_by_count?: number;
24397
+ user_id?: string;
24398
+ vbn_code?: number | null;
24399
+ width_mm?: number | null;
24400
+ };
24401
+ Relationships: [];
24402
+ };
22373
24403
  imap_accounts: {
22374
24404
  Row: {
22375
24405
  created_at: string;
@@ -23057,6 +25087,72 @@ export declare const saveFloridayVbnRequired: import("@tanstack/start-client-cor
23057
25087
  referencedColumns: ["id"];
23058
25088
  }];
23059
25089
  };
25090
+ load_carrier_types: {
25091
+ Row: {
25092
+ allow_mixing: boolean;
25093
+ capacity_model: string;
25094
+ code: string;
25095
+ created_at: string;
25096
+ id: string;
25097
+ is_active: boolean;
25098
+ is_default: boolean;
25099
+ layer_length_cm: number;
25100
+ layer_width_cm: number;
25101
+ layers_per_carrier: number;
25102
+ max_boxes: number | null;
25103
+ max_crates_per_layer: number | null;
25104
+ max_customers: number | null;
25105
+ max_height_cm: number | null;
25106
+ max_orders: number | null;
25107
+ max_weight_kg: number | null;
25108
+ name: string;
25109
+ sort_order: number;
25110
+ updated_at: string;
25111
+ };
25112
+ Insert: {
25113
+ allow_mixing?: boolean;
25114
+ capacity_model?: string;
25115
+ code: string;
25116
+ created_at?: string;
25117
+ id?: string;
25118
+ is_active?: boolean;
25119
+ is_default?: boolean;
25120
+ layer_length_cm?: number;
25121
+ layer_width_cm?: number;
25122
+ layers_per_carrier?: number;
25123
+ max_boxes?: number | null;
25124
+ max_crates_per_layer?: number | null;
25125
+ max_customers?: number | null;
25126
+ max_height_cm?: number | null;
25127
+ max_orders?: number | null;
25128
+ max_weight_kg?: number | null;
25129
+ name: string;
25130
+ sort_order?: number;
25131
+ updated_at?: string;
25132
+ };
25133
+ Update: {
25134
+ allow_mixing?: boolean;
25135
+ capacity_model?: string;
25136
+ code?: string;
25137
+ created_at?: string;
25138
+ id?: string;
25139
+ is_active?: boolean;
25140
+ is_default?: boolean;
25141
+ layer_length_cm?: number;
25142
+ layer_width_cm?: number;
25143
+ layers_per_carrier?: number;
25144
+ max_boxes?: number | null;
25145
+ max_crates_per_layer?: number | null;
25146
+ max_customers?: number | null;
25147
+ max_height_cm?: number | null;
25148
+ max_orders?: number | null;
25149
+ max_weight_kg?: number | null;
25150
+ name?: string;
25151
+ sort_order?: number;
25152
+ updated_at?: string;
25153
+ };
25154
+ Relationships: [];
25155
+ };
23060
25156
  local_customer_agreements: {
23061
25157
  Row: {
23062
25158
  base_price: number | null;
@@ -23387,6 +25483,63 @@ export declare const saveFloridayVbnRequired: import("@tanstack/start-client-cor
23387
25483
  referencedColumns: ["id"];
23388
25484
  }];
23389
25485
  };
25486
+ logistics_events: {
25487
+ Row: {
25488
+ created_at: string;
25489
+ error: string | null;
25490
+ event_type: string;
25491
+ id: string;
25492
+ idempotency_key: string | null;
25493
+ order_ref: string;
25494
+ payload: import("../integrations/supabase/types").Json;
25495
+ plan_run_id: string | null;
25496
+ priority: number;
25497
+ processed_at: string | null;
25498
+ shadow: boolean;
25499
+ source_module: string;
25500
+ status: string;
25501
+ strategy_id: string | null;
25502
+ updated_at: string;
25503
+ user_id: string;
25504
+ };
25505
+ Insert: {
25506
+ created_at?: string;
25507
+ error?: string | null;
25508
+ event_type?: string;
25509
+ id?: string;
25510
+ idempotency_key?: string | null;
25511
+ order_ref: string;
25512
+ payload?: import("../integrations/supabase/types").Json;
25513
+ plan_run_id?: string | null;
25514
+ priority?: number;
25515
+ processed_at?: string | null;
25516
+ shadow?: boolean;
25517
+ source_module: string;
25518
+ status?: string;
25519
+ strategy_id?: string | null;
25520
+ updated_at?: string;
25521
+ user_id?: string;
25522
+ };
25523
+ Update: {
25524
+ created_at?: string;
25525
+ error?: string | null;
25526
+ event_type?: string;
25527
+ id?: string;
25528
+ idempotency_key?: string | null;
25529
+ order_ref?: string;
25530
+ payload?: import("../integrations/supabase/types").Json;
25531
+ plan_run_id?: string | null;
25532
+ priority?: number;
25533
+ processed_at?: string | null;
25534
+ shadow?: boolean;
25535
+ source_module?: string;
25536
+ status?: string;
25537
+ strategy_id?: string | null;
25538
+ updated_at?: string;
25539
+ user_id?: string;
25540
+ };
25541
+ Relationships: [];
25542
+ };
23390
25543
  logistics_formulas: {
23391
25544
  Row: {
23392
25545
  created_at: string;
@@ -23429,27 +25582,297 @@ export declare const saveFloridayVbnRequired: import("@tanstack/start-client-cor
23429
25582
  referencedColumns: ["id"];
23430
25583
  }];
23431
25584
  };
23432
- logistics_strategies: {
25585
+ logistics_plan_runs: {
23433
25586
  Row: {
23434
- color: string;
23435
25587
  created_at: string;
23436
- description: string | null;
25588
+ error: string | null;
23437
25589
  id: string;
23438
- is_active: boolean;
23439
- name: string;
23440
- priority: number;
25590
+ input: import("../integrations/supabase/types").Json;
25591
+ order_ref: string;
25592
+ rule_config_id: string | null;
25593
+ rule_version: number | null;
25594
+ settings_hash: string | null;
25595
+ settings_snapshot: import("../integrations/supabase/types").Json;
25596
+ source_module: string | null;
25597
+ status: string;
25598
+ strategy_id: string | null;
25599
+ tasks_created: number;
25600
+ tasks_revised: number;
25601
+ trigger: string;
23441
25602
  updated_at: string;
23442
- updated_by: string | null;
23443
25603
  user_id: string;
23444
- version: number;
25604
+ warnings: import("../integrations/supabase/types").Json;
23445
25605
  };
23446
25606
  Insert: {
23447
- color?: string;
23448
25607
  created_at?: string;
23449
- description?: string | null;
25608
+ error?: string | null;
23450
25609
  id?: string;
23451
- is_active?: boolean;
23452
- name: string;
25610
+ input?: import("../integrations/supabase/types").Json;
25611
+ order_ref: string;
25612
+ rule_config_id?: string | null;
25613
+ rule_version?: number | null;
25614
+ settings_hash?: string | null;
25615
+ settings_snapshot?: import("../integrations/supabase/types").Json;
25616
+ source_module?: string | null;
25617
+ status?: string;
25618
+ strategy_id?: string | null;
25619
+ tasks_created?: number;
25620
+ tasks_revised?: number;
25621
+ trigger?: string;
25622
+ updated_at?: string;
25623
+ user_id?: string;
25624
+ warnings?: import("../integrations/supabase/types").Json;
25625
+ };
25626
+ Update: {
25627
+ created_at?: string;
25628
+ error?: string | null;
25629
+ id?: string;
25630
+ input?: import("../integrations/supabase/types").Json;
25631
+ order_ref?: string;
25632
+ rule_config_id?: string | null;
25633
+ rule_version?: number | null;
25634
+ settings_hash?: string | null;
25635
+ settings_snapshot?: import("../integrations/supabase/types").Json;
25636
+ source_module?: string | null;
25637
+ status?: string;
25638
+ strategy_id?: string | null;
25639
+ tasks_created?: number;
25640
+ tasks_revised?: number;
25641
+ trigger?: string;
25642
+ updated_at?: string;
25643
+ user_id?: string;
25644
+ warnings?: import("../integrations/supabase/types").Json;
25645
+ };
25646
+ Relationships: [{
25647
+ foreignKeyName: "logistics_plan_runs_rule_config_id_fkey";
25648
+ columns: ["rule_config_id"];
25649
+ isOneToOne: false;
25650
+ referencedRelation: "logistics_rule_configs";
25651
+ referencedColumns: ["id"];
25652
+ }, {
25653
+ foreignKeyName: "logistics_plan_runs_strategy_id_fkey";
25654
+ columns: ["strategy_id"];
25655
+ isOneToOne: false;
25656
+ referencedRelation: "logistics_strategies";
25657
+ referencedColumns: ["id"];
25658
+ }];
25659
+ };
25660
+ logistics_rebuffer_state: {
25661
+ Row: {
25662
+ created_at: string;
25663
+ id: boolean;
25664
+ last_checked: number;
25665
+ last_duration_ms: number;
25666
+ last_run_at: string | null;
25667
+ last_updated: number;
25668
+ pending: boolean;
25669
+ requested_at: string | null;
25670
+ updated_at: string;
25671
+ };
25672
+ Insert: {
25673
+ created_at?: string;
25674
+ id?: boolean;
25675
+ last_checked?: number;
25676
+ last_duration_ms?: number;
25677
+ last_run_at?: string | null;
25678
+ last_updated?: number;
25679
+ pending?: boolean;
25680
+ requested_at?: string | null;
25681
+ updated_at?: string;
25682
+ };
25683
+ Update: {
25684
+ created_at?: string;
25685
+ id?: boolean;
25686
+ last_checked?: number;
25687
+ last_duration_ms?: number;
25688
+ last_run_at?: string | null;
25689
+ last_updated?: number;
25690
+ pending?: boolean;
25691
+ requested_at?: string | null;
25692
+ updated_at?: string;
25693
+ };
25694
+ Relationships: [];
25695
+ };
25696
+ logistics_rule_configs: {
25697
+ Row: {
25698
+ created_at: string;
25699
+ current_version: number;
25700
+ description: string | null;
25701
+ id: string;
25702
+ is_active: boolean;
25703
+ name: string;
25704
+ settings: import("../integrations/supabase/types").Json;
25705
+ status: string;
25706
+ strategy_id: string | null;
25707
+ updated_at: string;
25708
+ user_id: string;
25709
+ };
25710
+ Insert: {
25711
+ created_at?: string;
25712
+ current_version?: number;
25713
+ description?: string | null;
25714
+ id?: string;
25715
+ is_active?: boolean;
25716
+ name: string;
25717
+ settings?: import("../integrations/supabase/types").Json;
25718
+ status?: string;
25719
+ strategy_id?: string | null;
25720
+ updated_at?: string;
25721
+ user_id?: string;
25722
+ };
25723
+ Update: {
25724
+ created_at?: string;
25725
+ current_version?: number;
25726
+ description?: string | null;
25727
+ id?: string;
25728
+ is_active?: boolean;
25729
+ name?: string;
25730
+ settings?: import("../integrations/supabase/types").Json;
25731
+ status?: string;
25732
+ strategy_id?: string | null;
25733
+ updated_at?: string;
25734
+ user_id?: string;
25735
+ };
25736
+ Relationships: [{
25737
+ foreignKeyName: "logistics_rule_configs_strategy_id_fkey";
25738
+ columns: ["strategy_id"];
25739
+ isOneToOne: false;
25740
+ referencedRelation: "logistics_strategies";
25741
+ referencedColumns: ["id"];
25742
+ }];
25743
+ };
25744
+ logistics_rule_versions: {
25745
+ Row: {
25746
+ config_id: string;
25747
+ created_at: string;
25748
+ id: string;
25749
+ label: string | null;
25750
+ note: string | null;
25751
+ settings: import("../integrations/supabase/types").Json;
25752
+ status: string;
25753
+ user_id: string;
25754
+ version: number;
25755
+ };
25756
+ Insert: {
25757
+ config_id: string;
25758
+ created_at?: string;
25759
+ id?: string;
25760
+ label?: string | null;
25761
+ note?: string | null;
25762
+ settings?: import("../integrations/supabase/types").Json;
25763
+ status?: string;
25764
+ user_id?: string;
25765
+ version: number;
25766
+ };
25767
+ Update: {
25768
+ config_id?: string;
25769
+ created_at?: string;
25770
+ id?: string;
25771
+ label?: string | null;
25772
+ note?: string | null;
25773
+ settings?: import("../integrations/supabase/types").Json;
25774
+ status?: string;
25775
+ user_id?: string;
25776
+ version?: number;
25777
+ };
25778
+ Relationships: [{
25779
+ foreignKeyName: "logistics_rule_versions_config_id_fkey";
25780
+ columns: ["config_id"];
25781
+ isOneToOne: false;
25782
+ referencedRelation: "logistics_rule_configs";
25783
+ referencedColumns: ["id"];
25784
+ }];
25785
+ };
25786
+ logistics_stock_alerts: {
25787
+ Row: {
25788
+ created_at: string;
25789
+ customer_name: string | null;
25790
+ delivery_date: string | null;
25791
+ email_enabled: boolean;
25792
+ email_error: string | null;
25793
+ email_outbox_id: string | null;
25794
+ email_recipients: string[];
25795
+ email_sent_at: string | null;
25796
+ email_status: string;
25797
+ id: string;
25798
+ notification_id: string | null;
25799
+ order_id: string | null;
25800
+ order_ref: string;
25801
+ priority: number;
25802
+ resolved_at: string | null;
25803
+ resolved_by: string | null;
25804
+ shortages: import("../integrations/supabase/types").Json;
25805
+ status: string;
25806
+ updated_at: string;
25807
+ user_id: string;
25808
+ };
25809
+ Insert: {
25810
+ created_at?: string;
25811
+ customer_name?: string | null;
25812
+ delivery_date?: string | null;
25813
+ email_enabled?: boolean;
25814
+ email_error?: string | null;
25815
+ email_outbox_id?: string | null;
25816
+ email_recipients?: string[];
25817
+ email_sent_at?: string | null;
25818
+ email_status?: string;
25819
+ id?: string;
25820
+ notification_id?: string | null;
25821
+ order_id?: string | null;
25822
+ order_ref: string;
25823
+ priority?: number;
25824
+ resolved_at?: string | null;
25825
+ resolved_by?: string | null;
25826
+ shortages?: import("../integrations/supabase/types").Json;
25827
+ status?: string;
25828
+ updated_at?: string;
25829
+ user_id: string;
25830
+ };
25831
+ Update: {
25832
+ created_at?: string;
25833
+ customer_name?: string | null;
25834
+ delivery_date?: string | null;
25835
+ email_enabled?: boolean;
25836
+ email_error?: string | null;
25837
+ email_outbox_id?: string | null;
25838
+ email_recipients?: string[];
25839
+ email_sent_at?: string | null;
25840
+ email_status?: string;
25841
+ id?: string;
25842
+ notification_id?: string | null;
25843
+ order_id?: string | null;
25844
+ order_ref?: string;
25845
+ priority?: number;
25846
+ resolved_at?: string | null;
25847
+ resolved_by?: string | null;
25848
+ shortages?: import("../integrations/supabase/types").Json;
25849
+ status?: string;
25850
+ updated_at?: string;
25851
+ user_id?: string;
25852
+ };
25853
+ Relationships: [];
25854
+ };
25855
+ logistics_strategies: {
25856
+ Row: {
25857
+ color: string;
25858
+ created_at: string;
25859
+ description: string | null;
25860
+ id: string;
25861
+ is_active: boolean;
25862
+ name: string;
25863
+ priority: number;
25864
+ updated_at: string;
25865
+ updated_by: string | null;
25866
+ user_id: string;
25867
+ version: number;
25868
+ };
25869
+ Insert: {
25870
+ color?: string;
25871
+ created_at?: string;
25872
+ description?: string | null;
25873
+ id?: string;
25874
+ is_active?: boolean;
25875
+ name: string;
23453
25876
  priority?: number;
23454
25877
  updated_at?: string;
23455
25878
  updated_by?: string | null;
@@ -23519,6 +25942,114 @@ export declare const saveFloridayVbnRequired: import("@tanstack/start-client-cor
23519
25942
  referencedColumns: ["id"];
23520
25943
  }];
23521
25944
  };
25945
+ logistics_tasks: {
25946
+ Row: {
25947
+ buffer_ref: string | null;
25948
+ claimed_at: string | null;
25949
+ claimed_by: string | null;
25950
+ completed_at: string | null;
25951
+ created_at: string;
25952
+ depends_on: string[];
25953
+ due_at: string | null;
25954
+ error: string | null;
25955
+ id: string;
25956
+ order_ref: string;
25957
+ owner_module: string;
25958
+ payload: import("../integrations/supabase/types").Json;
25959
+ plan_run_id: string | null;
25960
+ planned_end: string | null;
25961
+ planned_start: string | null;
25962
+ priority: number;
25963
+ result: import("../integrations/supabase/types").Json | null;
25964
+ rule_config_id: string | null;
25965
+ rule_version: number | null;
25966
+ sequence: number;
25967
+ shadow: boolean;
25968
+ started_at: string | null;
25969
+ status: string;
25970
+ strategy_id: string | null;
25971
+ task_type: string;
25972
+ updated_at: string;
25973
+ user_id: string;
25974
+ };
25975
+ Insert: {
25976
+ buffer_ref?: string | null;
25977
+ claimed_at?: string | null;
25978
+ claimed_by?: string | null;
25979
+ completed_at?: string | null;
25980
+ created_at?: string;
25981
+ depends_on?: string[];
25982
+ due_at?: string | null;
25983
+ error?: string | null;
25984
+ id?: string;
25985
+ order_ref: string;
25986
+ owner_module: string;
25987
+ payload?: import("../integrations/supabase/types").Json;
25988
+ plan_run_id?: string | null;
25989
+ planned_end?: string | null;
25990
+ planned_start?: string | null;
25991
+ priority?: number;
25992
+ result?: import("../integrations/supabase/types").Json | null;
25993
+ rule_config_id?: string | null;
25994
+ rule_version?: number | null;
25995
+ sequence?: number;
25996
+ shadow?: boolean;
25997
+ started_at?: string | null;
25998
+ status?: string;
25999
+ strategy_id?: string | null;
26000
+ task_type: string;
26001
+ updated_at?: string;
26002
+ user_id?: string;
26003
+ };
26004
+ Update: {
26005
+ buffer_ref?: string | null;
26006
+ claimed_at?: string | null;
26007
+ claimed_by?: string | null;
26008
+ completed_at?: string | null;
26009
+ created_at?: string;
26010
+ depends_on?: string[];
26011
+ due_at?: string | null;
26012
+ error?: string | null;
26013
+ id?: string;
26014
+ order_ref?: string;
26015
+ owner_module?: string;
26016
+ payload?: import("../integrations/supabase/types").Json;
26017
+ plan_run_id?: string | null;
26018
+ planned_end?: string | null;
26019
+ planned_start?: string | null;
26020
+ priority?: number;
26021
+ result?: import("../integrations/supabase/types").Json | null;
26022
+ rule_config_id?: string | null;
26023
+ rule_version?: number | null;
26024
+ sequence?: number;
26025
+ shadow?: boolean;
26026
+ started_at?: string | null;
26027
+ status?: string;
26028
+ strategy_id?: string | null;
26029
+ task_type?: string;
26030
+ updated_at?: string;
26031
+ user_id?: string;
26032
+ };
26033
+ Relationships: [{
26034
+ foreignKeyName: "logistics_tasks_plan_run_id_fkey";
26035
+ columns: ["plan_run_id"];
26036
+ isOneToOne: false;
26037
+ referencedRelation: "logistics_plan_runs";
26038
+ referencedColumns: ["id"];
26039
+ }, {
26040
+ foreignKeyName: "logistics_tasks_rule_config_id_fkey";
26041
+ columns: ["rule_config_id"];
26042
+ isOneToOne: false;
26043
+ referencedRelation: "logistics_rule_configs";
26044
+ referencedColumns: ["id"];
26045
+ }, {
26046
+ foreignKeyName: "logistics_tasks_strategy_id_fkey";
26047
+ columns: ["strategy_id"];
26048
+ isOneToOne: false;
26049
+ referencedRelation: "logistics_strategies";
26050
+ referencedColumns: ["id"];
26051
+ }];
26052
+ };
23522
26053
  logistics_variables: {
23523
26054
  Row: {
23524
26055
  created_at: string;
@@ -24113,6 +26644,24 @@ export declare const saveFloridayVbnRequired: import("@tanstack/start-client-cor
24113
26644
  };
24114
26645
  Relationships: [];
24115
26646
  };
26647
+ module_runtime_config: {
26648
+ Row: {
26649
+ key: string;
26650
+ updated_at: string;
26651
+ value: string;
26652
+ };
26653
+ Insert: {
26654
+ key: string;
26655
+ updated_at?: string;
26656
+ value: string;
26657
+ };
26658
+ Update: {
26659
+ key?: string;
26660
+ updated_at?: string;
26661
+ value?: string;
26662
+ };
26663
+ Relationships: [];
26664
+ };
24116
26665
  modules: {
24117
26666
  Row: {
24118
26667
  created_at: string;
@@ -24913,6 +27462,7 @@ export declare const saveFloridayVbnRequired: import("@tanstack/start-client-cor
24913
27462
  };
24914
27463
  order_cart_items: {
24915
27464
  Row: {
27465
+ boxes: number | null;
24916
27466
  cart_id: string;
24917
27467
  crates: number;
24918
27468
  crates_per_layer: number;
@@ -24925,8 +27475,10 @@ export declare const saveFloridayVbnRequired: import("@tanstack/start-client-cor
24925
27475
  plants_per_crate: number;
24926
27476
  product_id: string | null;
24927
27477
  product_name: string;
27478
+ weight_kg: number | null;
24928
27479
  };
24929
27480
  Insert: {
27481
+ boxes?: number | null;
24930
27482
  cart_id: string;
24931
27483
  crates: number;
24932
27484
  crates_per_layer?: number;
@@ -24939,8 +27491,10 @@ export declare const saveFloridayVbnRequired: import("@tanstack/start-client-cor
24939
27491
  plants_per_crate?: number;
24940
27492
  product_id?: string | null;
24941
27493
  product_name: string;
27494
+ weight_kg?: number | null;
24942
27495
  };
24943
27496
  Update: {
27497
+ boxes?: number | null;
24944
27498
  cart_id?: string;
24945
27499
  crates?: number;
24946
27500
  crates_per_layer?: number;
@@ -24953,6 +27507,7 @@ export declare const saveFloridayVbnRequired: import("@tanstack/start-client-cor
24953
27507
  plants_per_crate?: number;
24954
27508
  product_id?: string | null;
24955
27509
  product_name?: string;
27510
+ weight_kg?: number | null;
24956
27511
  };
24957
27512
  Relationships: [{
24958
27513
  foreignKeyName: "order_cart_items_cart_id_fkey";
@@ -24978,47 +27533,59 @@ export declare const saveFloridayVbnRequired: import("@tanstack/start-client-cor
24978
27533
  Row: {
24979
27534
  algorithm_version: number;
24980
27535
  buffer_id: string | null;
27536
+ carrier_type: string;
27537
+ carrier_type_id: string | null;
24981
27538
  cart_number: number;
24982
27539
  created_at: string;
24983
27540
  id: string;
24984
27541
  is_auto: boolean;
24985
27542
  is_complete: boolean;
27543
+ max_layers: number | null;
24986
27544
  notes: string | null;
24987
27545
  occupancy_pct: number;
24988
27546
  order_id: string | null;
24989
27547
  source: string;
24990
27548
  total_layers_used: number;
24991
27549
  updated_at: string;
27550
+ weight_kg: number | null;
24992
27551
  };
24993
27552
  Insert: {
24994
27553
  algorithm_version?: number;
24995
27554
  buffer_id?: string | null;
27555
+ carrier_type?: string;
27556
+ carrier_type_id?: string | null;
24996
27557
  cart_number: number;
24997
27558
  created_at?: string;
24998
27559
  id?: string;
24999
27560
  is_auto?: boolean;
25000
27561
  is_complete?: boolean;
27562
+ max_layers?: number | null;
25001
27563
  notes?: string | null;
25002
27564
  occupancy_pct?: number;
25003
27565
  order_id?: string | null;
25004
27566
  source?: string;
25005
27567
  total_layers_used?: number;
25006
27568
  updated_at?: string;
27569
+ weight_kg?: number | null;
25007
27570
  };
25008
27571
  Update: {
25009
27572
  algorithm_version?: number;
25010
27573
  buffer_id?: string | null;
27574
+ carrier_type?: string;
27575
+ carrier_type_id?: string | null;
25011
27576
  cart_number?: number;
25012
27577
  created_at?: string;
25013
27578
  id?: string;
25014
27579
  is_auto?: boolean;
25015
27580
  is_complete?: boolean;
27581
+ max_layers?: number | null;
25016
27582
  notes?: string | null;
25017
27583
  occupancy_pct?: number;
25018
27584
  order_id?: string | null;
25019
27585
  source?: string;
25020
27586
  total_layers_used?: number;
25021
27587
  updated_at?: string;
27588
+ weight_kg?: number | null;
25022
27589
  };
25023
27590
  Relationships: [{
25024
27591
  foreignKeyName: "order_carts_buffer_id_fkey";
@@ -25026,6 +27593,12 @@ export declare const saveFloridayVbnRequired: import("@tanstack/start-client-cor
25026
27593
  isOneToOne: false;
25027
27594
  referencedRelation: "order_buffers";
25028
27595
  referencedColumns: ["id"];
27596
+ }, {
27597
+ foreignKeyName: "order_carts_carrier_type_id_fkey";
27598
+ columns: ["carrier_type_id"];
27599
+ isOneToOne: false;
27600
+ referencedRelation: "load_carrier_types";
27601
+ referencedColumns: ["id"];
25029
27602
  }, {
25030
27603
  foreignKeyName: "order_carts_order_id_fkey";
25031
27604
  columns: ["order_id"];
@@ -26165,6 +28738,7 @@ export declare const saveFloridayVbnRequired: import("@tanstack/start-client-cor
26165
28738
  lock_timeout_seconds: number;
26166
28739
  name: string;
26167
28740
  require_country_selection: boolean;
28741
+ slug: string | null;
26168
28742
  sort_order: number;
26169
28743
  sort_rules: import("../integrations/supabase/types").Json;
26170
28744
  task_id: string | null;
@@ -26185,6 +28759,7 @@ export declare const saveFloridayVbnRequired: import("@tanstack/start-client-cor
26185
28759
  lock_timeout_seconds?: number;
26186
28760
  name: string;
26187
28761
  require_country_selection?: boolean;
28762
+ slug?: string | null;
26188
28763
  sort_order?: number;
26189
28764
  sort_rules?: import("../integrations/supabase/types").Json;
26190
28765
  task_id?: string | null;
@@ -26205,6 +28780,7 @@ export declare const saveFloridayVbnRequired: import("@tanstack/start-client-cor
26205
28780
  lock_timeout_seconds?: number;
26206
28781
  name?: string;
26207
28782
  require_country_selection?: boolean;
28783
+ slug?: string | null;
26208
28784
  sort_order?: number;
26209
28785
  sort_rules?: import("../integrations/supabase/types").Json;
26210
28786
  task_id?: string | null;
@@ -26738,6 +29314,54 @@ export declare const saveFloridayVbnRequired: import("@tanstack/start-client-cor
26738
29314
  };
26739
29315
  Relationships: [];
26740
29316
  };
29317
+ product_bom_external_items: {
29318
+ Row: {
29319
+ created_at: string;
29320
+ id: string;
29321
+ name: string;
29322
+ packing_configuration_id: string | null;
29323
+ parent_product_id: string | null;
29324
+ parent_trade_item_floriday_id: string | null;
29325
+ quantity: number;
29326
+ sort_order: number;
29327
+ tenant_id: string;
29328
+ unit: string;
29329
+ updated_at: string;
29330
+ };
29331
+ Insert: {
29332
+ created_at?: string;
29333
+ id?: string;
29334
+ name: string;
29335
+ packing_configuration_id?: string | null;
29336
+ parent_product_id?: string | null;
29337
+ parent_trade_item_floriday_id?: string | null;
29338
+ quantity?: number;
29339
+ sort_order?: number;
29340
+ tenant_id: string;
29341
+ unit?: string;
29342
+ updated_at?: string;
29343
+ };
29344
+ Update: {
29345
+ created_at?: string;
29346
+ id?: string;
29347
+ name?: string;
29348
+ packing_configuration_id?: string | null;
29349
+ parent_product_id?: string | null;
29350
+ parent_trade_item_floriday_id?: string | null;
29351
+ quantity?: number;
29352
+ sort_order?: number;
29353
+ tenant_id?: string;
29354
+ unit?: string;
29355
+ updated_at?: string;
29356
+ };
29357
+ Relationships: [{
29358
+ foreignKeyName: "product_bom_external_items_parent_product_id_fkey";
29359
+ columns: ["parent_product_id"];
29360
+ isOneToOne: false;
29361
+ referencedRelation: "products";
29362
+ referencedColumns: ["id"];
29363
+ }];
29364
+ };
26741
29365
  product_bom_items: {
26742
29366
  Row: {
26743
29367
  component_product_id: string | null;
@@ -27974,6 +30598,270 @@ export declare const saveFloridayVbnRequired: import("@tanstack/start-client-cor
27974
30598
  };
27975
30599
  Relationships: [];
27976
30600
  };
30601
+ scan_kar_items: {
30602
+ Row: {
30603
+ barcode: string;
30604
+ id: string;
30605
+ kar_id: string;
30606
+ pakbon_id: string;
30607
+ pakbon_item_id: string;
30608
+ product_id: string | null;
30609
+ product_name: string;
30610
+ quantity: number;
30611
+ scanned_at: string;
30612
+ scanned_by: string | null;
30613
+ };
30614
+ Insert: {
30615
+ barcode: string;
30616
+ id?: string;
30617
+ kar_id: string;
30618
+ pakbon_id: string;
30619
+ pakbon_item_id: string;
30620
+ product_id?: string | null;
30621
+ product_name: string;
30622
+ quantity?: number;
30623
+ scanned_at?: string;
30624
+ scanned_by?: string | null;
30625
+ };
30626
+ Update: {
30627
+ barcode?: string;
30628
+ id?: string;
30629
+ kar_id?: string;
30630
+ pakbon_id?: string;
30631
+ pakbon_item_id?: string;
30632
+ product_id?: string | null;
30633
+ product_name?: string;
30634
+ quantity?: number;
30635
+ scanned_at?: string;
30636
+ scanned_by?: string | null;
30637
+ };
30638
+ Relationships: [{
30639
+ foreignKeyName: "scan_kar_items_kar_id_fkey";
30640
+ columns: ["kar_id"];
30641
+ isOneToOne: false;
30642
+ referencedRelation: "scan_karren";
30643
+ referencedColumns: ["id"];
30644
+ }, {
30645
+ foreignKeyName: "scan_kar_items_pakbon_id_fkey";
30646
+ columns: ["pakbon_id"];
30647
+ isOneToOne: false;
30648
+ referencedRelation: "scan_pakbonnen";
30649
+ referencedColumns: ["id"];
30650
+ }, {
30651
+ foreignKeyName: "scan_kar_items_pakbon_item_id_fkey";
30652
+ columns: ["pakbon_item_id"];
30653
+ isOneToOne: false;
30654
+ referencedRelation: "scan_pakbon_items";
30655
+ referencedColumns: ["id"];
30656
+ }];
30657
+ };
30658
+ scan_kar_pakbonnen: {
30659
+ Row: {
30660
+ created_at: string;
30661
+ id: string;
30662
+ kar_id: string;
30663
+ pakbon_id: string;
30664
+ };
30665
+ Insert: {
30666
+ created_at?: string;
30667
+ id?: string;
30668
+ kar_id: string;
30669
+ pakbon_id: string;
30670
+ };
30671
+ Update: {
30672
+ created_at?: string;
30673
+ id?: string;
30674
+ kar_id?: string;
30675
+ pakbon_id?: string;
30676
+ };
30677
+ Relationships: [{
30678
+ foreignKeyName: "scan_kar_pakbonnen_kar_id_fkey";
30679
+ columns: ["kar_id"];
30680
+ isOneToOne: false;
30681
+ referencedRelation: "scan_karren";
30682
+ referencedColumns: ["id"];
30683
+ }, {
30684
+ foreignKeyName: "scan_kar_pakbonnen_pakbon_id_fkey";
30685
+ columns: ["pakbon_id"];
30686
+ isOneToOne: false;
30687
+ referencedRelation: "scan_pakbonnen";
30688
+ referencedColumns: ["id"];
30689
+ }];
30690
+ };
30691
+ scan_karren: {
30692
+ Row: {
30693
+ afgerond_op: string | null;
30694
+ buffer_key: string | null;
30695
+ created_at: string;
30696
+ customer_names: string[];
30697
+ geprint: boolean;
30698
+ geprint_op: string | null;
30699
+ id: string;
30700
+ kar_nummer: string;
30701
+ medewerker_id: string | null;
30702
+ medewerker_naam: string | null;
30703
+ naar_pickstation: boolean;
30704
+ naar_pickstation_op: string | null;
30705
+ order_number: string | null;
30706
+ scanner_key: string;
30707
+ status: string;
30708
+ totaal_producten: number;
30709
+ updated_at: string;
30710
+ };
30711
+ Insert: {
30712
+ afgerond_op?: string | null;
30713
+ buffer_key?: string | null;
30714
+ created_at?: string;
30715
+ customer_names?: string[];
30716
+ geprint?: boolean;
30717
+ geprint_op?: string | null;
30718
+ id?: string;
30719
+ kar_nummer?: string;
30720
+ medewerker_id?: string | null;
30721
+ medewerker_naam?: string | null;
30722
+ naar_pickstation?: boolean;
30723
+ naar_pickstation_op?: string | null;
30724
+ order_number?: string | null;
30725
+ scanner_key?: string;
30726
+ status?: string;
30727
+ totaal_producten?: number;
30728
+ updated_at?: string;
30729
+ };
30730
+ Update: {
30731
+ afgerond_op?: string | null;
30732
+ buffer_key?: string | null;
30733
+ created_at?: string;
30734
+ customer_names?: string[];
30735
+ geprint?: boolean;
30736
+ geprint_op?: string | null;
30737
+ id?: string;
30738
+ kar_nummer?: string;
30739
+ medewerker_id?: string | null;
30740
+ medewerker_naam?: string | null;
30741
+ naar_pickstation?: boolean;
30742
+ naar_pickstation_op?: string | null;
30743
+ order_number?: string | null;
30744
+ scanner_key?: string;
30745
+ status?: string;
30746
+ totaal_producten?: number;
30747
+ updated_at?: string;
30748
+ };
30749
+ Relationships: [];
30750
+ };
30751
+ scan_logs: {
30752
+ Row: {
30753
+ code: string;
30754
+ created_at: string;
30755
+ id: string;
30756
+ kar_id: string | null;
30757
+ message: string | null;
30758
+ result: string;
30759
+ scanner_key: string;
30760
+ user_id: string | null;
30761
+ };
30762
+ Insert: {
30763
+ code: string;
30764
+ created_at?: string;
30765
+ id?: string;
30766
+ kar_id?: string | null;
30767
+ message?: string | null;
30768
+ result: string;
30769
+ scanner_key?: string;
30770
+ user_id?: string | null;
30771
+ };
30772
+ Update: {
30773
+ code?: string;
30774
+ created_at?: string;
30775
+ id?: string;
30776
+ kar_id?: string | null;
30777
+ message?: string | null;
30778
+ result?: string;
30779
+ scanner_key?: string;
30780
+ user_id?: string | null;
30781
+ };
30782
+ Relationships: [];
30783
+ };
30784
+ scan_pakbon_items: {
30785
+ Row: {
30786
+ barcode: string;
30787
+ created_at: string;
30788
+ id: string;
30789
+ pakbon_id: string;
30790
+ product_id: string | null;
30791
+ product_name: string;
30792
+ quantity: number;
30793
+ scanned_quantity: number;
30794
+ };
30795
+ Insert: {
30796
+ barcode: string;
30797
+ created_at?: string;
30798
+ id?: string;
30799
+ pakbon_id: string;
30800
+ product_id?: string | null;
30801
+ product_name: string;
30802
+ quantity?: number;
30803
+ scanned_quantity?: number;
30804
+ };
30805
+ Update: {
30806
+ barcode?: string;
30807
+ created_at?: string;
30808
+ id?: string;
30809
+ pakbon_id?: string;
30810
+ product_id?: string | null;
30811
+ product_name?: string;
30812
+ quantity?: number;
30813
+ scanned_quantity?: number;
30814
+ };
30815
+ Relationships: [{
30816
+ foreignKeyName: "scan_pakbon_items_pakbon_id_fkey";
30817
+ columns: ["pakbon_id"];
30818
+ isOneToOne: false;
30819
+ referencedRelation: "scan_pakbonnen";
30820
+ referencedColumns: ["id"];
30821
+ }];
30822
+ };
30823
+ scan_pakbonnen: {
30824
+ Row: {
30825
+ barcode: string;
30826
+ buffer_key: string | null;
30827
+ created_at: string;
30828
+ customer_name: string;
30829
+ id: string;
30830
+ order_id: string | null;
30831
+ order_number: string;
30832
+ pakbon_nummer: string;
30833
+ printed_at: string;
30834
+ status: string;
30835
+ updated_at: string;
30836
+ };
30837
+ Insert: {
30838
+ barcode: string;
30839
+ buffer_key?: string | null;
30840
+ created_at?: string;
30841
+ customer_name: string;
30842
+ id?: string;
30843
+ order_id?: string | null;
30844
+ order_number: string;
30845
+ pakbon_nummer: string;
30846
+ printed_at?: string;
30847
+ status?: string;
30848
+ updated_at?: string;
30849
+ };
30850
+ Update: {
30851
+ barcode?: string;
30852
+ buffer_key?: string | null;
30853
+ created_at?: string;
30854
+ customer_name?: string;
30855
+ id?: string;
30856
+ order_id?: string | null;
30857
+ order_number?: string;
30858
+ pakbon_nummer?: string;
30859
+ printed_at?: string;
30860
+ status?: string;
30861
+ updated_at?: string;
30862
+ };
30863
+ Relationships: [];
30864
+ };
27977
30865
  sidebar_config: {
27978
30866
  Row: {
27979
30867
  id: string;
@@ -28652,6 +31540,24 @@ export declare const saveFloridayVbnRequired: import("@tanstack/start-client-cor
28652
31540
  };
28653
31541
  Relationships: [];
28654
31542
  };
31543
+ twinfield_cron_auth: {
31544
+ Row: {
31545
+ created_at: string;
31546
+ id: number;
31547
+ secret: string;
31548
+ };
31549
+ Insert: {
31550
+ created_at?: string;
31551
+ id?: number;
31552
+ secret?: string;
31553
+ };
31554
+ Update: {
31555
+ created_at?: string;
31556
+ id?: number;
31557
+ secret?: string;
31558
+ };
31559
+ Relationships: [];
31560
+ };
28655
31561
  twinfield_customers: {
28656
31562
  Row: {
28657
31563
  address: string | null;
@@ -28913,6 +31819,7 @@ export declare const saveFloridayVbnRequired: import("@tanstack/start-client-cor
28913
31819
  default_invoice_type: string;
28914
31820
  default_payment_term_days: number;
28915
31821
  default_vat_code: string;
31822
+ home_country_code: string;
28916
31823
  invoice_enabled_ao: boolean;
28917
31824
  invoice_enabled_fo: boolean;
28918
31825
  invoice_enabled_ho: boolean;
@@ -28921,6 +31828,8 @@ export declare const saveFloridayVbnRequired: import("@tanstack/start-client-cor
28921
31828
  payment_journal_code: string;
28922
31829
  updated_at: string;
28923
31830
  user_id: string;
31831
+ vat_code_eu_reverse: string | null;
31832
+ vat_code_export: string | null;
28924
31833
  };
28925
31834
  Insert: {
28926
31835
  created_at?: string;
@@ -28930,6 +31839,7 @@ export declare const saveFloridayVbnRequired: import("@tanstack/start-client-cor
28930
31839
  default_invoice_type?: string;
28931
31840
  default_payment_term_days?: number;
28932
31841
  default_vat_code?: string;
31842
+ home_country_code?: string;
28933
31843
  invoice_enabled_ao?: boolean;
28934
31844
  invoice_enabled_fo?: boolean;
28935
31845
  invoice_enabled_ho?: boolean;
@@ -28938,6 +31848,8 @@ export declare const saveFloridayVbnRequired: import("@tanstack/start-client-cor
28938
31848
  payment_journal_code?: string;
28939
31849
  updated_at?: string;
28940
31850
  user_id: string;
31851
+ vat_code_eu_reverse?: string | null;
31852
+ vat_code_export?: string | null;
28941
31853
  };
28942
31854
  Update: {
28943
31855
  created_at?: string;
@@ -28947,6 +31859,7 @@ export declare const saveFloridayVbnRequired: import("@tanstack/start-client-cor
28947
31859
  default_invoice_type?: string;
28948
31860
  default_payment_term_days?: number;
28949
31861
  default_vat_code?: string;
31862
+ home_country_code?: string;
28950
31863
  invoice_enabled_ao?: boolean;
28951
31864
  invoice_enabled_fo?: boolean;
28952
31865
  invoice_enabled_ho?: boolean;
@@ -28955,6 +31868,8 @@ export declare const saveFloridayVbnRequired: import("@tanstack/start-client-cor
28955
31868
  payment_journal_code?: string;
28956
31869
  updated_at?: string;
28957
31870
  user_id?: string;
31871
+ vat_code_eu_reverse?: string | null;
31872
+ vat_code_export?: string | null;
28958
31873
  };
28959
31874
  Relationships: [];
28960
31875
  };
@@ -29156,11 +32071,89 @@ export declare const saveFloridayVbnRequired: import("@tanstack/start-client-cor
29156
32071
  referencedColumns: ["id"];
29157
32072
  }];
29158
32073
  };
32074
+ twinfield_ledger_accounts_cache: {
32075
+ Row: {
32076
+ code: string;
32077
+ connection_id: string | null;
32078
+ created_at: string;
32079
+ dim_type: string;
32080
+ fetched_at: string;
32081
+ id: string;
32082
+ is_active: boolean;
32083
+ name: string | null;
32084
+ office_code: string;
32085
+ updated_at: string;
32086
+ };
32087
+ Insert: {
32088
+ code: string;
32089
+ connection_id?: string | null;
32090
+ created_at?: string;
32091
+ dim_type?: string;
32092
+ fetched_at?: string;
32093
+ id?: string;
32094
+ is_active?: boolean;
32095
+ name?: string | null;
32096
+ office_code: string;
32097
+ updated_at?: string;
32098
+ };
32099
+ Update: {
32100
+ code?: string;
32101
+ connection_id?: string | null;
32102
+ created_at?: string;
32103
+ dim_type?: string;
32104
+ fetched_at?: string;
32105
+ id?: string;
32106
+ is_active?: boolean;
32107
+ name?: string | null;
32108
+ office_code?: string;
32109
+ updated_at?: string;
32110
+ };
32111
+ Relationships: [];
32112
+ };
32113
+ twinfield_push_log: {
32114
+ Row: {
32115
+ created_at: string;
32116
+ customer_id: string | null;
32117
+ id: string;
32118
+ message: string | null;
32119
+ office_code: string | null;
32120
+ ok: boolean;
32121
+ queue_id: string | null;
32122
+ request_xml: string | null;
32123
+ response_raw: string | null;
32124
+ twinfield_code: string | null;
32125
+ };
32126
+ Insert: {
32127
+ created_at?: string;
32128
+ customer_id?: string | null;
32129
+ id?: string;
32130
+ message?: string | null;
32131
+ office_code?: string | null;
32132
+ ok?: boolean;
32133
+ queue_id?: string | null;
32134
+ request_xml?: string | null;
32135
+ response_raw?: string | null;
32136
+ twinfield_code?: string | null;
32137
+ };
32138
+ Update: {
32139
+ created_at?: string;
32140
+ customer_id?: string | null;
32141
+ id?: string;
32142
+ message?: string | null;
32143
+ office_code?: string | null;
32144
+ ok?: boolean;
32145
+ queue_id?: string | null;
32146
+ request_xml?: string | null;
32147
+ response_raw?: string | null;
32148
+ twinfield_code?: string | null;
32149
+ };
32150
+ Relationships: [];
32151
+ };
29159
32152
  twinfield_push_queue: {
29160
32153
  Row: {
29161
32154
  action: string;
29162
32155
  attempts: number;
29163
- connection_id: string;
32156
+ connection_id: string | null;
29164
32157
  created_at: string;
29165
32158
  customer_id: string | null;
29166
32159
  external_id: string | null;
@@ -29176,7 +32169,7 @@ export declare const saveFloridayVbnRequired: import("@tanstack/start-client-cor
29176
32169
  Insert: {
29177
32170
  action?: string;
29178
32171
  attempts?: number;
29179
- connection_id: string;
32172
+ connection_id?: string | null;
29180
32173
  created_at?: string;
29181
32174
  customer_id?: string | null;
29182
32175
  external_id?: string | null;
@@ -29192,7 +32185,7 @@ export declare const saveFloridayVbnRequired: import("@tanstack/start-client-cor
29192
32185
  Update: {
29193
32186
  action?: string;
29194
32187
  attempts?: number;
29195
- connection_id?: string;
32188
+ connection_id?: string | null;
29196
32189
  created_at?: string;
29197
32190
  customer_id?: string | null;
29198
32191
  external_id?: string | null;
@@ -29246,6 +32239,27 @@ export declare const saveFloridayVbnRequired: import("@tanstack/start-client-cor
29246
32239
  };
29247
32240
  Relationships: [];
29248
32241
  };
32242
+ twinfield_revoked_accounts: {
32243
+ Row: {
32244
+ account_key: string;
32245
+ last_revoke_error: string | null;
32246
+ revoked_at: string;
32247
+ user_id: string;
32248
+ };
32249
+ Insert: {
32250
+ account_key: string;
32251
+ last_revoke_error?: string | null;
32252
+ revoked_at?: string;
32253
+ user_id: string;
32254
+ };
32255
+ Update: {
32256
+ account_key?: string;
32257
+ last_revoke_error?: string | null;
32258
+ revoked_at?: string;
32259
+ user_id?: string;
32260
+ };
32261
+ Relationships: [];
32262
+ };
29249
32263
  twinfield_session_cache: {
29250
32264
  Row: {
29251
32265
  cluster: string;
@@ -29499,7 +32513,163 @@ export declare const saveFloridayVbnRequired: import("@tanstack/start-client-cor
29499
32513
  trade_item_id?: string | null;
29500
32514
  user_id?: string;
29501
32515
  };
29502
- Relationships: [];
32516
+ Relationships: [];
32517
+ };
32518
+ voorraad_publish_jobs: {
32519
+ Row: {
32520
+ connection_id: string | null;
32521
+ created_at: string;
32522
+ environment: string;
32523
+ finished_at: string | null;
32524
+ id: string;
32525
+ intent: string;
32526
+ product_id: string | null;
32527
+ reference_code: string;
32528
+ snapshot: import("../integrations/supabase/types").Json;
32529
+ status: string;
32530
+ summary: import("../integrations/supabase/types").Json;
32531
+ title: string | null;
32532
+ trade_item_id: string | null;
32533
+ trade_item_key: string | null;
32534
+ updated_at: string;
32535
+ user_id: string;
32536
+ };
32537
+ Insert: {
32538
+ connection_id?: string | null;
32539
+ created_at?: string;
32540
+ environment?: string;
32541
+ finished_at?: string | null;
32542
+ id?: string;
32543
+ intent?: string;
32544
+ product_id?: string | null;
32545
+ reference_code?: string;
32546
+ snapshot?: import("../integrations/supabase/types").Json;
32547
+ status?: string;
32548
+ summary?: import("../integrations/supabase/types").Json;
32549
+ title?: string | null;
32550
+ trade_item_id?: string | null;
32551
+ trade_item_key?: string | null;
32552
+ updated_at?: string;
32553
+ user_id: string;
32554
+ };
32555
+ Update: {
32556
+ connection_id?: string | null;
32557
+ created_at?: string;
32558
+ environment?: string;
32559
+ finished_at?: string | null;
32560
+ id?: string;
32561
+ intent?: string;
32562
+ product_id?: string | null;
32563
+ reference_code?: string;
32564
+ snapshot?: import("../integrations/supabase/types").Json;
32565
+ status?: string;
32566
+ summary?: import("../integrations/supabase/types").Json;
32567
+ title?: string | null;
32568
+ trade_item_id?: string | null;
32569
+ trade_item_key?: string | null;
32570
+ updated_at?: string;
32571
+ user_id?: string;
32572
+ };
32573
+ Relationships: [];
32574
+ };
32575
+ voorraad_publish_learnings: {
32576
+ Row: {
32577
+ created_at: string;
32578
+ field_key: string;
32579
+ hits: number;
32580
+ id: string;
32581
+ label: string | null;
32582
+ last_error: string | null;
32583
+ scope: string;
32584
+ updated_at: string;
32585
+ vbn_code: string;
32586
+ };
32587
+ Insert: {
32588
+ created_at?: string;
32589
+ field_key: string;
32590
+ hits?: number;
32591
+ id?: string;
32592
+ label?: string | null;
32593
+ last_error?: string | null;
32594
+ scope?: string;
32595
+ updated_at?: string;
32596
+ vbn_code: string;
32597
+ };
32598
+ Update: {
32599
+ created_at?: string;
32600
+ field_key?: string;
32601
+ hits?: number;
32602
+ id?: string;
32603
+ label?: string | null;
32604
+ last_error?: string | null;
32605
+ scope?: string;
32606
+ updated_at?: string;
32607
+ vbn_code?: string;
32608
+ };
32609
+ Relationships: [];
32610
+ };
32611
+ voorraad_publish_steps: {
32612
+ Row: {
32613
+ attempts: number;
32614
+ created_at: string;
32615
+ error_code: string | null;
32616
+ error_detail: string | null;
32617
+ error_message: string | null;
32618
+ finished_at: string | null;
32619
+ id: string;
32620
+ job_id: string;
32621
+ label: string;
32622
+ position: number;
32623
+ result: import("../integrations/supabase/types").Json | null;
32624
+ started_at: string | null;
32625
+ status: string;
32626
+ step_key: string;
32627
+ updated_at: string;
32628
+ user_id: string;
32629
+ };
32630
+ Insert: {
32631
+ attempts?: number;
32632
+ created_at?: string;
32633
+ error_code?: string | null;
32634
+ error_detail?: string | null;
32635
+ error_message?: string | null;
32636
+ finished_at?: string | null;
32637
+ id?: string;
32638
+ job_id: string;
32639
+ label: string;
32640
+ position?: number;
32641
+ result?: import("../integrations/supabase/types").Json | null;
32642
+ started_at?: string | null;
32643
+ status?: string;
32644
+ step_key: string;
32645
+ updated_at?: string;
32646
+ user_id: string;
32647
+ };
32648
+ Update: {
32649
+ attempts?: number;
32650
+ created_at?: string;
32651
+ error_code?: string | null;
32652
+ error_detail?: string | null;
32653
+ error_message?: string | null;
32654
+ finished_at?: string | null;
32655
+ id?: string;
32656
+ job_id?: string;
32657
+ label?: string;
32658
+ position?: number;
32659
+ result?: import("../integrations/supabase/types").Json | null;
32660
+ started_at?: string | null;
32661
+ status?: string;
32662
+ step_key?: string;
32663
+ updated_at?: string;
32664
+ user_id?: string;
32665
+ };
32666
+ Relationships: [{
32667
+ foreignKeyName: "voorraad_publish_steps_job_id_fkey";
32668
+ columns: ["job_id"];
32669
+ isOneToOne: false;
32670
+ referencedRelation: "voorraad_publish_jobs";
32671
+ referencedColumns: ["id"];
32672
+ }];
29503
32673
  };
29504
32674
  werkbon_package_ai_rules: {
29505
32675
  Row: {
@@ -30764,12 +33934,13 @@ export declare const saveFloridayVbnRequired: import("@tanstack/start-client-cor
30764
33934
  };
30765
33935
  claim_twinfield_push_batch: {
30766
33936
  Args: {
33937
+ _customer_id?: string;
30767
33938
  _limit?: number;
30768
33939
  };
30769
33940
  Returns: {
30770
33941
  action: string;
30771
33942
  attempts: number;
30772
- connection_id: string;
33943
+ connection_id: string | null;
30773
33944
  created_at: string;
30774
33945
  customer_id: string | null;
30775
33946
  external_id: string | null;
@@ -30853,6 +34024,15 @@ export declare const saveFloridayVbnRequired: import("@tanstack/start-client-cor
30853
34024
  };
30854
34025
  Returns: import("../integrations/supabase/types").Json;
30855
34026
  };
34027
+ customer_soft_key: {
34028
+ Args: {
34029
+ _email: string;
34030
+ _house: string;
34031
+ _name: string;
34032
+ _postal: string;
34033
+ };
34034
+ Returns: string;
34035
+ };
30856
34036
  dashboard_alert_counts: {
30857
34037
  Args: never;
30858
34038
  Returns: import("../integrations/supabase/types").Json;
@@ -31318,6 +34498,403 @@ export declare const saveFloridayVbnRequired: import("@tanstack/start-client-cor
31318
34498
  };
31319
34499
  Returns: string;
31320
34500
  };
34501
+ logistics_address_key: {
34502
+ Args: {
34503
+ p_location: string;
34504
+ };
34505
+ Returns: string;
34506
+ };
34507
+ logistics_allowed_load_carriers: {
34508
+ Args: {
34509
+ p_strategy_id?: string;
34510
+ p_user_id?: string;
34511
+ };
34512
+ Returns: import("../integrations/supabase/types").Json;
34513
+ };
34514
+ logistics_apply_buffer_decision: {
34515
+ Args: {
34516
+ p_order_id: string;
34517
+ };
34518
+ Returns: string;
34519
+ };
34520
+ logistics_apply_order_buffer: {
34521
+ Args: {
34522
+ p_order_id: string;
34523
+ };
34524
+ Returns: import("../integrations/supabase/types").Json;
34525
+ };
34526
+ logistics_backorder_allowed: {
34527
+ Args: {
34528
+ p_strategy_id?: string;
34529
+ };
34530
+ Returns: boolean;
34531
+ };
34532
+ logistics_buffer_criteria: {
34533
+ Args: {
34534
+ p_settings: import("../integrations/supabase/types").Json;
34535
+ };
34536
+ Returns: string[];
34537
+ };
34538
+ logistics_buffer_decision: {
34539
+ Args: {
34540
+ p_order?: import("../integrations/supabase/types").Json;
34541
+ p_strategy_id?: string;
34542
+ p_user_id?: string;
34543
+ };
34544
+ Returns: import("../integrations/supabase/types").Json;
34545
+ };
34546
+ logistics_buffer_simulate: {
34547
+ Args: {
34548
+ p_orders?: import("../integrations/supabase/types").Json;
34549
+ p_strategy_id?: string;
34550
+ };
34551
+ Returns: import("../integrations/supabase/types").Json;
34552
+ };
34553
+ logistics_buffer_value: {
34554
+ Args: {
34555
+ p_criterion: string;
34556
+ p_order: import("../integrations/supabase/types").Json;
34557
+ };
34558
+ Returns: string;
34559
+ };
34560
+ logistics_cancel_order: {
34561
+ Args: {
34562
+ p_order_ref: string;
34563
+ p_reason?: string;
34564
+ p_user_id?: string;
34565
+ };
34566
+ Returns: number;
34567
+ };
34568
+ logistics_check_order_allowed: {
34569
+ Args: {
34570
+ p_lines: import("../integrations/supabase/types").Json;
34571
+ p_strategy_id?: string;
34572
+ };
34573
+ Returns: import("../integrations/supabase/types").Json;
34574
+ };
34575
+ logistics_check_order_stock: {
34576
+ Args: {
34577
+ p_event_id: string;
34578
+ };
34579
+ Returns: string;
34580
+ };
34581
+ logistics_claim_next_task: {
34582
+ Args: {
34583
+ p_owner_module: string;
34584
+ p_worker?: string;
34585
+ };
34586
+ Returns: {
34587
+ buffer_ref: string | null;
34588
+ claimed_at: string | null;
34589
+ claimed_by: string | null;
34590
+ completed_at: string | null;
34591
+ created_at: string;
34592
+ depends_on: string[];
34593
+ due_at: string | null;
34594
+ error: string | null;
34595
+ id: string;
34596
+ order_ref: string;
34597
+ owner_module: string;
34598
+ payload: import("../integrations/supabase/types").Json;
34599
+ plan_run_id: string | null;
34600
+ planned_end: string | null;
34601
+ planned_start: string | null;
34602
+ priority: number;
34603
+ result: import("../integrations/supabase/types").Json | null;
34604
+ rule_config_id: string | null;
34605
+ rule_version: number | null;
34606
+ sequence: number;
34607
+ shadow: boolean;
34608
+ started_at: string | null;
34609
+ status: string;
34610
+ strategy_id: string | null;
34611
+ task_type: string;
34612
+ updated_at: string;
34613
+ user_id: string;
34614
+ };
34615
+ SetofOptions: {
34616
+ from: "*";
34617
+ to: "logistics_tasks";
34618
+ isOneToOne: true;
34619
+ isSetofReturn: false;
34620
+ };
34621
+ };
34622
+ logistics_claim_task: {
34623
+ Args: {
34624
+ p_task_id: string;
34625
+ p_worker?: string;
34626
+ };
34627
+ Returns: {
34628
+ buffer_ref: string | null;
34629
+ claimed_at: string | null;
34630
+ claimed_by: string | null;
34631
+ completed_at: string | null;
34632
+ created_at: string;
34633
+ depends_on: string[];
34634
+ due_at: string | null;
34635
+ error: string | null;
34636
+ id: string;
34637
+ order_ref: string;
34638
+ owner_module: string;
34639
+ payload: import("../integrations/supabase/types").Json;
34640
+ plan_run_id: string | null;
34641
+ planned_end: string | null;
34642
+ planned_start: string | null;
34643
+ priority: number;
34644
+ result: import("../integrations/supabase/types").Json | null;
34645
+ rule_config_id: string | null;
34646
+ rule_version: number | null;
34647
+ sequence: number;
34648
+ shadow: boolean;
34649
+ started_at: string | null;
34650
+ status: string;
34651
+ strategy_id: string | null;
34652
+ task_type: string;
34653
+ updated_at: string;
34654
+ user_id: string;
34655
+ };
34656
+ SetofOptions: {
34657
+ from: "*";
34658
+ to: "logistics_tasks";
34659
+ isOneToOne: true;
34660
+ isSetofReturn: false;
34661
+ };
34662
+ };
34663
+ logistics_complete_task: {
34664
+ Args: {
34665
+ p_result?: import("../integrations/supabase/types").Json;
34666
+ p_task_id: string;
34667
+ };
34668
+ Returns: {
34669
+ buffer_ref: string | null;
34670
+ claimed_at: string | null;
34671
+ claimed_by: string | null;
34672
+ completed_at: string | null;
34673
+ created_at: string;
34674
+ depends_on: string[];
34675
+ due_at: string | null;
34676
+ error: string | null;
34677
+ id: string;
34678
+ order_ref: string;
34679
+ owner_module: string;
34680
+ payload: import("../integrations/supabase/types").Json;
34681
+ plan_run_id: string | null;
34682
+ planned_end: string | null;
34683
+ planned_start: string | null;
34684
+ priority: number;
34685
+ result: import("../integrations/supabase/types").Json | null;
34686
+ rule_config_id: string | null;
34687
+ rule_version: number | null;
34688
+ sequence: number;
34689
+ shadow: boolean;
34690
+ started_at: string | null;
34691
+ status: string;
34692
+ strategy_id: string | null;
34693
+ task_type: string;
34694
+ updated_at: string;
34695
+ user_id: string;
34696
+ };
34697
+ SetofOptions: {
34698
+ from: "*";
34699
+ to: "logistics_tasks";
34700
+ isOneToOne: true;
34701
+ isSetofReturn: false;
34702
+ };
34703
+ };
34704
+ logistics_emit_event: {
34705
+ Args: {
34706
+ p_event_type: string;
34707
+ p_idempotency_key?: string;
34708
+ p_order_ref: string;
34709
+ p_payload?: import("../integrations/supabase/types").Json;
34710
+ p_shadow?: boolean;
34711
+ p_source_module: string;
34712
+ p_strategy_id?: string;
34713
+ };
34714
+ Returns: import("../integrations/supabase/types").Json;
34715
+ } | {
34716
+ Args: {
34717
+ p_event_type: string;
34718
+ p_idempotency_key?: string;
34719
+ p_order_ref: string;
34720
+ p_payload?: import("../integrations/supabase/types").Json;
34721
+ p_priority?: number;
34722
+ p_shadow?: boolean;
34723
+ p_source_module: string;
34724
+ p_strategy_id?: string;
34725
+ };
34726
+ Returns: import("../integrations/supabase/types").Json;
34727
+ };
34728
+ logistics_fail_task: {
34729
+ Args: {
34730
+ p_error: string;
34731
+ p_task_id: string;
34732
+ };
34733
+ Returns: {
34734
+ buffer_ref: string | null;
34735
+ claimed_at: string | null;
34736
+ claimed_by: string | null;
34737
+ completed_at: string | null;
34738
+ created_at: string;
34739
+ depends_on: string[];
34740
+ due_at: string | null;
34741
+ error: string | null;
34742
+ id: string;
34743
+ order_ref: string;
34744
+ owner_module: string;
34745
+ payload: import("../integrations/supabase/types").Json;
34746
+ plan_run_id: string | null;
34747
+ planned_end: string | null;
34748
+ planned_start: string | null;
34749
+ priority: number;
34750
+ result: import("../integrations/supabase/types").Json | null;
34751
+ rule_config_id: string | null;
34752
+ rule_version: number | null;
34753
+ sequence: number;
34754
+ shadow: boolean;
34755
+ started_at: string | null;
34756
+ status: string;
34757
+ strategy_id: string | null;
34758
+ task_type: string;
34759
+ updated_at: string;
34760
+ user_id: string;
34761
+ };
34762
+ SetofOptions: {
34763
+ from: "*";
34764
+ to: "logistics_tasks";
34765
+ isOneToOne: true;
34766
+ isSetofReturn: false;
34767
+ };
34768
+ };
34769
+ logistics_not_past: {
34770
+ Args: {
34771
+ p_ts: string;
34772
+ };
34773
+ Returns: string;
34774
+ };
34775
+ logistics_queue_stock_email: {
34776
+ Args: {
34777
+ p_alert_id: string;
34778
+ };
34779
+ Returns: string;
34780
+ };
34781
+ logistics_reapply_buffer_decisions: {
34782
+ Args: never;
34783
+ Returns: number;
34784
+ };
34785
+ logistics_rebuffer_open_orders: {
34786
+ Args: {
34787
+ p_strategy_id?: string;
34788
+ };
34789
+ Returns: import("../integrations/supabase/types").Json;
34790
+ };
34791
+ logistics_rebuffer_orders: {
34792
+ Args: {
34793
+ p_days?: number;
34794
+ };
34795
+ Returns: import("../integrations/supabase/types").Json;
34796
+ };
34797
+ logistics_rebuffer_pending: {
34798
+ Args: never;
34799
+ Returns: import("../integrations/supabase/types").Json;
34800
+ };
34801
+ logistics_rescan_orders: {
34802
+ Args: {
34803
+ p_days?: number;
34804
+ };
34805
+ Returns: number;
34806
+ };
34807
+ logistics_resolve_settings: {
34808
+ Args: {
34809
+ p_config_id: string;
34810
+ p_user_id: string;
34811
+ p_version: number;
34812
+ };
34813
+ Returns: import("../integrations/supabase/types").Json;
34814
+ };
34815
+ logistics_rule_bool: {
34816
+ Args: {
34817
+ p_default: boolean;
34818
+ p_key: string;
34819
+ p_settings: import("../integrations/supabase/types").Json;
34820
+ p_step: string;
34821
+ };
34822
+ Returns: boolean;
34823
+ };
34824
+ logistics_rule_num: {
34825
+ Args: {
34826
+ p_default: number;
34827
+ p_key: string;
34828
+ p_settings: import("../integrations/supabase/types").Json;
34829
+ p_step: string;
34830
+ };
34831
+ Returns: number;
34832
+ };
34833
+ logistics_rule_text: {
34834
+ Args: {
34835
+ p_default: string;
34836
+ p_key: string;
34837
+ p_settings: import("../integrations/supabase/types").Json;
34838
+ p_step: string;
34839
+ };
34840
+ Returns: string;
34841
+ };
34842
+ logistics_rule_value: {
34843
+ Args: {
34844
+ p_key: string;
34845
+ p_settings: import("../integrations/supabase/types").Json;
34846
+ p_step: string;
34847
+ };
34848
+ Returns: import("../integrations/supabase/types").Json;
34849
+ };
34850
+ logistics_scan_order_stock: {
34851
+ Args: {
34852
+ p_order_id: string;
34853
+ };
34854
+ Returns: string;
34855
+ };
34856
+ logistics_set_order_priority: {
34857
+ Args: {
34858
+ p_order_ref: string;
34859
+ p_priority: number;
34860
+ p_user_id?: string;
34861
+ };
34862
+ Returns: number;
34863
+ };
34864
+ logistics_supersede_stale_tasks: {
34865
+ Args: {
34866
+ p_keep: string[];
34867
+ p_order_ref: string;
34868
+ p_run_id: string;
34869
+ p_user_id: string;
34870
+ };
34871
+ Returns: number;
34872
+ };
34873
+ logistics_task_owner: {
34874
+ Args: {
34875
+ p_task_type: string;
34876
+ };
34877
+ Returns: string;
34878
+ };
34879
+ logistics_upsert_task: {
34880
+ Args: {
34881
+ p_buffer_ref: string;
34882
+ p_end: string;
34883
+ p_order_ref: string;
34884
+ p_owner: string;
34885
+ p_payload: import("../integrations/supabase/types").Json;
34886
+ p_rule_config_id: string;
34887
+ p_rule_version: number;
34888
+ p_run_id: string;
34889
+ p_sequence: number;
34890
+ p_shadow: boolean;
34891
+ p_start: string;
34892
+ p_strategy_id: string;
34893
+ p_task_type: string;
34894
+ p_user_id: string;
34895
+ };
34896
+ Returns: string;
34897
+ };
31321
34898
  mark_offer_clicked: {
31322
34899
  Args: {
31323
34900
  p_code: string;
@@ -31571,6 +35148,13 @@ export declare const saveFloridayVbnRequired: import("@tanstack/start-client-cor
31571
35148
  waiting: number;
31572
35149
  }[];
31573
35150
  };
35151
+ pick_station_slugify: {
35152
+ Args: {
35153
+ _id: string;
35154
+ _name: string;
35155
+ };
35156
+ Returns: string;
35157
+ };
31574
35158
  pickstation_get_orders_raw: {
31575
35159
  Args: never;
31576
35160
  Returns: import("../integrations/supabase/types").Json;
@@ -31611,6 +35195,12 @@ export declare const saveFloridayVbnRequired: import("@tanstack/start-client-cor
31611
35195
  };
31612
35196
  Returns: undefined;
31613
35197
  };
35198
+ process_logistics_event: {
35199
+ Args: {
35200
+ p_event_id: string;
35201
+ };
35202
+ Returns: string;
35203
+ };
31614
35204
  produce_designed_product: {
31615
35205
  Args: {
31616
35206
  p_parent_id: string;
@@ -31736,6 +35326,14 @@ export declare const saveFloridayVbnRequired: import("@tanstack/start-client-cor
31736
35326
  };
31737
35327
  Returns: import("../integrations/supabase/types").Json;
31738
35328
  };
35329
+ run_floriday_continuous_stock_sync: {
35330
+ Args: never;
35331
+ Returns: undefined;
35332
+ };
35333
+ run_twinfield_queue_tick: {
35334
+ Args: never;
35335
+ Returns: undefined;
35336
+ };
31739
35337
  schedule_floriday_additional_services_sync: {
31740
35338
  Args: {
31741
35339
  p_apikey: string;
@@ -32067,7 +35665,7 @@ export declare const saveFloridayVbnRequired: import("@tanstack/start-client-cor
32067
35665
  };
32068
35666
  twinfield_register_cron: {
32069
35667
  Args: {
32070
- apikey: string;
35668
+ apikey?: string;
32071
35669
  base_url: string;
32072
35670
  };
32073
35671
  Returns: import("../integrations/supabase/types").Json;