@flowselections/pick-schermen-kwekers 1.0.57 → 1.0.60

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 (36) hide show
  1. package/dist-lib/components/PickPublicPage.d.ts.map +1 -1
  2. package/dist-lib/components/PickPublicPage.js +33 -2
  3. package/dist-lib/components/PickstationsPage.d.ts.map +1 -1
  4. package/dist-lib/components/PickstationsPage.js +2 -1
  5. package/dist-lib/components/pick/StationDevices.d.ts +6 -0
  6. package/dist-lib/components/pick/StationDevices.d.ts.map +1 -0
  7. package/dist-lib/components/pick/StationDevices.js +55 -0
  8. package/dist-lib/components/pick/StationPairing.d.ts +7 -0
  9. package/dist-lib/components/pick/StationPairing.d.ts.map +1 -0
  10. package/dist-lib/components/pick/StationPairing.js +25 -0
  11. package/dist-lib/hooks/usePickQueue.d.ts.map +1 -1
  12. package/dist-lib/hooks/usePickQueue.js +4 -0
  13. package/dist-lib/index.d.ts +1 -0
  14. package/dist-lib/index.d.ts.map +1 -1
  15. package/dist-lib/index.js +1 -0
  16. package/dist-lib/integrations/supabase/types.d.ts +3400 -90
  17. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  18. package/dist-lib/lib/__tests__/pick159.test.d.ts +2 -0
  19. package/dist-lib/lib/__tests__/pick159.test.d.ts.map +1 -0
  20. package/dist-lib/lib/__tests__/pick159.test.js +36 -0
  21. package/dist-lib/lib/pick150.d.ts.map +1 -1
  22. package/dist-lib/lib/pick150.js +2 -1
  23. package/dist-lib/lib/pick152.d.ts.map +1 -1
  24. package/dist-lib/lib/pick152.js +2 -1
  25. package/dist-lib/lib/pick156.d.ts.map +1 -1
  26. package/dist-lib/lib/pick156.js +2 -1
  27. package/dist-lib/lib/pick159.d.ts +56 -0
  28. package/dist-lib/lib/pick159.d.ts.map +1 -0
  29. package/dist-lib/lib/pick159.js +125 -0
  30. package/dist-lib/lib/pickApi.d.ts.map +1 -1
  31. package/dist-lib/lib/pickApi.js +35 -81
  32. package/dist-lib/lib/pickPreview.d.ts.map +1 -1
  33. package/dist-lib/lib/pickPreview.js +3 -4
  34. package/dist-lib/lib/pickStickers.d.ts.map +1 -1
  35. package/dist-lib/lib/pickStickers.js +2 -1
  36. package/package.json +5 -3
@@ -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: {
@@ -6015,6 +6092,36 @@ export type Database = {
6015
6092
  };
6016
6093
  Relationships: [];
6017
6094
  };
6095
+ floricode_derived_list_state: {
6096
+ Row: {
6097
+ changed: number;
6098
+ cursor_record_id: string | null;
6099
+ done_at: string | null;
6100
+ list_name: string;
6101
+ pass_started_at: string | null;
6102
+ processed: number;
6103
+ updated_at: string;
6104
+ };
6105
+ Insert: {
6106
+ changed?: number;
6107
+ cursor_record_id?: string | null;
6108
+ done_at?: string | null;
6109
+ list_name: string;
6110
+ pass_started_at?: string | null;
6111
+ processed?: number;
6112
+ updated_at?: string;
6113
+ };
6114
+ Update: {
6115
+ changed?: number;
6116
+ cursor_record_id?: string | null;
6117
+ done_at?: string | null;
6118
+ list_name?: string;
6119
+ pass_started_at?: string | null;
6120
+ processed?: number;
6121
+ updated_at?: string;
6122
+ };
6123
+ Relationships: [];
6124
+ };
6018
6125
  floricode_records: {
6019
6126
  Row: {
6020
6127
  change_date_time: string | null;
@@ -7139,6 +7246,24 @@ export type Database = {
7139
7246
  }
7140
7247
  ];
7141
7248
  };
