@flowselections/floriday-voorraad 1.0.28 → 1.0.29

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