@flowselections/floriday-afhandeling-module 1.0.15 → 1.0.16

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 +255 -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 +1340 -164
  29. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  30. package/dist-lib/integrations/supabase/client.d.ts +1340 -164
  31. package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
  32. package/dist-lib/integrations/supabase/client.server.d.ts +1340 -164
  33. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  34. package/dist-lib/integrations/supabase/types.d.ts +1469 -262
  35. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  36. package/dist-lib/lib/afhandelingSettings.functions.d.ts +2862 -510
  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 +195 -0
  44. package/dist-lib/lib/carriers.functions.d.ts +6645 -765
  45. package/dist-lib/lib/carriers.functions.d.ts.map +1 -1
  46. package/dist-lib/lib/cartAssignments.functions.d.ts +6645 -765
  47. package/dist-lib/lib/cartAssignments.functions.d.ts.map +1 -1
  48. package/dist-lib/lib/cartControl.functions.d.ts +13290 -1530
  49. package/dist-lib/lib/cartControl.functions.d.ts.map +1 -1
  50. package/dist-lib/lib/floriday.functions.d.ts +1340 -164
  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 +50090 -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 +12556 -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 +25068 -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 +100185 -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 +50096 -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 +6 -4
@@ -265,6 +265,165 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
265
265
  };
266
266
  Relationships: [];
267
267
  };
268
+ ai_credentials: {
269
+ Row: {
270
+ active: boolean;
271
+ api_key: string;
272
+ created_at: string;
273
+ created_by: string | null;
274
+ id: string;
275
+ label: string;
276
+ provider_id: string;
277
+ updated_at: string;
278
+ };
279
+ Insert: {
280
+ active?: boolean;
281
+ api_key: string;
282
+ created_at?: string;
283
+ created_by?: string | null;
284
+ id?: string;
285
+ label: string;
286
+ provider_id: string;
287
+ updated_at?: string;
288
+ };
289
+ Update: {
290
+ active?: boolean;
291
+ api_key?: string;
292
+ created_at?: string;
293
+ created_by?: string | null;
294
+ id?: string;
295
+ label?: string;
296
+ provider_id?: string;
297
+ updated_at?: string;
298
+ };
299
+ Relationships: [{
300
+ foreignKeyName: "ai_credentials_provider_id_fkey";
301
+ columns: ["provider_id"];
302
+ isOneToOne: false;
303
+ referencedRelation: "ai_providers";
304
+ referencedColumns: ["id"];
305
+ }];
306
+ };
307
+ ai_models: {
308
+ Row: {
309
+ active: boolean;
310
+ context_window: number | null;
311
+ created_at: string;
312
+ display_name: string;
313
+ id: string;
314
+ is_default: boolean;
315
+ modality: string;
316
+ provider_id: string;
317
+ slug: string;
318
+ updated_at: string;
319
+ };
320
+ Insert: {
321
+ active?: boolean;
322
+ context_window?: number | null;
323
+ created_at?: string;
324
+ display_name: string;
325
+ id?: string;
326
+ is_default?: boolean;
327
+ modality?: string;
328
+ provider_id: string;
329
+ slug: string;
330
+ updated_at?: string;
331
+ };
332
+ Update: {
333
+ active?: boolean;
334
+ context_window?: number | null;
335
+ created_at?: string;
336
+ display_name?: string;
337
+ id?: string;
338
+ is_default?: boolean;
339
+ modality?: string;
340
+ provider_id?: string;
341
+ slug?: string;
342
+ updated_at?: string;
343
+ };
344
+ Relationships: [{
345
+ foreignKeyName: "ai_models_provider_id_fkey";
346
+ columns: ["provider_id"];
347
+ isOneToOne: false;
348
+ referencedRelation: "ai_providers";
349
+ referencedColumns: ["id"];
350
+ }];
351
+ };
352
+ ai_module_bindings: {
353
+ Row: {
354
+ consumer_module_id: string;
355
+ created_at: string;
356
+ credential_id: string;
357
+ id: string;
358
+ model_id: string;
359
+ notes: string | null;
360
+ updated_at: string;
361
+ };
362
+ Insert: {
363
+ consumer_module_id: string;
364
+ created_at?: string;
365
+ credential_id: string;
366
+ id?: string;
367
+ model_id: string;
368
+ notes?: string | null;
369
+ updated_at?: string;
370
+ };
371
+ Update: {
372
+ consumer_module_id?: string;
373
+ created_at?: string;
374
+ credential_id?: string;
375
+ id?: string;
376
+ model_id?: string;
377
+ notes?: string | null;
378
+ updated_at?: string;
379
+ };
380
+ Relationships: [{
381
+ foreignKeyName: "ai_module_bindings_credential_id_fkey";
382
+ columns: ["credential_id"];
383
+ isOneToOne: false;
384
+ referencedRelation: "ai_credentials";
385
+ referencedColumns: ["id"];
386
+ }, {
387
+ foreignKeyName: "ai_module_bindings_model_id_fkey";
388
+ columns: ["model_id"];
389
+ isOneToOne: false;
390
+ referencedRelation: "ai_models";
391
+ referencedColumns: ["id"];
392
+ }];
393
+ };
394
+ ai_providers: {
395
+ Row: {
396
+ active: boolean;
397
+ auth_type: string;
398
+ base_url: string | null;
399
+ created_at: string;
400
+ id: string;
401
+ name: string;
402
+ slug: string;
403
+ updated_at: string;
404
+ };
405
+ Insert: {
406
+ active?: boolean;
407
+ auth_type?: string;
408
+ base_url?: string | null;
409
+ created_at?: string;
410
+ id?: string;
411
+ name: string;
412
+ slug: string;
413
+ updated_at?: string;
414
+ };
415
+ Update: {
416
+ active?: boolean;
417
+ auth_type?: string;
418
+ base_url?: string | null;
419
+ created_at?: string;
420
+ id?: string;
421
+ name?: string;
422
+ slug?: string;
423
+ updated_at?: string;
424
+ };
425
+ Relationships: [];
426
+ };
268
427
  app_settings: {
269
428
  Row: {
270
429
  created_at: string;
@@ -892,6 +1051,138 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
892
1051
  };
893
1052
  Relationships: [];
894
1053
  };
1054
+ cart_planning_pick_times: {
1055
+ Row: {
1056
+ created_at: string;
1057
+ id: string;
1058
+ pot_size: string;
1059
+ seconds_per_cart: number;
1060
+ updated_at: string;
1061
+ };
1062
+ Insert: {
1063
+ created_at?: string;
1064
+ id?: string;
1065
+ pot_size: string;
1066
+ seconds_per_cart: number;
1067
+ updated_at?: string;
1068
+ };
1069
+ Update: {
1070
+ created_at?: string;
1071
+ id?: string;
1072
+ pot_size?: string;
1073
+ seconds_per_cart?: number;
1074
+ updated_at?: string;
1075
+ };
1076
+ Relationships: [];
1077
+ };
1078
+ cart_planning_product_overrides: {
1079
+ Row: {
1080
+ created_at: string;
1081
+ id: string;
1082
+ max_party_share_per_layer_pct_override: number | null;
1083
+ never_mix: boolean;
1084
+ notes: string | null;
1085
+ product_id: string;
1086
+ updated_at: string;
1087
+ };
1088
+ Insert: {
1089
+ created_at?: string;
1090
+ id?: string;
1091
+ max_party_share_per_layer_pct_override?: number | null;
1092
+ never_mix?: boolean;
1093
+ notes?: string | null;
1094
+ product_id: string;
1095
+ updated_at?: string;
1096
+ };
1097
+ Update: {
1098
+ created_at?: string;
1099
+ id?: string;
1100
+ max_party_share_per_layer_pct_override?: number | null;
1101
+ never_mix?: boolean;
1102
+ notes?: string | null;
1103
+ product_id?: string;
1104
+ updated_at?: string;
1105
+ };
1106
+ Relationships: [{
1107
+ foreignKeyName: "cart_planning_product_overrides_product_id_fkey";
1108
+ columns: ["product_id"];
1109
+ isOneToOne: true;
1110
+ referencedRelation: "products";
1111
+ referencedColumns: ["id"];
1112
+ }];
1113
+ };
1114
+ cart_planning_settings: {
1115
+ Row: {
1116
+ allow_editing_after_pickstation_send: boolean;
1117
+ buffer_grouping_mode: string;
1118
+ combine_floriday_orders: boolean;
1119
+ combine_floriday_orders_window: string;
1120
+ combine_orders_scope: string;
1121
+ default_workers: number;
1122
+ id: number;
1123
+ max_beladingen_per_layer: number;
1124
+ max_customers_per_cart: number;
1125
+ max_one_customer_per_layer: boolean;
1126
+ max_party_share_per_layer_pct: number;
1127
+ optimization_strategy: string;
1128
+ own_cart_from_layers: number;
1129
+ pick_time_mode: string;
1130
+ plants_per_hour: number;
1131
+ require_same_carrier: boolean;
1132
+ require_same_crate_type: boolean;
1133
+ require_same_delivery_date: boolean;
1134
+ require_same_delivery_location: boolean;
1135
+ updated_at: string;
1136
+ updated_by: string | null;
1137
+ };
1138
+ Insert: {
1139
+ allow_editing_after_pickstation_send?: boolean;
1140
+ buffer_grouping_mode?: string;
1141
+ combine_floriday_orders?: boolean;
1142
+ combine_floriday_orders_window?: string;
1143
+ combine_orders_scope?: string;
1144
+ default_workers?: number;
1145
+ id?: number;
1146
+ max_beladingen_per_layer?: number;
1147
+ max_customers_per_cart?: number;
1148
+ max_one_customer_per_layer?: boolean;
1149
+ max_party_share_per_layer_pct?: number;
1150
+ optimization_strategy?: string;
1151
+ own_cart_from_layers?: number;
1152
+ pick_time_mode?: string;
1153
+ plants_per_hour?: number;
1154
+ require_same_carrier?: boolean;
1155
+ require_same_crate_type?: boolean;
1156
+ require_same_delivery_date?: boolean;
1157
+ require_same_delivery_location?: boolean;
1158
+ updated_at?: string;
1159
+ updated_by?: string | null;
1160
+ };
1161
+ Update: {
1162
+ allow_editing_after_pickstation_send?: boolean;
1163
+ buffer_grouping_mode?: string;
1164
+ combine_floriday_orders?: boolean;
1165
+ combine_floriday_orders_window?: string;
1166
+ combine_orders_scope?: string;
1167
+ default_workers?: number;
1168
+ id?: number;
1169
+ max_beladingen_per_layer?: number;
1170
+ max_customers_per_cart?: number;
1171
+ max_one_customer_per_layer?: boolean;
1172
+ max_party_share_per_layer_pct?: number;
1173
+ optimization_strategy?: string;
1174
+ own_cart_from_layers?: number;
1175
+ pick_time_mode?: string;
1176
+ plants_per_hour?: number;
1177
+ require_same_carrier?: boolean;
1178
+ require_same_crate_type?: boolean;
1179
+ require_same_delivery_date?: boolean;
1180
+ require_same_delivery_location?: boolean;
1181
+ updated_at?: string;
1182
+ updated_by?: string | null;
1183
+ };
1184
+ Relationships: [];
1185
+ };
895
1186
  cart_replan_queue: {
896
1187
  Row: {
897
1188
  attempts: number;
@@ -922,6 +1213,39 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
922
1213
  referencedColumns: ["id"];
923
1214
  }];
