@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
@@ -241,6 +241,165 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
241
241
  };
242
242
  Relationships: [];
243
243
  };
244
+ ai_credentials: {
245
+ Row: {
246
+ active: boolean;
247
+ api_key: string;
248
+ created_at: string;
249
+ created_by: string | null;
250
+ id: string;
251
+ label: string;
252
+ provider_id: string;
253
+ updated_at: string;
254
+ };
255
+ Insert: {
256
+ active?: boolean;
257
+ api_key: string;
258
+ created_at?: string;
259
+ created_by?: string | null;
260
+ id?: string;
261
+ label: string;
262
+ provider_id: string;
263
+ updated_at?: string;
264
+ };
265
+ Update: {
266
+ active?: boolean;
267
+ api_key?: string;
268
+ created_at?: string;
269
+ created_by?: string | null;
270
+ id?: string;
271
+ label?: string;
272
+ provider_id?: string;
273
+ updated_at?: string;
274
+ };
275
+ Relationships: [{
276
+ foreignKeyName: "ai_credentials_provider_id_fkey";
277
+ columns: ["provider_id"];
278
+ isOneToOne: false;
279
+ referencedRelation: "ai_providers";
280
+ referencedColumns: ["id"];
281
+ }];
282
+ };
283
+ ai_models: {
284
+ Row: {
285
+ active: boolean;
286
+ context_window: number | null;
287
+ created_at: string;
288
+ display_name: string;
289
+ id: string;
290
+ is_default: boolean;
291
+ modality: string;
292
+ provider_id: string;
293
+ slug: string;
294
+ updated_at: string;
295
+ };
296
+ Insert: {
297
+ active?: boolean;
298
+ context_window?: number | null;
299
+ created_at?: string;
300
+ display_name: string;
301
+ id?: string;
302
+ is_default?: boolean;
303
+ modality?: string;
304
+ provider_id: string;
305
+ slug: string;
306
+ updated_at?: string;
307
+ };
308
+ Update: {
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
+ Relationships: [{
321
+ foreignKeyName: "ai_models_provider_id_fkey";
322
+ columns: ["provider_id"];
323
+ isOneToOne: false;
324
+ referencedRelation: "ai_providers";
325
+ referencedColumns: ["id"];
326
+ }];
327
+ };
328
+ ai_module_bindings: {
329
+ Row: {
330
+ consumer_module_id: string;
331
+ created_at: string;
332
+ credential_id: string;
333
+ id: string;
334
+ model_id: string;
335
+ notes: string | null;
336
+ updated_at: string;
337
+ };
338
+ Insert: {
339
+ consumer_module_id: string;
340
+ created_at?: string;
341
+ credential_id: string;
342
+ id?: string;
343
+ model_id: string;
344
+ notes?: string | null;
345
+ updated_at?: string;
346
+ };
347
+ Update: {
348
+ consumer_module_id?: string;
349
+ created_at?: string;
350
+ credential_id?: string;
351
+ id?: string;
352
+ model_id?: string;
353
+ notes?: string | null;
354
+ updated_at?: string;
355
+ };
356
+ Relationships: [{
357
+ foreignKeyName: "ai_module_bindings_credential_id_fkey";
358
+ columns: ["credential_id"];
359
+ isOneToOne: false;
360
+ referencedRelation: "ai_credentials";
361
+ referencedColumns: ["id"];
362
+ }, {
363
+ foreignKeyName: "ai_module_bindings_model_id_fkey";
364
+ columns: ["model_id"];
365
+ isOneToOne: false;
366
+ referencedRelation: "ai_models";
367
+ referencedColumns: ["id"];
368
+ }];
369
+ };
370
+ ai_providers: {
371
+ Row: {
372
+ active: boolean;
373
+ auth_type: string;
374
+ base_url: string | null;
375
+ created_at: string;
376
+ id: string;
377
+ name: string;
378
+ slug: string;
379
+ updated_at: string;
380
+ };
381
+ Insert: {
382
+ active?: boolean;
383
+ auth_type?: string;
384
+ base_url?: string | null;
385
+ created_at?: string;
386
+ id?: string;
387
+ name: string;
388
+ slug: string;
389
+ updated_at?: string;
390
+ };
391
+ Update: {
392
+ active?: boolean;
393
+ auth_type?: string;
394
+ base_url?: string | null;
395
+ created_at?: string;
396
+ id?: string;
397
+ name?: string;
398
+ slug?: string;
399
+ updated_at?: string;
400
+ };
401
+ Relationships: [];
402
+ };
244
403
  app_settings: {
245
404
  Row: {
246
405
  created_at: string;
@@ -1240,8 +1399,27 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
1240
1399
  customers: {
1241
1400
  Row: {
1242
1401
  address: string | null;
1402
+ address_line1: string | null;
1403
+ address_line2: string | null;
1404
+ address_type: string | null;
1405
+ attention_to: string | null;
1406
+ bank_account_holder: string | null;
1407
+ bank_account_number: string | null;
1408
+ bank_address_line1: string | null;
1409
+ bank_address_line2: string | null;
1410
+ bank_bic: string | null;
1411
+ bank_city: string | null;
1412
+ bank_country: string | null;
1413
+ bank_house_number: string | null;
1414
+ bank_iban: string | null;
1415
+ bank_name: string | null;
1416
+ bank_national_code: string | null;
1417
+ bank_postal_code: string | null;
1418
+ bank_state: string | null;
1419
+ billing_email: string | null;
1243
1420
  bio: string | null;
1244
1421
  city: string | null;
1422
+ coc_number: string | null;
1245
1423
  commercial_name: string | null;
1246
1424
  company_name: string;
1247
1425
  connection_status: string;
@@ -1250,21 +1428,28 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
1250
1428
  created_at: string;
1251
1429
  custom_fields: import("./types").Json;
1252
1430
  customer_class: string | null;
1431
+ customer_number: string | null;
1432
+ discount_days: number | null;
1433
+ discount_percentage: number | null;
1253
1434
  email: string | null;
1254
1435
  external_id: string | null;
1436
+ fax: string | null;
1255
1437
  floriday_connection_id: string | null;
1256
1438
  floriday_organization_id: string | null;
1257
1439
  floriday_raw: import("./types").Json | null;
1258
1440
  gln: string | null;
1259
1441
  house_number: string | null;
1442
+ icp_country_code: string | null;
1260
1443
  id: string;
1261
1444
  is_active: boolean;
1445
+ language: string | null;
1262
1446
  last_synced_at: string | null;
1263
1447
  logo_url: string | null;
1264
1448
  markets: string[];
1265
1449
  notes: string | null;
1266
1450
  organization_type: string | null;
1267
1451
  payment_methods: string[];
1452
+ payment_term_days: number | null;
1268
1453
  phone: string | null;
1269
1454
  postal_code: string | null;
1270
1455
  product_groups: string[];
@@ -1275,13 +1460,33 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
1275
1460
  sync_status: string;
1276
1461
  trade_forms: string[];
1277
1462
  updated_at: string;
1463
+ vat_display: string | null;
1278
1464
  vat_number: string | null;
1279
1465
  website: string | null;
1280
1466
  };
1281
1467
  Insert: {
1282
1468
  address?: string | null;
1469
+ address_line1?: string | null;
1470
+ address_line2?: string | null;
1471
+ address_type?: string | null;
1472
+ attention_to?: string | null;
1473
+ bank_account_holder?: string | null;
1474
+ bank_account_number?: string | null;
1475
+ bank_address_line1?: string | null;
1476
+ bank_address_line2?: string | null;
1477
+ bank_bic?: string | null;
1478
+ bank_city?: string | null;
1479
+ bank_country?: string | null;
1480
+ bank_house_number?: string | null;
1481
+ bank_iban?: string | null;
1482
+ bank_name?: string | null;
1483
+ bank_national_code?: string | null;
1484
+ bank_postal_code?: string | null;
1485
+ bank_state?: string | null;
1486
+ billing_email?: string | null;
1283
1487
  bio?: string | null;
1284
1488
  city?: string | null;
1489
+ coc_number?: string | null;
1285
1490
  commercial_name?: string | null;
1286
1491
  company_name: string;
1287
1492
  connection_status?: string;
@@ -1290,21 +1495,28 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
1290
1495
  created_at?: string;
1291
1496
  custom_fields?: import("./types").Json;
1292
1497
  customer_class?: string | null;
1498
+ customer_number?: string | null;
1499
+ discount_days?: number | null;
1500
+ discount_percentage?: number | null;
1293
1501
  email?: string | null;
1294
1502
  external_id?: string | null;
1503
+ fax?: string | null;
1295
1504
  floriday_connection_id?: string | null;
1296
1505
  floriday_organization_id?: string | null;
1297
1506
  floriday_raw?: import("./types").Json | null;
1298
1507
  gln?: string | null;
1299
1508
  house_number?: string | null;
1509
+ icp_country_code?: string | null;
1300
1510
  id?: string;
1301
1511
  is_active?: boolean;
1512
+ language?: string | null;
1302
1513
  last_synced_at?: string | null;
1303
1514
  logo_url?: string | null;
1304
1515
  markets?: string[];
1305
1516
  notes?: string | null;
1306
1517
  organization_type?: string | null;
1307
1518
  payment_methods?: string[];
1519
+ payment_term_days?: number | null;
1308
1520
  phone?: string | null;
1309
1521
  postal_code?: string | null;
1310
1522
  product_groups?: string[];
@@ -1315,13 +1527,33 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
1315
1527
  sync_status?: string;
1316
1528
  trade_forms?: string[];
1317
1529
  updated_at?: string;
1530
+ vat_display?: string | null;
1318
1531
  vat_number?: string | null;
1319
1532
  website?: string | null;
1320
1533
  };
1321
1534
  Update: {
1322
1535
  address?: string | null;
1536
+ address_line1?: string | null;
1537
+ address_line2?: string | null;
1538
+ address_type?: string | null;
1539
+ attention_to?: string | null;
1540
+ bank_account_holder?: string | null;
1541
+ bank_account_number?: string | null;
1542
+ bank_address_line1?: string | null;
1543
+ bank_address_line2?: string | null;
1544
+ bank_bic?: string | null;
1545
+ bank_city?: string | null;
1546
+ bank_country?: string | null;
1547
+ bank_house_number?: string | null;
1548
+ bank_iban?: string | null;
1549
+ bank_name?: string | null;
1550
+ bank_national_code?: string | null;
1551
+ bank_postal_code?: string | null;
1552
+ bank_state?: string | null;
1553
+ billing_email?: string | null;
1323
1554
  bio?: string | null;
1324
1555
  city?: string | null;
1556
+ coc_number?: string | null;
1325
1557
  commercial_name?: string | null;
1326
1558
  company_name?: string;
1327
1559
  connection_status?: string;
@@ -1330,21 +1562,28 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
1330
1562
  created_at?: string;
1331
1563
  custom_fields?: import("./types").Json;
1332
1564
  customer_class?: string | null;
1565
+ customer_number?: string | null;
1566
+ discount_days?: number | null;
1567
+ discount_percentage?: number | null;
1333
1568
  email?: string | null;
1334
1569
  external_id?: string | null;
1570
+ fax?: string | null;
1335
1571
  floriday_connection_id?: string | null;
1336
1572
  floriday_organization_id?: string | null;
1337
1573
  floriday_raw?: import("./types").Json | null;
1338
1574
  gln?: string | null;
1339
1575
  house_number?: string | null;
1576
+ icp_country_code?: string | null;
1340
1577
  id?: string;
1341
1578
  is_active?: boolean;
1579
+ language?: string | null;
1342
1580
  last_synced_at?: string | null;
1343
1581
  logo_url?: string | null;
1344
1582
  markets?: string[];
1345
1583
  notes?: string | null;
1346
1584
  organization_type?: string | null;
1347
1585
  payment_methods?: string[];
1586
+ payment_term_days?: number | null;
1348
1587
  phone?: string | null;
1349
1588
  postal_code?: string | null;
1350
1589
  product_groups?: string[];
@@ -1355,6 +1594,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
1355
1594
  sync_status?: string;
1356
1595
  trade_forms?: string[];
1357
1596
  updated_at?: string;
1597
+ vat_display?: string | null;
1358
1598
  vat_number?: string | null;
1359
1599
  website?: string | null;
1360
1600
  };
@@ -3166,105 +3406,6 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
3166
3406
  referencedColumns: ["id"];
3167
3407
  }];
3168
3408
  };
3169
- floriday_agreement_calloffs_cache: {
3170
- Row: {
3171
- agreement_id: string | null;
3172
- connection_id: string;
3173
- data: import("./types").Json;
3174
- delivery_date: string | null;
3175
- fetched_at: string;
3176
- floriday_id: string;
3177
- id: string;
3178
- is_deleted: boolean;
3179
- sequence_number: number;
3180
- status: string | null;
3181
- updated_at: string;
3182
- };
3183
- Insert: {
3184
- agreement_id?: string | null;
3185
- connection_id: string;
3186
- data?: import("./types").Json;
3187
- delivery_date?: string | null;
3188
- fetched_at?: string;
3189
- floriday_id: string;
3190
- id?: string;
3191
- is_deleted?: boolean;
3192
- sequence_number?: number;
3193
- status?: string | null;
3194
- updated_at?: string;
3195
- };
3196
- Update: {
3197
- agreement_id?: string | null;
3198
- connection_id?: string;
3199
- data?: import("./types").Json;
3200
- delivery_date?: string | null;
3201
- fetched_at?: string;
3202
- floriday_id?: string;
3203
- id?: string;
3204
- is_deleted?: boolean;
3205
- sequence_number?: number;
3206
- status?: string | null;
3207
- updated_at?: string;
3208
- };
3209
- Relationships: [{
3210
- foreignKeyName: "floriday_agreement_calloffs_cache_connection_id_fkey";
3211
- columns: ["connection_id"];
3212
- isOneToOne: false;
3213
- referencedRelation: "floriday_connections";
3214
- referencedColumns: ["id"];
3215
- }];
3216
- };
3217
- floriday_agreements_cache: {
3218
- Row: {
3219
- buyer_organization_id: string | null;
3220
- connection_id: string;
3221
- data: import("./types").Json;
3222
- fetched_at: string;
3223
- floriday_id: string;
3224
- id: string;
3225
- is_deleted: boolean;
3226
- sequence_number: number;
3227
- status: string | null;
3228
- updated_at: string;
3229
- valid_from: string | null;
3230
- valid_until: string | null;
3231
- };
3232
- Insert: {
3233
- buyer_organization_id?: string | null;
3234
- connection_id: string;
3235
- data?: import("./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
- Update: {
3247
- buyer_organization_id?: string | null;
3248
- connection_id?: string;
3249
- data?: import("./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
- Relationships: [{
3261
- foreignKeyName: "floriday_agreements_cache_connection_id_fkey";
3262
- columns: ["connection_id"];
3263
- isOneToOne: false;
3264
- referencedRelation: "floriday_connections";
3265
- referencedColumns: ["id"];
3266
- }];
3267
- };
3268
3409
  floriday_auction_letters_cache: {
3269
3410
  Row: {
3270
3411
  auction_letter_code: string;
@@ -3763,6 +3904,27 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
3763
3904
  referencedColumns: ["id"];
3764
3905
  }];
3765
3906
  };
3907
+ floriday_continuous_stock_cache: {
3908
+ Row: {
3909
+ connection_id: string;
3910
+ fetched_at: string;
3911
+ number_of_pieces: number;
3912
+ trade_item_id: string;
3913
+ };
3914
+ Insert: {
3915
+ connection_id: string;
3916
+ fetched_at?: string;
3917
+ number_of_pieces?: number;
3918
+ trade_item_id: string;
3919
+ };
3920
+ Update: {
3921
+ connection_id?: string;
3922
+ fetched_at?: string;
3923
+ number_of_pieces?: number;
3924
+ trade_item_id?: string;
3925
+ };
3926
+ Relationships: [];
3927
+ };
3766
3928
  floriday_continuous_stock_queue: {
3767
3929
  Row: {
3768
3930
  attempts: number;
@@ -4538,6 +4700,8 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
4538
4700
  Row: {
4539
4701
  buyer_organization_id: string | null;
4540
4702
  connection_id: string;
4703
+ controlled_at: string | null;
4704
+ controlled_by: string | null;
4541
4705
  created_at: string;
4542
4706
  data: import("./types").Json;
4543
4707
  floriday_id: string;
@@ -4549,6 +4713,8 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
4549
4713
  Insert: {
4550
4714
  buyer_organization_id?: string | null;
4551
4715
  connection_id: string;
4716
+ controlled_at?: string | null;
4717
+ controlled_by?: string | null;
4552
4718
  created_at?: string;
4553
4719
  data: import("./types").Json;
4554
4720
  floriday_id: string;
@@ -4560,6 +4726,8 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
4560
4726
  Update: {
4561
4727
  buyer_organization_id?: string | null;
4562
4728
  connection_id?: string;
4729
+ controlled_at?: string | null;
4730
+ controlled_by?: string | null;
4563
4731
  created_at?: string;
4564
4732
  data?: import("./types").Json;
4565
4733
  floriday_id?: string;
@@ -4741,9 +4909,8 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
4741
4909
  referencedColumns: ["id"];
4742
4910
  }];
4743
4911
  };
4744
- floriday_trips_cache: {
4912
+ floriday_trade_settings_customers_cache: {
4745
4913
  Row: {
4746
- carrier_organization_id: string | null;
4747
4914
  connection_id: string;
4748
4915
  data: import("./types").Json;
4749
4916
  fetched_at: string;
@@ -4751,21 +4918,61 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
4751
4918
  id: string;
4752
4919
  is_deleted: boolean;
4753
4920
  sequence_number: number;
4754
- status: string | null;
4755
- trip_date: string | null;
4756
4921
  updated_at: string;
4757
4922
  };
4758
4923
  Insert: {
4759
- carrier_organization_id?: string | null;
4760
4924
  connection_id: string;
4761
- data?: import("./types").Json;
4925
+ data: import("./types").Json;
4762
4926
  fetched_at?: string;
4763
4927
  floriday_id: string;
4764
4928
  id?: string;
4765
4929
  is_deleted?: boolean;
4766
4930
  sequence_number?: number;
4767
- status?: string | null;
4768
- trip_date?: string | null;
4931
+ updated_at?: string;
4932
+ };
4933
+ Update: {
4934
+ connection_id?: string;
4935
+ data?: import("./types").Json;
4936
+ fetched_at?: string;
4937
+ floriday_id?: string;
4938
+ id?: string;
4939
+ is_deleted?: boolean;
4940
+ sequence_number?: number;
4941
+ updated_at?: string;
4942
+ };
4943
+ Relationships: [{
4944
+ foreignKeyName: "floriday_trade_settings_customers_cache_connection_id_fkey";
4945
+ columns: ["connection_id"];
4946
+ isOneToOne: false;
4947
+ referencedRelation: "floriday_connections";
4948
+ referencedColumns: ["id"];
4949
+ }];
4950
+ };
4951
+ floriday_trips_cache: {
4952
+ Row: {
4953
+ carrier_organization_id: string | null;
4954
+ connection_id: string;
4955
+ data: import("./types").Json;
4956
+ fetched_at: string;
4957
+ floriday_id: string;
4958
+ id: string;
4959
+ is_deleted: boolean;
4960
+ sequence_number: number;
4961
+ status: string | null;
4962
+ trip_date: string | null;
4963
+ updated_at: string;
4964
+ };
4965
+ Insert: {
4966
+ carrier_organization_id?: string | null;
4967
+ connection_id: string;
4968
+ data?: import("./types").Json;
4969
+ fetched_at?: string;
4970
+ floriday_id: string;
4971
+ id?: string;
4972
+ is_deleted?: boolean;
4973
+ sequence_number?: number;
4974
+ status?: string | null;
4975
+ trip_date?: string | null;
4769
4976
  updated_at?: string;
4770
4977
  };
4771
4978
  Update: {
@@ -5491,6 +5698,222 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
5491
5698
  };
5492
5699
  Relationships: [];
5493
5700
  };
5701
+ logistics_decisions: {
5702
+ Row: {
5703
+ created_at: string;
5704
+ explanation: string | null;
5705
+ id: string;
5706
+ input_snapshot: import("./types").Json;
5707
+ result: import("./types").Json;
5708
+ slot: string;
5709
+ strategy_id: string | null;
5710
+ subject_id: string;
5711
+ subject_type: string;
5712
+ user_id: string;
5713
+ };
5714
+ Insert: {
5715
+ created_at?: string;
5716
+ explanation?: string | null;
5717
+ id?: string;
5718
+ input_snapshot?: import("./types").Json;
5719
+ result?: import("./types").Json;
5720
+ slot: string;
5721
+ strategy_id?: string | null;
5722
+ subject_id: string;
5723
+ subject_type: string;
5724
+ user_id: string;
5725
+ };
5726
+ Update: {
5727
+ created_at?: string;
5728
+ explanation?: string | null;
5729
+ id?: string;
5730
+ input_snapshot?: import("./types").Json;
5731
+ result?: import("./types").Json;
5732
+ slot?: string;
5733
+ strategy_id?: string | null;
5734
+ subject_id?: string;
5735
+ subject_type?: string;
5736
+ user_id?: string;
5737
+ };
5738
+ Relationships: [{
5739
+ foreignKeyName: "logistics_decisions_strategy_id_fkey";
5740
+ columns: ["strategy_id"];
5741
+ isOneToOne: false;
5742
+ referencedRelation: "logistics_strategies";
5743
+ referencedColumns: ["id"];
5744
+ }];
5745
+ };
5746
+ logistics_formulas: {
5747
+ Row: {
5748
+ created_at: string;
5749
+ expression: string;
5750
+ id: string;
5751
+ notes: string | null;
5752
+ slot: string;
5753
+ strategy_id: string;
5754
+ updated_at: string;
5755
+ user_id: string;
5756
+ version: number;
5757
+ };
5758
+ Insert: {
5759
+ created_at?: string;
5760
+ expression?: string;
5761
+ id?: string;
5762
+ notes?: string | null;
5763
+ slot: string;
5764
+ strategy_id: string;
5765
+ updated_at?: string;
5766
+ user_id: string;
5767
+ version?: number;
5768
+ };
5769
+ Update: {
5770
+ created_at?: string;
5771
+ expression?: string;
5772
+ id?: string;
5773
+ notes?: string | null;
5774
+ slot?: string;
5775
+ strategy_id?: string;
5776
+ updated_at?: string;
5777
+ user_id?: string;
5778
+ version?: number;
5779
+ };
5780
+ Relationships: [{
5781
+ foreignKeyName: "logistics_formulas_strategy_id_fkey";
5782
+ columns: ["strategy_id"];
5783
+ isOneToOne: false;
5784
+ referencedRelation: "logistics_strategies";
5785
+ referencedColumns: ["id"];
5786
+ }];
5787
+ };
5788
+ logistics_strategies: {
5789
+ Row: {
5790
+ color: string;
5791
+ created_at: string;
5792
+ description: string | null;
5793
+ id: string;
5794
+ is_active: boolean;
5795
+ name: string;
5796
+ priority: number;
5797
+ updated_at: string;
5798
+ updated_by: string | null;
5799
+ user_id: string;
5800
+ version: number;
5801
+ };
5802
+ Insert: {
5803
+ color?: string;
5804
+ created_at?: string;
5805
+ description?: string | null;
5806
+ id?: string;
5807
+ is_active?: boolean;
5808
+ name: string;
5809
+ priority?: number;
5810
+ updated_at?: string;
5811
+ updated_by?: string | null;
5812
+ user_id: string;
5813
+ version?: number;
5814
+ };
5815
+ Update: {
5816
+ color?: string;
5817
+ created_at?: string;
5818
+ description?: string | null;
5819
+ id?: string;
5820
+ is_active?: boolean;
5821
+ name?: string;
5822
+ priority?: number;
5823
+ updated_at?: string;
5824
+ updated_by?: string | null;
5825
+ user_id?: string;
5826
+ version?: number;
5827
+ };
5828
+ Relationships: [];
5829
+ };
5830
+ logistics_strategy_schedules: {
5831
+ Row: {
5832
+ condition_expression: string | null;
5833
+ created_at: string;
5834
+ end_date: string | null;
5835
+ id: string;
5836
+ is_enabled: boolean;
5837
+ priority: number;
5838
+ rule_type: string;
5839
+ start_date: string | null;
5840
+ strategy_id: string;
5841
+ updated_at: string;
5842
+ user_id: string;
5843
+ };
5844
+ Insert: {
5845
+ condition_expression?: string | null;
5846
+ created_at?: string;
5847
+ end_date?: string | null;
5848
+ id?: string;
5849
+ is_enabled?: boolean;
5850
+ priority?: number;
5851
+ rule_type: string;
5852
+ start_date?: string | null;
5853
+ strategy_id: string;
5854
+ updated_at?: string;
5855
+ user_id: string;
5856
+ };
5857
+ Update: {
5858
+ condition_expression?: string | null;
5859
+ created_at?: string;
5860
+ end_date?: string | null;
5861
+ id?: string;
5862
+ is_enabled?: boolean;
5863
+ priority?: number;
5864
+ rule_type?: string;
5865
+ start_date?: string | null;
5866
+ strategy_id?: string;
5867
+ updated_at?: string;
5868
+ user_id?: string;
5869
+ };
5870
+ Relationships: [{
5871
+ foreignKeyName: "logistics_strategy_schedules_strategy_id_fkey";
5872
+ columns: ["strategy_id"];
5873
+ isOneToOne: false;
5874
+ referencedRelation: "logistics_strategies";
5875
+ referencedColumns: ["id"];
5876
+ }];
5877
+ };
5878
+ logistics_variables: {
5879
+ Row: {
5880
+ created_at: string;
5881
+ default_value: string | null;
5882
+ description: string | null;
5883
+ id: string;
5884
+ is_builtin: boolean;
5885
+ key: string;
5886
+ label: string;
5887
+ updated_at: string;
5888
+ user_id: string;
5889
+ value_type: string;
5890
+ };
5891
+ Insert: {
5892
+ created_at?: string;
5893
+ default_value?: string | null;
5894
+ description?: string | null;
5895
+ id?: string;
5896
+ is_builtin?: boolean;
5897
+ key: string;
5898
+ label: string;
5899
+ updated_at?: string;
5900
+ user_id: string;
5901
+ value_type: string;
5902
+ };
5903
+ Update: {
5904
+ created_at?: string;
5905
+ default_value?: string | null;
5906
+ description?: string | null;
5907
+ id?: string;
5908
+ is_builtin?: boolean;
5909
+ key?: string;
5910
+ label?: string;
5911
+ updated_at?: string;
5912
+ user_id?: string;
5913
+ value_type?: string;
5914
+ };
5915
+ Relationships: [];
5916
+ };
5494
5917
  mailbox_messages: {
5495
5918
  Row: {
5496
5919
  body_html: string | null;
@@ -5886,39 +6309,60 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
5886
6309
  };
5887
6310
  manufacture_products: {
5888
6311
  Row: {
6312
+ aantal_te_produceren: number;
5889
6313
  created_at: string;
5890
6314
  description: string | null;
5891
6315
  id: string;
5892
6316
  is_active: boolean;
6317
+ location_id: string | null;
5893
6318
  name: string;
6319
+ partij_nummer: string | null;
6320
+ photos: import("./types").Json;
5894
6321
  produced_stock: number;
5895
6322
  product_code: string;
5896
6323
  tenant_id: string;
6324
+ unit: string;
5897
6325
  updated_at: string;
5898
6326
  };
5899
6327
  Insert: {
6328
+ aantal_te_produceren?: number;
5900
6329
  created_at?: string;
5901
6330
  description?: string | null;
5902
6331
  id?: string;
5903
6332
  is_active?: boolean;
6333
+ location_id?: string | null;
5904
6334
  name: string;
6335
+ partij_nummer?: string | null;
6336
+ photos?: import("./types").Json;
5905
6337
  produced_stock?: number;
5906
6338
  product_code: string;
5907
6339
  tenant_id: string;
6340
+ unit?: string;
5908
6341
  updated_at?: string;
5909
6342
  };
5910
6343
  Update: {
6344
+ aantal_te_produceren?: number;
5911
6345
  created_at?: string;
5912
6346
  description?: string | null;
5913
6347
  id?: string;
5914
6348
  is_active?: boolean;
6349
+ location_id?: string | null;
5915
6350
  name?: string;
6351
+ partij_nummer?: string | null;
6352
+ photos?: import("./types").Json;
5916
6353
  produced_stock?: number;
5917
6354
  product_code?: string;
5918
6355
  tenant_id?: string;
6356
+ unit?: string;
5919
6357
  updated_at?: string;
5920
6358
  };
5921
- Relationships: [];
6359
+ Relationships: [{
6360
+ foreignKeyName: "manufacture_products_location_id_fkey";
6361
+ columns: ["location_id"];
6362
+ isOneToOne: false;
6363
+ referencedRelation: "locations";
6364
+ referencedColumns: ["id"];
6365
+ }];
5922
6366
  };
5923
6367
  monteurs: {
5924
6368
  Row: {
@@ -6892,6 +7336,105 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
6892
7336
  };
6893
7337
  Relationships: [];
6894
7338
  };
7339
+ order_shipment_items: {
7340
+ Row: {
7341
+ created_at: string;
7342
+ id: string;
7343
+ order_item_id: string;
7344
+ product_id: string | null;
7345
+ product_name: string;
7346
+ quantity: number;
7347
+ shipment_id: string;
7348
+ updated_at: string;
7349
+ };
7350
+ Insert: {
7351
+ created_at?: string;
7352
+ id?: string;
7353
+ order_item_id: string;
7354
+ product_id?: string | null;
7355
+ product_name: string;
7356
+ quantity: number;
7357
+ shipment_id: string;
7358
+ updated_at?: string;
7359
+ };
7360
+ Update: {
7361
+ created_at?: string;
7362
+ id?: string;
7363
+ order_item_id?: string;
7364
+ product_id?: string | null;
7365
+ product_name?: string;
7366
+ quantity?: number;
7367
+ shipment_id?: string;
7368
+ updated_at?: string;
7369
+ };
7370
+ Relationships: [{
7371
+ foreignKeyName: "order_shipment_items_order_item_id_fkey";
7372
+ columns: ["order_item_id"];
7373
+ isOneToOne: false;
7374
+ referencedRelation: "order_items";
7375
+ referencedColumns: ["id"];
7376
+ }, {
7377
+ foreignKeyName: "order_shipment_items_shipment_id_fkey";
7378
+ columns: ["shipment_id"];
7379
+ isOneToOne: false;
7380
+ referencedRelation: "order_shipments";
7381
+ referencedColumns: ["id"];
7382
+ }];
7383
+ };
7384
+ order_shipments: {
7385
+ Row: {
7386
+ carrier_id: string | null;
7387
+ created_at: string;
7388
+ delivery_date: string | null;
7389
+ delivery_location_id: string | null;
7390
+ id: string;
7391
+ notes: string | null;
7392
+ order_id: string;
7393
+ shipment_number: number;
7394
+ shipped_at: string | null;
7395
+ status: string;
7396
+ updated_at: string;
7397
+ };
7398
+ Insert: {
7399
+ carrier_id?: string | null;
7400
+ created_at?: string;
7401
+ delivery_date?: string | null;
7402
+ delivery_location_id?: string | null;
7403
+ id?: string;
7404
+ notes?: string | null;
7405
+ order_id: string;
7406
+ shipment_number: number;
7407
+ shipped_at?: string | null;
7408
+ status?: string;
7409
+ updated_at?: string;
7410
+ };
7411
+ Update: {
7412
+ carrier_id?: string | null;
7413
+ created_at?: string;
7414
+ delivery_date?: string | null;
7415
+ delivery_location_id?: string | null;
7416
+ id?: string;
7417
+ notes?: string | null;
7418
+ order_id?: string;
7419
+ shipment_number?: number;
7420
+ shipped_at?: string | null;
7421
+ status?: string;
7422
+ updated_at?: string;
7423
+ };
7424
+ Relationships: [{
7425
+ foreignKeyName: "order_shipments_carrier_id_fkey";
7426
+ columns: ["carrier_id"];
7427
+ isOneToOne: false;
7428
+ referencedRelation: "carriers";
7429
+ referencedColumns: ["id"];
7430
+ }, {
7431
+ foreignKeyName: "order_shipments_order_id_fkey";
7432
+ columns: ["order_id"];
7433
+ isOneToOne: false;
7434
+ referencedRelation: "orders";
7435
+ referencedColumns: ["id"];
7436
+ }];
7437
+ };
6895
7438
  orders: {
6896
7439
  Row: {
6897
7440
  created_at: string;
@@ -6899,8 +7442,9 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
6899
7442
  customer_id: string | null;
6900
7443
  customer_name: string;
6901
7444
  deleted_at: string | null;
6902
- delivery_date: string;
7445
+ delivery_date: string | null;
6903
7446
  id: string;
7447
+ is_reservation: boolean;
6904
7448
  notes: string | null;
6905
7449
  order_date: string;
6906
7450
  order_number: string;
@@ -6917,8 +7461,9 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
6917
7461
  customer_id?: string | null;
6918
7462
  customer_name?: string;
6919
7463
  deleted_at?: string | null;
6920
- delivery_date: string;
7464
+ delivery_date?: string | null;
6921
7465
  id?: string;
7466
+ is_reservation?: boolean;
6922
7467
  notes?: string | null;
6923
7468
  order_date?: string;
6924
7469
  order_number: string;
@@ -6935,8 +7480,9 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
6935
7480
  customer_id?: string | null;
6936
7481
  customer_name?: string;
6937
7482
  deleted_at?: string | null;
6938
- delivery_date?: string;
7483
+ delivery_date?: string | null;
6939
7484
  id?: string;
7485
+ is_reservation?: boolean;
6940
7486
  notes?: string | null;
6941
7487
  order_date?: string;
6942
7488
  order_number?: string;
@@ -7051,32 +7597,89 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
7051
7597
  color: string;
7052
7598
  created_at: string;
7053
7599
  id: string;
7054
- is_active: boolean;
7055
- name: string;
7600
+ is_active: boolean;
7601
+ name: string;
7602
+ sort_order: number;
7603
+ updated_at: string;
7604
+ };
7605
+ Insert: {
7606
+ automation_type?: string;
7607
+ color?: string;
7608
+ created_at?: string;
7609
+ id?: string;
7610
+ is_active?: boolean;
7611
+ name: string;
7612
+ sort_order?: number;
7613
+ updated_at?: string;
7614
+ };
7615
+ Update: {
7616
+ automation_type?: string;
7617
+ color?: string;
7618
+ created_at?: string;
7619
+ id?: string;
7620
+ is_active?: boolean;
7621
+ name?: string;
7622
+ sort_order?: number;
7623
+ updated_at?: string;
7624
+ };
7625
+ Relationships: [];
7626
+ };
7627
+ product_bom_items: {
7628
+ Row: {
7629
+ component_product_id: string | null;
7630
+ component_trade_item_floriday_id: string | null;
7631
+ created_at: string;
7632
+ id: string;
7633
+ notes: string | null;
7634
+ parent_product_id: string | null;
7635
+ parent_trade_item_floriday_id: string | null;
7636
+ quantity: number;
7056
7637
  sort_order: number;
7638
+ tenant_id: string;
7639
+ unit: string;
7057
7640
  updated_at: string;
7058
7641
  };
7059
7642
  Insert: {
7060
- automation_type?: string;
7061
- color?: string;
7643
+ component_product_id?: string | null;
7644
+ component_trade_item_floriday_id?: string | null;
7062
7645
  created_at?: string;
7063
7646
  id?: string;
7064
- is_active?: boolean;
7065
- name: string;
7647
+ notes?: string | null;
7648
+ parent_product_id?: string | null;
7649
+ parent_trade_item_floriday_id?: string | null;
7650
+ quantity?: number;
7066
7651
  sort_order?: number;
7652
+ tenant_id: string;
7653
+ unit?: string;
7067
7654
  updated_at?: string;
7068
7655
  };
7069
7656
  Update: {
7070
- automation_type?: string;
7071
- color?: string;
7657
+ component_product_id?: string | null;
7658
+ component_trade_item_floriday_id?: string | null;
7072
7659
  created_at?: string;
7073
7660
  id?: string;
7074
- is_active?: boolean;
7075
- name?: string;
7661
+ notes?: string | null;
7662
+ parent_product_id?: string | null;
7663
+ parent_trade_item_floriday_id?: string | null;
7664
+ quantity?: number;
7076
7665
  sort_order?: number;
7666
+ tenant_id?: string;
7667
+ unit?: string;
7077
7668
  updated_at?: string;
7078
7669
  };
7079
- Relationships: [];
7670
+ Relationships: [{
7671
+ foreignKeyName: "product_bom_items_component_product_id_fkey";
7672
+ columns: ["component_product_id"];
7673
+ isOneToOne: false;
7674
+ referencedRelation: "products";
7675
+ referencedColumns: ["id"];
7676
+ }, {
7677
+ foreignKeyName: "product_bom_items_parent_product_id_fkey";
7678
+ columns: ["parent_product_id"];
7679
+ isOneToOne: false;
7680
+ referencedRelation: "products";
7681
+ referencedColumns: ["id"];
7682
+ }];
7080
7683
  };
7081
7684
  product_categories: {
7082
7685
  Row: {
@@ -7183,6 +7786,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
7183
7786
  id: string;
7184
7787
  product_group_id: string;
7185
7788
  quantity: number;
7789
+ sort_order: number;
7186
7790
  trade_item_id: string;
7187
7791
  };
7188
7792
  Insert: {
@@ -7190,6 +7794,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
7190
7794
  id?: string;
7191
7795
  product_group_id: string;
7192
7796
  quantity?: number;
7797
+ sort_order?: number;
7193
7798
  trade_item_id: string;
7194
7799
  };
7195
7800
  Update: {
@@ -7197,6 +7802,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
7197
7802
  id?: string;
7198
7803
  product_group_id?: string;
7199
7804
  quantity?: number;
7805
+ sort_order?: number;
7200
7806
  trade_item_id?: string;
7201
7807
  };
7202
7808
  Relationships: [{
@@ -7211,6 +7817,8 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
7211
7817
  Row: {
7212
7818
  created_at: string;
7213
7819
  description: string | null;
7820
+ head_product_id: string | null;
7821
+ head_trade_item_floriday_id: string | null;
7214
7822
  id: string;
7215
7823
  is_active: boolean;
7216
7824
  name: string;
@@ -7220,6 +7828,8 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
7220
7828
  Insert: {
7221
7829
  created_at?: string;
7222
7830
  description?: string | null;
7831
+ head_product_id?: string | null;
7832
+ head_trade_item_floriday_id?: string | null;
7223
7833
  id?: string;
7224
7834
  is_active?: boolean;
7225
7835
  name: string;
@@ -7229,24 +7839,130 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
7229
7839
  Update: {
7230
7840
  created_at?: string;
7231
7841
  description?: string | null;
7842
+ head_product_id?: string | null;
7843
+ head_trade_item_floriday_id?: string | null;
7232
7844
  id?: string;
7233
7845
  is_active?: boolean;
7234
7846
  name?: string;
7235
7847
  tenant_id?: string;
7236
7848
  updated_at?: string;
7237
7849
  };
7850
+ Relationships: [{
7851
+ foreignKeyName: "product_groups_head_product_id_fkey";
7852
+ columns: ["head_product_id"];
7853
+ isOneToOne: false;
7854
+ referencedRelation: "products";
7855
+ referencedColumns: ["id"];
7856
+ }];
7857
+ };
7858
+ product_load_settings: {
7859
+ Row: {
7860
+ created_at: string;
7861
+ id: string;
7862
+ is_package: boolean;
7863
+ layers_per_load_carrier: number | null;
7864
+ load_carrier: string | null;
7865
+ package_id: string | null;
7866
+ package_label: string | null;
7867
+ packages_per_layer: number | null;
7868
+ product_id: string | null;
7869
+ tenant_id: string;
7870
+ trade_item_floriday_id: string | null;
7871
+ units_per_package: number | null;
7872
+ updated_at: string;
7873
+ };
7874
+ Insert: {
7875
+ created_at?: string;
7876
+ id?: string;
7877
+ is_package?: boolean;
7878
+ layers_per_load_carrier?: number | null;
7879
+ load_carrier?: string | null;
7880
+ package_id?: string | null;
7881
+ package_label?: string | null;
7882
+ packages_per_layer?: number | null;
7883
+ product_id?: string | null;
7884
+ tenant_id: string;
7885
+ trade_item_floriday_id?: string | null;
7886
+ units_per_package?: number | null;
7887
+ updated_at?: string;
7888
+ };
7889
+ Update: {
7890
+ created_at?: string;
7891
+ id?: string;
7892
+ is_package?: boolean;
7893
+ layers_per_load_carrier?: number | null;
7894
+ load_carrier?: string | null;
7895
+ package_id?: string | null;
7896
+ package_label?: string | null;
7897
+ packages_per_layer?: number | null;
7898
+ product_id?: string | null;
7899
+ tenant_id?: string;
7900
+ trade_item_floriday_id?: string | null;
7901
+ units_per_package?: number | null;
7902
+ updated_at?: string;
7903
+ };
7904
+ Relationships: [{
7905
+ foreignKeyName: "product_load_settings_package_id_fkey";
7906
+ columns: ["package_id"];
7907
+ isOneToOne: false;
7908
+ referencedRelation: "packages";
7909
+ referencedColumns: ["id"];
7910
+ }, {
7911
+ foreignKeyName: "product_load_settings_product_id_fkey";
7912
+ columns: ["product_id"];
7913
+ isOneToOne: false;
7914
+ referencedRelation: "products";
7915
+ referencedColumns: ["id"];
7916
+ }];
7917
+ };
7918
+ product_merge_log: {
7919
+ Row: {
7920
+ canonical_product_id: string | null;
7921
+ id: string;
7922
+ merged_at: string;
7923
+ merged_from_id: string;
7924
+ notes: string | null;
7925
+ snapshot: import("./types").Json;
7926
+ source_table: string;
7927
+ status: string;
7928
+ };
7929
+ Insert: {
7930
+ canonical_product_id?: string | null;
7931
+ id?: string;
7932
+ merged_at?: string;
7933
+ merged_from_id: string;
7934
+ notes?: string | null;
7935
+ snapshot?: import("./types").Json;
7936
+ source_table: string;
7937
+ status?: string;
7938
+ };
7939
+ Update: {
7940
+ canonical_product_id?: string | null;
7941
+ id?: string;
7942
+ merged_at?: string;
7943
+ merged_from_id?: string;
7944
+ notes?: string | null;
7945
+ snapshot?: import("./types").Json;
7946
+ source_table?: string;
7947
+ status?: string;
7948
+ };
7238
7949
  Relationships: [];
7239
7950
  };
7240
7951
  products: {
7241
7952
  Row: {
7953
+ article_number: string | null;
7242
7954
  barcode: string | null;
7243
7955
  batch: string;
7244
7956
  crates_per_layer: number;
7245
7957
  created_at: string;
7246
7958
  custom_fields: import("./types").Json;
7959
+ floriday_active: boolean;
7960
+ floriday_payload: import("./types").Json;
7961
+ floriday_trade_item_id: string | null;
7247
7962
  id: string;
7248
7963
  image_url: string | null;
7249
7964
  incoming_quantity: number;
7965
+ is_layer: boolean;
7250
7966
  layers_per_cart: number;
7251
7967
  location: string;
7252
7968
  min_quantity: number;
@@ -7262,14 +7978,19 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
7262
7978
  weight: string | null;
7263
7979
  };
7264
7980
  Insert: {
7981
+ article_number?: string | null;
7265
7982
  barcode?: string | null;
7266
7983
  batch: string;
7267
7984
  crates_per_layer?: number;
7268
7985
  created_at?: string;
7269
7986
  custom_fields?: import("./types").Json;
7987
+ floriday_active?: boolean;
7988
+ floriday_payload?: import("./types").Json;
7989
+ floriday_trade_item_id?: string | null;
7270
7990
  id?: string;
7271
7991
  image_url?: string | null;
7272
7992
  incoming_quantity?: number;
7993
+ is_layer?: boolean;
7273
7994
  layers_per_cart?: number;
7274
7995
  location: string;
7275
7996
  min_quantity?: number;
@@ -7285,14 +8006,19 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
7285
8006
  weight?: string | null;
7286
8007
  };
7287
8008
  Update: {
8009
+ article_number?: string | null;
7288
8010
  barcode?: string | null;
7289
8011
  batch?: string;
7290
8012
  crates_per_layer?: number;
7291
8013
  created_at?: string;
7292
8014
  custom_fields?: import("./types").Json;
8015
+ floriday_active?: boolean;
8016
+ floriday_payload?: import("./types").Json;
8017
+ floriday_trade_item_id?: string | null;
7293
8018
  id?: string;
7294
8019
  image_url?: string | null;
7295
8020
  incoming_quantity?: number;
8021
+ is_layer?: boolean;
7296
8022
  layers_per_cart?: number;
7297
8023
  location?: string;
7298
8024
  min_quantity?: number;
@@ -8198,8 +8924,10 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
8198
8924
  order_id: string | null;
8199
8925
  order_item_id: string | null;
8200
8926
  order_source: string | null;
8927
+ parent_trade_item_key: string | null;
8201
8928
  physical_after: number | null;
8202
8929
  physical_before: number | null;
8930
+ production_batch_id: string | null;
8203
8931
  qty_delta: number;
8204
8932
  reason: string | null;
8205
8933
  reserved_after: number | null;
@@ -8215,8 +8943,10 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
8215
8943
  order_id?: string | null;
8216
8944
  order_item_id?: string | null;
8217
8945
  order_source?: string | null;
8946
+ parent_trade_item_key?: string | null;
8218
8947
  physical_after?: number | null;
8219
8948
  physical_before?: number | null;
8949
+ production_batch_id?: string | null;
8220
8950
  qty_delta: number;
8221
8951
  reason?: string | null;
8222
8952
  reserved_after?: number | null;
@@ -8232,8 +8962,10 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
8232
8962
  order_id?: string | null;
8233
8963
  order_item_id?: string | null;
8234
8964
  order_source?: string | null;
8965
+ parent_trade_item_key?: string | null;
8235
8966
  physical_after?: number | null;
8236
8967
  physical_before?: number | null;
8968
+ production_batch_id?: string | null;
8237
8969
  qty_delta?: number;
8238
8970
  reason?: string | null;
8239
8971
  reserved_after?: number | null;
@@ -8539,6 +9271,48 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
8539
9271
  };
8540
9272
  Relationships: [];
8541
9273
  };
9274
+ trade_item_prices: {
9275
+ Row: {
9276
+ created_at: string;
9277
+ currency: string;
9278
+ id: string;
9279
+ last_push_error: string | null;
9280
+ last_pushed_at: string | null;
9281
+ price_group_id: string | null;
9282
+ price_per_piece: number;
9283
+ supply_line_id: string | null;
9284
+ trade_item_key: string;
9285
+ updated_at: string;
9286
+ user_id: string;
9287
+ };
9288
+ Insert: {
9289
+ created_at?: string;
9290
+ currency?: string;
9291
+ id?: string;
9292
+ last_push_error?: string | null;
9293
+ last_pushed_at?: string | null;
9294
+ price_group_id?: string | null;
9295
+ price_per_piece: number;
9296
+ supply_line_id?: string | null;
9297
+ trade_item_key: string;
9298
+ updated_at?: string;
9299
+ user_id: string;
9300
+ };
9301
+ Update: {
9302
+ created_at?: string;
9303
+ currency?: string;
9304
+ id?: string;
9305
+ last_push_error?: string | null;
9306
+ last_pushed_at?: string | null;
9307
+ price_group_id?: string | null;
9308
+ price_per_piece?: number;
9309
+ supply_line_id?: string | null;
9310
+ trade_item_key?: string;
9311
+ updated_at?: string;
9312
+ user_id?: string;
9313
+ };
9314
+ Relationships: [];
9315
+ };
8542
9316
  trade_item_stock: {
8543
9317
  Row: {
8544
9318
  connection_id: string;
@@ -8692,7 +9466,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
8692
9466
  twinfield_connections: {
8693
9467
  Row: {
8694
9468
  access_token: string | null;
8695
- client_id: string;
9469
+ client_id: string | null;
8696
9470
  client_secret: string | null;
8697
9471
  cluster_uri: string | null;
8698
9472
  company_code: string | null;
@@ -8704,7 +9478,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
8704
9478
  is_active: boolean;
8705
9479
  label: string | null;
8706
9480
  office_code: string | null;
8707
- redirect_uri: string;
9481
+ redirect_uri: string | null;
8708
9482
  refresh_token: string | null;
8709
9483
  token_expires_at: string | null;
8710
9484
  updated_at: string;
@@ -8712,7 +9486,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
8712
9486
  };
8713
9487
  Insert: {
8714
9488
  access_token?: string | null;
8715
- client_id: string;
9489
+ client_id?: string | null;
8716
9490
  client_secret?: string | null;
8717
9491
  cluster_uri?: string | null;
8718
9492
  company_code?: string | null;
@@ -8724,7 +9498,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
8724
9498
  is_active?: boolean;
8725
9499
  label?: string | null;
8726
9500
  office_code?: string | null;
8727
- redirect_uri: string;
9501
+ redirect_uri?: string | null;
8728
9502
  refresh_token?: string | null;
8729
9503
  token_expires_at?: string | null;
8730
9504
  updated_at?: string;
@@ -8732,7 +9506,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
8732
9506
  };
8733
9507
  Update: {
8734
9508
  access_token?: string | null;
8735
- client_id?: string;
9509
+ client_id?: string | null;
8736
9510
  client_secret?: string | null;
8737
9511
  cluster_uri?: string | null;
8738
9512
  company_code?: string | null;
@@ -8744,7 +9518,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
8744
9518
  is_active?: boolean;
8745
9519
  label?: string | null;
8746
9520
  office_code?: string | null;
8747
- redirect_uri?: string;
9521
+ redirect_uri?: string | null;
8748
9522
  refresh_token?: string | null;
8749
9523
  token_expires_at?: string | null;
8750
9524
  updated_at?: string;
@@ -9939,25 +10713,6 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
9939
10713
  };
9940
10714
  Relationships: [];
9941
10715
  };
9942
- floriday_customer_discounts: {
9943
- Row: {
9944
- base_price: number | null;
9945
- buyer_organization_id: string | null;
9946
- currency: string | null;
9947
- discount_type: string | null;
9948
- discount_value: number | null;
9949
- min_quantity: number | null;
9950
- net_price: number | null;
9951
- product_group_id: string | null;
9952
- raw: import("./types").Json | null;
9953
- source: string | null;
9954
- source_id: string | null;
9955
- trade_item_id: string | null;
9956
- valid_from: string | null;
9957
- valid_until: string | null;
9958
- };
9959
- Relationships: [];
9960
- };
9961
10716
  local_customer_discounts: {
9962
10717
  Row: {
9963
10718
  base_price: number | null;
@@ -10261,6 +11016,13 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
10261
11016
  };
10262
11017
  Returns: number;
10263
11018
  };
11019
+ _migrate_rewrite_stock_key: {
11020
+ Args: {
11021
+ _from_key: string;
11022
+ _to_key: string;
11023
+ };
11024
+ Returns: undefined;
11025
+ };
10264
11026
  afh_city_code: {
10265
11027
  Args: {
10266
11028
  _city: string;
@@ -10376,6 +11138,28 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
10376
11138
  Args: never;
10377
11139
  Returns: undefined;
10378
11140
  };
11141
+ consume_bom_for_production: {
11142
+ Args: {
11143
+ p_connection_id: string;
11144
+ p_parent_id: string;
11145
+ p_parent_key: string;
11146
+ p_parent_kind: string;
11147
+ p_quantity: number;
11148
+ p_user_id: string;
11149
+ };
11150
+ Returns: import("./types").Json;
11151
+ } | {
11152
+ Args: {
11153
+ p_batch_id?: string;
11154
+ p_connection_id: string;
11155
+ p_parent_id: string;
11156
+ p_parent_key: string;
11157
+ p_parent_kind: string;
11158
+ p_quantity: number;
11159
+ p_user_id: string;
11160
+ };
11161
+ Returns: import("./types").Json;
11162
+ };
10379
11163
  consume_floriday_rate_limit: {
10380
11164
  Args: {
10381
11165
  p_bucket: string;
@@ -10427,6 +11211,13 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
10427
11211
  table_name: string;
10428
11212
  }[];
10429
11213
  };
11214
+ delete_samenstelling: {
11215
+ Args: {
11216
+ p_parent_id: string;
11217
+ p_parent_kind: string;
11218
+ };
11219
+ Returns: import("./types").Json;
11220
+ };
10430
11221
  dispatch_carrier_signups_sql: {
10431
11222
  Args: {
10432
11223
  _catchup?: string;
@@ -10468,6 +11259,16 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
10468
11259
  status: string;
10469
11260
  }[];
10470
11261
  };
11262
+ email_auth_upsert_connection: {
11263
+ Args: {
11264
+ _account_email: string;
11265
+ _created_by: string;
11266
+ _is_active: boolean;
11267
+ _provider: string;
11268
+ _status: string;
11269
+ };
11270
+ Returns: string;
11271
+ };
10471
11272
  enqueue_cart_replan_if_unlocked: {
10472
11273
  Args: {
10473
11274
  p_order_id: string;
@@ -10587,19 +11388,6 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
10587
11388
  resource: string;
10588
11389
  }[];
10589
11390
  };
10590
- get_floriday_agreements_active: {
10591
- Args: {
10592
- p_on_date?: string;
10593
- };
10594
- Returns: {
10595
- buyer_organization_id: string;
10596
- data: import("./types").Json;
10597
- floriday_id: string;
10598
- status: string;
10599
- valid_from: string;
10600
- valid_until: string;
10601
- }[];
10602
- };
10603
11391
  get_floriday_clock_supplies_window: {
10604
11392
  Args: {
10605
11393
  p_from: string;
@@ -10672,6 +11460,21 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
10672
11460
  minutes_since_success: number;
10673
11461
  }[];
10674
11462
  };
11463
+ get_group_allocation_keys: {
11464
+ Args: {
11465
+ p_product_id: string;
11466
+ };
11467
+ Returns: {
11468
+ k: string;
11469
+ ord: number;
11470
+ }[];
11471
+ };
11472
+ get_group_head_key: {
11473
+ Args: {
11474
+ p_group_id: string;
11475
+ };
11476
+ Returns: string;
11477
+ };
10675
11478
  get_offer_by_link_code: {
10676
11479
  Args: {
10677
11480
  p_code: string;
@@ -10782,6 +11585,32 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
10782
11585
  };
10783
11586
  Returns: undefined;
10784
11587
  };
11588
+ mark_salesorder_controlled: {
11589
+ Args: {
11590
+ p_controlled: boolean;
11591
+ p_floriday_id: string;
11592
+ };
11593
+ Returns: undefined;
11594
+ };
11595
+ mark_shipment_shipped: {
11596
+ Args: {
11597
+ p_shipment_id: string;
11598
+ };
11599
+ Returns: undefined;
11600
+ };
11601
+ merge_products: {
11602
+ Args: {
11603
+ _canonical: string;
11604
+ _loser: string;
11605
+ };
11606
+ Returns: undefined;
11607
+ };
11608
+ next_manufacture_partij: {
11609
+ Args: {
11610
+ _tenant_id: string;
11611
+ };
11612
+ Returns: string;
11613
+ };
10785
11614
  next_order_number: {
10786
11615
  Args: {
10787
11616
  p_prefix: string;
@@ -10851,6 +11680,15 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
10851
11680
  };
10852
11681
  Returns: undefined;
10853
11682
  };
11683
+ pickstation_resolve_delivery_orders: {
11684
+ Args: {
11685
+ p_sales_order_ids: string[];
11686
+ };
11687
+ Returns: {
11688
+ delivery_order_id: string;
11689
+ sales_order_id: string;
11690
+ }[];
11691
+ };
10854
11692
  pickstation_set_cart_status: {
10855
11693
  Args: {
10856
11694
  p_cart_index: number;
@@ -10860,6 +11698,14 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
10860
11698
  };
10861
11699
  Returns: undefined;
10862
11700
  };
11701
+ produce_designed_product: {
11702
+ Args: {
11703
+ p_parent_id: string;
11704
+ p_parent_kind: string;
11705
+ p_quantity: number;
11706
+ };
11707
+ Returns: import("./types").Json;
11708
+ };
10863
11709
  promote_trade_item_key: {
10864
11710
  Args: {
10865
11711
  p_new: string;
@@ -10867,6 +11713,10 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
10867
11713
  };
10868
11714
  Returns: undefined;
10869
11715
  };
11716
+ recompute_all_reserved_stock: {
11717
+ Args: never;
11718
+ Returns: undefined;
11719
+ };
10870
11720
  recompute_order_status: {
10871
11721
  Args: {
10872
11722
  p_order_id: string;
@@ -10916,27 +11766,45 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
10916
11766
  };
10917
11767
  Returns: undefined;
10918
11768
  };
11769
+ resolve_group_allocation: {
11770
+ Args: {
11771
+ _needed: number;
11772
+ _product_group_id: string;
11773
+ };
11774
+ Returns: {
11775
+ allocated: number;
11776
+ trade_item_id: string;
11777
+ }[];
11778
+ };
11779
+ resolve_group_member_stock_key: {
11780
+ Args: {
11781
+ p_trade_item_id: string;
11782
+ };
11783
+ Returns: string;
11784
+ };
10919
11785
  resolve_product_id_for_item: {
10920
11786
  Args: {
10921
11787
  p_product_name: string;
10922
11788
  };
10923
11789
  Returns: string;
10924
11790
  };
10925
- schedule_floriday_additional_services_sync: {
11791
+ resolve_stock_trade_item_key: {
10926
11792
  Args: {
10927
- p_apikey: string;
10928
- p_url: string;
11793
+ p_product_id: string;
10929
11794
  };
10930
- Returns: number;
11795
+ Returns: string;
10931
11796
  };
10932
- schedule_floriday_agreement_calloffs_sync: {
11797
+ reverse_production: {
10933
11798
  Args: {
10934
- p_apikey: string;
10935
- p_url: string;
11799
+ p_connection_id?: string;
11800
+ p_parent_key: string;
11801
+ p_quantity: number;
11802
+ p_reason?: string;
11803
+ p_user_id?: string;
10936
11804
  };
10937
- Returns: number;
11805
+ Returns: import("./types").Json;
10938
11806
  };
10939
- schedule_floriday_agreements_sync: {
11807
+ schedule_floriday_additional_services_sync: {
10940
11808
  Args: {
10941
11809
  p_apikey: string;
10942
11810
  p_url: string;
@@ -11189,6 +12057,10 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
11189
12057
  };
11190
12058
  Returns: number;
11191
12059
  };
12060
+ self_heal_floriday_links: {
12061
+ Args: never;
12062
+ Returns: number;
12063
+ };
11192
12064
  show_limit: {
11193
12065
  Args: never;
11194
12066
  Returns: number;
@@ -11211,6 +12083,12 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
11211
12083
  };
11212
12084
  Returns: undefined;
11213
12085
  };
12086
+ sync_product_group_belading: {
12087
+ Args: {
12088
+ _group_id: string;
12089
+ };
12090
+ Returns: undefined;
12091
+ };
11214
12092
  sync_product_packing_from_floriday_cache: {
11215
12093
  Args: {
11216
12094
  p_floriday_id: string;