@flowselections/layout-maker 1.69.3 → 1.69.8

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 (49) hide show
  1. package/dist-lib/components/AfleverbriefBuilderPage.d.ts.map +1 -1
  2. package/dist-lib/components/AfleverbriefBuilderPage.js +16 -8
  3. package/dist-lib/components/BlokOntwerperPage.d.ts.map +1 -1
  4. package/dist-lib/components/BlokOntwerperPage.js +15 -8
  5. package/dist-lib/components/FormaatOrientatieBar.d.ts +2 -1
  6. package/dist-lib/components/FormaatOrientatieBar.d.ts.map +1 -1
  7. package/dist-lib/components/FormaatOrientatieBar.js +6 -4
  8. package/dist-lib/components/GeladenEtiketTab.d.ts +8 -0
  9. package/dist-lib/components/GeladenEtiketTab.d.ts.map +1 -0
  10. package/dist-lib/components/GeladenEtiketTab.js +34 -0
  11. package/dist-lib/components/PakbonBuilderPage.d.ts.map +1 -1
  12. package/dist-lib/components/PakbonBuilderPage.js +16 -8
  13. package/dist-lib/components/PrintenPage.d.ts +2 -1
  14. package/dist-lib/components/PrintenPage.d.ts.map +1 -1
  15. package/dist-lib/components/PrintenPage.js +5 -2
  16. package/dist-lib/components/ProductiebonBuilderPage.d.ts.map +1 -1
  17. package/dist-lib/components/ProductiebonBuilderPage.js +16 -10
  18. package/dist-lib/components/SysteemLayoutMelding.d.ts +6 -0
  19. package/dist-lib/components/SysteemLayoutMelding.d.ts.map +1 -0
  20. package/dist-lib/components/SysteemLayoutMelding.js +29 -0
  21. package/dist-lib/components/WerkplekkenTab.js +1 -1
  22. package/dist-lib/index.d.ts +1 -0
  23. package/dist-lib/index.d.ts.map +1 -1
  24. package/dist-lib/index.js +1 -0
  25. package/dist-lib/integrations/supabase/types.d.ts +548 -28
  26. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  27. package/dist-lib/lib/htmlPdf.server.d.ts.map +1 -1
  28. package/dist-lib/lib/htmlPdf.server.js +46 -4
  29. package/dist-lib/lib/layoutOpslaan.d.ts +16 -0
  30. package/dist-lib/lib/layoutOpslaan.d.ts.map +1 -0
  31. package/dist-lib/lib/layoutOpslaan.js +56 -0
  32. package/dist-lib/lib/orderData.server.d.ts.map +1 -1
  33. package/dist-lib/lib/orderData.server.js +7 -3
  34. package/dist-lib/lib/pakbonBuilder.d.ts +13 -0
  35. package/dist-lib/lib/pakbonBuilder.d.ts.map +1 -1
  36. package/dist-lib/lib/pakbonBuilder.js +49 -5
  37. package/dist-lib/lib/pakbonHtml.d.ts +2 -0
  38. package/dist-lib/lib/pakbonHtml.d.ts.map +1 -1
  39. package/dist-lib/lib/pakbonHtml.js +35 -7
  40. package/dist-lib/lib/useDocumentData.d.ts +1 -0
  41. package/dist-lib/lib/useDocumentData.d.ts.map +1 -1
  42. package/dist-lib/lib/useDocumentData.js +9 -2
  43. package/dist-lib/lib/versie.generated.d.ts +1 -1
  44. package/dist-lib/lib/versie.generated.js +1 -1
  45. package/dist-lib/lib/werkplekken.d.ts +1 -0
  46. package/dist-lib/lib/werkplekken.d.ts.map +1 -1
  47. package/dist-lib/lib/werkplekken.js +1 -1
  48. package/package.json +1 -1
  49. package/sql/print-schema.sql +43 -0
@@ -7,6 +7,57 @@ export type Database = {
7
7
  };
