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