924
1215
  };
1216
+ cart_types: {
1217
+ Row: {
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
+ Insert: {
1228
+ created_at?: string;
1229
+ id?: string;
1230
+ is_default?: boolean;
1231
+ layer_length_cm: number;
1232
+ layer_width_cm: number;
1233
+ layers_per_cart?: number;
1234
+ name: string;
1235
+ updated_at?: string;
1236
+ };
1237
+ Update: {
1238
+ created_at?: string;
1239
+ id?: string;
1240
+ is_default?: boolean;
1241
+ layer_length_cm?: number;
1242
+ layer_width_cm?: number;
1243
+ layers_per_cart?: number;
1244
+ name?: string;
1245
+ updated_at?: string;
1246
+ };
1247
+ Relationships: [];
1248
+ };
925
1249
  collections: {
926
1250
  Row: {
927
1251
  created_at: string;
@@ -946,6 +1270,36 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
946
1270
  };
947
1271
  Relationships: [];
948
1272
  };
1273
+ crate_types: {
1274
+ Row: {
1275
+ created_at: string;
1276
+ id: string;
1277
+ length_cm: number;
1278
+ name: string;
1279
+ plants_per_crate: number;
1280
+ updated_at: string;
1281
+ width_cm: number;
1282
+ };
1283
+ Insert: {
1284
+ created_at?: string;
1285
+ id?: string;
1286
+ length_cm: number;
1287
+ name: string;
1288
+ plants_per_crate?: number;
1289
+ updated_at?: string;
1290
+ width_cm: number;
1291
+ };
1292
+ Update: {
1293
+ created_at?: string;
1294
+ id?: string;
1295
+ length_cm?: number;
1296
+ name?: string;
1297
+ plants_per_crate?: number;
1298
+ updated_at?: string;
1299
+ width_cm?: number;
1300
+ };
1301
+ Relationships: [];
1302
+ };
949
1303
  customer_audit_log: {
950
1304
  Row: {
951
1305
  action: string;
@@ -3271,127 +3625,28 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
3271
3625
  referencedColumns: ["id"];
3272
3626
  }];
3273
3627
  };
3274
- floriday_agreement_calloffs_cache: {
3628
+ floriday_auction_letters_cache: {
3275
3629
  Row: {
3276
- agreement_id: string | null;
3630
+ auction_letter_code: string;
3631
+ clock_supply_id: string;
3277
3632
  connection_id: string;
3278
- data: import("../integrations/supabase/types").Json;
3279
- delivery_date: string | null;
3633
+ content_type: string;
3280
3634
  fetched_at: string;
3281
- floriday_id: string;
3282
3635
  id: string;
3283
- is_deleted: boolean;
3284
- sequence_number: number;
3285
- status: string | null;
3286
- updated_at: string;
3636
+ storage_path: string;
3287
3637
  };
3288
3638
  Insert: {
3289
- agreement_id?: string | null;
3639
+ auction_letter_code: string;
3640
+ clock_supply_id: string;
3290
3641
  connection_id: string;
3291
- data?: import("../integrations/supabase/types").Json;
3292
- delivery_date?: string | null;
3642
+ content_type?: string;
3293
3643
  fetched_at?: string;
3294
- floriday_id: string;
3295
3644
  id?: string;
3296
- is_deleted?: boolean;
3297
- sequence_number?: number;
3298
- status?: string | null;
3299
- updated_at?: string;
3645
+ storage_path: string;
3300
3646
  };
3301
3647
  Update: {
3302
- agreement_id?: string | null;
3303
- connection_id?: string;
3304
- data?: import("../integrations/supabase/types").Json;
3305
- delivery_date?: string | null;
3306
- fetched_at?: string;
3307
- floriday_id?: string;
3308
- id?: string;
3309
- is_deleted?: boolean;
3310
- sequence_number?: number;
3311
- status?: string | null;
3312
- updated_at?: string;
3313
- };
3314
- Relationships: [{
3315
- foreignKeyName: "floriday_agreement_calloffs_cache_connection_id_fkey";
3316
- columns: ["connection_id"];
3317
- isOneToOne: false;
3318
- referencedRelation: "floriday_connections";
3319
- referencedColumns: ["id"];
3320
- }];
3321
- };
3322
- floriday_agreements_cache: {
3323
- Row: {
3324
- buyer_organization_id: string | null;
3325
- connection_id: string;
3326
- data: import("../integrations/supabase/types").Json;
3327
- fetched_at: string;
3328
- floriday_id: string;
3329
- id: string;
3330
- is_deleted: boolean;
3331
- sequence_number: number;
3332
- status: string | null;
3333
- updated_at: string;
3334
- valid_from: string | null;
3335
- valid_until: string | null;
3336
- };
3337
- Insert: {
3338
- buyer_organization_id?: string | null;
3339
- connection_id: string;
3340
- data?: import("../integrations/supabase/types").Json;
3341
- fetched_at?: string;
3342
- floriday_id: string;
3343
- id?: string;
3344
- is_deleted?: boolean;
3345
- sequence_number?: number;
3346
- status?: string | null;
3347
- updated_at?: string;
3348
- valid_from?: string | null;
3349
- valid_until?: string | null;
3350
- };
3351
- Update: {
3352
- buyer_organization_id?: string | null;
3353
- connection_id?: string;
3354
- data?: import("../integrations/supabase/types").Json;
3355
- fetched_at?: string;
3356
- floriday_id?: string;
3357
- id?: string;
3358
- is_deleted?: boolean;
3359
- sequence_number?: number;
3360
- status?: string | null;
3361
- updated_at?: string;
3362
- valid_from?: string | null;
3363
- valid_until?: string | null;
3364
- };
3365
- Relationships: [{
3366
- foreignKeyName: "floriday_agreements_cache_connection_id_fkey";
3367
- columns: ["connection_id"];
3368
- isOneToOne: false;
3369
- referencedRelation: "floriday_connections";
3370
- referencedColumns: ["id"];
3371
- }];
3372
- };
3373
- floriday_auction_letters_cache: {
3374
- Row: {
3375
- auction_letter_code: string;
3376
- clock_supply_id: string;
3377
- connection_id: string;
3378
- content_type: string;
3379
- fetched_at: string;
3380
- id: string;
3381
- storage_path: string;
3382
- };
3383
- Insert: {
3384
- auction_letter_code: string;
3385
- clock_supply_id: string;
3386
- connection_id: string;
3387
- content_type?: string;
3388
- fetched_at?: string;
3389
- id?: string;
3390
- storage_path: string;
3391
- };
3392
- Update: {
3393
- auction_letter_code?: string;
3394
- clock_supply_id?: string;
3648
+ auction_letter_code?: string;
3649
+ clock_supply_id?: string;
3395
3650
  connection_id?: string;
3396
3651
  content_type?: string;
3397
3652
  fetched_at?: string;
@@ -3868,6 +4123,27 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
3868
4123
  referencedColumns: ["id"];
3869
4124
  }];
3870
4125
  };
