@flowselections/floriday-authenticatie-module 1.0.19 → 1.0.21

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 (31) hide show
  1. package/dist-lib/components/settings/FlorydaySettingsCard.js +0 -3
  2. package/dist-lib/integrations/supabase/auth-middleware.d.ts +1047 -169
  3. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  4. package/dist-lib/integrations/supabase/client.d.ts +1047 -169
  5. package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
  6. package/dist-lib/integrations/supabase/client.server.d.ts +1047 -169
  7. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  8. package/dist-lib/integrations/supabase/types.d.ts +1082 -177
  9. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  10. package/dist-lib/lib/floricode.functions.d.ts +7400 -1254
  11. package/dist-lib/lib/floricode.functions.d.ts.map +1 -1
  12. package/dist-lib/lib/floriday-auction-letters.functions.d.ts +1047 -169
  13. package/dist-lib/lib/floriday-auction-letters.functions.d.ts.map +1 -1
  14. package/dist-lib/lib/floriday-labels.functions.d.ts +1047 -169
  15. package/dist-lib/lib/floriday-labels.functions.d.ts.map +1 -1
  16. package/dist-lib/lib/floriday-public.functions.d.ts +6338 -1070
  17. package/dist-lib/lib/floriday-public.functions.d.ts.map +1 -1
  18. package/dist-lib/lib/floriday-scopes.d.ts +0 -8
  19. package/dist-lib/lib/floriday-scopes.d.ts.map +1 -1
  20. package/dist-lib/lib/floriday-scopes.js +4 -28
  21. package/dist-lib/lib/floriday-stickers.functions.d.ts +1047 -169
  22. package/dist-lib/lib/floriday-stickers.functions.d.ts.map +1 -1
  23. package/dist-lib/lib/floriday-sync.functions.d.ts +32942 -28268
  24. package/dist-lib/lib/floriday-sync.functions.d.ts.map +1 -1
  25. package/dist-lib/lib/floriday-sync.functions.js +62 -145
  26. package/dist-lib/lib/floriday-writes.functions.d.ts +6344 -1112
  27. package/dist-lib/lib/floriday-writes.functions.d.ts.map +1 -1
  28. package/dist-lib/lib/floriday.functions.d.ts +19100 -3404
  29. package/dist-lib/lib/floriday.functions.d.ts.map +1 -1
  30. package/dist-lib/lib/floriday.functions.js +47 -21
  31. package/package.json +3 -3
@@ -255,6 +255,165 @@ export declare const getFlorydayAuctionLetter: import("@tanstack/start-client-co
255
255
  };
256
256
  Relationships: [];
257
257
  };
