@flowselections/floriday-afhandeling-module 1.0.15 → 1.0.17

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 (91) hide show
  1. package/dist-lib/components/afhandeling/LeveringenPage.d.ts.map +1 -1
  2. package/dist-lib/components/afhandeling/LeveringenPage.js +2 -2
  3. package/dist-lib/components/afhandeling/PickAgendaView.d.ts.map +1 -1
  4. package/dist-lib/components/afhandeling/PickAgendaView.js +2 -3
  5. package/dist-lib/components/afhandeling/WeekAgendaView.d.ts.map +1 -1
  6. package/dist-lib/components/afhandeling/WeekAgendaView.js +31 -17
  7. package/dist-lib/components/engine/CapaciteitsmaatregelenPage.d.ts +2 -0
  8. package/dist-lib/components/engine/CapaciteitsmaatregelenPage.d.ts.map +1 -0
  9. package/dist-lib/components/engine/CapaciteitsmaatregelenPage.js +40 -0
  10. package/dist-lib/components/engine/CapaciteitsmonitorPage.d.ts +2 -0
  11. package/dist-lib/components/engine/CapaciteitsmonitorPage.d.ts.map +1 -0
  12. package/dist-lib/components/engine/CapaciteitsmonitorPage.js +49 -0
  13. package/dist-lib/components/engine/FormulesPage.d.ts +2 -0
  14. package/dist-lib/components/engine/FormulesPage.d.ts.map +1 -0
  15. package/dist-lib/components/engine/FormulesPage.js +252 -0
  16. package/dist-lib/components/engine/PlaceholderPage.d.ts +6 -0
  17. package/dist-lib/components/engine/PlaceholderPage.d.ts.map +1 -0
  18. package/dist-lib/components/engine/PlaceholderPage.js +6 -0
  19. package/dist-lib/components/engine/StrategieenPage.d.ts +2 -0
  20. package/dist-lib/components/engine/StrategieenPage.d.ts.map +1 -0
  21. package/dist-lib/components/engine/StrategieenPage.js +80 -0
  22. package/dist-lib/components/pickstation/PickstationPage.d.ts.map +1 -1
  23. package/dist-lib/components/pickstation/PickstationPage.js +16 -4
  24. package/dist-lib/hooks/useOrderPlanning.d.ts.map +1 -1
  25. package/dist-lib/hooks/useOrderPlanning.js +37 -3
  26. package/dist-lib/index.d.ts.map +1 -1
  27. package/dist-lib/index.js +2 -1
  28. package/dist-lib/integrations/supabase/auth-middleware.d.ts +1496 -272
  29. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  30. package/dist-lib/integrations/supabase/client.d.ts +1496 -272
  31. package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
  32. package/dist-lib/integrations/supabase/client.server.d.ts +1496 -272
  33. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  34. package/dist-lib/integrations/supabase/types.d.ts +1523 -266
  35. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  36. package/dist-lib/lib/afhandelingSettings.functions.d.ts +2944 -496
  37. package/dist-lib/lib/afhandelingSettings.functions.d.ts.map +1 -1
  38. package/dist-lib/lib/ai-gateway.server.d.ts +2 -0
  39. package/dist-lib/lib/ai-gateway.server.d.ts.map +1 -0
  40. package/dist-lib/lib/ai-gateway.server.js +11 -0
  41. package/dist-lib/lib/authGateway.server.d.ts +16 -0
  42. package/dist-lib/lib/authGateway.server.d.ts.map +1 -0
  43. package/dist-lib/lib/authGateway.server.js +200 -0
  44. package/dist-lib/lib/carriers.functions.d.ts +7100 -980
  45. package/dist-lib/lib/carriers.functions.d.ts.map +1 -1
  46. package/dist-lib/lib/cartAssignments.functions.d.ts +7100 -980
  47. package/dist-lib/lib/cartAssignments.functions.d.ts.map +1 -1
  48. package/dist-lib/lib/cartControl.functions.d.ts +14630 -2390
  49. package/dist-lib/lib/cartControl.functions.d.ts.map +1 -1
  50. package/dist-lib/lib/floriday.functions.d.ts +1496 -272
  51. package/dist-lib/lib/floriday.functions.d.ts.map +1 -1
  52. package/dist-lib/lib/floriday.functions.js +41 -8
  53. package/dist-lib/lib/logisticsEngine/capacity.functions.d.ts +50282 -0
  54. package/dist-lib/lib/logisticsEngine/capacity.functions.d.ts.map +1 -0
  55. package/dist-lib/lib/logisticsEngine/capacity.functions.js +90 -0
  56. package/dist-lib/lib/logisticsEngine/config.d.ts +140 -0
  57. package/dist-lib/lib/logisticsEngine/config.d.ts.map +1 -0
  58. package/dist-lib/lib/logisticsEngine/config.js +488 -0
  59. package/dist-lib/lib/logisticsEngine/enginePickTime.d.ts +29 -0
  60. package/dist-lib/lib/logisticsEngine/enginePickTime.d.ts.map +1 -0
  61. package/dist-lib/lib/logisticsEngine/enginePickTime.js +136 -0
  62. package/dist-lib/lib/logisticsEngine/evaluate.functions.d.ts +12604 -0
  63. package/dist-lib/lib/logisticsEngine/evaluate.functions.d.ts.map +1 -0
  64. package/dist-lib/lib/logisticsEngine/evaluate.functions.js +104 -0
  65. package/dist-lib/lib/logisticsEngine/expression.d.ts +21 -0
  66. package/dist-lib/lib/logisticsEngine/expression.d.ts.map +1 -0
  67. package/dist-lib/lib/logisticsEngine/expression.js +263 -0
  68. package/dist-lib/lib/logisticsEngine/formulas.functions.d.ts +25164 -0
  69. package/dist-lib/lib/logisticsEngine/formulas.functions.d.ts.map +1 -0
  70. package/dist-lib/lib/logisticsEngine/formulas.functions.js +58 -0
  71. package/dist-lib/lib/logisticsEngine/safetyLayer.d.ts +83 -0
  72. package/dist-lib/lib/logisticsEngine/safetyLayer.d.ts.map +1 -0
  73. package/dist-lib/lib/logisticsEngine/safetyLayer.js +182 -0
  74. package/dist-lib/lib/logisticsEngine/strategies.functions.d.ts +100569 -0
  75. package/dist-lib/lib/logisticsEngine/strategies.functions.d.ts.map +1 -0
  76. package/dist-lib/lib/logisticsEngine/strategies.functions.js +176 -0
  77. package/dist-lib/lib/logisticsEngine/variables.d.ts +29 -0
  78. package/dist-lib/lib/logisticsEngine/variables.d.ts.map +1 -0
  79. package/dist-lib/lib/logisticsEngine/variables.js +144 -0
  80. package/dist-lib/lib/logisticsEngine/wizard.functions.d.ts +50288 -0
  81. package/dist-lib/lib/logisticsEngine/wizard.functions.d.ts.map +1 -0
  82. package/dist-lib/lib/logisticsEngine/wizard.functions.js +175 -0
  83. package/dist-lib/lib/pickstationI18n.d.ts +2 -0
  84. package/dist-lib/lib/pickstationI18n.d.ts.map +1 -1
  85. package/dist-lib/lib/pickstationI18n.js +12 -0
  86. package/dist-lib/lib/pickstationOrders.server.d.ts +5 -0
  87. package/dist-lib/lib/pickstationOrders.server.d.ts.map +1 -1
  88. package/dist-lib/lib/pickstationOrders.server.js +29 -0
  89. package/dist-lib/lib/pickstationTypes.d.ts +4 -0
  90. package/dist-lib/lib/pickstationTypes.d.ts.map +1 -1
  91. package/package.json +24 -4
@@ -242,6 +242,165 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
242
242
  };
243
243
  Relationships: [];
244
244
  };
245
+ ai_credentials: {
246
+ Row: {
247
+ active: boolean;
248
+ api_key: string;
249
+ created_at: string;
250
+ created_by: string | null;
251
+ id: string;
252
+ label: string;
253
+ provider_id: string;
254
+ updated_at: string;
255
+ };
256
+ Insert: {
257
+ active?: boolean;
258
+ api_key: string;
259
+ created_at?: string;
260
+ created_by?: string | null;
261
+ id?: string;
262
+ label: string;
263
+ provider_id: string;
264
+ updated_at?: string;
265
+ };
266
+ Update: {
267
+ active?: boolean;
268
+ api_key?: string;
269
+ created_at?: string;
270
+ created_by?: string | null;
271
+ id?: string;
272
+ label?: string;
273
+ provider_id?: string;
274
+ updated_at?: string;
275
+ };
276
+ Relationships: [{
277
+ foreignKeyName: "ai_credentials_provider_id_fkey";
278
+ columns: ["provider_id"];
279
+ isOneToOne: false;
280
+ referencedRelation: "ai_providers";
281
+ referencedColumns: ["id"];
282
+ }];
283
+ };
284
+ ai_models: {
285
+ Row: {
286
+ active: boolean;
287
+ context_window: number | null;
288
+ created_at: string;
289
+ display_name: string;
290
+ id: string;
291
+ is_default: boolean;
292
+ modality: string;
293
+ provider_id: string;
294
+ slug: string;
295
+ updated_at: string;
296
+ };
297
+ Insert: {
298
+ active?: boolean;
299
+ context_window?: number | null;
300
+ created_at?: string;
301
+ display_name: string;
302
+ id?: string;
303
+ is_default?: boolean;
304
+ modality?: string;
305
+ provider_id: string;
306
+ slug: string;
307
+ updated_at?: string;
308
+ };
309
+ Update: {
310
+ active?: boolean;
311
+ context_window?: number | null;
312
+ created_at?: string;
313
+ display_name?: string;
314
+ id?: string;
315
+ is_default?: boolean;
316
+ modality?: string;
317
+ provider_id?: string;
318
+ slug?: string;
319
+ updated_at?: string;
320
+ };
321
+ Relationships: [{
322
+ foreignKeyName: "ai_models_provider_id_fkey";
323
+ columns: ["provider_id"];
324
+ isOneToOne: false;
325
+ referencedRelation: "ai_providers";
326
+ referencedColumns: ["id"];
327
+ }];
328
+ };
329
+ ai_module_bindings: {
330
+ Row: {
331
+ consumer_module_id: string;
332
+ created_at: string;
333
+ credential_id: string;
334
+ id: string;
335
+ model_id: string;
336
+ notes: string | null;
337
+ updated_at: string;
338
+ };
339
+ Insert: {
340
+ consumer_module_id: string;
341
+ created_at?: string;
342
+ credential_id: string;
343
+ id?: string;
344
+ model_id: string;
345
+ notes?: string | null;
346
+ updated_at?: string;
347
+ };
348
+ Update: {
349
+ consumer_module_id?: string;
350
+ created_at?: string;
351
+ credential_id?: string;
352
+ id?: string;
353
+ model_id?: string;
354
+ notes?: string | null;
355
+ updated_at?: string;
356
+ };
357
+ Relationships: [{
358
+ foreignKeyName: "ai_module_bindings_credential_id_fkey";
359
+ columns: ["credential_id"];
360
+ isOneToOne: false;
361
+ referencedRelation: "ai_credentials";
362
+ referencedColumns: ["id"];
363
+ }, {
364
+ foreignKeyName: "ai_module_bindings_model_id_fkey";
365
+ columns: ["model_id"];
366
+ isOneToOne: false;
367
+ referencedRelation: "ai_models";
368
+ referencedColumns: ["id"];
369
+ }];
370
+ };
371
+ ai_providers: {
372
+ Row: {
373
+ active: boolean;
374
+ auth_type: string;
375
+ base_url: string | null;
376
+ created_at: string;
377
+ id: string;
378
+ name: string;
379
+ slug: string;
380
+ updated_at: string;
381
+ };
382
+ Insert: {
383
+ active?: boolean;
384
+ auth_type?: string;
385
+ base_url?: string | null;
386
+ created_at?: string;
387
+ id?: string;
388
+ name: string;
389
+ slug: string;
390
+ updated_at?: string;
391
+ };
392
+ Update: {
393
+ active?: boolean;
394
+ auth_type?: string;
395
+ base_url?: string | null;
396
+ created_at?: string;
397
+ id?: string;
398
+ name?: string;
399
+ slug?: string;
400
+ updated_at?: string;
401
+ };
402
+ Relationships: [];
403
+ };
245
404
  app_settings: {
246
405
  Row: {
247
406
  created_at: string;
@@ -869,6 +1028,141 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
869
1028
  };
870
1029
  Relationships: [];
871
1030
  };
