@flowselections/floriday-voorraad 1.0.28 → 1.0.30

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
@@ -1623,13 +1623,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
1623
1623
  id?: string;
1624
1624
  user_id?: string | null;
1625
1625
  };
1626
- Relationships: [{
1627
- foreignKeyName: "customer_audit_log_customer_id_fkey";
1628
- columns: ["customer_id"];
1629
- isOneToOne: false;
1630
- referencedRelation: "customers";
1631
- referencedColumns: ["id"];
1632
- }];
1626
+ Relationships: [];
1633
1627
  };
1634
1628
  customer_contacts: {
1635
1629
  Row: {
@@ -1690,9 +1684,12 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
1690
1684
  city: string | null;
1691
1685
  country: string | null;
1692
1686
  created_at: string;
1693
- customer_id: string;
1687
+ customer_id: string | null;
1688
+ external_key: string | null;
1689
+ external_provider: string | null;
1694
1690
  floriday_location_id: string | null;
1695
1691
  gln: string | null;
1692
+ group_key: string | null;
1696
1693
  house_number: string | null;
1697
1694
  id: string;
1698
1695
  is_primary: boolean;
@@ -1711,9 +1708,12 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
1711
1708
  city?: string | null;
1712
1709
  country?: string | null;
1713
1710
  created_at?: string;
1714
- customer_id: string;
1711
+ customer_id?: string | null;
1712
+ external_key?: string | null;
1713
+ external_provider?: string | null;
1715
1714
  floriday_location_id?: string | null;
1716
1715
  gln?: string | null;
1716
+ group_key?: string | null;
1717
1717
  house_number?: string | null;
1718
1718
  id?: string;
1719
1719
  is_primary?: boolean;
@@ -1732,9 +1732,12 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
1732
1732
  city?: string | null;
1733
1733
  country?: string | null;
1734
1734
  created_at?: string;
1735
- customer_id?: string;
1735
+ customer_id?: string | null;
1736
+ external_key?: string | null;
1737
+ external_provider?: string | null;
1736
1738
  floriday_location_id?: string | null;
1737
1739
  gln?: string | null;
1740
+ group_key?: string | null;
1738
1741
  house_number?: string | null;
1739
1742
  id?: string;
1740
1743
  is_primary?: boolean;
@@ -1823,6 +1826,39 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
1823
1826
  };
1824
1827
  Relationships: [];
1825
1828
  };
1829
+ customer_logistics_strategy: {
1830
+ Row: {
1831
+ created_at: string;
1832
+ id: string;
1833
+ ref_key: string;
1834
+ scope: string;
1835
+ strategy_id: string | null;
1836
+ updated_at: string;
1837
+ };
1838
+ Insert: {
1839
+ created_at?: string;
1840
+ id?: string;
1841
+ ref_key: string;
1842
+ scope: string;
1843
+ strategy_id?: string | null;
1844
+ updated_at?: string;
1845
+ };
1846
+ Update: {
1847
+ created_at?: string;
1848
+ id?: string;
1849
+ ref_key?: string;
1850
+ scope?: string;
1851
+ strategy_id?: string | null;
1852
+ updated_at?: string;
1853
+ };
1854
+ Relationships: [{
1855
+ foreignKeyName: "customer_logistics_strategy_strategy_id_fkey";
1856
+ columns: ["strategy_id"];
1857
+ isOneToOne: false;
1858
+ referencedRelation: "logistics_strategies";
1859
+ referencedColumns: ["id"];
1860
+ }];
1861
+ };
1826
1862
  customer_price_group_members: {
1827
1863
  Row: {
1828
1864
  created_at: string;
@@ -2034,6 +2070,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
2034
2070
  bank_state: string | null;
2035
2071
  billing_email: string | null;
2036
2072
  bio: string | null;
2073
+ blocked: boolean;
2037
2074
  city: string | null;
2038
2075
  coc_number: string | null;
2039
2076
  commercial_name: string | null;
@@ -2042,11 +2079,14 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
2042
2079
  contact_person: string | null;
2043
2080
  country: string | null;
2044
2081
  created_at: string;
2082
+ credit_limit: number;
2045
2083
  custom_fields: import("./types").Json;
2046
2084
  customer_class: string | null;
2047
2085
  customer_number: string | null;
2048
2086
  discount_days: number | null;
2049
2087
  discount_percentage: number | null;
2088
+ discount_surcharge: string;
2089
+ e_invoicing: boolean;
2050
2090
  email: string | null;
2051
2091
  external_id: string | null;
2052
2092
  fax: string | null;
@@ -2057,19 +2097,23 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
2057
2097
  house_number: string | null;
2058
2098
  icp_country_code: string | null;
2059
2099
  id: string;
2100
+ invoice_send_as: string;
2060
2101
  is_active: boolean;
2061
2102
  language: string | null;
2062
2103
  last_synced_at: string | null;
2104
+ ledger_account: string | null;
2063
2105
  logo_url: string | null;
2064
2106
  markets: string[];
2065
2107
  notes: string | null;
2066
2108
  organization_type: string | null;
2067
2109
  payment_methods: string[];
2110
+ payment_spec_method: string;
2068
2111
  payment_term_days: number | null;
2069
2112
  phone: string | null;
2070
2113
  postal_code: string | null;
2071
2114
  product_groups: string[];
2072
2115
  segments: string[];
2116
+ send_reminder: string;
2073
2117
  source: string;
2074
2118
  street: string | null;
2075
2119
  sync_error: string | null;
@@ -2105,6 +2149,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
2105
2149
  bank_state?: string | null;
2106
2150
  billing_email?: string | null;
2107
2151
  bio?: string | null;
2152
+ blocked?: boolean;
2108
2153
  city?: string | null;
2109
2154
  coc_number?: string | null;
2110
2155
  commercial_name?: string | null;
@@ -2113,11 +2158,14 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
2113
2158
  contact_person?: string | null;
2114
2159
  country?: string | null;
2115
2160
  created_at?: string;
2161
+ credit_limit?: number;
2116
2162
  custom_fields?: import("./types").Json;
2117
2163
  customer_class?: string | null;
2118
2164
  customer_number?: string | null;
2119
2165
  discount_days?: number | null;
2120
2166
  discount_percentage?: number | null;
2167
+ discount_surcharge?: string;
2168
+ e_invoicing?: boolean;
2121
2169
  email?: string | null;
2122
2170
  external_id?: string | null;
2123
2171
  fax?: string | null;
@@ -2128,19 +2176,23 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
2128
2176
  house_number?: string | null;
2129
2177
  icp_country_code?: string | null;
2130
2178
  id?: string;
2179
+ invoice_send_as?: string;
2131
2180
  is_active?: boolean;
2132
2181
  language?: string | null;
2133
2182
  last_synced_at?: string | null;
2183
+ ledger_account?: string | null;
2134
2184
  logo_url?: string | null;
2135
2185
  markets?: string[];
2136
2186
  notes?: string | null;
2137
2187
  organization_type?: string | null;
2138
2188
  payment_methods?: string[];
2189
+ payment_spec_method?: string;
2139
2190
  payment_term_days?: number | null;
2140
2191
  phone?: string | null;
2141
2192
  postal_code?: string | null;
2142
2193
  product_groups?: string[];
2143
2194
  segments?: string[];
2195
+ send_reminder?: string;
2144
2196
  source?: string;
2145
2197
  street?: string | null;
2146
2198
  sync_error?: string | null;
@@ -2176,6 +2228,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
2176
2228
  bank_state?: string | null;
2177
2229
  billing_email?: string | null;
2178
2230
  bio?: string | null;
2231
+ blocked?: boolean;
2179
2232
  city?: string | null;
2180
2233
  coc_number?: string | null;
2181
2234
  commercial_name?: string | null;
@@ -2184,11 +2237,14 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
2184
2237
  contact_person?: string | null;
2185
2238
  country?: string | null;
2186
2239
  created_at?: string;
2240
+ credit_limit?: number;
2187
2241
  custom_fields?: import("./types").Json;
2188
2242
  customer_class?: string | null;
2189
2243
  customer_number?: string | null;
2190
2244
  discount_days?: number | null;
2191
2245
  discount_percentage?: number | null;
2246
+ discount_surcharge?: string;
2247
+ e_invoicing?: boolean;
2192
2248
  email?: string | null;
2193
2249
  external_id?: string | null;
2194
2250
  fax?: string | null;
@@ -2199,19 +2255,23 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
2199
2255
  house_number?: string | null;
2200
2256
  icp_country_code?: string | null;
2201
2257
  id?: string;
2258
+ invoice_send_as?: string;
2202
2259
  is_active?: boolean;
2203
2260
  language?: string | null;
2204
2261
  last_synced_at?: string | null;
2262
+ ledger_account?: string | null;
2205
2263
  logo_url?: string | null;
2206
2264
  markets?: string[];
2207
2265
  notes?: string | null;
2208
2266
  organization_type?: string | null;
2209
2267
  payment_methods?: string[];
2268
+ payment_spec_method?: string;
2210
2269
  payment_term_days?: number | null;
2211
2270
  phone?: string | null;
2212
2271
  postal_code?: string | null;
2213
2272
  product_groups?: string[];
2214
2273
  segments?: string[];
2274
+ send_reminder?: string;
2215
2275
  source?: string;
2216
2276
  street?: string | null;
2217
2277
  sync_error?: string | null;
@@ -2930,6 +2990,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
2930
2990
  status: string;
2931
2991
  token_expires_at: string | null;
2932
2992
  updated_at: string;
2993
+ watch_scope: string;
2933
2994
  webhook_last_attempt_at: string | null;
2934
2995
  webhook_last_error: string | null;
2935
2996
  webhook_status: string;
@@ -2972,6 +3033,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
2972
3033
  status?: string;
2973
3034
  token_expires_at?: string | null;
2974
3035
  updated_at?: string;
3036
+ watch_scope?: string;
2975
3037
  webhook_last_attempt_at?: string | null;
2976
3038
  webhook_last_error?: string | null;
2977
3039
  webhook_status?: string;
@@ -3014,6 +3076,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
3014
3076
  status?: string;
3015
3077
  token_expires_at?: string | null;
3016
3078
  updated_at?: string;
3079
+ watch_scope?: string;
3017
3080
  webhook_last_attempt_at?: string | null;
3018
3081
  webhook_last_error?: string | null;
3019
3082
  webhook_status?: string;
@@ -3212,6 +3275,72 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
3212
3275
  referencedColumns: ["id"];
3213
3276
  }];