258
+ ai_credentials: {
259
+ Row: {
260
+ active: boolean;
261
+ api_key: string;
262
+ created_at: string;
263
+ created_by: string | null;
264
+ id: string;
265
+ label: string;
266
+ provider_id: string;
267
+ updated_at: string;
268
+ };
269
+ Insert: {
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
+ Update: {
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
+ Relationships: [{
290
+ foreignKeyName: "ai_credentials_provider_id_fkey";
291
+ columns: ["provider_id"];
292
+ isOneToOne: false;
293
+ referencedRelation: "ai_providers";
294
+ referencedColumns: ["id"];
295
+ }];
296
+ };
297
+ ai_models: {
298
+ Row: {
299
+ active: boolean;
300
+ context_window: number | null;
301
+ created_at: string;
302
+ display_name: string;
303
+ id: string;
304
+ is_default: boolean;
305
+ modality: string;
306
+ provider_id: string;
307
+ slug: string;
308
+ updated_at: string;
309
+ };
310
+ Insert: {
311
+ active?: boolean;
312
+ context_window?: number | null;
313
+ created_at?: string;
314
+ display_name: string;
315
+ id?: string;
316
+ is_default?: boolean;
317
+ modality?: string;
318
+ provider_id: string;
319
+ slug: string;
320
+ updated_at?: string;
321
+ };
322
+ Update: {
323
+ active?: boolean;
324
+ context_window?: number | null;
325
+ created_at?: string;
326
+ display_name?: string;
327
+ id?: string;
328
+ is_default?: boolean;
329
+ modality?: string;
330
+ provider_id?: string;
331
+ slug?: string;
332
+ updated_at?: string;
333
+ };
334
+ Relationships: [{
335
+ foreignKeyName: "ai_models_provider_id_fkey";
336
+ columns: ["provider_id"];
337
+ isOneToOne: false;
338
+ referencedRelation: "ai_providers";
339
+ referencedColumns: ["id"];
340
+ }];
341
+ };
342
+ ai_module_bindings: {
343
+ Row: {
344
+ consumer_module_id: string;
345
+ created_at: string;
346
+ credential_id: string;
347
+ id: string;
348
+ model_id: string;
349
+ notes: string | null;
350
+ updated_at: string;
351
+ };
352
+ Insert: {
353
+ consumer_module_id: string;
354
+ created_at?: string;
355
+ credential_id: string;
356
+ id?: string;
357
+ model_id: string;
358
+ notes?: string | null;
359
+ updated_at?: string;
360
+ };
361
+ Update: {
362
+ consumer_module_id?: string;
363
+ created_at?: string;
364
+ credential_id?: string;
365
+ id?: string;
366
+ model_id?: string;
367
+ notes?: string | null;
368
+ updated_at?: string;
369
+ };
370
+ Relationships: [{
371
+ foreignKeyName: "ai_module_bindings_credential_id_fkey";
372
+ columns: ["credential_id"];
373
+ isOneToOne: false;
374
+ referencedRelation: "ai_credentials";
375
+ referencedColumns: ["id"];
376
+ }, {
377
+ foreignKeyName: "ai_module_bindings_model_id_fkey";
378
+ columns: ["model_id"];
379
+ isOneToOne: false;
380
+ referencedRelation: "ai_models";
381
+ referencedColumns: ["id"];
382
+ }];
383
+ };
384
+ ai_providers: {
385
+ Row: {
386
+ active: boolean;
387
+ auth_type: string;
388
+ base_url: string | null;
389
+ created_at: string;
390
+ id: string;
391
+ name: string;
392
+ slug: string;
393
+ updated_at: string;
394
+ };
395
+ Insert: {
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
+ Update: {
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
+ Relationships: [];
416
+ };
258
417
  app_settings: {
259
418
  Row: {
260
419
  created_at: string;
@@ -1254,8 +1413,27 @@ export declare const getFlorydayAuctionLetter: import("@tanstack/start-client-co
1254
1413
  customers: {
1255
1414
  Row: {
1256
1415
  address: string | null;
1416
+ address_line1: string | null;
1417
+ address_line2: string | null;
1418
+ address_type: string | null;
1419
+ attention_to: string | null;
1420
+ bank_account_holder: string | null;
1421
+ bank_account_number: string | null;
1422
+ bank_address_line1: string | null;
1423
+ bank_address_line2: string | null;
1424
+ bank_bic: string | null;
1425
+ bank_city: string | null;
1426
+ bank_country: string | null;
1427
+ bank_house_number: string | null;
1428
+ bank_iban: string | null;
1429
+ bank_name: string | null;
1430
+ bank_national_code: string | null;
1431
+ bank_postal_code: string | null;
1432
+ bank_state: string | null;
1433
+ billing_email: string | null;
1257
1434
  bio: string | null;
1258
1435
  city: string | null;
1436
+ coc_number: string | null;
1259
1437
  commercial_name: string | null;
1260
1438
  company_name: string;
1261
1439
  connection_status: string;
@@ -1264,21 +1442,28 @@ export declare const getFlorydayAuctionLetter: import("@tanstack/start-client-co
1264
1442
  created_at: string;
1265
1443
  custom_fields: import("../integrations/supabase/types").Json;
1266
1444
  customer_class: string | null;
1445
+ customer_number: string | null;
1446
+ discount_days: number | null;
1447
+ discount_percentage: number | null;
1267
1448
  email: string | null;
1268
1449
  external_id: string | null;
1450
+ fax: string | null;
1269
1451
  floriday_connection_id: string | null;
1270
1452
  floriday_organization_id: string | null;
1271
1453
  floriday_raw: import("../integrations/supabase/types").Json | null;
1272
1454
  gln: string | null;
1273
1455
  house_number: string | null;
1456
+ icp_country_code: string | null;
1274
1457
  id: string;
1275
1458
  is_active: boolean;
1459
+ language: string | null;
1276
1460
  last_synced_at: string | null;
1277
1461
  logo_url: string | null;
1278
1462
  markets: string[];
1279
1463
  notes: string | null;
1280
1464
  organization_type: string | null;
1281
1465
  payment_methods: string[];
1466
+ payment_term_days: number | null;
1282
1467
  phone: string | null;
1283
1468
  postal_code: string | null;
1284
1469
  product_groups: string[];
@@ -1289,13 +1474,33 @@ export declare const getFlorydayAuctionLetter: import("@tanstack/start-client-co
1289
1474
  sync_status: string;
1290
1475
  trade_forms: string[];
1291
1476
  updated_at: string;
1477
+ vat_display: string | null;
1292
1478
  vat_number: string | null;
1293
1479
  website: string | null;
1294
1480
  };
1295
1481
  Insert: {
1296
1482
  address?: string | null;
1483
+ address_line1?: string | null;
1484
+ address_line2?: string | null;
1485
+ address_type?: string | null;
1486
+ attention_to?: string | null;
1487
+ bank_account_holder?: string | null;
1488
+ bank_account_number?: string | null;
1489
+ bank_address_line1?: string | null;
1490
+ bank_address_line2?: string | null;
1491
+ bank_bic?: string | null;
1492
+ bank_city?: string | null;
1493
+ bank_country?: string | null;
1494
+ bank_house_number?: string | null;
1495
+ bank_iban?: string | null;
1496
+ bank_name?: string | null;
1497
+ bank_national_code?: string | null;
1498
+ bank_postal_code?: string | null;
1499
+ bank_state?: string | null;
1500
+ billing_email?: string | null;
1297
1501
  bio?: string | null;
1298
1502
  city?: string | null;
1503
+ coc_number?: string | null;
1299
1504
  commercial_name?: string | null;
1300
1505
  company_name: string;
1301
1506
  connection_status?: string;
@@ -1304,21 +1509,28 @@ export declare const getFlorydayAuctionLetter: import("@tanstack/start-client-co
1304
1509
  created_at?: string;
1305
1510
  custom_fields?: import("../integrations/supabase/types").Json;
1306
1511
  customer_class?: string | null;
1512
+ customer_number?: string | null;
1513
+ discount_days?: number | null;
1514
+ discount_percentage?: number | null;
1307
1515
  email?: string | null;
1308
1516
  external_id?: string | null;
1517
+ fax?: string | null;
1309
1518
  floriday_connection_id?: string | null;
1310
1519
  floriday_organization_id?: string | null;
1311
1520
  floriday_raw?: import("../integrations/supabase/types").Json | null;
1312
1521
  gln?: string | null;
1313
1522
  house_number?: string | null;
1523
+ icp_country_code?: string | null;
1314
1524
  id?: string;
1315
1525
  is_active?: boolean;
1526
+ language?: string | null;
1316
1527
  last_synced_at?: string | null;
1317
1528
  logo_url?: string | null;
1318
1529
  markets?: string[];
1319
1530
  notes?: string | null;
1320
1531
  organization_type?: string | null;
1321
1532
  payment_methods?: string[];
1533
+ payment_term_days?: number | null;
1322
1534
  phone?: string | null;
1323
1535
  postal_code?: string | null;
1324
1536
  product_groups?: string[];
@@ -1329,13 +1541,33 @@ export declare const getFlorydayAuctionLetter: import("@tanstack/start-client-co
1329
1541
  sync_status?: string;
1330
1542
  trade_forms?: string[];
1331
1543
  updated_at?: string;
1544
+ vat_display?: string | null;
1332
1545
  vat_number?: string | null;
1333
1546
  website?: string | null;
1334
1547
  };
1335
1548
  Update: {
1336
1549
  address?: string | null;
1550
+ address_line1?: string | null;
1551
+ address_line2?: string | null;
1552
+ address_type?: string | null;
1553
+ attention_to?: string | null;
1554
+ bank_account_holder?: string | null;
1555
+ bank_account_number?: string | null;
1556
+ bank_address_line1?: string | null;
1557
+ bank_address_line2?: string | null;
1558
+ bank_bic?: string | null;
1559
+ bank_city?: string | null;
1560
+ bank_country?: string | null;
1561
+ bank_house_number?: string | null;
1562
+ bank_iban?: string | null;
1563
+ bank_name?: string | null;
1564
+ bank_national_code?: string | null;
1565
+ bank_postal_code?: string | null;
1566
+ bank_state?: string | null;
1567
+ billing_email?: string | null;
1337
1568
  bio?: string | null;
1338
1569
  city?: string | null;
1570
+ coc_number?: string | null;
1339
1571
  commercial_name?: string | null;
1340
1572
  company_name?: string;
1341
1573
  connection_status?: string;
@@ -1344,21 +1576,28 @@ export declare const getFlorydayAuctionLetter: import("@tanstack/start-client-co
1344
1576
  created_at?: string;
1345
1577
  custom_fields?: import("../integrations/supabase/types").Json;
1346
1578
  customer_class?: string | null;
1579
+ customer_number?: string | null;
1580
+ discount_days?: number | null;
1581
+ discount_percentage?: number | null;
1347
1582
  email?: string | null;
1348
1583
  external_id?: string | null;
1584
+ fax?: string | null;
1349
1585
  floriday_connection_id?: string | null;
1350
1586
  floriday_organization_id?: string | null;
1351
1587
  floriday_raw?: import("../integrations/supabase/types").Json | null;
1352
1588
  gln?: string | null;
1353
1589
  house_number?: string | null;
1590
+ icp_country_code?: string | null;
1354
1591
  id?: string;
1355
1592
  is_active?: boolean;
1593
+ language?: string | null;
1356
1594
  last_synced_at?: string | null;
1357
1595
  logo_url?: string | null;
1358
1596
  markets?: string[];
1359
1597
  notes?: string | null;
1360
1598
  organization_type?: string | null;
1361
1599
  payment_methods?: string[];
1600
+ payment_term_days?: number | null;
1362
1601
  phone?: string | null;
1363
1602
  postal_code?: string | null;
1364
1603
  product_groups?: string[];
@@ -1369,6 +1608,7 @@ export declare const getFlorydayAuctionLetter: import("@tanstack/start-client-co
1369
1608
  sync_status?: string;
1370
1609
  trade_forms?: string[];
1371
1610
  updated_at?: string;
1611
+ vat_display?: string | null;
1372
1612
  vat_number?: string | null;
1373
1613
  website?: string | null;
1374
1614
  };
@@ -3180,105 +3420,6 @@ export declare const getFlorydayAuctionLetter: import("@tanstack/start-client-co
3180
3420
  referencedColumns: ["id"];
3181
3421
  }];
3182
3422
  };
3183
- floriday_agreement_calloffs_cache: {
3184
- Row: {
3185
- agreement_id: string | null;
3186
- connection_id: string;
3187
- data: import("../integrations/supabase/types").Json;
3188
- delivery_date: string | null;
3189
- fetched_at: string;
3190
- floriday_id: string;
3191
- id: string;
3192
- is_deleted: boolean;
3193
- sequence_number: number;
3194
- status: string | null;
3195
- updated_at: string;
3196
- };
3197
- Insert: {
3198
- agreement_id?: string | null;
3199
- connection_id: string;
3200
- data?: import("../integrations/supabase/types").Json;
3201
- delivery_date?: string | null;
3202
- fetched_at?: string;
3203
- floriday_id: string;
3204
- id?: string;
3205
- is_deleted?: boolean;
3206
- sequence_number?: number;
3207
- status?: string | null;
3208
- updated_at?: string;
3209
- };
3210
- Update: {
3211
- agreement_id?: string | null;
3212
- connection_id?: string;
3213
- data?: import("../integrations/supabase/types").Json;
3214
- delivery_date?: string | null;
3215
- fetched_at?: string;
3216
- floriday_id?: string;
3217
- id?: string;
3218
- is_deleted?: boolean;
3219
- sequence_number?: number;
3220
- status?: string | null;
3221
- updated_at?: string;
3222
- };
3223
- Relationships: [{
3224
- foreignKeyName: "floriday_agreement_calloffs_cache_connection_id_fkey";
3225
- columns: ["connection_id"];
3226
- isOneToOne: false;
3227
- referencedRelation: "floriday_connections";
3228
- referencedColumns: ["id"];
3229
- }];
3230
- };
3231
- floriday_agreements_cache: {
3232
- Row: {
3233
- buyer_organization_id: string | null;
3234
- connection_id: string;
3235
- data: import("../integrations/supabase/types").Json;
3236
- fetched_at: string;
3237
- floriday_id: string;
3238
- id: string;
3239
- is_deleted: boolean;
3240
- sequence_number: number;
3241
- status: string | null;
3242
- updated_at: string;
3243
- valid_from: string | null;
3244
- valid_until: string | null;
3245
- };
3246
- Insert: {
3247
- buyer_organization_id?: string | null;
3248
- connection_id: string;
3249
- data?: import("../integrations/supabase/types").Json;
3250
- fetched_at?: string;
3251
- floriday_id: string;
3252
- id?: string;
3253
- is_deleted?: boolean;
3254
- sequence_number?: number;
3255
- status?: string | null;
3256
- updated_at?: string;
3257
- valid_from?: string | null;
3258
- valid_until?: string | null;
3259
- };
3260
- Update: {
3261
- buyer_organization_id?: string | null;
3262
- connection_id?: string;
3263
- data?: import("../integrations/supabase/types").Json;
3264
- fetched_at?: string;
3265
- floriday_id?: string;
3266
- id?: string;
3267
- is_deleted?: boolean;
3268
- sequence_number?: number;
3269
- status?: string | null;
3270
- updated_at?: string;
3271
- valid_from?: string | null;
3272
- valid_until?: string | null;
3273
- };
3274
- Relationships: [{
3275
- foreignKeyName: "floriday_agreements_cache_connection_id_fkey";
3276
- columns: ["connection_id"];
3277
- isOneToOne: false;
3278
- referencedRelation: "floriday_connections";
3279
- referencedColumns: ["id"];
3280
- }];
3281
- };
3282
3423
  floriday_auction_letters_cache: {
3283
3424
  Row: {
3284
3425
  auction_letter_code: string;
@@ -3777,6 +3918,27 @@ export declare const getFlorydayAuctionLetter: import("@tanstack/start-client-co
3777
3918
  referencedColumns: ["id"];
3778
3919
  }];
3779
3920
  };
3921
+ floriday_continuous_stock_cache: {
3922
+ Row: {
3923
+ connection_id: string;
3924
+ fetched_at: string;
3925
+ number_of_pieces: number;
3926
+ trade_item_id: string;
3927
+ };
3928
+ Insert: {
3929
+ connection_id: string;
3930
+ fetched_at?: string;
3931
+ number_of_pieces?: number;
3932
+ trade_item_id: string;
3933
+ };
3934
+ Update: {
3935
+ connection_id?: string;
3936
+ fetched_at?: string;
3937
+ number_of_pieces?: number;
3938
+ trade_item_id?: string;
3939
+ };
3940
+ Relationships: [];
3941
+ };
3780
3942
  floriday_continuous_stock_queue: {
3781
3943
  Row: {
3782
3944
  attempts: number;
@@ -4552,6 +4714,8 @@ export declare const getFlorydayAuctionLetter: import("@tanstack/start-client-co
4552
4714
  Row: {
4553
4715
  buyer_organization_id: string | null;
4554
4716
  connection_id: string;
4717
+ controlled_at: string | null;
4718
+ controlled_by: string | null;
4555
4719
  created_at: string;
4556
4720
  data: import("../integrations/supabase/types").Json;
4557
4721
  floriday_id: string;
@@ -4563,6 +4727,8 @@ export declare const getFlorydayAuctionLetter: import("@tanstack/start-client-co
4563
4727
  Insert: {
4564
4728
  buyer_organization_id?: string | null;
4565
4729
  connection_id: string;
4730
+ controlled_at?: string | null;
4731
+ controlled_by?: string | null;
4566
4732
  created_at?: string;
4567
4733
  data: import("../integrations/supabase/types").Json;
4568
4734
  floriday_id: string;
@@ -4574,6 +4740,8 @@ export declare const getFlorydayAuctionLetter: import("@tanstack/start-client-co
4574
4740
  Update: {
4575
4741
  buyer_organization_id?: string | null;
4576
4742
  connection_id?: string;
4743
+ controlled_at?: string | null;
4744
+ controlled_by?: string | null;
4577
4745
  created_at?: string;
4578
4746
  data?: import("../integrations/supabase/types").Json;
4579
4747
  floriday_id?: string;
@@ -4755,9 +4923,8 @@ export declare const getFlorydayAuctionLetter: import("@tanstack/start-client-co
4755
4923
  referencedColumns: ["id"];
4756
4924
  }];
4757
4925
  };
4758
- floriday_trips_cache: {
4926
+ floriday_trade_settings_customers_cache: {
4759
4927
  Row: {
4760
- carrier_organization_id: string | null;
4761
4928
  connection_id: string;
4762
4929
  data: import("../integrations/supabase/types").Json;
4763
4930
  fetched_at: string;
@@ -4765,21 +4932,61 @@ export declare const getFlorydayAuctionLetter: import("@tanstack/start-client-co
4765
4932
  id: string;
4766
4933
  is_deleted: boolean;
4767
4934
  sequence_number: number;
4768
- status: string | null;
4769
- trip_date: string | null;
4770
4935
  updated_at: string;
4771
4936
  };
4772
4937
  Insert: {
4773
- carrier_organization_id?: string | null;
4774
4938
  connection_id: string;
4775
- data?: import("../integrations/supabase/types").Json;
4939
+ data: import("../integrations/supabase/types").Json;
4776
4940
  fetched_at?: string;
4777
4941
  floriday_id: string;
4778
4942
  id?: string;
4779
4943
  is_deleted?: boolean;
4780
4944
  sequence_number?: number;
4781
- status?: string | null;
4782
- trip_date?: string | null;
4945
+ updated_at?: string;
4946
+ };
4947
+ Update: {
4948
+ connection_id?: string;
4949
+ data?: import("../integrations/supabase/types").Json;
4950
+ fetched_at?: string;
4951
+ floriday_id?: string;
4952
+ id?: string;
4953
+ is_deleted?: boolean;
4954
+ sequence_number?: number;
4955
+ updated_at?: string;
4956
+ };
4957
+ Relationships: [{
4958
+ foreignKeyName: "floriday_trade_settings_customers_cache_connection_id_fkey";
4959
+ columns: ["connection_id"];
4960
+ isOneToOne: false;
4961
+ referencedRelation: "floriday_connections";
4962
+ referencedColumns: ["id"];
4963
+ }];
4964
+ };
4965
+ floriday_trips_cache: {
4966
+ Row: {
4967
+ carrier_organization_id: string | null;
4968
+ connection_id: string;
4969
+ data: import("../integrations/supabase/types").Json;
4970
+ fetched_at: string;
4971
+ floriday_id: string;
4972
+ id: string;
4973
+ is_deleted: boolean;
4974
+ sequence_number: number;
4975
+ status: string | null;
4976
+ trip_date: string | null;
4977
+ updated_at: string;
4978
+ };
4979
+ Insert: {
4980
+ carrier_organization_id?: string | null;
4981
+ connection_id: string;
4982
+ data?: import("../integrations/supabase/types").Json;
4983
+ fetched_at?: string;
4984
+ floriday_id: string;
4985
+ id?: string;
4986
+ is_deleted?: boolean;
4987
+ sequence_number?: number;
4988
+ status?: string | null;
4989
+ trip_date?: string | null;
4783
4990
  updated_at?: string;
4784
4991
  };
4785
4992
  Update: {
@@ -5505,6 +5712,222 @@ export declare const getFlorydayAuctionLetter: import("@tanstack/start-client-co
5505
5712
  };
5506
5713
  Relationships: [];
5507
5714
  };
5715
+ logistics_decisions: {
5716
+ Row: {
5717
+ created_at: string;
5718
+ explanation: string | null;
5719
+ id: string;
5720
+ input_snapshot: import("../integrations/supabase/types").Json;
5721
+ result: import("../integrations/supabase/types").Json;
5722
+ slot: string;
5723
+ strategy_id: string | null;
5724
+ subject_id: string;
5725
+ subject_type: string;
5726
+ user_id: string;
5727
+ };
5728
+ Insert: {
5729
+ created_at?: string;
5730
+ explanation?: string | null;
5731
+ id?: string;
5732
+ input_snapshot?: import("../integrations/supabase/types").Json;
5733
+ result?: import("../integrations/supabase/types").Json;
5734
+ slot: string;
5735
+ strategy_id?: string | null;
5736
+ subject_id: string;
5737
+ subject_type: string;
5738
+ user_id: string;
5739
+ };
5740
+ Update: {
5741
+ created_at?: string;
5742
+ explanation?: string | null;
5743
+ id?: string;
5744
+ input_snapshot?: import("../integrations/supabase/types").Json;
5745
+ result?: import("../integrations/supabase/types").Json;
5746
+ slot?: string;
5747
+ strategy_id?: string | null;
5748
+ subject_id?: string;
5749
+ subject_type?: string;
5750
+ user_id?: string;
5751
+ };
5752
+ Relationships: [{
5753
+ foreignKeyName: "logistics_decisions_strategy_id_fkey";
5754
+ columns: ["strategy_id"];
5755
+ isOneToOne: false;
5756
+ referencedRelation: "logistics_strategies";
5757
+ referencedColumns: ["id"];
5758
+ }];
5759
+ };
5760
+ logistics_formulas: {
5761
+ Row: {
5762
+ created_at: string;
5763
+ expression: string;
5764
+ id: string;
5765
+ notes: string | null;
5766
+ slot: string;
5767
+ strategy_id: string;
5768
+ updated_at: string;
5769
+ user_id: string;
5770
+ version: number;
5771
+ };
5772
+ Insert: {
5773
+ created_at?: string;
5774
+ expression?: string;
5775
+ id?: string;
5776
+ notes?: string | null;
5777
+ slot: string;
5778
+ strategy_id: string;
5779
+ updated_at?: string;
5780
+ user_id: string;
5781
+ version?: number;
5782
+ };
5783
+ Update: {
5784
+ created_at?: string;
5785
+ expression?: string;
5786
+ id?: string;
5787
+ notes?: string | null;
5788
+ slot?: string;
5789
+ strategy_id?: string;
5790
+ updated_at?: string;
5791
+ user_id?: string;
5792
+ version?: number;
5793
+ };
5794
+ Relationships: [{
5795
+ foreignKeyName: "logistics_formulas_strategy_id_fkey";
5796
+ columns: ["strategy_id"];
5797
+ isOneToOne: false;
5798
+ referencedRelation: "logistics_strategies";
5799
+ referencedColumns: ["id"];
5800
+ }];
5801
+ };
5802
+ logistics_strategies: {
5803
+ Row: {
5804
+ color: string;
5805
+ created_at: string;
5806
+ description: string | null;
5807
+ id: string;
5808
+ is_active: boolean;
5809
+ name: string;
5810
+ priority: number;
5811
+ updated_at: string;
5812
+ updated_by: string | null;
5813
+ user_id: string;
5814
+ version: number;
5815
+ };
5816
+ Insert: {
5817
+ color?: string;
5818
+ created_at?: string;
5819
+ description?: string | null;
5820
+ id?: string;
5821
+ is_active?: boolean;
5822
+ name: string;
5823
+ priority?: number;
5824
+ updated_at?: string;
5825
+ updated_by?: string | null;
5826
+ user_id: string;
5827
+ version?: number;
5828
+ };
5829
+ Update: {
5830
+ color?: string;
5831
+ created_at?: string;
5832
+ description?: string | null;
5833
+ id?: string;
5834
+ is_active?: boolean;
5835
+ name?: string;
5836
+ priority?: number;
5837
+ updated_at?: string;
5838
+ updated_by?: string | null;
5839
+ user_id?: string;
5840
+ version?: number;
5841
+ };
5842
+ Relationships: [];
5843
+ };
5844
+ logistics_strategy_schedules: {
5845
+ Row: {
5846
+ condition_expression: string | null;
5847
+ created_at: string;
5848
+ end_date: string | null;
5849
+ id: string;
5850
+ is_enabled: boolean;
5851
+ priority: number;
5852
+ rule_type: string;
5853
+ start_date: string | null;
5854
+ strategy_id: string;
5855
+ updated_at: string;
5856
+ user_id: string;
5857
+ };
5858
+ Insert: {
5859
+ condition_expression?: string | null;
5860
+ created_at?: string;
5861
+ end_date?: string | null;
5862
+ id?: string;
5863
+ is_enabled?: boolean;
5864
+ priority?: number;
5865
+ rule_type: string;
5866
+ start_date?: string | null;
5867
+ strategy_id: string;
5868
+ updated_at?: string;
5869
+ user_id: string;
5870
+ };
5871
+ Update: {
5872
+ condition_expression?: string | null;
5873
+ created_at?: string;
5874
+ end_date?: string | null;
5875
+ id?: string;
5876
+ is_enabled?: boolean;
5877
+ priority?: number;
5878
+ rule_type?: string;
5879
+ start_date?: string | null;
5880
+ strategy_id?: string;
5881
+ updated_at?: string;
5882
+ user_id?: string;
5883
+ };
5884
+ Relationships: [{
5885
+ foreignKeyName: "logistics_strategy_schedules_strategy_id_fkey";
5886
+ columns: ["strategy_id"];
5887
+ isOneToOne: false;
5888
+ referencedRelation: "logistics_strategies";
5889
+ referencedColumns: ["id"];
5890
+ }];
5891
+ };
5892
+ logistics_variables: {
5893
+ Row: {
5894
+ created_at: string;
5895
+ default_value: string | null;
5896
+ description: string | null;
5897
+ id: string;
5898
+ is_builtin: boolean;
5899
+ key: string;
5900
+ label: string;
5901
+ updated_at: string;
5902
+ user_id: string;
5903
+ value_type: string;
5904
+ };
5905
+ Insert: {
5906
+ created_at?: string;
5907
+ default_value?: string | null;
5908
+ description?: string | null;
5909
+ id?: string;
5910
+ is_builtin?: boolean;
5911
+ key: string;
5912
+ label: string;
5913
+ updated_at?: string;
5914
+ user_id: string;
5915
+ value_type: string;
5916
+ };
5917
+ Update: {
5918
+ created_at?: string;
5919
+ default_value?: string | null;
5920
+ description?: string | null;
5921
+ id?: string;
5922
+ is_builtin?: boolean;
5923
+ key?: string;
5924
+ label?: string;
5925
+ updated_at?: string;
5926
+ user_id?: string;
5927
+ value_type?: string;
5928
+ };
5929
+ Relationships: [];
5930
+ };
5508
5931
  mailbox_messages: {
5509
5932
  Row: {
5510
5933
  body_html: string | null;
@@ -5900,39 +6323,60 @@ export declare const getFlorydayAuctionLetter: import("@tanstack/start-client-co
5900
6323
  };
5901
6324
  manufacture_products: {
5902
6325
  Row: {
6326
+ aantal_te_produceren: number;
5903
6327
  created_at: string;
5904
6328
  description: string | null;
5905
6329
  id: string;
5906
6330
  is_active: boolean;
6331
+ location_id: string | null;
5907
6332
  name: string;
6333
+ partij_nummer: string | null;
6334
+ photos: import("../integrations/supabase/types").Json;
5908
6335
  produced_stock: number;
5909
6336
  product_code: string;
5910
6337
  tenant_id: string;
6338
+ unit: string;
5911
6339
  updated_at: string;
5912
6340
  };
5913
6341
  Insert: {
6342
+ aantal_te_produceren?: number;
5914
6343
  created_at?: string;
5915
6344
  description?: string | null;
5916
6345
  id?: string;
5917
6346
  is_active?: boolean;
6347
+ location_id?: string | null;
5918
6348
  name: string;
6349
+ partij_nummer?: string | null;
6350
+ photos?: import("../integrations/supabase/types").Json;
5919
6351
  produced_stock?: number;
5920
6352
  product_code: string;
5921
6353
  tenant_id: string;
6354
+ unit?: string;
5922
6355
  updated_at?: string;
5923
6356
  };
5924
6357
  Update: {
6358
+ aantal_te_produceren?: number;
5925
6359
  created_at?: string;
5926
6360
  description?: string | null;
5927
6361
  id?: string;
5928
6362
  is_active?: boolean;
6363
+ location_id?: string | null;
5929
6364
  name?: string;
6365
+ partij_nummer?: string | null;
6366
+ photos?: import("../integrations/supabase/types").Json;
5930
6367
  produced_stock?: number;
5931
6368
  product_code?: string;
5932
6369
  tenant_id?: string;
6370
+ unit?: string;
5933
6371
  updated_at?: string;
5934
6372
  };
5935
- Relationships: [];
6373
+ Relationships: [{
6374
+ foreignKeyName: "manufacture_products_location_id_fkey";
6375
+ columns: ["location_id"];
6376
+ isOneToOne: false;
6377
+ referencedRelation: "locations";
6378
+ referencedColumns: ["id"];
6379
+ }];
5936
6380
  };
5937
6381
  monteurs: {
5938
6382
  Row: {
@@ -6906,6 +7350,105 @@ export declare const getFlorydayAuctionLetter: import("@tanstack/start-client-co
6906
7350
  };
6907
7351
  Relationships: [];
6908
7352
  };
7353
+ order_shipment_items: {
7354
+ Row: {
7355
+ created_at: string;
7356
+ id: string;
7357
+ order_item_id: string;
7358
+ product_id: string | null;
7359
+ product_name: string;
7360
+ quantity: number;
7361
+ shipment_id: string;
7362
+ updated_at: string;
7363
+ };
7364
+ Insert: {
7365
+ created_at?: string;
7366
+ id?: string;
7367
+ order_item_id: string;
7368
+ product_id?: string | null;
7369
+ product_name: string;
7370
+ quantity: number;
7371
+ shipment_id: string;
7372
+ updated_at?: string;
7373
+ };
7374
+ Update: {
7375
+ created_at?: string;
7376
+ id?: string;
7377
+ order_item_id?: string;
7378
+ product_id?: string | null;
7379
+ product_name?: string;
7380
+ quantity?: number;
7381
+ shipment_id?: string;
7382
+ updated_at?: string;
7383
+ };
7384
+ Relationships: [{
7385
+ foreignKeyName: "order_shipment_items_order_item_id_fkey";
7386
+ columns: ["order_item_id"];
7387
+ isOneToOne: false;
7388
+ referencedRelation: "order_items";
7389
+ referencedColumns: ["id"];
7390
+ }, {
7391
+ foreignKeyName: "order_shipment_items_shipment_id_fkey";
7392
+ columns: ["shipment_id"];
7393
+ isOneToOne: false;
7394
+ referencedRelation: "order_shipments";
7395
+ referencedColumns: ["id"];
7396
+ }];
7397
+ };
7398
+ order_shipments: {
7399
+ Row: {
7400
+ carrier_id: string | null;
7401
+ created_at: string;
7402
+ delivery_date: string | null;
7403
+ delivery_location_id: string | null;
7404
+ id: string;
7405
+ notes: string | null;
7406
+ order_id: string;
7407
+ shipment_number: number;
7408
+ shipped_at: string | null;
7409
+ status: string;
7410
+ updated_at: string;
7411
+ };
7412
+ Insert: {
7413
+ carrier_id?: string | null;
7414
+ created_at?: string;
7415
+ delivery_date?: string | null;
7416
+ delivery_location_id?: string | null;
7417
+ id?: string;
7418
+ notes?: string | null;
7419
+ order_id: string;
7420
+ shipment_number: number;
7421
+ shipped_at?: string | null;
7422
+ status?: string;
7423
+ updated_at?: string;
7424
+ };
7425
+ Update: {
7426
+ carrier_id?: string | null;
7427
+ created_at?: string;
7428
+ delivery_date?: string | null;
7429
+ delivery_location_id?: string | null;
7430
+ id?: string;
7431
+ notes?: string | null;
7432
+ order_id?: string;
7433
+ shipment_number?: number;
7434
+ shipped_at?: string | null;
7435
+ status?: string;
7436
+ updated_at?: string;
7437
+ };
7438
+ Relationships: [{
7439
+ foreignKeyName: "order_shipments_carrier_id_fkey";
7440
+ columns: ["carrier_id"];
7441
+ isOneToOne: false;
7442
+ referencedRelation: "carriers";
7443
+ referencedColumns: ["id"];
7444
+ }, {
7445
+ foreignKeyName: "order_shipments_order_id_fkey";
7446
+ columns: ["order_id"];
7447
+ isOneToOne: false;
7448
+ referencedRelation: "orders";
7449
+ referencedColumns: ["id"];
7450
+ }];
7451
+ };
6909
7452
  orders: {
6910
7453
  Row: {
6911
7454
  created_at: string;
@@ -6913,8 +7456,9 @@ export declare const getFlorydayAuctionLetter: import("@tanstack/start-client-co
6913
7456
  customer_id: string | null;
6914
7457
  customer_name: string;
6915
7458
  deleted_at: string | null;
6916
- delivery_date: string;
7459
+ delivery_date: string | null;
6917
7460
  id: string;
7461
+ is_reservation: boolean;
6918
7462
  notes: string | null;
6919
7463
  order_date: string;
6920
7464
  order_number: string;
@@ -6931,8 +7475,9 @@ export declare const getFlorydayAuctionLetter: import("@tanstack/start-client-co
6931
7475
  customer_id?: string | null;
6932
7476
  customer_name?: string;
6933
7477
  deleted_at?: string | null;
6934
- delivery_date: string;
7478
+ delivery_date?: string | null;
6935
7479
  id?: string;
7480
+ is_reservation?: boolean;
6936
7481
  notes?: string | null;
6937
7482
  order_date?: string;
6938
7483
  order_number: string;
@@ -6949,8 +7494,9 @@ export declare const getFlorydayAuctionLetter: import("@tanstack/start-client-co
6949
7494
  customer_id?: string | null;
6950
7495
  customer_name?: string;
6951
7496
  deleted_at?: string | null;
6952
- delivery_date?: string;
7497
+ delivery_date?: string | null;
6953
7498
  id?: string;
7499
+ is_reservation?: boolean;
6954
7500
  notes?: string | null;
6955
7501
  order_date?: string;
6956
7502
  order_number?: string;
@@ -7065,32 +7611,89 @@ export declare const getFlorydayAuctionLetter: import("@tanstack/start-client-co
7065
7611
  color: string;
7066
7612
  created_at: string;
7067
7613
  id: string;
7068
- is_active: boolean;
7069
- name: string;
7614
+ is_active: boolean;
7615
+ name: string;
7616
+ sort_order: number;
7617
+ updated_at: string;
7618
+ };
7619
+ Insert: {
7620
+ automation_type?: string;
7621
+ color?: string;
7622
+ created_at?: string;
7623
+ id?: string;
7624
+ is_active?: boolean;
7625
+ name: string;
7626
+ sort_order?: number;
7627
+ updated_at?: string;
7628
+ };
7629
+ Update: {
7630
+ automation_type?: string;
7631
+ color?: string;
7632
+ created_at?: string;
7633
+ id?: string;
7634
+ is_active?: boolean;
7635
+ name?: string;
7636
+ sort_order?: number;
7637
+ updated_at?: string;
7638
+ };
7639
+ Relationships: [];
7640
+ };
7641
+ product_bom_items: {
7642
+ Row: {
7643
+ component_product_id: string | null;
7644
+ component_trade_item_floriday_id: string | null;
7645
+ created_at: string;
7646
+ id: string;
7647
+ notes: string | null;
7648
+ parent_product_id: string | null;
7649
+ parent_trade_item_floriday_id: string | null;
7650
+ quantity: number;
7070
7651
  sort_order: number;
7652
+ tenant_id: string;
7653
+ unit: string;
7071
7654
  updated_at: string;
7072
7655
  };
7073
7656
  Insert: {
7074
- automation_type?: string;
7075
- color?: string;
7657
+ component_product_id?: string | null;
7658
+ component_trade_item_floriday_id?: string | null;
7076
7659
  created_at?: string;
7077
7660
  id?: string;
7078
- is_active?: boolean;
7079
- name: string;
7661
+ notes?: string | null;
7662
+ parent_product_id?: string | null;
7663
+ parent_trade_item_floriday_id?: string | null;
7664
+ quantity?: number;
7080
7665
  sort_order?: number;
7666
+ tenant_id: string;
7667
+ unit?: string;
7081
7668
  updated_at?: string;
7082
7669
  };
7083
7670
  Update: {
7084
- automation_type?: string;
7085
- color?: string;
7671
+ component_product_id?: string | null;
7672
+ component_trade_item_floriday_id?: string | null;
7086
7673
  created_at?: string;
7087
7674
  id?: string;
7088
- is_active?: boolean;
7089
- name?: string;
7675
+ notes?: string | null;
7676
+ parent_product_id?: string | null;
7677
+ parent_trade_item_floriday_id?: string | null;
7678
+ quantity?: number;
7090
7679
  sort_order?: number;
7680
+ tenant_id?: string;
7681
+ unit?: string;
7091
7682
  updated_at?: string;
7092
7683
  };
7093
- Relationships: [];
7684
+ Relationships: [{
7685
+ foreignKeyName: "product_bom_items_component_product_id_fkey";
7686
+ columns: ["component_product_id"];
7687
+ isOneToOne: false;
7688
+ referencedRelation: "products";
7689
+ referencedColumns: ["id"];
7690
+ }, {
7691
+ foreignKeyName: "product_bom_items_parent_product_id_fkey";
7692
+ columns: ["parent_product_id"];
7693
+ isOneToOne: false;
7694
+ referencedRelation: "products";
7695
+ referencedColumns: ["id"];
7696
+ }];
7094
7697
  };
7095
7698
  product_categories: {
7096
7699
  Row: {
@@ -7197,6 +7800,7 @@ export declare const getFlorydayAuctionLetter: import("@tanstack/start-client-co
7197
7800
  id: string;
7198
7801
  product_group_id: string;
7199
7802
  quantity: number;
7803
+ sort_order: number;
7200
7804
  trade_item_id: string;
7201
7805
  };
7202
7806
  Insert: {
@@ -7204,6 +7808,7 @@ export declare const getFlorydayAuctionLetter: import("@tanstack/start-client-co
7204
7808
  id?: string;
7205
7809
  product_group_id: string;
7206
7810
  quantity?: number;
7811
+ sort_order?: number;
7207
7812
  trade_item_id: string;
7208
7813
  };
7209
7814
  Update: {
@@ -7211,6 +7816,7 @@ export declare const getFlorydayAuctionLetter: import("@tanstack/start-client-co
7211
7816
  id?: string;
7212
7817
  product_group_id?: string;
7213
7818
  quantity?: number;
7819
+ sort_order?: number;
7214
7820
  trade_item_id?: string;
7215
7821
  };
7216
7822
  Relationships: [{
@@ -7225,6 +7831,8 @@ export declare const getFlorydayAuctionLetter: import("@tanstack/start-client-co
7225
7831
  Row: {
7226
7832
  created_at: string;
7227
7833
  description: string | null;
7834
+ head_product_id: string | null;
7835
+ head_trade_item_floriday_id: string | null;
7228
7836
  id: string;
7229
7837
  is_active: boolean;
7230
7838
  name: string;
@@ -7234,6 +7842,8 @@ export declare const getFlorydayAuctionLetter: import("@tanstack/start-client-co
7234
7842
  Insert: {
7235
7843
  created_at?: string;
7236
7844
  description?: string | null;
7845
+ head_product_id?: string | null;
7846
+ head_trade_item_floriday_id?: string | null;
7237
7847
  id?: string;
7238
7848
  is_active?: boolean;
7239
7849
  name: string;
@@ -7243,24 +7853,130 @@ export declare const getFlorydayAuctionLetter: import("@tanstack/start-client-co
7243
7853
  Update: {
7244
7854
  created_at?: string;
7245
7855
  description?: string | null;
7856
+ head_product_id?: string | null;
7857
+ head_trade_item_floriday_id?: string | null;
7246
7858
  id?: string;
7247
7859
  is_active?: boolean;
7248
7860
  name?: string;
7249
7861
  tenant_id?: string;
7250
7862
  updated_at?: string;
7251
7863
  };
7864
+ Relationships: [{
7865
+ foreignKeyName: "product_groups_head_product_id_fkey";
7866
+ columns: ["head_product_id"];
7867
+ isOneToOne: false;
7868
+ referencedRelation: "products";
7869
+ referencedColumns: ["id"];
7870
+ }];
7871
+ };
7872
+ product_load_settings: {
7873
+ Row: {
7874
+ created_at: string;
7875
+ id: string;
7876
+ is_package: boolean;
7877
+ layers_per_load_carrier: number | null;
7878
+ load_carrier: string | null;
7879
+ package_id: string | null;
7880
+ package_label: string | null;
7881
+ packages_per_layer: number | null;
7882
+ product_id: string | null;
7883
+ tenant_id: string;
7884
+ trade_item_floriday_id: string | null;
7885
+ units_per_package: number | null;
7886
+ updated_at: string;
7887
+ };
7888
+ Insert: {
7889
+ created_at?: string;
7890
+ id?: string;
7891
+ is_package?: boolean;
7892
+ layers_per_load_carrier?: number | null;
7893
+ load_carrier?: string | null;
7894
+ package_id?: string | null;
7895
+ package_label?: string | null;
7896
+ packages_per_layer?: number | null;
7897
+ product_id?: string | null;
7898
+ tenant_id: string;
7899
+ trade_item_floriday_id?: string | null;
7900
+ units_per_package?: number | null;
7901
+ updated_at?: string;
7902
+ };
7903
+ Update: {
7904
+ created_at?: string;
7905
+ id?: string;
7906
+ is_package?: boolean;
7907
+ layers_per_load_carrier?: number | null;
7908
+ load_carrier?: string | null;
7909
+ package_id?: string | null;
7910
+ package_label?: string | null;
7911
+ packages_per_layer?: number | null;
7912
+ product_id?: string | null;
7913
+ tenant_id?: string;
7914
+ trade_item_floriday_id?: string | null;
7915
+ units_per_package?: number | null;
7916
+ updated_at?: string;
7917
+ };
7918
+ Relationships: [{
7919
+ foreignKeyName: "product_load_settings_package_id_fkey";
7920
+ columns: ["package_id"];
7921
+ isOneToOne: false;
7922
+ referencedRelation: "packages";
7923
+ referencedColumns: ["id"];
7924
+ }, {
7925
+ foreignKeyName: "product_load_settings_product_id_fkey";
7926
+ columns: ["product_id"];
7927
+ isOneToOne: false;
7928
+ referencedRelation: "products";
7929
+ referencedColumns: ["id"];
7930
+ }];
7931
+ };
7932
+ product_merge_log: {
7933
+ Row: {
7934
+ canonical_product_id: string | null;
7935
+ id: string;
7936
+ merged_at: string;
7937
+ merged_from_id: string;
7938
+ notes: string | null;
7939
+ snapshot: import("../integrations/supabase/types").Json;
7940
+ source_table: string;
7941
+ status: string;
7942
+ };
7943
+ Insert: {
7944
+ canonical_product_id?: string | null;
7945
+ id?: string;
7946
+ merged_at?: string;
7947
+ merged_from_id: string;
7948
+ notes?: string | null;
7949
+ snapshot?: import("../integrations/supabase/types").Json;
7950
+ source_table: string;
7951
+ status?: string;
7952
+ };
7953
+ Update: {
7954
+ canonical_product_id?: string | null;
7955
+ id?: string;
7956
+ merged_at?: string;
7957
+ merged_from_id?: string;
7958
+ notes?: string | null;
7959
+ snapshot?: import("../integrations/supabase/types").Json;
7960
+ source_table?: string;
7961
+ status?: string;
7962
+ };
7252
7963
  Relationships: [];
7253
7964
  };
7254
7965
  products: {
7255
7966
  Row: {
7967
+ article_number: string | null;
7256
7968
  barcode: string | null;
7257
7969
  batch: string;
7258
7970
  crates_per_layer: number;
7259
7971
  created_at: string;
7260
7972
  custom_fields: import("../integrations/supabase/types").Json;
7973
+ floriday_active: boolean;
7974
+ floriday_payload: import("../integrations/supabase/types").Json;
7975
+ floriday_trade_item_id: string | null;
7261
7976
  id: string;
7262
7977
  image_url: string | null;
7263
7978
  incoming_quantity: number;
7979
+ is_layer: boolean;
7264
7980
  layers_per_cart: number;
7265
7981
  location: string;
7266
7982
  min_quantity: number;
@@ -7276,14 +7992,19 @@ export declare const getFlorydayAuctionLetter: import("@tanstack/start-client-co
7276
7992
  weight: string | null;
7277
7993
  };
7278
7994
  Insert: {
7995
+ article_number?: string | null;
7279
7996
  barcode?: string | null;
7280
7997
  batch: string;
7281
7998
  crates_per_layer?: number;
7282
7999
  created_at?: string;
7283
8000
  custom_fields?: import("../integrations/supabase/types").Json;
8001
+ floriday_active?: boolean;
8002
+ floriday_payload?: import("../integrations/supabase/types").Json;
8003
+ floriday_trade_item_id?: string | null;
7284
8004
  id?: string;
7285
8005
  image_url?: string | null;
7286
8006
  incoming_quantity?: number;
8007
+ is_layer?: boolean;
7287
8008
  layers_per_cart?: number;
7288
8009
  location: string;
7289
8010
  min_quantity?: number;
@@ -7299,14 +8020,19 @@ export declare const getFlorydayAuctionLetter: import("@tanstack/start-client-co
7299
8020
  weight?: string | null;
7300
8021
  };
7301
8022
  Update: {
8023
+ article_number?: string | null;
7302
8024
  barcode?: string | null;
7303
8025
  batch?: string;
7304
8026
  crates_per_layer?: number;
7305
8027
  created_at?: string;
7306
8028
  custom_fields?: import("../integrations/supabase/types").Json;
8029
+ floriday_active?: boolean;
8030
+ floriday_payload?: import("../integrations/supabase/types").Json;
8031
+ floriday_trade_item_id?: string | null;
7307
8032
  id?: string;
7308
8033
  image_url?: string | null;
7309
8034
  incoming_quantity?: number;
8035
+ is_layer?: boolean;
7310
8036
  layers_per_cart?: number;
7311
8037
  location?: string;
7312
8038
  min_quantity?: number;
@@ -8212,8 +8938,10 @@ export declare const getFlorydayAuctionLetter: import("@tanstack/start-client-co
8212
8938
  order_id: string | null;
8213
8939
  order_item_id: string | null;
8214
8940
  order_source: string | null;
8941
+ parent_trade_item_key: string | null;
8215
8942
  physical_after: number | null;
8216
8943
  physical_before: number | null;
8944
+ production_batch_id: string | null;
8217
8945
  qty_delta: number;
8218
8946
  reason: string | null;
8219
8947
  reserved_after: number | null;
@@ -8229,8 +8957,10 @@ export declare const getFlorydayAuctionLetter: import("@tanstack/start-client-co
8229
8957
  order_id?: string | null;
8230
8958
  order_item_id?: string | null;
8231
8959
  order_source?: string | null;
8960
+ parent_trade_item_key?: string | null;
8232
8961
  physical_after?: number | null;
8233
8962
  physical_before?: number | null;
8963
+ production_batch_id?: string | null;
8234
8964
  qty_delta: number;
8235
8965
  reason?: string | null;
8236
8966
  reserved_after?: number | null;
@@ -8246,8 +8976,10 @@ export declare const getFlorydayAuctionLetter: import("@tanstack/start-client-co
8246
8976
  order_id?: string | null;
8247
8977
  order_item_id?: string | null;
8248
8978
  order_source?: string | null;
8979
+ parent_trade_item_key?: string | null;
8249
8980
  physical_after?: number | null;
8250
8981
  physical_before?: number | null;
8982
+ production_batch_id?: string | null;
8251
8983
  qty_delta?: number;
8252
8984
  reason?: string | null;
8253
8985
  reserved_after?: number | null;
@@ -8553,6 +9285,48 @@ export declare const getFlorydayAuctionLetter: import("@tanstack/start-client-co
8553
9285
  };
8554
9286
  Relationships: [];
8555
9287
  };
9288
+ trade_item_prices: {
9289
+ Row: {
9290
+ created_at: string;
9291
+ currency: string;
9292
+ id: string;
9293
+ last_push_error: string | null;
9294
+ last_pushed_at: string | null;
9295
+ price_group_id: string | null;
9296
+ price_per_piece: number;
9297
+ supply_line_id: string | null;
9298
+ trade_item_key: string;
9299
+ updated_at: string;
9300
+ user_id: string;
9301
+ };
9302
+ Insert: {
9303
+ created_at?: string;
9304
+ currency?: string;
9305
+ id?: string;
9306
+ last_push_error?: string | null;
9307
+ last_pushed_at?: string | null;
9308
+ price_group_id?: string | null;
9309
+ price_per_piece: number;
9310
+ supply_line_id?: string | null;
9311
+ trade_item_key: string;
9312
+ updated_at?: string;
9313
+ user_id: string;
9314
+ };
9315
+ Update: {
9316
+ created_at?: string;
9317
+ currency?: string;
9318
+ id?: string;
9319
+ last_push_error?: string | null;
9320
+ last_pushed_at?: string | null;
9321
+ price_group_id?: string | null;
9322
+ price_per_piece?: number;
9323
+ supply_line_id?: string | null;
9324
+ trade_item_key?: string;
9325
+ updated_at?: string;
9326
+ user_id?: string;
9327
+ };
9328
+ Relationships: [];
9329
+ };
8556
9330
  trade_item_stock: {
8557
9331
  Row: {
8558
9332
  connection_id: string;
@@ -8706,7 +9480,7 @@ export declare const getFlorydayAuctionLetter: import("@tanstack/start-client-co
8706
9480
  twinfield_connections: {
8707
9481
  Row: {
8708
9482
  access_token: string | null;
8709
- client_id: string;
9483
+ client_id: string | null;
8710
9484
  client_secret: string | null;
8711
9485
  cluster_uri: string | null;
8712
9486
  company_code: string | null;
@@ -8718,7 +9492,7 @@ export declare const getFlorydayAuctionLetter: import("@tanstack/start-client-co
8718
9492
  is_active: boolean;
8719
9493
  label: string | null;
8720
9494
  office_code: string | null;
8721
- redirect_uri: string;
9495
+ redirect_uri: string | null;
8722
9496
  refresh_token: string | null;
8723
9497
  token_expires_at: string | null;
8724
9498
  updated_at: string;
@@ -8726,7 +9500,7 @@ export declare const getFlorydayAuctionLetter: import("@tanstack/start-client-co
8726
9500
  };
8727
9501
  Insert: {
8728
9502
  access_token?: string | null;
8729
- client_id: string;
9503
+ client_id?: string | null;
8730
9504
  client_secret?: string | null;
8731
9505
  cluster_uri?: string | null;
8732
9506
  company_code?: string | null;
@@ -8738,7 +9512,7 @@ export declare const getFlorydayAuctionLetter: import("@tanstack/start-client-co
8738
9512
  is_active?: boolean;
8739
9513
  label?: string | null;
8740
9514
  office_code?: string | null;
8741
- redirect_uri: string;
9515
+ redirect_uri?: string | null;
8742
9516
  refresh_token?: string | null;
8743
9517
  token_expires_at?: string | null;
8744
9518
  updated_at?: string;
@@ -8746,7 +9520,7 @@ export declare const getFlorydayAuctionLetter: import("@tanstack/start-client-co
8746
9520
  };
8747
9521
  Update: {
8748
9522
  access_token?: string | null;
8749
- client_id?: string;
9523
+ client_id?: string | null;
8750
9524
  client_secret?: string | null;
8751
9525
  cluster_uri?: string | null;
8752
9526
  company_code?: string | null;
@@ -8758,7 +9532,7 @@ export declare const getFlorydayAuctionLetter: import("@tanstack/start-client-co
8758
9532
  is_active?: boolean;
8759
9533
  label?: string | null;
8760
9534
  office_code?: string | null;
8761
- redirect_uri?: string;
9535
+ redirect_uri?: string | null;
8762
9536
  refresh_token?: string | null;
8763
9537
  token_expires_at?: string | null;
8764
9538
  updated_at?: string;
@@ -9953,25 +10727,6 @@ export declare const getFlorydayAuctionLetter: import("@tanstack/start-client-co
9953
10727
  };
9954
10728
  Relationships: [];
9955
10729
  };
9956
- floriday_customer_discounts: {
9957
- Row: {
9958
- base_price: number | null;
9959
- buyer_organization_id: string | null;
9960
- currency: string | null;
9961
- discount_type: string | null;
9962
- discount_value: number | null;
9963
- min_quantity: number | null;
9964
- net_price: number | null;
9965
- product_group_id: string | null;
9966
- raw: import("../integrations/supabase/types").Json | null;
9967
- source: string | null;
9968
- source_id: string | null;
9969
- trade_item_id: string | null;
9970
- valid_from: string | null;
9971
- valid_until: string | null;
9972
- };
9973
- Relationships: [];
9974
- };
9975
10730
  local_customer_discounts: {
9976
10731
  Row: {
9977
10732
  base_price: number | null;
@@ -10275,6 +11030,13 @@ export declare const getFlorydayAuctionLetter: import("@tanstack/start-client-co
10275
11030
  };
10276
11031
  Returns: number;
10277
11032
  };
11033
+ _migrate_rewrite_stock_key: {
11034
+ Args: {
11035
+ _from_key: string;
11036
+ _to_key: string;
11037
+ };
11038
+ Returns: undefined;
11039
+ };
10278
11040
  afh_city_code: {
10279
11041
  Args: {
10280
11042
  _city: string;
@@ -10390,6 +11152,28 @@ export declare const getFlorydayAuctionLetter: import("@tanstack/start-client-co
10390
11152
  Args: never;
10391
11153
  Returns: undefined;
10392
11154
  };
11155
+ consume_bom_for_production: {
11156
+ Args: {
11157
+ p_connection_id: string;
11158
+ p_parent_id: string;
11159
+ p_parent_key: string;
11160
+ p_parent_kind: string;
11161
+ p_quantity: number;
11162
+ p_user_id: string;
11163
+ };
11164
+ Returns: import("../integrations/supabase/types").Json;
11165
+ } | {
11166
+ Args: {
11167
+ p_batch_id?: string;
11168
+ p_connection_id: string;
11169
+ p_parent_id: string;
11170
+ p_parent_key: string;
11171
+ p_parent_kind: string;
11172
+ p_quantity: number;
11173
+ p_user_id: string;
11174
+ };
11175
+ Returns: import("../integrations/supabase/types").Json;
11176
+ };
10393
11177
  consume_floriday_rate_limit: {
10394
11178
  Args: {
10395
11179
  p_bucket: string;
@@ -10441,6 +11225,13 @@ export declare const getFlorydayAuctionLetter: import("@tanstack/start-client-co
10441
11225
  table_name: string;
10442
11226
  }[];
10443
11227
  };
11228
+ delete_samenstelling: {
11229
+ Args: {
11230
+ p_parent_id: string;
11231
+ p_parent_kind: string;
11232
+ };
11233
+ Returns: import("../integrations/supabase/types").Json;
11234
+ };
10444
11235
  dispatch_carrier_signups_sql: {
10445
11236
  Args: {
10446
11237
  _catchup?: string;
@@ -10482,6 +11273,16 @@ export declare const getFlorydayAuctionLetter: import("@tanstack/start-client-co
10482
11273
  status: string;
10483
11274
  }[];
10484
11275
  };
11276
+ email_auth_upsert_connection: {
11277
+ Args: {
11278
+ _account_email: string;
11279
+ _created_by: string;
11280
+ _is_active: boolean;
11281
+ _provider: string;
11282
+ _status: string;
11283
+ };
11284
+ Returns: string;
11285
+ };
10485
11286
  enqueue_cart_replan_if_unlocked: {
10486
11287
  Args: {
10487
11288
  p_order_id: string;
@@ -10601,19 +11402,6 @@ export declare const getFlorydayAuctionLetter: import("@tanstack/start-client-co
10601
11402
  resource: string;
10602
11403
  }[];
10603
11404
  };
10604
- get_floriday_agreements_active: {
10605
- Args: {
10606
- p_on_date?: string;
10607
- };
10608
- Returns: {
10609
- buyer_organization_id: string;
10610
- data: import("../integrations/supabase/types").Json;
10611
- floriday_id: string;
10612
- status: string;
10613
- valid_from: string;
10614
- valid_until: string;
10615
- }[];
10616
- };
10617
11405
  get_floriday_clock_supplies_window: {
10618
11406
  Args: {
10619
11407
  p_from: string;
@@ -10686,6 +11474,21 @@ export declare const getFlorydayAuctionLetter: import("@tanstack/start-client-co
10686
11474
  minutes_since_success: number;
10687
11475
  }[];
10688
11476
  };
11477
+ get_group_allocation_keys: {
11478
+ Args: {
11479
+ p_product_id: string;
11480
+ };
11481
+ Returns: {
11482
+ k: string;
11483
+ ord: number;
11484
+ }[];
11485
+ };
11486
+ get_group_head_key: {
11487
+ Args: {
11488
+ p_group_id: string;
11489
+ };
11490
+ Returns: string;
11491
+ };
10689
11492
  get_offer_by_link_code: {
10690
11493
  Args: {
10691
11494
  p_code: string;
@@ -10796,6 +11599,32 @@ export declare const getFlorydayAuctionLetter: import("@tanstack/start-client-co
10796
11599
  };
10797
11600
  Returns: undefined;
10798
11601
  };
11602
+ mark_salesorder_controlled: {
11603
+ Args: {
11604
+ p_controlled: boolean;
11605
+ p_floriday_id: string;
11606
+ };
11607
+ Returns: undefined;
11608
+ };
11609
+ mark_shipment_shipped: {
11610
+ Args: {
11611
+ p_shipment_id: string;
11612
+ };
11613
+ Returns: undefined;
11614
+ };
11615
+ merge_products: {
11616
+ Args: {
11617
+ _canonical: string;
11618
+ _loser: string;
11619
+ };
11620
+ Returns: undefined;
11621
+ };
11622
+ next_manufacture_partij: {
11623
+ Args: {
11624
+ _tenant_id: string;
11625
+ };
11626
+ Returns: string;
11627
+ };
10799
11628
  next_order_number: {
10800
11629
  Args: {
10801
11630
  p_prefix: string;
@@ -10865,6 +11694,15 @@ export declare const getFlorydayAuctionLetter: import("@tanstack/start-client-co
10865
11694
  };
10866
11695
  Returns: undefined;
10867
11696
  };
11697
+ pickstation_resolve_delivery_orders: {
11698
+ Args: {
11699
+ p_sales_order_ids: string[];
11700
+ };
11701
+ Returns: {
11702
+ delivery_order_id: string;
11703
+ sales_order_id: string;
11704
+ }[];
11705
+ };
10868
11706
  pickstation_set_cart_status: {
10869
11707
  Args: {
10870
11708
  p_cart_index: number;
@@ -10874,6 +11712,14 @@ export declare const getFlorydayAuctionLetter: import("@tanstack/start-client-co
10874
11712
  };
10875
11713
  Returns: undefined;
10876
11714
  };
11715
+ produce_designed_product: {
11716
+ Args: {
11717
+ p_parent_id: string;
11718
+ p_parent_kind: string;
11719
+ p_quantity: number;
11720
+ };
11721
+ Returns: import("../integrations/supabase/types").Json;
11722
+ };
10877
11723
  promote_trade_item_key: {
10878
11724
  Args: {
10879
11725
  p_new: string;
@@ -10881,6 +11727,10 @@ export declare const getFlorydayAuctionLetter: import("@tanstack/start-client-co
10881
11727
  };
10882
11728
  Returns: undefined;
10883
11729
  };
11730
+ recompute_all_reserved_stock: {
11731
+ Args: never;
11732
+ Returns: undefined;
11733
+ };
10884
11734
  recompute_order_status: {
10885
11735
  Args: {
10886
11736
  p_order_id: string;
@@ -10930,27 +11780,45 @@ export declare const getFlorydayAuctionLetter: import("@tanstack/start-client-co
10930
11780
  };
10931
11781
  Returns: undefined;
10932
11782
  };
11783
+ resolve_group_allocation: {
11784
+ Args: {
11785
+ _needed: number;
11786
+ _product_group_id: string;
11787
+ };
11788
+ Returns: {
11789
+ allocated: number;
11790
+ trade_item_id: string;
11791
+ }[];
11792
+ };
11793
+ resolve_group_member_stock_key: {
11794
+ Args: {
11795
+ p_trade_item_id: string;
11796
+ };
11797
+ Returns: string;
11798
+ };
10933
11799
  resolve_product_id_for_item: {
10934
11800
  Args: {
10935
11801
  p_product_name: string;
10936
11802
  };
10937
11803
  Returns: string;
10938
11804
  };
10939
- schedule_floriday_additional_services_sync: {
11805
+ resolve_stock_trade_item_key: {
10940
11806
  Args: {
10941
- p_apikey: string;
10942
- p_url: string;
11807
+ p_product_id: string;
10943
11808
  };
10944
- Returns: number;
11809
+ Returns: string;
10945
11810
  };
10946
- schedule_floriday_agreement_calloffs_sync: {
11811
+ reverse_production: {
10947
11812
  Args: {
10948
- p_apikey: string;
10949
- p_url: string;
11813
+ p_connection_id?: string;
11814
+ p_parent_key: string;
11815
+ p_quantity: number;
11816
+ p_reason?: string;
11817
+ p_user_id?: string;
10950
11818
  };
10951
- Returns: number;
11819
+ Returns: import("../integrations/supabase/types").Json;
10952
11820
  };
10953
- schedule_floriday_agreements_sync: {
11821
+ schedule_floriday_additional_services_sync: {
10954
11822
  Args: {
10955
11823
  p_apikey: string;
10956
11824
  p_url: string;
@@ -11203,6 +12071,10 @@ export declare const getFlorydayAuctionLetter: import("@tanstack/start-client-co
11203
12071
  };
11204
12072
  Returns: number;
11205
12073
  };
12074
+ self_heal_floriday_links: {
12075
+ Args: never;
12076
+ Returns: number;
12077
+ };
11206
12078
  show_limit: {
11207
12079
  Args: never;
11208
12080
  Returns: number;
@@ -11225,6 +12097,12 @@ export declare const getFlorydayAuctionLetter: import("@tanstack/start-client-co
11225
12097
  };
11226
12098
  Returns: undefined;
11227
12099
  };
12100
+ sync_product_group_belading: {
12101
+ Args: {
12102
+ _group_id: string;
12103
+ };
12104
+ Returns: undefined;
12105
+ };
11228
12106
  sync_product_packing_from_floriday_cache: {
11229
12107
  Args: {
11230
12108
  p_floriday_id: string;