1031
+ cart_planning_pick_times: {
1032
+ Row: {
1033
+ created_at: string;
1034
+ id: string;
1035
+ pot_size: string;
1036
+ seconds_per_cart: number;
1037
+ updated_at: string;
1038
+ };
1039
+ Insert: {
1040
+ created_at?: string;
1041
+ id?: string;
1042
+ pot_size: string;
1043
+ seconds_per_cart: number;
1044
+ updated_at?: string;
1045
+ };
1046
+ Update: {
1047
+ created_at?: string;
1048
+ id?: string;
1049
+ pot_size?: string;
1050
+ seconds_per_cart?: number;
1051
+ updated_at?: string;
1052
+ };
1053
+ Relationships: [];
1054
+ };
1055
+ cart_planning_product_overrides: {
1056
+ Row: {
1057
+ created_at: string;
1058
+ id: string;
1059
+ max_party_share_per_layer_pct_override: number | null;
1060
+ never_mix: boolean;
1061
+ notes: string | null;
1062
+ product_id: string;
1063
+ updated_at: string;
1064
+ };
1065
+ Insert: {
1066
+ created_at?: string;
1067
+ id?: string;
1068
+ max_party_share_per_layer_pct_override?: number | null;
1069
+ never_mix?: boolean;
1070
+ notes?: string | null;
1071
+ product_id: string;
1072
+ updated_at?: string;
1073
+ };
1074
+ Update: {
1075
+ created_at?: string;
1076
+ id?: string;
1077
+ max_party_share_per_layer_pct_override?: number | null;
1078
+ never_mix?: boolean;
1079
+ notes?: string | null;
1080
+ product_id?: string;
1081
+ updated_at?: string;
1082
+ };
1083
+ Relationships: [{
1084
+ foreignKeyName: "cart_planning_product_overrides_product_id_fkey";
1085
+ columns: ["product_id"];
1086
+ isOneToOne: true;
1087
+ referencedRelation: "products";
1088
+ referencedColumns: ["id"];
1089
+ }];
1090
+ };
1091
+ cart_planning_settings: {
1092
+ Row: {
1093
+ allow_editing_after_pickstation_send: boolean;
1094
+ buffer_grouping_mode: string;
1095
+ combine_floriday_orders: boolean;
1096
+ combine_floriday_orders_window: string;
1097
+ combine_orders_scope: string;
1098
+ default_workers: number;
1099
+ id: number;
1100
+ max_beladingen_per_layer: number;
1101
+ max_customers_per_cart: number;
1102
+ max_one_customer_per_layer: boolean;
1103
+ max_party_share_per_layer_pct: number;
1104
+ optimization_strategy: string;
1105
+ own_cart_from_layers: number;
1106
+ pick_time_mode: string;
1107
+ plants_per_day: number;
1108
+ plants_per_hour: number;
1109
+ require_same_carrier: boolean;
1110
+ require_same_crate_type: boolean;
1111
+ require_same_delivery_date: boolean;
1112
+ require_same_delivery_location: boolean;
1113
+ updated_at: string;
1114
+ updated_by: string | null;
1115
+ };
1116
+ Insert: {
1117
+ allow_editing_after_pickstation_send?: boolean;
1118
+ buffer_grouping_mode?: string;
1119
+ combine_floriday_orders?: boolean;
1120
+ combine_floriday_orders_window?: string;
1121
+ combine_orders_scope?: string;
1122
+ default_workers?: number;
1123
+ id?: number;
1124
+ max_beladingen_per_layer?: number;
1125
+ max_customers_per_cart?: number;
1126
+ max_one_customer_per_layer?: boolean;
1127
+ max_party_share_per_layer_pct?: number;
1128
+ optimization_strategy?: string;
1129
+ own_cart_from_layers?: number;
1130
+ pick_time_mode?: string;
1131
+ plants_per_day?: number;
1132
+ plants_per_hour?: number;
1133
+ require_same_carrier?: boolean;
1134
+ require_same_crate_type?: boolean;
1135
+ require_same_delivery_date?: boolean;
1136
+ require_same_delivery_location?: boolean;
1137
+ updated_at?: string;
1138
+ updated_by?: string | null;
1139
+ };
1140
+ Update: {
1141
+ allow_editing_after_pickstation_send?: boolean;
1142
+ buffer_grouping_mode?: string;
1143
+ combine_floriday_orders?: boolean;
1144
+ combine_floriday_orders_window?: string;
1145
+ combine_orders_scope?: string;
1146
+ default_workers?: number;
1147
+ id?: number;
1148
+ max_beladingen_per_layer?: number;
1149
+ max_customers_per_cart?: number;
1150
+ max_one_customer_per_layer?: boolean;
1151
+ max_party_share_per_layer_pct?: number;
1152
+ optimization_strategy?: string;
1153
+ own_cart_from_layers?: number;
1154
+ pick_time_mode?: string;
1155
+ plants_per_day?: number;
1156
+ plants_per_hour?: number;
1157
+ require_same_carrier?: boolean;
1158
+ require_same_crate_type?: boolean;
1159
+ require_same_delivery_date?: boolean;
1160
+ require_same_delivery_location?: boolean;
1161
+ updated_at?: string;
1162
+ updated_by?: string | null;
1163
+ };
1164
+ Relationships: [];
1165
+ };
872
1166
  cart_replan_queue: {
873
1167
  Row: {
874
1168
  attempts: number;
@@ -899,6 +1193,39 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
899
1193
  referencedColumns: ["id"];
900
1194
  }];
901
1195
  };
1196
+ cart_types: {
1197
+ Row: {
1198
+ created_at: string;
1199
+ id: string;
1200
+ is_default: boolean;
1201
+ layer_length_cm: number;
1202
+ layer_width_cm: number;
1203
+ layers_per_cart: number;
1204
+ name: string;
1205
+ updated_at: string;
1206
+ };
1207
+ Insert: {
1208
+ created_at?: string;
1209
+ id?: string;
1210
+ is_default?: boolean;
1211
+ layer_length_cm: number;
1212
+ layer_width_cm: number;
1213
+ layers_per_cart?: number;
1214
+ name: string;
1215
+ updated_at?: string;
1216
+ };
1217
+ Update: {
1218
+ created_at?: string;
1219
+ id?: string;
1220
+ is_default?: boolean;
1221
+ layer_length_cm?: number;
1222
+ layer_width_cm?: number;
1223
+ layers_per_cart?: number;
1224
+ name?: string;
1225
+ updated_at?: string;
1226
+ };
1227
+ Relationships: [];
1228
+ };
902
1229
  collections: {
903
1230
  Row: {
904
1231
  created_at: string;
@@ -923,6 +1250,36 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
923
1250
  };
924
1251
  Relationships: [];
925
1252
  };
1253
+ crate_types: {
1254
+ Row: {
1255
+ created_at: string;
1256
+ id: string;
1257
+ length_cm: number;
1258
+ name: string;
1259
+ plants_per_crate: number;
1260
+ updated_at: string;
1261
+ width_cm: number;
1262
+ };
1263
+ Insert: {
1264
+ created_at?: string;
1265
+ id?: string;
1266
+ length_cm: number;
1267
+ name: string;
1268
+ plants_per_crate?: number;
1269
+ updated_at?: string;
1270
+ width_cm: number;
1271
+ };
1272
+ Update: {
1273
+ created_at?: string;
1274
+ id?: string;
1275
+ length_cm?: number;
1276
+ name?: string;
1277
+ plants_per_crate?: number;
1278
+ updated_at?: string;
1279
+ width_cm?: number;
1280
+ };
1281
+ Relationships: [];
1282
+ };
926
1283
  customer_audit_log: {
927
1284
  Row: {
928
1285
  action: string;
@@ -3248,127 +3605,28 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
3248
3605
  referencedColumns: ["id"];
3249
3606
  }];
3250
3607
  };