3214
3277
  };
3278
+ email_auth_watch_folders: {
3279
+ Row: {
3280
+ connection_id: string;
3281
+ created_at: string;
3282
+ folder_id: string;
3283
+ folder_name: string | null;
3284
+ gmail_history_id: string | null;
3285
+ graph_subscription_expires_at: string | null;
3286
+ graph_subscription_id: string | null;
3287
+ id: string;
3288
+ imap_last_uid: number | null;
3289
+ imap_uid_validity: number | null;
3290
+ mailbox: string;
3291
+ provider: string;
3292
+ updated_at: string;
3293
+ webhook_last_error: string | null;
3294
+ webhook_status: string | null;
3295
+ };
3296
+ Insert: {
3297
+ connection_id: string;
3298
+ created_at?: string;
3299
+ folder_id: string;
3300
+ folder_name?: string | null;
3301
+ gmail_history_id?: string | null;
3302
+ graph_subscription_expires_at?: string | null;
3303
+ graph_subscription_id?: string | null;
3304
+ id?: string;
3305
+ imap_last_uid?: number | null;
3306
+ imap_uid_validity?: number | null;
3307
+ mailbox?: string;
3308
+ provider: string;
3309
+ updated_at?: string;
3310
+ webhook_last_error?: string | null;
3311
+ webhook_status?: string | null;
3312
+ };
3313
+ Update: {
3314
+ connection_id?: string;
3315
+ created_at?: string;
3316
+ folder_id?: string;
3317
+ folder_name?: string | null;
3318
+ gmail_history_id?: string | null;
3319
+ graph_subscription_expires_at?: string | null;
3320
+ graph_subscription_id?: string | null;
3321
+ id?: string;
3322
+ imap_last_uid?: number | null;
3323
+ imap_uid_validity?: number | null;
3324
+ mailbox?: string;
3325
+ provider?: string;
3326
+ updated_at?: string;
3327
+ webhook_last_error?: string | null;
3328
+ webhook_status?: string | null;
3329
+ };
3330
+ Relationships: [{
3331
+ foreignKeyName: "email_auth_watch_folders_connection_id_fkey";
3332
+ columns: ["connection_id"];
3333
+ isOneToOne: false;
3334
+ referencedRelation: "email_auth_connections";
3335
+ referencedColumns: ["id"];
3336
+ }, {
3337
+ foreignKeyName: "email_auth_watch_folders_connection_id_fkey";
3338
+ columns: ["connection_id"];
3339
+ isOneToOne: false;
3340
+ referencedRelation: "email_auth_connections_safe";
3341
+ referencedColumns: ["id"];
3342
+ }];
3343
+ };
3215
3344
  email_auth_webhook_log: {
3216
3345
  Row: {
3217
3346
  body_sample: string | null;
@@ -6305,6 +6434,108 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
6305
6434
  };
6306
6435
  Relationships: [];
6307
6436
  };
6437
+ fust_stock_mutations: {
6438
+ Row: {
6439
+ created_at: string;
6440
+ delta: number;
6441
+ fust_type_id: string;
6442
+ id: string;
6443
+ note: string | null;
6444
+ reason: string;
6445
+ trade_item_key: string | null;
6446
+ user_id: string;
6447
+ };
6448
+ Insert: {
6449
+ created_at?: string;
6450
+ delta: number;
6451
+ fust_type_id: string;
6452
+ id?: string;
6453
+ note?: string | null;
6454
+ reason?: string;
6455
+ trade_item_key?: string | null;
6456
+ user_id: string;
6457
+ };
6458
+ Update: {
6459
+ created_at?: string;
6460
+ delta?: number;
6461
+ fust_type_id?: string;
6462
+ id?: string;
6463
+ note?: string | null;
6464
+ reason?: string;
6465
+ trade_item_key?: string | null;
6466
+ user_id?: string;
6467
+ };
6468
+ Relationships: [{
6469
+ foreignKeyName: "fust_stock_mutations_fust_type_id_fkey";
6470
+ columns: ["fust_type_id"];
6471
+ isOneToOne: false;
6472
+ referencedRelation: "fust_types";
6473
+ referencedColumns: ["id"];
6474
+ }];
6475
+ };
6476
+ fust_types: {
6477
+ Row: {
6478
+ connection_id: string | null;
6479
+ created_at: string;
6480
+ custom_package_id: string | null;
6481
+ fust_key: string;
6482
+ height_mm: number | null;
6483
+ id: string;
6484
+ in_use: boolean;
6485
+ length_mm: number | null;
6486
+ minimum_stock: number;
6487
+ name: string;
6488
+ notes: string | null;
6489
+ source: string;
6490
+ stock: number;
6491
+ updated_at: string;
6492
+ used_by_count: number;
6493
+ user_id: string;
6494
+ vbn_code: number | null;
6495
+ width_mm: number | null;
6496
+ };
6497
+ Insert: {
6498
+ connection_id?: string | null;
6499
+ created_at?: string;
6500
+ custom_package_id?: string | null;
6501
+ fust_key: string;
6502
+ height_mm?: number | null;
6503
+ id?: string;
6504
+ in_use?: boolean;
6505
+ length_mm?: number | null;
6506
+ minimum_stock?: number;
6507
+ name: string;
6508
+ notes?: string | null;
6509
+ source?: string;
6510
+ stock?: number;
6511
+ updated_at?: string;
6512
+ used_by_count?: number;
6513
+ user_id: string;
6514
+ vbn_code?: number | null;
6515
+ width_mm?: number | null;
6516
+ };
6517
+ Update: {
6518
+ connection_id?: string | null;
6519
+ created_at?: string;
6520
+ custom_package_id?: string | null;
6521
+ fust_key?: string;
6522
+ height_mm?: number | null;
6523
+ id?: string;
6524
+ in_use?: boolean;
6525
+ length_mm?: number | null;
6526
+ minimum_stock?: number;
6527
+ name?: string;
6528
+ notes?: string | null;
6529
+ source?: string;
6530
+ stock?: number;
6531
+ updated_at?: string;
6532
+ used_by_count?: number;
6533
+ user_id?: string;
6534
+ vbn_code?: number | null;
6535
+ width_mm?: number | null;
6536
+ };
6537
+ Relationships: [];
6538
+ };
6308
6539
  imap_accounts: {
6309
6540
  Row: {
6310
6541
  created_at: string;
@@ -6992,6 +7223,72 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
6992
7223
  referencedColumns: ["id"];
6993
7224
  }];
6994
7225
  };
7226
+ load_carrier_types: {
7227
+ Row: {
7228
+ allow_mixing: boolean;
7229
+ capacity_model: string;
7230
+ code: string;
7231
+ created_at: string;
7232
+ id: string;
7233
+ is_active: boolean;
7234
+ is_default: boolean;
7235
+ layer_length_cm: number;
7236
+ layer_width_cm: number;
7237
+ layers_per_carrier: number;
7238
+ max_boxes: number | null;
7239
+ max_crates_per_layer: number | null;
7240
+ max_customers: number | null;
7241
+ max_height_cm: number | null;
7242
+ max_orders: number | null;
7243
+ max_weight_kg: number | null;
7244
+ name: string;
7245
+ sort_order: number;
7246
+ updated_at: string;
7247
+ };
7248
+ Insert: {
7249
+ allow_mixing?: boolean;
7250
+ capacity_model?: string;
7251
+ code: string;
7252
+ created_at?: string;
7253
+ id?: string;
7254
+ is_active?: boolean;
7255
+ is_default?: boolean;
7256
+ layer_length_cm?: number;
7257
+ layer_width_cm?: number;
7258
+ layers_per_carrier?: number;
7259
+ max_boxes?: number | null;
7260
+ max_crates_per_layer?: number | null;
7261
+ max_customers?: number | null;
7262
+ max_height_cm?: number | null;
7263
+ max_orders?: number | null;
7264
+ max_weight_kg?: number | null;
7265
+ name: string;
7266
+ sort_order?: number;
7267
+ updated_at?: string;
7268
+ };
7269
+ Update: {
7270
+ allow_mixing?: boolean;
7271
+ capacity_model?: string;
7272
+ code?: string;
7273
+ created_at?: string;
7274
+ id?: string;
7275
+ is_active?: boolean;
7276
+ is_default?: boolean;
7277
+ layer_length_cm?: number;
7278
+ layer_width_cm?: number;
7279
+ layers_per_carrier?: number;
7280
+ max_boxes?: number | null;
7281
+ max_crates_per_layer?: number | null;
7282
+ max_customers?: number | null;
7283
+ max_height_cm?: number | null;
7284
+ max_orders?: number | null;
7285
+ max_weight_kg?: number | null;
7286
+ name?: string;
7287
+ sort_order?: number;
7288
+ updated_at?: string;
7289
+ };
7290
+ Relationships: [];
7291
+ };
6995
7292
  local_customer_agreements: {
6996
7293
  Row: {
6997
7294
  base_price: number | null;
@@ -7322,6 +7619,63 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
7322
7619
  referencedColumns: ["id"];
7323
7620
  }];
7324
7621
  };
7622
+ logistics_events: {
7623
+ Row: {
7624
+ created_at: string;
7625
+ error: string | null;
7626
+ event_type: string;
7627
+ id: string;
7628
+ idempotency_key: string | null;
7629
+ order_ref: string;
7630
+ payload: import("./types").Json;
7631
+ plan_run_id: string | null;
7632
+ priority: number;
7633
+ processed_at: string | null;
7634
+ shadow: boolean;
7635
+ source_module: string;
7636
+ status: string;
7637
+ strategy_id: string | null;
7638
+ updated_at: string;
7639
+ user_id: string;
7640
+ };
7641
+ Insert: {
7642
+ created_at?: string;
7643
+ error?: string | null;
7644
+ event_type?: string;
7645
+ id?: string;
7646
+ idempotency_key?: string | null;
7647
+ order_ref: string;
7648
+ payload?: import("./types").Json;
7649
+ plan_run_id?: string | null;
7650
+ priority?: number;
7651
+ processed_at?: string | null;
7652
+ shadow?: boolean;
7653
+ source_module: string;
7654
+ status?: string;
7655
+ strategy_id?: string | null;
7656
+ updated_at?: string;
7657
+ user_id?: string;
7658
+ };
7659
+ Update: {
7660
+ created_at?: string;
7661
+ error?: string | null;
7662
+ event_type?: string;
7663
+ id?: string;
7664
+ idempotency_key?: string | null;
7665
+ order_ref?: string;
7666
+ payload?: import("./types").Json;
7667
+ plan_run_id?: string | null;
7668
+ priority?: number;
7669
+ processed_at?: string | null;
7670
+ shadow?: boolean;
7671
+ source_module?: string;
7672
+ status?: string;
7673
+ strategy_id?: string | null;
7674
+ updated_at?: string;
7675
+ user_id?: string;
7676
+ };
7677
+ Relationships: [];
7678
+ };
7325
7679
  logistics_formulas: {
7326
7680
  Row: {
7327
7681
  created_at: string;
@@ -7364,22 +7718,292 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
7364
7718
  referencedColumns: ["id"];
7365
7719
  }];
