@flowselections/mailbox-orders 1.0.36 → 1.0.39

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.
@@ -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;
@@ -14188,6 +14366,7 @@ export type Database = {
14188
14366
  bron_id: string;
14189
14367
  cart_id: string | null;
14190
14368
  created_at: string;
14369
+ eigen_sticker_id: string | null;
14191
14370
  fulfillment_order_id: string | null;
14192
14371
  handled_at: string | null;
14193
14372
  handled_error: string | null;
@@ -14214,6 +14393,7 @@ export type Database = {
14214
14393
  bron_id: string;
14215
14394
  cart_id?: string | null;
14216
14395
  created_at?: string;
14396
+ eigen_sticker_id?: string | null;
14217
14397
  fulfillment_order_id?: string | null;
14218
14398
  handled_at?: string | null;
14219
14399
  handled_error?: string | null;
@@ -14240,6 +14420,7 @@ export type Database = {
14240
14420
  bron_id?: string;
14241
14421
  cart_id?: string | null;
14242
14422
  created_at?: string;
14423
+ eigen_sticker_id?: string | null;
14243
14424
  fulfillment_order_id?: string | null;
14244
14425
  handled_at?: string | null;
14245
14426
  handled_error?: string | null;
@@ -17516,60 +17697,72 @@ export type Database = {
17516
17697
  created_at: string;
17517
17698
  id: string;
17518
17699
  layers_per_cart: number | null;
17700
+ load_carrier_type: string | null;
17519
17701
  needs_sticker: boolean;
17520
17702
  order_id: string;
17521
17703
  packing_locked_at: string | null;
17522
17704
  packing_locked_by: string | null;
17705
+ packing_source: string | null;
17523
17706
  plants_per_crate: number | null;
17524
17707
  product_id: string | null;
17525
17708
  product_name: string;
17526
17709
  quantity: number;
17710
+ quantity_crates: number | null;
17527
17711
  quarantine_reason: string | null;
17528
17712
  quarantined_at: string | null;
17529
17713
  quarantined_into_order_id: string | null;
17530
17714
  source_line_key: string | null;
17531
17715
  unit: string;
17532
17716
  unit_price: number | null;
17717
+ vbn_package_code: string | null;
17533
17718
  };
17534
17719
  Insert: {
17535
17720
  crates_per_layer?: number | null;
17536
17721
  created_at?: string;
17537
17722
  id?: string;
17538
17723
  layers_per_cart?: number | null;
17724
+ load_carrier_type?: string | null;
17539
17725
  needs_sticker?: boolean;
17540
17726
  order_id: string;
17541
17727
  packing_locked_at?: string | null;
17542
17728
  packing_locked_by?: string | null;
17729
+ packing_source?: string | null;
17543
17730
  plants_per_crate?: number | null;
17544
17731
  product_id?: string | null;
17545
17732
  product_name: string;
17546
17733
  quantity?: number;
17734
+ quantity_crates?: number | null;
17547
17735
  quarantine_reason?: string | null;
17548
17736
  quarantined_at?: string | null;
17549
17737
  quarantined_into_order_id?: string | null;
17550
17738
  source_line_key?: string | null;
17551
17739
  unit?: string;
17552
17740
  unit_price?: number | null;
17741
+ vbn_package_code?: string | null;
17553
17742
  };
17554
17743
  Update: {
17555
17744
  crates_per_layer?: number | null;
17556
17745
  created_at?: string;
17557
17746
  id?: string;
17558
17747
  layers_per_cart?: number | null;
17748
+ load_carrier_type?: string | null;
17559
17749
  needs_sticker?: boolean;
17560
17750
  order_id?: string;
17561
17751
  packing_locked_at?: string | null;
17562
17752
  packing_locked_by?: string | null;
17753
+ packing_source?: string | null;
17563
17754
  plants_per_crate?: number | null;
17564
17755
  product_id?: string | null;
17565
17756
  product_name?: string;
17566
17757
  quantity?: number;
17758
+ quantity_crates?: number | null;
17567
17759
  quarantine_reason?: string | null;
17568
17760
  quarantined_at?: string | null;
17569
17761
  quarantined_into_order_id?: string | null;
17570
17762
  source_line_key?: string | null;
17571
17763
  unit?: string;
17572
17764
  unit_price?: number | null;
17765
+ vbn_package_code?: string | null;
17573
17766
  };
17574
17767
  Relationships: [
17575
17768
  {
@@ -21439,6 +21632,85 @@ export type Database = {
21439
21632
  };
21440
21633
  Relationships: [];
21441
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
+ };
21442
21714
  product_suppliers: {
21443
21715
  Row: {
21444
21716
  created_at: string;
@@ -24614,16 +24886,56 @@ export type Database = {
24614
24886
  }
24615
24887
  ];
24616
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
+ };
24617
24928
  twinfield_connections: {
24618
24929
  Row: {
24619
24930
  account_key: string | null;
24931
+ central_environment: string | null;
24620
24932
  cluster_uri: string | null;
24621
24933
  company_code: string | null;
24622
24934
  company_name: string | null;
24623
24935
  connected_at: string | null;
24624
24936
  created_at: string;
24625
24937
  disconnected_at: string | null;
24626
- environment: string;
24938
+ environment: string | null;
24627
24939
  granted_scopes: string[] | null;
24628
24940
  id: string;
24629
24941
  initial_sync_completed_at: string | null;
@@ -24632,8 +24944,12 @@ export type Database = {
24632
24944
  initial_sync_started_at: string | null;
24633
24945
  is_active: boolean;
24634
24946
  label: string | null;
24947
+ label_set_at: string | null;
24948
+ label_set_by: string | null;
24949
+ label_source: string | null;
24635
24950
  missing_scopes: string[] | null;
24636
24951
  office_code: string | null;
24952
+ organisation_code: string | null;
24637
24953
  redirect_uri: string | null;
24638
24954
  scope_checked_at: string | null;
24639
24955
  scope_state: string | null;
@@ -24647,13 +24963,14 @@ export type Database = {
24647
24963
  };
24648
24964
  Insert: {
24649
24965
  account_key?: string | null;
24966
+ central_environment?: string | null;
24650
24967
  cluster_uri?: string | null;
24651
24968
  company_code?: string | null;
24652
24969
  company_name?: string | null;
24653
24970
  connected_at?: string | null;
24654
24971
  created_at?: string;
24655
24972
  disconnected_at?: string | null;
24656
- environment: string;
24973
+ environment?: string | null;
24657
24974
  granted_scopes?: string[] | null;
24658
24975
  id?: string;
24659
24976
  initial_sync_completed_at?: string | null;
@@ -24662,8 +24979,12 @@ export type Database = {
24662
24979
  initial_sync_started_at?: string | null;
24663
24980
  is_active?: boolean;
24664
24981
  label?: string | null;
24982
+ label_set_at?: string | null;
24983
+ label_set_by?: string | null;
24984
+ label_source?: string | null;
24665
24985
  missing_scopes?: string[] | null;
24666
24986
  office_code?: string | null;
24987
+ organisation_code?: string | null;
24667
24988
  redirect_uri?: string | null;
24668
24989
  scope_checked_at?: string | null;
24669
24990
  scope_state?: string | null;
@@ -24677,13 +24998,14 @@ export type Database = {
24677
24998
  };
24678
24999
  Update: {
24679
25000
  account_key?: string | null;
25001
+ central_environment?: string | null;
24680
25002
  cluster_uri?: string | null;
24681
25003
  company_code?: string | null;
24682
25004
  company_name?: string | null;
24683
25005
  connected_at?: string | null;
24684
25006
  created_at?: string;
24685
25007
  disconnected_at?: string | null;
24686
- environment?: string;
25008
+ environment?: string | null;
24687
25009
  granted_scopes?: string[] | null;
24688
25010
  id?: string;
24689
25011
  initial_sync_completed_at?: string | null;
@@ -24692,8 +25014,12 @@ export type Database = {
24692
25014
  initial_sync_started_at?: string | null;
24693
25015
  is_active?: boolean;
24694
25016
  label?: string | null;
25017
+ label_set_at?: string | null;
25018
+ label_set_by?: string | null;
25019
+ label_source?: string | null;
24695
25020
  missing_scopes?: string[] | null;
24696
25021
  office_code?: string | null;
25022
+ organisation_code?: string | null;
24697
25023
  redirect_uri?: string | null;
24698
25024
  scope_checked_at?: string | null;
24699
25025
  scope_state?: string | null;
@@ -25633,7 +25959,7 @@ export type Database = {
25633
25959
  };
25634
25960
  twinfield_settings: {
25635
25961
  Row: {
25636
- active_environment: string;
25962
+ active_environment: string | null;
25637
25963
  cron_registered_at: string | null;
25638
25964
  cron_registration_error: string | null;
25639
25965
  cron_schedules: Json;
@@ -25643,7 +25969,7 @@ export type Database = {
25643
25969
  updated_at: string;
25644
25970
  };
25645
25971
  Insert: {
25646
- active_environment?: string;
25972
+ active_environment?: string | null;
25647
25973
  cron_registered_at?: string | null;
25648
25974
  cron_registration_error?: string | null;
25649
25975
  cron_schedules?: Json;
@@ -25653,7 +25979,7 @@ export type Database = {
25653
25979
  updated_at?: string;
25654
25980
  };
25655
25981
  Update: {
25656
- active_environment?: string;
25982
+ active_environment?: string | null;
25657
25983
  cron_registered_at?: string | null;
25658
25984
  cron_registration_error?: string | null;
25659
25985
  cron_schedules?: Json;
@@ -29569,6 +29895,16 @@ export type Database = {
29569
29895
  Args: never;
29570
29896
  Returns: boolean;
29571
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
+ };
29572
29908
  afh_city_code: {
29573
29909
  Args: {
29574
29910
  _city: string;
@@ -29619,6 +29955,19 @@ export type Database = {
29619
29955
  };
29620
29956
  Returns: Json;
29621
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
+ };
29622
29971
  afh_signup_config: {
29623
29972
  Args: never;
29624
29973
  Returns: Json;
@@ -30450,6 +30799,8 @@ export type Database = {
30450
30799
  cart_index: number;
30451
30800
  cart_number: string;
30452
30801
  cart_number_id: string;
30802
+ country_code: string;
30803
+ crates_on_cart: number;
30453
30804
  order_id: string;
30454
30805
  order_number: string;
30455
30806
  order_source: string;
@@ -30843,6 +31194,14 @@ export type Database = {
30843
31194
  Args: never;
30844
31195
  Returns: Json;
30845
31196
  };
31197
+ floriday_background_jobs_status: {
31198
+ Args: never;
31199
+ Returns: {
31200
+ active: boolean;
31201
+ jobname: string;
31202
+ schedule: string;
31203
+ }[];
31204
+ };
30846
31205
  floriday_capture_stock_snapshot: {
30847
31206
  Args: never;
30848
31207
  Returns: number;
@@ -30959,6 +31318,10 @@ export type Database = {
30959
31318
  };
30960
31319
  Returns: Json;
30961
31320
  };
31321
+ floriday_legacy_packing_sync_present: {
31322
+ Args: never;
31323
+ Returns: Json;
31324
+ };
30962
31325
  floriday_make_erp_leading: {
30963
31326
  Args: {
30964
31327
  p_connection_id: string;
@@ -31910,6 +32273,10 @@ export type Database = {
31910
32273
  Args: never;
31911
32274
  Returns: Json;
31912
32275
  };
32276
+ klanten_refresh_grouped_if_stale: {
32277
+ Args: never;
32278
+ Returns: boolean;
32279
+ };
31913
32280
  klanten_set_auto_promote: {
31914
32281
  Args: {
31915
32282
  p_kind: string;
@@ -31968,6 +32335,13 @@ export type Database = {
31968
32335
  Args: never;
31969
32336
  Returns: Json;
31970
32337
  };
32338
+ layout_voor_document: {
32339
+ Args: {
32340
+ p_documenttype: string;
32341
+ p_order_id: string;
32342
+ };
32343
+ Returns: Json;
32344
+ };
31971
32345
  layout_zorg_systeemlayouts: {
31972
32346
  Args: never;
31973
32347
  Returns: number;
@@ -32254,6 +32628,14 @@ export type Database = {
32254
32628
  Args: never;
32255
32629
  Returns: number;
32256
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
+ };
32257
32639
  logistics_belading_verstuurder: {
32258
32640
  Args: never;
32259
32641
  Returns: string;
@@ -32640,6 +33022,16 @@ export type Database = {
32640
33022
  order_uuid: string;
32641
33023
  }[];
32642
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
+ };
32643
33035
  logistics_cart_slip_plan: {
32644
33036
  Args: {
32645
33037
  p_order_id: string;
@@ -33062,6 +33454,13 @@ export type Database = {
33062
33454
  };
33063
33455
  Returns: Json;
33064
33456
  };
33457
+ logistics_document_for_order: {
33458
+ Args: {
33459
+ p_documenttype: string;
33460
+ p_order_id: string;
33461
+ };
33462
+ Returns: Json;
33463
+ };
33065
33464
  logistics_document_layout: {
33066
33465
  Args: {
33067
33466
  _document_code: string;
@@ -33075,6 +33474,10 @@ export type Database = {
33075
33474
  };
33076
33475
  Returns: Json;
33077
33476
  };
33477
+ logistics_document_selection_status: {
33478
+ Args: never;
33479
+ Returns: Json;
33480
+ };
33078
33481
  logistics_document_station: {
33079
33482
  Args: {
33080
33483
  _document_code: string;
@@ -33380,6 +33783,12 @@ export type Database = {
33380
33783
  Args: never;
33381
33784
  Returns: Json;
33382
33785
  };
33786
+ logistics_floriday_shipping_document: {
33787
+ Args: {
33788
+ p_order_id: string;
33789
+ };
33790
+ Returns: Json;
33791
+ };
33383
33792
  logistics_floriday_status_updates_enabled: {
33384
33793
  Args: never;
33385
33794
  Returns: boolean;
@@ -33893,6 +34302,21 @@ export type Database = {
33893
34302
  Args: never;
33894
34303
  Returns: Json;
33895
34304
  };
34305
+ logistics_own_sticker_count: {
34306
+ Args: {
34307
+ p_ppc_product: number;
34308
+ p_ppc_regel: number;
34309
+ p_quantity: number;
34310
+ p_unit: string;
34311
+ };
34312
+ Returns: number;
34313
+ };
34314
+ logistics_own_sticker_sync: {
34315
+ Args: {
34316
+ p_limit?: number;
34317
+ };
34318
+ Returns: Json;
34319
+ };
33896
34320
  logistics_own_transport_departure: {
33897
34321
  Args: {
33898
34322
  p_delivery_date: string;
@@ -33900,6 +34324,18 @@ export type Database = {
33900
34324
  };
33901
34325
  Returns: Json;
33902
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
+ };
33903
34339
  logistics_packing_autofix: {
33904
34340
  Args: {
33905
34341
  p_limit?: number;
@@ -34200,6 +34636,15 @@ export type Database = {
34200
34636
  Args: never;
34201
34637
  Returns: number;
34202
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
+ };
34203
34648
  logistics_plan_queue_list: {
34204
34649
  Args: {
34205
34650
  p_limit?: number;
@@ -34241,6 +34686,13 @@ export type Database = {
34241
34686
  };
34242
34687
  Returns: number;
34243
34688
  };
34689
+ logistics_plan_retry_later: {
34690
+ Args: {
34691
+ p_id: string;
34692
+ p_seconds?: number;
34693
+ };
34694
+ Returns: undefined;
34695
+ };
34244
34696
  logistics_plan_setting: {
34245
34697
  Args: {
34246
34698
  p_default: number;
@@ -35275,6 +35727,15 @@ export type Database = {
35275
35727
  };
35276
35728
  Returns: Json;
35277
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
+ };
35278
35739
  logistics_try_uuid: {
35279
35740
  Args: {
35280
35741
  p: string;
@@ -36279,6 +36740,13 @@ export type Database = {
36279
36740
  };
36280
36741
  Returns: Json;
36281
36742
  };
36743
+ pickstation_document_for_order: {
36744
+ Args: {
36745
+ p_queue_item_id: string;
36746
+ p_slug: string;
36747
+ };
36748
+ Returns: Json;
36749
+ };
36282
36750
  pickstation_get_orders_raw: {
36283
36751
  Args: never;
36284
36752
  Returns: Json;
@@ -36645,6 +37113,34 @@ export type Database = {
36645
37113
  };
36646
37114
  Returns: Record<string, unknown>;
36647
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
+ };
36648
37144
  product_set_depth_above: {
36649
37145
  Args: {
36650
37146
  p_path?: string[];
@@ -37868,12 +38364,6 @@ export type Database = {
37868
38364
  Args: never;
37869
38365
  Returns: undefined;
37870
38366
  };
37871
- sync_cached_packing_from_product: {
37872
- Args: {
37873
- p_product_id: string;
37874
- };
37875
- Returns: undefined;
37876
- };
37877
38367
  sync_floriday_prices_into_price_groups: {
37878
38368
  Args: never;
37879
38369
  Returns: number;
@@ -37884,12 +38374,6 @@ export type Database = {
37884
38374
  };
37885
38375
  Returns: undefined;
37886
38376
  };
37887
- sync_order_cart_item_packing_from_product: {
37888
- Args: {
37889
- p_product_id: string;
37890
- };
37891
- Returns: undefined;
37892
- };
37893
38377
  sync_order_item_fusten: {
37894
38378
  Args: {
37895
38379
  _order_item_id: string;
@@ -37902,12 +38386,6 @@ export type Database = {
37902
38386
  };
37903
38387
  Returns: undefined;
37904
38388
  };
37905
- sync_product_packing_from_floriday_cache: {
37906
- Args: {
37907
- p_floriday_id: string;
37908
- };
37909
- Returns: undefined;
37910
- };
37911
38389
  sync_sick_time_off: {
37912
38390
  Args: {
37913
38391
  _period_id: string;
@@ -37938,6 +38416,15 @@ export type Database = {
37938
38416
  };
37939
38417
  Returns: boolean;
37940
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
+ };
37941
38428
  twinfield_cancel_queue_item: {
37942
38429
  Args: {
37943
38430
  p_id: string;
@@ -37947,11 +38434,32 @@ export type Database = {
37947
38434
  twinfield_connection_offices: {
37948
38435
  Args: never;
37949
38436
  Returns: {
38437
+ company_name: string;
37950
38438
  connection_id: string;
38439
+ environment: string;
38440
+ in_shell_omgeving: boolean;
37951
38441
  is_active: boolean;
38442
+ label_source: string;
37952
38443
  office_code: string;
37953
38444
  }[];
37954
38445
  };
38446
+ twinfield_connection_usage: {
38447
+ Args: never;
38448
+ Returns: {
38449
+ archived: boolean;
38450
+ company_name: string;
38451
+ connected_at: string;
38452
+ connection_id: string;
38453
+ environment: string;
38454
+ gebruikt_door_facturatie: boolean;
38455
+ in_shell_omgeving: boolean;
38456
+ is_active: boolean;
38457
+ label_source: string;
38458
+ leest: boolean;
38459
+ office_code: string;
38460
+ user_id: string;
38461
+ }[];
38462
+ };
37955
38463
  twinfield_cron_lock_acquire: {
37956
38464
  Args: {
37957
38465
  _job_name: string;
@@ -37997,10 +38505,24 @@ export type Database = {
37997
38505
  Args: never;
37998
38506
  Returns: boolean;
37999
38507
  };
38508
+ twinfield_mark_label_pending: {
38509
+ Args: {
38510
+ p_connection_id: string;
38511
+ };
38512
+ Returns: boolean;
38513
+ };
38000
38514
  twinfield_prune_push_queue: {
38001
38515
  Args: never;
38002
38516
  Returns: number;
38003
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
+ };
38004
38526
  twinfield_register_cron: {
38005
38527
  Args: {
38006
38528
  apikey?: string;
@@ -38008,6 +38530,14 @@ export type Database = {
38008
38530
  };
38009
38531
  Returns: Json;
38010
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
+ };
38011
38541
  twinfield_set_write_enabled: {
38012
38542
  Args: {
38013
38543
  p_connection_id: string;
@@ -38589,6 +39119,49 @@ export type Database = {
38589
39119
  };
38590
39120
  Returns: Json;
38591
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
+ };
38592
39165
  vervang_printer: {
38593
39166
  Args: {
38594
39167
  _nieuw: string;
@@ -38602,6 +39175,15 @@ export type Database = {
38602
39175
  };
38603
39176
  Returns: Json;
38604
39177
  };
39178
+ voorraad_alert_floriday_not_updated: {
39179
+ Args: {
39180
+ p_key: string;
39181
+ p_order_id: string;
39182
+ p_order_item_id: string;
39183
+ p_qty: number;
39184
+ };
39185
+ Returns: undefined;
39186
+ };
38605
39187
  voorraad_can_write: {
38606
39188
  Args: never;
38607
39189
  Returns: boolean;
@@ -38624,6 +39206,12 @@ export type Database = {
38624
39206
  };
38625
39207
  Returns: string[];
38626
39208
  };
39209
+ voorraad_floriday_leads_key: {
39210
+ Args: {
39211
+ p_key: string;
39212
+ };
39213
+ Returns: boolean;
39214
+ };
38627
39215
  voorraad_hook_base_url: {
38628
39216
  Args: never;
38629
39217
  Returns: string;
@@ -38641,6 +39229,12 @@ export type Database = {
38641
39229
  };
38642
39230
  Returns: undefined;
38643
39231
  };
39232
+ voorraad_mark_floriday_sold_before_switch: {
39233
+ Args: {
39234
+ p_product_id: string;
39235
+ };
39236
+ Returns: number;
39237
+ };
38644
39238
  voorraad_production_enabled: {
38645
39239
  Args: never;
38646
39240
  Returns: boolean;