7249
+ floriday_cron_secret: {
7250
+ Row: {
7251
+ created_at: string;
7252
+ id: number;
7253
+ secret: string;
7254
+ };
7255
+ Insert: {
7256
+ created_at?: string;
7257
+ id?: number;
7258
+ secret: string;
7259
+ };
7260
+ Update: {
7261
+ created_at?: string;
7262
+ id?: number;
7263
+ secret?: string;
7264
+ };
7265
+ Relationships: [];
7266
+ };
7142
7267
  floriday_customer_offers_cache: {
7143
7268
  Row: {
7144
7269
  connection_id: string;
@@ -7276,16 +7401,22 @@ export type Database = {
7276
7401
  connection_id: string;
7277
7402
  created_at: string;
7278
7403
  data: Json;
7404
+ delivery_date_time: string | null;
7279
7405
  fetched_at: string;
7280
7406
  floriday_id: string;
7407
+ has_file: boolean | null;
7281
7408
  id: string;
7282
7409
  is_deleted: boolean;
7410
+ is_handled: boolean | null;
7411
+ last_requested_on: string | null;
7412
+ number_of_copies: number | null;
7283
7413
  quantity: number | null;
7284
7414
  sales_order_id: string | null;
7285
7415
  sequence_number: number;
7286
7416
  should_be_printed: boolean | null;
7287
7417
  status: string | null;
7288
7418
  sticker_height_mm: number | null;
7419
+ sticker_provided_by: string | null;
7289
7420
  sticker_type: string | null;
7290
7421
  sticker_width_mm: number | null;
7291
7422
  trade_item_id: string | null;
@@ -7295,16 +7426,22 @@ export type Database = {
7295
7426
  connection_id: string;
7296
7427
  created_at?: string;
7297
7428
  data?: Json;
7429
+ delivery_date_time?: string | null;
7298
7430
  fetched_at?: string;
7299
7431
  floriday_id: string;
7432
+ has_file?: boolean | null;
7300
7433
  id?: string;
7301
7434
  is_deleted?: boolean;
7435
+ is_handled?: boolean | null;
7436
+ last_requested_on?: string | null;
7437
+ number_of_copies?: number | null;
7302
7438
  quantity?: number | null;
7303
7439
  sales_order_id?: string | null;
7304
7440
  sequence_number?: number;
7305
7441
  should_be_printed?: boolean | null;
7306
7442
  status?: string | null;
7307
7443
  sticker_height_mm?: number | null;
7444
+ sticker_provided_by?: string | null;
7308
7445
  sticker_type?: string | null;
7309
7446
  sticker_width_mm?: number | null;
7310
7447
  trade_item_id?: string | null;
@@ -7314,16 +7451,22 @@ export type Database = {
7314
7451
  connection_id?: string;
7315
7452
  created_at?: string;
7316
7453
  data?: Json;
7454
+ delivery_date_time?: string | null;
7317
7455
  fetched_at?: string;
7318
7456
  floriday_id?: string;
7457
+ has_file?: boolean | null;
7319
7458
  id?: string;
7320
7459
  is_deleted?: boolean;
7460
+ is_handled?: boolean | null;
7461
+ last_requested_on?: string | null;
7462
+ number_of_copies?: number | null;
7321
7463
  quantity?: number | null;
7322
7464
  sales_order_id?: string | null;
7323
7465
  sequence_number?: number;
7324
7466
  should_be_printed?: boolean | null;
7325
7467
  status?: string | null;
7326
7468
  sticker_height_mm?: number | null;
7469
+ sticker_provided_by?: string | null;
7327
7470
  sticker_type?: string | null;
7328
7471
  sticker_width_mm?: number | null;
7329
7472
  trade_item_id?: string | null;
@@ -8206,6 +8349,59 @@ export type Database = {
8206
8349
  };
8207
8350
  Relationships: [];
8208
8351
  };
8352
+ floriday_packing_mismatches: {
8353
+ Row: {
8354
+ api_value: Json | null;
8355
+ cache_is_deleted: boolean;
8356
+ cache_value: Json | null;
8357
+ check_outcome: string;
8358
+ connection_id: string;
8359
+ details: string | null;
8360
+ detected_at: string;
8361
+ entity: string;
8362
+ floriday_id: string;
8363
+ id: string;
8364
+ last_checked_at: string;
8365
+ resolved_at: string | null;
8366
+ };
8367
+ Insert: {
8368
+ api_value?: Json | null;
8369
+ cache_is_deleted?: boolean;
8370
+ cache_value?: Json | null;
8371
+ check_outcome?: string;
8372
+ connection_id: string;
8373
+ details?: string | null;
8374
+ detected_at?: string;
8375
+ entity: string;
8376
+ floriday_id: string;
8377
+ id?: string;
8378
+ last_checked_at?: string;
8379
+ resolved_at?: string | null;
8380
+ };
8381
+ Update: {
8382
+ api_value?: Json | null;
8383
+ cache_is_deleted?: boolean;
8384
+ cache_value?: Json | null;
8385
+ check_outcome?: string;
8386
+ connection_id?: string;
8387
+ details?: string | null;
8388
+ detected_at?: string;
8389
+ entity?: string;
8390
+ floriday_id?: string;
8391
+ id?: string;
8392
+ last_checked_at?: string;
8393
+ resolved_at?: string | null;
8394
+ };
8395
+ Relationships: [
8396
+ {
8397
+ foreignKeyName: "floriday_packing_mismatches_connection_id_fkey";
8398
+ columns: ["connection_id"];
8399
+ isOneToOne: false;
8400
+ referencedRelation: "floriday_connections";
8401
+ referencedColumns: ["id"];
8402
+ }
8403
+ ];
8404
+ };
8209
8405
  floriday_packings_cache: {
8210
8406
  Row: {
8211
8407
  connection_id: string;
@@ -9335,6 +9531,105 @@ export type Database = {
9335
9531
  };
9336
9532
  Relationships: [];
9337
9533
  };
9534
+ flowselections_central_sync_state: {
9535
+ Row: {
9536
+ id: number;
9537
+ last_error_at: string | null;
9538
+ last_logged_at: string | null;
9539
+ last_logged_status: string | null;
9540
+ last_ok_at: string | null;
9541
+ last_status: string | null;
9542
+ request_id: number | null;
9543
+ requested_at: string | null;
9544
+ };
9545
+ Insert: {
9546
+ id: number;
9547
+ last_error_at?: string | null;
9548
+ last_logged_at?: string | null;
9549
+ last_logged_status?: string | null;
9550
+ last_ok_at?: string | null;
9551
+ last_status?: string | null;
9552
+ request_id?: number | null;
9553
+ requested_at?: string | null;
9554
+ };
9555
+ Update: {
9556
+ id?: number;
9557
+ last_error_at?: string | null;
9558
+ last_logged_at?: string | null;
9559
+ last_logged_status?: string | null;
9560
+ last_ok_at?: string | null;
9561
+ last_status?: string | null;
9562
+ request_id?: number | null;
9563
+ requested_at?: string | null;
9564
+ };
9565
+ Relationships: [];
9566
+ };
9567
+ flowselections_cron_claims: {
9568
+ Row: {
9569
+ jobname: string;
9570
+ module: string;
9571
+ placed_at: string;
9572
+ version: string | null;
9573
+ };
9574
+ Insert: {
9575
+ jobname: string;
9576
+ module: string;
9577
+ placed_at?: string;
9578
+ version?: string | null;
9579
+ };
9580
+ Update: {
9581
+ jobname?: string;
9582
+ module?: string;
9583
+ placed_at?: string;
9584
+ version?: string | null;
9585
+ };
9586
+ Relationships: [];
9587
+ };
9588
+ flowselections_cron_log: {
9589
+ Row: {
9590
+ detail: string | null;
9591
+ id: number;
9592
+ path: string | null;
9593
+ status: string;
9594
+ ts: string;
9595
+ };
9596
+ Insert: {
9597
+ detail?: string | null;
9598
+ id?: never;
9599
+ path?: string | null;
9600
+ status: string;
9601
+ ts?: string;
9602
+ };
9603
+ Update: {
9604
+ detail?: string | null;
9605
+ id?: never;
9606
+ path?: string | null;
9607
+ status?: string;
9608
+ ts?: string;
9609
+ };
9610
+ Relationships: [];
9611
+ };
9612
+ flowselections_cron_override: {
9613
+ Row: {
9614
+ aangemaakt_op: string;
9615
+ base_url: string;
9616
+ notitie: string | null;
9617
+ path_prefix: string;
9618
+ };
9619
+ Insert: {
9620
+ aangemaakt_op?: string;
9621
+ base_url: string;
9622
+ notitie?: string | null;
9623
+ path_prefix: string;
9624
+ };
9625
+ Update: {
9626
+ aangemaakt_op?: string;
9627
+ base_url?: string;
9628
+ notitie?: string | null;
9629
+ path_prefix?: string;
9630
+ };
9631
+ Relationships: [];
9632
+ };
9338
9633
  fust_stock_mutations: {
9339
9634
  Row: {
9340
9635
  created_at: string;
@@ -11444,6 +11739,33 @@ export type Database = {
11444
11739
  };
11445
11740
  Relationships: [];
11446
11741
  };
11742
+ klanten_correctie_log: {
11743
+ Row: {
11744
+ aanroeper: string | null;
11745
+ created_at: string;
11746
+ functie: string;
11747
+ id: string;
11748
+ resultaat: Json;
11749
+ uitgevoerd: boolean;
11750
+ };
11751
+ Insert: {
11752
+ aanroeper?: string | null;
11753
+ created_at?: string;
11754
+ functie: string;
11755
+ id?: string;
11756
+ resultaat: Json;
11757
+ uitgevoerd: boolean;
11758
+ };
11759
+ Update: {
11760
+ aanroeper?: string | null;
11761
+ created_at?: string;
11762
+ functie?: string;
11763
+ id?: string;
11764
+ resultaat?: Json;
11765
+ uitgevoerd?: boolean;
11766
+ };
11767
+ Relationships: [];
11768
+ };
11447
11769
  layout_auto_acties: {
11448
11770
  Row: {
11449
11771
  actie: string;
@@ -12149,6 +12471,36 @@ export type Database = {
12149
12471
  };
12150
12472
  Relationships: [];
12151
12473
  };
12474
+ logistics_belading_bevestigingen: {
12475
+ Row: {
12476
+ bevestigd_door: string | null;
12477
+ bevestigd_op: string;
12478
+ created_at: string;
12479
+ id: string;
12480
+ order_id: string;
12481
+ redenen: string[];
12482
+ verpakking_sleutel: string;
12483
+ };
12484
+ Insert: {
12485
+ bevestigd_door?: string | null;
12486
+ bevestigd_op?: string;
12487
+ created_at?: string;
12488
+ id?: string;
12489
+ order_id: string;
12490
+ redenen?: string[];
12491
+ verpakking_sleutel: string;
12492
+ };
12493
+ Update: {
12494
+ bevestigd_door?: string | null;
12495
+ bevestigd_op?: string;
12496
+ created_at?: string;
12497
+ id?: string;
12498
+ order_id?: string;
12499
+ redenen?: string[];
12500
+ verpakking_sleutel?: string;
12501
+ };
12502
+ Relationships: [];
12503
+ };
12152
12504
  logistics_capacity_alerts: {
12153
12505
  Row: {
12154
12506
  available_minutes: number;
@@ -12301,6 +12653,81 @@ export type Database = {
12301
12653
  };
12302
12654
  Relationships: [];
12303
12655
  };
12656
+ logistics_carrier_events: {
12657
+ Row: {
12658
+ bericht: string;
12659
+ created_at: string;
12660
+ id: number;
12661
+ order_id: string;
12662
+ soort: string;
12663
+ };
12664
+ Insert: {
12665
+ bericht: string;
12666
+ created_at?: string;
12667
+ id?: number;
12668
+ order_id: string;
12669
+ soort?: string;
12670
+ };
12671
+ Update: {
12672
+ bericht?: string;
12673
+ created_at?: string;
12674
+ id?: number;
12675
+ order_id?: string;
12676
+ soort?: string;
12677
+ };
12678
+ Relationships: [];
12679
+ };
12680
+ logistics_carrier_recalc_queue: {
12681
+ Row: {
12682
+ last_checked_at: string | null;
12683
+ order_id: string;
12684
+ processed_at: string | null;
12685
+ queued_at: string;
12686
+ reden: string;
12687
+ };
12688
+ Insert: {
12689
+ last_checked_at?: string | null;
12690
+ order_id: string;
12691
+ processed_at?: string | null;
12692
+ queued_at?: string;
12693
+ reden: string;
12694
+ };
12695
+ Update: {
12696
+ last_checked_at?: string | null;
12697
+ order_id?: string;
12698
+ processed_at?: string | null;
12699
+ queued_at?: string;
12700
+ reden?: string;
12701
+ };
12702
+ Relationships: [];
12703
+ };
12704
+ logistics_carrier_settings: {
12705
+ Row: {
12706
+ backfill_existing: boolean;
12707
+ backfill_set_at: string | null;
12708
+ backfill_set_by: string | null;
12709
+ id: boolean;
12710
+ installed_at: string;
12711
+ updated_at: string;
12712
+ };
12713
+ Insert: {
12714
+ backfill_existing?: boolean;
12715
+ backfill_set_at?: string | null;
12716
+ backfill_set_by?: string | null;
12717
+ id?: boolean;
12718
+ installed_at?: string;
12719
+ updated_at?: string;
12720
+ };
12721
+ Update: {
12722
+ backfill_existing?: boolean;
12723
+ backfill_set_at?: string | null;
12724
+ backfill_set_by?: string | null;
12725
+ id?: boolean;
12726
+ installed_at?: string;
12727
+ updated_at?: string;
12728
+ };
12729
+ Relationships: [];
12730
+ };
12304
12731
  logistics_cart_archive_log: {
12305
12732
  Row: {
12306
12733
  action: string;
@@ -14198,6 +14625,7 @@ export type Database = {
14198
14625
  hoogte_mm: number | null;
14199
14626
  id: string;
14200
14627
  kopieen: number;
14628
+ kopieen_bron: string | null;
14201
14629
  next_attempt_at: string | null;
14202
14630
  order_id: string | null;
14203
14631
  order_number: string | null;
@@ -14225,6 +14653,7 @@ export type Database = {
14225
14653
  hoogte_mm?: number | null;
14226
14654
  id?: string;
14227
14655
  kopieen?: number;
14656
+ kopieen_bron?: string | null;
14228
14657
  next_attempt_at?: string | null;
14229
14658
  order_id?: string | null;
14230
14659
  order_number?: string | null;
@@ -14252,6 +14681,7 @@ export type Database = {
14252
14681
  hoogte_mm?: number | null;
14253
14682
  id?: string;
14254
14683
  kopieen?: number;
14684
+ kopieen_bron?: string | null;
14255
14685
  next_attempt_at?: string | null;
14256
14686
  order_id?: string | null;
14257
14687
  order_number?: string | null;
@@ -16676,6 +17106,7 @@ export type Database = {
16676
17106
  status: string;
16677
17107
  subject: string;
16678
17108
  updated_at: string;
17109
+ valid_until: string | null;
16679
17110
  };
16680
17111
  Insert: {
16681
17112
  created_at?: string;
@@ -16690,6 +17121,7 @@ export type Database = {
16690
17121
  status?: string;
16691
17122
  subject: string;
16692
17123
  updated_at?: string;
17124
+ valid_until?: string | null;
16693
17125
  };
16694
17126
  Update: {
16695
17127
  created_at?: string;
@@ -16704,6 +17136,7 @@ export type Database = {
16704
17136
  status?: string;
16705
17137
  subject?: string;
16706
17138
  updated_at?: string;
17139
+ valid_until?: string | null;
16707
17140
  };
16708
17141
  Relationships: [];
16709
17142
  };
@@ -16752,6 +17185,8 @@ export type Database = {
16752
17185
  offer_orders: {
16753
17186
  Row: {
16754
17187
  campaign_id: string;
17188
+ carrier_warning: string | null;
17189
+ carrier_warning_at: string | null;
16755
17190
  created_at: string;
16756
17191
  customer_email: string;
16757
17192
  customer_id: string | null;
@@ -16760,6 +17195,9 @@ export type Database = {
16760
17195
  id: string;
16761
17196
  items: Json;
16762
17197
  notes: string | null;
17198
+ office_notification_at: string | null;
17199
+ office_notification_reason: string | null;
17200
+ office_notification_status: string | null;
16763
17201
  order_creation_attempts: number;
16764
17202
  order_creation_error: string | null;
16765
17203
  order_creation_failed_at: string | null;
@@ -16771,6 +17209,8 @@ export type Database = {
16771
17209
  };
16772
17210
  Insert: {
16773
17211
  campaign_id: string;
17212
+ carrier_warning?: string | null;
17213
+ carrier_warning_at?: string | null;
16774
17214
  created_at?: string;
16775
17215
  customer_email: string;
16776
17216
  customer_id?: string | null;
@@ -16779,6 +17219,9 @@ export type Database = {
16779
17219
  id?: string;
16780
17220
  items?: Json;
16781
17221
  notes?: string | null;
17222
+ office_notification_at?: string | null;
17223
+ office_notification_reason?: string | null;
17224
+ office_notification_status?: string | null;
16782
17225
  order_creation_attempts?: number;
16783
17226
  order_creation_error?: string | null;
16784
17227
  order_creation_failed_at?: string | null;
@@ -16790,6 +17233,8 @@ export type Database = {
16790
17233
  };
16791
17234
  Update: {
16792
17235
  campaign_id?: string;
17236
+ carrier_warning?: string | null;
17237
+ carrier_warning_at?: string | null;
16793
17238
  created_at?: string;
16794
17239
  customer_email?: string;
16795
17240
  customer_id?: string | null;
@@ -16798,6 +17243,9 @@ export type Database = {
16798
17243
  id?: string;
16799
17244
  items?: Json;
16800
17245
  notes?: string | null;
17246
+ office_notification_at?: string | null;
17247
+ office_notification_reason?: string | null;
17248
+ office_notification_status?: string | null;
16801
17249
  order_creation_attempts?: number;
16802
17250
  order_creation_error?: string | null;
16803
17251
  order_creation_failed_at?: string | null;
@@ -17519,60 +17967,72 @@ export type Database = {
17519
17967
  created_at: string;
17520
17968
  id: string;
17521
17969
  layers_per_cart: number | null;
17970
+ load_carrier_type: string | null;
17522
17971
  needs_sticker: boolean;
17523
17972
  order_id: string;
17524
17973
  packing_locked_at: string | null;
17525
17974
  packing_locked_by: string | null;
17975
+ packing_source: string | null;
17526
17976
  plants_per_crate: number | null;
17527
17977
  product_id: string | null;
17528
17978
  product_name: string;
17529
17979
  quantity: number;
17980
+ quantity_crates: number | null;
17530
17981
  quarantine_reason: string | null;
17531
17982
  quarantined_at: string | null;
17532
17983
  quarantined_into_order_id: string | null;
17533
17984
  source_line_key: string | null;
17534
17985
  unit: string;
17535
17986
  unit_price: number | null;
17987
+ vbn_package_code: string | null;
17536
17988
  };
17537
17989
  Insert: {
17538
17990
  crates_per_layer?: number | null;
17539
17991
  created_at?: string;
17540
17992
  id?: string;
17541
17993
  layers_per_cart?: number | null;
17994
+ load_carrier_type?: string | null;
17542
17995
  needs_sticker?: boolean;
17543
17996
  order_id: string;
17544
17997
  packing_locked_at?: string | null;
17545
17998
  packing_locked_by?: string | null;
17999
+ packing_source?: string | null;
17546
18000
  plants_per_crate?: number | null;
17547
18001
  product_id?: string | null;
17548
18002
  product_name: string;
17549
18003
  quantity?: number;
18004
+ quantity_crates?: number | null;
17550
18005
  quarantine_reason?: string | null;
17551
18006
  quarantined_at?: string | null;
17552
18007
  quarantined_into_order_id?: string | null;
17553
18008
  source_line_key?: string | null;
17554
18009
  unit?: string;
17555
18010
  unit_price?: number | null;
18011
+ vbn_package_code?: string | null;
17556
18012
  };
17557
18013
  Update: {
17558
18014
  crates_per_layer?: number | null;
17559
18015
  created_at?: string;
17560
18016
  id?: string;
17561
18017
  layers_per_cart?: number | null;
18018
+ load_carrier_type?: string | null;
17562
18019
  needs_sticker?: boolean;
17563
18020
  order_id?: string;
17564
18021
  packing_locked_at?: string | null;
17565
18022
  packing_locked_by?: string | null;
18023
+ packing_source?: string | null;
17566
18024
  plants_per_crate?: number | null;
17567
18025
  product_id?: string | null;
17568
18026
  product_name?: string;
17569
18027
  quantity?: number;
18028
+ quantity_crates?: number | null;
17570
18029
  quarantine_reason?: string | null;
17571
18030
  quarantined_at?: string | null;
17572
18031
  quarantined_into_order_id?: string | null;
17573
18032
  source_line_key?: string | null;
17574
18033
  unit?: string;
17575
18034
  unit_price?: number | null;
18035
+ vbn_package_code?: string | null;
17576
18036
  };
17577
18037
  Relationships: [
17578
18038
  {
@@ -17764,6 +18224,12 @@ export type Database = {
17764
18224
  buffer_id: string | null;
17765
18225
  cancel_reason: string | null;
17766
18226
  cancelled_at: string | null;
18227
+ carrier_id: string | null;
18228
+ carrier_reason: string | null;
18229
+ carrier_resolved_at: string | null;
18230
+ carrier_set_at: string | null;
18231
+ carrier_set_by: string | null;
18232
+ carrier_source: string | null;
17767
18233
  created_at: string;
17768
18234
  custom_fields: Json;
17769
18235
  customer_id: string | null;
@@ -17792,6 +18258,12 @@ export type Database = {
17792
18258
  buffer_id?: string | null;
17793
18259
  cancel_reason?: string | null;
17794
18260
  cancelled_at?: string | null;
18261
+ carrier_id?: string | null;
18262
+ carrier_reason?: string | null;
18263
+ carrier_resolved_at?: string | null;
18264
+ carrier_set_at?: string | null;
18265
+ carrier_set_by?: string | null;
18266
+ carrier_source?: string | null;
17795
18267
  created_at?: string;
17796
18268
  custom_fields?: Json;
17797
18269
  customer_id?: string | null;
@@ -17820,6 +18292,12 @@ export type Database = {
17820
18292
  buffer_id?: string | null;
17821
18293
  cancel_reason?: string | null;
17822
18294
  cancelled_at?: string | null;
18295
+ carrier_id?: string | null;
18296
+ carrier_reason?: string | null;
18297
+ carrier_resolved_at?: string | null;
18298
+ carrier_set_at?: string | null;
18299
+ carrier_set_by?: string | null;
18300
+ carrier_source?: string | null;
17823
18301
  created_at?: string;
17824
18302
  custom_fields?: Json;
17825
18303
  customer_id?: string | null;
@@ -17852,6 +18330,13 @@ export type Database = {
17852
18330
  referencedRelation: "order_buffers";
17853
18331
  referencedColumns: ["id"];
17854
18332
  },
18333
+ {
18334
+ foreignKeyName: "orders_carrier_id_fkey";
18335
+ columns: ["carrier_id"];
18336
+ isOneToOne: false;
18337
+ referencedRelation: "carriers";
18338
+ referencedColumns: ["id"];
18339
+ },
17855
18340
  {
17856
18341
  foreignKeyName: "orders_customer_id_fkey";
17857
18342
  columns: ["customer_id"];
@@ -18433,6 +18918,74 @@ export type Database = {
18433
18918
  }
18434
18919
  ];
18435
18920
  };
18921
+ pick_settings: {
18922
+ Row: {
18923
+ created_at: string;
18924
+ device_key_required: boolean;
18925
+ id: boolean;
18926
+ updated_at: string;
18927
+ };
18928
+ Insert: {
18929
+ created_at?: string;
18930
+ device_key_required?: boolean;
18931
+ id?: boolean;
18932
+ updated_at?: string;
18933
+ };
18934
+ Update: {
18935
+ created_at?: string;
18936
+ device_key_required?: boolean;
18937
+ id?: boolean;
18938
+ updated_at?: string;
18939
+ };
18940
+ Relationships: [];
18941
+ };
18942
+ pick_station_devices: {
18943
+ Row: {
18944
+ aangemaakt_door: string | null;
18945
+ created_at: string;
18946
+ id: string;
18947
+ ingetrokken_door: string | null;
18948
+ ingetrokken_op: string | null;
18949
+ key_hash: string;
18950
+ laatst_gezien: string | null;
18951
+ naam: string | null;
18952
+ station_id: string;
18953
+ updated_at: string;
18954
+ };
18955
+ Insert: {
18956
+ aangemaakt_door?: string | null;
18957
+ created_at?: string;
18958
+ id?: string;
18959
+ ingetrokken_door?: string | null;
18960
+ ingetrokken_op?: string | null;
18961
+ key_hash: string;
18962
+ laatst_gezien?: string | null;
18963
+ naam?: string | null;
18964
+ station_id: string;
18965
+ updated_at?: string;
18966
+ };
18967
+ Update: {
18968
+ aangemaakt_door?: string | null;
18969
+ created_at?: string;
18970
+ id?: string;
18971
+ ingetrokken_door?: string | null;
18972
+ ingetrokken_op?: string | null;
18973
+ key_hash?: string;
18974
+ laatst_gezien?: string | null;
18975
+ naam?: string | null;
18976
+ station_id?: string;
18977
+ updated_at?: string;
18978
+ };
18979
+ Relationships: [
18980
+ {
18981
+ foreignKeyName: "pick_station_devices_station_id_fkey";
18982
+ columns: ["station_id"];
18983
+ isOneToOne: false;
18984
+ referencedRelation: "pick_stations";
18985
+ referencedColumns: ["id"];
18986
+ }
18987
+ ];
18988
+ };
18436
18989
  pick_station_heartbeats: {
18437
18990
  Row: {
18438
18991
  browser: string | null;
@@ -18565,6 +19118,53 @@ export type Database = {
18565
19118
  };
18566
19119
  Relationships: [];
18567
19120
  };
19121
+ pick_station_pair_codes: {
19122
+ Row: {
19123
+ aangemaakt_door: string | null;
19124
+ code_hash: string;
19125
+ created_at: string;
19126
+ device_id: string | null;
19127
+ gebruikt_op: string | null;
19128
+ geldig_tot: string;
19129
+ id: string;
19130
+ pogingen: number;
19131
+ station_id: string;
19132
+ vervallen_op: string | null;
19133
+ };
19134
+ Insert: {
19135
+ aangemaakt_door?: string | null;
19136
+ code_hash: string;
19137
+ created_at?: string;
19138
+ device_id?: string | null;
19139
+ gebruikt_op?: string | null;
19140
+ geldig_tot: string;
19141
+ id?: string;
19142
+ pogingen?: number;
19143
+ station_id: string;
19144
+ vervallen_op?: string | null;
19145
+ };
19146
+ Update: {
19147
+ aangemaakt_door?: string | null;
19148
+ code_hash?: string;
19149
+ created_at?: string;
19150
+ device_id?: string | null;
19151
+ gebruikt_op?: string | null;
19152
+ geldig_tot?: string;
19153
+ id?: string;
19154
+ pogingen?: number;
19155
+ station_id?: string;
19156
+ vervallen_op?: string | null;
19157
+ };
19158
+ Relationships: [
19159
+ {
19160
+ foreignKeyName: "pick_station_pair_codes_station_id_fkey";
19161
+ columns: ["station_id"];
19162
+ isOneToOne: false;
19163
+ referencedRelation: "pick_stations";
19164
+ referencedColumns: ["id"];
19165
+ }
19166
+ ];
19167
+ };
18568
19168
  pick_station_permissions: {
18569
19169
  Row: {
18570
19170
  can_break_lock: boolean;
@@ -18736,6 +19336,29 @@ export type Database = {
18736
19336
  }
18737
19337
  ];
18738
19338
  };
19339
+ pick_station_signals: {
19340
+ Row: {
19341
+ signaal_op: string;
19342
+ station_id: string;
19343
+ };
19344
+ Insert: {
19345
+ signaal_op?: string;
19346
+ station_id: string;
19347
+ };
19348
+ Update: {
19349
+ signaal_op?: string;
19350
+ station_id?: string;
19351
+ };
19352
+ Relationships: [
19353
+ {
19354
+ foreignKeyName: "pick_station_signals_station_id_fkey";
19355
+ columns: ["station_id"];
19356
+ isOneToOne: true;
19357
+ referencedRelation: "pick_stations";
19358
+ referencedColumns: ["id"];
19359
+ }
19360
+ ];
19361
+ };
18739
19362
  pick_station_tasks: {
18740
19363
  Row: {
18741
19364
  active: boolean;
@@ -21442,6 +22065,85 @@ export type Database = {
21442
22065
  };
21443
22066
  Relationships: [];
21444
22067
  };
22068
+ product_packings: {
22069
+ Row: {
22070
+ created_at: string;
22071
+ custom_package_id: string | null;
22072
+ customer_organization_ids: string[];
22073
+ floriday_packing_id: string | null;
22074
+ fust_type_id: string | null;
22075
+ id: string;
22076
+ is_primary: boolean;
22077
+ layers_per_load_carrier: number | null;
22078
+ load_carrier: string | null;
22079
+ packages_per_layer: number | null;
22080
+ pieces_per_package: number | null;
22081
+ product_id: string;
22082
+ sort_order: number;
22083
+ source: string;
22084
+ updated_at: string;
22085
+ vbn_package_code: number | null;
22086
+ };
22087
+ Insert: {
22088
+ created_at?: string;
22089
+ custom_package_id?: string | null;
22090
+ customer_organization_ids?: string[];
22091
+ floriday_packing_id?: string | null;
22092
+ fust_type_id?: string | null;
22093
+ id?: string;
22094
+ is_primary?: boolean;
22095
+ layers_per_load_carrier?: number | null;
22096
+ load_carrier?: string | null;
22097
+ packages_per_layer?: number | null;
22098
+ pieces_per_package?: number | null;
22099
+ product_id: string;
22100
+ sort_order?: number;
22101
+ source?: string;
22102
+ updated_at?: string;
22103
+ vbn_package_code?: number | null;
22104
+ };
22105
+ Update: {
22106
+ created_at?: string;
22107
+ custom_package_id?: string | null;
22108
+ customer_organization_ids?: string[];
22109
+ floriday_packing_id?: string | null;
22110
+ fust_type_id?: string | null;
22111
+ id?: string;
22112
+ is_primary?: boolean;
22113
+ layers_per_load_carrier?: number | null;
22114
+ load_carrier?: string | null;
22115
+ packages_per_layer?: number | null;
22116
+ pieces_per_package?: number | null;
22117
+ product_id?: string;
22118
+ sort_order?: number;
22119
+ source?: string;
22120
+ updated_at?: string;
22121
+ vbn_package_code?: number | null;
22122
+ };
22123
+ Relationships: [
22124
+ {
22125
+ foreignKeyName: "product_packings_fust_type_id_fkey";
22126
+ columns: ["fust_type_id"];
22127
+ isOneToOne: false;
22128
+ referencedRelation: "fust_types";
22129
+ referencedColumns: ["id"];
22130
+ },
22131
+ {
22132
+ foreignKeyName: "product_packings_product_id_fkey";
22133
+ columns: ["product_id"];
22134
+ isOneToOne: false;
22135
+ referencedRelation: "logistics_product_dimensions";
22136
+ referencedColumns: ["product_id"];
22137
+ },
22138
+ {
22139
+ foreignKeyName: "product_packings_product_id_fkey";
22140
+ columns: ["product_id"];
22141
+ isOneToOne: false;
22142
+ referencedRelation: "products";
22143
+ referencedColumns: ["id"];
22144
+ }
22145
+ ];
22146
+ };
21445
22147
  product_suppliers: {
21446
22148
  Row: {
21447
22149
  created_at: string;
@@ -22608,6 +23310,107 @@ export type Database = {
22608
23310
  };
22609
23311
  Relationships: [];
22610
23312
  };
23313
+ scan_apparaat_koppelcodes: {
23314
+ Row: {
23315
+ aangemaakt_door: string | null;
23316
+ apparaat_id: string | null;
23317
+ code_hash: string;
23318
+ created_at: string;
23319
+ gebruikt_op: string | null;
23320
+ geldig_tot: string;
23321
+ id: string;
23322
+ pogingen: number;
23323
+ scanner_id: string;
23324
+ vervallen_op: string | null;
23325
+ };
23326
+ Insert: {
23327
+ aangemaakt_door?: string | null;
23328
+ apparaat_id?: string | null;
23329
+ code_hash: string;
23330
+ created_at?: string;
23331
+ gebruikt_op?: string | null;
23332
+ geldig_tot: string;
23333
+ id?: string;
23334
+ pogingen?: number;
23335
+ scanner_id: string;
23336
+ vervallen_op?: string | null;
23337
+ };
23338
+ Update: {
23339
+ aangemaakt_door?: string | null;
23340
+ apparaat_id?: string | null;
23341
+ code_hash?: string;
23342
+ created_at?: string;
23343
+ gebruikt_op?: string | null;
23344
+ geldig_tot?: string;
23345
+ id?: string;
23346
+ pogingen?: number;
23347
+ scanner_id?: string;
23348
+ vervallen_op?: string | null;
23349
+ };
23350
+ Relationships: [
23351
+ {
23352
+ foreignKeyName: "scan_apparaat_koppelcodes_apparaat_id_fkey";
23353
+ columns: ["apparaat_id"];
23354
+ isOneToOne: false;
23355
+ referencedRelation: "scan_apparaten";
23356
+ referencedColumns: ["id"];
23357
+ },
23358
+ {
23359
+ foreignKeyName: "scan_apparaat_koppelcodes_scanner_id_fkey";
23360
+ columns: ["scanner_id"];
23361
+ isOneToOne: false;
23362
+ referencedRelation: "scan_scanners";
23363
+ referencedColumns: ["id"];
23364
+ }
23365
+ ];
23366
+ };
23367
+ scan_apparaten: {
23368
+ Row: {
23369
+ aangemaakt_door: string | null;
23370
+ created_at: string;
23371
+ id: string;
23372
+ ingetrokken_door: string | null;
23373
+ ingetrokken_op: string | null;
23374
+ laatst_gezien: string | null;
23375
+ naam: string | null;
23376
+ scanner_id: string;
23377
+ sleutel_hash: string;
23378
+ updated_at: string;
23379
+ };
23380
+ Insert: {
23381
+ aangemaakt_door?: string | null;
23382
+ created_at?: string;
23383
+ id?: string;
23384
+ ingetrokken_door?: string | null;
23385
+ ingetrokken_op?: string | null;
23386
+ laatst_gezien?: string | null;
23387
+ naam?: string | null;
23388
+ scanner_id: string;
23389
+ sleutel_hash: string;
23390
+ updated_at?: string;
23391
+ };
23392
+ Update: {
23393
+ aangemaakt_door?: string | null;
23394
+ created_at?: string;
23395
+ id?: string;
23396
+ ingetrokken_door?: string | null;
23397
+ ingetrokken_op?: string | null;
23398
+ laatst_gezien?: string | null;
23399
+ naam?: string | null;
23400
+ scanner_id?: string;
23401
+ sleutel_hash?: string;
23402
+ updated_at?: string;
23403
+ };
23404
+ Relationships: [
23405
+ {
23406
+ foreignKeyName: "scan_apparaten_scanner_id_fkey";
23407
+ columns: ["scanner_id"];
23408
+ isOneToOne: false;
23409
+ referencedRelation: "scan_scanners";
23410
+ referencedColumns: ["id"];
23411
+ }
23412
+ ];
23413
+ };
22611
23414
  scan_kar_items: {
22612
23415
  Row: {
22613
23416
  barcode: string;
@@ -23011,6 +23814,35 @@ export type Database = {
23011
23814
  };
23012
23815
  Relationships: [];
23013
23816
  };
23817
+ scan_pin_pogingen: {
23818
+ Row: {
23819
+ fout_pogingen: number;
23820
+ geblokkeerd_tot: string | null;
23821
+ scanner_id: string;
23822
+ updated_at: string;
23823
+ };
23824
+ Insert: {
23825
+ fout_pogingen?: number;
23826
+ geblokkeerd_tot?: string | null;
23827
+ scanner_id: string;
23828
+ updated_at?: string;
23829
+ };
23830
+ Update: {
23831
+ fout_pogingen?: number;
23832
+ geblokkeerd_tot?: string | null;
23833
+ scanner_id?: string;
23834
+ updated_at?: string;
23835
+ };
23836
+ Relationships: [
23837
+ {
23838
+ foreignKeyName: "scan_pin_pogingen_scanner_id_fkey";
23839
+ columns: ["scanner_id"];
23840
+ isOneToOne: true;
23841
+ referencedRelation: "scan_scanners";
23842
+ referencedColumns: ["id"];
23843
+ }
23844
+ ];
23845
+ };
23014
23846
  scan_restpakbonnen: {
23015
23847
  Row: {
23016
23848
  barcode: string;
@@ -24617,16 +25449,56 @@ export type Database = {
24617
25449
  }
24618
25450
  ];
24619
25451
  };
25452
+ twinfield_connection_label_log: {
25453
+ Row: {
25454
+ changed_at: string;
25455
+ changed_by: string | null;
25456
+ changed_by_role: string | null;
25457
+ connection_id: string;
25458
+ field: string;
25459
+ id: string;
25460
+ new_value: string | null;
25461
+ note: string | null;
25462
+ office_code: string | null;
25463
+ old_value: string | null;
25464
+ };
25465
+ Insert: {
25466
+ changed_at?: string;
25467
+ changed_by?: string | null;
25468
+ changed_by_role?: string | null;
25469
+ connection_id: string;
25470
+ field: string;
25471
+ id?: string;
25472
+ new_value?: string | null;
25473
+ note?: string | null;
25474
+ office_code?: string | null;
25475
+ old_value?: string | null;
25476
+ };
25477
+ Update: {
25478
+ changed_at?: string;
25479
+ changed_by?: string | null;
25480
+ changed_by_role?: string | null;
25481
+ connection_id?: string;
25482
+ field?: string;
25483
+ id?: string;
25484
+ new_value?: string | null;
25485
+ note?: string | null;
25486
+ office_code?: string | null;
25487
+ old_value?: string | null;
25488
+ };
25489
+ Relationships: [];
25490
+ };
24620
25491
  twinfield_connections: {
24621
25492
  Row: {
24622
25493
  account_key: string | null;
25494
+ central_environment: string | null;
24623
25495
  cluster_uri: string | null;
24624
25496
  company_code: string | null;
24625
25497
  company_name: string | null;
24626
25498
  connected_at: string | null;
24627
25499
  created_at: string;
24628
25500
  disconnected_at: string | null;
24629
- environment: string;
25501
+ environment: string | null;
24630
25502
  granted_scopes: string[] | null;
24631
25503
  id: string;
24632
25504
  initial_sync_completed_at: string | null;
@@ -24635,8 +25507,12 @@ export type Database = {
24635
25507
  initial_sync_started_at: string | null;
24636
25508
  is_active: boolean;
24637
25509
  label: string | null;
25510
+ label_set_at: string | null;
25511
+ label_set_by: string | null;
25512
+ label_source: string | null;
24638
25513
  missing_scopes: string[] | null;
24639
25514
  office_code: string | null;
25515
+ organisation_code: string | null;
24640
25516
  redirect_uri: string | null;
24641
25517
  scope_checked_at: string | null;
24642
25518
  scope_state: string | null;
@@ -24650,13 +25526,14 @@ export type Database = {
24650
25526
  };
24651
25527
  Insert: {
24652
25528
  account_key?: string | null;
25529
+ central_environment?: string | null;
24653
25530
  cluster_uri?: string | null;
24654
25531
  company_code?: string | null;
24655
25532
  company_name?: string | null;
24656
25533
  connected_at?: string | null;
24657
25534
  created_at?: string;
24658
25535
  disconnected_at?: string | null;
24659
- environment: string;
25536
+ environment?: string | null;
24660
25537
  granted_scopes?: string[] | null;
24661
25538
  id?: string;
24662
25539
  initial_sync_completed_at?: string | null;
@@ -24665,8 +25542,12 @@ export type Database = {
24665
25542
  initial_sync_started_at?: string | null;
24666
25543
  is_active?: boolean;
24667
25544
  label?: string | null;
25545
+ label_set_at?: string | null;
25546
+ label_set_by?: string | null;
25547
+ label_source?: string | null;
24668
25548
  missing_scopes?: string[] | null;
24669
25549
  office_code?: string | null;
25550
+ organisation_code?: string | null;
24670
25551
  redirect_uri?: string | null;
24671
25552
  scope_checked_at?: string | null;
24672
25553
  scope_state?: string | null;
@@ -24680,13 +25561,14 @@ export type Database = {
24680
25561
  };
24681
25562
  Update: {
24682
25563
  account_key?: string | null;
25564
+ central_environment?: string | null;
24683
25565
  cluster_uri?: string | null;
24684
25566
  company_code?: string | null;
24685
25567
  company_name?: string | null;
24686
25568
  connected_at?: string | null;
24687
25569
  created_at?: string;
24688
25570
  disconnected_at?: string | null;
24689
- environment?: string;
25571
+ environment?: string | null;
24690
25572
  granted_scopes?: string[] | null;
24691
25573
  id?: string;
24692
25574
  initial_sync_completed_at?: string | null;
@@ -24695,8 +25577,12 @@ export type Database = {
24695
25577
  initial_sync_started_at?: string | null;
24696
25578
  is_active?: boolean;
24697
25579
  label?: string | null;
25580
+ label_set_at?: string | null;
25581
+ label_set_by?: string | null;
25582
+ label_source?: string | null;
24698
25583
  missing_scopes?: string[] | null;
24699
25584
  office_code?: string | null;
25585
+ organisation_code?: string | null;
24700
25586
  redirect_uri?: string | null;
24701
25587
  scope_checked_at?: string | null;
24702
25588
  scope_state?: string | null;
@@ -25636,33 +26522,36 @@ export type Database = {
25636
26522
  };
25637
26523
  twinfield_settings: {
25638
26524
  Row: {
25639
- active_environment: string;
26525
+ active_environment: string | null;
25640
26526
  cron_registered_at: string | null;
25641
26527
  cron_registration_error: string | null;
25642
26528
  cron_schedules: Json;
25643
26529
  cron_timeouts: Json;
25644
26530
  id: number;
25645
26531
  public_base_url: string | null;
26532
+ token_route_bearer_open: boolean;
25646
26533
  updated_at: string;
25647
26534
  };
25648
26535
  Insert: {
25649
- active_environment?: string;
26536
+ active_environment?: string | null;
25650
26537
  cron_registered_at?: string | null;
25651
26538
  cron_registration_error?: string | null;
25652
26539
  cron_schedules?: Json;
25653
26540
  cron_timeouts?: Json;
25654
26541
  id?: number;
25655
26542
  public_base_url?: string | null;
26543
+ token_route_bearer_open?: boolean;
25656
26544
  updated_at?: string;
25657
26545
  };
25658
26546
  Update: {
25659
- active_environment?: string;
26547
+ active_environment?: string | null;
25660
26548
  cron_registered_at?: string | null;
25661
26549
  cron_registration_error?: string | null;
25662
26550
  cron_schedules?: Json;
25663
26551
  cron_timeouts?: Json;
25664
26552
  id?: number;
25665
26553
  public_base_url?: string | null;
26554
+ token_route_bearer_open?: boolean;
25666
26555
  updated_at?: string;
25667
26556
  };
25668
26557
  Relationships: [];
@@ -25892,6 +26781,42 @@ export type Database = {
25892
26781
  }
25893
26782
  ];
25894
26783
  };
26784
+ twinfield_token_issue_log: {
26785
+ Row: {
26786
+ acting_user_id: string | null;
26787
+ caller_kind: string;
26788
+ connection_id: string | null;
26789
+ id: string;
26790
+ issued_at: string;
26791
+ module_id: string | null;
26792
+ outcome: string;
26793
+ route: string;
26794
+ user_id: string | null;
26795
+ };
26796
+ Insert: {
26797
+ acting_user_id?: string | null;
26798
+ caller_kind: string;
26799
+ connection_id?: string | null;
26800
+ id?: string;
26801
+ issued_at?: string;
26802
+ module_id?: string | null;
26803
+ outcome: string;
26804
+ route: string;
26805
+ user_id?: string | null;
26806
+ };
26807
+ Update: {
26808
+ acting_user_id?: string | null;
26809
+ caller_kind?: string;
26810
+ connection_id?: string | null;
26811
+ id?: string;
26812
+ issued_at?: string;
26813
+ module_id?: string | null;
26814
+ outcome?: string;
26815
+ route?: string;
26816
+ user_id?: string | null;
26817
+ };
26818
+ Relationships: [];
26819
+ };
25895
26820
  twinfield_vat_code_map: {
25896
26821
  Row: {
25897
26822
  confirmed_at: string | null;
@@ -26788,6 +27713,51 @@ export type Database = {
26788
27713
  }
26789
27714
  ];
26790
27715
  };
27716
+ verkoop_correctie_log: {
27717
+ Row: {
27718
+ aantal_orders: number;
27719
+ aantal_orders_gewijzigd: number;
27720
+ aantal_overgeslagen: number;
27721
+ aantal_regels_gewijzigd: number;
27722
+ correctie: string;
27723
+ created_at: string;
27724
+ details: Json;
27725
+ door_label: string;
27726
+ id: string;
27727
+ uitgevoerd_door: string | null;
27728
+ uitgevoerd_op: string;
27729
+ uitvoeren: boolean;
27730
+ };
27731
+ Insert: {
27732
+ aantal_orders?: number;
27733
+ aantal_orders_gewijzigd?: number;
27734
+ aantal_overgeslagen?: number;
27735
+ aantal_regels_gewijzigd?: number;
27736
+ correctie: string;
27737
+ created_at?: string;
27738
+ details?: Json;
27739
+ door_label: string;
27740
+ id?: string;
27741
+ uitgevoerd_door?: string | null;
27742
+ uitgevoerd_op?: string;
27743
+ uitvoeren: boolean;
27744
+ };
27745
+ Update: {
27746
+ aantal_orders?: number;
27747
+ aantal_orders_gewijzigd?: number;
27748
+ aantal_overgeslagen?: number;
27749
+ aantal_regels_gewijzigd?: number;
27750
+ correctie?: string;
27751
+ created_at?: string;
27752
+ details?: Json;
27753
+ door_label?: string;
27754
+ id?: string;
27755
+ uitgevoerd_door?: string | null;
27756
+ uitgevoerd_op?: string;
27757
+ uitvoeren?: boolean;
27758
+ };
27759
+ Relationships: [];
27760
+ };
26791
27761
  voorraad_buffer_state: {
26792
27762
  Row: {
26793
27763
  buffer_id: string;
@@ -26818,6 +27788,36 @@ export type Database = {
26818
27788
  };
26819
27789
  Relationships: [];
26820
27790
  };
27791
+ voorraad_correcties: {
27792
+ Row: {
27793
+ aantallen: Json;
27794
+ correctie: string;
27795
+ hash_ok: boolean | null;
27796
+ id: string;
27797
+ proef: boolean;
27798
+ uitgevoerd_door: string;
27799
+ uitgevoerd_op: string;
27800
+ };
27801
+ Insert: {
27802
+ aantallen?: Json;
27803
+ correctie: string;
27804
+ hash_ok?: boolean | null;
27805
+ id?: string;
27806
+ proef: boolean;
27807
+ uitgevoerd_door: string;
27808
+ uitgevoerd_op?: string;
27809
+ };
27810
+ Update: {
27811
+ aantallen?: Json;
27812
+ correctie?: string;
27813
+ hash_ok?: boolean | null;
27814
+ id?: string;
27815
+ proef?: boolean;
27816
+ uitgevoerd_door?: string;
27817
+ uitgevoerd_op?: string;
27818
+ };
27819
+ Relationships: [];
27820
+ };
26821
27821
  voorraad_custom_fields: {
26822
27822
  Row: {
26823
27823
  created_at: string;
@@ -29543,6 +30543,59 @@ export type Database = {
29543
30543
  };
29544
30544
  Returns: Json;
29545
30545
  };
30546
+ _scan_alleen_gekoppeld: {
30547
+ Args: never;
30548
+ Returns: boolean;
30549
+ };
30550
+ _scan_assert_beheer: {
30551
+ Args: never;
30552
+ Returns: undefined;
30553
+ };
30554
+ _scan_assert_device: {
30555
+ Args: {
30556
+ p_device_key: string;
30557
+ };
30558
+ Returns: string;
30559
+ };
30560
+ _scan_assert_legacy: {
30561
+ Args: never;
30562
+ Returns: undefined;
30563
+ };
30564
+ _scan_check_kar: {
30565
+ Args: {
30566
+ p_kar_id: string;
30567
+ v: string;
30568
+ };
30569
+ Returns: undefined;
30570
+ };
30571
+ _scan_check_scanner: {
30572
+ Args: {
30573
+ p: string;
30574
+ v: string;
30575
+ };
30576
+ Returns: string;
30577
+ };
30578
+ _scan_check_sessie: {
30579
+ Args: {
30580
+ p_sessie_id: string;
30581
+ v: string;
30582
+ };
30583
+ Returns: undefined;
30584
+ };
30585
+ _scan_hash: {
30586
+ Args: {
30587
+ p: string;
30588
+ };
30589
+ Returns: string;
30590
+ };
30591
+ _scan_is_beheer: {
30592
+ Args: never;
30593
+ Returns: boolean;
30594
+ };
30595
+ _scan_is_server: {
30596
+ Args: never;
30597
+ Returns: boolean;
30598
+ };
29546
30599
  _scan_kar_floriday_afgehandeld: {
29547
30600
  Args: {
29548
30601
  p_cart_id: string;
@@ -29562,6 +30615,10 @@ export type Database = {
29562
30615
  };
29563
30616
  Returns: Json;
29564
30617
  };
30618
+ _scan_vertrouwd: {
30619
+ Args: never;
30620
+ Returns: boolean;
30621
+ };
29565
30622
  _stock_import_caller: {
29566
30623
  Args: {
29567
30624
  p_owner: string;
@@ -29572,6 +30629,95 @@ export type Database = {
29572
30629
  Args: never;
29573
30630
  Returns: boolean;
29574
30631
  };
30632
+ aanbiedingsmail_assert_caller: {
30633
+ Args: {
30634
+ p_level: string;
30635
+ };
30636
+ Returns: undefined;
30637
+ };
30638
+ aanbiedingsmail_create_order: {
30639
+ Args: {
30640
+ p_offer_order_id: string;
30641
+ };
30642
+ Returns: Json;
30643
+ };
30644
+ aanbiedingsmail_ensure_cron: {
30645
+ Args: never;
30646
+ Returns: Json;
30647
+ };
30648
+ aanbiedingsmail_install_check: {
30649
+ Args: never;
30650
+ Returns: Json;
30651
+ };
30652
+ aanbiedingsmail_is_server: {
30653
+ Args: never;
30654
+ Returns: boolean;
30655
+ };
30656
+ aanbiedingsmail_koppel_producten: {
30657
+ Args: {
30658
+ p_uitvoeren?: boolean;
30659
+ };
30660
+ Returns: Json;
30661
+ };
30662
+ aanbiedingsmail_link_status: {
30663
+ Args: {
30664
+ p_code: string;
30665
+ };
30666
+ Returns: Json;
30667
+ };
30668
+ aanbiedingsmail_notify_office: {
30669
+ Args: {
30670
+ p_offer_order_id: string;
30671
+ };
30672
+ Returns: Json;
30673
+ };
30674
+ aanbiedingsmail_place_offer_order: {
30675
+ Args: {
30676
+ p_code: string;
30677
+ p_customer_email: string;
30678
+ p_customer_name: string;
30679
+ p_customer_phone: string;
30680
+ p_items: Json;
30681
+ p_notes: string;
30682
+ p_retry_payload: Json;
30683
+ p_total: number;
30684
+ };
30685
+ Returns: Json;
30686
+ };
30687
+ aanbiedingsmail_resolve_product_id: {
30688
+ Args: {
30689
+ p_ref: string;
30690
+ };
30691
+ Returns: string;
30692
+ };
30693
+ aanbiedingsmail_stock_key: {
30694
+ Args: {
30695
+ p_ref: string;
30696
+ };
30697
+ Returns: string;
30698
+ };
30699
+ afh_assert_ingelogd: {
30700
+ Args: never;
30701
+ Returns: undefined;
30702
+ };
30703
+ afh_assert_intern: {
30704
+ Args: never;
30705
+ Returns: undefined;
30706
+ };
30707
+ afh_assert_server: {
30708
+ Args: never;
30709
+ Returns: undefined;
30710
+ };
30711
+ afh_can_manage_carriers: {
30712
+ Args: {
30713
+ p_user: string;
30714
+ };
30715
+ Returns: boolean;
30716
+ };
30717
+ afh_carrier_managers_count: {
30718
+ Args: never;
30719
+ Returns: number;
30720
+ };
29575
30721
  afh_city_code: {
29576
30722
  Args: {
29577
30723
  _city: string;
@@ -29579,12 +30725,29 @@ export type Database = {
29579
30725
  };
29580
30726
  Returns: string;
29581
30727
  };
30728
+ afh_ensure_defaults: {
30729
+ Args: never;
30730
+ Returns: Json;
30731
+ };
30732
+ afh_favorite_carrier: {
30733
+ Args: never;
30734
+ Returns: {
30735
+ carrier_id: string;
30736
+ carrier_kind: string;
30737
+ email: string;
30738
+ name: string;
30739
+ }[];
30740
+ };
29582
30741
  afh_html: {
29583
30742
  Args: {
29584
30743
  _s: string;
29585
30744
  };
29586
30745
  Returns: string;
29587
30746
  };
30747
+ afh_is_server: {
30748
+ Args: never;
30749
+ Returns: boolean;
30750
+ };
29588
30751
  afh_kar_tekst: {
29589
30752
  Args: {
29590
30753
  n: number;
@@ -29615,6 +30778,16 @@ export type Database = {
29615
30778
  };
29616
30779
  Returns: boolean;
29617
30780
  };
30781
+ afh_order_floriday_herkomst_onbekend: {
30782
+ Args: {
30783
+ p_order_id: string;
30784
+ };
30785
+ Returns: boolean;
30786
+ };
30787
+ afh_orders_have_carrier_id: {
30788
+ Args: never;
30789
+ Returns: boolean;
30790
+ };
29618
30791
  afh_pick_workdays: {
29619
30792
  Args: {
29620
30793
  p_from: string;
@@ -29622,6 +30795,35 @@ export type Database = {
29622
30795
  };
29623
30796
  Returns: Json;
29624
30797
  };
30798
+ afh_resolve_cart_id: {
30799
+ Args: {
30800
+ p_cart_index: number;
30801
+ p_given: string;
30802
+ p_order: string;
30803
+ p_source: string;
30804
+ };
30805
+ Returns: string;
30806
+ };
30807
+ afh_set_favorite_carrier: {
30808
+ Args: {
30809
+ p_carrier_id: string;
30810
+ };
30811
+ Returns: Json;
30812
+ };
30813
+ afh_set_signup_auto_send: {
30814
+ Args: {
30815
+ p_on: boolean;
30816
+ };
30817
+ Returns: Json;
30818
+ };
30819
+ afh_signup_auto_send_on: {
30820
+ Args: never;
30821
+ Returns: boolean;
30822
+ };
30823
+ afh_signup_auto_send_status: {
30824
+ Args: never;
30825
+ Returns: Json;
30826
+ };
29625
30827
  afh_signup_config: {
29626
30828
  Args: never;
29627
30829
  Returns: Json;
@@ -29657,6 +30859,14 @@ export type Database = {
29657
30859
  };
29658
30860
  Returns: Json;
29659
30861
  };
30862
+ afh_signup_groups_floriday: {
30863
+ Args: {
30864
+ p_from: string;
30865
+ p_to: string;
30866
+ p_tz: string;
30867
+ };
30868
+ Returns: Json;
30869
+ };
29660
30870
  afh_signup_groups_wacht: {
29661
30871
  Args: {
29662
30872
  p_from: string;
@@ -29718,6 +30928,10 @@ export type Database = {
29718
30928
  };
29719
30929
  Returns: string;
29720
30930
  };
30931
+ afhandeling_install_check: {
30932
+ Args: never;
30933
+ Returns: Json;
30934
+ };
29721
30935
  afhandeling_signup_cron_status: {
29722
30936
  Args: never;
29723
30937
  Returns: Json;
@@ -29726,6 +30940,26 @@ export type Database = {
29726
30940
  Args: never;
29727
30941
  Returns: Json;
29728
30942
  };
30943
+ ai_catalog: {
30944
+ Args: never;
30945
+ Returns: Json;
30946
+ };
30947
+ ai_declare_installatietechniek_werkbonnen_planner: {
30948
+ Args: never;
30949
+ Returns: Json;
30950
+ };
30951
+ ai_declare_klanten_stickers: {
30952
+ Args: never;
30953
+ Returns: Json;
30954
+ };
30955
+ ai_declare_mailbox_bestellingen: {
30956
+ Args: never;
30957
+ Returns: Json;
30958
+ };
30959
+ ai_declare_werkbon_postvak: {
30960
+ Args: never;
30961
+ Returns: Json;
30962
+ };
29729
30963
  ai_is_admin: {
29730
30964
  Args: {
29731
30965
  _uid: string;
@@ -29746,6 +30980,10 @@ export type Database = {
29746
30980
  };
29747
30981
  Returns: boolean;
29748
30982
  };
30983
+ ai_sync_catalog: {
30984
+ Args: never;
30985
+ Returns: Json;
30986
+ };
29749
30987
  ai_usage_by_module: {
29750
30988
  Args: {
29751
30989
  _from: string;
@@ -29902,6 +31140,13 @@ export type Database = {
29902
31140
  };
29903
31141
  Returns: Json;
29904
31142
  };
31143
+ carrier_signup_ready_list: {
31144
+ Args: {
31145
+ p_from: string;
31146
+ p_to: string;
31147
+ };
31148
+ Returns: Json;
31149
+ };
29905
31150
  carrier_signup_send_now: {
29906
31151
  Args: {
29907
31152
  p_carrier_id: string;
@@ -30450,9 +31695,12 @@ export type Database = {
30450
31695
  control_get_todays_carts: {
30451
31696
  Args: never;
30452
31697
  Returns: {
31698
+ carrier_name: string;
30453
31699
  cart_index: number;
30454
31700
  cart_number: string;
30455
31701
  cart_number_id: string;
31702
+ country_code: string;
31703
+ crates_on_cart: number;
30456
31704
  order_id: string;
30457
31705
  order_number: string;
30458
31706
  order_source: string;
@@ -30665,6 +31913,16 @@ export type Database = {
30665
31913
  };
30666
31914
  Returns: string;
30667
31915
  };
31916
+ email_auth_enqueue_internal: {
31917
+ Args: {
31918
+ p_dedupe_key: string;
31919
+ p_from_name: string;
31920
+ p_html: string;
31921
+ p_source_module: string;
31922
+ p_subject: string;
31923
+ };
31924
+ Returns: Json;
31925
+ };
30668
31926
  email_auth_fetch_message: {
30669
31927
  Args: {
30670
31928
  _connection_id: string;
@@ -30688,6 +31946,14 @@ export type Database = {
30688
31946
  status: string;
30689
31947
  }[];
30690
31948
  };
31949
+ email_auth_install_check: {
31950
+ Args: never;
31951
+ Returns: Json;
31952
+ };
31953
+ email_auth_is_server_call: {
31954
+ Args: never;
31955
+ Returns: boolean;
31956
+ };
30691
31957
  email_auth_upsert_connection: {
30692
31958
  Args: {
30693
31959
  _account_email: string;
@@ -30842,10 +32108,49 @@ export type Database = {
30842
32108
  };
30843
32109
  Returns: Json;
30844
32110
  };
32111
+ floriday_assert_caller: {
32112
+ Args: {
32113
+ p_fn: string;
32114
+ p_level: string;
32115
+ };
32116
+ Returns: boolean;
32117
+ };
32118
+ floriday_authenticatie_install_check: {
32119
+ Args: never;
32120
+ Returns: {
32121
+ aanwezig: boolean;
32122
+ anon_uitvoer: boolean;
32123
+ authenticated_uitvoer: boolean;
32124
+ interne_controle: boolean;
32125
+ melding: string;
32126
+ naam: string;
32127
+ niveau: string;
32128
+ soort: string;
32129
+ }[];
32130
+ };
30845
32131
  floriday_autoheal_connections: {
30846
32132
  Args: never;
30847
32133
  Returns: Json;
30848
32134
  };
32135
+ floriday_background_jobs_status: {
32136
+ Args: never;
32137
+ Returns: {
32138
+ active: boolean;
32139
+ jobname: string;
32140
+ schedule: string;
32141
+ }[];
32142
+ };
32143
+ floriday_beschermde_functies: {
32144
+ Args: never;
32145
+ Returns: {
32146
+ naam: string;
32147
+ niveau: string;
32148
+ }[];
32149
+ };
32150
+ floriday_caller_is_server: {
32151
+ Args: never;
32152
+ Returns: boolean;
32153
+ };
30849
32154
  floriday_capture_stock_snapshot: {
30850
32155
  Args: never;
30851
32156
  Returns: number;
@@ -30858,6 +32163,28 @@ export type Database = {
30858
32163
  Args: never;
30859
32164
  Returns: undefined;
30860
32165
  };
32166
+ floriday_cron_command: {
32167
+ Args: {
32168
+ p_only_with_connection: boolean;
32169
+ p_route: string;
32170
+ p_timeout_ms: number;
32171
+ };
32172
+ Returns: string;
32173
+ };
32174
+ floriday_cron_inventory: {
32175
+ Args: never;
32176
+ Returns: {
32177
+ default_schedule: string;
32178
+ jobname: string;
32179
+ only_with_connection: boolean;
32180
+ route: string;
32181
+ timeout_ms: number;
32182
+ }[];
32183
+ };
32184
+ floriday_cron_key: {
32185
+ Args: never;
32186
+ Returns: string;
32187
+ };
30861
32188
  floriday_customer_candidates: {
30862
32189
  Args: never;
30863
32190
  Returns: {
@@ -30919,6 +32246,10 @@ export type Database = {
30919
32246
  postcode: string;
30920
32247
  }[];
30921
32248
  };
32249
+ floriday_ensure_cron: {
32250
+ Args: never;
32251
+ Returns: Json;
32252
+ };
30922
32253
  floriday_erp_leading_preview: {
30923
32254
  Args: {
30924
32255
  p_connection_id: string;
@@ -30962,6 +32293,10 @@ export type Database = {
30962
32293
  };
30963
32294
  Returns: Json;
30964
32295
  };
32296
+ floriday_legacy_packing_sync_present: {
32297
+ Args: never;
32298
+ Returns: Json;
32299
+ };
30965
32300
  floriday_make_erp_leading: {
30966
32301
  Args: {
30967
32302
  p_connection_id: string;
@@ -31043,6 +32378,35 @@ export type Database = {
31043
32378
  Args: never;
31044
32379
  Returns: Json;
31045
32380
  };
32381
+ flowselections_central_status: {
32382
+ Args: never;
32383
+ Returns: {
32384
+ central_url_aanwezig: boolean;
32385
+ laatste_status: string;
32386
+ laatste_sync: string;
32387
+ token_aanwezig: boolean;
32388
+ }[];
32389
+ };
32390
+ flowselections_central_sync: {
32391
+ Args: never;
32392
+ Returns: string;
32393
+ };
32394
+ flowselections_cron_post: {
32395
+ Args: {
32396
+ p_auth?: string;
32397
+ p_body?: Json;
32398
+ p_path: string;
32399
+ p_timeout_ms?: number;
32400
+ };
32401
+ Returns: number;
32402
+ };
32403
+ flowselections_set_central_link: {
32404
+ Args: {
32405
+ p_central_url: string;
32406
+ p_read_token: string;
32407
+ };
32408
+ Returns: string;
32409
+ };
31046
32410
  format_cart_number: {
31047
32411
  Args: {
31048
32412
  p_pick_date: string;
@@ -31905,10 +33269,26 @@ export type Database = {
31905
33269
  Args: never;
31906
33270
  Returns: Json;
31907
33271
  };
33272
+ klanten_correctie_landcodes: {
33273
+ Args: {
33274
+ p_uitvoeren?: boolean;
33275
+ };
33276
+ Returns: Json;
33277
+ };
31908
33278
  klanten_install_check: {
31909
33279
  Args: never;
31910
33280
  Returns: Json;
31911
33281
  };
33282
+ klanten_is_server: {
33283
+ Args: never;
33284
+ Returns: boolean;
33285
+ };
33286
+ klanten_landnaam_kandidaten: {
33287
+ Args: {
33288
+ p_waarde: string;
33289
+ };
33290
+ Returns: string[];
33291
+ };
31912
33292
  klanten_promote_round: {
31913
33293
  Args: never;
31914
33294
  Returns: Json;
@@ -31924,6 +33304,12 @@ export type Database = {
31924
33304
  };
31925
33305
  Returns: Json;
31926
33306
  };
33307
+ klanten_toegang: {
33308
+ Args: {
33309
+ p_niveau: string;
33310
+ };
33311
+ Returns: undefined;
33312
+ };
31927
33313
  layout_print_document: {
31928
33314
  Args: {
31929
33315
  _documentnaam: string;
@@ -31975,6 +33361,13 @@ export type Database = {
31975
33361
  Args: never;
31976
33362
  Returns: Json;
31977
33363
  };
33364
+ layout_voor_document: {
33365
+ Args: {
33366
+ p_documenttype: string;
33367
+ p_order_id: string;
33368
+ };
33369
+ Returns: Json;
33370
+ };
31978
33371
  layout_zorg_systeemlayouts: {
31979
33372
  Args: never;
31980
33373
  Returns: number;
@@ -32078,6 +33471,42 @@ export type Database = {
32078
33471
  };
32079
33472
  Returns: boolean;
32080
33473
  };
33474
+ logistics_acc_direct: {
33475
+ Args: {
33476
+ p_fn: string;
33477
+ };
33478
+ Returns: boolean;
33479
+ };
33480
+ logistics_acc_entry: {
33481
+ Args: never;
33482
+ Returns: string;
33483
+ };
33484
+ logistics_acc_guard: {
33485
+ Args: {
33486
+ p_fn: string;
33487
+ p_level: string;
33488
+ };
33489
+ Returns: undefined;
33490
+ };
33491
+ logistics_acc_is_server: {
33492
+ Args: never;
33493
+ Returns: boolean;
33494
+ };
33495
+ logistics_acc_levels: {
33496
+ Args: never;
33497
+ Returns: {
33498
+ functie: string;
33499
+ niveau: string;
33500
+ }[];
33501
+ };
33502
+ logistics_access_check: {
33503
+ Args: never;
33504
+ Returns: {
33505
+ ok: boolean;
33506
+ onderdeel: string;
33507
+ toelichting: string;
33508
+ }[];
33509
+ };
32081
33510
  logistics_active_layout_method: {
32082
33511
  Args: never;
32083
33512
  Returns: string;
@@ -32261,6 +33690,14 @@ export type Database = {
32261
33690
  Args: never;
32262
33691
  Returns: number;
32263
33692
  };
33693
+ logistics_belading_bevestig: {
33694
+ Args: {
33695
+ p_order_id: string;
33696
+ p_redenen?: string[];
33697
+ p_sleutel: string;
33698
+ };
33699
+ Returns: Json;
33700
+ };
32264
33701
  logistics_belading_verstuurder: {
32265
33702
  Args: never;
32266
33703
  Returns: string;
@@ -32420,6 +33857,17 @@ export type Database = {
32420
33857
  };
32421
33858
  Returns: Json;
32422
33859
  };
33860
+ logistics_carrier_enqueue: {
33861
+ Args: {
33862
+ p_order_ids: string[];
33863
+ p_reden: string;
33864
+ };
33865
+ Returns: number;
33866
+ };
33867
+ logistics_carrier_favorite_id: {
33868
+ Args: never;
33869
+ Returns: string;
33870
+ };
32423
33871
  logistics_carrier_for_location: {
32424
33872
  Args: {
32425
33873
  p_customer_id: string;
@@ -32427,6 +33875,12 @@ export type Database = {
32427
33875
  };
32428
33876
  Returns: string;
32429
33877
  };
33878
+ logistics_carrier_frozen_reason: {
33879
+ Args: {
33880
+ p_order_id: string;
33881
+ };
33882
+ Returns: string;
33883
+ };
32430
33884
  logistics_carrier_minutes: {
32431
33885
  Args: {
32432
33886
  p_carrier: string;
@@ -32434,6 +33888,86 @@ export type Database = {
32434
33888
  };
32435
33889
  Returns: number;
32436
33890
  };
33891
+ logistics_carrier_picks_up_for: {
33892
+ Args: {
33893
+ p_carrier_id: string;
33894
+ p_delivery_date: string;
33895
+ };
33896
+ Returns: boolean;
33897
+ };
33898
+ logistics_carrier_preview_existing: {
33899
+ Args: {
33900
+ p_limit?: number;
33901
+ };
33902
+ Returns: {
33903
+ bevroren: string;
33904
+ bron: string;
33905
+ carrier_id: string;
33906
+ carrier_kind: string;
33907
+ carrier_name: string;
33908
+ delivery_date: string;
33909
+ huidig_custom_carrier: string;
33910
+ order_id: string;
33911
+ order_number: string;
33912
+ order_source: string;
33913
+ reden: string;
33914
+ }[];
33915
+ };
33916
+ logistics_carrier_promote_oud: {
33917
+ Args: {
33918
+ p_confirm_count: number;
33919
+ p_order_ids: string[];
33920
+ };
33921
+ Returns: number;
33922
+ };
33923
+ logistics_carrier_recalc_run: {
33924
+ Args: {
33925
+ p_limit?: number;
33926
+ };
33927
+ Returns: Json;
33928
+ };
33929
+ logistics_carrier_result: {
33930
+ Args: {
33931
+ p_bron: string;
33932
+ p_carrier_id: string;
33933
+ p_reden: string;
33934
+ p_skips: string[];
33935
+ };
33936
+ Returns: Json;
33937
+ };
33938
+ logistics_carrier_set_backfill: {
33939
+ Args: {
33940
+ p_on: boolean;
33941
+ };
33942
+ Returns: Json;
33943
+ };
33944
+ logistics_carrier_settings_ensure: {
33945
+ Args: never;
33946
+ Returns: {
33947
+ backfill_existing: boolean;
33948
+ backfill_set_at: string | null;
33949
+ backfill_set_by: string | null;
33950
+ id: boolean;
33951
+ installed_at: string;
33952
+ updated_at: string;
33953
+ };
33954
+ SetofOptions: {
33955
+ from: "*";
33956
+ to: "logistics_carrier_settings";
33957
+ isOneToOne: true;
33958
+ isSetofReturn: false;
33959
+ };
33960
+ };
33961
+ logistics_carrier_skip_reason: {
33962
+ Args: {
33963
+ p_carrier_id: string;
33964
+ };
33965
+ Returns: string;
33966
+ };
33967
+ logistics_carrier_status: {
33968
+ Args: never;
33969
+ Returns: Json;
33970
+ };
32437
33971
  logistics_cart_archive: {
32438
33972
  Args: {
32439
33973
  p_confirm_count: number;
@@ -32647,6 +34181,16 @@ export type Database = {
32647
34181
  order_uuid: string;
32648
34182
  }[];
32649
34183
  };
34184
+ logistics_cart_seq_dubbel: {
34185
+ Args: {
34186
+ p_order_uuid?: string;
34187
+ };
34188
+ Returns: {
34189
+ cart_ids: string[];
34190
+ cart_index: number;
34191
+ order_uuid: string;
34192
+ }[];
34193
+ };
32650
34194
  logistics_cart_slip_plan: {
32651
34195
  Args: {
32652
34196
  p_order_id: string;
@@ -33398,6 +34942,12 @@ export type Database = {
33398
34942
  Args: never;
33399
34943
  Returns: Json;
33400
34944
  };
34945
+ logistics_floriday_shipping_document: {
34946
+ Args: {
34947
+ p_order_id: string;
34948
+ };
34949
+ Returns: Json;
34950
+ };
33401
34951
  logistics_floriday_status_updates_enabled: {
33402
34952
  Args: never;
33403
34953
  Returns: boolean;
@@ -33438,6 +34988,14 @@ export type Database = {
33438
34988
  Args: never;
33439
34989
  Returns: number;
33440
34990
  };
34991
+ logistics_install_check: {
34992
+ Args: never;
34993
+ Returns: {
34994
+ ok: boolean;
34995
+ onderdeel: string;
34996
+ toelichting: string;
34997
+ }[];
34998
+ };
33441
34999
  logistics_is_beheer: {
33442
35000
  Args: never;
33443
35001
  Returns: boolean;
@@ -33608,6 +35166,18 @@ export type Database = {
33608
35166
  };
33609
35167
  Returns: string;
33610
35168
  };
35169
+ logistics_order_carrier_info: {
35170
+ Args: {
35171
+ p_order_id: string;
35172
+ };
35173
+ Returns: Json;
35174
+ };
35175
+ logistics_order_carrier_label: {
35176
+ Args: {
35177
+ p_order_id: string;
35178
+ };
35179
+ Returns: string;
35180
+ };
33611
35181
  logistics_order_cart_approval: {
33612
35182
  Args: {
33613
35183
  _order_ref: string;
@@ -33933,6 +35503,18 @@ export type Database = {
33933
35503
  };
33934
35504
  Returns: Json;
33935
35505
  };
35506
+ logistics_own_traysticker_payload: {
35507
+ Args: {
35508
+ p_id: string;
35509
+ };
35510
+ Returns: Json;
35511
+ };
35512
+ logistics_own_traysticker_sync: {
35513
+ Args: {
35514
+ p_limit?: number;
35515
+ };
35516
+ Returns: Json;
35517
+ };
33936
35518
  logistics_packing_autofix: {
33937
35519
  Args: {
33938
35520
  p_limit?: number;
@@ -34162,6 +35744,15 @@ export type Database = {
34162
35744
  };
34163
35745
  Returns: string;
34164
35746
  };
35747
+ logistics_plan_fail_log: {
35748
+ Args: {
35749
+ p_actor: string;
35750
+ p_msg: string;
35751
+ p_order_id: string;
35752
+ p_state: string;
35753
+ };
35754
+ Returns: undefined;
35755
+ };
34165
35756
  logistics_plan_finish: {
34166
35757
  Args: {
34167
35758
  p_error?: string;
@@ -34233,6 +35824,15 @@ export type Database = {
34233
35824
  Args: never;
34234
35825
  Returns: number;
34235
35826
  };
35827
+ logistics_plan_queue_dubbel: {
35828
+ Args: never;
35829
+ Returns: {
35830
+ nieuwste: string;
35831
+ open_opdrachten: number;
35832
+ order_id: string;
35833
+ oudste: string;
35834
+ }[];
35835
+ };
34236
35836
  logistics_plan_queue_list: {
34237
35837
  Args: {
34238
35838
  p_limit?: number;
@@ -34274,6 +35874,13 @@ export type Database = {
34274
35874
  };
34275
35875
  Returns: number;
34276
35876
  };
35877
+ logistics_plan_retry_later: {
35878
+ Args: {
35879
+ p_id: string;
35880
+ p_seconds?: number;
35881
+ };
35882
+ Returns: undefined;
35883
+ };
34277
35884
  logistics_plan_setting: {
34278
35885
  Args: {
34279
35886
  p_default: number;
@@ -34620,6 +36227,59 @@ export type Database = {
34620
36227
  Args: never;
34621
36228
  Returns: undefined;
34622
36229
  };
36230
+ logistics_resolve_carrier: {
36231
+ Args: {
36232
+ p_order_id: string;
36233
+ };
36234
+ Returns: Json;
36235
+ };
36236
+ logistics_resolve_carrier_core: {
36237
+ Args: {
36238
+ p_order: Json;
36239
+ p_skip_manual?: boolean;
36240
+ };
36241
+ Returns: Json;
36242
+ };
36243
+ logistics_resolve_carrier_for_location: {
36244
+ Args: {
36245
+ p_customer_id: string;
36246
+ p_location_id: string;
36247
+ };
36248
+ Returns: Json;
36249
+ };
36250
+ logistics_resolve_carrier_for_location_many: {
36251
+ Args: {
36252
+ p_items: Json;
36253
+ };
36254
+ Returns: {
36255
+ bron: string;
36256
+ carrier_id: string;
36257
+ carrier_kind: string;
36258
+ carrier_name: string;
36259
+ customer_id: string;
36260
+ location_id: string;
36261
+ reden: string;
36262
+ waarschuwing: string;
36263
+ }[];
36264
+ } | {
36265
+ Args: {
36266
+ p_customer_id: string;
36267
+ p_location_ids: string[];
36268
+ };
36269
+ Returns: {
36270
+ location_id: string;
36271
+ resultaat: Json;
36272
+ }[];
36273
+ };
36274
+ logistics_resolve_carrier_many: {
36275
+ Args: {
36276
+ p_order_ids: string[];
36277
+ };
36278
+ Returns: {
36279
+ order_id: string;
36280
+ resultaat: Json;
36281
+ }[];
36282
+ };
34623
36283
  logistics_resolve_pick_document: {
34624
36284
  Args: {
34625
36285
  _is_herprint: boolean;
@@ -34729,6 +36389,20 @@ export type Database = {
34729
36389
  };
34730
36390
  Returns: Json;
34731
36391
  };
36392
+ logistics_set_order_carrier: {
36393
+ Args: {
36394
+ p_carrier_id: string;
36395
+ p_order_id: string;
36396
+ };
36397
+ Returns: Json;
36398
+ } | {
36399
+ Args: {
36400
+ p_actor: string;
36401
+ p_carrier_id: string;
36402
+ p_order_id: string;
36403
+ };
36404
+ Returns: Json;
36405
+ };
34732
36406
  logistics_set_order_priority: {
34733
36407
  Args: {
34734
36408
  p_order_ref: string;
@@ -34964,6 +36638,16 @@ export type Database = {
34964
36638
  };
34965
36639
  Returns: string;
34966
36640
  };
36641
+ logistics_sticker_copies: {
36642
+ Args: {
36643
+ p_fi: Json;
36644
+ p_order: string;
36645
+ p_sticker: string;
36646
+ p_trade_item: string;
36647
+ p_type: string;
36648
+ };
36649
+ Returns: Json;
36650
+ };
34967
36651
  logistics_sticker_distribution: {
34968
36652
  Args: {
34969
36653
  p_copies: number;
@@ -34978,6 +36662,10 @@ export type Database = {
34978
36662
  pieces: number;
34979
36663
  }[];
34980
36664
  };
36665
+ logistics_sticker_etiket_status: {
36666
+ Args: never;
36667
+ Returns: Json;
36668
+ };
34981
36669
  logistics_sticker_external_fulfilled: {
34982
36670
  Args: {
34983
36671
  p_sticker_print_id: string;
@@ -34997,6 +36685,13 @@ export type Database = {
34997
36685
  };
34998
36686
  Returns: boolean;
34999
36687
  };
36688
+ logistics_sticker_order_counts: {
36689
+ Args: {
36690
+ p_order: string;
36691
+ p_trade_item: string;
36692
+ };
36693
+ Returns: Json;
36694
+ };
35000
36695
  logistics_sticker_parse_size: {
35001
36696
  Args: {
35002
36697
  p: Json;
@@ -35308,6 +37003,15 @@ export type Database = {
35308
37003
  };
35309
37004
  Returns: Json;
35310
37005
  };
37006
+ logistics_tray_plants: {
37007
+ Args: {
37008
+ p_fust: number;
37009
+ p_fusten: number;
37010
+ p_ppc: number;
37011
+ p_regel_totaal: number;
37012
+ };
37013
+ Returns: number;
37014
+ };
35311
37015
  logistics_try_uuid: {
35312
37016
  Args: {
35313
37017
  p: string;
@@ -35554,10 +37258,25 @@ export type Database = {
35554
37258
  naam: string;
35555
37259
  online: boolean;
35556
37260
  }[];
37261
+ } | {
37262
+ Args: {
37263
+ p_device_key: string;
37264
+ };
37265
+ Returns: {
37266
+ id: string;
37267
+ locatie: string;
37268
+ naam: string;
37269
+ online: boolean;
37270
+ }[];
35557
37271
  };
35558
37272
  pick_apply_buffer_events: {
35559
37273
  Args: never;
35560
37274
  Returns: Json;
37275
+ } | {
37276
+ Args: {
37277
+ p_device_key: string;
37278
+ };
37279
+ Returns: Json;
35561
37280
  };
35562
37281
  pick_assert_printable: {
35563
37282
  Args: {
@@ -35565,6 +37284,12 @@ export type Database = {
35565
37284
  };
35566
37285
  Returns: undefined;
35567
37286
  };
37287
+ pick_assert_station: {
37288
+ Args: {
37289
+ p_device_key: string;
37290
+ };
37291
+ Returns: string;
37292
+ };
35568
37293
  pick_available_pick_days: {
35569
37294
  Args: {
35570
37295
  _max_days?: number;
@@ -35573,6 +37298,15 @@ export type Database = {
35573
37298
  orders: number;
35574
37299
  pick_day: string;
35575
37300
  }[];
37301
+ } | {
37302
+ Args: {
37303
+ _max_days?: number;
37304
+ p_device_key: string;
37305
+ };
37306
+ Returns: {
37307
+ orders: number;
37308
+ pick_day: string;
37309
+ }[];
35576
37310
  };
35577
37311
  pick_buffer_order_ids: {
35578
37312
  Args: {
@@ -35580,6 +37314,10 @@ export type Database = {
35580
37314
  };
35581
37315
  Returns: string[];
35582
37316
  };
37317
+ pick_build_key_variants: {
37318
+ Args: never;
37319
+ Returns: Json;
37320
+ };
35583
37321
  pick_cart_breakdown: {
35584
37322
  Args: {
35585
37323
  _order_id: string;
@@ -35635,6 +37373,56 @@ export type Database = {
35635
37373
  isOneToOne: true;
35636
37374
  isSetofReturn: false;
35637
37375
  };
37376
+ } | {
37377
+ Args: {
37378
+ _queue_item_id: string;
37379
+ _screen_id: string;
37380
+ _session_id: string;
37381
+ _station_id: string;
37382
+ _timeout_seconds?: number;
37383
+ p_device_key: string;
37384
+ };
37385
+ Returns: {
37386
+ announced_at: string;
37387
+ assigned_user_id: string | null;
37388
+ barcode: string | null;
37389
+ cancelled_at: string | null;
37390
+ cart_count: number;
37391
+ completed_at: string | null;
37392
+ country_code: string | null;
37393
+ created_at: string;
37394
+ customer_name: string | null;
37395
+ delivery_address: string | null;
37396
+ document_number: string | null;
37397
+ document_type_id: string | null;
37398
+ due_at: string | null;
37399
+ id: string;
37400
+ is_urgent: boolean;
37401
+ line_count: number;
37402
+ order_number: string | null;
37403
+ order_type: string | null;
37404
+ payload: Json;
37405
+ print_count: number;
37406
+ print_job_id: string | null;
37407
+ printed_at: string | null;
37408
+ printed_by: string | null;
37409
+ printed_cart_ids: Json;
37410
+ printer_id: string | null;
37411
+ priority: number;
37412
+ reference: string | null;
37413
+ route: string | null;
37414
+ screen_id: string | null;
37415
+ station_id: string | null;
37416
+ status_id: string | null;
37417
+ updated_at: string;
37418
+ warnings: Json;
37419
+ };
37420
+ SetofOptions: {
37421
+ from: "*";
37422
+ to: "pick_queue";
37423
+ isOneToOne: true;
37424
+ isSetofReturn: false;
37425
+ };
35638
37426
  };
35639
37427
  pick_claim_next_document: {
35640
37428
  Args: {
@@ -35686,6 +37474,57 @@ export type Database = {
35686
37474
  isOneToOne: true;
35687
37475
  isSetofReturn: false;
35688
37476
  };
37477
+ } | {
37478
+ Args: {
37479
+ _country_code: string;
37480
+ _pick_day?: string;
37481
+ _screen_id: string;
37482
+ _session_id: string;
37483
+ _station_id: string;
37484
+ _timeout_seconds?: number;
37485
+ p_device_key: string;
37486
+ };
37487
+ Returns: {
37488
+ announced_at: string;
37489
+ assigned_user_id: string | null;
37490
+ barcode: string | null;
37491
+ cancelled_at: string | null;
37492
+ cart_count: number;
37493
+ completed_at: string | null;
37494
+ country_code: string | null;
37495
+ created_at: string;
37496
+ customer_name: string | null;
37497
+ delivery_address: string | null;
37498
+ document_number: string | null;
37499
+ document_type_id: string | null;
37500
+ due_at: string | null;
37501
+ id: string;
37502
+ is_urgent: boolean;
37503
+ line_count: number;
37504
+ order_number: string | null;
37505
+ order_type: string | null;
37506
+ payload: Json;
37507
+ print_count: number;
37508
+ print_job_id: string | null;
37509
+ printed_at: string | null;
37510
+ printed_by: string | null;
37511
+ printed_cart_ids: Json;
37512
+ printer_id: string | null;
37513
+ priority: number;
37514
+ reference: string | null;
37515
+ route: string | null;
37516
+ screen_id: string | null;
37517
+ station_id: string | null;
37518
+ status_id: string | null;
37519
+ updated_at: string;
37520
+ warnings: Json;
37521
+ };
37522
+ SetofOptions: {
37523
+ from: "*";
37524
+ to: "pick_queue";
37525
+ isOneToOne: true;
37526
+ isSetofReturn: false;
37527
+ };
35689
37528
  };
35690
37529
  pick_cleanup_maintenance: {
35691
37530
  Args: {
@@ -35741,13 +37580,12 @@ export type Database = {
35741
37580
  isOneToOne: true;
35742
37581
  isSetofReturn: false;
35743
37582
  };
35744
- };
35745
- pick_complete_print_cart: {
37583
+ } | {
35746
37584
  Args: {
35747
- _cart_id: string;
35748
37585
  _printer_id: string;
35749
37586
  _queue_item_id: string;
35750
37587
  _session_id: string;
37588
+ p_device_key: string;
35751
37589
  };
35752
37590
  Returns: {
35753
37591
  announced_at: string;
@@ -35791,77 +37629,308 @@ export type Database = {
35791
37629
  isSetofReturn: false;
35792
37630
  };
35793
37631
  };
35794
- pick_complete_print_carts: {
37632
+ pick_complete_print_cart: {
35795
37633
  Args: {
35796
- _cart_ids: string[];
37634
+ _cart_id: string;
37635
+ _printer_id: string;
35797
37636
  _queue_item_id: string;
35798
37637
  _session_id: string;
35799
37638
  };
35800
- Returns: Json;
35801
- };
35802
- pick_current_pick_day: {
35803
- Args: never;
35804
- Returns: string;
35805
- };
35806
- pick_day_counts: {
35807
- Args: {
35808
- _pick_day?: string;
35809
- _screen_id?: string;
35810
- _station_id?: string;
35811
- };
35812
- Returns: Json;
35813
- };
35814
- pick_document_layout_data: {
35815
- Args: {
35816
- _layout_id: string;
37639
+ Returns: {
37640
+ announced_at: string;
37641
+ assigned_user_id: string | null;
37642
+ barcode: string | null;
37643
+ cancelled_at: string | null;
37644
+ cart_count: number;
37645
+ completed_at: string | null;
37646
+ country_code: string | null;
37647
+ created_at: string;
37648
+ customer_name: string | null;
37649
+ delivery_address: string | null;
37650
+ document_number: string | null;
37651
+ document_type_id: string | null;
37652
+ due_at: string | null;
37653
+ id: string;
37654
+ is_urgent: boolean;
37655
+ line_count: number;
37656
+ order_number: string | null;
37657
+ order_type: string | null;
37658
+ payload: Json;
37659
+ print_count: number;
37660
+ print_job_id: string | null;
37661
+ printed_at: string | null;
37662
+ printed_by: string | null;
37663
+ printed_cart_ids: Json;
37664
+ printer_id: string | null;
37665
+ priority: number;
37666
+ reference: string | null;
37667
+ route: string | null;
37668
+ screen_id: string | null;
37669
+ station_id: string | null;
37670
+ status_id: string | null;
37671
+ updated_at: string;
37672
+ warnings: Json;
35817
37673
  };
35818
- Returns: Json;
35819
- };
35820
- pick_enqueue_print_job: {
35821
- Args: {
35822
- _is_herprint?: boolean;
35823
- _printer_id?: string;
35824
- _queue_item_id: string;
35825
- _session_id?: string;
37674
+ SetofOptions: {
37675
+ from: "*";
37676
+ to: "pick_queue";
37677
+ isOneToOne: true;
37678
+ isSetofReturn: false;
35826
37679
  };
35827
- Returns: string;
35828
37680
  } | {
35829
37681
  Args: {
35830
37682
  _cart_id: string;
35831
- _is_herprint: boolean;
35832
37683
  _printer_id: string;
35833
37684
  _queue_item_id: string;
35834
37685
  _session_id: string;
35835
- };
35836
- Returns: string;
35837
- };
35838
- pick_enqueue_print_job_from_cart: {
35839
- Args: {
35840
- _cart_id: string;
35841
- _is_herprint: boolean;
35842
- _printer_id: string;
35843
- _queue_item_id: string;
35844
- _selected_cart: Json;
35845
- _session_id: string;
35846
- };
35847
- Returns: string;
35848
- };
35849
- pick_find_sent_elsewhere: {
35850
- Args: {
35851
- _cart_id: string;
35852
- _queue_item_id: string;
35853
- };
35854
- Returns: Json;
35855
- };
35856
- pick_is_reference_admin: {
35857
- Args: never;
35858
- Returns: boolean;
35859
- };
35860
- pick_mark_printed: {
35861
- Args: {
35862
- _queue_item_id: string;
35863
- _reden?: string;
35864
- _session_id: string;
37686
+ p_device_key: string;
37687
+ };
37688
+ Returns: {
37689
+ announced_at: string;
37690
+ assigned_user_id: string | null;
37691
+ barcode: string | null;
37692
+ cancelled_at: string | null;
37693
+ cart_count: number;
37694
+ completed_at: string | null;
37695
+ country_code: string | null;
37696
+ created_at: string;
37697
+ customer_name: string | null;
37698
+ delivery_address: string | null;
37699
+ document_number: string | null;
37700
+ document_type_id: string | null;
37701
+ due_at: string | null;
37702
+ id: string;
37703
+ is_urgent: boolean;
37704
+ line_count: number;
37705
+ order_number: string | null;
37706
+ order_type: string | null;
37707
+ payload: Json;
37708
+ print_count: number;
37709
+ print_job_id: string | null;
37710
+ printed_at: string | null;
37711
+ printed_by: string | null;
37712
+ printed_cart_ids: Json;
37713
+ printer_id: string | null;
37714
+ priority: number;
37715
+ reference: string | null;
37716
+ route: string | null;
37717
+ screen_id: string | null;
37718
+ station_id: string | null;
37719
+ status_id: string | null;
37720
+ updated_at: string;
37721
+ warnings: Json;
37722
+ };
37723
+ SetofOptions: {
37724
+ from: "*";
37725
+ to: "pick_queue";
37726
+ isOneToOne: true;
37727
+ isSetofReturn: false;
37728
+ };
37729
+ };
37730
+ pick_complete_print_carts: {
37731
+ Args: {
37732
+ _cart_ids: string[];
37733
+ _queue_item_id: string;
37734
+ _session_id: string;
37735
+ };
37736
+ Returns: Json;
37737
+ } | {
37738
+ Args: {
37739
+ _cart_ids: string[];
37740
+ _queue_item_id: string;
37741
+ _session_id: string;
37742
+ p_device_key: string;
37743
+ };
37744
+ Returns: Json;
37745
+ };
37746
+ pick_create_pair_code: {
37747
+ Args: {
37748
+ p_station_id: string;
37749
+ };
37750
+ Returns: Json;
37751
+ };
37752
+ pick_current_pick_day: {
37753
+ Args: never;
37754
+ Returns: string;
37755
+ } | {
37756
+ Args: {
37757
+ p_device_key: string;
37758
+ };
37759
+ Returns: string;
37760
+ };
37761
+ pick_day_counts: {
37762
+ Args: {
37763
+ _pick_day?: string;
37764
+ _screen_id?: string;
37765
+ _station_id?: string;
37766
+ };
37767
+ Returns: Json;
37768
+ } | {
37769
+ Args: {
37770
+ _pick_day?: string;
37771
+ _screen_id?: string;
37772
+ _station_id?: string;
37773
+ p_device_key: string;
37774
+ };
37775
+ Returns: Json;
37776
+ };
37777
+ pick_device_check: {
37778
+ Args: {
37779
+ p_cart: string;
37780
+ p_device_key: string;
37781
+ p_item: string;
37782
+ p_order: string;
37783
+ p_slug: string;
37784
+ p_station: string;
37785
+ };
37786
+ Returns: undefined;
37787
+ };
37788
+ pick_device_gate: {
37789
+ Args: {
37790
+ p_device_key: string;
37791
+ };
37792
+ Returns: string;
37793
+ };
37794
+ pick_device_key_required: {
37795
+ Args: never;
37796
+ Returns: boolean;
37797
+ };
37798
+ pick_document_layout_data: {
37799
+ Args: {
37800
+ _layout_id: string;
37801
+ };
37802
+ Returns: Json;
37803
+ };
37804
+ pick_enqueue_print_job: {
37805
+ Args: {
37806
+ _is_herprint?: boolean;
37807
+ _printer_id?: string;
37808
+ _queue_item_id: string;
37809
+ _session_id?: string;
37810
+ };
37811
+ Returns: string;
37812
+ } | {
37813
+ Args: {
37814
+ _cart_id: string;
37815
+ _is_herprint: boolean;
37816
+ _printer_id: string;
37817
+ _queue_item_id: string;
37818
+ _session_id: string;
37819
+ };
37820
+ Returns: string;
37821
+ } | {
37822
+ Args: {
37823
+ _is_herprint?: boolean;
37824
+ _printer_id?: string;
37825
+ _queue_item_id: string;
37826
+ _session_id?: string;
37827
+ p_device_key: string;
37828
+ };
37829
+ Returns: string;
37830
+ } | {
37831
+ Args: {
37832
+ _cart_id: string;
37833
+ _is_herprint: boolean;
37834
+ _printer_id: string;
37835
+ _queue_item_id: string;
37836
+ _session_id: string;
37837
+ p_device_key: string;
37838
+ };
37839
+ Returns: string;
37840
+ };
37841
+ pick_enqueue_print_job_from_cart: {
37842
+ Args: {
37843
+ _cart_id: string;
37844
+ _is_herprint: boolean;
37845
+ _printer_id: string;
37846
+ _queue_item_id: string;
37847
+ _selected_cart: Json;
37848
+ _session_id: string;
37849
+ };
37850
+ Returns: string;
37851
+ };
37852
+ pick_ensure_settings: {
37853
+ Args: never;
37854
+ Returns: undefined;
37855
+ };
37856
+ pick_find_sent_elsewhere: {
37857
+ Args: {
37858
+ _cart_id: string;
37859
+ _queue_item_id: string;
37860
+ };
37861
+ Returns: Json;
37862
+ };
37863
+ pick_has_station_role: {
37864
+ Args: never;
37865
+ Returns: boolean;
37866
+ };
37867
+ pick_is_reference_admin: {
37868
+ Args: never;
37869
+ Returns: boolean;
37870
+ };
37871
+ pick_is_server: {
37872
+ Args: never;
37873
+ Returns: boolean;
37874
+ };
37875
+ pick_key_hash: {
37876
+ Args: {
37877
+ p_key: string;
37878
+ };
37879
+ Returns: string;
37880
+ };
37881
+ pick_mark_printed: {
37882
+ Args: {
37883
+ _queue_item_id: string;
37884
+ _reden?: string;
37885
+ _session_id: string;
37886
+ };
37887
+ Returns: {
37888
+ announced_at: string;
37889
+ assigned_user_id: string | null;
37890
+ barcode: string | null;
37891
+ cancelled_at: string | null;
37892
+ cart_count: number;
37893
+ completed_at: string | null;
37894
+ country_code: string | null;
37895
+ created_at: string;
37896
+ customer_name: string | null;
37897
+ delivery_address: string | null;
37898
+ document_number: string | null;
37899
+ document_type_id: string | null;
37900
+ due_at: string | null;
37901
+ id: string;
37902
+ is_urgent: boolean;
37903
+ line_count: number;
37904
+ order_number: string | null;
37905
+ order_type: string | null;
37906
+ payload: Json;
37907
+ print_count: number;
37908
+ print_job_id: string | null;
37909
+ printed_at: string | null;
37910
+ printed_by: string | null;
37911
+ printed_cart_ids: Json;
37912
+ printer_id: string | null;
37913
+ priority: number;
37914
+ reference: string | null;
37915
+ route: string | null;
37916
+ screen_id: string | null;
37917
+ station_id: string | null;
37918
+ status_id: string | null;
37919
+ updated_at: string;
37920
+ warnings: Json;
37921
+ };
37922
+ SetofOptions: {
37923
+ from: "*";
37924
+ to: "pick_queue";
37925
+ isOneToOne: true;
37926
+ isSetofReturn: false;
37927
+ };
37928
+ } | {
37929
+ Args: {
37930
+ _queue_item_id: string;
37931
+ _reden?: string;
37932
+ _session_id: string;
37933
+ p_device_key: string;
35865
37934
  };
35866
37935
  Returns: {
35867
37936
  announced_at: string;
@@ -35918,18 +37987,37 @@ export type Database = {
35918
37987
  _station_slug: string;
35919
37988
  };
35920
37989
  Returns: Json;
37990
+ } | {
37991
+ Args: {
37992
+ _queue_item_id: string;
37993
+ _station_slug: string;
37994
+ p_device_key: string;
37995
+ };
37996
+ Returns: Json;
35921
37997
  };
35922
37998
  pick_print_job_status: {
35923
37999
  Args: {
35924
38000
  _job_id: string;
35925
38001
  };
35926
38002
  Returns: Json;
38003
+ } | {
38004
+ Args: {
38005
+ _job_id: string;
38006
+ p_device_key: string;
38007
+ };
38008
+ Returns: Json;
35927
38009
  };
35928
38010
  pick_print_jobs_status: {
35929
38011
  Args: {
35930
38012
  _job_ids: string[];
35931
38013
  };
35932
38014
  Returns: Json[];
38015
+ } | {
38016
+ Args: {
38017
+ _job_ids: string[];
38018
+ p_device_key: string;
38019
+ };
38020
+ Returns: Json[];
35933
38021
  };
35934
38022
  pick_print_plekken: {
35935
38023
  Args: never;
@@ -35938,12 +38026,27 @@ export type Database = {
35938
38026
  naam: string;
35939
38027
  omschrijving: string;
35940
38028
  }[];
38029
+ } | {
38030
+ Args: {
38031
+ p_device_key: string;
38032
+ };
38033
+ Returns: {
38034
+ id: string;
38035
+ naam: string;
38036
+ omschrijving: string;
38037
+ }[];
35941
38038
  };
35942
38039
  pick_queue_cart_plan: {
35943
38040
  Args: {
35944
38041
  _queue_item_id: string;
35945
38042
  };
35946
38043
  Returns: Json;
38044
+ } | {
38045
+ Args: {
38046
+ _queue_item_id: string;
38047
+ p_device_key: string;
38048
+ };
38049
+ Returns: Json;
35947
38050
  };
35948
38051
  pick_queue_cart_plan_v152: {
35949
38052
  Args: {
@@ -35951,23 +38054,220 @@ export type Database = {
35951
38054
  };
35952
38055
  Returns: Json;
35953
38056
  };
38057
+ pick_read_by_code: {
38058
+ Args: {
38059
+ p_code: string;
38060
+ p_device_key: string;
38061
+ p_station_id: string;
38062
+ };
38063
+ Returns: {
38064
+ announced_at: string;
38065
+ assigned_user_id: string | null;
38066
+ barcode: string | null;
38067
+ cancelled_at: string | null;
38068
+ cart_count: number;
38069
+ completed_at: string | null;
38070
+ country_code: string | null;
38071
+ created_at: string;
38072
+ customer_name: string | null;
38073
+ delivery_address: string | null;
38074
+ document_number: string | null;
38075
+ document_type_id: string | null;
38076
+ due_at: string | null;
38077
+ id: string;
38078
+ is_urgent: boolean;
38079
+ line_count: number;
38080
+ order_number: string | null;
38081
+ order_type: string | null;
38082
+ payload: Json;
38083
+ print_count: number;
38084
+ print_job_id: string | null;
38085
+ printed_at: string | null;
38086
+ printed_by: string | null;
38087
+ printed_cart_ids: Json;
38088
+ printer_id: string | null;
38089
+ priority: number;
38090
+ reference: string | null;
38091
+ route: string | null;
38092
+ screen_id: string | null;
38093
+ station_id: string | null;
38094
+ status_id: string | null;
38095
+ updated_at: string;
38096
+ warnings: Json;
38097
+ }[];
38098
+ SetofOptions: {
38099
+ from: "*";
38100
+ to: "pick_queue";
38101
+ isOneToOne: false;
38102
+ isSetofReturn: true;
38103
+ };
38104
+ };
38105
+ pick_read_country_counts: {
38106
+ Args: {
38107
+ p_device_key: string;
38108
+ p_screen_id: string;
38109
+ p_station_id: string;
38110
+ };
38111
+ Returns: Json;
38112
+ };
38113
+ pick_read_locks: {
38114
+ Args: {
38115
+ p_device_key: string;
38116
+ p_station_id: string;
38117
+ };
38118
+ Returns: {
38119
+ expires_at: string;
38120
+ id: string;
38121
+ locked_at: string;
38122
+ locked_by: string | null;
38123
+ queue_item_id: string;
38124
+ screen_id: string | null;
38125
+ session_id: string | null;
38126
+ station_id: string | null;
38127
+ }[];
38128
+ SetofOptions: {
38129
+ from: "*";
38130
+ to: "pick_queue_locks";
38131
+ isOneToOne: false;
38132
+ isSetofReturn: true;
38133
+ };
38134
+ };
38135
+ pick_read_queue: {
38136
+ Args: {
38137
+ p_country: string;
38138
+ p_device_key: string;
38139
+ p_document_type_id: string;
38140
+ p_include_done: boolean;
38141
+ p_limit: number;
38142
+ p_offset: number;
38143
+ p_pick_day: string;
38144
+ p_screen_id: string;
38145
+ p_search: string;
38146
+ p_sort: Json;
38147
+ p_station_id: string;
38148
+ p_urgent_only: boolean;
38149
+ };
38150
+ Returns: Json;
38151
+ };
38152
+ pick_read_station: {
38153
+ Args: {
38154
+ p_device_key: string;
38155
+ p_slug: string;
38156
+ };
38157
+ Returns: {
38158
+ active: boolean;
38159
+ allow_multi_screen: boolean;
38160
+ color: string | null;
38161
+ created_at: string;
38162
+ default_printer_id: string | null;
38163
+ department: string | null;
38164
+ description: string | null;
38165
+ icon: string | null;
38166
+ id: string;
38167
+ location: string | null;
38168
+ lock_timeout_seconds: number;
38169
+ name: string;
38170
+ require_country_selection: boolean;
38171
+ slug: string | null;
38172
+ sort_order: number;
38173
+ sort_rules: Json;
38174
+ task_id: string | null;
38175
+ type_id: string | null;
38176
+ updated_at: string;
38177
+ }[];
38178
+ SetofOptions: {
38179
+ from: "*";
38180
+ to: "pick_stations";
38181
+ isOneToOne: false;
38182
+ isSetofReturn: true;
38183
+ };
38184
+ };
38185
+ pick_read_unscanned_earlier: {
38186
+ Args: {
38187
+ p_before_day: string;
38188
+ p_device_key: string;
38189
+ p_station_id: string;
38190
+ };
38191
+ Returns: {
38192
+ announced_at: string;
38193
+ assigned_user_id: string | null;
38194
+ barcode: string | null;
38195
+ cancelled_at: string | null;
38196
+ cart_count: number;
38197
+ completed_at: string | null;
38198
+ country_code: string | null;
38199
+ created_at: string;
38200
+ customer_name: string | null;
38201
+ delivery_address: string | null;
38202
+ document_number: string | null;
38203
+ document_type_id: string | null;
38204
+ due_at: string | null;
38205
+ id: string;
38206
+ is_urgent: boolean;
38207
+ line_count: number;
38208
+ order_number: string | null;
38209
+ order_type: string | null;
38210
+ payload: Json;
38211
+ print_count: number;
38212
+ print_job_id: string | null;
38213
+ printed_at: string | null;
38214
+ printed_by: string | null;
38215
+ printed_cart_ids: Json;
38216
+ printer_id: string | null;
38217
+ priority: number;
38218
+ reference: string | null;
38219
+ route: string | null;
38220
+ screen_id: string | null;
38221
+ station_id: string | null;
38222
+ status_id: string | null;
38223
+ updated_at: string;
38224
+ warnings: Json;
38225
+ }[];
38226
+ SetofOptions: {
38227
+ from: "*";
38228
+ to: "pick_queue";
38229
+ isOneToOne: false;
38230
+ isSetofReturn: true;
38231
+ };
38232
+ };
35954
38233
  pick_reference_data_status: {
35955
38234
  Args: never;
35956
38235
  Returns: Json;
38236
+ } | {
38237
+ Args: {
38238
+ p_device_key: string;
38239
+ };
38240
+ Returns: Json;
35957
38241
  };
35958
38242
  pick_release_expired_locks: {
35959
38243
  Args: never;
35960
38244
  Returns: number;
38245
+ } | {
38246
+ Args: {
38247
+ p_device_key: string;
38248
+ };
38249
+ Returns: number;
35961
38250
  };
35962
38251
  pick_release_lock: {
35963
38252
  Args: {
35964
38253
  _queue_item_id: string;
35965
38254
  };
35966
38255
  Returns: undefined;
38256
+ } | {
38257
+ Args: {
38258
+ _queue_item_id: string;
38259
+ p_device_key: string;
38260
+ };
38261
+ Returns: undefined;
35967
38262
  };
35968
38263
  pick_report_missing_cart_plan: {
35969
38264
  Args: never;
35970
38265
  Returns: Json;
38266
+ } | {
38267
+ Args: {
38268
+ p_device_key: string;
38269
+ };
38270
+ Returns: Json;
35971
38271
  };
35972
38272
  pick_reprint_cart: {
35973
38273
  Args: {
@@ -35977,6 +38277,15 @@ export type Database = {
35977
38277
  _throttle_seconds?: number;
35978
38278
  };
35979
38279
  Returns: string;
38280
+ } | {
38281
+ Args: {
38282
+ _cart_id: string;
38283
+ _queue_item_id: string;
38284
+ _session_id: string;
38285
+ _throttle_seconds?: number;
38286
+ p_device_key: string;
38287
+ };
38288
+ Returns: string;
35980
38289
  };
35981
38290
  pick_reprint_document: {
35982
38291
  Args: {
@@ -35985,6 +38294,14 @@ export type Database = {
35985
38294
  _throttle_seconds?: number;
35986
38295
  };
35987
38296
  Returns: string;
38297
+ } | {
38298
+ Args: {
38299
+ _queue_item_id: string;
38300
+ _session_id: string;
38301
+ _throttle_seconds?: number;
38302
+ p_device_key: string;
38303
+ };
38304
+ Returns: string;
35988
38305
  };
35989
38306
  pick_reset_print: {
35990
38307
  Args: {
@@ -36079,6 +38396,101 @@ export type Database = {
36079
38396
  isOneToOne: true;
36080
38397
  isSetofReturn: false;
36081
38398
  };
38399
+ } | {
38400
+ Args: {
38401
+ _queue_item_id: string;
38402
+ _session_id: string;
38403
+ p_device_key: string;
38404
+ };
38405
+ Returns: {
38406
+ announced_at: string;
38407
+ assigned_user_id: string | null;
38408
+ barcode: string | null;
38409
+ cancelled_at: string | null;
38410
+ cart_count: number;
38411
+ completed_at: string | null;
38412
+ country_code: string | null;
38413
+ created_at: string;
38414
+ customer_name: string | null;
38415
+ delivery_address: string | null;
38416
+ document_number: string | null;
38417
+ document_type_id: string | null;
38418
+ due_at: string | null;
38419
+ id: string;
38420
+ is_urgent: boolean;
38421
+ line_count: number;
38422
+ order_number: string | null;
38423
+ order_type: string | null;
38424
+ payload: Json;
38425
+ print_count: number;
38426
+ print_job_id: string | null;
38427
+ printed_at: string | null;
38428
+ printed_by: string | null;
38429
+ printed_cart_ids: Json;
38430
+ printer_id: string | null;
38431
+ priority: number;
38432
+ reference: string | null;
38433
+ route: string | null;
38434
+ screen_id: string | null;
38435
+ station_id: string | null;
38436
+ status_id: string | null;
38437
+ updated_at: string;
38438
+ warnings: Json;
38439
+ };
38440
+ SetofOptions: {
38441
+ from: "*";
38442
+ to: "pick_queue";
38443
+ isOneToOne: true;
38444
+ isSetofReturn: false;
38445
+ };
38446
+ } | {
38447
+ Args: {
38448
+ _cart_id: string;
38449
+ _queue_item_id: string;
38450
+ _session_id: string;
38451
+ p_device_key: string;
38452
+ };
38453
+ Returns: {
38454
+ announced_at: string;
38455
+ assigned_user_id: string | null;
38456
+ barcode: string | null;
38457
+ cancelled_at: string | null;
38458
+ cart_count: number;
38459
+ completed_at: string | null;
38460
+ country_code: string | null;
38461
+ created_at: string;
38462
+ customer_name: string | null;
38463
+ delivery_address: string | null;
38464
+ document_number: string | null;
38465
+ document_type_id: string | null;
38466
+ due_at: string | null;
38467
+ id: string;
38468
+ is_urgent: boolean;
38469
+ line_count: number;
38470
+ order_number: string | null;
38471
+ order_type: string | null;
38472
+ payload: Json;
38473
+ print_count: number;
38474
+ print_job_id: string | null;
38475
+ printed_at: string | null;
38476
+ printed_by: string | null;
38477
+ printed_cart_ids: Json;
38478
+ printer_id: string | null;
38479
+ priority: number;
38480
+ reference: string | null;
38481
+ route: string | null;
38482
+ screen_id: string | null;
38483
+ station_id: string | null;
38484
+ status_id: string | null;
38485
+ updated_at: string;
38486
+ warnings: Json;
38487
+ };
38488
+ SetofOptions: {
38489
+ from: "*";
38490
+ to: "pick_queue";
38491
+ isOneToOne: true;
38492
+ isSetofReturn: false;
38493
+ };
36082
38494
  };
36083
38495
  pick_reset_print_job: {
36084
38496
  Args: {
@@ -36128,6 +38540,55 @@ export type Database = {
36128
38540
  isOneToOne: true;
36129
38541
  isSetofReturn: false;
36130
38542
  };
38543
+ } | {
38544
+ Args: {
38545
+ _cart_id: string;
38546
+ _job_id: string;
38547
+ _queue_item_id: string;
38548
+ _session_id: string;
38549
+ p_device_key: string;
38550
+ };
38551
+ Returns: {
38552
+ announced_at: string;
38553
+ assigned_user_id: string | null;
38554
+ barcode: string | null;
38555
+ cancelled_at: string | null;
38556
+ cart_count: number;
38557
+ completed_at: string | null;
38558
+ country_code: string | null;
38559
+ created_at: string;
38560
+ customer_name: string | null;
38561
+ delivery_address: string | null;
38562
+ document_number: string | null;
38563
+ document_type_id: string | null;
38564
+ due_at: string | null;
38565
+ id: string;
38566
+ is_urgent: boolean;
38567
+ line_count: number;
38568
+ order_number: string | null;
38569
+ order_type: string | null;
38570
+ payload: Json;
38571
+ print_count: number;
38572
+ print_job_id: string | null;
38573
+ printed_at: string | null;
38574
+ printed_by: string | null;
38575
+ printed_cart_ids: Json;
38576
+ printer_id: string | null;
38577
+ priority: number;
38578
+ reference: string | null;
38579
+ route: string | null;
38580
+ screen_id: string | null;
38581
+ station_id: string | null;
38582
+ status_id: string | null;
38583
+ updated_at: string;
38584
+ warnings: Json;
38585
+ };
38586
+ SetofOptions: {
38587
+ from: "*";
38588
+ to: "pick_queue";
38589
+ isOneToOne: true;
38590
+ isSetofReturn: false;
38591
+ };
36131
38592
  };
36132
38593
  pick_reset_print_jobs: {
36133
38594
  Args: {
@@ -36177,6 +38638,55 @@ export type Database = {
36177
38638
  isOneToOne: true;
36178
38639
  isSetofReturn: false;
36179
38640
  };
38641
+ } | {
38642
+ Args: {
38643
+ _cart_ids: string[];
38644
+ _job_ids: string[];
38645
+ _queue_item_id: string;
38646
+ _session_id: string;
38647
+ p_device_key: string;
38648
+ };
38649
+ Returns: {
38650
+ announced_at: string;
38651
+ assigned_user_id: string | null;
38652
+ barcode: string | null;
38653
+ cancelled_at: string | null;
38654
+ cart_count: number;
38655
+ completed_at: string | null;
38656
+ country_code: string | null;
38657
+ created_at: string;
38658
+ customer_name: string | null;
38659
+ delivery_address: string | null;
38660
+ document_number: string | null;
38661
+ document_type_id: string | null;
38662
+ due_at: string | null;
38663
+ id: string;
38664
+ is_urgent: boolean;
38665
+ line_count: number;
38666
+ order_number: string | null;
38667
+ order_type: string | null;
38668
+ payload: Json;
38669
+ print_count: number;
38670
+ print_job_id: string | null;
38671
+ printed_at: string | null;
38672
+ printed_by: string | null;
38673
+ printed_cart_ids: Json;
38674
+ printer_id: string | null;
38675
+ priority: number;
38676
+ reference: string | null;
38677
+ route: string | null;
38678
+ screen_id: string | null;
38679
+ station_id: string | null;
38680
+ status_id: string | null;
38681
+ updated_at: string;
38682
+ warnings: Json;
38683
+ };
38684
+ SetofOptions: {
38685
+ from: "*";
38686
+ to: "pick_queue";
38687
+ isOneToOne: true;
38688
+ isSetofReturn: false;
38689
+ };
36180
38690
  };
36181
38691
  pick_restore_to_queue: {
36182
38692
  Args: {
@@ -36224,6 +38734,65 @@ export type Database = {
36224
38734
  isOneToOne: true;
36225
38735
  isSetofReturn: false;
36226
38736
  };
38737
+ } | {
38738
+ Args: {
38739
+ _queue_item_id: string;
38740
+ _session_id: string;
38741
+ p_device_key: string;
38742
+ };
38743
+ Returns: {
38744
+ announced_at: string;
38745
+ assigned_user_id: string | null;
38746
+ barcode: string | null;
38747
+ cancelled_at: string | null;
38748
+ cart_count: number;
38749
+ completed_at: string | null;
38750
+ country_code: string | null;
38751
+ created_at: string;
38752
+ customer_name: string | null;
38753
+ delivery_address: string | null;
38754
+ document_number: string | null;
38755
+ document_type_id: string | null;
38756
+ due_at: string | null;
38757
+ id: string;
38758
+ is_urgent: boolean;
38759
+ line_count: number;
38760
+ order_number: string | null;
38761
+ order_type: string | null;
38762
+ payload: Json;
38763
+ print_count: number;
38764
+ print_job_id: string | null;
38765
+ printed_at: string | null;
38766
+ printed_by: string | null;
38767
+ printed_cart_ids: Json;
38768
+ printer_id: string | null;
38769
+ priority: number;
38770
+ reference: string | null;
38771
+ route: string | null;
38772
+ screen_id: string | null;
38773
+ station_id: string | null;
38774
+ status_id: string | null;
38775
+ updated_at: string;
38776
+ warnings: Json;
38777
+ };
38778
+ SetofOptions: {
38779
+ from: "*";
38780
+ to: "pick_queue";
38781
+ isOneToOne: true;
38782
+ isSetofReturn: false;
38783
+ };
38784
+ };
38785
+ pick_revoke_device: {
38786
+ Args: {
38787
+ p_device_id: string;
38788
+ };
38789
+ Returns: undefined;
38790
+ };
38791
+ pick_role_allowed: {
38792
+ Args: {
38793
+ p_level: string;
38794
+ };
38795
+ Returns: boolean;
36227
38796
  };
36228
38797
  pick_seed_reference_data: {
36229
38798
  Args: never;
@@ -36235,6 +38804,19 @@ export type Database = {
36235
38804
  _station_id: string;
36236
38805
  };
36237
38806
  Returns: string;
38807
+ } | {
38808
+ Args: {
38809
+ _print_plek_id: string;
38810
+ _station_id: string;
38811
+ p_device_key: string;
38812
+ };
38813
+ Returns: string;
38814
+ };
38815
+ pick_signal_station: {
38816
+ Args: {
38817
+ p_station: string;
38818
+ };
38819
+ Returns: undefined;
36238
38820
  };
36239
38821
  pick_station_dashboard: {
36240
38822
  Args: never;
@@ -36247,6 +38829,31 @@ export type Database = {
36247
38829
  station_name: string;
36248
38830
  waiting: number;
36249
38831
  }[];
38832
+ } | {
38833
+ Args: {
38834
+ p_device_key: string;
38835
+ };
38836
+ Returns: {
38837
+ active: number;
38838
+ active_sessions: number;
38839
+ avg_wait_seconds: number;
38840
+ done_today: number;
38841
+ station_id: string;
38842
+ station_name: string;
38843
+ waiting: number;
38844
+ }[];
38845
+ };
38846
+ pick_station_devices_list: {
38847
+ Args: {
38848
+ p_station_id: string;
38849
+ };
38850
+ Returns: {
38851
+ created_at: string;
38852
+ id: string;
38853
+ ingetrokken_op: string;
38854
+ laatst_gezien: string;
38855
+ naam: string;
38856
+ }[];
36250
38857
  };
36251
38858
  pick_station_print_plek: {
36252
38859
  Args: {
@@ -36257,6 +38864,16 @@ export type Database = {
36257
38864
  omschrijving: string;
36258
38865
  print_plek_id: string;
36259
38866
  }[];
38867
+ } | {
38868
+ Args: {
38869
+ _station_id: string;
38870
+ p_device_key: string;
38871
+ };
38872
+ Returns: {
38873
+ naam: string;
38874
+ omschrijving: string;
38875
+ print_plek_id: string;
38876
+ }[];
36260
38877
  };
36261
38878
  pick_station_print_plekken: {
36262
38879
  Args: never;
@@ -36266,6 +38883,16 @@ export type Database = {
36266
38883
  print_plek_id: string;
36267
38884
  station_id: string;
36268
38885
  }[];
38886
+ } | {
38887
+ Args: {
38888
+ p_device_key: string;
38889
+ };
38890
+ Returns: {
38891
+ naam: string;
38892
+ omschrijving: string;
38893
+ print_plek_id: string;
38894
+ station_id: string;
38895
+ }[];
36269
38896
  };
36270
38897
  pick_station_slugify: {
36271
38898
  Args: {
@@ -36285,20 +38912,49 @@ export type Database = {
36285
38912
  _day: string;
36286
38913
  };
36287
38914
  Returns: Json;
38915
+ } | {
38916
+ Args: {
38917
+ _day: string;
38918
+ p_device_key: string;
38919
+ };
38920
+ Returns: Json;
36288
38921
  };
36289
38922
  pick_sync_queue_throttled: {
36290
38923
  Args: {
36291
38924
  _min_seconds?: number;
36292
38925
  };
36293
38926
  Returns: Json;
38927
+ } | {
38928
+ Args: {
38929
+ _min_seconds?: number;
38930
+ p_device_key: string;
38931
+ };
38932
+ Returns: Json;
36294
38933
  };
36295
38934
  pick_verify_rows: {
36296
38935
  Args: {
36297
38936
  _rows: Json;
36298
38937
  };
36299
38938
  Returns: Json;
38939
+ } | {
38940
+ Args: {
38941
+ _rows: Json;
38942
+ p_device_key: string;
38943
+ };
38944
+ Returns: Json;
38945
+ };
38946
+ pickschermen_install_check: {
38947
+ Args: never;
38948
+ Returns: Json;
36300
38949
  };
36301
38950
  pickstation_auto_send_status: {
38951
+ Args: {
38952
+ p_device_key: string;
38953
+ p_order_id: string;
38954
+ p_slug: string;
38955
+ };
38956
+ Returns: Json;
38957
+ } | {
36302
38958
  Args: {
36303
38959
  p_order_id: string;
36304
38960
  p_slug: string;
@@ -36308,11 +38964,32 @@ export type Database = {
36308
38964
  pickstation_cart_sticker_state: {
36309
38965
  Args: {
36310
38966
  p_cart_id: string;
38967
+ p_device_key: string;
38968
+ p_slug: string;
38969
+ };
38970
+ Returns: Json;
38971
+ } | {
38972
+ Args: {
38973
+ p_cart_id: string;
38974
+ p_slug: string;
38975
+ };
38976
+ Returns: Json;
38977
+ };
38978
+ pickstation_device_status: {
38979
+ Args: {
38980
+ p_device_key: string;
36311
38981
  p_slug: string;
36312
38982
  };
36313
38983
  Returns: Json;
36314
38984
  };
36315
38985
  pickstation_document_for_order: {
38986
+ Args: {
38987
+ p_device_key: string;
38988
+ p_queue_item_id: string;
38989
+ p_slug: string;
38990
+ };
38991
+ Returns: Json;
38992
+ } | {
36316
38993
  Args: {
36317
38994
  p_queue_item_id: string;
36318
38995
  p_slug: string;
@@ -36322,33 +38999,184 @@ export type Database = {
36322
38999
  pickstation_get_orders_raw: {
36323
39000
  Args: never;
36324
39001
  Returns: Json;
39002
+ } | {
39003
+ Args: {
39004
+ p_device_key: string;
39005
+ };
39006
+ Returns: Json;
36325
39007
  };
36326
39008
  pickstation_get_planning_context: {
36327
39009
  Args: never;
36328
39010
  Returns: Json;
39011
+ } | {
39012
+ Args: {
39013
+ p_device_key: string;
39014
+ };
39015
+ Returns: Json;
36329
39016
  };
36330
39017
  pickstation_get_settings: {
36331
39018
  Args: never;
36332
39019
  Returns: Json;
39020
+ } | {
39021
+ Args: {
39022
+ p_device_key: string;
39023
+ };
39024
+ Returns: Json;
36333
39025
  };
36334
39026
  pickstation_log_print: {
36335
39027
  Args: {
36336
39028
  p_customer_name: string;
39029
+ p_device_key: string;
36337
39030
  p_documents: string[];
36338
39031
  p_ip_address: string;
36339
39032
  p_order_id: string;
36340
39033
  p_order_number: string;
36341
39034
  };
36342
39035
  Returns: undefined;
39036
+ } | {
39037
+ Args: {
39038
+ p_customer_name: string;
39039
+ p_documents: string[];
39040
+ p_ip_address: string;
39041
+ p_order_id: string;
39042
+ p_order_number: string;
39043
+ };
39044
+ Returns: undefined;
39045
+ };
39046
+ pickstation_logistics_barcode_lookup: {
39047
+ Args: {
39048
+ p_barcode: string;
39049
+ p_device_key: string;
39050
+ };
39051
+ Returns: Json;
39052
+ };
39053
+ pickstation_logistics_cart_plan_status: {
39054
+ Args: {
39055
+ p_device_key: string;
39056
+ p_ref: string;
39057
+ };
39058
+ Returns: Json;
39059
+ };
39060
+ pickstation_logistics_cart_slip_plan: {
39061
+ Args: {
39062
+ p_device_key: string;
39063
+ p_order_id: string;
39064
+ };
39065
+ Returns: Json;
39066
+ };
39067
+ pickstation_logistics_complete_task: {
39068
+ Args: {
39069
+ p_device_key: string;
39070
+ p_result?: Json;
39071
+ p_task_id: string;
39072
+ };
39073
+ Returns: {
39074
+ attempt_log: Json;
39075
+ attempts: number;
39076
+ buffer_ref: string | null;
39077
+ claimed_at: string | null;
39078
+ claimed_by: string | null;
39079
+ completed_at: string | null;
39080
+ created_at: string;
39081
+ depends_on: string[];
39082
+ due_at: string | null;
39083
+ error: string | null;
39084
+ id: string;
39085
+ last_error: string | null;
39086
+ next_attempt_at: string | null;
39087
+ order_ref: string;
39088
+ owner_module: string;
39089
+ payload: Json;
39090
+ plan_run_id: string | null;
39091
+ planned_end: string | null;
39092
+ planned_start: string | null;
39093
+ priority: number;
39094
+ result: Json | null;
39095
+ rule_config_id: string | null;
39096
+ rule_version: number | null;
39097
+ sequence: number;
39098
+ shadow: boolean;
39099
+ started_at: string | null;
39100
+ status: string;
39101
+ strategy_id: string | null;
39102
+ task_type: string;
39103
+ updated_at: string;
39104
+ user_id: string;
39105
+ };
39106
+ SetofOptions: {
39107
+ from: "*";
39108
+ to: "logistics_tasks";
39109
+ isOneToOne: true;
39110
+ isSetofReturn: false;
39111
+ };
39112
+ };
39113
+ pickstation_logistics_is_pick_workday: {
39114
+ Args: {
39115
+ p_date: string;
39116
+ p_device_key: string;
39117
+ };
39118
+ Returns: boolean;
39119
+ };
39120
+ pickstation_logistics_order_released: {
39121
+ Args: {
39122
+ p_device_key: string;
39123
+ p_order_ref: string;
39124
+ };
39125
+ Returns: boolean;
39126
+ };
39127
+ pickstation_logistics_pick_mode: {
39128
+ Args: {
39129
+ p_device_key: string;
39130
+ };
39131
+ Returns: Json;
39132
+ };
39133
+ pickstation_logistics_shipping_note_from_barcode: {
39134
+ Args: {
39135
+ p_allow_reprint?: boolean;
39136
+ p_barcode: string;
39137
+ p_device_key: string;
39138
+ p_station_id?: string;
39139
+ };
39140
+ Returns: Json;
39141
+ };
39142
+ pickstation_logistics_working_hours_status: {
39143
+ Args: {
39144
+ p_device_key: string;
39145
+ };
39146
+ Returns: Json;
36343
39147
  };
36344
39148
  pickstation_order_sticker_meldingen: {
39149
+ Args: {
39150
+ p_device_key: string;
39151
+ p_order_id: string;
39152
+ p_slug: string;
39153
+ };
39154
+ Returns: Json;
39155
+ } | {
36345
39156
  Args: {
36346
39157
  p_order_id: string;
36347
39158
  p_slug: string;
36348
39159
  };
36349
39160
  Returns: Json;
36350
39161
  };
39162
+ pickstation_pair_device: {
39163
+ Args: {
39164
+ p_code: string;
39165
+ p_device_name: string;
39166
+ p_slug: string;
39167
+ };
39168
+ Returns: Json;
39169
+ };
36351
39170
  pickstation_resolve_delivery_orders: {
39171
+ Args: {
39172
+ p_device_key: string;
39173
+ p_sales_order_ids: string[];
39174
+ };
39175
+ Returns: {
39176
+ delivery_order_id: string;
39177
+ sales_order_id: string;
39178
+ }[];
39179
+ } | {
36352
39180
  Args: {
36353
39181
  p_sales_order_ids: string[];
36354
39182
  };
@@ -36367,6 +39195,13 @@ export type Database = {
36367
39195
  Returns: undefined;
36368
39196
  };
36369
39197
  pickstation_sticker_past_controle: {
39198
+ Args: {
39199
+ p_cart_id: string;
39200
+ p_device_key: string;
39201
+ p_slug: string;
39202
+ };
39203
+ Returns: Json;
39204
+ } | {
36370
39205
  Args: {
36371
39206
  p_cart_id: string;
36372
39207
  p_slug: string;
@@ -36374,6 +39209,14 @@ export type Database = {
36374
39209
  Returns: Json;
36375
39210
  };
36376
39211
  pickstation_sticker_reprint: {
39212
+ Args: {
39213
+ p_cart_id: string;
39214
+ p_device_key: string;
39215
+ p_reden?: string;
39216
+ p_slug: string;
39217
+ };
39218
+ Returns: Json;
39219
+ } | {
36377
39220
  Args: {
36378
39221
  p_cart_id: string;
36379
39222
  p_reden?: string;
@@ -36685,6 +39528,34 @@ export type Database = {
36685
39528
  };
36686
39529
  Returns: Record<string, unknown>;
36687
39530
  };
39531
+ product_packings_derive: {
39532
+ Args: {
39533
+ p_product_id: string;
39534
+ };
39535
+ Returns: undefined;
39536
+ };
39537
+ product_packings_replace: {
39538
+ Args: {
39539
+ p_packings: Json;
39540
+ p_product_id: string;
39541
+ p_source: string;
39542
+ };
39543
+ Returns: number;
39544
+ };
39545
+ product_packings_sync_from_floriday: {
39546
+ Args: {
39547
+ p_connection_id: string;
39548
+ p_only_existing?: boolean;
39549
+ p_product_ids: string[];
39550
+ };
39551
+ Returns: Json;
39552
+ };
39553
+ product_primary_pieces: {
39554
+ Args: {
39555
+ p_product_id: string;
39556
+ };
39557
+ Returns: number;
39558
+ };
36688
39559
  product_set_depth_above: {
36689
39560
  Args: {
36690
39561
  p_path?: string[];
@@ -36952,6 +39823,13 @@ export type Database = {
36952
39823
  Args: never;
36953
39824
  Returns: undefined;
36954
39825
  };
39826
+ refresh_floricode_derived_code_list_batch: {
39827
+ Args: {
39828
+ p_limit?: number;
39829
+ p_list: string;
39830
+ };
39831
+ Returns: Json;
39832
+ };
36955
39833
  refresh_floricode_derived_code_lists: {
36956
39834
  Args: never;
36957
39835
  Returns: {
@@ -37084,6 +39962,10 @@ export type Database = {
37084
39962
  };
37085
39963
  Returns: string;
37086
39964
  };
39965
+ restart_floricode_derived_code_lists: {
39966
+ Args: never;
39967
+ Returns: undefined;
39968
+ };
37087
39969
  retry_offer_orders: {
37088
39970
  Args: never;
37089
39971
  Returns: number;
@@ -37190,7 +40072,46 @@ export type Database = {
37190
40072
  };
37191
40073
  Returns: Json;
37192
40074
  };
40075
+ scan_alleen_gekoppeld_zetten: {
40076
+ Args: {
40077
+ p_aan: boolean;
40078
+ };
40079
+ Returns: Json;
40080
+ };
40081
+ scan_apparaat_intrekken: {
40082
+ Args: {
40083
+ p_apparaat_id: string;
40084
+ };
40085
+ Returns: Json;
40086
+ };
40087
+ scan_apparaat_koppelen: {
40088
+ Args: {
40089
+ p_code: string;
40090
+ p_naam?: string;
40091
+ p_scanner_id: string;
40092
+ };
40093
+ Returns: Json;
40094
+ };
40095
+ scan_apparaat_status: {
40096
+ Args: {
40097
+ p_device_key?: string;
40098
+ p_scanner_id: string;
40099
+ };
40100
+ Returns: Json;
40101
+ };
40102
+ scan_apparaten_lijst: {
40103
+ Args: {
40104
+ p_scanner_id: string;
40105
+ };
40106
+ Returns: Json;
40107
+ };
37193
40108
  scan_cancel_kar: {
40109
+ Args: {
40110
+ p_device_key: string;
40111
+ p_kar_id: string;
40112
+ };
40113
+ Returns: Json;
40114
+ } | {
37194
40115
  Args: {
37195
40116
  p_kar_id: string;
37196
40117
  };
@@ -37204,8 +40125,24 @@ export type Database = {
37204
40125
  p_scanner_id?: string;
37205
40126
  };
37206
40127
  Returns: Json;
40128
+ } | {
40129
+ Args: {
40130
+ p_allow_reprint?: boolean;
40131
+ p_cart_id: string;
40132
+ p_device_key: string;
40133
+ p_print?: boolean;
40134
+ p_scanner_id?: string;
40135
+ };
40136
+ Returns: Json;
37207
40137
  };
37208
40138
  scan_controleer_pincode: {
40139
+ Args: {
40140
+ p_device_key: string;
40141
+ p_pin: string;
40142
+ p_scanner_id: string;
40143
+ };
40144
+ Returns: Json;
40145
+ } | {
37209
40146
  Args: {
37210
40147
  p_pin: string;
37211
40148
  p_scanner_id: string;
@@ -37225,20 +40162,51 @@ export type Database = {
37225
40162
  p_scanner_id?: string;
37226
40163
  };
37227
40164
  Returns: Json;
40165
+ } | {
40166
+ Args: {
40167
+ p_barcode: string;
40168
+ p_bevestig_niet_geprint?: boolean;
40169
+ p_device_key: string;
40170
+ p_scanner_id?: string;
40171
+ };
40172
+ Returns: Json;
37228
40173
  };
37229
40174
  scan_finish_kar: {
40175
+ Args: {
40176
+ p_device_key: string;
40177
+ p_kar_id: string;
40178
+ };
40179
+ Returns: Json;
40180
+ } | {
37230
40181
  Args: {
37231
40182
  p_kar_id: string;
37232
40183
  };
37233
40184
  Returns: Json;
37234
40185
  };
37235
40186
  scan_heeft_pincode: {
40187
+ Args: {
40188
+ p_device_key: string;
40189
+ p_scanner_id: string;
40190
+ };
40191
+ Returns: boolean;
40192
+ } | {
37236
40193
  Args: {
37237
40194
  p_scanner_id: string;
37238
40195
  };
37239
40196
  Returns: boolean;
37240
40197
  };
40198
+ scan_install_check: {
40199
+ Args: never;
40200
+ Returns: Json;
40201
+ };
37241
40202
  scan_kar_compleet: {
40203
+ Args: {
40204
+ p_allow_reprint?: boolean;
40205
+ p_device_key: string;
40206
+ p_sessie_id: string;
40207
+ };
40208
+ Returns: Json;
40209
+ } | {
37242
40210
  Args: {
37243
40211
  p_allow_reprint?: boolean;
37244
40212
  p_sessie_id: string;
@@ -37257,11 +40225,25 @@ export type Database = {
37257
40225
  result: string;
37258
40226
  }[];
37259
40227
  };
40228
+ scan_kar_markeren: {
40229
+ Args: {
40230
+ p_device_key: string;
40231
+ p_kar_id: string;
40232
+ p_veld: string;
40233
+ };
40234
+ Returns: Json;
40235
+ };
37260
40236
  scan_kar_regels: {
37261
40237
  Args: {
37262
40238
  p_cart_id: string;
37263
40239
  };
37264
40240
  Returns: Json;
40241
+ } | {
40242
+ Args: {
40243
+ p_cart_id: string;
40244
+ p_device_key: string;
40245
+ };
40246
+ Returns: Json;
37265
40247
  };
37266
40248
  scan_kar_voortgang: {
37267
40249
  Args: {
@@ -37270,6 +40252,20 @@ export type Database = {
37270
40252
  p_slug?: string;
37271
40253
  };
37272
40254
  Returns: Json;
40255
+ } | {
40256
+ Args: {
40257
+ p_cart_id: string;
40258
+ p_device_key: string;
40259
+ p_scanner_id?: string;
40260
+ p_slug?: string;
40261
+ };
40262
+ Returns: Json;
40263
+ };
40264
+ scan_koppelcode_maken: {
40265
+ Args: {
40266
+ p_scanner_id: string;
40267
+ };
40268
+ Returns: Json;
37273
40269
  };
37274
40270
  scan_log_code: {
37275
40271
  Args: {
@@ -37282,14 +40278,38 @@ export type Database = {
37282
40278
  p_scanner_key?: string;
37283
40279
  };
37284
40280
  Returns: string;
40281
+ } | {
40282
+ Args: {
40283
+ p_code: string;
40284
+ p_device_key: string;
40285
+ p_kar_id?: string;
40286
+ p_latency_ms?: number;
40287
+ p_medewerker?: string;
40288
+ p_message?: string;
40289
+ p_result: string;
40290
+ p_scanner_key?: string;
40291
+ };
40292
+ Returns: string;
37285
40293
  };
37286
40294
  scan_open_pakbonnen: {
37287
40295
  Args: {
37288
40296
  p_dagen?: number;
37289
40297
  };
37290
40298
  Returns: Json;
40299
+ } | {
40300
+ Args: {
40301
+ p_dagen?: number;
40302
+ p_device_key: string;
40303
+ };
40304
+ Returns: Json;
37291
40305
  };
37292
40306
  scan_order_klant: {
40307
+ Args: {
40308
+ p_device_key: string;
40309
+ p_order_id: string;
40310
+ };
40311
+ Returns: Json;
40312
+ } | {
37293
40313
  Args: {
37294
40314
  p_order_id: string;
37295
40315
  };
@@ -37300,6 +40320,12 @@ export type Database = {
37300
40320
  p_barcode: string;
37301
40321
  };
37302
40322
  Returns: Json;
40323
+ } | {
40324
+ Args: {
40325
+ p_barcode: string;
40326
+ p_device_key: string;
40327
+ };
40328
+ Returns: Json;
37303
40329
  };
37304
40330
  scan_pakbon_opnieuw: {
37305
40331
  Args: {
@@ -37307,8 +40333,24 @@ export type Database = {
37307
40333
  p_scanner_id?: string;
37308
40334
  };
37309
40335
  Returns: Json;
40336
+ } | {
40337
+ Args: {
40338
+ p_barcode: string;
40339
+ p_device_key: string;
40340
+ p_scanner_id?: string;
40341
+ };
40342
+ Returns: Json;
37310
40343
  };
37311
40344
  scan_pakbon_toevoegen: {
40345
+ Args: {
40346
+ p_barcode: string;
40347
+ p_device_key: string;
40348
+ p_medewerker?: string;
40349
+ p_regels?: Json;
40350
+ p_scanner_id: string;
40351
+ };
40352
+ Returns: Json;
40353
+ } | {
37312
40354
  Args: {
37313
40355
  p_barcode: string;
37314
40356
  p_medewerker?: string;
@@ -37317,7 +40359,34 @@ export type Database = {
37317
40359
  };
37318
40360
  Returns: Json;
37319
40361
  };
40362
+ scan_pakbonnen_open: {
40363
+ Args: {
40364
+ p_device_key: string;
40365
+ p_limiet?: number;
40366
+ };
40367
+ Returns: Json;
40368
+ };
40369
+ scan_pin_blokkade_opheffen: {
40370
+ Args: {
40371
+ p_scanner_id: string;
40372
+ };
40373
+ Returns: Json;
40374
+ };
40375
+ scan_print_job_status: {
40376
+ Args: {
40377
+ p_device_key: string;
40378
+ p_job_id: string;
40379
+ };
40380
+ Returns: Json;
40381
+ };
37320
40382
  scan_print_restpakbon: {
40383
+ Args: {
40384
+ p_device_key: string;
40385
+ p_printer_id?: string;
40386
+ p_restpakbon_id: string;
40387
+ };
40388
+ Returns: Json;
40389
+ } | {
37321
40390
  Args: {
37322
40391
  p_printer_id?: string;
37323
40392
  p_restpakbon_id: string;
@@ -37330,7 +40399,21 @@ export type Database = {
37330
40399
  };
37331
40400
  Returns: Json;
37332
40401
  };
40402
+ scan_printers: {
40403
+ Args: {
40404
+ p_device_key: string;
40405
+ };
40406
+ Returns: Json;
40407
+ };
37333
40408
  scan_register_item: {
40409
+ Args: {
40410
+ p_device_key: string;
40411
+ p_kar_id: string;
40412
+ p_pakbon_item_id: string;
40413
+ p_scanned_by?: string;
40414
+ };
40415
+ Returns: Json;
40416
+ } | {
37334
40417
  Args: {
37335
40418
  p_kar_id: string;
37336
40419
  p_pakbon_item_id: string;
@@ -37341,19 +40424,50 @@ export type Database = {
37341
40424
  scan_release_expired_locks: {
37342
40425
  Args: never;
37343
40426
  Returns: Json;
40427
+ } | {
40428
+ Args: {
40429
+ p_device_key: string;
40430
+ };
40431
+ Returns: Json;
37344
40432
  };
37345
40433
  scan_remove_item: {
40434
+ Args: {
40435
+ p_device_key: string;
40436
+ p_kar_item_id: string;
40437
+ };
40438
+ Returns: Json;
40439
+ } | {
37346
40440
  Args: {
37347
40441
  p_kar_item_id: string;
37348
40442
  };
37349
40443
  Returns: Json;
37350
40444
  };
40445
+ scan_resolve: {
40446
+ Args: {
40447
+ p_code: string;
40448
+ p_device_key: string;
40449
+ };
40450
+ Returns: Json;
40451
+ };
37351
40452
  scan_restpakbon_geprint: {
37352
40453
  Args: {
40454
+ p_device_key: string;
37353
40455
  p_id: string;
37354
40456
  p_print_job_id?: string;
37355
40457
  };
37356
40458
  Returns: undefined;
40459
+ } | {
40460
+ Args: {
40461
+ p_id: string;
40462
+ p_print_job_id?: string;
40463
+ };
40464
+ Returns: undefined;
40465
+ };
40466
+ scan_role_allowed: {
40467
+ Args: {
40468
+ p_level: string;
40469
+ };
40470
+ Returns: boolean;
37357
40471
  };
37358
40472
  scan_scanner_info: {
37359
40473
  Args: {
@@ -37372,18 +40486,40 @@ export type Database = {
37372
40486
  }[];
37373
40487
  };
37374
40488
  scan_sessie_annuleren: {
40489
+ Args: {
40490
+ p_device_key: string;
40491
+ p_sessie_id: string;
40492
+ };
40493
+ Returns: undefined;
40494
+ } | {
37375
40495
  Args: {
37376
40496
  p_sessie_id: string;
37377
40497
  };
37378
40498
  Returns: undefined;
37379
40499
  };
37380
40500
  scan_sessie_open: {
40501
+ Args: {
40502
+ p_device_key: string;
40503
+ p_scanner_id: string;
40504
+ };
40505
+ Returns: Json;
40506
+ } | {
37381
40507
  Args: {
37382
40508
  p_scanner_id: string;
37383
40509
  };
37384
40510
  Returns: Json;
37385
40511
  };
37386
40512
  scan_start_kar: {
40513
+ Args: {
40514
+ p_device_key: string;
40515
+ p_medewerker_id?: string;
40516
+ p_medewerker_naam?: string;
40517
+ p_pakbon_ids: string[];
40518
+ p_scanner_key?: string;
40519
+ p_sessie?: string;
40520
+ };
40521
+ Returns: Json;
40522
+ } | {
37387
40523
  Args: {
37388
40524
  p_medewerker_id?: string;
37389
40525
  p_medewerker_naam?: string;
@@ -37908,12 +41044,6 @@ export type Database = {
37908
41044
  Args: never;
37909
41045
  Returns: undefined;
37910
41046
  };
37911
- sync_cached_packing_from_product: {
37912
- Args: {
37913
- p_product_id: string;
37914
- };
37915
- Returns: undefined;
37916
- };
37917
41047
  sync_floriday_prices_into_price_groups: {
37918
41048
  Args: never;
37919
41049
  Returns: number;
@@ -37924,12 +41054,6 @@ export type Database = {
37924
41054
  };
37925
41055
  Returns: undefined;
37926
41056
  };
37927
- sync_order_cart_item_packing_from_product: {
37928
- Args: {
37929
- p_product_id: string;
37930
- };
37931
- Returns: undefined;
37932
- };
37933
41057
  sync_order_item_fusten: {
37934
41058
  Args: {
37935
41059
  _order_item_id: string;
@@ -37942,12 +41066,6 @@ export type Database = {
37942
41066
  };
37943
41067
  Returns: undefined;
37944
41068
  };
37945
- sync_product_packing_from_floriday_cache: {
37946
- Args: {
37947
- p_floriday_id: string;
37948
- };
37949
- Returns: undefined;
37950
- };
37951
41069
  sync_sick_time_off: {
37952
41070
  Args: {
37953
41071
  _period_id: string;
@@ -37978,6 +41096,26 @@ export type Database = {
37978
41096
  };
37979
41097
  Returns: boolean;
37980
41098
  };
41099
+ twinfield_assert_caller: {
41100
+ Args: {
41101
+ p_level: string;
41102
+ p_owner?: string;
41103
+ };
41104
+ Returns: undefined;
41105
+ };
41106
+ twinfield_auth_install_check: {
41107
+ Args: never;
41108
+ Returns: {
41109
+ object_kind: string;
41110
+ object_name: string;
41111
+ present: boolean;
41112
+ schema_version: string;
41113
+ }[];
41114
+ };
41115
+ twinfield_caller_is_server: {
41116
+ Args: never;
41117
+ Returns: boolean;
41118
+ };
37981
41119
  twinfield_cancel_queue_item: {
37982
41120
  Args: {
37983
41121
  p_id: string;
@@ -37987,11 +41125,32 @@ export type Database = {
37987
41125
  twinfield_connection_offices: {
37988
41126
  Args: never;
37989
41127
  Returns: {
41128
+ company_name: string;
37990
41129
  connection_id: string;
41130
+ environment: string;
41131
+ in_shell_omgeving: boolean;
37991
41132
  is_active: boolean;
41133
+ label_source: string;
37992
41134
  office_code: string;
37993
41135
  }[];
37994
41136
  };
41137
+ twinfield_connection_usage: {
41138
+ Args: never;
41139
+ Returns: {
41140
+ archived: boolean;
41141
+ company_name: string;
41142
+ connected_at: string;
41143
+ connection_id: string;
41144
+ environment: string;
41145
+ gebruikt_door_facturatie: boolean;
41146
+ in_shell_omgeving: boolean;
41147
+ is_active: boolean;
41148
+ label_source: string;
41149
+ leest: boolean;
41150
+ office_code: string;
41151
+ user_id: string;
41152
+ }[];
41153
+ };
37995
41154
  twinfield_cron_lock_acquire: {
37996
41155
  Args: {
37997
41156
  _job_name: string;
@@ -38013,6 +41172,26 @@ export type Database = {
38013
41172
  };
38014
41173
  Returns: Json;
38015
41174
  };
41175
+ twinfield_facturatie_assert_server: {
41176
+ Args: {
41177
+ _functie: string;
41178
+ };
41179
+ Returns: undefined;
41180
+ };
41181
+ twinfield_facturatie_assert_trigger_or_server: {
41182
+ Args: {
41183
+ _functie: string;
41184
+ };
41185
+ Returns: undefined;
41186
+ };
41187
+ twinfield_facturatie_install_check: {
41188
+ Args: never;
41189
+ Returns: Json;
41190
+ };
41191
+ twinfield_facturatie_is_server: {
41192
+ Args: never;
41193
+ Returns: boolean;
41194
+ };
38016
41195
  twinfield_gated_queue: {
38017
41196
  Args: {
38018
41197
  p_connection_id: string;
@@ -38037,10 +41216,24 @@ export type Database = {
38037
41216
  Args: never;
38038
41217
  Returns: boolean;
38039
41218
  };
41219
+ twinfield_mark_label_pending: {
41220
+ Args: {
41221
+ p_connection_id: string;
41222
+ };
41223
+ Returns: boolean;
41224
+ };
38040
41225
  twinfield_prune_push_queue: {
38041
41226
  Args: never;
38042
41227
  Returns: number;
38043
41228
  };
41229
+ twinfield_record_central_facts: {
41230
+ Args: {
41231
+ p_central_environment: string;
41232
+ p_connection_id: string;
41233
+ p_organisation_code: string;
41234
+ };
41235
+ Returns: Json;
41236
+ };
38044
41237
  twinfield_register_cron: {
38045
41238
  Args: {
38046
41239
  apikey?: string;
@@ -38048,6 +41241,14 @@ export type Database = {
38048
41241
  };
38049
41242
  Returns: Json;
38050
41243
  };
41244
+ twinfield_set_connection_label: {
41245
+ Args: {
41246
+ p_also_shell?: boolean;
41247
+ p_connection_id: string;
41248
+ p_environment: string;
41249
+ };
41250
+ Returns: Json;
41251
+ };
38051
41252
  twinfield_set_write_enabled: {
38052
41253
  Args: {
38053
41254
  p_connection_id: string;
@@ -38611,6 +41812,19 @@ export type Database = {
38611
41812
  };
38612
41813
  Returns: number;
38613
41814
  };
41815
+ verkoop_assert_caller: {
41816
+ Args: {
41817
+ p_level: string;
41818
+ p_roles?: Database["public"]["Enums"]["app_role"][];
41819
+ };
41820
+ Returns: undefined;
41821
+ };
41822
+ verkoop_correctie_verpakking: {
41823
+ Args: {
41824
+ p_uitvoeren?: boolean;
41825
+ };
41826
+ Returns: Json;
41827
+ };
38614
41828
  verkoop_create_order: {
38615
41829
  Args: {
38616
41830
  p_accept_late_signup?: boolean;
@@ -38629,6 +41843,75 @@ export type Database = {
38629
41843
  };
38630
41844
  Returns: Json;
38631
41845
  };
41846
+ verkoop_guarded_functions: {
41847
+ Args: never;
41848
+ Returns: {
41849
+ niveau: string;
41850
+ opmerking: string;
41851
+ rollen: string;
41852
+ sig: string;
41853
+ }[];
41854
+ };
41855
+ verkoop_insert_manual_order: {
41856
+ Args: {
41857
+ p_idempotency_key: string;
41858
+ p_items: Json;
41859
+ p_order: Json;
41860
+ };
41861
+ Returns: Json;
41862
+ };
41863
+ verkoop_install_check: {
41864
+ Args: never;
41865
+ Returns: {
41866
+ aanwezig: boolean;
41867
+ anon_uitvoerrecht: boolean;
41868
+ authenticated_uitvoerrecht: boolean;
41869
+ naam: string;
41870
+ niveau: string;
41871
+ opmerking: string;
41872
+ poort_aanwezig: boolean;
41873
+ soort: string;
41874
+ }[];
41875
+ };
41876
+ verkoop_is_server: {
41877
+ Args: never;
41878
+ Returns: boolean;
41879
+ };
41880
+ verkoop_packing_drift_apply: {
41881
+ Args: {
41882
+ p_order_ids: string[];
41883
+ };
41884
+ Returns: {
41885
+ lines_updated: number;
41886
+ order_id: string;
41887
+ order_number: string;
41888
+ replan_event: string;
41889
+ }[];
41890
+ };
41891
+ verkoop_packing_drift_report: {
41892
+ Args: never;
41893
+ Returns: {
41894
+ afgesloten: boolean;
41895
+ cache_match: string;
41896
+ cur_crates_per_layer: number;
41897
+ cur_layers_per_cart: number;
41898
+ cur_load_carrier_type: string;
41899
+ cur_packing_source: string;
41900
+ cur_plants_per_crate: number;
41901
+ cur_vbn_package_code: string;
41902
+ fd_crates_per_layer: number;
41903
+ fd_layers_per_cart: number;
41904
+ fd_load_carrier_type: string;
41905
+ fd_plants_per_crate: number;
41906
+ fd_vbn_package_code: string;
41907
+ order_id: string;
41908
+ order_item_id: string;
41909
+ order_number: string;
41910
+ order_status: string;
41911
+ sales_order_id: string;
41912
+ vastgezet: boolean;
41913
+ }[];
41914
+ };
38632
41915
  vervang_printer: {
38633
41916
  Args: {
38634
41917
  _nieuw: string;
@@ -38667,6 +41950,18 @@ export type Database = {
38667
41950
  };
38668
41951
  Returns: number;
38669
41952
  };
41953
+ voorraad_correctie_1098: {
41954
+ Args: {
41955
+ p_uitvoeren?: boolean;
41956
+ };
41957
+ Returns: Json;
41958
+ };
41959
+ voorraad_correctie_status: {
41960
+ Args: {
41961
+ p_correctie?: string;
41962
+ };
41963
+ Returns: Json;
41964
+ };
38670
41965
  voorraad_external_fulfilled_ids: {
38671
41966
  Args: {
38672
41967
  p_cf: Json;
@@ -38696,6 +41991,14 @@ export type Database = {
38696
41991
  };
38697
41992
  Returns: undefined;
38698
41993
  };
41994
+ voorraad_install_check: {
41995
+ Args: never;
41996
+ Returns: Json;
41997
+ };
41998
+ voorraad_is_server: {
41999
+ Args: never;
42000
+ Returns: boolean;
42001
+ };
38699
42002
  voorraad_mark_floriday_sold_before_switch: {
38700
42003
  Args: {
38701
42004
  p_product_id: string;
@@ -38713,6 +42016,13 @@ export type Database = {
38713
42016
  };
38714
42017
  Returns: string;
38715
42018
  };
42019
+ voorraad_vereis: {
42020
+ Args: {
42021
+ p_functie: string;
42022
+ p_niveau: string;
42023
+ };
42024
+ Returns: undefined;
42025
+ };
38716
42026
  voorraad_week_is_past: {
38717
42027
  Args: {
38718
42028
  p_week: number;