7366
7720
  };
7367
- logistics_strategies: {
7721
+ logistics_plan_runs: {
7368
7722
  Row: {
7369
- color: string;
7370
7723
  created_at: string;
7371
- description: string | null;
7724
+ error: string | null;
7372
7725
  id: string;
7373
- is_active: boolean;
7374
- name: string;
7375
- priority: number;
7726
+ input: import("./types").Json;
7727
+ order_ref: string;
7728
+ rule_config_id: string | null;
7729
+ rule_version: number | null;
7730
+ settings_hash: string | null;
7731
+ settings_snapshot: import("./types").Json;
7732
+ source_module: string | null;
7733
+ status: string;
7734
+ strategy_id: string | null;
7735
+ tasks_created: number;
7736
+ tasks_revised: number;
7737
+ trigger: string;
7376
7738
  updated_at: string;
7377
- updated_by: string | null;
7378
7739
  user_id: string;
7379
- version: number;
7740
+ warnings: import("./types").Json;
7380
7741
  };
7381
7742
  Insert: {
7382
- color?: string;
7743
+ created_at?: string;
7744
+ error?: string | null;
7745
+ id?: string;
7746
+ input?: import("./types").Json;
7747
+ order_ref: string;
7748
+ rule_config_id?: string | null;
7749
+ rule_version?: number | null;
7750
+ settings_hash?: string | null;
7751
+ settings_snapshot?: import("./types").Json;
7752
+ source_module?: string | null;
7753
+ status?: string;
7754
+ strategy_id?: string | null;
7755
+ tasks_created?: number;
7756
+ tasks_revised?: number;
7757
+ trigger?: string;
7758
+ updated_at?: string;
7759
+ user_id?: string;
7760
+ warnings?: import("./types").Json;
7761
+ };
7762
+ Update: {
7763
+ created_at?: string;
7764
+ error?: string | null;
7765
+ id?: string;
7766
+ input?: import("./types").Json;
7767
+ order_ref?: string;
7768
+ rule_config_id?: string | null;
7769
+ rule_version?: number | null;
7770
+ settings_hash?: string | null;
7771
+ settings_snapshot?: import("./types").Json;
7772
+ source_module?: string | null;
7773
+ status?: string;
7774
+ strategy_id?: string | null;
7775
+ tasks_created?: number;
7776
+ tasks_revised?: number;
7777
+ trigger?: string;
7778
+ updated_at?: string;
7779
+ user_id?: string;
7780
+ warnings?: import("./types").Json;
7781
+ };
7782
+ Relationships: [{
7783
+ foreignKeyName: "logistics_plan_runs_rule_config_id_fkey";
7784
+ columns: ["rule_config_id"];
7785
+ isOneToOne: false;
7786
+ referencedRelation: "logistics_rule_configs";
7787
+ referencedColumns: ["id"];
7788
+ }, {
7789
+ foreignKeyName: "logistics_plan_runs_strategy_id_fkey";
7790
+ columns: ["strategy_id"];
7791
+ isOneToOne: false;
7792
+ referencedRelation: "logistics_strategies";
7793
+ referencedColumns: ["id"];
7794
+ }];
7795
+ };
7796
+ logistics_rebuffer_state: {
7797
+ Row: {
7798
+ created_at: string;
7799
+ id: boolean;
7800
+ last_checked: number;
7801
+ last_duration_ms: number;
7802
+ last_run_at: string | null;
7803
+ last_updated: number;
7804
+ pending: boolean;
7805
+ requested_at: string | null;
7806
+ updated_at: string;
7807
+ };
7808
+ Insert: {
7809
+ created_at?: string;
7810
+ id?: boolean;
7811
+ last_checked?: number;
7812
+ last_duration_ms?: number;
7813
+ last_run_at?: string | null;
7814
+ last_updated?: number;
7815
+ pending?: boolean;
7816
+ requested_at?: string | null;
7817
+ updated_at?: string;
7818
+ };
7819
+ Update: {
7820
+ created_at?: string;
7821
+ id?: boolean;
7822
+ last_checked?: number;
7823
+ last_duration_ms?: number;
7824
+ last_run_at?: string | null;
7825
+ last_updated?: number;
7826
+ pending?: boolean;
7827
+ requested_at?: string | null;
7828
+ updated_at?: string;
7829
+ };
7830
+ Relationships: [];
7831
+ };
7832
+ logistics_rule_configs: {
7833
+ Row: {
7834
+ created_at: string;
7835
+ current_version: number;
7836
+ description: string | null;
7837
+ id: string;
7838
+ is_active: boolean;
7839
+ name: string;
7840
+ settings: import("./types").Json;
7841
+ status: string;
7842
+ strategy_id: string | null;
7843
+ updated_at: string;
7844
+ user_id: string;
7845
+ };
7846
+ Insert: {
7847
+ created_at?: string;
7848
+ current_version?: number;
7849
+ description?: string | null;
7850
+ id?: string;
7851
+ is_active?: boolean;
7852
+ name: string;
7853
+ settings?: import("./types").Json;
7854
+ status?: string;
7855
+ strategy_id?: string | null;
7856
+ updated_at?: string;
7857
+ user_id?: string;
7858
+ };
7859
+ Update: {
7860
+ created_at?: string;
7861
+ current_version?: number;
7862
+ description?: string | null;
7863
+ id?: string;
7864
+ is_active?: boolean;
7865
+ name?: string;
7866
+ settings?: import("./types").Json;
7867
+ status?: string;
7868
+ strategy_id?: string | null;
7869
+ updated_at?: string;
7870
+ user_id?: string;
7871
+ };
7872
+ Relationships: [{
7873
+ foreignKeyName: "logistics_rule_configs_strategy_id_fkey";
7874
+ columns: ["strategy_id"];
7875
+ isOneToOne: false;
7876
+ referencedRelation: "logistics_strategies";
7877
+ referencedColumns: ["id"];
7878
+ }];
7879
+ };
7880
+ logistics_rule_versions: {
7881
+ Row: {
7882
+ config_id: string;
7883
+ created_at: string;
7884
+ id: string;
7885
+ label: string | null;
7886
+ note: string | null;
7887
+ settings: import("./types").Json;
7888
+ status: string;
7889
+ user_id: string;
7890
+ version: number;
7891
+ };
7892
+ Insert: {
7893
+ config_id: string;
7894
+ created_at?: string;
7895
+ id?: string;
7896
+ label?: string | null;
7897
+ note?: string | null;
7898
+ settings?: import("./types").Json;
7899
+ status?: string;
7900
+ user_id?: string;
7901
+ version: number;
7902
+ };
7903
+ Update: {
7904
+ config_id?: string;
7905
+ created_at?: string;
7906
+ id?: string;
7907
+ label?: string | null;
7908
+ note?: string | null;
7909
+ settings?: import("./types").Json;
7910
+ status?: string;
7911
+ user_id?: string;
7912
+ version?: number;
7913
+ };
7914
+ Relationships: [{
7915
+ foreignKeyName: "logistics_rule_versions_config_id_fkey";
7916
+ columns: ["config_id"];
7917
+ isOneToOne: false;
7918
+ referencedRelation: "logistics_rule_configs";
7919
+ referencedColumns: ["id"];
7920
+ }];
7921
+ };
7922
+ logistics_stock_alerts: {
7923
+ Row: {
7924
+ created_at: string;
7925
+ customer_name: string | null;
7926
+ delivery_date: string | null;
7927
+ email_enabled: boolean;
7928
+ email_error: string | null;
7929
+ email_outbox_id: string | null;
7930
+ email_recipients: string[];
7931
+ email_sent_at: string | null;
7932
+ email_status: string;
7933
+ id: string;
7934
+ notification_id: string | null;
7935
+ order_id: string | null;
7936
+ order_ref: string;
7937
+ priority: number;
7938
+ resolved_at: string | null;
7939
+ resolved_by: string | null;
7940
+ shortages: import("./types").Json;
7941
+ status: string;
7942
+ updated_at: string;
7943
+ user_id: string;
7944
+ };
7945
+ Insert: {
7946
+ created_at?: string;
7947
+ customer_name?: string | null;
7948
+ delivery_date?: string | null;
7949
+ email_enabled?: boolean;
7950
+ email_error?: string | null;
7951
+ email_outbox_id?: string | null;
7952
+ email_recipients?: string[];
7953
+ email_sent_at?: string | null;
7954
+ email_status?: string;
7955
+ id?: string;
7956
+ notification_id?: string | null;
7957
+ order_id?: string | null;
7958
+ order_ref: string;
7959
+ priority?: number;
7960
+ resolved_at?: string | null;
7961
+ resolved_by?: string | null;
7962
+ shortages?: import("./types").Json;
7963
+ status?: string;
7964
+ updated_at?: string;
7965
+ user_id: string;
7966
+ };
7967
+ Update: {
7968
+ created_at?: string;
7969
+ customer_name?: string | null;
7970
+ delivery_date?: string | null;
7971
+ email_enabled?: boolean;
7972
+ email_error?: string | null;
7973
+ email_outbox_id?: string | null;
7974
+ email_recipients?: string[];
7975
+ email_sent_at?: string | null;
7976
+ email_status?: string;
7977
+ id?: string;
7978
+ notification_id?: string | null;
7979
+ order_id?: string | null;
7980
+ order_ref?: string;
7981
+ priority?: number;
7982
+ resolved_at?: string | null;
7983
+ resolved_by?: string | null;
7984
+ shortages?: import("./types").Json;
7985
+ status?: string;
7986
+ updated_at?: string;
7987
+ user_id?: string;
7988
+ };
7989
+ Relationships: [];
7990
+ };
7991
+ logistics_strategies: {
7992
+ Row: {
7993
+ color: string;
7994
+ created_at: string;
7995
+ description: string | null;
7996
+ id: string;
7997
+ is_active: boolean;
7998
+ name: string;
7999
+ priority: number;
8000
+ updated_at: string;
8001
+ updated_by: string | null;
8002
+ user_id: string;
8003
+ version: number;
8004
+ };
8005
+ Insert: {
8006
+ color?: string;
7383
8007
  created_at?: string;
7384
8008
  description?: string | null;
7385
8009
  id?: string;
@@ -7454,6 +8078,114 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
7454
8078
  referencedColumns: ["id"];
7455
8079
  }];
7456
8080
  };
