@flowselections/logistiek-engine 1.0.183 → 1.0.185

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
  };
@@ -2654,6 +2717,7 @@ export type Database = {
2654
2717
  custom_fields: Json;
2655
2718
  customer_class: string | null;
2656
2719
  customer_number: string | null;
2720
+ default_carrier_id: string | null;
2657
2721
  discount_days: number | null;
2658
2722
  discount_percentage: number | null;
2659
2723
  discount_surcharge: string;
@@ -2746,6 +2810,7 @@ export type Database = {
2746
2810
  custom_fields?: Json;
2747
2811
  customer_class?: string | null;
2748
2812
  customer_number?: string | null;
2813
+ default_carrier_id?: string | null;
2749
2814
  discount_days?: number | null;
2750
2815
  discount_percentage?: number | null;
2751
2816
  discount_surcharge?: string;
@@ -2838,6 +2903,7 @@ export type Database = {
2838
2903
  custom_fields?: Json;
2839
2904
  customer_class?: string | null;
2840
2905
  customer_number?: string | null;
2906
+ default_carrier_id?: string | null;
2841
2907
  discount_days?: number | null;
2842
2908
  discount_percentage?: number | null;
2843
2909
  discount_surcharge?: string;
@@ -2891,7 +2957,15 @@ export type Database = {
2891
2957
  vat_number?: string | null;
2892
2958
  website?: string | null;
2893
2959
  };
2894
- 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
+ ];
2895
2969
  };
2896
2970
  dashboard_ai_conversations: {
2897
2971
  Row: {
@@ -7279,16 +7353,22 @@ export type Database = {
7279
7353
  connection_id: string;
7280
7354
  created_at: string;
7281
7355
  data: Json;
7356
+ delivery_date_time: string | null;
7282
7357
  fetched_at: string;
7283
7358
  floriday_id: string;
7359
+ has_file: boolean | null;
7284
7360
  id: string;
7285
7361
  is_deleted: boolean;
7362
+ is_handled: boolean | null;
7363
+ last_requested_on: string | null;
7364
+ number_of_copies: number | null;
7286
7365
  quantity: number | null;
7287
7366
  sales_order_id: string | null;
7288
7367
  sequence_number: number;
7289
7368
  should_be_printed: boolean | null;
7290
7369
  status: string | null;
7291
7370
  sticker_height_mm: number | null;
7371
+ sticker_provided_by: string | null;
7292
7372
  sticker_type: string | null;
7293
7373
  sticker_width_mm: number | null;
7294
7374
  trade_item_id: string | null;
@@ -7298,16 +7378,22 @@ export type Database = {
7298
7378
  connection_id: string;
7299
7379
  created_at?: string;
7300
7380
  data?: Json;
7381
+ delivery_date_time?: string | null;
7301
7382
  fetched_at?: string;
7302
7383
  floriday_id: string;
7384
+ has_file?: boolean | null;
7303
7385
  id?: string;
7304
7386
  is_deleted?: boolean;
7387
+ is_handled?: boolean | null;
7388
+ last_requested_on?: string | null;
7389
+ number_of_copies?: number | null;
7305
7390
  quantity?: number | null;
7306
7391
  sales_order_id?: string | null;
7307
7392
  sequence_number?: number;
7308
7393
  should_be_printed?: boolean | null;
7309
7394
  status?: string | null;
7310
7395
  sticker_height_mm?: number | null;
7396
+ sticker_provided_by?: string | null;
7311
7397
  sticker_type?: string | null;
7312
7398
  sticker_width_mm?: number | null;
7313
7399
  trade_item_id?: string | null;
@@ -7317,16 +7403,22 @@ export type Database = {
7317
7403
  connection_id?: string;
7318
7404
  created_at?: string;
7319
7405
  data?: Json;
7406
+ delivery_date_time?: string | null;
7320
7407
  fetched_at?: string;
7321
7408
  floriday_id?: string;
7409
+ has_file?: boolean | null;
7322
7410
  id?: string;
7323
7411
  is_deleted?: boolean;
7412
+ is_handled?: boolean | null;
7413
+ last_requested_on?: string | null;
7414
+ number_of_copies?: number | null;
7324
7415
  quantity?: number | null;
7325
7416
  sales_order_id?: string | null;
7326
7417
  sequence_number?: number;
7327
7418
  should_be_printed?: boolean | null;
7328
7419
  status?: string | null;
7329
7420
  sticker_height_mm?: number | null;
7421
+ sticker_provided_by?: string | null;
7330
7422
  sticker_type?: string | null;
7331
7423
  sticker_width_mm?: number | null;
7332
7424
  trade_item_id?: string | null;
@@ -8212,7 +8304,9 @@ export type Database = {
8212
8304
  floriday_packing_mismatches: {
8213
8305
  Row: {
8214
8306
  api_value: Json | null;
8307
+ cache_is_deleted: boolean;
8215
8308
  cache_value: Json | null;
8309
+ check_outcome: string;
8216
8310
  connection_id: string;
8217
8311
  details: string | null;
8218
8312
  detected_at: string;
@@ -8224,7 +8318,9 @@ export type Database = {
8224
8318
  };
8225
8319
  Insert: {
8226
8320
  api_value?: Json | null;
8321
+ cache_is_deleted?: boolean;
8227
8322
  cache_value?: Json | null;
8323
+ check_outcome?: string;
8228
8324
  connection_id: string;
8229
8325
  details?: string | null;
8230
8326
  detected_at?: string;
@@ -8236,7 +8332,9 @@ export type Database = {
8236
8332
  };
8237
8333
  Update: {
8238
8334
  api_value?: Json | null;
8335
+ cache_is_deleted?: boolean;
8239
8336
  cache_value?: Json | null;
8337
+ check_outcome?: string;
8240
8338
  connection_id?: string;
8241
8339
  details?: string | null;
8242
8340
  detected_at?: string;
@@ -9385,6 +9483,105 @@ export type Database = {
9385
9483
  };
9386
9484
  Relationships: [];
9387
9485
  };
9486
+ flowselections_central_sync_state: {
9487
+ Row: {
9488
+ id: number;
9489
+ last_error_at: string | null;
9490
+ last_logged_at: string | null;
9491
+ last_logged_status: string | null;
9492
+ last_ok_at: string | null;
9493
+ last_status: string | null;
9494
+ request_id: number | null;
9495
+ requested_at: string | null;
9496
+ };
9497
+ Insert: {
9498
+ id: number;
9499
+ last_error_at?: string | null;
9500
+ last_logged_at?: string | null;
9501
+ last_logged_status?: string | null;
9502
+ last_ok_at?: string | null;
9503
+ last_status?: string | null;
9504
+ request_id?: number | null;
9505
+ requested_at?: string | null;
9506
+ };
9507
+ Update: {
9508
+ id?: number;
9509
+ last_error_at?: string | null;
9510
+ last_logged_at?: string | null;
9511
+ last_logged_status?: string | null;
9512
+ last_ok_at?: string | null;
9513
+ last_status?: string | null;
9514
+ request_id?: number | null;
9515
+ requested_at?: string | null;
9516
+ };
9517
+ Relationships: [];
9518
+ };
9519
+ flowselections_cron_claims: {
9520
+ Row: {
9521
+ jobname: string;
9522
+ module: string;
9523
+ placed_at: string;
9524
+ version: string | null;
9525
+ };
9526
+ Insert: {
9527
+ jobname: string;
9528
+ module: string;
9529
+ placed_at?: string;
9530
+ version?: string | null;
9531
+ };
9532
+ Update: {
9533
+ jobname?: string;
9534
+ module?: string;
9535
+ placed_at?: string;
9536
+ version?: string | null;
9537
+ };
9538
+ Relationships: [];
9539
+ };
9540
+ flowselections_cron_log: {
9541
+ Row: {
9542
+ detail: string | null;
9543
+ id: number;
9544
+ path: string | null;
9545
+ status: string;
9546
+ ts: string;
9547
+ };
9548
+ Insert: {
9549
+ detail?: string | null;
9550
+ id?: never;
9551
+ path?: string | null;
9552
+ status: string;
9553
+ ts?: string;
9554
+ };
9555
+ Update: {
9556
+ detail?: string | null;
9557
+ id?: never;
9558
+ path?: string | null;
9559
+ status?: string;
9560
+ ts?: string;
9561
+ };
9562
+ Relationships: [];
9563
+ };
9564
+ flowselections_cron_override: {
9565
+ Row: {
9566
+ aangemaakt_op: string;
9567
+ base_url: string;
9568
+ notitie: string | null;
9569
+ path_prefix: string;
9570
+ };
9571
+ Insert: {
9572
+ aangemaakt_op?: string;
9573
+ base_url: string;
9574
+ notitie?: string | null;
9575
+ path_prefix: string;
9576
+ };
9577
+ Update: {
9578
+ aangemaakt_op?: string;
9579
+ base_url?: string;
9580
+ notitie?: string | null;
9581
+ path_prefix?: string;
9582
+ };
9583
+ Relationships: [];
9584
+ };
9388
9585
  fust_stock_mutations: {
9389
9586
  Row: {
9390
9587
  created_at: string;
@@ -12381,6 +12578,81 @@ export type Database = {
12381
12578
  };
12382
12579
  Relationships: [];
12383
12580
  };
12581
+ logistics_carrier_events: {
12582
+ Row: {
12583
+ bericht: string;
12584
+ created_at: string;
12585
+ id: number;
12586
+ order_id: string;
12587
+ soort: string;
12588
+ };
12589
+ Insert: {
12590
+ bericht: string;
12591
+ created_at?: string;
12592
+ id?: number;
12593
+ order_id: string;
12594
+ soort?: string;
12595
+ };
12596
+ Update: {
12597
+ bericht?: string;
12598
+ created_at?: string;
12599
+ id?: number;
12600
+ order_id?: string;
12601
+ soort?: string;
12602
+ };
12603
+ Relationships: [];
12604
+ };
12605
+ logistics_carrier_recalc_queue: {
12606
+ Row: {
12607
+ last_checked_at: string | null;
12608
+ order_id: string;
12609
+ processed_at: string | null;
12610
+ queued_at: string;
12611
+ reden: string;
12612
+ };
12613
+ Insert: {
12614
+ last_checked_at?: string | null;
12615
+ order_id: string;
12616
+ processed_at?: string | null;
12617
+ queued_at?: string;
12618
+ reden: string;
12619
+ };
12620
+ Update: {
12621
+ last_checked_at?: string | null;
12622
+ order_id?: string;
12623
+ processed_at?: string | null;
12624
+ queued_at?: string;
12625
+ reden?: string;
12626
+ };
12627
+ Relationships: [];
12628
+ };
12629
+ logistics_carrier_settings: {
12630
+ Row: {
12631
+ backfill_existing: boolean;
12632
+ backfill_set_at: string | null;
12633
+ backfill_set_by: string | null;
12634
+ id: boolean;
12635
+ installed_at: string;
12636
+ updated_at: string;
12637
+ };
12638
+ Insert: {
12639
+ backfill_existing?: boolean;
12640
+ backfill_set_at?: string | null;
12641
+ backfill_set_by?: string | null;
12642
+ id?: boolean;
12643
+ installed_at?: string;
12644
+ updated_at?: string;
12645
+ };
12646
+ Update: {
12647
+ backfill_existing?: boolean;
12648
+ backfill_set_at?: string | null;
12649
+ backfill_set_by?: string | null;
12650
+ id?: boolean;
12651
+ installed_at?: string;
12652
+ updated_at?: string;
12653
+ };
12654
+ Relationships: [];
12655
+ };
12384
12656
  logistics_cart_archive_log: {
12385
12657
  Row: {
12386
12658
  action: string;
@@ -14278,6 +14550,7 @@ export type Database = {
14278
14550
  hoogte_mm: number | null;
14279
14551
  id: string;
14280
14552
  kopieen: number;
14553
+ kopieen_bron: string | null;
14281
14554
  next_attempt_at: string | null;
14282
14555
  order_id: string | null;
14283
14556
  order_number: string | null;
@@ -14305,6 +14578,7 @@ export type Database = {
14305
14578
  hoogte_mm?: number | null;
14306
14579
  id?: string;
14307
14580
  kopieen?: number;
14581
+ kopieen_bron?: string | null;
14308
14582
  next_attempt_at?: string | null;
14309
14583
  order_id?: string | null;
14310
14584
  order_number?: string | null;
@@ -14332,6 +14606,7 @@ export type Database = {
14332
14606
  hoogte_mm?: number | null;
14333
14607
  id?: string;
14334
14608
  kopieen?: number;
14609
+ kopieen_bron?: string | null;
14335
14610
  next_attempt_at?: string | null;
14336
14611
  order_id?: string | null;
14337
14612
  order_number?: string | null;
@@ -17599,60 +17874,72 @@ export type Database = {
17599
17874
  created_at: string;
17600
17875
  id: string;
17601
17876
  layers_per_cart: number | null;
17877
+ load_carrier_type: string | null;
17602
17878
  needs_sticker: boolean;
17603
17879
  order_id: string;
17604
17880
  packing_locked_at: string | null;
17605
17881
  packing_locked_by: string | null;
17882
+ packing_source: string | null;
17606
17883
  plants_per_crate: number | null;
17607
17884
  product_id: string | null;
17608
17885
  product_name: string;
17609
17886
  quantity: number;
17887
+ quantity_crates: number | null;
17610
17888
  quarantine_reason: string | null;
17611
17889
  quarantined_at: string | null;
17612
17890
  quarantined_into_order_id: string | null;
17613
17891
  source_line_key: string | null;
17614
17892
  unit: string;
17615
17893
  unit_price: number | null;
17894
+ vbn_package_code: string | null;
17616
17895
  };
17617
17896
  Insert: {
17618
17897
  crates_per_layer?: number | null;
17619
17898
  created_at?: string;
17620
17899
  id?: string;
17621
17900
  layers_per_cart?: number | null;
17901
+ load_carrier_type?: string | null;
17622
17902
  needs_sticker?: boolean;
17623
17903
  order_id: string;
17624
17904
  packing_locked_at?: string | null;
17625
17905
  packing_locked_by?: string | null;
17906
+ packing_source?: string | null;
17626
17907
  plants_per_crate?: number | null;
17627
17908
  product_id?: string | null;
17628
17909
  product_name: string;
17629
17910
  quantity?: number;
17911
+ quantity_crates?: number | null;
17630
17912
  quarantine_reason?: string | null;
17631
17913
  quarantined_at?: string | null;
17632
17914
  quarantined_into_order_id?: string | null;
17633
17915
  source_line_key?: string | null;
17634
17916
  unit?: string;
17635
17917
  unit_price?: number | null;
17918
+ vbn_package_code?: string | null;
17636
17919
  };
17637
17920
  Update: {
17638
17921
  crates_per_layer?: number | null;
17639
17922
  created_at?: string;
17640
17923
  id?: string;
17641
17924
  layers_per_cart?: number | null;
17925
+ load_carrier_type?: string | null;
17642
17926
  needs_sticker?: boolean;
17643
17927
  order_id?: string;
17644
17928
  packing_locked_at?: string | null;
17645
17929
  packing_locked_by?: string | null;
17930
+ packing_source?: string | null;
17646
17931
  plants_per_crate?: number | null;
17647
17932
  product_id?: string | null;
17648
17933
  product_name?: string;
17649
17934
  quantity?: number;
17935
+ quantity_crates?: number | null;
17650
17936
  quarantine_reason?: string | null;
17651
17937
  quarantined_at?: string | null;
17652
17938
  quarantined_into_order_id?: string | null;
17653
17939
  source_line_key?: string | null;
17654
17940
  unit?: string;
17655
17941
  unit_price?: number | null;
17942
+ vbn_package_code?: string | null;
17656
17943
  };
17657
17944
  Relationships: [
17658
17945
  {
@@ -17844,6 +18131,12 @@ export type Database = {
17844
18131
  buffer_id: string | null;
17845
18132
  cancel_reason: string | null;
17846
18133
  cancelled_at: string | null;
18134
+ carrier_id: string | null;
18135
+ carrier_reason: string | null;
18136
+ carrier_resolved_at: string | null;
18137
+ carrier_set_at: string | null;
18138
+ carrier_set_by: string | null;
18139
+ carrier_source: string | null;
17847
18140
  created_at: string;
17848
18141
  custom_fields: Json;
17849
18142
  customer_id: string | null;
@@ -17872,6 +18165,12 @@ export type Database = {
17872
18165
  buffer_id?: string | null;
17873
18166
  cancel_reason?: string | null;
17874
18167
  cancelled_at?: string | null;
18168
+ carrier_id?: string | null;
18169
+ carrier_reason?: string | null;
18170
+ carrier_resolved_at?: string | null;
18171
+ carrier_set_at?: string | null;
18172
+ carrier_set_by?: string | null;
18173
+ carrier_source?: string | null;
17875
18174
  created_at?: string;
17876
18175
  custom_fields?: Json;
17877
18176
  customer_id?: string | null;
@@ -17900,6 +18199,12 @@ export type Database = {
17900
18199
  buffer_id?: string | null;
17901
18200
  cancel_reason?: string | null;
17902
18201
  cancelled_at?: string | null;
18202
+ carrier_id?: string | null;
18203
+ carrier_reason?: string | null;
18204
+ carrier_resolved_at?: string | null;
18205
+ carrier_set_at?: string | null;
18206
+ carrier_set_by?: string | null;
18207
+ carrier_source?: string | null;
17903
18208
  created_at?: string;
17904
18209
  custom_fields?: Json;
17905
18210
  customer_id?: string | null;
@@ -17932,6 +18237,13 @@ export type Database = {
17932
18237
  referencedRelation: "order_buffers";
17933
18238
  referencedColumns: ["id"];
17934
18239
  },
18240
+ {
18241
+ foreignKeyName: "orders_carrier_id_fkey";
18242
+ columns: ["carrier_id"];
18243
+ isOneToOne: false;
18244
+ referencedRelation: "carriers";
18245
+ referencedColumns: ["id"];
18246
+ },
17935
18247
  {
17936
18248
  foreignKeyName: "orders_customer_id_fkey";
17937
18249
  columns: ["customer_id"];
@@ -21522,6 +21834,85 @@ export type Database = {
21522
21834
  };
21523
21835
  Relationships: [];
21524
21836
  };
21837
+ product_packings: {
21838
+ Row: {
21839
+ created_at: string;
21840
+ custom_package_id: string | null;
21841
+ customer_organization_ids: string[];
21842
+ floriday_packing_id: string | null;
21843
+ fust_type_id: string | null;
21844
+ id: string;
21845
+ is_primary: boolean;
21846
+ layers_per_load_carrier: number | null;
21847
+ load_carrier: string | null;
21848
+ packages_per_layer: number | null;
21849
+ pieces_per_package: number | null;
21850
+ product_id: string;
21851
+ sort_order: number;
21852
+ source: string;
21853
+ updated_at: string;
21854
+ vbn_package_code: number | null;
21855
+ };
21856
+ Insert: {
21857
+ created_at?: string;
21858
+ custom_package_id?: string | null;
21859
+ customer_organization_ids?: string[];
21860
+ floriday_packing_id?: string | null;
21861
+ fust_type_id?: string | null;
21862
+ id?: string;
21863
+ is_primary?: boolean;
21864
+ layers_per_load_carrier?: number | null;
21865
+ load_carrier?: string | null;
21866
+ packages_per_layer?: number | null;
21867
+ pieces_per_package?: number | null;
21868
+ product_id: string;
21869
+ sort_order?: number;
21870
+ source?: string;
21871
+ updated_at?: string;
21872
+ vbn_package_code?: number | null;
21873
+ };
21874
+ Update: {
21875
+ created_at?: string;
21876
+ custom_package_id?: string | null;
21877
+ customer_organization_ids?: string[];
21878
+ floriday_packing_id?: string | null;
21879
+ fust_type_id?: string | null;
21880
+ id?: string;
21881
+ is_primary?: boolean;
21882
+ layers_per_load_carrier?: number | null;
21883
+ load_carrier?: string | null;
21884
+ packages_per_layer?: number | null;
21885
+ pieces_per_package?: number | null;
21886
+ product_id?: string;
21887
+ sort_order?: number;
21888
+ source?: string;
21889
+ updated_at?: string;
21890
+ vbn_package_code?: number | null;
21891
+ };
21892
+ Relationships: [
21893
+ {
21894
+ foreignKeyName: "product_packings_fust_type_id_fkey";
21895
+ columns: ["fust_type_id"];
21896
+ isOneToOne: false;
21897
+ referencedRelation: "fust_types";
21898
+ referencedColumns: ["id"];
21899
+ },
21900
+ {
21901
+ foreignKeyName: "product_packings_product_id_fkey";
21902
+ columns: ["product_id"];
21903
+ isOneToOne: false;
21904
+ referencedRelation: "logistics_product_dimensions";
21905
+ referencedColumns: ["product_id"];
21906
+ },
21907
+ {
21908
+ foreignKeyName: "product_packings_product_id_fkey";
21909
+ columns: ["product_id"];
21910
+ isOneToOne: false;
21911
+ referencedRelation: "products";
21912
+ referencedColumns: ["id"];
21913
+ }
21914
+ ];
21915
+ };
21525
21916
  product_suppliers: {
21526
21917
  Row: {
21527
21918
  created_at: string;
@@ -24697,16 +25088,56 @@ export type Database = {
24697
25088
  }
24698
25089
  ];
24699
25090
  };
25091
+ twinfield_connection_label_log: {
25092
+ Row: {
25093
+ changed_at: string;
25094
+ changed_by: string | null;
25095
+ changed_by_role: string | null;
25096
+ connection_id: string;
25097
+ field: string;
25098
+ id: string;
25099
+ new_value: string | null;
25100
+ note: string | null;
25101
+ office_code: string | null;
25102
+ old_value: string | null;
25103
+ };
25104
+ Insert: {
25105
+ changed_at?: string;
25106
+ changed_by?: string | null;
25107
+ changed_by_role?: string | null;
25108
+ connection_id: string;
25109
+ field: string;
25110
+ id?: string;
25111
+ new_value?: string | null;
25112
+ note?: string | null;
25113
+ office_code?: string | null;
25114
+ old_value?: string | null;
25115
+ };
25116
+ Update: {
25117
+ changed_at?: string;
25118
+ changed_by?: string | null;
25119
+ changed_by_role?: string | null;
25120
+ connection_id?: string;
25121
+ field?: string;
25122
+ id?: string;
25123
+ new_value?: string | null;
25124
+ note?: string | null;
25125
+ office_code?: string | null;
25126
+ old_value?: string | null;
25127
+ };
25128
+ Relationships: [];
25129
+ };
24700
25130
  twinfield_connections: {
24701
25131
  Row: {
24702
25132
  account_key: string | null;
25133
+ central_environment: string | null;
24703
25134
  cluster_uri: string | null;
24704
25135
  company_code: string | null;
24705
25136
  company_name: string | null;
24706
25137
  connected_at: string | null;
24707
25138
  created_at: string;
24708
25139
  disconnected_at: string | null;
24709
- environment: string;
25140
+ environment: string | null;
24710
25141
  granted_scopes: string[] | null;
24711
25142
  id: string;
24712
25143
  initial_sync_completed_at: string | null;
@@ -24715,8 +25146,12 @@ export type Database = {
24715
25146
  initial_sync_started_at: string | null;
24716
25147
  is_active: boolean;
24717
25148
  label: string | null;
25149
+ label_set_at: string | null;
25150
+ label_set_by: string | null;
25151
+ label_source: string | null;
24718
25152
  missing_scopes: string[] | null;
24719
25153
  office_code: string | null;
25154
+ organisation_code: string | null;
24720
25155
  redirect_uri: string | null;
24721
25156
  scope_checked_at: string | null;
24722
25157
  scope_state: string | null;
@@ -24730,13 +25165,14 @@ export type Database = {
24730
25165
  };
24731
25166
  Insert: {
24732
25167
  account_key?: string | null;
25168
+ central_environment?: string | null;
24733
25169
  cluster_uri?: string | null;
24734
25170
  company_code?: string | null;
24735
25171
  company_name?: string | null;
24736
25172
  connected_at?: string | null;
24737
25173
  created_at?: string;
24738
25174
  disconnected_at?: string | null;
24739
- environment: string;
25175
+ environment?: string | null;
24740
25176
  granted_scopes?: string[] | null;
24741
25177
  id?: string;
24742
25178
  initial_sync_completed_at?: string | null;
@@ -24745,8 +25181,12 @@ export type Database = {
24745
25181
  initial_sync_started_at?: string | null;
24746
25182
  is_active?: boolean;
24747
25183
  label?: string | null;
25184
+ label_set_at?: string | null;
25185
+ label_set_by?: string | null;
25186
+ label_source?: string | null;
24748
25187
  missing_scopes?: string[] | null;
24749
25188
  office_code?: string | null;
25189
+ organisation_code?: string | null;
24750
25190
  redirect_uri?: string | null;
24751
25191
  scope_checked_at?: string | null;
24752
25192
  scope_state?: string | null;
@@ -24760,13 +25200,14 @@ export type Database = {
24760
25200
  };
24761
25201
  Update: {
24762
25202
  account_key?: string | null;
25203
+ central_environment?: string | null;
24763
25204
  cluster_uri?: string | null;
24764
25205
  company_code?: string | null;
24765
25206
  company_name?: string | null;
24766
25207
  connected_at?: string | null;
24767
25208
  created_at?: string;
24768
25209
  disconnected_at?: string | null;
24769
- environment?: string;
25210
+ environment?: string | null;
24770
25211
  granted_scopes?: string[] | null;
24771
25212
  id?: string;
24772
25213
  initial_sync_completed_at?: string | null;
@@ -24775,8 +25216,12 @@ export type Database = {
24775
25216
  initial_sync_started_at?: string | null;
24776
25217
  is_active?: boolean;
24777
25218
  label?: string | null;
25219
+ label_set_at?: string | null;
25220
+ label_set_by?: string | null;
25221
+ label_source?: string | null;
24778
25222
  missing_scopes?: string[] | null;
24779
25223
  office_code?: string | null;
25224
+ organisation_code?: string | null;
24780
25225
  redirect_uri?: string | null;
24781
25226
  scope_checked_at?: string | null;
24782
25227
  scope_state?: string | null;
@@ -25716,33 +26161,36 @@ export type Database = {
25716
26161
  };
25717
26162
  twinfield_settings: {
25718
26163
  Row: {
25719
- active_environment: string;
26164
+ active_environment: string | null;
25720
26165
  cron_registered_at: string | null;
25721
26166
  cron_registration_error: string | null;
25722
26167
  cron_schedules: Json;
25723
26168
  cron_timeouts: Json;
25724
26169
  id: number;
25725
26170
  public_base_url: string | null;
26171
+ token_route_bearer_open: boolean;
25726
26172
  updated_at: string;
25727
26173
  };
25728
26174
  Insert: {
25729
- active_environment?: string;
26175
+ active_environment?: string | null;
25730
26176
  cron_registered_at?: string | null;
25731
26177
  cron_registration_error?: string | null;
25732
26178
  cron_schedules?: Json;
25733
26179
  cron_timeouts?: Json;
25734
26180
  id?: number;
25735
26181
  public_base_url?: string | null;
26182
+ token_route_bearer_open?: boolean;
25736
26183
  updated_at?: string;
25737
26184
  };
25738
26185
  Update: {
25739
- active_environment?: string;
26186
+ active_environment?: string | null;
25740
26187
  cron_registered_at?: string | null;
25741
26188
  cron_registration_error?: string | null;
25742
26189
  cron_schedules?: Json;
25743
26190
  cron_timeouts?: Json;
25744
26191
  id?: number;
25745
26192
  public_base_url?: string | null;
26193
+ token_route_bearer_open?: boolean;
25746
26194
  updated_at?: string;
25747
26195
  };
25748
26196
  Relationships: [];
@@ -25972,6 +26420,39 @@ export type Database = {
25972
26420
  }
25973
26421
  ];
25974
26422
  };
26423
+ twinfield_token_issue_log: {
26424
+ Row: {
26425
+ caller_kind: string;
26426
+ connection_id: string | null;
26427
+ id: string;
26428
+ issued_at: string;
26429
+ module_id: string | null;
26430
+ outcome: string;
26431
+ route: string;
26432
+ user_id: string | null;
26433
+ };
26434
+ Insert: {
26435
+ caller_kind: string;
26436
+ connection_id?: string | null;
26437
+ id?: string;
26438
+ issued_at?: string;
26439
+ module_id?: string | null;
26440
+ outcome: string;
26441
+ route: string;
26442
+ user_id?: string | null;
26443
+ };
26444
+ Update: {
26445
+ caller_kind?: string;
26446
+ connection_id?: string | null;
26447
+ id?: string;
26448
+ issued_at?: string;
26449
+ module_id?: string | null;
26450
+ outcome?: string;
26451
+ route?: string;
26452
+ user_id?: string | null;
26453
+ };
26454
+ Relationships: [];
26455
+ };
25975
26456
  twinfield_vat_code_map: {
25976
26457
  Row: {
25977
26458
  confirmed_at: string | null;
@@ -26898,6 +27379,36 @@ export type Database = {
26898
27379
  };
26899
27380
  Relationships: [];
26900
27381
  };
27382
+ voorraad_correcties: {
27383
+ Row: {
27384
+ aantallen: Json;
27385
+ correctie: string;
27386
+ hash_ok: boolean | null;
27387
+ id: string;
27388
+ proef: boolean;
27389
+ uitgevoerd_door: string;
27390
+ uitgevoerd_op: string;
27391
+ };
27392
+ Insert: {
27393
+ aantallen?: Json;
27394
+ correctie: string;
27395
+ hash_ok?: boolean | null;
27396
+ id?: string;
27397
+ proef: boolean;
27398
+ uitgevoerd_door: string;
27399
+ uitgevoerd_op?: string;
27400
+ };
27401
+ Update: {
27402
+ aantallen?: Json;
27403
+ correctie?: string;
27404
+ hash_ok?: boolean | null;
27405
+ id?: string;
27406
+ proef?: boolean;
27407
+ uitgevoerd_door?: string;
27408
+ uitgevoerd_op?: string;
27409
+ };
27410
+ Relationships: [];
27411
+ };
26901
27412
  voorraad_custom_fields: {
26902
27413
  Row: {
26903
27414
  created_at: string;
@@ -29652,6 +30163,28 @@ export type Database = {
29652
30163
  Args: never;
29653
30164
  Returns: boolean;
29654
30165
  };
30166
+ afh_assert_ingelogd: {
30167
+ Args: never;
30168
+ Returns: undefined;
30169
+ };
30170
+ afh_assert_intern: {
30171
+ Args: never;
30172
+ Returns: undefined;
30173
+ };
30174
+ afh_assert_server: {
30175
+ Args: never;
30176
+ Returns: undefined;
30177
+ };
30178
+ afh_can_manage_carriers: {
30179
+ Args: {
30180
+ p_user: string;
30181
+ };
30182
+ Returns: boolean;
30183
+ };
30184
+ afh_carrier_managers_count: {
30185
+ Args: never;
30186
+ Returns: number;
30187
+ };
29655
30188
  afh_city_code: {
29656
30189
  Args: {
29657
30190
  _city: string;
@@ -29659,12 +30192,29 @@ export type Database = {
29659
30192
  };
29660
30193
  Returns: string;
29661
30194
  };
30195
+ afh_ensure_defaults: {
30196
+ Args: never;
30197
+ Returns: Json;
30198
+ };
30199
+ afh_favorite_carrier: {
30200
+ Args: never;
30201
+ Returns: {
30202
+ carrier_id: string;
30203
+ carrier_kind: string;
30204
+ email: string;
30205
+ name: string;
30206
+ }[];
30207
+ };
29662
30208
  afh_html: {
29663
30209
  Args: {
29664
30210
  _s: string;
29665
30211
  };
29666
30212
  Returns: string;
29667
30213
  };
30214
+ afh_is_server: {
30215
+ Args: never;
30216
+ Returns: boolean;
30217
+ };
29668
30218
  afh_kar_tekst: {
29669
30219
  Args: {
29670
30220
  n: number;
@@ -29695,6 +30245,16 @@ export type Database = {
29695
30245
  };
29696
30246
  Returns: boolean;
29697
30247
  };
30248
+ afh_order_floriday_herkomst_onbekend: {
30249
+ Args: {
30250
+ p_order_id: string;
30251
+ };
30252
+ Returns: boolean;
30253
+ };
30254
+ afh_orders_have_carrier_id: {
30255
+ Args: never;
30256
+ Returns: boolean;
30257
+ };
29698
30258
  afh_pick_workdays: {
29699
30259
  Args: {
29700
30260
  p_from: string;
@@ -29702,6 +30262,35 @@ export type Database = {
29702
30262
  };
29703
30263
  Returns: Json;
29704
30264
  };
30265
+ afh_resolve_cart_id: {
30266
+ Args: {
30267
+ p_cart_index: number;
30268
+ p_given: string;
30269
+ p_order: string;
30270
+ p_source: string;
30271
+ };
30272
+ Returns: string;
30273
+ };
30274
+ afh_set_favorite_carrier: {
30275
+ Args: {
30276
+ p_carrier_id: string;
30277
+ };
30278
+ Returns: Json;
30279
+ };
30280
+ afh_set_signup_auto_send: {
30281
+ Args: {
30282
+ p_on: boolean;
30283
+ };
30284
+ Returns: Json;
30285
+ };
30286
+ afh_signup_auto_send_on: {
30287
+ Args: never;
30288
+ Returns: boolean;
30289
+ };
30290
+ afh_signup_auto_send_status: {
30291
+ Args: never;
30292
+ Returns: Json;
30293
+ };
29705
30294
  afh_signup_config: {
29706
30295
  Args: never;
29707
30296
  Returns: Json;
@@ -29737,6 +30326,14 @@ export type Database = {
29737
30326
  };
29738
30327
  Returns: Json;
29739
30328
  };
30329
+ afh_signup_groups_floriday: {
30330
+ Args: {
30331
+ p_from: string;
30332
+ p_to: string;
30333
+ p_tz: string;
30334
+ };
30335
+ Returns: Json;
30336
+ };
29740
30337
  afh_signup_groups_wacht: {
29741
30338
  Args: {
29742
30339
  p_from: string;
@@ -29798,6 +30395,10 @@ export type Database = {
29798
30395
  };
29799
30396
  Returns: string;
29800
30397
  };
30398
+ afhandeling_install_check: {
30399
+ Args: never;
30400
+ Returns: Json;
30401
+ };
29801
30402
  afhandeling_signup_cron_status: {
29802
30403
  Args: never;
29803
30404
  Returns: Json;
@@ -29982,6 +30583,13 @@ export type Database = {
29982
30583
  };
29983
30584
  Returns: Json;
29984
30585
  };
30586
+ carrier_signup_ready_list: {
30587
+ Args: {
30588
+ p_from: string;
30589
+ p_to: string;
30590
+ };
30591
+ Returns: Json;
30592
+ };
29985
30593
  carrier_signup_send_now: {
29986
30594
  Args: {
29987
30595
  p_carrier_id: string;
@@ -30530,6 +31138,7 @@ export type Database = {
30530
31138
  control_get_todays_carts: {
30531
31139
  Args: never;
30532
31140
  Returns: {
31141
+ carrier_name: string;
30533
31142
  cart_index: number;
30534
31143
  cart_number: string;
30535
31144
  cart_number_id: string;
@@ -30928,6 +31537,14 @@ export type Database = {
30928
31537
  Args: never;
30929
31538
  Returns: Json;
30930
31539
  };
31540
+ floriday_background_jobs_status: {
31541
+ Args: never;
31542
+ Returns: {
31543
+ active: boolean;
31544
+ jobname: string;
31545
+ schedule: string;
31546
+ }[];
31547
+ };
30931
31548
  floriday_capture_stock_snapshot: {
30932
31549
  Args: never;
30933
31550
  Returns: number;
@@ -31044,6 +31661,10 @@ export type Database = {
31044
31661
  };
31045
31662
  Returns: Json;
31046
31663
  };
31664
+ floriday_legacy_packing_sync_present: {
31665
+ Args: never;
31666
+ Returns: Json;
31667
+ };
31047
31668
  floriday_make_erp_leading: {
31048
31669
  Args: {
31049
31670
  p_connection_id: string;
@@ -31125,6 +31746,35 @@ export type Database = {
31125
31746
  Args: never;
31126
31747
  Returns: Json;
31127
31748
  };
31749
+ flowselections_central_status: {
31750
+ Args: never;
31751
+ Returns: {
31752
+ central_url_aanwezig: boolean;
31753
+ laatste_status: string;
31754
+ laatste_sync: string;
31755
+ token_aanwezig: boolean;
31756
+ }[];
31757
+ };
31758
+ flowselections_central_sync: {
31759
+ Args: never;
31760
+ Returns: string;
31761
+ };
31762
+ flowselections_cron_post: {
31763
+ Args: {
31764
+ p_auth?: string;
31765
+ p_body?: Json;
31766
+ p_path: string;
31767
+ p_timeout_ms?: number;
31768
+ };
31769
+ Returns: number;
31770
+ };
31771
+ flowselections_set_central_link: {
31772
+ Args: {
31773
+ p_central_url: string;
31774
+ p_read_token: string;
31775
+ };
31776
+ Returns: string;
31777
+ };
31128
31778
  format_cart_number: {
31129
31779
  Args: {
31130
31780
  p_pick_date: string;
@@ -32167,6 +32817,38 @@ export type Database = {
32167
32817
  };
32168
32818
  Returns: boolean;
32169
32819
  };
32820
+ logistics_acc_direct: {
32821
+ Args: {
32822
+ p_fn: string;
32823
+ };
32824
+ Returns: boolean;
32825
+ };
32826
+ logistics_acc_guard: {
32827
+ Args: {
32828
+ p_fn: string;
32829
+ p_level: string;
32830
+ };
32831
+ Returns: undefined;
32832
+ };
32833
+ logistics_acc_is_server: {
32834
+ Args: never;
32835
+ Returns: boolean;
32836
+ };
32837
+ logistics_acc_levels: {
32838
+ Args: never;
32839
+ Returns: {
32840
+ functie: string;
32841
+ niveau: string;
32842
+ }[];
32843
+ };
32844
+ logistics_access_check: {
32845
+ Args: never;
32846
+ Returns: {
32847
+ ok: boolean;
32848
+ onderdeel: string;
32849
+ toelichting: string;
32850
+ }[];
32851
+ };
32170
32852
  logistics_active_layout_method: {
32171
32853
  Args: never;
32172
32854
  Returns: string;
@@ -32517,6 +33199,17 @@ export type Database = {
32517
33199
  };
32518
33200
  Returns: Json;
32519
33201
  };
33202
+ logistics_carrier_enqueue: {
33203
+ Args: {
33204
+ p_order_ids: string[];
33205
+ p_reden: string;
33206
+ };
33207
+ Returns: number;
33208
+ };
33209
+ logistics_carrier_favorite_id: {
33210
+ Args: never;
33211
+ Returns: string;
33212
+ };
32520
33213
  logistics_carrier_for_location: {
32521
33214
  Args: {
32522
33215
  p_customer_id: string;
@@ -32524,6 +33217,12 @@ export type Database = {
32524
33217
  };
32525
33218
  Returns: string;
32526
33219
  };
33220
+ logistics_carrier_frozen_reason: {
33221
+ Args: {
33222
+ p_order_id: string;
33223
+ };
33224
+ Returns: string;
33225
+ };
32527
33226
  logistics_carrier_minutes: {
32528
33227
  Args: {
32529
33228
  p_carrier: string;
@@ -32531,6 +33230,86 @@ export type Database = {
32531
33230
  };
32532
33231
  Returns: number;
32533
33232
  };
33233
+ logistics_carrier_picks_up_for: {
33234
+ Args: {
33235
+ p_carrier_id: string;
33236
+ p_delivery_date: string;
33237
+ };
33238
+ Returns: boolean;
33239
+ };
33240
+ logistics_carrier_preview_existing: {
33241
+ Args: {
33242
+ p_limit?: number;
33243
+ };
33244
+ Returns: {
33245
+ bevroren: string;
33246
+ bron: string;
33247
+ carrier_id: string;
33248
+ carrier_kind: string;
33249
+ carrier_name: string;
33250
+ delivery_date: string;
33251
+ huidig_custom_carrier: string;
33252
+ order_id: string;
33253
+ order_number: string;
33254
+ order_source: string;
33255
+ reden: string;
33256
+ }[];
33257
+ };
33258
+ logistics_carrier_promote_oud: {
33259
+ Args: {
33260
+ p_confirm_count: number;
33261
+ p_order_ids: string[];
33262
+ };
33263
+ Returns: number;
33264
+ };
33265
+ logistics_carrier_recalc_run: {
33266
+ Args: {
33267
+ p_limit?: number;
33268
+ };
33269
+ Returns: Json;
33270
+ };
33271
+ logistics_carrier_result: {
33272
+ Args: {
33273
+ p_bron: string;
33274
+ p_carrier_id: string;
33275
+ p_reden: string;
33276
+ p_skips: string[];
33277
+ };
33278
+ Returns: Json;
33279
+ };
33280
+ logistics_carrier_set_backfill: {
33281
+ Args: {
33282
+ p_on: boolean;
33283
+ };
33284
+ Returns: Json;
33285
+ };
33286
+ logistics_carrier_settings_ensure: {
33287
+ Args: never;
33288
+ Returns: {
33289
+ backfill_existing: boolean;
33290
+ backfill_set_at: string | null;
33291
+ backfill_set_by: string | null;
33292
+ id: boolean;
33293
+ installed_at: string;
33294
+ updated_at: string;
33295
+ };
33296
+ SetofOptions: {
33297
+ from: "*";
33298
+ to: "logistics_carrier_settings";
33299
+ isOneToOne: true;
33300
+ isSetofReturn: false;
33301
+ };
33302
+ };
33303
+ logistics_carrier_skip_reason: {
33304
+ Args: {
33305
+ p_carrier_id: string;
33306
+ };
33307
+ Returns: string;
33308
+ };
33309
+ logistics_carrier_status: {
33310
+ Args: never;
33311
+ Returns: Json;
33312
+ };
32534
33313
  logistics_cart_archive: {
32535
33314
  Args: {
32536
33315
  p_confirm_count: number;
@@ -33551,6 +34330,14 @@ export type Database = {
33551
34330
  Args: never;
33552
34331
  Returns: number;
33553
34332
  };
34333
+ logistics_install_check: {
34334
+ Args: never;
34335
+ Returns: {
34336
+ ok: boolean;
34337
+ onderdeel: string;
34338
+ toelichting: string;
34339
+ }[];
34340
+ };
33554
34341
  logistics_is_beheer: {
33555
34342
  Args: never;
33556
34343
  Returns: boolean;
@@ -33721,6 +34508,18 @@ export type Database = {
33721
34508
  };
33722
34509
  Returns: string;
33723
34510
  };
34511
+ logistics_order_carrier_info: {
34512
+ Args: {
34513
+ p_order_id: string;
34514
+ };
34515
+ Returns: Json;
34516
+ };
34517
+ logistics_order_carrier_label: {
34518
+ Args: {
34519
+ p_order_id: string;
34520
+ };
34521
+ Returns: string;
34522
+ };
33724
34523
  logistics_order_cart_approval: {
33725
34524
  Args: {
33726
34525
  _order_ref: string;
@@ -34761,6 +35560,59 @@ export type Database = {
34761
35560
  Args: never;
34762
35561
  Returns: undefined;
34763
35562
  };
35563
+ logistics_resolve_carrier: {
35564
+ Args: {
35565
+ p_order_id: string;
35566
+ };
35567
+ Returns: Json;
35568
+ };
35569
+ logistics_resolve_carrier_core: {
35570
+ Args: {
35571
+ p_order: Json;
35572
+ p_skip_manual?: boolean;
35573
+ };
35574
+ Returns: Json;
35575
+ };
35576
+ logistics_resolve_carrier_for_location: {
35577
+ Args: {
35578
+ p_customer_id: string;
35579
+ p_location_id: string;
35580
+ };
35581
+ Returns: Json;
35582
+ };
35583
+ logistics_resolve_carrier_for_location_many: {
35584
+ Args: {
35585
+ p_items: Json;
35586
+ };
35587
+ Returns: {
35588
+ bron: string;
35589
+ carrier_id: string;
35590
+ carrier_kind: string;
35591
+ carrier_name: string;
35592
+ customer_id: string;
35593
+ location_id: string;
35594
+ reden: string;
35595
+ waarschuwing: string;
35596
+ }[];
35597
+ } | {
35598
+ Args: {
35599
+ p_customer_id: string;
35600
+ p_location_ids: string[];
35601
+ };
35602
+ Returns: {
35603
+ location_id: string;
35604
+ resultaat: Json;
35605
+ }[];
35606
+ };
35607
+ logistics_resolve_carrier_many: {
35608
+ Args: {
35609
+ p_order_ids: string[];
35610
+ };
35611
+ Returns: {
35612
+ order_id: string;
35613
+ resultaat: Json;
35614
+ }[];
35615
+ };
34764
35616
  logistics_resolve_pick_document: {
34765
35617
  Args: {
34766
35618
  _is_herprint: boolean;
@@ -34870,6 +35722,20 @@ export type Database = {
34870
35722
  };
34871
35723
  Returns: Json;
34872
35724
  };
35725
+ logistics_set_order_carrier: {
35726
+ Args: {
35727
+ p_carrier_id: string;
35728
+ p_order_id: string;
35729
+ };
35730
+ Returns: Json;
35731
+ } | {
35732
+ Args: {
35733
+ p_actor: string;
35734
+ p_carrier_id: string;
35735
+ p_order_id: string;
35736
+ };
35737
+ Returns: Json;
35738
+ };
34873
35739
  logistics_set_order_priority: {
34874
35740
  Args: {
34875
35741
  p_order_ref: string;
@@ -35105,6 +35971,16 @@ export type Database = {
35105
35971
  };
35106
35972
  Returns: string;
35107
35973
  };
35974
+ logistics_sticker_copies: {
35975
+ Args: {
35976
+ p_fi: Json;
35977
+ p_order: string;
35978
+ p_sticker: string;
35979
+ p_trade_item: string;
35980
+ p_type: string;
35981
+ };
35982
+ Returns: Json;
35983
+ };
35108
35984
  logistics_sticker_distribution: {
35109
35985
  Args: {
35110
35986
  p_copies: number;
@@ -35119,6 +35995,10 @@ export type Database = {
35119
35995
  pieces: number;
35120
35996
  }[];
35121
35997
  };
35998
+ logistics_sticker_etiket_status: {
35999
+ Args: never;
36000
+ Returns: Json;
36001
+ };
35122
36002
  logistics_sticker_external_fulfilled: {
35123
36003
  Args: {
35124
36004
  p_sticker_print_id: string;
@@ -35138,6 +36018,13 @@ export type Database = {
35138
36018
  };
35139
36019
  Returns: boolean;
35140
36020
  };
36021
+ logistics_sticker_order_counts: {
36022
+ Args: {
36023
+ p_order: string;
36024
+ p_trade_item: string;
36025
+ };
36026
+ Returns: Json;
36027
+ };
35141
36028
  logistics_sticker_parse_size: {
35142
36029
  Args: {
35143
36030
  p: Json;
@@ -36835,6 +37722,34 @@ export type Database = {
36835
37722
  };
36836
37723
  Returns: Record<string, unknown>;
36837
37724
  };
37725
+ product_packings_derive: {
37726
+ Args: {
37727
+ p_product_id: string;
37728
+ };
37729
+ Returns: undefined;
37730
+ };
37731
+ product_packings_replace: {
37732
+ Args: {
37733
+ p_packings: Json;
37734
+ p_product_id: string;
37735
+ p_source: string;
37736
+ };
37737
+ Returns: number;
37738
+ };
37739
+ product_packings_sync_from_floriday: {
37740
+ Args: {
37741
+ p_connection_id: string;
37742
+ p_only_existing?: boolean;
37743
+ p_product_ids: string[];
37744
+ };
37745
+ Returns: Json;
37746
+ };
37747
+ product_primary_pieces: {
37748
+ Args: {
37749
+ p_product_id: string;
37750
+ };
37751
+ Returns: number;
37752
+ };
36838
37753
  product_set_depth_above: {
36839
37754
  Args: {
36840
37755
  p_path?: string[];
@@ -38058,12 +38973,6 @@ export type Database = {
38058
38973
  Args: never;
38059
38974
  Returns: undefined;
38060
38975
  };
38061
- sync_cached_packing_from_product: {
38062
- Args: {
38063
- p_product_id: string;
38064
- };
38065
- Returns: undefined;
38066
- };
38067
38976
  sync_floriday_prices_into_price_groups: {
38068
38977
  Args: never;
38069
38978
  Returns: number;
@@ -38074,12 +38983,6 @@ export type Database = {
38074
38983
  };
38075
38984
  Returns: undefined;
38076
38985
  };
38077
- sync_order_cart_item_packing_from_product: {
38078
- Args: {
38079
- p_product_id: string;
38080
- };
38081
- Returns: undefined;
38082
- };
38083
38986
  sync_order_item_fusten: {
38084
38987
  Args: {
38085
38988
  _order_item_id: string;
@@ -38092,12 +38995,6 @@ export type Database = {
38092
38995
  };
38093
38996
  Returns: undefined;
38094
38997
  };
38095
- sync_product_packing_from_floriday_cache: {
38096
- Args: {
38097
- p_floriday_id: string;
38098
- };
38099
- Returns: undefined;
38100
- };
38101
38998
  sync_sick_time_off: {
38102
38999
  Args: {
38103
39000
  _period_id: string;
@@ -38128,6 +39025,26 @@ export type Database = {
38128
39025
  };
38129
39026
  Returns: boolean;
38130
39027
  };
39028
+ twinfield_assert_caller: {
39029
+ Args: {
39030
+ p_level: string;
39031
+ p_owner?: string;
39032
+ };
39033
+ Returns: undefined;
39034
+ };
39035
+ twinfield_auth_install_check: {
39036
+ Args: never;
39037
+ Returns: {
39038
+ object_kind: string;
39039
+ object_name: string;
39040
+ present: boolean;
39041
+ schema_version: string;
39042
+ }[];
39043
+ };
39044
+ twinfield_caller_is_server: {
39045
+ Args: never;
39046
+ Returns: boolean;
39047
+ };
38131
39048
  twinfield_cancel_queue_item: {
38132
39049
  Args: {
38133
39050
  p_id: string;
@@ -38137,9 +39054,30 @@ export type Database = {
38137
39054
  twinfield_connection_offices: {
38138
39055
  Args: never;
38139
39056
  Returns: {
39057
+ company_name: string;
39058
+ connection_id: string;
39059
+ environment: string;
39060
+ in_shell_omgeving: boolean;
39061
+ is_active: boolean;
39062
+ label_source: string;
39063
+ office_code: string;
39064
+ }[];
39065
+ };
39066
+ twinfield_connection_usage: {
39067
+ Args: never;
39068
+ Returns: {
39069
+ archived: boolean;
39070
+ company_name: string;
39071
+ connected_at: string;
38140
39072
  connection_id: string;
39073
+ environment: string;
39074
+ gebruikt_door_facturatie: boolean;
39075
+ in_shell_omgeving: boolean;
38141
39076
  is_active: boolean;
39077
+ label_source: string;
39078
+ leest: boolean;
38142
39079
  office_code: string;
39080
+ user_id: string;
38143
39081
  }[];
38144
39082
  };
38145
39083
  twinfield_cron_lock_acquire: {
@@ -38163,6 +39101,26 @@ export type Database = {
38163
39101
  };
38164
39102
  Returns: Json;
38165
39103
  };
39104
+ twinfield_facturatie_assert_server: {
39105
+ Args: {
39106
+ _functie: string;
39107
+ };
39108
+ Returns: undefined;
39109
+ };
39110
+ twinfield_facturatie_assert_trigger_or_server: {
39111
+ Args: {
39112
+ _functie: string;
39113
+ };
39114
+ Returns: undefined;
39115
+ };
39116
+ twinfield_facturatie_install_check: {
39117
+ Args: never;
39118
+ Returns: Json;
39119
+ };
39120
+ twinfield_facturatie_is_server: {
39121
+ Args: never;
39122
+ Returns: boolean;
39123
+ };
38166
39124
  twinfield_gated_queue: {
38167
39125
  Args: {
38168
39126
  p_connection_id: string;
@@ -38187,10 +39145,24 @@ export type Database = {
38187
39145
  Args: never;
38188
39146
  Returns: boolean;
38189
39147
  };
39148
+ twinfield_mark_label_pending: {
39149
+ Args: {
39150
+ p_connection_id: string;
39151
+ };
39152
+ Returns: boolean;
39153
+ };
38190
39154
  twinfield_prune_push_queue: {
38191
39155
  Args: never;
38192
39156
  Returns: number;
38193
39157
  };
39158
+ twinfield_record_central_facts: {
39159
+ Args: {
39160
+ p_central_environment: string;
39161
+ p_connection_id: string;
39162
+ p_organisation_code: string;
39163
+ };
39164
+ Returns: Json;
39165
+ };
38194
39166
  twinfield_register_cron: {
38195
39167
  Args: {
38196
39168
  apikey?: string;
@@ -38198,6 +39170,14 @@ export type Database = {
38198
39170
  };
38199
39171
  Returns: Json;
38200
39172
  };
39173
+ twinfield_set_connection_label: {
39174
+ Args: {
39175
+ p_also_shell?: boolean;
39176
+ p_connection_id: string;
39177
+ p_environment: string;
39178
+ };
39179
+ Returns: Json;
39180
+ };
38201
39181
  twinfield_set_write_enabled: {
38202
39182
  Args: {
38203
39183
  p_connection_id: string;
@@ -38761,6 +39741,13 @@ export type Database = {
38761
39741
  };
38762
39742
  Returns: number;
38763
39743
  };
39744
+ verkoop_assert_caller: {
39745
+ Args: {
39746
+ p_level: string;
39747
+ p_roles?: Database["public"]["Enums"]["app_role"][];
39748
+ };
39749
+ Returns: undefined;
39750
+ };
38764
39751
  verkoop_create_order: {
38765
39752
  Args: {
38766
39753
  p_accept_late_signup?: boolean;
@@ -38779,6 +39766,75 @@ export type Database = {
38779
39766
  };
38780
39767
  Returns: Json;
38781
39768
  };
39769
+ verkoop_guarded_functions: {
39770
+ Args: never;
39771
+ Returns: {
39772
+ niveau: string;
39773
+ opmerking: string;
39774
+ rollen: string;
39775
+ sig: string;
39776
+ }[];
39777
+ };
39778
+ verkoop_insert_manual_order: {
39779
+ Args: {
39780
+ p_idempotency_key: string;
39781
+ p_items: Json;
39782
+ p_order: Json;
39783
+ };
39784
+ Returns: Json;
39785
+ };
39786
+ verkoop_install_check: {
39787
+ Args: never;
39788
+ Returns: {
39789
+ aanwezig: boolean;
39790
+ anon_uitvoerrecht: boolean;
39791
+ authenticated_uitvoerrecht: boolean;
39792
+ naam: string;
39793
+ niveau: string;
39794
+ opmerking: string;
39795
+ poort_aanwezig: boolean;
39796
+ soort: string;
39797
+ }[];
39798
+ };
39799
+ verkoop_is_server: {
39800
+ Args: never;
39801
+ Returns: boolean;
39802
+ };
39803
+ verkoop_packing_drift_apply: {
39804
+ Args: {
39805
+ p_order_ids: string[];
39806
+ };
39807
+ Returns: {
39808
+ lines_updated: number;
39809
+ order_id: string;
39810
+ order_number: string;
39811
+ replan_event: string;
39812
+ }[];
39813
+ };
39814
+ verkoop_packing_drift_report: {
39815
+ Args: never;
39816
+ Returns: {
39817
+ afgesloten: boolean;
39818
+ cache_match: string;
39819
+ cur_crates_per_layer: number;
39820
+ cur_layers_per_cart: number;
39821
+ cur_load_carrier_type: string;
39822
+ cur_packing_source: string;
39823
+ cur_plants_per_crate: number;
39824
+ cur_vbn_package_code: string;
39825
+ fd_crates_per_layer: number;
39826
+ fd_layers_per_cart: number;
39827
+ fd_load_carrier_type: string;
39828
+ fd_plants_per_crate: number;
39829
+ fd_vbn_package_code: string;
39830
+ order_id: string;
39831
+ order_item_id: string;
39832
+ order_number: string;
39833
+ order_status: string;
39834
+ sales_order_id: string;
39835
+ vastgezet: boolean;
39836
+ }[];
39837
+ };
38782
39838
  vervang_printer: {
38783
39839
  Args: {
38784
39840
  _nieuw: string;
@@ -38817,6 +39873,18 @@ export type Database = {
38817
39873
  };
38818
39874
  Returns: number;
38819
39875
  };
39876
+ voorraad_correctie_1098: {
39877
+ Args: {
39878
+ p_uitvoeren?: boolean;
39879
+ };
39880
+ Returns: Json;
39881
+ };
39882
+ voorraad_correctie_status: {
39883
+ Args: {
39884
+ p_correctie?: string;
39885
+ };
39886
+ Returns: Json;
39887
+ };
38820
39888
  voorraad_external_fulfilled_ids: {
38821
39889
  Args: {
38822
39890
  p_cf: Json;
@@ -38846,6 +39914,10 @@ export type Database = {
38846
39914
  };
38847
39915
  Returns: undefined;
38848
39916
  };
39917
+ voorraad_is_server: {
39918
+ Args: never;
39919
+ Returns: boolean;
39920
+ };
38849
39921
  voorraad_mark_floriday_sold_before_switch: {
38850
39922
  Args: {
38851
39923
  p_product_id: string;