3251
- floriday_agreement_calloffs_cache: {
3608
+ floriday_auction_letters_cache: {
3252
3609
  Row: {
3253
- agreement_id: string | null;
3610
+ auction_letter_code: string;
3611
+ clock_supply_id: string;
3254
3612
  connection_id: string;
3255
- data: import("./types").Json;
3256
- delivery_date: string | null;
3613
+ content_type: string;
3257
3614
  fetched_at: string;
3258
- floriday_id: string;
3259
3615
  id: string;
3260
- is_deleted: boolean;
3261
- sequence_number: number;
3262
- status: string | null;
3263
- updated_at: string;
3616
+ storage_path: string;
3264
3617
  };
3265
3618
  Insert: {
3266
- agreement_id?: string | null;
3619
+ auction_letter_code: string;
3620
+ clock_supply_id: string;
3267
3621
  connection_id: string;
3268
- data?: import("./types").Json;
3269
- delivery_date?: string | null;
3622
+ content_type?: string;
3270
3623
  fetched_at?: string;
3271
- floriday_id: string;
3272
3624
  id?: string;
3273
- is_deleted?: boolean;
3274
- sequence_number?: number;
3275
- status?: string | null;
3276
- updated_at?: string;
3625
+ storage_path: string;
3277
3626
  };
3278
3627
  Update: {
3279
- agreement_id?: string | null;
3280
- connection_id?: string;
3281
- data?: import("./types").Json;
3282
- delivery_date?: string | null;
3283
- fetched_at?: string;
3284
- floriday_id?: string;
3285
- id?: string;
3286
- is_deleted?: boolean;
3287
- sequence_number?: number;
3288
- status?: string | null;
3289
- updated_at?: string;
3290
- };
3291
- Relationships: [{
3292
- foreignKeyName: "floriday_agreement_calloffs_cache_connection_id_fkey";
3293
- columns: ["connection_id"];
3294
- isOneToOne: false;
3295
- referencedRelation: "floriday_connections";
3296
- referencedColumns: ["id"];
3297
- }];
3298
- };
3299
- floriday_agreements_cache: {
3300
- Row: {
3301
- buyer_organization_id: string | null;
3302
- connection_id: string;
3303
- data: import("./types").Json;
3304
- fetched_at: string;
3305
- floriday_id: string;
3306
- id: string;
3307
- is_deleted: boolean;
3308
- sequence_number: number;
3309
- status: string | null;
3310
- updated_at: string;
3311
- valid_from: string | null;
3312
- valid_until: string | null;
3313
- };
3314
- Insert: {
3315
- buyer_organization_id?: string | null;
3316
- connection_id: string;
3317
- data?: import("./types").Json;
3318
- fetched_at?: string;
3319
- floriday_id: string;
3320
- id?: string;
3321
- is_deleted?: boolean;
3322
- sequence_number?: number;
3323
- status?: string | null;
3324
- updated_at?: string;
3325
- valid_from?: string | null;
3326
- valid_until?: string | null;
3327
- };
3328
- Update: {
3329
- buyer_organization_id?: string | null;
3330
- connection_id?: string;
3331
- data?: import("./types").Json;
3332
- fetched_at?: string;
3333
- floriday_id?: string;
3334
- id?: string;
3335
- is_deleted?: boolean;
3336
- sequence_number?: number;
3337
- status?: string | null;
3338
- updated_at?: string;
3339
- valid_from?: string | null;
3340
- valid_until?: string | null;
3341
- };
3342
- Relationships: [{
3343
- foreignKeyName: "floriday_agreements_cache_connection_id_fkey";
3344
- columns: ["connection_id"];
3345
- isOneToOne: false;
3346
- referencedRelation: "floriday_connections";
3347
- referencedColumns: ["id"];
3348
- }];
3349
- };
3350
- floriday_auction_letters_cache: {
3351
- Row: {
3352
- auction_letter_code: string;
3353
- clock_supply_id: string;
3354
- connection_id: string;
3355
- content_type: string;
3356
- fetched_at: string;
3357
- id: string;
3358
- storage_path: string;
3359
- };
3360
- Insert: {
3361
- auction_letter_code: string;
3362
- clock_supply_id: string;
3363
- connection_id: string;
3364
- content_type?: string;
3365
- fetched_at?: string;
3366
- id?: string;
3367
- storage_path: string;
3368
- };
3369
- Update: {
3370
- auction_letter_code?: string;
3371
- clock_supply_id?: string;
3628
+ auction_letter_code?: string;
3629
+ clock_supply_id?: string;
3372
3630
  connection_id?: string;
3373
3631
  content_type?: string;
3374
3632
  fetched_at?: string;
@@ -3845,6 +4103,27 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
3845
4103
  referencedColumns: ["id"];
3846
4104
  }];
3847
4105
  };