8081
+ logistics_tasks: {
8082
+ Row: {
8083
+ buffer_ref: string | null;
8084
+ claimed_at: string | null;
8085
+ claimed_by: string | null;
8086
+ completed_at: string | null;
8087
+ created_at: string;
8088
+ depends_on: string[];
8089
+ due_at: string | null;
8090
+ error: string | null;
8091
+ id: string;
8092
+ order_ref: string;
8093
+ owner_module: string;
8094
+ payload: import("./types").Json;
8095
+ plan_run_id: string | null;
8096
+ planned_end: string | null;
8097
+ planned_start: string | null;
8098
+ priority: number;
8099
+ result: import("./types").Json | null;
8100
+ rule_config_id: string | null;
8101
+ rule_version: number | null;
8102
+ sequence: number;
8103
+ shadow: boolean;
8104
+ started_at: string | null;
8105
+ status: string;
8106
+ strategy_id: string | null;
8107
+ task_type: string;
8108
+ updated_at: string;
8109
+ user_id: string;
8110
+ };
8111
+ Insert: {
8112
+ buffer_ref?: string | null;
8113
+ claimed_at?: string | null;
8114
+ claimed_by?: string | null;
8115
+ completed_at?: string | null;
8116
+ created_at?: string;
8117
+ depends_on?: string[];
8118
+ due_at?: string | null;
8119
+ error?: string | null;
8120
+ id?: string;
8121
+ order_ref: string;
8122
+ owner_module: string;
8123
+ payload?: import("./types").Json;
8124
+ plan_run_id?: string | null;
8125
+ planned_end?: string | null;
8126
+ planned_start?: string | null;
8127
+ priority?: number;
8128
+ result?: import("./types").Json | null;
8129
+ rule_config_id?: string | null;
8130
+ rule_version?: number | null;
8131
+ sequence?: number;
8132
+ shadow?: boolean;
8133
+ started_at?: string | null;
8134
+ status?: string;
8135
+ strategy_id?: string | null;
8136
+ task_type: string;
8137
+ updated_at?: string;
8138
+ user_id?: string;
8139
+ };
8140
+ Update: {
8141
+ buffer_ref?: string | null;
8142
+ claimed_at?: string | null;
8143
+ claimed_by?: string | null;
8144
+ completed_at?: string | null;
8145
+ created_at?: string;
8146
+ depends_on?: string[];
8147
+ due_at?: string | null;
8148
+ error?: string | null;
8149
+ id?: string;
8150
+ order_ref?: string;
8151
+ owner_module?: string;
8152
+ payload?: import("./types").Json;
8153
+ plan_run_id?: string | null;
8154
+ planned_end?: string | null;
8155
+ planned_start?: string | null;
8156
+ priority?: number;
8157
+ result?: import("./types").Json | null;
8158
+ rule_config_id?: string | null;
8159
+ rule_version?: number | null;
8160
+ sequence?: number;
8161
+ shadow?: boolean;
8162
+ started_at?: string | null;
8163
+ status?: string;
8164
+ strategy_id?: string | null;
8165
+ task_type?: string;
8166
+ updated_at?: string;
8167
+ user_id?: string;
8168
+ };
8169
+ Relationships: [{
8170
+ foreignKeyName: "logistics_tasks_plan_run_id_fkey";
8171
+ columns: ["plan_run_id"];
8172
+ isOneToOne: false;
8173
+ referencedRelation: "logistics_plan_runs";
8174
+ referencedColumns: ["id"];
8175
+ }, {
8176
+ foreignKeyName: "logistics_tasks_rule_config_id_fkey";
8177
+ columns: ["rule_config_id"];
8178
+ isOneToOne: false;
8179
+ referencedRelation: "logistics_rule_configs";
8180
+ referencedColumns: ["id"];
8181
+ }, {
8182
+ foreignKeyName: "logistics_tasks_strategy_id_fkey";
8183
+ columns: ["strategy_id"];
8184
+ isOneToOne: false;
8185
+ referencedRelation: "logistics_strategies";
8186
+ referencedColumns: ["id"];
8187
+ }];
8188
+ };
7457
8189
  logistics_variables: {
7458
8190
  Row: {
7459
8191
  created_at: string;
@@ -8048,6 +8780,24 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
8048
8780
  };
8049
8781
  Relationships: [];
8050
8782
  };