4126
+ floriday_continuous_stock_cache: {
4127
+ Row: {
4128
+ connection_id: string;
4129
+ fetched_at: string;
4130
+ number_of_pieces: number;
4131
+ trade_item_id: string;
4132
+ };
4133
+ Insert: {
4134
+ connection_id: string;
4135
+ fetched_at?: string;
4136
+ number_of_pieces?: number;
4137
+ trade_item_id: string;
4138
+ };
4139
+ Update: {
4140
+ connection_id?: string;
4141
+ fetched_at?: string;
4142
+ number_of_pieces?: number;
4143
+ trade_item_id?: string;
4144
+ };
4145
+ Relationships: [];
4146
+ };
3871
4147
  floriday_continuous_stock_queue: {
3872
4148
  Row: {
3873
4149
  attempts: number;
@@ -4643,6 +4919,8 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
4643
4919
  Row: {
4644
4920
  buyer_organization_id: string | null;
4645
4921
  connection_id: string;
4922
+ controlled_at: string | null;
4923
+ controlled_by: string | null;
4646
4924
  created_at: string;
4647
4925
  data: import("../integrations/supabase/types").Json;
4648
4926
  floriday_id: string;
@@ -4654,6 +4932,8 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
4654
4932
  Insert: {
4655
4933
  buyer_organization_id?: string | null;
4656
4934
  connection_id: string;
4935
+ controlled_at?: string | null;
4936
+ controlled_by?: string | null;
4657
4937
  created_at?: string;
4658
4938
  data: import("../integrations/supabase/types").Json;
4659
4939
  floriday_id: string;
@@ -4665,6 +4945,8 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
4665
4945
  Update: {
4666
4946
  buyer_organization_id?: string | null;
4667
4947
  connection_id?: string;
4948
+ controlled_at?: string | null;
4949
+ controlled_by?: string | null;
4668
4950
  created_at?: string;
4669
4951
  data?: import("../integrations/supabase/types").Json;
4670
4952
  floriday_id?: string;
@@ -4846,6 +5128,45 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
4846
5128
  referencedColumns: ["id"];
4847
5129
  }];
4848
5130
  };
5131
+ floriday_trade_settings_customers_cache: {
5132
+ Row: {
5133
+ connection_id: string;
5134
+ data: import("../integrations/supabase/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
+ Insert: {
5143
+ connection_id: string;
5144
+ data: import("../integrations/supabase/types").Json;
5145
+ fetched_at?: string;
5146
+ floriday_id: string;
5147
+ id?: string;
5148
+ is_deleted?: boolean;
5149
+ sequence_number?: number;
5150
+ updated_at?: string;
5151
+ };
5152
+ Update: {
5153
+ connection_id?: string;
5154
+ data?: import("../integrations/supabase/types").Json;
5155
+ fetched_at?: string;
5156
+ floriday_id?: string;
5157
+ id?: string;
5158
+ is_deleted?: boolean;
5159
+ sequence_number?: number;
5160
+ updated_at?: string;
5161
+ };
5162
+ Relationships: [{
5163
+ foreignKeyName: "floriday_trade_settings_customers_cache_connection_id_fkey";
5164
+ columns: ["connection_id"];
5165
+ isOneToOne: false;
5166
+ referencedRelation: "floriday_connections";
5167
+ referencedColumns: ["id"];
5168
+ }];
5169
+ };
4849
5170
  floriday_trips_cache: {
4850
5171
  Row: {
4851
5172
  carrier_organization_id: string | null;
@@ -4894,6 +5215,27 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
4894
5215
  referencedColumns: ["id"];
4895
5216
  }];
4896
5217
  };
5218
+ floriday_vbn_required_characteristics: {
5219
+ Row: {
5220
+ required_codes: string[];
5221
+ updated_at: string;
5222
+ updated_by: string | null;
5223
+ vbn_code: string;
5224
+ };
5225
+ Insert: {
5226
+ required_codes?: string[];
5227
+ updated_at?: string;
5228
+ updated_by?: string | null;
5229
+ vbn_code: string;
5230
+ };
5231
+ Update: {
5232
+ required_codes?: string[];
5233
+ updated_at?: string;
5234
+ updated_by?: string | null;
5235
+ vbn_code?: string;
5236
+ };
5237
+ Relationships: [];
5238
+ };
4897
5239
  floriday_warehouses_cache: {
4898
5240
  Row: {
4899
5241
  connection_id: string;
@@ -5596,6 +5938,285 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
5596
5938
  };
5597
5939
  Relationships: [];
5598
5940
  };
5941
+ logistics_capacity_events: {
5942
+ Row: {
5943
+ available_carts: number;
5944
+ created_at: string;
5945
+ id: string;
5946
+ measures: import("../integrations/supabase/types").Json;
5947
+ note: string | null;
5948
+ outcome: string;
5949
+ required_carts: number;
5950
+ reserve_minutes: number;
5951
+ shortage_carts: number;
5952
+ status: string;
5953
+ user_id: string;
5954
+ };
5955
+ Insert: {
5956
+ available_carts?: number;
5957
+ created_at?: string;
5958
+ id?: string;
5959
+ measures?: import("../integrations/supabase/types").Json;
5960
+ note?: string | null;
5961
+ outcome?: string;
5962
+ required_carts?: number;
5963
+ reserve_minutes?: number;
5964
+ shortage_carts?: number;
5965
+ status: string;
5966
+ user_id: string;
5967
+ };
5968
+ Update: {
5969
+ available_carts?: number;
5970
+ created_at?: string;
5971
+ id?: string;
5972
+ measures?: import("../integrations/supabase/types").Json;
5973
+ note?: string | null;
5974
+ outcome?: string;
5975
+ required_carts?: number;
5976
+ reserve_minutes?: number;
5977
+ shortage_carts?: number;
5978
+ status?: string;
5979
+ user_id?: string;
5980
+ };
5981
+ Relationships: [];
5982
+ };
5983
+ logistics_capacity_settings: {
5984
+ Row: {
5985
+ created_at: string;
5986
+ settings: import("../integrations/supabase/types").Json;
5987
+ updated_at: string;
5988
+ user_id: string;
5989
+ };
5990
+ Insert: {
5991
+ created_at?: string;
5992
+ settings?: import("../integrations/supabase/types").Json;
5993
+ updated_at?: string;
5994
+ user_id: string;
5995
+ };
5996
+ Update: {
5997
+ created_at?: string;
5998
+ settings?: import("../integrations/supabase/types").Json;
5999
+ updated_at?: string;
6000
+ user_id?: string;
6001
+ };
6002
+ Relationships: [];
6003
+ };
6004
+ logistics_decisions: {
6005
+ Row: {
6006
+ created_at: string;
6007
+ explanation: string | null;
6008
+ id: string;
6009
+ input_snapshot: import("../integrations/supabase/types").Json;
6010
+ result: import("../integrations/supabase/types").Json;
6011
+ slot: string;
6012
+ strategy_id: string | null;
6013
+ subject_id: string;
6014
+ subject_type: string;
6015
+ user_id: string;
6016
+ };
6017
+ Insert: {
6018
+ created_at?: string;
6019
+ explanation?: string | null;
6020
+ id?: string;
6021
+ input_snapshot?: import("../integrations/supabase/types").Json;
6022
+ result?: import("../integrations/supabase/types").Json;
6023
+ slot: string;
6024
+ strategy_id?: string | null;
6025
+ subject_id: string;
6026
+ subject_type: string;
6027
+ user_id: string;
6028
+ };
6029
+ Update: {
6030
+ created_at?: string;
6031
+ explanation?: string | null;
6032
+ id?: string;
6033
+ input_snapshot?: import("../integrations/supabase/types").Json;
6034
+ result?: import("../integrations/supabase/types").Json;
6035
+ slot?: string;
6036
+ strategy_id?: string | null;
6037
+ subject_id?: string;
6038
+ subject_type?: string;
6039
+ user_id?: string;
6040
+ };
6041
+ Relationships: [{
6042
+ foreignKeyName: "logistics_decisions_strategy_id_fkey";
6043
+ columns: ["strategy_id"];
6044
+ isOneToOne: false;
6045
+ referencedRelation: "logistics_strategies";
6046
+ referencedColumns: ["id"];
6047
+ }];
6048
+ };
6049
+ logistics_formulas: {
6050
+ Row: {
6051
+ created_at: string;
6052
+ expression: string;
6053
+ id: string;
6054
+ notes: string | null;
6055
+ slot: string;
6056
+ strategy_id: string;
6057
+ updated_at: string;
6058
+ user_id: string;
6059
+ version: number;
6060
+ };
6061
+ Insert: {
6062
+ created_at?: string;
6063
+ expression?: string;
6064
+ id?: string;
6065
+ notes?: string | null;
6066
+ slot: string;
6067
+ strategy_id: string;
6068
+ updated_at?: string;
6069
+ user_id: string;
6070
+ version?: number;
6071
+ };
6072
+ Update: {
6073
+ created_at?: string;
6074
+ expression?: string;
6075
+ id?: string;
6076
+ notes?: string | null;
6077
+ slot?: string;
6078
+ strategy_id?: string;
6079
+ updated_at?: string;
6080
+ user_id?: string;
6081
+ version?: number;
6082
+ };
6083
+ Relationships: [{
6084
+ foreignKeyName: "logistics_formulas_strategy_id_fkey";
6085
+ columns: ["strategy_id"];
6086
+ isOneToOne: false;
6087
+ referencedRelation: "logistics_strategies";
6088
+ referencedColumns: ["id"];
6089
+ }];
6090
+ };
6091
+ logistics_strategies: {
6092
+ Row: {
6093
+ color: string;
6094
+ created_at: string;
6095
+ description: string | null;
6096
+ id: string;
6097
+ is_active: boolean;
6098
+ name: string;
6099
+ priority: number;
6100
+ updated_at: string;
6101
+ updated_by: string | null;
6102
+ user_id: string;
6103
+ version: number;
6104
+ };
6105
+ Insert: {
6106
+ color?: string;
6107
+ created_at?: string;
6108
+ description?: string | null;
6109
+ id?: string;
6110
+ is_active?: boolean;
6111
+ name: string;
6112
+ priority?: number;
6113
+ updated_at?: string;
6114
+ updated_by?: string | null;
6115
+ user_id: string;
6116
+ version?: number;
6117
+ };
6118
+ Update: {
6119
+ color?: string;
6120
+ created_at?: string;
6121
+ description?: string | null;
6122
+ id?: string;
6123
+ is_active?: boolean;
6124
+ name?: string;
6125
+ priority?: number;
6126
+ updated_at?: string;
6127
+ updated_by?: string | null;
6128
+ user_id?: string;
6129
+ version?: number;
6130
+ };
6131
+ Relationships: [];
6132
+ };
6133
+ logistics_strategy_schedules: {
6134
+ Row: {
6135
+ condition_expression: string | null;
6136
+ created_at: string;
6137
+ end_date: string | null;
6138
+ id: string;
6139
+ is_enabled: boolean;
6140
+ priority: number;
6141
+ rule_type: string;
6142
+ start_date: string | null;
6143
+ strategy_id: string;
6144
+ updated_at: string;
6145
+ user_id: string;
6146
+ };
6147
+ Insert: {
6148
+ condition_expression?: string | null;
6149
+ created_at?: string;
6150
+ end_date?: string | null;
6151
+ id?: string;
6152
+ is_enabled?: boolean;
6153
+ priority?: number;
6154
+ rule_type: string;
6155
+ start_date?: string | null;
6156
+ strategy_id: string;
6157
+ updated_at?: string;
6158
+ user_id: string;
6159
+ };
6160
+ Update: {
6161
+ condition_expression?: string | null;
6162
+ created_at?: string;
6163
+ end_date?: string | null;
6164
+ id?: string;
6165
+ is_enabled?: boolean;
6166
+ priority?: number;
6167
+ rule_type?: string;
6168
+ start_date?: string | null;
6169
+ strategy_id?: string;
6170
+ updated_at?: string;
6171
+ user_id?: string;
6172
+ };
6173
+ Relationships: [{
6174
+ foreignKeyName: "logistics_strategy_schedules_strategy_id_fkey";
6175
+ columns: ["strategy_id"];
6176
+ isOneToOne: false;
6177
+ referencedRelation: "logistics_strategies";
6178
+ referencedColumns: ["id"];
6179
+ }];
6180
+ };
6181
+ logistics_variables: {
6182
+ Row: {
6183
+ created_at: string;
6184
+ default_value: string | null;
6185
+ description: string | null;
6186
+ id: string;
6187
+ is_builtin: boolean;
6188
+ key: string;
6189
+ label: string;
6190
+ updated_at: string;
6191
+ user_id: string;
6192
+ value_type: string;
6193
+ };
6194
+ Insert: {
6195
+ created_at?: string;
6196
+ default_value?: string | null;
6197
+ description?: string | null;
6198
+ id?: string;
6199
+ is_builtin?: boolean;
6200
+ key: string;
6201
+ label: string;
6202
+ updated_at?: string;
6203
+ user_id: string;
6204
+ value_type: string;
6205
+ };
6206
+ Update: {
6207
+ created_at?: string;
6208
+ default_value?: string | null;
6209
+ description?: string | null;
6210
+ id?: string;
6211
+ is_builtin?: boolean;
6212
+ key?: string;
6213
+ label?: string;
6214
+ updated_at?: string;
6215
+ user_id?: string;
6216
+ value_type?: string;
6217
+ };
6218
+ Relationships: [];
6219
+ };
5599
6220
  mailbox_messages: {
5600
6221
  Row: {
5601
6222
  body_html: string | null;
@@ -5991,39 +6612,60 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
5991
6612
  };
5992
6613
  manufacture_products: {
5993
6614
  Row: {
6615
+ aantal_te_produceren: number;
5994
6616
  created_at: string;
5995
6617
  description: string | null;
5996
6618
  id: string;
5997
6619
  is_active: boolean;
6620
+ location_id: string | null;
5998
6621
  name: string;
6622
+ partij_nummer: string | null;
6623
+ photos: import("../integrations/supabase/types").Json;
5999
6624
  produced_stock: number;
6000
6625
  product_code: string;
6001
6626
  tenant_id: string;
6627
+ unit: string;
6002
6628
  updated_at: string;
6003
6629
  };
6004
6630
  Insert: {
6631
+ aantal_te_produceren?: number;
6005
6632
  created_at?: string;
6006
6633
  description?: string | null;
6007
6634
  id?: string;
6008
6635
  is_active?: boolean;
6636
+ location_id?: string | null;
6009
6637
  name: string;
6638
+ partij_nummer?: string | null;
6639
+ photos?: import("../integrations/supabase/types").Json;
6010
6640
  produced_stock?: number;
6011
6641
  product_code: string;
6012
6642
  tenant_id: string;
6643
+ unit?: string;
6013
6644
  updated_at?: string;
6014
6645
  };
6015
6646
  Update: {
6647
+ aantal_te_produceren?: number;
6016
6648
  created_at?: string;
6017
6649
  description?: string | null;
6018
6650
  id?: string;
6019
6651
  is_active?: boolean;
6652
+ location_id?: string | null;
6020
6653
  name?: string;
6654
+ partij_nummer?: string | null;
6655
+ photos?: import("../integrations/supabase/types").Json;
6021
6656
  produced_stock?: number;
6022
6657
  product_code?: string;
6023
6658
  tenant_id?: string;
6659
+ unit?: string;
6024
6660
  updated_at?: string;
6025
6661
  };
6026
- Relationships: [];
6662
+ Relationships: [{
6663
+ foreignKeyName: "manufacture_products_location_id_fkey";
6664
+ columns: ["location_id"];
6665
+ isOneToOne: false;
6666
+ referencedRelation: "locations";
6667
+ referencedColumns: ["id"];
6668
+ }];
6027
6669
  };
6028
6670
  monteurs: {
6029
6671
  Row: {
@@ -6754,6 +7396,42 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
6754
7396
  };
6755
7397
  Relationships: [];
6756
7398
  };
7399
+ order_buffers: {
7400
+ Row: {
7401
+ buffer_key: string;
7402
+ created_at: string;
7403
+ customer_id: string | null;
7404
+ grouping_mode: string;
7405
+ id: string;
7406
+ pickup_date: string | null;
7407
+ pickup_location: string | null;
7408
+ plan_locked_at: string | null;
7409
+ updated_at: string;
7410
+ };
7411
+ Insert: {
7412
+ buffer_key: string;
7413
+ created_at?: string;
7414
+ customer_id?: string | null;
7415
+ grouping_mode: string;
7416
+ id?: string;
7417
+ pickup_date?: string | null;
7418
+ pickup_location?: string | null;
7419
+ plan_locked_at?: string | null;
7420
+ updated_at?: string;
7421
+ };
7422
+ Update: {
7423
+ buffer_key?: string;
7424
+ created_at?: string;
7425
+ customer_id?: string | null;
7426
+ grouping_mode?: string;
7427
+ id?: string;
7428
+ pickup_date?: string | null;
7429
+ pickup_location?: string | null;
7430
+ plan_locked_at?: string | null;
7431
+ updated_at?: string;
7432
+ };
7433
+ Relationships: [];
7434
+ };
6757
7435
  order_cart_items: {
6758
7436
  Row: {
6759
7437
  cart_id: string;
@@ -6820,6 +7498,7 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
6820
7498
  order_carts: {
6821
7499
  Row: {
6822
7500
  algorithm_version: number;
7501
+ buffer_id: string | null;
6823
7502
  cart_number: number;
6824
7503
  created_at: string;
6825
7504
  id: string;
@@ -6827,13 +7506,14 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
6827
7506
  is_complete: boolean;
6828
7507
  notes: string | null;
6829
7508
  occupancy_pct: number;
6830
- order_id: string;
7509
+ order_id: string | null;
6831
7510
  source: string;
6832
7511
  total_layers_used: number;
6833
7512
  updated_at: string;
6834
7513
  };
6835
7514
  Insert: {
6836
7515
  algorithm_version?: number;
7516
+ buffer_id?: string | null;
6837
7517
  cart_number: number;
6838
7518
  created_at?: string;
6839
7519
  id?: string;
@@ -6841,13 +7521,14 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
6841
7521
  is_complete?: boolean;
6842
7522
  notes?: string | null;
6843
7523
  occupancy_pct?: number;
6844
- order_id: string;
7524
+ order_id?: string | null;
6845
7525
  source?: string;
6846
7526
  total_layers_used?: number;
6847
7527
  updated_at?: string;
6848
7528
  };
6849
7529
  Update: {
6850
7530
  algorithm_version?: number;
7531
+ buffer_id?: string | null;
6851
7532
  cart_number?: number;
6852
7533
  created_at?: string;
6853
7534
  id?: string;
@@ -6855,12 +7536,18 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
6855
7536
  is_complete?: boolean;
6856
7537
  notes?: string | null;
6857
7538
  occupancy_pct?: number;
6858
- order_id?: string;
7539
+ order_id?: string | null;
6859
7540
  source?: string;
6860
7541
  total_layers_used?: number;
6861
7542
  updated_at?: string;
6862
7543
  };
6863
7544
  Relationships: [{
7545
+ foreignKeyName: "order_carts_buffer_id_fkey";
7546
+ columns: ["buffer_id"];
7547
+ isOneToOne: false;
7548
+ referencedRelation: "order_buffers";
7549
+ referencedColumns: ["id"];
7550
+ }, {
6864
7551
  foreignKeyName: "order_carts_order_id_fkey";
6865
7552
  columns: ["order_id"];
6866
7553
  isOneToOne: false;
@@ -6997,15 +7684,117 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
6997
7684
  };
6998
7685
  Relationships: [];
6999
7686
  };
7687
+ order_shipment_items: {
7688
+ Row: {
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
+ Insert: {
7699
+ created_at?: string;
7700
+ id?: string;
7701
+ order_item_id: string;
7702
+ product_id?: string | null;
7703
+ product_name: string;
7704
+ quantity: number;
7705
+ shipment_id: string;
7706
+ updated_at?: string;
7707
+ };
7708
+ Update: {
7709
+ created_at?: string;
7710
+ id?: string;
7711
+ order_item_id?: string;
7712
+ product_id?: string | null;
7713
+ product_name?: string;
7714
+ quantity?: number;
7715
+ shipment_id?: string;
7716
+ updated_at?: string;
7717
+ };
7718
+ Relationships: [{
7719
+ foreignKeyName: "order_shipment_items_order_item_id_fkey";
7720
+ columns: ["order_item_id"];
7721
+ isOneToOne: false;
7722
+ referencedRelation: "order_items";
7723
+ referencedColumns: ["id"];
7724
+ }, {
7725
+ foreignKeyName: "order_shipment_items_shipment_id_fkey";
7726
+ columns: ["shipment_id"];
7727
+ isOneToOne: false;
7728
+ referencedRelation: "order_shipments";
7729
+ referencedColumns: ["id"];
7730
+ }];
7731
+ };
7732
+ order_shipments: {
7733
+ Row: {
7734
+ carrier_id: string | null;
7735
+ created_at: string;
7736
+ delivery_date: string | null;
7737
+ delivery_location_id: string | null;
7738
+ id: string;
7739
+ notes: string | null;
7740
+ order_id: string;
7741
+ shipment_number: number;
7742
+ shipped_at: string | null;
7743
+ status: string;
7744
+ updated_at: string;
7745
+ };
7746
+ Insert: {
7747
+ carrier_id?: string | null;
7748
+ created_at?: string;
7749
+ delivery_date?: string | null;
7750
+ delivery_location_id?: string | null;
7751
+ id?: string;
7752
+ notes?: string | null;
7753
+ order_id: string;
7754
+ shipment_number: number;
7755
+ shipped_at?: string | null;
7756
+ status?: string;
7757
+ updated_at?: string;
7758
+ };
7759
+ Update: {
7760
+ carrier_id?: string | null;
7761
+ created_at?: string;
7762
+ delivery_date?: string | null;
7763
+ delivery_location_id?: string | null;
7764
+ id?: string;
7765
+ notes?: string | null;
7766
+ order_id?: string;
7767
+ shipment_number?: number;
7768
+ shipped_at?: string | null;
7769
+ status?: string;
7770
+ updated_at?: string;
7771
+ };
7772
+ Relationships: [{
7773
+ foreignKeyName: "order_shipments_carrier_id_fkey";
7774
+ columns: ["carrier_id"];
7775
+ isOneToOne: false;
7776
+ referencedRelation: "carriers";
7777
+ referencedColumns: ["id"];
7778
+ }, {
7779
+ foreignKeyName: "order_shipments_order_id_fkey";
7780
+ columns: ["order_id"];
7781
+ isOneToOne: false;
7782
+ referencedRelation: "orders";
7783
+ referencedColumns: ["id"];
7784
+ }];
7785
+ };
7000
7786
  orders: {
7001
7787
  Row: {
7788
+ buffer_id: string | null;
7002
7789
  created_at: string;
7003
7790
  custom_fields: import("../integrations/supabase/types").Json;
7004
7791
  customer_id: string | null;
7005
7792
  customer_name: string;
7006
7793
  deleted_at: string | null;
7007
- delivery_date: string;
7794
+ delivery_date: string | null;
7795
+ floriday_sales_order_id: string | null;
7008
7796
  id: string;
7797
+ is_reservation: boolean;
7009
7798
  notes: string | null;
7010
7799
  order_date: string;
7011
7800
  order_number: string;
@@ -7017,13 +7806,16 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
7017
7806
  updated_at: string;
7018
7807
  };
7019
7808
  Insert: {
7809
+ buffer_id?: string | null;
7020
7810
  created_at?: string;
7021
7811
  custom_fields?: import("../integrations/supabase/types").Json;
7022
7812
  customer_id?: string | null;
7023
7813
  customer_name?: string;
7024
7814
  deleted_at?: string | null;
7025
- delivery_date: string;
7815
+ delivery_date?: string | null;
7816
+ floriday_sales_order_id?: string | null;
7026
7817
  id?: string;
7818
+ is_reservation?: boolean;
7027
7819
  notes?: string | null;
7028
7820
  order_date?: string;
7029
7821
  order_number: string;
@@ -7035,13 +7827,16 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
7035
7827
  updated_at?: string;
7036
7828
  };
7037
7829
  Update: {
7830
+ buffer_id?: string | null;
7038
7831
  created_at?: string;
7039
7832
  custom_fields?: import("../integrations/supabase/types").Json;
7040
7833
  customer_id?: string | null;
7041
7834
  customer_name?: string;
7042
7835
  deleted_at?: string | null;
7043
- delivery_date?: string;
7836
+ delivery_date?: string | null;
7837
+ floriday_sales_order_id?: string | null;
7044
7838
  id?: string;
7839
+ is_reservation?: boolean;
7045
7840
  notes?: string | null;
7046
7841
  order_date?: string;
7047
7842
  order_number?: string;
@@ -7053,6 +7848,12 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
7053
7848
  updated_at?: string;
7054
7849
  };
7055
7850
  Relationships: [{
7851
+ foreignKeyName: "orders_buffer_id_fkey";
7852
+ columns: ["buffer_id"];
7853
+ isOneToOne: false;
7854
+ referencedRelation: "order_buffers";
7855
+ referencedColumns: ["id"];
7856
+ }, {
7056
7857
  foreignKeyName: "orders_customer_id_fkey";
7057
7858
  columns: ["customer_id"];
7058
7859
  isOneToOne: false;
@@ -7183,6 +7984,66 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
7183
7984
  };
7184
7985
  Relationships: [];
7185
7986
  };
7987
+ product_bom_items: {
7988
+ Row: {
7989
+ component_product_id: string | null;
7990
+ component_trade_item_floriday_id: string | null;
7991
+ created_at: string;
7992
+ id: string;
7993
+ notes: string | null;
7994
+ packing_configuration_id: string | null;
7995
+ parent_product_id: string | null;
7996
+ parent_trade_item_floriday_id: string | null;
7997
+ quantity: number;
7998
+ sort_order: number;
7999
+ tenant_id: string;
8000
+ unit: string;
8001
+ updated_at: string;
8002
+ };
8003
+ Insert: {
8004
+ component_product_id?: string | null;
8005
+ component_trade_item_floriday_id?: string | null;
8006
+ created_at?: string;
8007
+ id?: string;
8008
+ notes?: string | null;
8009
+ packing_configuration_id?: string | null;
8010
+ parent_product_id?: string | null;
8011
+ parent_trade_item_floriday_id?: string | null;
8012
+ quantity?: number;
8013
+ sort_order?: number;
8014
+ tenant_id: string;
8015
+ unit?: string;
8016
+ updated_at?: string;
8017
+ };
8018
+ Update: {
8019
+ component_product_id?: string | null;
8020
+ component_trade_item_floriday_id?: string | null;
8021
+ created_at?: string;
8022
+ id?: string;
8023
+ notes?: string | null;
8024
+ packing_configuration_id?: string | null;
8025
+ parent_product_id?: string | null;
8026
+ parent_trade_item_floriday_id?: string | null;
8027
+ quantity?: number;
8028
+ sort_order?: number;
8029
+ tenant_id?: string;
8030
+ unit?: string;
8031
+ updated_at?: string;
8032
+ };
8033
+ Relationships: [{
8034
+ foreignKeyName: "product_bom_items_component_product_id_fkey";
8035
+ columns: ["component_product_id"];
8036
+ isOneToOne: false;
8037
+ referencedRelation: "products";
8038
+ referencedColumns: ["id"];
8039
+ }, {
8040
+ foreignKeyName: "product_bom_items_parent_product_id_fkey";
8041
+ columns: ["parent_product_id"];
8042
+ isOneToOne: false;
8043
+ referencedRelation: "products";
8044
+ referencedColumns: ["id"];
8045
+ }];
8046
+ };
7186
8047
  product_categories: {
7187
8048
  Row: {
7188
8049
  color: string;
@@ -7288,6 +8149,7 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
7288
8149
  id: string;
7289
8150
  product_group_id: string;
7290
8151
  quantity: number;
8152
+ sort_order: number;
7291
8153
  trade_item_id: string;
7292
8154
  };
7293
8155
  Insert: {
@@ -7295,6 +8157,7 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
7295
8157
  id?: string;
7296
8158
  product_group_id: string;
7297
8159
  quantity?: number;
8160
+ sort_order?: number;
7298
8161
  trade_item_id: string;
7299
8162
  };
7300
8163
  Update: {
@@ -7302,6 +8165,7 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
7302
8165
  id?: string;
7303
8166
  product_group_id?: string;
7304
8167
  quantity?: number;
8168
+ sort_order?: number;
7305
8169
  trade_item_id?: string;
7306
8170
  };
7307
8171
  Relationships: [{
@@ -7316,6 +8180,8 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
7316
8180
  Row: {
7317
8181
  created_at: string;
7318
8182
  description: string | null;
8183
+ head_product_id: string | null;
8184
+ head_trade_item_floriday_id: string | null;
7319
8185
  id: string;
7320
8186
  is_active: boolean;
7321
8187
  name: string;
@@ -7325,6 +8191,8 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
7325
8191
  Insert: {
7326
8192
  created_at?: string;
7327
8193
  description?: string | null;
8194
+ head_product_id?: string | null;
8195
+ head_trade_item_floriday_id?: string | null;
7328
8196
  id?: string;
7329
8197
  is_active?: boolean;
7330
8198
  name: string;
@@ -7334,24 +8202,136 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
7334
8202
  Update: {
7335
8203
  created_at?: string;
7336
8204
  description?: string | null;
8205
+ head_product_id?: string | null;
8206
+ head_trade_item_floriday_id?: string | null;
7337
8207
  id?: string;
7338
8208
  is_active?: boolean;
7339
8209
  name?: string;
7340
8210
  tenant_id?: string;
7341
8211
  updated_at?: string;
7342
8212
  };
8213
+ Relationships: [{
8214
+ foreignKeyName: "product_groups_head_product_id_fkey";
8215
+ columns: ["head_product_id"];
8216
+ isOneToOne: false;
8217
+ referencedRelation: "products";
8218
+ referencedColumns: ["id"];
8219
+ }];
8220
+ };
8221
+ product_load_settings: {
8222
+ Row: {
8223
+ created_at: string;
8224
+ id: string;
8225
+ is_package: boolean;
8226
+ label: string | null;
8227
+ layers_per_load_carrier: number | null;
8228
+ load_carrier: string | null;
8229
+ package_id: string | null;
8230
+ package_label: string | null;
8231
+ packages_per_layer: number | null;
8232
+ packing_configuration_id: string;
8233
+ product_id: string | null;
8234
+ tenant_id: string;
8235
+ trade_item_floriday_id: string | null;
8236
+ units_per_package: number | null;
8237
+ updated_at: string;
8238
+ };
8239
+ Insert: {
8240
+ created_at?: string;
8241
+ id?: string;
8242
+ is_package?: boolean;
8243
+ label?: string | null;
8244
+ layers_per_load_carrier?: number | null;
8245
+ load_carrier?: string | null;
8246
+ package_id?: string | null;
8247
+ package_label?: string | null;
8248
+ packages_per_layer?: number | null;
8249
+ packing_configuration_id?: string;
8250
+ product_id?: string | null;
8251
+ tenant_id: string;
8252
+ trade_item_floriday_id?: string | null;
8253
+ units_per_package?: number | null;
8254
+ updated_at?: string;
8255
+ };
8256
+ Update: {
8257
+ created_at?: string;
8258
+ id?: string;
8259
+ is_package?: boolean;
8260
+ label?: string | null;
8261
+ layers_per_load_carrier?: number | null;
8262
+ load_carrier?: string | null;
8263
+ package_id?: string | null;
8264
+ package_label?: string | null;
8265
+ packages_per_layer?: number | null;
8266
+ packing_configuration_id?: string;
8267
+ product_id?: string | null;
8268
+ tenant_id?: string;
8269
+ trade_item_floriday_id?: string | null;
8270
+ units_per_package?: number | null;
8271
+ updated_at?: string;
8272
+ };
8273
+ Relationships: [{
8274
+ foreignKeyName: "product_load_settings_package_id_fkey";
8275
+ columns: ["package_id"];
8276
+ isOneToOne: false;
8277
+ referencedRelation: "packages";
8278
+ referencedColumns: ["id"];
8279
+ }, {
8280
+ foreignKeyName: "product_load_settings_product_id_fkey";
8281
+ columns: ["product_id"];
8282
+ isOneToOne: false;
8283
+ referencedRelation: "products";
8284
+ referencedColumns: ["id"];
8285
+ }];
8286
+ };
8287
+ product_merge_log: {
8288
+ Row: {
8289
+ canonical_product_id: string | null;
8290
+ id: string;
8291
+ merged_at: string;
8292
+ merged_from_id: string;
8293
+ notes: string | null;
8294
+ snapshot: import("../integrations/supabase/types").Json;
8295
+ source_table: string;
8296
+ status: string;
8297
+ };
8298
+ Insert: {
8299
+ canonical_product_id?: string | null;
8300
+ id?: string;
8301
+ merged_at?: string;
8302
+ merged_from_id: string;
8303
+ notes?: string | null;
8304
+ snapshot?: import("../integrations/supabase/types").Json;
8305
+ source_table: string;
8306
+ status?: string;
8307
+ };
8308
+ Update: {
8309
+ canonical_product_id?: string | null;
8310
+ id?: string;
8311
+ merged_at?: string;
8312
+ merged_from_id?: string;
8313
+ notes?: string | null;
8314
+ snapshot?: import("../integrations/supabase/types").Json;
8315
+ source_table?: string;
8316
+ status?: string;
8317
+ };
7343
8318
  Relationships: [];
7344
8319
  };
7345
8320
  products: {
7346
8321
  Row: {
8322
+ article_number: string | null;
7347
8323
  barcode: string | null;
7348
8324
  batch: string;
7349
8325
  crates_per_layer: number;
7350
8326
  created_at: string;
7351
8327
  custom_fields: import("../integrations/supabase/types").Json;
8328
+ floriday_active: boolean;
8329
+ floriday_payload: import("../integrations/supabase/types").Json;
8330
+ floriday_trade_item_id: string | null;
7352
8331
  id: string;
7353
8332
  image_url: string | null;
7354
8333
  incoming_quantity: number;
8334
+ is_layer: boolean;
7355
8335
  layers_per_cart: number;
7356
8336
  location: string;
7357
8337
  min_quantity: number;
@@ -7364,17 +8344,24 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
7364
8344
  trade_item_key: string | null;
7365
8345
  unit: string;
7366
8346
  updated_at: string;
8347
+ vat_code: string | null;
8348
+ vat_rate: number | null;
7367
8349
  weight: string | null;
7368
8350
  };
7369
8351
  Insert: {
8352
+ article_number?: string | null;
7370
8353
  barcode?: string | null;
7371
8354
  batch: string;
7372
8355
  crates_per_layer?: number;
7373
8356
  created_at?: string;
7374
8357
  custom_fields?: import("../integrations/supabase/types").Json;
8358
+ floriday_active?: boolean;
8359
+ floriday_payload?: import("../integrations/supabase/types").Json;
8360
+ floriday_trade_item_id?: string | null;
7375
8361
  id?: string;
7376
8362
  image_url?: string | null;
7377
8363
  incoming_quantity?: number;
8364
+ is_layer?: boolean;
7378
8365
  layers_per_cart?: number;
7379
8366
  location: string;
7380
8367
  min_quantity?: number;
@@ -7387,17 +8374,24 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
7387
8374
  trade_item_key?: string | null;
7388
8375
  unit?: string;
7389
8376
  updated_at?: string;
8377
+ vat_code?: string | null;
8378
+ vat_rate?: number | null;
7390
8379
  weight?: string | null;
7391
8380
  };
7392
8381
  Update: {
8382
+ article_number?: string | null;
7393
8383
  barcode?: string | null;
7394
8384
  batch?: string;
7395
8385
  crates_per_layer?: number;
7396
8386
  created_at?: string;
7397
8387
  custom_fields?: import("../integrations/supabase/types").Json;
8388
+ floriday_active?: boolean;
8389
+ floriday_payload?: import("../integrations/supabase/types").Json;
8390
+ floriday_trade_item_id?: string | null;
7398
8391
  id?: string;
7399
8392
  image_url?: string | null;
7400
8393
  incoming_quantity?: number;
8394
+ is_layer?: boolean;
7401
8395
  layers_per_cart?: number;
7402
8396
  location?: string;
7403
8397
  min_quantity?: number;
@@ -7410,6 +8404,8 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
7410
8404
  trade_item_key?: string | null;
7411
8405
  unit?: string;
7412
8406
  updated_at?: string;
8407
+ vat_code?: string | null;
8408
+ vat_rate?: number | null;
7413
8409
  weight?: string | null;
7414
8410
  };
7415
8411
  Relationships: [];
@@ -8303,8 +9299,10 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
8303
9299
  order_id: string | null;
8304
9300
  order_item_id: string | null;
8305
9301
  order_source: string | null;
9302
+ parent_trade_item_key: string | null;
8306
9303
  physical_after: number | null;
8307
9304
  physical_before: number | null;
9305
+ production_batch_id: string | null;
8308
9306
  qty_delta: number;
8309
9307
  reason: string | null;
8310
9308
  reserved_after: number | null;
@@ -8320,8 +9318,10 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
8320
9318
  order_id?: string | null;
8321
9319
  order_item_id?: string | null;
8322
9320
  order_source?: string | null;
9321
+ parent_trade_item_key?: string | null;
8323
9322
  physical_after?: number | null;
8324
9323
  physical_before?: number | null;
9324
+ production_batch_id?: string | null;
8325
9325
  qty_delta: number;
8326
9326
  reason?: string | null;
8327
9327
  reserved_after?: number | null;
@@ -8337,8 +9337,10 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
8337
9337
  order_id?: string | null;
8338
9338
  order_item_id?: string | null;
8339
9339
  order_source?: string | null;
9340
+ parent_trade_item_key?: string | null;
8340
9341
  physical_after?: number | null;
8341
9342
  physical_before?: number | null;
9343
+ production_batch_id?: string | null;
8342
9344
  qty_delta?: number;
8343
9345
  reason?: string | null;
8344
9346
  reserved_after?: number | null;
@@ -8644,6 +9646,48 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
8644
9646
  };
8645
9647
  Relationships: [];
8646
9648
  };
9649
+ trade_item_prices: {
9650
+ Row: {
9651
+ created_at: string;
9652
+ currency: string;
9653
+ id: string;
9654
+ last_push_error: string | null;
9655
+ last_pushed_at: string | null;
9656
+ price_group_id: string | null;
9657
+ price_per_piece: number;
9658
+ supply_line_id: string | null;
9659
+ trade_item_key: string;
9660
+ updated_at: string;
9661
+ user_id: string;
9662
+ };
9663
+ Insert: {
9664
+ created_at?: string;
9665
+ currency?: string;
9666
+ id?: string;
9667
+ last_push_error?: string | null;
9668
+ last_pushed_at?: string | null;
9669
+ price_group_id?: string | null;
9670
+ price_per_piece: number;
9671
+ supply_line_id?: string | null;
9672
+ trade_item_key: string;
9673
+ updated_at?: string;
9674
+ user_id: string;
9675
+ };
9676
+ Update: {
9677
+ created_at?: string;
9678
+ currency?: string;
9679
+ id?: string;
9680
+ last_push_error?: string | null;
9681
+ last_pushed_at?: string | null;
9682
+ price_group_id?: string | null;
9683
+ price_per_piece?: number;
9684
+ supply_line_id?: string | null;
9685
+ trade_item_key?: string;
9686
+ updated_at?: string;
9687
+ user_id?: string;
9688
+ };
9689
+ Relationships: [];
9690
+ };
8647
9691
  trade_item_stock: {
8648
9692
  Row: {
8649
9693
  connection_id: string;
@@ -8797,7 +9841,7 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
8797
9841
  twinfield_connections: {
8798
9842
  Row: {
8799
9843
  access_token: string | null;
8800
- client_id: string;
9844
+ client_id: string | null;
8801
9845
  client_secret: string | null;
8802
9846
  cluster_uri: string | null;
8803
9847
  company_code: string | null;
@@ -8809,7 +9853,7 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
8809
9853
  is_active: boolean;
8810
9854
  label: string | null;
8811
9855
  office_code: string | null;
8812
- redirect_uri: string;
9856
+ redirect_uri: string | null;
8813
9857
  refresh_token: string | null;
8814
9858
  token_expires_at: string | null;
8815
9859
  updated_at: string;
@@ -8817,7 +9861,7 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
8817
9861
  };
8818
9862
  Insert: {
8819
9863
  access_token?: string | null;
8820
- client_id: string;
9864
+ client_id?: string | null;
8821
9865
  client_secret?: string | null;
8822
9866
  cluster_uri?: string | null;
8823
9867
  company_code?: string | null;
@@ -8829,7 +9873,7 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
8829
9873
  is_active?: boolean;
8830
9874
  label?: string | null;
8831
9875
  office_code?: string | null;
8832
- redirect_uri: string;
9876
+ redirect_uri?: string | null;
8833
9877
  refresh_token?: string | null;
8834
9878
  token_expires_at?: string | null;
8835
9879
  updated_at?: string;
@@ -8837,7 +9881,7 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
8837
9881
  };
8838
9882
  Update: {
8839
9883
  access_token?: string | null;
8840
- client_id?: string;
9884
+ client_id?: string | null;
8841
9885
  client_secret?: string | null;
8842
9886
  cluster_uri?: string | null;
8843
9887
  company_code?: string | null;
@@ -8849,7 +9893,7 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
8849
9893
  is_active?: boolean;
8850
9894
  label?: string | null;
8851
9895
  office_code?: string | null;
8852
- redirect_uri?: string;
9896
+ redirect_uri?: string | null;
8853
9897
  refresh_token?: string | null;
8854
9898
  token_expires_at?: string | null;
8855
9899
  updated_at?: string;
@@ -10044,25 +11088,6 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
10044
11088
  };
10045
11089
  Relationships: [];
10046
11090
  };
10047
- floriday_customer_discounts: {
10048
- Row: {
10049
- base_price: number | null;
10050
- buyer_organization_id: string | null;
10051
- currency: string | null;
10052
- discount_type: string | null;
10053
- discount_value: number | null;
10054
- min_quantity: number | null;
10055
- net_price: number | null;
10056
- product_group_id: string | null;
10057
- raw: import("../integrations/supabase/types").Json | null;
10058
- source: string | null;
10059
- source_id: string | null;
10060
- trade_item_id: string | null;
10061
- valid_from: string | null;
10062
- valid_until: string | null;
10063
- };
10064
- Relationships: [];
10065
- };
10066
11091
  local_customer_discounts: {
10067
11092
  Row: {
10068
11093
  base_price: number | null;
@@ -10366,6 +11391,13 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
10366
11391
  };
10367
11392
  Returns: number;
10368
11393
  };
11394
+ _migrate_rewrite_stock_key: {
11395
+ Args: {
11396
+ _from_key: string;
11397
+ _to_key: string;
11398
+ };
11399
+ Returns: undefined;
11400
+ };
10369
11401
  afh_city_code: {
10370
11402
  Args: {
10371
11403
  _city: string;
@@ -10449,6 +11481,12 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
10449
11481
  processed_items: number;
10450
11482
  }[];
10451
11483
  };
11484
+ calculate_layer_stock: {
11485
+ Args: {
11486
+ p_product_id: string;
11487
+ };
11488
+ Returns: number;
11489
+ };
10452
11490
  call_exact_route: {
10453
11491
  Args: {
10454
11492
  path: string;
@@ -10481,6 +11519,28 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
10481
11519
  Args: never;
10482
11520
  Returns: undefined;
10483
11521
  };
11522
+ consume_bom_for_production: {
11523
+ Args: {
11524
+ p_connection_id: string;
11525
+ p_parent_id: string;
11526
+ p_parent_key: string;
11527
+ p_parent_kind: string;
11528
+ p_quantity: number;
11529
+ p_user_id: string;
11530
+ };
11531
+ Returns: import("../integrations/supabase/types").Json;
11532
+ } | {
11533
+ Args: {
11534
+ p_batch_id?: string;
11535
+ p_connection_id: string;
11536
+ p_parent_id: string;
11537
+ p_parent_key: string;
11538
+ p_parent_kind: string;
11539
+ p_quantity: number;
11540
+ p_user_id: string;
11541
+ };
11542
+ Returns: import("../integrations/supabase/types").Json;
11543
+ };
10484
11544
  consume_floriday_rate_limit: {
10485
11545
  Args: {
10486
11546
  p_bucket: string;
@@ -10532,6 +11592,13 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
10532
11592
  table_name: string;
10533
11593
  }[];
10534
11594
  };
11595
+ delete_samenstelling: {
11596
+ Args: {
11597
+ p_parent_id: string;
11598
+ p_parent_kind: string;
11599
+ };
11600
+ Returns: import("../integrations/supabase/types").Json;
11601
+ };
10535
11602
  dispatch_carrier_signups_sql: {
10536
11603
  Args: {
10537
11604
  _catchup?: string;
@@ -10573,6 +11640,16 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
10573
11640
  status: string;
10574
11641
  }[];
10575
11642
  };
11643
+ email_auth_upsert_connection: {
11644
+ Args: {
11645
+ _account_email: string;
11646
+ _created_by: string;
11647
+ _is_active: boolean;
11648
+ _provider: string;
11649
+ _status: string;
11650
+ };
11651
+ Returns: string;
11652
+ };
10576
11653
  enqueue_cart_replan_if_unlocked: {
10577
11654
  Args: {
10578
11655
  p_order_id: string;
@@ -10692,19 +11769,6 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
10692
11769
  resource: string;
10693
11770
  }[];
10694
11771
  };
10695
- get_floriday_agreements_active: {
10696
- Args: {
10697
- p_on_date?: string;
10698
- };
10699
- Returns: {
10700
- buyer_organization_id: string;
10701
- data: import("../integrations/supabase/types").Json;
10702
- floriday_id: string;
10703
- status: string;
10704
- valid_from: string;
10705
- valid_until: string;
10706
- }[];
10707
- };
10708
11772
  get_floriday_clock_supplies_window: {
10709
11773
  Args: {
10710
11774
  p_from: string;
@@ -10777,6 +11841,27 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
10777
11841
  minutes_since_success: number;
10778
11842
  }[];
10779
11843
  };
11844
+ get_group_allocation_keys: {
11845
+ Args: {
11846
+ p_product_id: string;
11847
+ };
11848
+ Returns: {
11849
+ k: string;
11850
+ ord: number;
11851
+ }[];
11852
+ };
11853
+ get_group_head_key: {
11854
+ Args: {
11855
+ p_group_id: string;
11856
+ };
11857
+ Returns: string;
11858
+ };
11859
+ get_inventory_stock_for_key: {
11860
+ Args: {
11861
+ p_key: string;
11862
+ };
11863
+ Returns: number;
11864
+ };
10780
11865
  get_offer_by_link_code: {
10781
11866
  Args: {
10782
11867
  p_code: string;
@@ -10807,6 +11892,12 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
10807
11892
  };
10808
11893
  Returns: string;
10809
11894
  };
11895
+ get_product_group_available_stock: {
11896
+ Args: {
11897
+ p_group_id: string;
11898
+ };
11899
+ Returns: number;
11900
+ };
10810
11901
  get_room_busy_windows: {
10811
11902
  Args: {
10812
11903
  p_from: string;
@@ -10887,6 +11978,32 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
10887
11978
  };
10888
11979
  Returns: undefined;
10889
11980
  };
11981
+ mark_salesorder_controlled: {
11982
+ Args: {
11983
+ p_controlled: boolean;
11984
+ p_floriday_id: string;
11985
+ };
11986
+ Returns: undefined;
11987
+ };
11988
+ mark_shipment_shipped: {
11989
+ Args: {
11990
+ p_shipment_id: string;
11991
+ };
11992
+ Returns: undefined;
11993
+ };
11994
+ merge_products: {
11995
+ Args: {
11996
+ _canonical: string;
11997
+ _loser: string;
11998
+ };
11999
+ Returns: undefined;
12000
+ };
12001
+ next_manufacture_partij: {
12002
+ Args: {
12003
+ _tenant_id: string;
12004
+ };
12005
+ Returns: string;
12006
+ };
10890
12007
  next_order_number: {
10891
12008
  Args: {
10892
12009
  p_prefix: string;
@@ -10956,6 +12073,15 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
10956
12073
  };
10957
12074
  Returns: undefined;
10958
12075
  };
12076
+ pickstation_resolve_delivery_orders: {
12077
+ Args: {
12078
+ p_sales_order_ids: string[];
12079
+ };
12080
+ Returns: {
12081
+ delivery_order_id: string;
12082
+ sales_order_id: string;
12083
+ }[];
12084
+ };
10959
12085
  pickstation_set_cart_status: {
10960
12086
  Args: {
10961
12087
  p_cart_index: number;
@@ -10965,6 +12091,14 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
10965
12091
  };
10966
12092
  Returns: undefined;
10967
12093
  };
12094
+ produce_designed_product: {
12095
+ Args: {
12096
+ p_parent_id: string;
12097
+ p_parent_kind: string;
12098
+ p_quantity: number;
12099
+ };
12100
+ Returns: import("../integrations/supabase/types").Json;
12101
+ };
10968
12102
  promote_trade_item_key: {
10969
12103
  Args: {
10970
12104
  p_new: string;
@@ -10972,6 +12106,10 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
10972
12106
  };
10973
12107
  Returns: undefined;
10974
12108
  };
12109
+ recompute_all_reserved_stock: {
12110
+ Args: never;
12111
+ Returns: undefined;
12112
+ };
10975
12113
  recompute_order_status: {
10976
12114
  Args: {
10977
12115
  p_order_id: string;
@@ -11021,27 +12159,45 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
11021
12159
  };
11022
12160
  Returns: undefined;
11023
12161
  };
12162
+ resolve_group_allocation: {
12163
+ Args: {
12164
+ _needed: number;
12165
+ _product_group_id: string;
12166
+ };
12167
+ Returns: {
12168
+ allocated: number;
12169
+ trade_item_id: string;
12170
+ }[];
12171
+ };
12172
+ resolve_group_member_stock_key: {
12173
+ Args: {
12174
+ p_trade_item_id: string;
12175
+ };
12176
+ Returns: string;
12177
+ };
11024
12178
  resolve_product_id_for_item: {
11025
12179
  Args: {
11026
12180
  p_product_name: string;
11027
12181
  };
11028
12182
  Returns: string;
11029
12183
  };
11030
- schedule_floriday_additional_services_sync: {
12184
+ resolve_stock_trade_item_key: {
11031
12185
  Args: {
11032
- p_apikey: string;
11033
- p_url: string;
12186
+ p_product_id: string;
11034
12187
  };
11035
- Returns: number;
12188
+ Returns: string;
11036
12189
  };
11037
- schedule_floriday_agreement_calloffs_sync: {
12190
+ reverse_production: {
11038
12191
  Args: {
11039
- p_apikey: string;
11040
- p_url: string;
12192
+ p_connection_id?: string;
12193
+ p_parent_key: string;
12194
+ p_quantity: number;
12195
+ p_reason?: string;
12196
+ p_user_id?: string;
11041
12197
  };
11042
- Returns: number;
12198
+ Returns: import("../integrations/supabase/types").Json;
11043
12199
  };
11044
- schedule_floriday_agreements_sync: {
12200
+ schedule_floriday_additional_services_sync: {
11045
12201
  Args: {
11046
12202
  p_apikey: string;
11047
12203
  p_url: string;
@@ -11294,6 +12450,10 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
11294
12450
  };
11295
12451
  Returns: number;
11296
12452
  };
12453
+ self_heal_floriday_links: {
12454
+ Args: never;
12455
+ Returns: number;
12456
+ };
11297
12457
  show_limit: {
11298
12458
  Args: never;
11299
12459
  Returns: number;
@@ -11304,18 +12464,34 @@ export declare const getFloridayOrders: import("@tanstack/start-client-core").Op
11304
12464
  };
11305
12465
  Returns: string[];
11306
12466
  };
12467
+ sync_all_layer_stocks: {
12468
+ Args: never;
12469
+ Returns: undefined;
12470
+ };
11307
12471
  sync_cached_packing_from_product: {
11308
12472
  Args: {
11309
12473
  p_product_id: string;
11310
12474
  };
11311
12475
  Returns: undefined;
11312
12476
  };
12477
+ sync_layer_stock: {
12478
+ Args: {
12479
+ p_product_id: string;
12480
+ };
12481
+ Returns: undefined;
12482
+ };
11313
12483
  sync_order_cart_item_packing_from_product: {
11314
12484
  Args: {
11315
12485
  p_product_id: string;
11316
12486
  };
11317
12487
  Returns: undefined;
11318
12488
  };
12489
+ sync_product_group_belading: {
12490
+ Args: {
12491
+ _group_id: string;
12492
+ };
12493
+ Returns: undefined;
12494
+ };
11319
12495
  sync_product_packing_from_floriday_cache: {
11320
12496
  Args: {
11321
12497
  p_floriday_id: string;