4106
+ floriday_continuous_stock_cache: {
4107
+ Row: {
4108
+ connection_id: string;
4109
+ fetched_at: string;
4110
+ number_of_pieces: number;
4111
+ trade_item_id: string;
4112
+ };
4113
+ Insert: {
4114
+ connection_id: string;
4115
+ fetched_at?: string;
4116
+ number_of_pieces?: number;
4117
+ trade_item_id: string;
4118
+ };
4119
+ Update: {
4120
+ connection_id?: string;
4121
+ fetched_at?: string;
4122
+ number_of_pieces?: number;
4123
+ trade_item_id?: string;
4124
+ };
4125
+ Relationships: [];
4126
+ };
3848
4127
  floriday_continuous_stock_queue: {
3849
4128
  Row: {
3850
4129
  attempts: number;
@@ -4620,6 +4899,8 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
4620
4899
  Row: {
4621
4900
  buyer_organization_id: string | null;
4622
4901
  connection_id: string;
4902
+ controlled_at: string | null;
4903
+ controlled_by: string | null;
4623
4904
  created_at: string;
4624
4905
  data: import("./types").Json;
4625
4906
  floriday_id: string;
@@ -4631,6 +4912,8 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
4631
4912
  Insert: {
4632
4913
  buyer_organization_id?: string | null;
4633
4914
  connection_id: string;
4915
+ controlled_at?: string | null;
4916
+ controlled_by?: string | null;
4634
4917
  created_at?: string;
4635
4918
  data: import("./types").Json;
4636
4919
  floriday_id: string;
@@ -4642,6 +4925,8 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
4642
4925
  Update: {
4643
4926
  buyer_organization_id?: string | null;
4644
4927
  connection_id?: string;
4928
+ controlled_at?: string | null;
4929
+ controlled_by?: string | null;
4645
4930
  created_at?: string;
4646
4931
  data?: import("./types").Json;
4647
4932
  floriday_id?: string;
@@ -4823,6 +5108,45 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
4823
5108
  referencedColumns: ["id"];
4824
5109
  }];
4825
5110
  };
5111
+ floriday_trade_settings_customers_cache: {
5112
+ Row: {
5113
+ connection_id: string;
5114
+ data: import("./types").Json;
5115
+ fetched_at: string;
5116
+ floriday_id: string;
5117
+ id: string;
5118
+ is_deleted: boolean;
5119
+ sequence_number: number;
5120
+ updated_at: string;
5121
+ };
5122
+ Insert: {
5123
+ connection_id: string;
5124
+ data: import("./types").Json;
5125
+ fetched_at?: string;
5126
+ floriday_id: string;
5127
+ id?: string;
5128
+ is_deleted?: boolean;
5129
+ sequence_number?: number;
5130
+ updated_at?: string;
5131
+ };
5132
+ Update: {
5133
+ connection_id?: string;
5134
+ data?: import("./types").Json;
5135
+ fetched_at?: string;
5136
+ floriday_id?: string;
5137
+ id?: string;
5138
+ is_deleted?: boolean;
5139
+ sequence_number?: number;
5140
+ updated_at?: string;
5141
+ };
5142
+ Relationships: [{
5143
+ foreignKeyName: "floriday_trade_settings_customers_cache_connection_id_fkey";
5144
+ columns: ["connection_id"];
5145
+ isOneToOne: false;
5146
+ referencedRelation: "floriday_connections";
5147
+ referencedColumns: ["id"];
5148
+ }];
5149
+ };
4826
5150
  floriday_trips_cache: {
4827
5151
  Row: {
4828
5152
  carrier_organization_id: string | null;
@@ -4871,6 +5195,27 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
4871
5195
  referencedColumns: ["id"];
4872
5196
  }];
4873
5197
  };
5198
+ floriday_vbn_required_characteristics: {
5199
+ Row: {
5200
+ required_codes: string[];
5201
+ updated_at: string;
5202
+ updated_by: string | null;
5203
+ vbn_code: string;
5204
+ };
5205
+ Insert: {
5206
+ required_codes?: string[];
5207
+ updated_at?: string;
5208
+ updated_by?: string | null;
5209
+ vbn_code: string;
5210
+ };
5211
+ Update: {
5212
+ required_codes?: string[];
5213
+ updated_at?: string;
5214
+ updated_by?: string | null;
5215
+ vbn_code?: string;
5216
+ };
5217
+ Relationships: [];
5218
+ };
4874
5219
  floriday_warehouses_cache: {
4875
5220
  Row: {
4876
5221
  connection_id: string;
@@ -5573,115 +5918,394 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
5573
5918
  };
5574
5919
  Relationships: [];
5575
5920
  };
5576
- mailbox_messages: {
5921
+ logistics_capacity_events: {
5577
5922
  Row: {
5578
- body_html: string | null;
5579
- body_text: string | null;
5580
- connection_id: string | null;
5923
+ available_carts: number;
5581
5924
  created_at: string;
5582
- error_message: string | null;
5583
- external_id: string | null;
5584
- from_email: string | null;
5585
- from_name: string | null;
5586
5925
  id: string;
5587
- message_id: string | null;
5588
- profile_id: string | null;
5589
- raw_size: number | null;
5590
- received_at: string | null;
5926
+ measures: import("./types").Json;
5927
+ note: string | null;
5928
+ outcome: string;
5929
+ required_carts: number;
5930
+ reserve_minutes: number;
5931
+ shortage_carts: number;
5591
5932
  status: string;
5592
- subject: string | null;
5593
- uid: number | null;
5594
- updated_at: string;
5933
+ user_id: string;
5595
5934
  };
5596
5935
  Insert: {
5597
- body_html?: string | null;
5598
- body_text?: string | null;
5599
- connection_id?: string | null;
5936
+ available_carts?: number;
5600
5937
  created_at?: string;
5601
- error_message?: string | null;
5602
- external_id?: string | null;
5603
- from_email?: string | null;
5604
- from_name?: string | null;
5605
5938
  id?: string;
5606
- message_id?: string | null;
5607
- profile_id?: string | null;
5608
- raw_size?: number | null;
5609
- received_at?: string | null;
5610
- status?: string;
5611
- subject?: string | null;
5612
- uid?: number | null;
5613
- updated_at?: string;
5939
+ measures?: import("./types").Json;
5940
+ note?: string | null;
5941
+ outcome?: string;
5942
+ required_carts?: number;
5943
+ reserve_minutes?: number;
5944
+ shortage_carts?: number;
5945
+ status: string;
5946
+ user_id: string;
5614
5947
  };
5615
5948
  Update: {
5616
- body_html?: string | null;
5617
- body_text?: string | null;
5618
- connection_id?: string | null;
5949
+ available_carts?: number;
5619
5950
  created_at?: string;
5620
- error_message?: string | null;
5621
- external_id?: string | null;
5622
- from_email?: string | null;
5623
- from_name?: string | null;
5624
5951
  id?: string;
5625
- message_id?: string | null;
5626
- profile_id?: string | null;
5627
- raw_size?: number | null;
5628
- received_at?: string | null;
5952
+ measures?: import("./types").Json;
5953
+ note?: string | null;
5954
+ outcome?: string;
5955
+ required_carts?: number;
5956
+ reserve_minutes?: number;
5957
+ shortage_carts?: number;
5629
5958
  status?: string;
5630
- subject?: string | null;
5631
- uid?: number | null;
5632
- updated_at?: string;
5959
+ user_id?: string;
5633
5960
  };
5634
- Relationships: [{
5635
- foreignKeyName: "mailbox_messages_connection_id_fkey";
5636
- columns: ["connection_id"];
5637
- isOneToOne: false;
5638
- referencedRelation: "email_auth_connections";
5639
- referencedColumns: ["id"];
5640
- }, {
5641
- foreignKeyName: "mailbox_messages_connection_id_fkey";
5642
- columns: ["connection_id"];
5643
- isOneToOne: false;
5644
- referencedRelation: "email_auth_connections_safe";
5645
- referencedColumns: ["id"];
5646
- }, {
5647
- foreignKeyName: "mailbox_messages_profile_id_fkey";
5648
- columns: ["profile_id"];
5649
- isOneToOne: false;
5650
- referencedRelation: "imap_profiles";
5651
- referencedColumns: ["id"];
5652
- }];
5961
+ Relationships: [];
5653
5962
  };
5654
- mailbox_order_proposals: {
5963
+ logistics_capacity_settings: {
5655
5964
  Row: {
5656
- confidence: number | null;
5657
5965
  created_at: string;
5658
- created_order_id: string | null;
5659
- delivery_date: string | null;
5660
- id: string;
5661
- matched_customer_id: string | null;
5662
- message_id: string;
5663
- notes: string | null;
5664
- order_number: string | null;
5665
- parsed_payload: import("./types").Json | null;
5666
- reviewed_at: string | null;
5667
- reviewed_by: string | null;
5668
- status: string;
5966
+ settings: import("./types").Json;
5669
5967
  updated_at: string;
5968
+ user_id: string;
5670
5969
  };
5671
5970
  Insert: {
5672
- confidence?: number | null;
5673
5971
  created_at?: string;
5674
- created_order_id?: string | null;
5675
- delivery_date?: string | null;
5676
- id?: string;
5677
- matched_customer_id?: string | null;
5678
- message_id: string;
5679
- notes?: string | null;
5680
- order_number?: string | null;
5681
- parsed_payload?: import("./types").Json | null;
5682
- reviewed_at?: string | null;
5683
- reviewed_by?: string | null;
5684
- status?: string;
5972
+ settings?: import("./types").Json;
5973
+ updated_at?: string;
5974
+ user_id: string;
5975
+ };
5976
+ Update: {
5977
+ created_at?: string;
5978
+ settings?: import("./types").Json;
5979
+ updated_at?: string;
5980
+ user_id?: string;
5981
+ };
5982
+ Relationships: [];
5983
+ };
5984
+ logistics_decisions: {
5985
+ Row: {
5986
+ created_at: string;
5987
+ explanation: string | null;
5988
+ id: string;
5989
+ input_snapshot: import("./types").Json;
5990
+ result: import("./types").Json;
5991
+ slot: string;
5992
+ strategy_id: string | null;
5993
+ subject_id: string;
5994
+ subject_type: string;
5995
+ user_id: string;
5996
+ };
5997
+ Insert: {
5998
+ created_at?: string;
5999
+ explanation?: string | null;
6000
+ id?: string;
6001
+ input_snapshot?: import("./types").Json;
6002
+ result?: import("./types").Json;
6003
+ slot: string;
6004
+ strategy_id?: string | null;
6005
+ subject_id: string;
6006
+ subject_type: string;
6007
+ user_id: string;
6008
+ };
6009
+ Update: {
6010
+ created_at?: string;
6011
+ explanation?: string | null;
6012
+ id?: string;
6013
+ input_snapshot?: import("./types").Json;
6014
+ result?: import("./types").Json;
6015
+ slot?: string;
6016
+ strategy_id?: string | null;
6017
+ subject_id?: string;
6018
+ subject_type?: string;
6019
+ user_id?: string;
6020
+ };
6021
+ Relationships: [{
6022
+ foreignKeyName: "logistics_decisions_strategy_id_fkey";
6023
+ columns: ["strategy_id"];
6024
+ isOneToOne: false;
6025
+ referencedRelation: "logistics_strategies";
6026
+ referencedColumns: ["id"];
6027
+ }];
6028
+ };
6029
+ logistics_formulas: {
6030
+ Row: {
6031
+ created_at: string;
6032
+ expression: string;
6033
+ id: string;
6034
+ notes: string | null;
6035
+ slot: string;
6036
+ strategy_id: string;
6037
+ updated_at: string;
6038
+ user_id: string;
6039
+ version: number;
6040
+ };
6041
+ Insert: {
6042
+ created_at?: string;
6043
+ expression?: string;
6044
+ id?: string;
6045
+ notes?: string | null;
6046
+ slot: string;
6047
+ strategy_id: string;
6048
+ updated_at?: string;
6049
+ user_id: string;
6050
+ version?: number;
6051
+ };
6052
+ Update: {
6053
+ created_at?: string;
6054
+ expression?: string;
6055
+ id?: string;
6056
+ notes?: string | null;
6057
+ slot?: string;
6058
+ strategy_id?: string;
6059
+ updated_at?: string;
6060
+ user_id?: string;
6061
+ version?: number;
6062
+ };
6063
+ Relationships: [{
6064
+ foreignKeyName: "logistics_formulas_strategy_id_fkey";
6065
+ columns: ["strategy_id"];
6066
+ isOneToOne: false;
6067
+ referencedRelation: "logistics_strategies";
6068
+ referencedColumns: ["id"];
6069
+ }];
6070
+ };
6071
+ logistics_strategies: {
6072
+ Row: {
6073
+ color: string;
6074
+ created_at: string;
6075
+ description: string | null;
6076
+ id: string;
6077
+ is_active: boolean;
6078
+ name: string;
6079
+ priority: number;
6080
+ updated_at: string;
6081
+ updated_by: string | null;
6082
+ user_id: string;
6083
+ version: number;
6084
+ };
6085
+ Insert: {
6086
+ color?: string;
6087
+ created_at?: string;
6088
+ description?: string | null;
6089
+ id?: string;
6090
+ is_active?: boolean;
6091
+ name: string;
6092
+ priority?: number;
6093
+ updated_at?: string;
6094
+ updated_by?: string | null;
6095
+ user_id: string;
6096
+ version?: number;
6097
+ };
6098
+ Update: {
6099
+ color?: string;
6100
+ created_at?: string;
6101
+ description?: string | null;
6102
+ id?: string;
6103
+ is_active?: boolean;
6104
+ name?: string;
6105
+ priority?: number;
6106
+ updated_at?: string;
6107
+ updated_by?: string | null;
6108
+ user_id?: string;
6109
+ version?: number;
6110
+ };
6111
+ Relationships: [];
6112
+ };
6113
+ logistics_strategy_schedules: {
6114
+ Row: {
6115
+ condition_expression: string | null;
6116
+ created_at: string;
6117
+ end_date: string | null;
6118
+ id: string;
6119
+ is_enabled: boolean;
6120
+ priority: number;
6121
+ rule_type: string;
6122
+ start_date: string | null;
6123
+ strategy_id: string;
6124
+ updated_at: string;
6125
+ user_id: string;
6126
+ };
6127
+ Insert: {
6128
+ condition_expression?: string | null;
6129
+ created_at?: string;
6130
+ end_date?: string | null;
6131
+ id?: string;
6132
+ is_enabled?: boolean;
6133
+ priority?: number;
6134
+ rule_type: string;
6135
+ start_date?: string | null;
6136
+ strategy_id: string;
6137
+ updated_at?: string;
6138
+ user_id: string;
6139
+ };
6140
+ Update: {
6141
+ condition_expression?: string | null;
6142
+ created_at?: string;
6143
+ end_date?: string | null;
6144
+ id?: string;
6145
+ is_enabled?: boolean;
6146
+ priority?: number;
6147
+ rule_type?: string;
6148
+ start_date?: string | null;
6149
+ strategy_id?: string;
6150
+ updated_at?: string;
6151
+ user_id?: string;
6152
+ };
6153
+ Relationships: [{
6154
+ foreignKeyName: "logistics_strategy_schedules_strategy_id_fkey";
6155
+ columns: ["strategy_id"];
6156
+ isOneToOne: false;
6157
+ referencedRelation: "logistics_strategies";
6158
+ referencedColumns: ["id"];
6159
+ }];
6160
+ };
6161
+ logistics_variables: {
6162
+ Row: {
6163
+ created_at: string;
6164
+ default_value: string | null;
6165
+ description: string | null;
6166
+ id: string;
6167
+ is_builtin: boolean;
6168
+ key: string;
6169
+ label: string;
6170
+ updated_at: string;
6171
+ user_id: string;
6172
+ value_type: string;
6173
+ };
6174
+ Insert: {
6175
+ created_at?: string;
6176
+ default_value?: string | null;
6177
+ description?: string | null;
6178
+ id?: string;
6179
+ is_builtin?: boolean;
6180
+ key: string;
6181
+ label: string;
6182
+ updated_at?: string;
6183
+ user_id: string;
6184
+ value_type: string;
6185
+ };
6186
+ Update: {
6187
+ created_at?: string;
6188
+ default_value?: string | null;
6189
+ description?: string | null;
6190
+ id?: string;
6191
+ is_builtin?: boolean;
6192
+ key?: string;
6193
+ label?: string;
6194
+ updated_at?: string;
6195
+ user_id?: string;
6196
+ value_type?: string;
6197
+ };
6198
+ Relationships: [];
6199
+ };
6200
+ mailbox_messages: {
6201
+ Row: {
6202
+ body_html: string | null;
6203
+ body_text: string | null;
6204
+ connection_id: string | null;
6205
+ created_at: string;
6206
+ error_message: string | null;
6207
+ external_id: string | null;
6208
+ from_email: string | null;
6209
+ from_name: string | null;
6210
+ id: string;
6211
+ message_id: string | null;
6212
+ profile_id: string | null;
6213
+ raw_size: number | null;
6214
+ received_at: string | null;
6215
+ status: string;
6216
+ subject: string | null;
6217
+ uid: number | null;
6218
+ updated_at: string;
6219
+ };
6220
+ Insert: {
6221
+ body_html?: string | null;
6222
+ body_text?: string | null;
6223
+ connection_id?: string | null;
6224
+ created_at?: string;
6225
+ error_message?: string | null;
6226
+ external_id?: string | null;
6227
+ from_email?: string | null;
6228
+ from_name?: string | null;
6229
+ id?: string;
6230
+ message_id?: string | null;
6231
+ profile_id?: string | null;
6232
+ raw_size?: number | null;
6233
+ received_at?: string | null;
6234
+ status?: string;
6235
+ subject?: string | null;
6236
+ uid?: number | null;
6237
+ updated_at?: string;
6238
+ };
6239
+ Update: {
6240
+ body_html?: string | null;
6241
+ body_text?: string | null;
6242
+ connection_id?: string | null;
6243
+ created_at?: string;
6244
+ error_message?: string | null;
6245
+ external_id?: string | null;
6246
+ from_email?: string | null;
6247
+ from_name?: string | null;
6248
+ id?: string;
6249
+ message_id?: string | null;
6250
+ profile_id?: string | null;
6251
+ raw_size?: number | null;
6252
+ received_at?: string | null;
6253
+ status?: string;
6254
+ subject?: string | null;
6255
+ uid?: number | null;
6256
+ updated_at?: string;
6257
+ };
6258
+ Relationships: [{
6259
+ foreignKeyName: "mailbox_messages_connection_id_fkey";
6260
+ columns: ["connection_id"];
6261
+ isOneToOne: false;
6262
+ referencedRelation: "email_auth_connections";
6263
+ referencedColumns: ["id"];
6264
+ }, {
6265
+ foreignKeyName: "mailbox_messages_connection_id_fkey";
6266
+ columns: ["connection_id"];
6267
+ isOneToOne: false;
6268
+ referencedRelation: "email_auth_connections_safe";
6269
+ referencedColumns: ["id"];
6270
+ }, {
6271
+ foreignKeyName: "mailbox_messages_profile_id_fkey";
6272
+ columns: ["profile_id"];
6273
+ isOneToOne: false;
6274
+ referencedRelation: "imap_profiles";
6275
+ referencedColumns: ["id"];
6276
+ }];
6277
+ };
6278
+ mailbox_order_proposals: {
6279
+ Row: {
6280
+ confidence: number | null;
6281
+ created_at: string;
6282
+ created_order_id: string | null;
6283
+ delivery_date: string | null;
6284
+ id: string;
6285
+ matched_customer_id: string | null;
6286
+ message_id: string;
6287
+ notes: string | null;
6288
+ order_number: string | null;
6289
+ parsed_payload: import("./types").Json | null;
6290
+ reviewed_at: string | null;
6291
+ reviewed_by: string | null;
6292
+ status: string;
6293
+ updated_at: string;
6294
+ };
6295
+ Insert: {
6296
+ confidence?: number | null;
6297
+ created_at?: string;
6298
+ created_order_id?: string | null;
6299
+ delivery_date?: string | null;
6300
+ id?: string;
6301
+ matched_customer_id?: string | null;
6302
+ message_id: string;
6303
+ notes?: string | null;
6304
+ order_number?: string | null;
6305
+ parsed_payload?: import("./types").Json | null;
6306
+ reviewed_at?: string | null;
6307
+ reviewed_by?: string | null;
6308
+ status?: string;
5685
6309
  updated_at?: string;
5686
6310
  };
5687
6311
  Update: {
@@ -5968,39 +6592,60 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
5968
6592
  };
5969
6593
  manufacture_products: {
5970
6594
  Row: {
6595
+ aantal_te_produceren: number;
5971
6596
  created_at: string;
5972
6597
  description: string | null;
5973
6598
  id: string;
5974
6599
  is_active: boolean;
6600
+ location_id: string | null;
5975
6601
  name: string;
6602
+ partij_nummer: string | null;
6603
+ photos: import("./types").Json;
5976
6604
  produced_stock: number;
5977
6605
  product_code: string;
5978
6606
  tenant_id: string;
6607
+ unit: string;
5979
6608
  updated_at: string;
5980
6609
  };
5981
6610
  Insert: {
6611
+ aantal_te_produceren?: number;
5982
6612
  created_at?: string;
5983
6613
  description?: string | null;
5984
6614
  id?: string;
5985
6615
  is_active?: boolean;
6616
+ location_id?: string | null;
5986
6617
  name: string;
6618
+ partij_nummer?: string | null;
6619
+ photos?: import("./types").Json;
5987
6620
  produced_stock?: number;
5988
6621
  product_code: string;
5989
6622
  tenant_id: string;
6623
+ unit?: string;
5990
6624
  updated_at?: string;
5991
6625
  };
5992
6626
  Update: {
6627
+ aantal_te_produceren?: number;
5993
6628
  created_at?: string;
5994
6629
  description?: string | null;
5995
6630
  id?: string;
5996
6631
  is_active?: boolean;
6632
+ location_id?: string | null;
5997
6633
  name?: string;
6634
+ partij_nummer?: string | null;
6635
+ photos?: import("./types").Json;
5998
6636
  produced_stock?: number;
5999
6637
  product_code?: string;
6000
6638
  tenant_id?: string;
6639
+ unit?: string;
6001
6640
  updated_at?: string;
6002
6641
  };
6003
- Relationships: [];
6642
+ Relationships: [{
6643
+ foreignKeyName: "manufacture_products_location_id_fkey";
6644
+ columns: ["location_id"];
6645
+ isOneToOne: false;
6646
+ referencedRelation: "locations";
6647
+ referencedColumns: ["id"];
6648
+ }];
6004
6649
  };
6005
6650
  monteurs: {
6006
6651
  Row: {
@@ -6731,6 +7376,42 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
6731
7376
  };
6732
7377
  Relationships: [];
6733
7378
  };
7379
+ order_buffers: {
7380
+ Row: {
7381
+ buffer_key: string;
7382
+ created_at: string;
7383
+ customer_id: string | null;
7384
+ grouping_mode: string;
7385
+ id: string;
7386
+ pickup_date: string | null;
7387
+ pickup_location: string | null;
7388
+ plan_locked_at: string | null;
7389
+ updated_at: string;
7390
+ };
7391
+ Insert: {
7392
+ buffer_key: string;
7393
+ created_at?: string;
7394
+ customer_id?: string | null;
7395
+ grouping_mode: string;
7396
+ id?: string;
7397
+ pickup_date?: string | null;
7398
+ pickup_location?: string | null;
7399
+ plan_locked_at?: string | null;
7400
+ updated_at?: string;
7401
+ };
7402
+ Update: {
7403
+ buffer_key?: string;
7404
+ created_at?: string;
7405
+ customer_id?: string | null;
7406
+ grouping_mode?: string;
7407
+ id?: string;
7408
+ pickup_date?: string | null;
7409
+ pickup_location?: string | null;
7410
+ plan_locked_at?: string | null;
7411
+ updated_at?: string;
7412
+ };
7413
+ Relationships: [];
7414
+ };
6734
7415
  order_cart_items: {
6735
7416
  Row: {
6736
7417
  cart_id: string;
@@ -6797,6 +7478,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
6797
7478
  order_carts: {
6798
7479
  Row: {
6799
7480
  algorithm_version: number;
7481
+ buffer_id: string | null;
6800
7482
  cart_number: number;
6801
7483
  created_at: string;
6802
7484
  id: string;
@@ -6804,13 +7486,14 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
6804
7486
  is_complete: boolean;
6805
7487
  notes: string | null;
6806
7488
  occupancy_pct: number;
6807
- order_id: string;
7489
+ order_id: string | null;
6808
7490
  source: string;
6809
7491
  total_layers_used: number;
6810
7492
  updated_at: string;
6811
7493
  };
6812
7494
  Insert: {
6813
7495
  algorithm_version?: number;
7496
+ buffer_id?: string | null;
6814
7497
  cart_number: number;
6815
7498
  created_at?: string;
6816
7499
  id?: string;
@@ -6818,13 +7501,14 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
6818
7501
  is_complete?: boolean;
6819
7502
  notes?: string | null;
6820
7503
  occupancy_pct?: number;
6821
- order_id: string;
7504
+ order_id?: string | null;
6822
7505
  source?: string;
6823
7506
  total_layers_used?: number;
6824
7507
  updated_at?: string;
6825
7508
  };
6826
7509
  Update: {
6827
7510
  algorithm_version?: number;
7511
+ buffer_id?: string | null;
6828
7512
  cart_number?: number;
6829
7513
  created_at?: string;
6830
7514
  id?: string;
@@ -6832,12 +7516,18 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
6832
7516
  is_complete?: boolean;
6833
7517
  notes?: string | null;
6834
7518
  occupancy_pct?: number;
6835
- order_id?: string;
7519
+ order_id?: string | null;
6836
7520
  source?: string;
6837
7521
  total_layers_used?: number;
6838
7522
  updated_at?: string;
6839
7523
  };
6840
7524
  Relationships: [{
7525
+ foreignKeyName: "order_carts_buffer_id_fkey";
7526
+ columns: ["buffer_id"];
7527
+ isOneToOne: false;
7528
+ referencedRelation: "order_buffers";
7529
+ referencedColumns: ["id"];
7530
+ }, {
6841
7531
  foreignKeyName: "order_carts_order_id_fkey";
6842
7532
  columns: ["order_id"];
6843
7533
  isOneToOne: false;
@@ -6974,15 +7664,117 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
6974
7664
  };
6975
7665
  Relationships: [];
6976
7666
  };
7667
+ order_shipment_items: {
7668
+ Row: {
7669
+ created_at: string;
7670
+ id: string;
7671
+ order_item_id: string;
7672
+ product_id: string | null;
7673
+ product_name: string;
7674
+ quantity: number;
7675
+ shipment_id: string;
7676
+ updated_at: string;
7677
+ };
7678
+ Insert: {
7679
+ created_at?: string;
7680
+ id?: string;
7681
+ order_item_id: string;
7682
+ product_id?: string | null;
7683
+ product_name: string;
7684
+ quantity: number;
7685
+ shipment_id: string;
7686
+ updated_at?: string;
7687
+ };
7688
+ Update: {
7689
+ created_at?: string;
7690
+ id?: string;
7691
+ order_item_id?: string;
7692
+ product_id?: string | null;
7693
+ product_name?: string;
7694
+ quantity?: number;
7695
+ shipment_id?: string;
7696
+ updated_at?: string;
7697
+ };
7698
+ Relationships: [{
7699
+ foreignKeyName: "order_shipment_items_order_item_id_fkey";
7700
+ columns: ["order_item_id"];
7701
+ isOneToOne: false;
7702
+ referencedRelation: "order_items";
7703
+ referencedColumns: ["id"];
7704
+ }, {
7705
+ foreignKeyName: "order_shipment_items_shipment_id_fkey";
7706
+ columns: ["shipment_id"];
7707
+ isOneToOne: false;
7708
+ referencedRelation: "order_shipments";
7709
+ referencedColumns: ["id"];
7710
+ }];
7711
+ };
7712
+ order_shipments: {
7713
+ Row: {
7714
+ carrier_id: string | null;
7715
+ created_at: string;
7716
+ delivery_date: string | null;
7717
+ delivery_location_id: string | null;
7718
+ id: string;
7719
+ notes: string | null;
7720
+ order_id: string;
7721
+ shipment_number: number;
7722
+ shipped_at: string | null;
7723
+ status: string;
7724
+ updated_at: string;
7725
+ };
7726
+ Insert: {
7727
+ carrier_id?: string | null;
7728
+ created_at?: string;
7729
+ delivery_date?: string | null;
7730
+ delivery_location_id?: string | null;
7731
+ id?: string;
7732
+ notes?: string | null;
7733
+ order_id: string;
7734
+ shipment_number: number;
7735
+ shipped_at?: string | null;
7736
+ status?: string;
7737
+ updated_at?: string;
7738
+ };
7739
+ Update: {
7740
+ carrier_id?: string | null;
7741
+ created_at?: string;
7742
+ delivery_date?: string | null;
7743
+ delivery_location_id?: string | null;
7744
+ id?: string;
7745
+ notes?: string | null;
7746
+ order_id?: string;
7747
+ shipment_number?: number;
7748
+ shipped_at?: string | null;
7749
+ status?: string;
7750
+ updated_at?: string;
7751
+ };
7752
+ Relationships: [{
7753
+ foreignKeyName: "order_shipments_carrier_id_fkey";
7754
+ columns: ["carrier_id"];
7755
+ isOneToOne: false;
7756
+ referencedRelation: "carriers";
7757
+ referencedColumns: ["id"];
7758
+ }, {
7759
+ foreignKeyName: "order_shipments_order_id_fkey";
7760
+ columns: ["order_id"];
7761
+ isOneToOne: false;
7762
+ referencedRelation: "orders";
7763
+ referencedColumns: ["id"];
7764
+ }];
7765
+ };
6977
7766
  orders: {
6978
7767
  Row: {
7768
+ buffer_id: string | null;
6979
7769
  created_at: string;
6980
7770
  custom_fields: import("./types").Json;
6981
7771
  customer_id: string | null;
6982
7772
  customer_name: string;
6983
7773
  deleted_at: string | null;
6984
- delivery_date: string;
7774
+ delivery_date: string | null;
7775
+ floriday_sales_order_id: string | null;
6985
7776
  id: string;
7777
+ is_reservation: boolean;
6986
7778
  notes: string | null;
6987
7779
  order_date: string;
6988
7780
  order_number: string;
@@ -6994,13 +7786,16 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
6994
7786
  updated_at: string;
6995
7787
  };
6996
7788
  Insert: {
7789
+ buffer_id?: string | null;
6997
7790
  created_at?: string;
6998
7791
  custom_fields?: import("./types").Json;
6999
7792
  customer_id?: string | null;
7000
7793
  customer_name?: string;
7001
7794
  deleted_at?: string | null;
7002
- delivery_date: string;
7795
+ delivery_date?: string | null;
7796
+ floriday_sales_order_id?: string | null;
7003
7797
  id?: string;
7798
+ is_reservation?: boolean;
7004
7799
  notes?: string | null;
7005
7800
  order_date?: string;
7006
7801
  order_number: string;
@@ -7012,13 +7807,16 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
7012
7807
  updated_at?: string;
7013
7808
  };
7014
7809
  Update: {
7810
+ buffer_id?: string | null;
7015
7811
  created_at?: string;
7016
7812
  custom_fields?: import("./types").Json;
7017
7813
  customer_id?: string | null;
7018
7814
  customer_name?: string;
7019
7815
  deleted_at?: string | null;
7020
- delivery_date?: string;
7816
+ delivery_date?: string | null;
7817
+ floriday_sales_order_id?: string | null;
7021
7818
  id?: string;
7819
+ is_reservation?: boolean;
7022
7820
  notes?: string | null;
7023
7821
  order_date?: string;
7024
7822
  order_number?: string;
@@ -7030,6 +7828,12 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
7030
7828
  updated_at?: string;
7031
7829
  };
7032
7830
  Relationships: [{
7831
+ foreignKeyName: "orders_buffer_id_fkey";
7832
+ columns: ["buffer_id"];
7833
+ isOneToOne: false;
7834
+ referencedRelation: "order_buffers";
7835
+ referencedColumns: ["id"];
7836
+ }, {
7033
7837
  foreignKeyName: "orders_customer_id_fkey";
7034
7838
  columns: ["customer_id"];
7035
7839
  isOneToOne: false;
@@ -7160,6 +7964,66 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
7160
7964
  };
7161
7965
  Relationships: [];
7162
7966
  };
7967
+ product_bom_items: {
7968
+ Row: {
7969
+ component_product_id: string | null;
7970
+ component_trade_item_floriday_id: string | null;
7971
+ created_at: string;
7972
+ id: string;
7973
+ notes: string | null;
7974
+ packing_configuration_id: string | null;
7975
+ parent_product_id: string | null;
7976
+ parent_trade_item_floriday_id: string | null;
7977
+ quantity: number;
7978
+ sort_order: number;
7979
+ tenant_id: string;
7980
+ unit: string;
7981
+ updated_at: string;
7982
+ };
7983
+ Insert: {
7984
+ component_product_id?: string | null;
7985
+ component_trade_item_floriday_id?: string | null;
7986
+ created_at?: string;
7987
+ id?: string;
7988
+ notes?: string | null;
7989
+ packing_configuration_id?: string | null;
7990
+ parent_product_id?: string | null;
7991
+ parent_trade_item_floriday_id?: string | null;
7992
+ quantity?: number;
7993
+ sort_order?: number;
7994
+ tenant_id: string;
7995
+ unit?: string;
7996
+ updated_at?: string;
7997
+ };
7998
+ Update: {
7999
+ component_product_id?: string | null;
8000
+ component_trade_item_floriday_id?: string | null;
8001
+ created_at?: string;
8002
+ id?: string;
8003
+ notes?: string | null;
8004
+ packing_configuration_id?: string | null;
8005
+ parent_product_id?: string | null;
8006
+ parent_trade_item_floriday_id?: string | null;
8007
+ quantity?: number;
8008
+ sort_order?: number;
8009
+ tenant_id?: string;
8010
+ unit?: string;
8011
+ updated_at?: string;
8012
+ };
8013
+ Relationships: [{
8014
+ foreignKeyName: "product_bom_items_component_product_id_fkey";
8015
+ columns: ["component_product_id"];
8016
+ isOneToOne: false;
8017
+ referencedRelation: "products";
8018
+ referencedColumns: ["id"];
8019
+ }, {
8020
+ foreignKeyName: "product_bom_items_parent_product_id_fkey";
8021
+ columns: ["parent_product_id"];
8022
+ isOneToOne: false;
8023
+ referencedRelation: "products";
8024
+ referencedColumns: ["id"];
8025
+ }];
8026
+ };
7163
8027
  product_categories: {
7164
8028
  Row: {
7165
8029
  color: string;
@@ -7265,6 +8129,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
7265
8129
  id: string;
7266
8130
  product_group_id: string;
7267
8131
  quantity: number;
8132
+ sort_order: number;
7268
8133
  trade_item_id: string;
7269
8134
  };
7270
8135
  Insert: {
@@ -7272,6 +8137,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
7272
8137
  id?: string;
7273
8138
  product_group_id: string;
7274
8139
  quantity?: number;
8140
+ sort_order?: number;
7275
8141
  trade_item_id: string;
7276
8142
  };
7277
8143
  Update: {
@@ -7279,56 +8145,173 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
7279
8145
  id?: string;
7280
8146
  product_group_id?: string;
7281
8147
  quantity?: number;
8148
+ sort_order?: number;
7282
8149
  trade_item_id?: string;
7283
8150
  };
7284
8151
  Relationships: [{
7285
8152
  foreignKeyName: "product_group_items_product_group_id_fkey";
7286
8153
  columns: ["product_group_id"];
7287
8154
  isOneToOne: false;
7288
- referencedRelation: "product_groups";
8155
+ referencedRelation: "product_groups";
8156
+ referencedColumns: ["id"];
8157
+ }];
8158
+ };
8159
+ product_groups: {
8160
+ Row: {
8161
+ created_at: string;
8162
+ description: string | null;
8163
+ head_product_id: string | null;
8164
+ head_trade_item_floriday_id: string | null;
8165
+ id: string;
8166
+ is_active: boolean;
8167
+ name: string;
8168
+ tenant_id: string;
8169
+ updated_at: string;
8170
+ };
8171
+ Insert: {
8172
+ created_at?: string;
8173
+ description?: string | null;
8174
+ head_product_id?: string | null;
8175
+ head_trade_item_floriday_id?: string | null;
8176
+ id?: string;
8177
+ is_active?: boolean;
8178
+ name: string;
8179
+ tenant_id: string;
8180
+ updated_at?: string;
8181
+ };
8182
+ Update: {
8183
+ created_at?: string;
8184
+ description?: string | null;
8185
+ head_product_id?: string | null;
8186
+ head_trade_item_floriday_id?: string | null;
8187
+ id?: string;
8188
+ is_active?: boolean;
8189
+ name?: string;
8190
+ tenant_id?: string;
8191
+ updated_at?: string;
8192
+ };
8193
+ Relationships: [{
8194
+ foreignKeyName: "product_groups_head_product_id_fkey";
8195
+ columns: ["head_product_id"];
8196
+ isOneToOne: false;
8197
+ referencedRelation: "products";
8198
+ referencedColumns: ["id"];
8199
+ }];
8200
+ };
8201
+ product_load_settings: {
8202
+ Row: {
8203
+ created_at: string;
8204
+ id: string;
8205
+ is_package: boolean;
8206
+ label: string | null;
8207
+ layers_per_load_carrier: number | null;
8208
+ load_carrier: string | null;
8209
+ package_id: string | null;
8210
+ package_label: string | null;
8211
+ packages_per_layer: number | null;
8212
+ packing_configuration_id: string;
8213
+ product_id: string | null;
8214
+ tenant_id: string;
8215
+ trade_item_floriday_id: string | null;
8216
+ units_per_package: number | null;
8217
+ updated_at: string;
8218
+ };
8219
+ Insert: {
8220
+ created_at?: string;
8221
+ id?: string;
8222
+ is_package?: boolean;
8223
+ label?: string | null;
8224
+ layers_per_load_carrier?: number | null;
8225
+ load_carrier?: string | null;
8226
+ package_id?: string | null;
8227
+ package_label?: string | null;
8228
+ packages_per_layer?: number | null;
8229
+ packing_configuration_id?: string;
8230
+ product_id?: string | null;
8231
+ tenant_id: string;
8232
+ trade_item_floriday_id?: string | null;
8233
+ units_per_package?: number | null;
8234
+ updated_at?: string;
8235
+ };
8236
+ Update: {
8237
+ created_at?: string;
8238
+ id?: string;
8239
+ is_package?: boolean;
8240
+ label?: string | null;
8241
+ layers_per_load_carrier?: number | null;
8242
+ load_carrier?: string | null;
8243
+ package_id?: string | null;
8244
+ package_label?: string | null;
8245
+ packages_per_layer?: number | null;
8246
+ packing_configuration_id?: string;
8247
+ product_id?: string | null;
8248
+ tenant_id?: string;
8249
+ trade_item_floriday_id?: string | null;
8250
+ units_per_package?: number | null;
8251
+ updated_at?: string;
8252
+ };
8253
+ Relationships: [{
8254
+ foreignKeyName: "product_load_settings_package_id_fkey";
8255
+ columns: ["package_id"];
8256
+ isOneToOne: false;
8257
+ referencedRelation: "packages";
8258
+ referencedColumns: ["id"];
8259
+ }, {
8260
+ foreignKeyName: "product_load_settings_product_id_fkey";
8261
+ columns: ["product_id"];
8262
+ isOneToOne: false;
8263
+ referencedRelation: "products";
7289
8264
  referencedColumns: ["id"];
7290
8265
  }];
7291
8266
  };
7292
- product_groups: {
8267
+ product_merge_log: {
7293
8268
  Row: {
7294
- created_at: string;
7295
- description: string | null;
8269
+ canonical_product_id: string | null;
7296
8270
  id: string;
7297
- is_active: boolean;
7298
- name: string;
7299
- tenant_id: string;
7300
- updated_at: string;
8271
+ merged_at: string;
8272
+ merged_from_id: string;
8273
+ notes: string | null;
8274
+ snapshot: import("./types").Json;
8275
+ source_table: string;
8276
+ status: string;
7301
8277
  };
7302
8278
  Insert: {
7303
- created_at?: string;
7304
- description?: string | null;
8279
+ canonical_product_id?: string | null;
7305
8280
  id?: string;
7306
- is_active?: boolean;
7307
- name: string;
7308
- tenant_id: string;
7309
- updated_at?: string;
8281
+ merged_at?: string;
8282
+ merged_from_id: string;
8283
+ notes?: string | null;
8284
+ snapshot?: import("./types").Json;
8285
+ source_table: string;
8286
+ status?: string;
7310
8287
  };
7311
8288
  Update: {
7312
- created_at?: string;
7313
- description?: string | null;
8289
+ canonical_product_id?: string | null;
7314
8290
  id?: string;
7315
- is_active?: boolean;
7316
- name?: string;
7317
- tenant_id?: string;
7318
- updated_at?: string;
8291
+ merged_at?: string;
8292
+ merged_from_id?: string;
8293
+ notes?: string | null;
8294
+ snapshot?: import("./types").Json;
8295
+ source_table?: string;
8296
+ status?: string;
7319
8297
  };
7320
8298
  Relationships: [];
7321
8299
  };
7322
8300
  products: {
7323
8301
  Row: {
8302
+ article_number: string | null;
7324
8303
  barcode: string | null;
7325
8304
  batch: string;
7326
8305
  crates_per_layer: number;
7327
8306
  created_at: string;
7328
8307
  custom_fields: import("./types").Json;
8308
+ floriday_active: boolean;
8309
+ floriday_payload: import("./types").Json;
8310
+ floriday_trade_item_id: string | null;
7329
8311
  id: string;
7330
8312
  image_url: string | null;
7331
8313
  incoming_quantity: number;
8314
+ is_layer: boolean;
7332
8315
  layers_per_cart: number;
7333
8316
  location: string;
7334
8317
  min_quantity: number;
@@ -7341,17 +8324,24 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
7341
8324
  trade_item_key: string | null;
7342
8325
  unit: string;
7343
8326
  updated_at: string;
8327
+ vat_code: string | null;
8328
+ vat_rate: number | null;
7344
8329
  weight: string | null;
7345
8330
  };
7346
8331
  Insert: {
8332
+ article_number?: string | null;
7347
8333
  barcode?: string | null;
7348
8334
  batch: string;
7349
8335
  crates_per_layer?: number;
7350
8336
  created_at?: string;
7351
8337
  custom_fields?: import("./types").Json;
8338
+ floriday_active?: boolean;
8339
+ floriday_payload?: import("./types").Json;
8340
+ floriday_trade_item_id?: string | null;
7352
8341
  id?: string;
7353
8342
  image_url?: string | null;
7354
8343
  incoming_quantity?: number;
8344
+ is_layer?: boolean;
7355
8345
  layers_per_cart?: number;
7356
8346
  location: string;
7357
8347
  min_quantity?: number;
@@ -7364,17 +8354,24 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
7364
8354
  trade_item_key?: string | null;
7365
8355
  unit?: string;
7366
8356
  updated_at?: string;
8357
+ vat_code?: string | null;
8358
+ vat_rate?: number | null;
7367
8359
  weight?: string | null;
7368
8360
  };
7369
8361
  Update: {
8362
+ article_number?: string | null;
7370
8363
  barcode?: string | null;
7371
8364
  batch?: string;
7372
8365
  crates_per_layer?: number;
7373
8366
  created_at?: string;
7374
8367
  custom_fields?: import("./types").Json;
8368
+ floriday_active?: boolean;
8369
+ floriday_payload?: import("./types").Json;
8370
+ floriday_trade_item_id?: string | null;
7375
8371
  id?: string;
7376
8372
  image_url?: string | null;
7377
8373
  incoming_quantity?: number;
8374
+ is_layer?: boolean;
7378
8375
  layers_per_cart?: number;
7379
8376
  location?: string;
7380
8377
  min_quantity?: number;
@@ -7387,6 +8384,8 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
7387
8384
  trade_item_key?: string | null;
7388
8385
  unit?: string;
7389
8386
  updated_at?: string;
8387
+ vat_code?: string | null;
8388
+ vat_rate?: number | null;
7390
8389
  weight?: string | null;
7391
8390
  };
7392
8391
  Relationships: [];
@@ -8280,8 +9279,10 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
8280
9279
  order_id: string | null;
8281
9280
  order_item_id: string | null;
8282
9281
  order_source: string | null;
9282
+ parent_trade_item_key: string | null;
8283
9283
  physical_after: number | null;
8284
9284
  physical_before: number | null;
9285
+ production_batch_id: string | null;
8285
9286
  qty_delta: number;
8286
9287
  reason: string | null;
8287
9288
  reserved_after: number | null;
@@ -8297,8 +9298,10 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
8297
9298
  order_id?: string | null;
8298
9299
  order_item_id?: string | null;
8299
9300
  order_source?: string | null;
9301
+ parent_trade_item_key?: string | null;
8300
9302
  physical_after?: number | null;
8301
9303
  physical_before?: number | null;
9304
+ production_batch_id?: string | null;
8302
9305
  qty_delta: number;
8303
9306
  reason?: string | null;
8304
9307
  reserved_after?: number | null;
@@ -8314,8 +9317,10 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
8314
9317
  order_id?: string | null;
8315
9318
  order_item_id?: string | null;
8316
9319
  order_source?: string | null;
9320
+ parent_trade_item_key?: string | null;
8317
9321
  physical_after?: number | null;
8318
9322
  physical_before?: number | null;
9323
+ production_batch_id?: string | null;
8319
9324
  qty_delta?: number;
8320
9325
  reason?: string | null;
8321
9326
  reserved_after?: number | null;
@@ -8621,6 +9626,48 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
8621
9626
  };
8622
9627
  Relationships: [];
8623
9628
  };
9629
+ trade_item_prices: {
9630
+ Row: {
9631
+ created_at: string;
9632
+ currency: string;
9633
+ id: string;
9634
+ last_push_error: string | null;
9635
+ last_pushed_at: string | null;
9636
+ price_group_id: string | null;
9637
+ price_per_piece: number;
9638
+ supply_line_id: string | null;
9639
+ trade_item_key: string;
9640
+ updated_at: string;
9641
+ user_id: string;
9642
+ };
9643
+ Insert: {
9644
+ created_at?: string;
9645
+ currency?: string;
9646
+ id?: string;
9647
+ last_push_error?: string | null;
9648
+ last_pushed_at?: string | null;
9649
+ price_group_id?: string | null;
9650
+ price_per_piece: number;
9651
+ supply_line_id?: string | null;
9652
+ trade_item_key: string;
9653
+ updated_at?: string;
9654
+ user_id: string;
9655
+ };
9656
+ Update: {
9657
+ created_at?: string;
9658
+ currency?: string;
9659
+ id?: string;
9660
+ last_push_error?: string | null;
9661
+ last_pushed_at?: string | null;
9662
+ price_group_id?: string | null;
9663
+ price_per_piece?: number;
9664
+ supply_line_id?: string | null;
9665
+ trade_item_key?: string;
9666
+ updated_at?: string;
9667
+ user_id?: string;
9668
+ };
9669
+ Relationships: [];
9670
+ };
8624
9671
  trade_item_stock: {
8625
9672
  Row: {
8626
9673
  connection_id: string;
@@ -8774,7 +9821,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
8774
9821
  twinfield_connections: {
8775
9822
  Row: {
8776
9823
  access_token: string | null;
8777
- client_id: string;
9824
+ client_id: string | null;
8778
9825
  client_secret: string | null;
8779
9826
  cluster_uri: string | null;
8780
9827
  company_code: string | null;
@@ -8786,7 +9833,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
8786
9833
  is_active: boolean;
8787
9834
  label: string | null;
8788
9835
  office_code: string | null;
8789
- redirect_uri: string;
9836
+ redirect_uri: string | null;
8790
9837
  refresh_token: string | null;
8791
9838
  token_expires_at: string | null;
8792
9839
  updated_at: string;
@@ -8794,7 +9841,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
8794
9841
  };
8795
9842
  Insert: {
8796
9843
  access_token?: string | null;
8797
- client_id: string;
9844
+ client_id?: string | null;
8798
9845
  client_secret?: string | null;
8799
9846
  cluster_uri?: string | null;
8800
9847
  company_code?: string | null;
@@ -8806,7 +9853,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
8806
9853
  is_active?: boolean;
8807
9854
  label?: string | null;
8808
9855
  office_code?: string | null;
8809
- redirect_uri: string;
9856
+ redirect_uri?: string | null;
8810
9857
  refresh_token?: string | null;
8811
9858
  token_expires_at?: string | null;
8812
9859
  updated_at?: string;
@@ -8814,7 +9861,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
8814
9861
  };
8815
9862
  Update: {
8816
9863
  access_token?: string | null;
8817
- client_id?: string;
9864
+ client_id?: string | null;
8818
9865
  client_secret?: string | null;
8819
9866
  cluster_uri?: string | null;
8820
9867
  company_code?: string | null;
@@ -8826,7 +9873,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
8826
9873
  is_active?: boolean;
8827
9874
  label?: string | null;
8828
9875
  office_code?: string | null;
8829
- redirect_uri?: string;
9876
+ redirect_uri?: string | null;
8830
9877
  refresh_token?: string | null;
8831
9878
  token_expires_at?: string | null;
8832
9879
  updated_at?: string;
@@ -9083,6 +10130,51 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
9083
10130
  referencedColumns: ["id"];
9084
10131
  }];
9085
10132
  };
10133
+ twinfield_invoice_pdf_cache: {
10134
+ Row: {
10135
+ connection_id: string;
10136
+ created_at: string;
10137
+ fetched_at: string;
10138
+ id: string;
10139
+ invoice_number: string;
10140
+ last_accessed_at: string;
10141
+ object_path: string;
10142
+ office_code: string;
10143
+ size_bytes: number;
10144
+ updated_at: string;
10145
+ };
10146
+ Insert: {
10147
+ connection_id: string;
10148
+ created_at?: string;
10149
+ fetched_at?: string;
10150
+ id?: string;
10151
+ invoice_number: string;
10152
+ last_accessed_at?: string;
10153
+ object_path: string;
10154
+ office_code: string;
10155
+ size_bytes?: number;
10156
+ updated_at?: string;
10157
+ };
10158
+ Update: {
10159
+ connection_id?: string;
10160
+ created_at?: string;
10161
+ fetched_at?: string;
10162
+ id?: string;
10163
+ invoice_number?: string;
10164
+ last_accessed_at?: string;
10165
+ object_path?: string;
10166
+ office_code?: string;
10167
+ size_bytes?: number;
10168
+ updated_at?: string;
10169
+ };
10170
+ Relationships: [{
10171
+ foreignKeyName: "twinfield_invoice_pdf_cache_connection_id_fkey";
10172
+ columns: ["connection_id"];
10173
+ isOneToOne: false;
10174
+ referencedRelation: "twinfield_connections";
10175
+ referencedColumns: ["id"];
10176
+ }];
10177
+ };
9086
10178
  twinfield_invoice_settings: {
9087
10179
  Row: {
9088
10180
  created_at: string;
@@ -10021,25 +11113,6 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
10021
11113
  };
10022
11114
  Relationships: [];
10023
11115
  };
10024
- floriday_customer_discounts: {
10025
- Row: {
10026
- base_price: number | null;
10027
- buyer_organization_id: string | null;
10028
- currency: string | null;
10029
- discount_type: string | null;
10030
- discount_value: number | null;
10031
- min_quantity: number | null;
10032
- net_price: number | null;
10033
- product_group_id: string | null;
10034
- raw: import("./types").Json | null;
10035
- source: string | null;
10036
- source_id: string | null;
10037
- trade_item_id: string | null;
10038
- valid_from: string | null;
10039
- valid_until: string | null;
10040
- };
10041
- Relationships: [];
10042
- };
10043
11116
  local_customer_discounts: {
10044
11117
  Row: {
10045
11118
  base_price: number | null;
@@ -10343,6 +11416,13 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
10343
11416
  };
10344
11417
  Returns: number;
10345
11418
  };
11419
+ _migrate_rewrite_stock_key: {
11420
+ Args: {
11421
+ _from_key: string;
11422
+ _to_key: string;
11423
+ };
11424
+ Returns: undefined;
11425
+ };
10346
11426
  afh_city_code: {
10347
11427
  Args: {
10348
11428
  _city: string;
@@ -10426,6 +11506,12 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
10426
11506
  processed_items: number;
10427
11507
  }[];
10428
11508
  };
11509
+ calculate_layer_stock: {
11510
+ Args: {
11511
+ p_product_id: string;
11512
+ };
11513
+ Returns: number;
11514
+ };
10429
11515
  call_exact_route: {
10430
11516
  Args: {
10431
11517
  path: string;
@@ -10458,6 +11544,28 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
10458
11544
  Args: never;
10459
11545
  Returns: undefined;
10460
11546
  };
11547
+ consume_bom_for_production: {
11548
+ Args: {
11549
+ p_connection_id: string;
11550
+ p_parent_id: string;
11551
+ p_parent_key: string;
11552
+ p_parent_kind: string;
11553
+ p_quantity: number;
11554
+ p_user_id: string;
11555
+ };
11556
+ Returns: import("./types").Json;
11557
+ } | {
11558
+ Args: {
11559
+ p_batch_id?: string;
11560
+ p_connection_id: string;
11561
+ p_parent_id: string;
11562
+ p_parent_key: string;
11563
+ p_parent_kind: string;
11564
+ p_quantity: number;
11565
+ p_user_id: string;
11566
+ };
11567
+ Returns: import("./types").Json;
11568
+ };
10461
11569
  consume_floriday_rate_limit: {
10462
11570
  Args: {
10463
11571
  p_bucket: string;
@@ -10509,6 +11617,13 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
10509
11617
  table_name: string;
10510
11618
  }[];
10511
11619
  };
11620
+ delete_samenstelling: {
11621
+ Args: {
11622
+ p_parent_id: string;
11623
+ p_parent_kind: string;
11624
+ };
11625
+ Returns: import("./types").Json;
11626
+ };
10512
11627
  dispatch_carrier_signups_sql: {
10513
11628
  Args: {
10514
11629
  _catchup?: string;
@@ -10550,6 +11665,16 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
10550
11665
  status: string;
10551
11666
  }[];
10552
11667
  };
11668
+ email_auth_upsert_connection: {
11669
+ Args: {
11670
+ _account_email: string;
11671
+ _created_by: string;
11672
+ _is_active: boolean;
11673
+ _provider: string;
11674
+ _status: string;
11675
+ };
11676
+ Returns: string;
11677
+ };
10553
11678
  enqueue_cart_replan_if_unlocked: {
10554
11679
  Args: {
10555
11680
  p_order_id: string;
@@ -10669,19 +11794,6 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
10669
11794
  resource: string;
10670
11795
  }[];
10671
11796
  };
10672
- get_floriday_agreements_active: {
10673
- Args: {
10674
- p_on_date?: string;
10675
- };
10676
- Returns: {
10677
- buyer_organization_id: string;
10678
- data: import("./types").Json;
10679
- floriday_id: string;
10680
- status: string;
10681
- valid_from: string;
10682
- valid_until: string;
10683
- }[];
10684
- };
10685
11797
  get_floriday_clock_supplies_window: {
10686
11798
  Args: {
10687
11799
  p_from: string;
@@ -10754,6 +11866,27 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
10754
11866
  minutes_since_success: number;
10755
11867
  }[];
10756
11868
  };
11869
+ get_group_allocation_keys: {
11870
+ Args: {
11871
+ p_product_id: string;
11872
+ };
11873
+ Returns: {
11874
+ k: string;
11875
+ ord: number;
11876
+ }[];
11877
+ };
11878
+ get_group_head_key: {
11879
+ Args: {
11880
+ p_group_id: string;
11881
+ };
11882
+ Returns: string;
11883
+ };
11884
+ get_inventory_stock_for_key: {
11885
+ Args: {
11886
+ p_key: string;
11887
+ };
11888
+ Returns: number;
11889
+ };
10757
11890
  get_offer_by_link_code: {
10758
11891
  Args: {
10759
11892
  p_code: string;
@@ -10784,6 +11917,12 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
10784
11917
  };
10785
11918
  Returns: string;
10786
11919
  };
11920
+ get_product_group_available_stock: {
11921
+ Args: {
11922
+ p_group_id: string;
11923
+ };
11924
+ Returns: number;
11925
+ };
10787
11926
  get_room_busy_windows: {
10788
11927
  Args: {
10789
11928
  p_from: string;
@@ -10864,6 +12003,32 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
10864
12003
  };
10865
12004
  Returns: undefined;
10866
12005
  };
12006
+ mark_salesorder_controlled: {
12007
+ Args: {
12008
+ p_controlled: boolean;
12009
+ p_floriday_id: string;
12010
+ };
12011
+ Returns: undefined;
12012
+ };
12013
+ mark_shipment_shipped: {
12014
+ Args: {
12015
+ p_shipment_id: string;
12016
+ };
12017
+ Returns: undefined;
12018
+ };
12019
+ merge_products: {
12020
+ Args: {
12021
+ _canonical: string;
12022
+ _loser: string;
12023
+ };
12024
+ Returns: undefined;
12025
+ };
12026
+ next_manufacture_partij: {
12027
+ Args: {
12028
+ _tenant_id: string;
12029
+ };
12030
+ Returns: string;
12031
+ };
10867
12032
  next_order_number: {
10868
12033
  Args: {
10869
12034
  p_prefix: string;
@@ -10933,6 +12098,15 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
10933
12098
  };
10934
12099
  Returns: undefined;
10935
12100
  };
12101
+ pickstation_resolve_delivery_orders: {
12102
+ Args: {
12103
+ p_sales_order_ids: string[];
12104
+ };
12105
+ Returns: {
12106
+ delivery_order_id: string;
12107
+ sales_order_id: string;
12108
+ }[];
12109
+ };
10936
12110
  pickstation_set_cart_status: {
10937
12111
  Args: {
10938
12112
  p_cart_index: number;
@@ -10942,6 +12116,14 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
10942
12116
  };
10943
12117
  Returns: undefined;
10944
12118
  };
12119
+ produce_designed_product: {
12120
+ Args: {
12121
+ p_parent_id: string;
12122
+ p_parent_kind: string;
12123
+ p_quantity: number;
12124
+ };
12125
+ Returns: import("./types").Json;
12126
+ };
10945
12127
  promote_trade_item_key: {
10946
12128
  Args: {
10947
12129
  p_new: string;
@@ -10949,6 +12131,10 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
10949
12131
  };
10950
12132
  Returns: undefined;
10951
12133
  };
12134
+ recompute_all_reserved_stock: {
12135
+ Args: never;
12136
+ Returns: undefined;
12137
+ };
10952
12138
  recompute_order_status: {
10953
12139
  Args: {
10954
12140
  p_order_id: string;
@@ -10998,27 +12184,45 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
10998
12184
  };
10999
12185
  Returns: undefined;
11000
12186
  };
12187
+ resolve_group_allocation: {
12188
+ Args: {
12189
+ _needed: number;
12190
+ _product_group_id: string;
12191
+ };
12192
+ Returns: {
12193
+ allocated: number;
12194
+ trade_item_id: string;
12195
+ }[];
12196
+ };
12197
+ resolve_group_member_stock_key: {
12198
+ Args: {
12199
+ p_trade_item_id: string;
12200
+ };
12201
+ Returns: string;
12202
+ };
11001
12203
  resolve_product_id_for_item: {
11002
12204
  Args: {
11003
12205
  p_product_name: string;
11004
12206
  };
11005
12207
  Returns: string;
11006
12208
  };
11007
- schedule_floriday_additional_services_sync: {
12209
+ resolve_stock_trade_item_key: {
11008
12210
  Args: {
11009
- p_apikey: string;
11010
- p_url: string;
12211
+ p_product_id: string;
11011
12212
  };
11012
- Returns: number;
12213
+ Returns: string;
11013
12214
  };
11014
- schedule_floriday_agreement_calloffs_sync: {
12215
+ reverse_production: {
11015
12216
  Args: {
11016
- p_apikey: string;
11017
- p_url: string;
12217
+ p_connection_id?: string;
12218
+ p_parent_key: string;
12219
+ p_quantity: number;
12220
+ p_reason?: string;
12221
+ p_user_id?: string;
11018
12222
  };
11019
- Returns: number;
12223
+ Returns: import("./types").Json;
11020
12224
  };
11021
- schedule_floriday_agreements_sync: {
12225
+ schedule_floriday_additional_services_sync: {
11022
12226
  Args: {
11023
12227
  p_apikey: string;
11024
12228
  p_url: string;
@@ -11271,6 +12475,10 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
11271
12475
  };
11272
12476
  Returns: number;
11273
12477
  };
12478
+ self_heal_floriday_links: {
12479
+ Args: never;
12480
+ Returns: number;
12481
+ };
11274
12482
  show_limit: {
11275
12483
  Args: never;
11276
12484
  Returns: number;
@@ -11281,18 +12489,34 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
11281
12489
  };
11282
12490
  Returns: string[];
11283
12491
  };
12492
+ sync_all_layer_stocks: {
12493
+ Args: never;
12494
+ Returns: undefined;
12495
+ };
11284
12496
  sync_cached_packing_from_product: {
11285
12497
  Args: {
11286
12498
  p_product_id: string;
11287
12499
  };
11288
12500
  Returns: undefined;
11289
12501
  };
12502
+ sync_layer_stock: {
12503
+ Args: {
12504
+ p_product_id: string;
12505
+ };
12506
+ Returns: undefined;
12507
+ };
11290
12508
  sync_order_cart_item_packing_from_product: {
11291
12509
  Args: {
11292
12510
  p_product_id: string;
11293
12511
  };
11294
12512
  Returns: undefined;
11295
12513
  };
12514
+ sync_product_group_belading: {
12515
+ Args: {
12516
+ _group_id: string;
12517
+ };
12518
+ Returns: undefined;
12519
+ };
11296
12520
  sync_product_packing_from_floriday_cache: {
11297
12521
  Args: {
11298
12522
  p_floriday_id: string;