8783
+ module_runtime_config: {
8784
+ Row: {
8785
+ key: string;
8786
+ updated_at: string;
8787
+ value: string;
8788
+ };
8789
+ Insert: {
8790
+ key: string;
8791
+ updated_at?: string;
8792
+ value: string;
8793
+ };
8794
+ Update: {
8795
+ key?: string;
8796
+ updated_at?: string;
8797
+ value?: string;
8798
+ };
8799
+ Relationships: [];
8800
+ };
8051
8801
  modules: {
8052
8802
  Row: {
8053
8803
  created_at: string;
@@ -8848,6 +9598,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
8848
9598
  };
8849
9599
  order_cart_items: {
8850
9600
  Row: {
9601
+ boxes: number | null;
8851
9602
  cart_id: string;
8852
9603
  crates: number;
8853
9604
  crates_per_layer: number;
@@ -8860,8 +9611,10 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
8860
9611
  plants_per_crate: number;
8861
9612
  product_id: string | null;
8862
9613
  product_name: string;
9614
+ weight_kg: number | null;
8863
9615
  };
8864
9616
  Insert: {
9617
+ boxes?: number | null;
8865
9618
  cart_id: string;
8866
9619
  crates: number;
8867
9620
  crates_per_layer?: number;
@@ -8874,8 +9627,10 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
8874
9627
  plants_per_crate?: number;
8875
9628
  product_id?: string | null;
8876
9629
  product_name: string;
9630
+ weight_kg?: number | null;
8877
9631
  };
8878
9632
  Update: {
9633
+ boxes?: number | null;
8879
9634
  cart_id?: string;
8880
9635
  crates?: number;
8881
9636
  crates_per_layer?: number;
@@ -8888,6 +9643,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
8888
9643
  plants_per_crate?: number;
8889
9644
  product_id?: string | null;
8890
9645
  product_name?: string;
9646
+ weight_kg?: number | null;
8891
9647
  };
8892
9648
  Relationships: [{
8893
9649
  foreignKeyName: "order_cart_items_cart_id_fkey";
@@ -8913,47 +9669,59 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
8913
9669
  Row: {
8914
9670
  algorithm_version: number;
8915
9671
  buffer_id: string | null;
9672
+ carrier_type: string;
9673
+ carrier_type_id: string | null;
8916
9674
  cart_number: number;
8917
9675
  created_at: string;
8918
9676
  id: string;
8919
9677
  is_auto: boolean;
8920
9678
  is_complete: boolean;
9679
+ max_layers: number | null;
8921
9680
  notes: string | null;
8922
9681
  occupancy_pct: number;
8923
9682
  order_id: string | null;
8924
9683
  source: string;
8925
9684
  total_layers_used: number;
8926
9685
  updated_at: string;
9686
+ weight_kg: number | null;
8927
9687
  };
8928
9688
  Insert: {
8929
9689
  algorithm_version?: number;
8930
9690
  buffer_id?: string | null;
9691
+ carrier_type?: string;
9692
+ carrier_type_id?: string | null;
8931
9693
  cart_number: number;
8932
9694
  created_at?: string;
8933
9695
  id?: string;
8934
9696
  is_auto?: boolean;
8935
9697
  is_complete?: boolean;
9698
+ max_layers?: number | null;
8936
9699
  notes?: string | null;
8937
9700
  occupancy_pct?: number;
8938
9701
  order_id?: string | null;
8939
9702
  source?: string;
8940
9703
  total_layers_used?: number;
8941
9704
  updated_at?: string;
9705
+ weight_kg?: number | null;
8942
9706
  };
8943
9707
  Update: {
8944
9708
  algorithm_version?: number;
8945
9709
  buffer_id?: string | null;
9710
+ carrier_type?: string;
9711
+ carrier_type_id?: string | null;
8946
9712
  cart_number?: number;
8947
9713
  created_at?: string;
8948
9714
  id?: string;
8949
9715
  is_auto?: boolean;
8950
9716
  is_complete?: boolean;
9717
+ max_layers?: number | null;
8951
9718
  notes?: string | null;
8952
9719
  occupancy_pct?: number;
8953
9720
  order_id?: string | null;
8954
9721
  source?: string;
8955
9722
  total_layers_used?: number;
8956
9723
  updated_at?: string;
9724
+ weight_kg?: number | null;
8957
9725
  };
8958
9726
  Relationships: [{
8959
9727
  foreignKeyName: "order_carts_buffer_id_fkey";
@@ -8961,6 +9729,12 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
8961
9729
  isOneToOne: false;
8962
9730
  referencedRelation: "order_buffers";
8963
9731
  referencedColumns: ["id"];
9732
+ }, {
9733
+ foreignKeyName: "order_carts_carrier_type_id_fkey";
9734
+ columns: ["carrier_type_id"];
9735
+ isOneToOne: false;
9736
+ referencedRelation: "load_carrier_types";
9737
+ referencedColumns: ["id"];
8964
9738
  }, {
8965
9739
  foreignKeyName: "order_carts_order_id_fkey";
8966
9740
  columns: ["order_id"];
@@ -10100,6 +10874,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
10100
10874
  lock_timeout_seconds: number;
10101
10875
  name: string;
10102
10876
  require_country_selection: boolean;
10877
+ slug: string | null;
10103
10878
  sort_order: number;
10104
10879
  sort_rules: import("./types").Json;
10105
10880
  task_id: string | null;
@@ -10120,6 +10895,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
10120
10895
  lock_timeout_seconds?: number;
10121
10896
  name: string;
10122
10897
  require_country_selection?: boolean;
10898
+ slug?: string | null;
10123
10899
  sort_order?: number;
10124
10900
  sort_rules?: import("./types").Json;
10125
10901
  task_id?: string | null;
@@ -10140,6 +10916,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
10140
10916
  lock_timeout_seconds?: number;
10141
10917
  name?: string;
10142
10918
  require_country_selection?: boolean;
10919
+ slug?: string | null;
10143
10920
  sort_order?: number;
10144
10921
  sort_rules?: import("./types").Json;
10145
10922
  task_id?: string | null;
@@ -10673,7 +11450,55 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
10673
11450
  };
10674
11451
  Relationships: [];
10675
11452
  };
10676
- product_bom_items: {
11453
+ product_bom_external_items: {
11454
+ Row: {
11455
+ created_at: string;
11456
+ id: string;
11457
+ name: string;
11458
+ packing_configuration_id: string | null;
11459
+ parent_product_id: string | null;
11460
+ parent_trade_item_floriday_id: string | null;
11461
+ quantity: number;
11462
+ sort_order: number;
11463
+ tenant_id: string;
11464
+ unit: string;
11465
+ updated_at: string;
11466
+ };
11467
+ Insert: {
11468
+ created_at?: string;
11469
+ id?: string;
11470
+ name: string;
11471
+ packing_configuration_id?: string | null;
11472
+ parent_product_id?: string | null;
11473
+ parent_trade_item_floriday_id?: string | null;
11474
+ quantity?: number;
11475
+ sort_order?: number;
11476
+ tenant_id: string;
11477
+ unit?: string;
11478
+ updated_at?: string;
11479
+ };
11480
+ Update: {
11481
+ created_at?: string;
11482
+ id?: string;
11483
+ name?: string;
11484
+ packing_configuration_id?: string | null;
11485
+ parent_product_id?: string | null;
11486
+ parent_trade_item_floriday_id?: string | null;
11487
+ quantity?: number;
11488
+ sort_order?: number;
11489
+ tenant_id?: string;
11490
+ unit?: string;
11491
+ updated_at?: string;
11492
+ };
11493
+ Relationships: [{
11494
+ foreignKeyName: "product_bom_external_items_parent_product_id_fkey";
11495
+ columns: ["parent_product_id"];
11496
+ isOneToOne: false;
11497
+ referencedRelation: "products";
11498
+ referencedColumns: ["id"];
11499
+ }];
11500
+ };
11501
+ product_bom_items: {
10677
11502
  Row: {
10678
11503
  component_product_id: string | null;
10679
11504
  component_trade_item_floriday_id: string | null;
@@ -11909,6 +12734,270 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
11909
12734
  };
11910
12735
  Relationships: [];
11911
12736
  };
12737
+ scan_kar_items: {
12738
+ Row: {
12739
+ barcode: string;
12740
+ id: string;
12741
+ kar_id: string;
12742
+ pakbon_id: string;
12743
+ pakbon_item_id: string;
12744
+ product_id: string | null;
12745
+ product_name: string;
12746
+ quantity: number;
12747
+ scanned_at: string;
12748
+ scanned_by: string | null;
12749
+ };
12750
+ Insert: {
12751
+ barcode: string;
12752
+ id?: string;
12753
+ kar_id: string;
12754
+ pakbon_id: string;
12755
+ pakbon_item_id: string;
12756
+ product_id?: string | null;
12757
+ product_name: string;
12758
+ quantity?: number;
12759
+ scanned_at?: string;
12760
+ scanned_by?: string | null;
12761
+ };
12762
+ Update: {
12763
+ barcode?: string;
12764
+ id?: string;
12765
+ kar_id?: string;
12766
+ pakbon_id?: string;
12767
+ pakbon_item_id?: string;
12768
+ product_id?: string | null;
12769
+ product_name?: string;
12770
+ quantity?: number;
12771
+ scanned_at?: string;
12772
+ scanned_by?: string | null;
12773
+ };
12774
+ Relationships: [{
12775
+ foreignKeyName: "scan_kar_items_kar_id_fkey";
12776
+ columns: ["kar_id"];
12777
+ isOneToOne: false;
12778
+ referencedRelation: "scan_karren";
12779
+ referencedColumns: ["id"];
12780
+ }, {
12781
+ foreignKeyName: "scan_kar_items_pakbon_id_fkey";
12782
+ columns: ["pakbon_id"];
12783
+ isOneToOne: false;
12784
+ referencedRelation: "scan_pakbonnen";
12785
+ referencedColumns: ["id"];
12786
+ }, {
12787
+ foreignKeyName: "scan_kar_items_pakbon_item_id_fkey";
12788
+ columns: ["pakbon_item_id"];
12789
+ isOneToOne: false;
12790
+ referencedRelation: "scan_pakbon_items";
12791
+ referencedColumns: ["id"];
12792
+ }];
12793
+ };
12794
+ scan_kar_pakbonnen: {
12795
+ Row: {
12796
+ created_at: string;
12797
+ id: string;
12798
+ kar_id: string;
12799
+ pakbon_id: string;
12800
+ };
12801
+ Insert: {
12802
+ created_at?: string;
12803
+ id?: string;
12804
+ kar_id: string;
12805
+ pakbon_id: string;
12806
+ };
12807
+ Update: {
12808
+ created_at?: string;
12809
+ id?: string;
12810
+ kar_id?: string;
12811
+ pakbon_id?: string;
12812
+ };
12813
+ Relationships: [{
12814
+ foreignKeyName: "scan_kar_pakbonnen_kar_id_fkey";
12815
+ columns: ["kar_id"];
12816
+ isOneToOne: false;
12817
+ referencedRelation: "scan_karren";
12818
+ referencedColumns: ["id"];
12819
+ }, {
12820
+ foreignKeyName: "scan_kar_pakbonnen_pakbon_id_fkey";
12821
+ columns: ["pakbon_id"];
12822
+ isOneToOne: false;
12823
+ referencedRelation: "scan_pakbonnen";
12824
+ referencedColumns: ["id"];
12825
+ }];
12826
+ };
12827
+ scan_karren: {
12828
+ Row: {
12829
+ afgerond_op: string | null;
12830
+ buffer_key: string | null;
12831
+ created_at: string;
12832
+ customer_names: string[];
12833
+ geprint: boolean;
12834
+ geprint_op: string | null;
12835
+ id: string;
12836
+ kar_nummer: string;
12837
+ medewerker_id: string | null;
12838
+ medewerker_naam: string | null;
12839
+ naar_pickstation: boolean;
12840
+ naar_pickstation_op: string | null;
12841
+ order_number: string | null;
12842
+ scanner_key: string;
12843
+ status: string;
12844
+ totaal_producten: number;
12845
+ updated_at: string;
12846
+ };
12847
+ Insert: {
12848
+ afgerond_op?: string | null;
12849
+ buffer_key?: string | null;
12850
+ created_at?: string;
12851
+ customer_names?: string[];
12852
+ geprint?: boolean;
12853
+ geprint_op?: string | null;
12854
+ id?: string;
12855
+ kar_nummer?: string;
12856
+ medewerker_id?: string | null;
12857
+ medewerker_naam?: string | null;
12858
+ naar_pickstation?: boolean;
12859
+ naar_pickstation_op?: string | null;
12860
+ order_number?: string | null;
12861
+ scanner_key?: string;
12862
+ status?: string;
12863
+ totaal_producten?: number;
12864
+ updated_at?: string;
12865
+ };
12866
+ Update: {
12867
+ afgerond_op?: string | null;
12868
+ buffer_key?: string | null;
12869
+ created_at?: string;
12870
+ customer_names?: string[];
12871
+ geprint?: boolean;
12872
+ geprint_op?: string | null;
12873
+ id?: string;
12874
+ kar_nummer?: string;
12875
+ medewerker_id?: string | null;
12876
+ medewerker_naam?: string | null;
12877
+ naar_pickstation?: boolean;
12878
+ naar_pickstation_op?: string | null;
12879
+ order_number?: string | null;
12880
+ scanner_key?: string;
12881
+ status?: string;
12882
+ totaal_producten?: number;
12883
+ updated_at?: string;
12884
+ };
12885
+ Relationships: [];
12886
+ };
12887
+ scan_logs: {
12888
+ Row: {
12889
+ code: string;
12890
+ created_at: string;
12891
+ id: string;
12892
+ kar_id: string | null;
12893
+ message: string | null;
12894
+ result: string;
12895
+ scanner_key: string;
12896
+ user_id: string | null;
12897
+ };
12898
+ Insert: {
12899
+ code: string;
12900
+ created_at?: string;
12901
+ id?: string;
12902
+ kar_id?: string | null;
12903
+ message?: string | null;
12904
+ result: string;
12905
+ scanner_key?: string;
12906
+ user_id?: string | null;
12907
+ };
12908
+ Update: {
12909
+ code?: string;
12910
+ created_at?: string;
12911
+ id?: string;
12912
+ kar_id?: string | null;
12913
+ message?: string | null;
12914
+ result?: string;
12915
+ scanner_key?: string;
12916
+ user_id?: string | null;
12917
+ };
12918
+ Relationships: [];
12919
+ };
12920
+ scan_pakbon_items: {
12921
+ Row: {
12922
+ barcode: string;
12923
+ created_at: string;
12924
+ id: string;
12925
+ pakbon_id: string;
12926
+ product_id: string | null;
12927
+ product_name: string;
12928
+ quantity: number;
12929
+ scanned_quantity: number;
12930
+ };
12931
+ Insert: {
12932
+ barcode: string;
12933
+ created_at?: string;
12934
+ id?: string;
12935
+ pakbon_id: string;
12936
+ product_id?: string | null;
12937
+ product_name: string;
12938
+ quantity?: number;
12939
+ scanned_quantity?: number;
12940
+ };
12941
+ Update: {
12942
+ barcode?: string;
12943
+ created_at?: string;
12944
+ id?: string;
12945
+ pakbon_id?: string;
12946
+ product_id?: string | null;
12947
+ product_name?: string;
12948
+ quantity?: number;
12949
+ scanned_quantity?: number;
12950
+ };
12951
+ Relationships: [{
12952
+ foreignKeyName: "scan_pakbon_items_pakbon_id_fkey";
12953
+ columns: ["pakbon_id"];
12954
+ isOneToOne: false;
12955
+ referencedRelation: "scan_pakbonnen";
12956
+ referencedColumns: ["id"];
12957
+ }];
12958
+ };
12959
+ scan_pakbonnen: {
12960
+ Row: {
12961
+ barcode: string;
12962
+ buffer_key: string | null;
12963
+ created_at: string;
12964
+ customer_name: string;
12965
+ id: string;
12966
+ order_id: string | null;
12967
+ order_number: string;
12968
+ pakbon_nummer: string;
12969
+ printed_at: string;
12970
+ status: string;
12971
+ updated_at: string;
12972
+ };
12973
+ Insert: {
12974
+ barcode: string;
12975
+ buffer_key?: string | null;
12976
+ created_at?: string;
12977
+ customer_name: string;
12978
+ id?: string;
12979
+ order_id?: string | null;
12980
+ order_number: string;
12981
+ pakbon_nummer: string;
12982
+ printed_at?: string;
12983
+ status?: string;
12984
+ updated_at?: string;
12985
+ };
12986
+ Update: {
12987
+ barcode?: string;
12988
+ buffer_key?: string | null;
12989
+ created_at?: string;
12990
+ customer_name?: string;
12991
+ id?: string;
12992
+ order_id?: string | null;
12993
+ order_number?: string;
12994
+ pakbon_nummer?: string;
12995
+ printed_at?: string;
12996
+ status?: string;
12997
+ updated_at?: string;
12998
+ };
12999
+ Relationships: [];
13000
+ };
11912
13001
  sidebar_config: {
11913
13002
  Row: {
11914
13003
  id: string;
@@ -12587,6 +13676,24 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
12587
13676
  };
12588
13677
  Relationships: [];
12589
13678
  };
13679
+ twinfield_cron_auth: {
13680
+ Row: {
13681
+ created_at: string;
13682
+ id: number;
13683
+ secret: string;
13684
+ };
13685
+ Insert: {
13686
+ created_at?: string;
13687
+ id?: number;
13688
+ secret?: string;
13689
+ };
13690
+ Update: {
13691
+ created_at?: string;
13692
+ id?: number;
13693
+ secret?: string;
13694
+ };
13695
+ Relationships: [];
13696
+ };
12590
13697
  twinfield_customers: {
12591
13698
  Row: {
12592
13699
  address: string | null;
@@ -12848,6 +13955,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
12848
13955
  default_invoice_type: string;
12849
13956
  default_payment_term_days: number;
12850
13957
  default_vat_code: string;
13958
+ home_country_code: string;
12851
13959
  invoice_enabled_ao: boolean;
12852
13960
  invoice_enabled_fo: boolean;
12853
13961
  invoice_enabled_ho: boolean;
@@ -12856,6 +13964,8 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
12856
13964
  payment_journal_code: string;
12857
13965
  updated_at: string;
12858
13966
  user_id: string;
13967
+ vat_code_eu_reverse: string | null;
13968
+ vat_code_export: string | null;
12859
13969
  };
12860
13970
  Insert: {
12861
13971
  created_at?: string;
@@ -12865,6 +13975,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
12865
13975
  default_invoice_type?: string;
12866
13976
  default_payment_term_days?: number;
12867
13977
  default_vat_code?: string;
13978
+ home_country_code?: string;
12868
13979
  invoice_enabled_ao?: boolean;
12869
13980
  invoice_enabled_fo?: boolean;
12870
13981
  invoice_enabled_ho?: boolean;
@@ -12873,6 +13984,8 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
12873
13984
  payment_journal_code?: string;
12874
13985
  updated_at?: string;
12875
13986
  user_id: string;
13987
+ vat_code_eu_reverse?: string | null;
13988
+ vat_code_export?: string | null;
12876
13989
  };
12877
13990
  Update: {
12878
13991
  created_at?: string;
@@ -12882,6 +13995,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
12882
13995
  default_invoice_type?: string;
12883
13996
  default_payment_term_days?: number;
12884
13997
  default_vat_code?: string;
13998
+ home_country_code?: string;
12885
13999
  invoice_enabled_ao?: boolean;
12886
14000
  invoice_enabled_fo?: boolean;
12887
14001
  invoice_enabled_ho?: boolean;
@@ -12890,6 +14004,8 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
12890
14004
  payment_journal_code?: string;
12891
14005
  updated_at?: string;
12892
14006
  user_id?: string;
14007
+ vat_code_eu_reverse?: string | null;
14008
+ vat_code_export?: string | null;
12893
14009
  };
12894
14010
  Relationships: [];
12895
14011
  };
@@ -13091,46 +14207,124 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
13091
14207
  referencedColumns: ["id"];
13092
14208
  }];
13093
14209
  };
13094
- twinfield_push_queue: {
14210
+ twinfield_ledger_accounts_cache: {
13095
14211
  Row: {
13096
- action: string;
13097
- attempts: number;
13098
- connection_id: string;
14212
+ code: string;
14213
+ connection_id: string | null;
13099
14214
  created_at: string;
13100
- customer_id: string | null;
13101
- external_id: string | null;
14215
+ dim_type: string;
14216
+ fetched_at: string;
13102
14217
  id: string;
13103
- idempotency_key: string;
13104
- last_error: string | null;
13105
- next_attempt_at: string;
13106
- office_code: string | null;
13107
- payload: import("./types").Json;
13108
- status: string;
14218
+ is_active: boolean;
14219
+ name: string | null;
14220
+ office_code: string;
13109
14221
  updated_at: string;
13110
14222
  };
13111
14223
  Insert: {
13112
- action?: string;
13113
- attempts?: number;
13114
- connection_id: string;
14224
+ code: string;
14225
+ connection_id?: string | null;
13115
14226
  created_at?: string;
13116
- customer_id?: string | null;
13117
- external_id?: string | null;
14227
+ dim_type?: string;
14228
+ fetched_at?: string;
13118
14229
  id?: string;
13119
- idempotency_key: string;
13120
- last_error?: string | null;
13121
- next_attempt_at?: string;
13122
- office_code?: string | null;
13123
- payload: import("./types").Json;
13124
- status?: string;
14230
+ is_active?: boolean;
14231
+ name?: string | null;
14232
+ office_code: string;
13125
14233
  updated_at?: string;
13126
14234
  };
13127
14235
  Update: {
13128
- action?: string;
13129
- attempts?: number;
13130
- connection_id?: string;
14236
+ code?: string;
14237
+ connection_id?: string | null;
13131
14238
  created_at?: string;
13132
- customer_id?: string | null;
13133
- external_id?: string | null;
14239
+ dim_type?: string;
14240
+ fetched_at?: string;
14241
+ id?: string;
14242
+ is_active?: boolean;
14243
+ name?: string | null;
14244
+ office_code?: string;
14245
+ updated_at?: string;
14246
+ };
14247
+ Relationships: [];
14248
+ };
14249
+ twinfield_push_log: {
14250
+ Row: {
14251
+ created_at: string;
14252
+ customer_id: string | null;
14253
+ id: string;
14254
+ message: string | null;
14255
+ office_code: string | null;
14256
+ ok: boolean;
14257
+ queue_id: string | null;
14258
+ request_xml: string | null;
14259
+ response_raw: string | null;
14260
+ twinfield_code: string | null;
14261
+ };
14262
+ Insert: {
14263
+ created_at?: string;
14264
+ customer_id?: string | null;
14265
+ id?: string;
14266
+ message?: string | null;
14267
+ office_code?: string | null;
14268
+ ok?: boolean;
14269
+ queue_id?: string | null;
14270
+ request_xml?: string | null;
14271
+ response_raw?: string | null;
14272
+ twinfield_code?: string | null;
14273
+ };
14274
+ Update: {
14275
+ created_at?: string;
14276
+ customer_id?: string | null;
14277
+ id?: string;
14278
+ message?: string | null;
14279
+ office_code?: string | null;
14280
+ ok?: boolean;
14281
+ queue_id?: string | null;
14282
+ request_xml?: string | null;
14283
+ response_raw?: string | null;
14284
+ twinfield_code?: string | null;
14285
+ };
14286
+ Relationships: [];
14287
+ };
14288
+ twinfield_push_queue: {
14289
+ Row: {
14290
+ action: string;
14291
+ attempts: number;
14292
+ connection_id: string | null;
14293
+ created_at: string;
14294
+ customer_id: string | null;
14295
+ external_id: string | null;
14296
+ id: string;
14297
+ idempotency_key: string;
14298
+ last_error: string | null;
14299
+ next_attempt_at: string;
14300
+ office_code: string | null;
14301
+ payload: import("./types").Json;
14302
+ status: string;
14303
+ updated_at: string;
14304
+ };
14305
+ Insert: {
14306
+ action?: string;
14307
+ attempts?: number;
14308
+ connection_id?: string | null;
14309
+ created_at?: string;
14310
+ customer_id?: string | null;
14311
+ external_id?: string | null;
14312
+ id?: string;
14313
+ idempotency_key: string;
14314
+ last_error?: string | null;
14315
+ next_attempt_at?: string;
14316
+ office_code?: string | null;
14317
+ payload: import("./types").Json;
14318
+ status?: string;
14319
+ updated_at?: string;
14320
+ };
14321
+ Update: {
14322
+ action?: string;
14323
+ attempts?: number;
14324
+ connection_id?: string | null;
14325
+ created_at?: string;
14326
+ customer_id?: string | null;
14327
+ external_id?: string | null;
13134
14328
  id?: string;
13135
14329
  idempotency_key?: string;
13136
14330
  last_error?: string | null;
@@ -13181,6 +14375,27 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
13181
14375
  };
13182
14376
  Relationships: [];
13183
14377
  };
14378
+ twinfield_revoked_accounts: {
14379
+ Row: {
14380
+ account_key: string;
14381
+ last_revoke_error: string | null;
14382
+ revoked_at: string;
14383
+ user_id: string;
14384
+ };
14385
+ Insert: {
14386
+ account_key: string;
14387
+ last_revoke_error?: string | null;
14388
+ revoked_at?: string;
14389
+ user_id: string;
14390
+ };
14391
+ Update: {
14392
+ account_key?: string;
14393
+ last_revoke_error?: string | null;
14394
+ revoked_at?: string;
14395
+ user_id?: string;
14396
+ };
14397
+ Relationships: [];
14398
+ };
13184
14399
  twinfield_session_cache: {
13185
14400
  Row: {
13186
14401
  cluster: string;
@@ -13436,6 +14651,162 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
13436
14651
  };
13437
14652
  Relationships: [];
13438
14653
  };
14654
+ voorraad_publish_jobs: {
14655
+ Row: {
14656
+ connection_id: string | null;
14657
+ created_at: string;
14658
+ environment: string;
14659
+ finished_at: string | null;
14660
+ id: string;
14661
+ intent: string;
14662
+ product_id: string | null;
14663
+ reference_code: string;
14664
+ snapshot: import("./types").Json;
14665
+ status: string;
14666
+ summary: import("./types").Json;
14667
+ title: string | null;
14668
+ trade_item_id: string | null;
14669
+ trade_item_key: string | null;
14670
+ updated_at: string;
14671
+ user_id: string;
14672
+ };
14673
+ Insert: {
14674
+ connection_id?: string | null;
14675
+ created_at?: string;
14676
+ environment?: string;
14677
+ finished_at?: string | null;
14678
+ id?: string;
14679
+ intent?: string;
14680
+ product_id?: string | null;
14681
+ reference_code?: string;
14682
+ snapshot?: import("./types").Json;
14683
+ status?: string;
14684
+ summary?: import("./types").Json;
14685
+ title?: string | null;
14686
+ trade_item_id?: string | null;
14687
+ trade_item_key?: string | null;
14688
+ updated_at?: string;
14689
+ user_id: string;
14690
+ };
14691
+ Update: {
14692
+ connection_id?: string | null;
14693
+ created_at?: string;
14694
+ environment?: string;
14695
+ finished_at?: string | null;
14696
+ id?: string;
14697
+ intent?: string;
14698
+ product_id?: string | null;
14699
+ reference_code?: string;
14700
+ snapshot?: import("./types").Json;
14701
+ status?: string;
14702
+ summary?: import("./types").Json;
14703
+ title?: string | null;
14704
+ trade_item_id?: string | null;
14705
+ trade_item_key?: string | null;
14706
+ updated_at?: string;
14707
+ user_id?: string;
14708
+ };
14709
+ Relationships: [];
14710
+ };
14711
+ voorraad_publish_learnings: {
14712
+ Row: {
14713
+ created_at: string;
14714
+ field_key: string;
14715
+ hits: number;
14716
+ id: string;
14717
+ label: string | null;
14718
+ last_error: string | null;
14719
+ scope: string;
14720
+ updated_at: string;
14721
+ vbn_code: string;
14722
+ };
14723
+ Insert: {
14724
+ created_at?: string;
14725
+ field_key: string;
14726
+ hits?: number;
14727
+ id?: string;
14728
+ label?: string | null;
14729
+ last_error?: string | null;
14730
+ scope?: string;
14731
+ updated_at?: string;
14732
+ vbn_code: string;
14733
+ };
14734
+ Update: {
14735
+ created_at?: string;
14736
+ field_key?: string;
14737
+ hits?: number;
14738
+ id?: string;
14739
+ label?: string | null;
14740
+ last_error?: string | null;
14741
+ scope?: string;
14742
+ updated_at?: string;
14743
+ vbn_code?: string;
14744
+ };
14745
+ Relationships: [];
14746
+ };
14747
+ voorraad_publish_steps: {
14748
+ Row: {
14749
+ attempts: number;
14750
+ created_at: string;
14751
+ error_code: string | null;
14752
+ error_detail: string | null;
14753
+ error_message: string | null;
14754
+ finished_at: string | null;
14755
+ id: string;
14756
+ job_id: string;
14757
+ label: string;
14758
+ position: number;
14759
+ result: import("./types").Json | null;
14760
+ started_at: string | null;
14761
+ status: string;
14762
+ step_key: string;
14763
+ updated_at: string;
14764
+ user_id: string;
14765
+ };
14766
+ Insert: {
14767
+ attempts?: number;
14768
+ created_at?: string;
14769
+ error_code?: string | null;
14770
+ error_detail?: string | null;
14771
+ error_message?: string | null;
14772
+ finished_at?: string | null;
14773
+ id?: string;
14774
+ job_id: string;
14775
+ label: string;
14776
+ position?: number;
14777
+ result?: import("./types").Json | null;
14778
+ started_at?: string | null;
14779
+ status?: string;
14780
+ step_key: string;
14781
+ updated_at?: string;
14782
+ user_id: string;
14783
+ };
14784
+ Update: {
14785
+ attempts?: number;
14786
+ created_at?: string;
14787
+ error_code?: string | null;
14788
+ error_detail?: string | null;
14789
+ error_message?: string | null;
14790
+ finished_at?: string | null;
14791
+ id?: string;
14792
+ job_id?: string;
14793
+ label?: string;
14794
+ position?: number;
14795
+ result?: import("./types").Json | null;
14796
+ started_at?: string | null;
14797
+ status?: string;
14798
+ step_key?: string;
14799
+ updated_at?: string;
14800
+ user_id?: string;
14801
+ };
14802
+ Relationships: [{
14803
+ foreignKeyName: "voorraad_publish_steps_job_id_fkey";
14804
+ columns: ["job_id"];
14805
+ isOneToOne: false;
14806
+ referencedRelation: "voorraad_publish_jobs";
14807
+ referencedColumns: ["id"];
14808
+ }];
14809
+ };
13439
14810
  werkbon_package_ai_rules: {
13440
14811
  Row: {
13441
14812
  active: boolean;
@@ -14699,12 +16070,13 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
14699
16070
  };
14700
16071
  claim_twinfield_push_batch: {
14701
16072
  Args: {
16073
+ _customer_id?: string;
14702
16074
  _limit?: number;
14703
16075
  };
14704
16076
  Returns: {
14705
16077
  action: string;
14706
16078
  attempts: number;
14707
- connection_id: string;
16079
+ connection_id: string | null;
14708
16080
  created_at: string;
14709
16081
  customer_id: string | null;
14710
16082
  external_id: string | null;
@@ -14788,6 +16160,15 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
14788
16160
  };
14789
16161
  Returns: import("./types").Json;
14790
16162
  };
16163
+ customer_soft_key: {
16164
+ Args: {
16165
+ _email: string;
16166
+ _house: string;
16167
+ _name: string;
16168
+ _postal: string;
16169
+ };
16170
+ Returns: string;
16171
+ };
14791
16172
  dashboard_alert_counts: {
14792
16173
  Args: never;
14793
16174
  Returns: import("./types").Json;
@@ -15253,6 +16634,403 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
15253
16634
  };
15254
16635
  Returns: string;
15255
16636
  };
16637
+ logistics_address_key: {
16638
+ Args: {
16639
+ p_location: string;
16640
+ };
16641
+ Returns: string;
16642
+ };
16643
+ logistics_allowed_load_carriers: {
16644
+ Args: {
16645
+ p_strategy_id?: string;
16646
+ p_user_id?: string;
16647
+ };
16648
+ Returns: import("./types").Json;
16649
+ };
16650
+ logistics_apply_buffer_decision: {
16651
+ Args: {
16652
+ p_order_id: string;
16653
+ };
16654
+ Returns: string;
16655
+ };
16656
+ logistics_apply_order_buffer: {
16657
+ Args: {
16658
+ p_order_id: string;
16659
+ };
16660
+ Returns: import("./types").Json;
16661
+ };
16662
+ logistics_backorder_allowed: {
16663
+ Args: {
16664
+ p_strategy_id?: string;
16665
+ };
16666
+ Returns: boolean;
16667
+ };
16668
+ logistics_buffer_criteria: {
16669
+ Args: {
16670
+ p_settings: import("./types").Json;
16671
+ };
16672
+ Returns: string[];
16673
+ };
16674
+ logistics_buffer_decision: {
16675
+ Args: {
16676
+ p_order?: import("./types").Json;
16677
+ p_strategy_id?: string;
16678
+ p_user_id?: string;
16679
+ };
16680
+ Returns: import("./types").Json;
16681
+ };
16682
+ logistics_buffer_simulate: {
16683
+ Args: {
16684
+ p_orders?: import("./types").Json;
16685
+ p_strategy_id?: string;
16686
+ };
16687
+ Returns: import("./types").Json;
16688
+ };
16689
+ logistics_buffer_value: {
16690
+ Args: {
16691
+ p_criterion: string;
16692
+ p_order: import("./types").Json;
16693
+ };
16694
+ Returns: string;
16695
+ };
16696
+ logistics_cancel_order: {
16697
+ Args: {
16698
+ p_order_ref: string;
16699
+ p_reason?: string;
16700
+ p_user_id?: string;
16701
+ };
16702
+ Returns: number;
16703
+ };
16704
+ logistics_check_order_allowed: {
16705
+ Args: {
16706
+ p_lines: import("./types").Json;
16707
+ p_strategy_id?: string;
16708
+ };
16709
+ Returns: import("./types").Json;
16710
+ };
16711
+ logistics_check_order_stock: {
16712
+ Args: {
16713
+ p_event_id: string;
16714
+ };
16715
+ Returns: string;
16716
+ };
16717
+ logistics_claim_next_task: {
16718
+ Args: {
16719
+ p_owner_module: string;
16720
+ p_worker?: string;
16721
+ };
16722
+ Returns: {
16723
+ buffer_ref: string | null;
16724
+ claimed_at: string | null;
16725
+ claimed_by: string | null;
16726
+ completed_at: string | null;
16727
+ created_at: string;
16728
+ depends_on: string[];
16729
+ due_at: string | null;
16730
+ error: string | null;
16731
+ id: string;
16732
+ order_ref: string;
16733
+ owner_module: string;
16734
+ payload: import("./types").Json;
16735
+ plan_run_id: string | null;
16736
+ planned_end: string | null;
16737
+ planned_start: string | null;
16738
+ priority: number;
16739
+ result: import("./types").Json | null;
16740
+ rule_config_id: string | null;
16741
+ rule_version: number | null;
16742
+ sequence: number;
16743
+ shadow: boolean;
16744
+ started_at: string | null;
16745
+ status: string;
16746
+ strategy_id: string | null;
16747
+ task_type: string;
16748
+ updated_at: string;
16749
+ user_id: string;
16750
+ };
16751
+ SetofOptions: {
16752
+ from: "*";
16753
+ to: "logistics_tasks";
16754
+ isOneToOne: true;
16755
+ isSetofReturn: false;
16756
+ };
16757
+ };
16758
+ logistics_claim_task: {
16759
+ Args: {
16760
+ p_task_id: string;
16761
+ p_worker?: string;
16762
+ };
16763
+ Returns: {
16764
+ buffer_ref: string | null;
16765
+ claimed_at: string | null;
16766
+ claimed_by: string | null;
16767
+ completed_at: string | null;
16768
+ created_at: string;
16769
+ depends_on: string[];
16770
+ due_at: string | null;
16771
+ error: string | null;
16772
+ id: string;
16773
+ order_ref: string;
16774
+ owner_module: string;
16775
+ payload: import("./types").Json;
16776
+ plan_run_id: string | null;
16777
+ planned_end: string | null;
16778
+ planned_start: string | null;
16779
+ priority: number;
16780
+ result: import("./types").Json | null;
16781
+ rule_config_id: string | null;
16782
+ rule_version: number | null;
16783
+ sequence: number;
16784
+ shadow: boolean;
16785
+ started_at: string | null;
16786
+ status: string;
16787
+ strategy_id: string | null;
16788
+ task_type: string;
16789
+ updated_at: string;
16790
+ user_id: string;
16791
+ };
16792
+ SetofOptions: {
16793
+ from: "*";
16794
+ to: "logistics_tasks";
16795
+ isOneToOne: true;
16796
+ isSetofReturn: false;
16797
+ };
16798
+ };
16799
+ logistics_complete_task: {
16800
+ Args: {
16801
+ p_result?: import("./types").Json;
16802
+ p_task_id: string;
16803
+ };
16804
+ Returns: {
16805
+ buffer_ref: string | null;
16806
+ claimed_at: string | null;
16807
+ claimed_by: string | null;
16808
+ completed_at: string | null;
16809
+ created_at: string;
16810
+ depends_on: string[];
16811
+ due_at: string | null;
16812
+ error: string | null;
16813
+ id: string;
16814
+ order_ref: string;
16815
+ owner_module: string;
16816
+ payload: import("./types").Json;
16817
+ plan_run_id: string | null;
16818
+ planned_end: string | null;
16819
+ planned_start: string | null;
16820
+ priority: number;
16821
+ result: import("./types").Json | null;
16822
+ rule_config_id: string | null;
16823
+ rule_version: number | null;
16824
+ sequence: number;
16825
+ shadow: boolean;
16826
+ started_at: string | null;
16827
+ status: string;
16828
+ strategy_id: string | null;
16829
+ task_type: string;
16830
+ updated_at: string;
16831
+ user_id: string;
16832
+ };
16833
+ SetofOptions: {
16834
+ from: "*";
16835
+ to: "logistics_tasks";
16836
+ isOneToOne: true;
16837
+ isSetofReturn: false;
16838
+ };
16839
+ };
16840
+ logistics_emit_event: {
16841
+ Args: {
16842
+ p_event_type: string;
16843
+ p_idempotency_key?: string;
16844
+ p_order_ref: string;
16845
+ p_payload?: import("./types").Json;
16846
+ p_shadow?: boolean;
16847
+ p_source_module: string;
16848
+ p_strategy_id?: string;
16849
+ };
16850
+ Returns: import("./types").Json;
16851
+ } | {
16852
+ Args: {
16853
+ p_event_type: string;
16854
+ p_idempotency_key?: string;
16855
+ p_order_ref: string;
16856
+ p_payload?: import("./types").Json;
16857
+ p_priority?: number;
16858
+ p_shadow?: boolean;
16859
+ p_source_module: string;
16860
+ p_strategy_id?: string;
16861
+ };
16862
+ Returns: import("./types").Json;
16863
+ };
16864
+ logistics_fail_task: {
16865
+ Args: {
16866
+ p_error: string;
16867
+ p_task_id: string;
16868
+ };
16869
+ Returns: {
16870
+ buffer_ref: string | null;
16871
+ claimed_at: string | null;
16872
+ claimed_by: string | null;
16873
+ completed_at: string | null;
16874
+ created_at: string;
16875
+ depends_on: string[];
16876
+ due_at: string | null;
16877
+ error: string | null;
16878
+ id: string;
16879
+ order_ref: string;
16880
+ owner_module: string;
16881
+ payload: import("./types").Json;
16882
+ plan_run_id: string | null;
16883
+ planned_end: string | null;
16884
+ planned_start: string | null;
16885
+ priority: number;
16886
+ result: import("./types").Json | null;
16887
+ rule_config_id: string | null;
16888
+ rule_version: number | null;
16889
+ sequence: number;
16890
+ shadow: boolean;
16891
+ started_at: string | null;
16892
+ status: string;
16893
+ strategy_id: string | null;
16894
+ task_type: string;
16895
+ updated_at: string;
16896
+ user_id: string;
16897
+ };
16898
+ SetofOptions: {
16899
+ from: "*";
16900
+ to: "logistics_tasks";
16901
+ isOneToOne: true;
16902
+ isSetofReturn: false;
16903
+ };
16904
+ };
16905
+ logistics_not_past: {
16906
+ Args: {
16907
+ p_ts: string;
16908
+ };
16909
+ Returns: string;
16910
+ };
16911
+ logistics_queue_stock_email: {
16912
+ Args: {
16913
+ p_alert_id: string;
16914
+ };
16915
+ Returns: string;
16916
+ };
16917
+ logistics_reapply_buffer_decisions: {
16918
+ Args: never;
16919
+ Returns: number;
16920
+ };
16921
+ logistics_rebuffer_open_orders: {
16922
+ Args: {
16923
+ p_strategy_id?: string;
16924
+ };
16925
+ Returns: import("./types").Json;
16926
+ };
16927
+ logistics_rebuffer_orders: {
16928
+ Args: {
16929
+ p_days?: number;
16930
+ };
16931
+ Returns: import("./types").Json;
16932
+ };
16933
+ logistics_rebuffer_pending: {
16934
+ Args: never;
16935
+ Returns: import("./types").Json;
16936
+ };
16937
+ logistics_rescan_orders: {
16938
+ Args: {
16939
+ p_days?: number;
16940
+ };
16941
+ Returns: number;
16942
+ };
16943
+ logistics_resolve_settings: {
16944
+ Args: {
16945
+ p_config_id: string;
16946
+ p_user_id: string;
16947
+ p_version: number;
16948
+ };
16949
+ Returns: import("./types").Json;
16950
+ };
16951
+ logistics_rule_bool: {
16952
+ Args: {
16953
+ p_default: boolean;
16954
+ p_key: string;
16955
+ p_settings: import("./types").Json;
16956
+ p_step: string;
16957
+ };
16958
+ Returns: boolean;
16959
+ };
16960
+ logistics_rule_num: {
16961
+ Args: {
16962
+ p_default: number;
16963
+ p_key: string;
16964
+ p_settings: import("./types").Json;
16965
+ p_step: string;
16966
+ };
16967
+ Returns: number;
16968
+ };
16969
+ logistics_rule_text: {
16970
+ Args: {
16971
+ p_default: string;
16972
+ p_key: string;
16973
+ p_settings: import("./types").Json;
16974
+ p_step: string;
16975
+ };
16976
+ Returns: string;
16977
+ };
16978
+ logistics_rule_value: {
16979
+ Args: {
16980
+ p_key: string;
16981
+ p_settings: import("./types").Json;
16982
+ p_step: string;
16983
+ };
16984
+ Returns: import("./types").Json;
16985
+ };
16986
+ logistics_scan_order_stock: {
16987
+ Args: {
16988
+ p_order_id: string;
16989
+ };
16990
+ Returns: string;
16991
+ };
16992
+ logistics_set_order_priority: {
16993
+ Args: {
16994
+ p_order_ref: string;
16995
+ p_priority: number;
16996
+ p_user_id?: string;
16997
+ };
16998
+ Returns: number;
16999
+ };
17000
+ logistics_supersede_stale_tasks: {
17001
+ Args: {
17002
+ p_keep: string[];
17003
+ p_order_ref: string;
17004
+ p_run_id: string;
17005
+ p_user_id: string;
17006
+ };
17007
+ Returns: number;
17008
+ };
17009
+ logistics_task_owner: {
17010
+ Args: {
17011
+ p_task_type: string;
17012
+ };
17013
+ Returns: string;
17014
+ };
17015
+ logistics_upsert_task: {
17016
+ Args: {
17017
+ p_buffer_ref: string;
17018
+ p_end: string;
17019
+ p_order_ref: string;
17020
+ p_owner: string;
17021
+ p_payload: import("./types").Json;
17022
+ p_rule_config_id: string;
17023
+ p_rule_version: number;
17024
+ p_run_id: string;
17025
+ p_sequence: number;
17026
+ p_shadow: boolean;
17027
+ p_start: string;
17028
+ p_strategy_id: string;
17029
+ p_task_type: string;
17030
+ p_user_id: string;
17031
+ };
17032
+ Returns: string;
17033
+ };
15256
17034
  mark_offer_clicked: {
15257
17035
  Args: {
15258
17036
  p_code: string;
@@ -15506,6 +17284,13 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
15506
17284
  waiting: number;
15507
17285
  }[];
15508
17286
  };
17287
+ pick_station_slugify: {
17288
+ Args: {
17289
+ _id: string;
17290
+ _name: string;
17291
+ };
17292
+ Returns: string;
17293
+ };
15509
17294
  pickstation_get_orders_raw: {
15510
17295
  Args: never;
15511
17296
  Returns: import("./types").Json;
@@ -15546,6 +17331,12 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
15546
17331
  };
15547
17332
  Returns: undefined;
15548
17333
  };
17334
+ process_logistics_event: {
17335
+ Args: {
17336
+ p_event_id: string;
17337
+ };
17338
+ Returns: string;
17339
+ };
15549
17340
  produce_designed_product: {
15550
17341
  Args: {
15551
17342
  p_parent_id: string;
@@ -15671,6 +17462,14 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
15671
17462
  };
15672
17463
  Returns: import("./types").Json;
15673
17464
  };
17465
+ run_floriday_continuous_stock_sync: {
17466
+ Args: never;
17467
+ Returns: undefined;
17468
+ };
17469
+ run_twinfield_queue_tick: {
17470
+ Args: never;
17471
+ Returns: undefined;
17472
+ };
15674
17473
  schedule_floriday_additional_services_sync: {
15675
17474
  Args: {
15676
17475
  p_apikey: string;
@@ -16002,7 +17801,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
16002
17801
  };
16003
17802
  twinfield_register_cron: {
16004
17803
  Args: {
16005
- apikey: string;
17804
+ apikey?: string;
16006
17805
  base_url: string;
16007
17806
  };
16008
17807
  Returns: import("./types").Json;