8
8
  public: {
9
9
  Tables: {
10
+ afh_shell_settings: {
11
+ Row: {
12
+ changed_at: string | null;
13
+ changed_by: string | null;
14
+ created_at: string;
15
+ id: boolean;
16
+ signup_auto_send: boolean;
17
+ };
18
+ Insert: {
19
+ changed_at?: string | null;
20
+ changed_by?: string | null;
21
+ created_at?: string;
22
+ id?: boolean;
23
+ signup_auto_send?: boolean;
24
+ };
25
+ Update: {
26
+ changed_at?: string | null;
27
+ changed_by?: string | null;
28
+ created_at?: string;
29
+ id?: boolean;
30
+ signup_auto_send?: boolean;
31
+ };
32
+ Relationships: [];
33
+ };
34
+ afh_shell_settings_log: {
35
+ Row: {
36
+ changed_at: string;
37
+ changed_by: string | null;
38
+ id: string;
39
+ new_value: Json | null;
40
+ old_value: Json | null;
41
+ setting: string;
42
+ };
43
+ Insert: {
44
+ changed_at?: string;
45
+ changed_by?: string | null;
46
+ id?: string;
47
+ new_value?: Json | null;
48
+ old_value?: Json | null;
49
+ setting: string;
50
+ };
51
+ Update: {
52
+ changed_at?: string;
53
+ changed_by?: string | null;
54
+ id?: string;
55
+ new_value?: Json | null;
56
+ old_value?: Json | null;
57
+ setting?: string;
58
+ };
59
+ Relationships: [];
60
+ };
10
61
  afhandeling_settings: {
11
62
  Row: {
12
63
  auto_print_delivery_note: boolean;
@@ -1313,13 +1364,17 @@ export type Database = {
1313
1364
  carriers: {
1314
1365
  Row: {
1315
1366
  address: string | null;
1367
+ archived_at: string | null;
1368
+ carrier_kind: string | null;
1316
1369
  contact_person: string | null;
1317
1370
  created_at: string;
1318
1371
  delivery_days: number | null;
1372
+ delivery_location_glns: string[];
1319
1373
  delivery_weekdays: number[];
1320
1374
  email: string | null;
1321
1375
  id: string;
1322
1376
  is_default: boolean;
1377
+ is_favorite: boolean;
1323
1378
  name: string;
1324
1379
  notes: string | null;
1325
1380
  phone: string | null;
@@ -1333,17 +1388,21 @@ export type Database = {
1333
1388
  signup_time_2: string | null;
1334
1389
  sort_order: number;
1335
1390
  updated_at: string;
1336
- user_id: string;
1391
+ user_id: string | null;
1337
1392
  };
1338
1393
  Insert: {
1339
1394
  address?: string | null;
1395
+ archived_at?: string | null;
1396
+ carrier_kind?: string | null;
1340
1397
  contact_person?: string | null;
1341
1398
  created_at?: string;
1342
1399
  delivery_days?: number | null;
1400
+ delivery_location_glns?: string[];
1343
1401
  delivery_weekdays?: number[];
1344
1402
  email?: string | null;
1345
1403
  id?: string;
1346
1404
  is_default?: boolean;
1405
+ is_favorite?: boolean;
1347
1406
  name: string;
1348
1407
  notes?: string | null;
1349
1408
  phone?: string | null;
@@ -1357,17 +1416,21 @@ export type Database = {
1357
1416
  signup_time_2?: string | null;
1358
1417
  sort_order?: number;
1359
1418
  updated_at?: string;
1360
- user_id: string;
1419
+ user_id?: string | null;
1361
1420
  };
1362
1421
  Update: {
1363
1422
  address?: string | null;
1423
+ archived_at?: string | null;
1424
+ carrier_kind?: string | null;
1364
1425
  contact_person?: string | null;
1365
1426
  created_at?: string;
1366
1427
  delivery_days?: number | null;
1428
+ delivery_location_glns?: string[];
1367
1429
  delivery_weekdays?: number[];
1368
1430
  email?: string | null;
1369
1431
  id?: string;
1370
1432
  is_default?: boolean;
1433
+ is_favorite?: boolean;
1371
1434
  name?: string;
1372
1435
  notes?: string | null;
1373
1436
  phone?: string | null;
@@ -1381,7 +1444,7 @@ export type Database = {
1381
1444
  signup_time_2?: string | null;
1382
1445
  sort_order?: number;
1383
1446
  updated_at?: string;
1384
- user_id?: string;
1447
+ user_id?: string | null;
1385
1448
  };
1386
1449
  Relationships: [];
1387
1450
  };
@@ -1531,6 +1594,7 @@ export type Database = {
1531
1594
  cart_numbers: {
1532
1595
  Row: {
1533
1596
  assigned_at: string;
1597
+ cart_id: string | null;
1534
1598
  cart_index: number;
1535
1599
  cart_number: string;
1536
1600
  day_seq: number | null;
@@ -1544,6 +1608,7 @@ export type Database = {
1544
1608
  };
1545
1609
  Insert: {
1546
1610
  assigned_at?: string;
1611
+ cart_id?: string | null;
1547
1612
  cart_index: number;
1548
1613
  cart_number: string;
1549
1614
  day_seq?: number | null;
@@ -1557,6 +1622,7 @@ export type Database = {
1557
1622
  };
1558
1623
  Update: {
1559
1624
  assigned_at?: string;
1625
+ cart_id?: string | null;
1560
1626
  cart_index?: number;
1561
1627
  cart_number?: string;
1562
1628
  day_seq?: number | null;
@@ -2651,6 +2717,7 @@ export type Database = {
2651
2717
  custom_fields: Json;
2652
2718
  customer_class: string | null;
2653
2719
  customer_number: string | null;
2720
+ default_carrier_id: string | null;
2654
2721
  discount_days: number | null;
2655
2722
  discount_percentage: number | null;
2656
2723
  discount_surcharge: string;
@@ -2743,6 +2810,7 @@ export type Database = {
2743
2810
  custom_fields?: Json;
2744
2811
  customer_class?: string | null;
2745
2812
  customer_number?: string | null;
2813
+ default_carrier_id?: string | null;
2746
2814
  discount_days?: number | null;
2747
2815
  discount_percentage?: number | null;
2748
2816
  discount_surcharge?: string;
@@ -2835,6 +2903,7 @@ export type Database = {
2835
2903
  custom_fields?: Json;
2836
2904
  customer_class?: string | null;
2837
2905
  customer_number?: string | null;
2906
+ default_carrier_id?: string | null;
2838
2907
  discount_days?: number | null;
2839
2908
  discount_percentage?: number | null;
2840
2909
  discount_surcharge?: string;
@@ -2888,7 +2957,15 @@ export type Database = {
2888
2957
  vat_number?: string | null;
2889
2958
  website?: string | null;
2890
2959
  };
2891
- Relationships: [];
2960
+ Relationships: [
2961
+ {
2962
+ foreignKeyName: "customers_default_carrier_id_fkey";
2963
+ columns: ["default_carrier_id"];
2964
+ isOneToOne: false;
2965
+ referencedRelation: "carriers";
2966
+ referencedColumns: ["id"];
2967
+ }
2968
+ ];
2892
2969
  };
2893
2970
  dashboard_ai_conversations: {
2894
2971
  Row: {
@@ -7276,16 +7353,22 @@ export type Database = {
7276
7353
  connection_id: string;
7277
7354
  created_at: string;
7278
7355
  data: Json;
7356
+ delivery_date_time: string | null;
7279
7357
  fetched_at: string;
7280
7358
  floriday_id: string;
7359
+ has_file: boolean | null;
7281
7360
  id: string;
7282
7361
  is_deleted: boolean;
7362
+ is_handled: boolean | null;
7363
+ last_requested_on: string | null;
7364
+ number_of_copies: number | null;
7283
7365
  quantity: number | null;
7284
7366
  sales_order_id: string | null;
7285
7367
  sequence_number: number;
7286
7368
  should_be_printed: boolean | null;
7287
7369
  status: string | null;
7288
7370
  sticker_height_mm: number | null;
7371
+ sticker_provided_by: string | null;
7289
7372
  sticker_type: string | null;
7290
7373
  sticker_width_mm: number | null;
7291
7374
  trade_item_id: string | null;
@@ -7295,16 +7378,22 @@ export type Database = {
7295
7378
  connection_id: string;
7296
7379
  created_at?: string;
7297
7380
  data?: Json;
7381
+ delivery_date_time?: string | null;
7298
7382
  fetched_at?: string;
7299
7383
  floriday_id: string;
7384
+ has_file?: boolean | null;
7300
7385
  id?: string;
7301
7386
  is_deleted?: boolean;
7387
+ is_handled?: boolean | null;
7388
+ last_requested_on?: string | null;
7389
+ number_of_copies?: number | null;
7302
7390
  quantity?: number | null;
7303
7391
  sales_order_id?: string | null;
7304
7392
  sequence_number?: number;
7305
7393
  should_be_printed?: boolean | null;
7306
7394
  status?: string | null;
7307
7395
  sticker_height_mm?: number | null;
7396
+ sticker_provided_by?: string | null;
7308
7397
  sticker_type?: string | null;
7309
7398
  sticker_width_mm?: number | null;
7310
7399
  trade_item_id?: string | null;
@@ -7314,16 +7403,22 @@ export type Database = {
7314
7403
  connection_id?: string;
7315
7404
  created_at?: string;
7316
7405
  data?: Json;
7406
+ delivery_date_time?: string | null;
7317
7407
  fetched_at?: string;
7318
7408
  floriday_id?: string;
7409
+ has_file?: boolean | null;
7319
7410
  id?: string;
7320
7411
  is_deleted?: boolean;
7412
+ is_handled?: boolean | null;
7413
+ last_requested_on?: string | null;
7414
+ number_of_copies?: number | null;
7321
7415
  quantity?: number | null;
7322
7416
  sales_order_id?: string | null;
7323
7417
  sequence_number?: number;
7324
7418
  should_be_printed?: boolean | null;
7325
7419
  status?: string | null;
7326
7420
  sticker_height_mm?: number | null;
7421
+ sticker_provided_by?: string | null;
7327
7422
  sticker_type?: string | null;
7328
7423
  sticker_width_mm?: number | null;
7329
7424
  trade_item_id?: string | null;
@@ -8206,6 +8301,59 @@ export type Database = {
8206
8301
  };
8207
8302
  Relationships: [];
8208
8303
  };
8304
+ floriday_packing_mismatches: {
8305
+ Row: {
8306
+ api_value: Json | null;
8307
+ cache_is_deleted: boolean;
8308
+ cache_value: Json | null;
8309
+ check_outcome: string;
8310
+ connection_id: string;
8311
+ details: string | null;
8312
+ detected_at: string;
8313
+ entity: string;
8314
+ floriday_id: string;
8315
+ id: string;
8316
+ last_checked_at: string;
8317
+ resolved_at: string | null;
8318
+ };
8319
+ Insert: {
8320
+ api_value?: Json | null;
8321
+ cache_is_deleted?: boolean;
8322
+ cache_value?: Json | null;
8323
+ check_outcome?: string;
8324
+ connection_id: string;
8325
+ details?: string | null;
8326
+ detected_at?: string;
8327
+ entity: string;
8328
+ floriday_id: string;
8329
+ id?: string;
8330
+ last_checked_at?: string;
8331
+ resolved_at?: string | null;
8332
+ };
8333
+ Update: {
8334
+ api_value?: Json | null;
8335
+ cache_is_deleted?: boolean;
8336
+ cache_value?: Json | null;
8337
+ check_outcome?: string;
8338
+ connection_id?: string;
8339
+ details?: string | null;
8340
+ detected_at?: string;
8341
+ entity?: string;
8342
+ floriday_id?: string;
8343
+ id?: string;
8344
+ last_checked_at?: string;
8345
+ resolved_at?: string | null;
8346
+ };
8347
+ Relationships: [
8348
+ {
8349
+ foreignKeyName: "floriday_packing_mismatches_connection_id_fkey";
8350
+ columns: ["connection_id"];
8351
+ isOneToOne: false;
8352
+ referencedRelation: "floriday_connections";
8353
+ referencedColumns: ["id"];
8354
+ }
8355
+ ];
8356
+ };
8209
8357
  floriday_packings_cache: {
8210
8358
  Row: {
8211
8359
  connection_id: string;
@@ -12149,6 +12297,36 @@ export type Database = {
12149
12297
  };
12150
12298
  Relationships: [];
12151
12299
  };
12300
+ logistics_belading_bevestigingen: {
12301
+ Row: {
12302
+ bevestigd_door: string | null;
12303
+ bevestigd_op: string;
12304
+ created_at: string;
12305
+ id: string;
12306
+ order_id: string;
12307
+ redenen: string[];
12308
+ verpakking_sleutel: string;
12309
+ };
12310
+ Insert: {
12311
+ bevestigd_door?: string | null;
12312
+ bevestigd_op?: string;
12313
+ created_at?: string;
12314
+ id?: string;
12315
+ order_id: string;
12316
+ redenen?: string[];
12317
+ verpakking_sleutel: string;
12318
+ };
12319
+ Update: {
12320
+ bevestigd_door?: string | null;
12321
+ bevestigd_op?: string;
12322
+ created_at?: string;
12323
+ id?: string;
12324
+ order_id?: string;
12325
+ redenen?: string[];
12326
+ verpakking_sleutel?: string;
12327
+ };
12328
+ Relationships: [];
12329
+ };
12152
12330
  logistics_capacity_alerts: {
12153
12331
  Row: {
12154
12332
  available_minutes: number;
@@ -17519,60 +17697,72 @@ export type Database = {
17519
17697
  created_at: string;
17520
17698
  id: string;
17521
17699
  layers_per_cart: number | null;
17700
+ load_carrier_type: string | null;
17522
17701
  needs_sticker: boolean;
17523
17702
  order_id: string;
17524
17703
  packing_locked_at: string | null;
17525
17704
  packing_locked_by: string | null;
17705
+ packing_source: string | null;
17526
17706
  plants_per_crate: number | null;
17527
17707
  product_id: string | null;
17528
17708
  product_name: string;
17529
17709
  quantity: number;
17710
+ quantity_crates: number | null;
17530
17711
  quarantine_reason: string | null;
17531
17712
  quarantined_at: string | null;
17532
17713
  quarantined_into_order_id: string | null;
17533
17714
  source_line_key: string | null;
17534
17715
  unit: string;
17535
17716
  unit_price: number | null;
17717
+ vbn_package_code: string | null;
17536
17718
  };
17537
17719
  Insert: {
17538
17720
  crates_per_layer?: number | null;
17539
17721
  created_at?: string;
17540
17722
  id?: string;
17541
17723
  layers_per_cart?: number | null;
17724
+ load_carrier_type?: string | null;
17542
17725
  needs_sticker?: boolean;
17543
17726
  order_id: string;
17544
17727
  packing_locked_at?: string | null;
17545
17728
  packing_locked_by?: string | null;
17729
+ packing_source?: string | null;
17546
17730
  plants_per_crate?: number | null;
17547
17731
  product_id?: string | null;
17548
17732
  product_name: string;
17549
17733
  quantity?: number;
17734
+ quantity_crates?: number | null;
17550
17735
  quarantine_reason?: string | null;
17551
17736
  quarantined_at?: string | null;
17552
17737
  quarantined_into_order_id?: string | null;
17553
17738
  source_line_key?: string | null;
17554
17739
  unit?: string;
17555
17740
  unit_price?: number | null;
17741
+ vbn_package_code?: string | null;
17556
17742
  };
17557
17743
  Update: {
17558
17744
  crates_per_layer?: number | null;
17559
17745
  created_at?: string;
17560
17746
  id?: string;
17561
17747
  layers_per_cart?: number | null;
17748
+ load_carrier_type?: string | null;
17562
17749
  needs_sticker?: boolean;
17563
17750
  order_id?: string;
17564
17751
  packing_locked_at?: string | null;
17565
17752
  packing_locked_by?: string | null;
17753
+ packing_source?: string | null;
17566
17754
  plants_per_crate?: number | null;
17567
17755
  product_id?: string | null;
17568
17756
  product_name?: string;
17569
17757
  quantity?: number;
17758
+ quantity_crates?: number | null;
17570
17759
  quarantine_reason?: string | null;
17571
17760
  quarantined_at?: string | null;
17572
17761
  quarantined_into_order_id?: string | null;
17573
17762
  source_line_key?: string | null;
17574
17763
  unit?: string;
17575
17764
  unit_price?: number | null;
17765
+ vbn_package_code?: string | null;
17576
17766
  };
17577
17767
  Relationships: [
17578
17768
  {
@@ -21442,6 +21632,85 @@ export type Database = {
21442
21632
  };
21443
21633
  Relationships: [];
21444
21634
  };
21635
+ product_packings: {
21636
+ Row: {
21637
+ created_at: string;
21638
+ custom_package_id: string | null;
21639
+ customer_organization_ids: string[];
21640
+ floriday_packing_id: string | null;
21641
+ fust_type_id: string | null;
21642
+ id: string;
21643
+ is_primary: boolean;
21644
+ layers_per_load_carrier: number | null;
21645
+ load_carrier: string | null;
21646
+ packages_per_layer: number | null;
21647
+ pieces_per_package: number | null;
21648
+ product_id: string;
21649
+ sort_order: number;
21650
+ source: string;
21651
+ updated_at: string;
21652
+ vbn_package_code: number | null;
21653
+ };
21654
+ Insert: {
21655
+ created_at?: string;
21656
+ custom_package_id?: string | null;
21657
+ customer_organization_ids?: string[];
21658
+ floriday_packing_id?: string | null;
21659
+ fust_type_id?: string | null;
21660
+ id?: string;
21661
+ is_primary?: boolean;
21662
+ layers_per_load_carrier?: number | null;
21663
+ load_carrier?: string | null;
21664
+ packages_per_layer?: number | null;
21665
+ pieces_per_package?: number | null;
21666
+ product_id: string;
21667
+ sort_order?: number;
21668
+ source?: string;
21669
+ updated_at?: string;
21670
+ vbn_package_code?: number | null;
21671
+ };
21672
+ Update: {
21673
+ created_at?: string;
21674
+ custom_package_id?: string | null;
21675
+ customer_organization_ids?: string[];
21676
+ floriday_packing_id?: string | null;
21677
+ fust_type_id?: string | null;
21678
+ id?: string;
21679
+ is_primary?: boolean;
21680
+ layers_per_load_carrier?: number | null;
21681
+ load_carrier?: string | null;
21682
+ packages_per_layer?: number | null;
21683
+ pieces_per_package?: number | null;
21684
+ product_id?: string;
21685
+ sort_order?: number;
21686
+ source?: string;
21687
+ updated_at?: string;
21688
+ vbn_package_code?: number | null;
21689
+ };
21690
+ Relationships: [
21691
+ {
21692
+ foreignKeyName: "product_packings_fust_type_id_fkey";
21693
+ columns: ["fust_type_id"];
21694
+ isOneToOne: false;
21695
+ referencedRelation: "fust_types";
21696
+ referencedColumns: ["id"];
21697
+ },
21698
+ {
21699
+ foreignKeyName: "product_packings_product_id_fkey";
21700
+ columns: ["product_id"];
21701
+ isOneToOne: false;
21702
+ referencedRelation: "logistics_product_dimensions";
21703
+ referencedColumns: ["product_id"];
21704
+ },
21705
+ {
21706
+ foreignKeyName: "product_packings_product_id_fkey";
21707
+ columns: ["product_id"];
21708
+ isOneToOne: false;
21709
+ referencedRelation: "products";
21710
+ referencedColumns: ["id"];
21711
+ }
21712
+ ];
21713
+ };
21445
21714
  product_suppliers: {
21446
21715
  Row: {
21447
21716
  created_at: string;
@@ -24617,16 +24886,56 @@ export type Database = {
24617
24886
  }
24618
24887
  ];
24619
24888
  };
24889
+ twinfield_connection_label_log: {
24890
+ Row: {
24891
+ changed_at: string;
24892
+ changed_by: string | null;
24893
+ changed_by_role: string | null;
24894
+ connection_id: string;
24895
+ field: string;
24896
+ id: string;
24897
+ new_value: string | null;
24898
+ note: string | null;
24899
+ office_code: string | null;
24900
+ old_value: string | null;
24901
+ };
24902
+ Insert: {
24903
+ changed_at?: string;
24904
+ changed_by?: string | null;
24905
+ changed_by_role?: string | null;
24906
+ connection_id: string;
24907
+ field: string;
24908
+ id?: string;
24909
+ new_value?: string | null;
24910
+ note?: string | null;
24911
+ office_code?: string | null;
24912
+ old_value?: string | null;
24913
+ };
24914
+ Update: {
24915
+ changed_at?: string;
24916
+ changed_by?: string | null;
24917
+ changed_by_role?: string | null;
24918
+ connection_id?: string;
24919
+ field?: string;
24920
+ id?: string;
24921
+ new_value?: string | null;
24922
+ note?: string | null;
24923
+ office_code?: string | null;
24924
+ old_value?: string | null;
24925
+ };
24926
+ Relationships: [];
24927
+ };
24620
24928
  twinfield_connections: {
24621
24929
  Row: {
24622
24930
  account_key: string | null;
24931
+ central_environment: string | null;
24623
24932
  cluster_uri: string | null;
24624
24933
  company_code: string | null;
24625
24934
  company_name: string | null;
24626
24935
  connected_at: string | null;
24627
24936
  created_at: string;
24628
24937
  disconnected_at: string | null;
24629
- environment: string;
24938
+ environment: string | null;
24630
24939
  granted_scopes: string[] | null;
24631
24940
  id: string;
24632
24941
  initial_sync_completed_at: string | null;
@@ -24635,8 +24944,12 @@ export type Database = {
24635
24944
  initial_sync_started_at: string | null;
24636
24945
  is_active: boolean;
24637
24946
  label: string | null;
24947
+ label_set_at: string | null;
24948
+ label_set_by: string | null;
24949
+ label_source: string | null;
24638
24950
  missing_scopes: string[] | null;
24639
24951
  office_code: string | null;
24952
+ organisation_code: string | null;
24640
24953
  redirect_uri: string | null;
24641
24954
  scope_checked_at: string | null;
24642
24955
  scope_state: string | null;
@@ -24650,13 +24963,14 @@ export type Database = {
24650
24963
  };
24651
24964
  Insert: {
24652
24965
  account_key?: string | null;
24966
+ central_environment?: string | null;
24653
24967
  cluster_uri?: string | null;
24654
24968
  company_code?: string | null;
24655
24969
  company_name?: string | null;
24656
24970
  connected_at?: string | null;
24657
24971
  created_at?: string;
24658
24972
  disconnected_at?: string | null;
24659
- environment: string;
24973
+ environment?: string | null;
24660
24974
  granted_scopes?: string[] | null;
24661
24975
  id?: string;
24662
24976
  initial_sync_completed_at?: string | null;
@@ -24665,8 +24979,12 @@ export type Database = {
24665
24979
  initial_sync_started_at?: string | null;
24666
24980
  is_active?: boolean;
24667
24981
  label?: string | null;
24982
+ label_set_at?: string | null;
24983
+ label_set_by?: string | null;
24984
+ label_source?: string | null;
24668
24985
  missing_scopes?: string[] | null;
24669
24986
  office_code?: string | null;
24987
+ organisation_code?: string | null;
24670
24988
  redirect_uri?: string | null;
24671
24989
  scope_checked_at?: string | null;
24672
24990
  scope_state?: string | null;
@@ -24680,13 +24998,14 @@ export type Database = {
24680
24998
  };
24681
24999
  Update: {
24682
25000
  account_key?: string | null;
25001
+ central_environment?: string | null;
24683
25002
  cluster_uri?: string | null;
24684
25003
  company_code?: string | null;
24685
25004
  company_name?: string | null;
24686
25005
  connected_at?: string | null;
24687
25006
  created_at?: string;
24688
25007
  disconnected_at?: string | null;
24689
- environment?: string;
25008
+ environment?: string | null;
24690
25009
  granted_scopes?: string[] | null;
24691
25010
  id?: string;
24692
25011
  initial_sync_completed_at?: string | null;
@@ -24695,8 +25014,12 @@ export type Database = {
24695
25014
  initial_sync_started_at?: string | null;
24696
25015
  is_active?: boolean;
24697
25016
  label?: string | null;
25017
+ label_set_at?: string | null;
25018
+ label_set_by?: string | null;
25019
+ label_source?: string | null;
24698
25020
  missing_scopes?: string[] | null;
24699
25021
  office_code?: string | null;
25022
+ organisation_code?: string | null;
24700
25023
  redirect_uri?: string | null;
24701
25024
  scope_checked_at?: string | null;
24702
25025
  scope_state?: string | null;
@@ -25636,7 +25959,7 @@ export type Database = {
25636
25959
  };
25637
25960
  twinfield_settings: {
25638
25961
  Row: {
25639
- active_environment: string;
25962
+ active_environment: string | null;
25640
25963
  cron_registered_at: string | null;
25641
25964
  cron_registration_error: string | null;
25642
25965
  cron_schedules: Json;
@@ -25646,7 +25969,7 @@ export type Database = {
25646
25969
  updated_at: string;
25647
25970
  };
25648
25971
  Insert: {
25649
- active_environment?: string;
25972
+ active_environment?: string | null;
25650
25973
  cron_registered_at?: string | null;
25651
25974
  cron_registration_error?: string | null;
25652
25975
  cron_schedules?: Json;
@@ -25656,7 +25979,7 @@ export type Database = {
25656
25979
  updated_at?: string;
25657
25980
  };
25658
25981
  Update: {
25659
- active_environment?: string;
25982
+ active_environment?: string | null;
25660
25983
  cron_registered_at?: string | null;
25661
25984
  cron_registration_error?: string | null;
25662
25985
  cron_schedules?: Json;
@@ -29572,6 +29895,16 @@ export type Database = {
29572
29895
  Args: never;
29573
29896
  Returns: boolean;
29574
29897
  };
29898
+ afh_can_manage_carriers: {
29899
+ Args: {
29900
+ p_user: string;
29901
+ };
29902
+ Returns: boolean;
29903
+ };
29904
+ afh_carrier_managers_count: {
29905
+ Args: never;
29906
+ Returns: number;
29907
+ };
29575
29908
  afh_city_code: {
29576
29909
  Args: {
29577
29910
  _city: string;
@@ -29622,6 +29955,19 @@ export type Database = {
29622
29955
  };
29623
29956
  Returns: Json;
29624
29957
  };
29958
+ afh_resolve_cart_id: {
29959
+ Args: {
29960
+ p_cart_index: number;
29961
+ p_given: string;
29962
+ p_order: string;
29963
+ p_source: string;
29964
+ };
29965
+ Returns: string;
29966
+ };
29967
+ afh_signup_auto_send_on: {
29968
+ Args: never;
29969
+ Returns: boolean;
29970
+ };
29625
29971
  afh_signup_config: {
29626
29972
  Args: never;
29627
29973
  Returns: Json;
@@ -30453,6 +30799,8 @@ export type Database = {
30453
30799
  cart_index: number;
30454
30800
  cart_number: string;
30455
30801
  cart_number_id: string;
30802
+ country_code: string;
30803
+ crates_on_cart: number;
30456
30804
  order_id: string;
30457
30805
  order_number: string;
30458
30806
  order_source: string;
@@ -30846,6 +31194,14 @@ export type Database = {
30846
31194
  Args: never;
30847
31195
  Returns: Json;
30848
31196
  };
31197
+ floriday_background_jobs_status: {
31198
+ Args: never;
31199
+ Returns: {
31200
+ active: boolean;
31201
+ jobname: string;
31202
+ schedule: string;
31203
+ }[];
31204
+ };
30849
31205
  floriday_capture_stock_snapshot: {
30850
31206
  Args: never;
30851
31207
  Returns: number;
@@ -30962,6 +31318,10 @@ export type Database = {
30962
31318
  };
30963
31319
  Returns: Json;
30964
31320
  };
31321
+ floriday_legacy_packing_sync_present: {
31322
+ Args: never;
31323
+ Returns: Json;
31324
+ };
30965
31325
  floriday_make_erp_leading: {
30966
31326
  Args: {
30967
31327
  p_connection_id: string;
@@ -32268,6 +32628,14 @@ export type Database = {
32268
32628
  Args: never;
32269
32629
  Returns: number;
32270
32630
  };
32631
+ logistics_belading_bevestig: {
32632
+ Args: {
32633
+ p_order_id: string;
32634
+ p_redenen?: string[];
32635
+ p_sleutel: string;
32636
+ };
32637
+ Returns: Json;
32638
+ };
32271
32639
  logistics_belading_verstuurder: {
32272
32640
  Args: never;
32273
32641
  Returns: string;
@@ -32654,6 +33022,16 @@ export type Database = {
32654
33022
  order_uuid: string;
32655
33023
  }[];
32656
33024
  };
33025
+ logistics_cart_seq_dubbel: {
33026
+ Args: {
33027
+ p_order_uuid?: string;
33028
+ };
33029
+ Returns: {
33030
+ cart_ids: string[];
33031
+ cart_index: number;
33032
+ order_uuid: string;
33033
+ }[];
33034
+ };
32657
33035
  logistics_cart_slip_plan: {
32658
33036
  Args: {
32659
33037
  p_order_id: string;
@@ -33946,6 +34324,18 @@ export type Database = {
33946
34324
  };
33947
34325
  Returns: Json;
33948
34326
  };
34327
+ logistics_own_traysticker_payload: {
34328
+ Args: {
34329
+ p_id: string;
34330
+ };
34331
+ Returns: Json;
34332
+ };
34333
+ logistics_own_traysticker_sync: {
34334
+ Args: {
34335
+ p_limit?: number;
34336
+ };
34337
+ Returns: Json;
34338
+ };
33949
34339
  logistics_packing_autofix: {
33950
34340
  Args: {
33951
34341
  p_limit?: number;
@@ -34246,6 +34636,15 @@ export type Database = {
34246
34636
  Args: never;
34247
34637
  Returns: number;
34248
34638
  };
34639
+ logistics_plan_queue_dubbel: {
34640
+ Args: never;
34641
+ Returns: {
34642
+ nieuwste: string;
34643
+ open_opdrachten: number;
34644
+ order_id: string;
34645
+ oudste: string;
34646
+ }[];
34647
+ };
34249
34648
  logistics_plan_queue_list: {
34250
34649
  Args: {
34251
34650
  p_limit?: number;
@@ -34287,6 +34686,13 @@ export type Database = {
34287
34686
  };
34288
34687
  Returns: number;
34289
34688
  };
34689
+ logistics_plan_retry_later: {
34690
+ Args: {
34691
+ p_id: string;
34692
+ p_seconds?: number;
34693
+ };
34694
+ Returns: undefined;
34695
+ };
34290
34696
  logistics_plan_setting: {
34291
34697
  Args: {
34292
34698
  p_default: number;
@@ -35321,6 +35727,15 @@ export type Database = {
35321
35727
  };
35322
35728
  Returns: Json;
35323
35729
  };
35730
+ logistics_tray_plants: {
35731
+ Args: {
35732
+ p_fust: number;
35733
+ p_fusten: number;
35734
+ p_ppc: number;
35735
+ p_regel_totaal: number;
35736
+ };
35737
+ Returns: number;
35738
+ };
35324
35739
  logistics_try_uuid: {
35325
35740
  Args: {
35326
35741
  p: string;
@@ -36698,6 +37113,34 @@ export type Database = {
36698
37113
  };
36699
37114
  Returns: Record<string, unknown>;
36700
37115
  };
37116
+ product_packings_derive: {
37117
+ Args: {
37118
+ p_product_id: string;
37119
+ };
37120
+ Returns: undefined;
37121
+ };
37122
+ product_packings_replace: {
37123
+ Args: {
37124
+ p_packings: Json;
37125
+ p_product_id: string;
37126
+ p_source: string;
37127
+ };
37128
+ Returns: number;
37129
+ };
37130
+ product_packings_sync_from_floriday: {
37131
+ Args: {
37132
+ p_connection_id: string;
37133
+ p_only_existing?: boolean;
37134
+ p_product_ids: string[];
37135
+ };
37136
+ Returns: Json;
37137
+ };
37138
+ product_primary_pieces: {
37139
+ Args: {
37140
+ p_product_id: string;
37141
+ };
37142
+ Returns: number;
37143
+ };
36701
37144
  product_set_depth_above: {
36702
37145
  Args: {
36703
37146
  p_path?: string[];
@@ -37921,12 +38364,6 @@ export type Database = {
37921
38364
  Args: never;
37922
38365
  Returns: undefined;
37923
38366
  };
37924
- sync_cached_packing_from_product: {
37925
- Args: {
37926
- p_product_id: string;
37927
- };
37928
- Returns: undefined;
37929
- };
37930
38367
  sync_floriday_prices_into_price_groups: {
37931
38368
  Args: never;
37932
38369
  Returns: number;
@@ -37937,12 +38374,6 @@ export type Database = {
37937
38374
  };
37938
38375
  Returns: undefined;
37939
38376
  };
37940
- sync_order_cart_item_packing_from_product: {
37941
- Args: {
37942
- p_product_id: string;
37943
- };
37944
- Returns: undefined;
37945
- };
37946
38377
  sync_order_item_fusten: {
37947
38378
  Args: {
37948
38379
  _order_item_id: string;
@@ -37955,12 +38386,6 @@ export type Database = {
37955
38386
  };
37956
38387
  Returns: undefined;
37957
38388
  };
37958
- sync_product_packing_from_floriday_cache: {
37959
- Args: {
37960
- p_floriday_id: string;
37961
- };
37962
- Returns: undefined;
37963
- };
37964
38389
  sync_sick_time_off: {
37965
38390
  Args: {
37966
38391
  _period_id: string;
@@ -37991,6 +38416,15 @@ export type Database = {
37991
38416
  };
37992
38417
  Returns: boolean;
37993
38418
  };
38419
+ twinfield_auth_install_check: {
38420
+ Args: never;
38421
+ Returns: {
38422
+ object_kind: string;
38423
+ object_name: string;
38424
+ present: boolean;
38425
+ schema_version: string;
38426
+ }[];
38427
+ };
37994
38428
  twinfield_cancel_queue_item: {
37995
38429
  Args: {
37996
38430
  p_id: string;
@@ -38000,9 +38434,30 @@ export type Database = {
38000
38434
  twinfield_connection_offices: {
38001
38435
  Args: never;
38002
38436
  Returns: {
38437
+ company_name: string;
38438
+ connection_id: string;
38439
+ environment: string;
38440
+ in_shell_omgeving: boolean;
38441
+ is_active: boolean;
38442
+ label_source: string;
38443
+ office_code: string;
38444
+ }[];
38445
+ };
38446
+ twinfield_connection_usage: {
38447
+ Args: never;
38448
+ Returns: {
38449
+ archived: boolean;
38450
+ company_name: string;
38451
+ connected_at: string;
38003
38452
  connection_id: string;
38453
+ environment: string;
38454
+ gebruikt_door_facturatie: boolean;
38455
+ in_shell_omgeving: boolean;
38004
38456
  is_active: boolean;
38457
+ label_source: string;
38458
+ leest: boolean;
38005
38459
  office_code: string;
38460
+ user_id: string;
38006
38461
  }[];
38007
38462
  };
38008
38463
  twinfield_cron_lock_acquire: {
@@ -38050,10 +38505,24 @@ export type Database = {
38050
38505
  Args: never;
38051
38506
  Returns: boolean;
38052
38507
  };
38508
+ twinfield_mark_label_pending: {
38509
+ Args: {
38510
+ p_connection_id: string;
38511
+ };
38512
+ Returns: boolean;
38513
+ };
38053
38514
  twinfield_prune_push_queue: {
38054
38515
  Args: never;
38055
38516
  Returns: number;
38056
38517
  };
38518
+ twinfield_record_central_facts: {
38519
+ Args: {
38520
+ p_central_environment: string;
38521
+ p_connection_id: string;
38522
+ p_organisation_code: string;
38523
+ };
38524
+ Returns: Json;
38525
+ };
38057
38526
  twinfield_register_cron: {
38058
38527
  Args: {
38059
38528
  apikey?: string;
@@ -38061,6 +38530,14 @@ export type Database = {
38061
38530
  };
38062
38531
  Returns: Json;
38063
38532
  };
38533
+ twinfield_set_connection_label: {
38534
+ Args: {
38535
+ p_also_shell?: boolean;
38536
+ p_connection_id: string;
38537
+ p_environment: string;
38538
+ };
38539
+ Returns: Json;
38540
+ };
38064
38541
  twinfield_set_write_enabled: {
38065
38542
  Args: {
38066
38543
  p_connection_id: string;
@@ -38642,6 +39119,49 @@ export type Database = {
38642
39119
  };
38643
39120
  Returns: Json;
38644
39121
  };
39122
+ verkoop_insert_manual_order: {
39123
+ Args: {
39124
+ p_idempotency_key: string;
39125
+ p_items: Json;
39126
+ p_order: Json;
39127
+ };
39128
+ Returns: Json;
39129
+ };
39130
+ verkoop_packing_drift_apply: {
39131
+ Args: {
39132
+ p_order_ids: string[];
39133
+ };
39134
+ Returns: {
39135
+ lines_updated: number;
39136
+ order_id: string;
39137
+ order_number: string;
39138
+ replan_event: string;
39139
+ }[];
39140
+ };
39141
+ verkoop_packing_drift_report: {
39142
+ Args: never;
39143
+ Returns: {
39144
+ afgesloten: boolean;
39145
+ cache_match: string;
39146
+ cur_crates_per_layer: number;
39147
+ cur_layers_per_cart: number;
39148
+ cur_load_carrier_type: string;
39149
+ cur_packing_source: string;
39150
+ cur_plants_per_crate: number;
39151
+ cur_vbn_package_code: string;
39152
+ fd_crates_per_layer: number;
39153
+ fd_layers_per_cart: number;
39154
+ fd_load_carrier_type: string;
39155
+ fd_plants_per_crate: number;
39156
+ fd_vbn_package_code: string;
39157
+ order_id: string;
39158
+ order_item_id: string;
39159
+ order_number: string;
39160
+ order_status: string;
39161
+ sales_order_id: string;
39162
+ vastgezet: boolean;
39163
+ }[];
39164
+ };
38645
39165
  vervang_printer: {
38646
39166
  Args: {
38647
39167
  _nieuw: string;