@flowselections/floriday-afhandeling-module 1.0.35 → 1.0.37

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 (32) hide show
  1. package/dist-lib/components/afhandeling/PickAgendaView.d.ts.map +1 -1
  2. package/dist-lib/components/afhandeling/PickAgendaView.js +20 -9
  3. package/dist-lib/components/afhandeling/VervoerdersPage.js +1 -1
  4. package/dist-lib/hooks/useOrderPlanning.d.ts +20 -3
  5. package/dist-lib/hooks/useOrderPlanning.d.ts.map +1 -1
  6. package/dist-lib/hooks/useOrderPlanning.js +80 -15
  7. package/dist-lib/integrations/supabase/auth-middleware.d.ts +214 -1
  8. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  9. package/dist-lib/integrations/supabase/client.server.d.ts +214 -1
  10. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  11. package/dist-lib/integrations/supabase/moduleClient.d.ts +214 -1
  12. package/dist-lib/integrations/supabase/moduleClient.d.ts.map +1 -1
  13. package/dist-lib/integrations/supabase/types.d.ts +218 -1
  14. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  15. package/dist-lib/lib/afhandelingSettings.functions.d.ts +428 -2
  16. package/dist-lib/lib/afhandelingSettings.functions.d.ts.map +1 -1
  17. package/dist-lib/lib/carriers.functions.d.ts +1070 -5
  18. package/dist-lib/lib/carriers.functions.d.ts.map +1 -1
  19. package/dist-lib/lib/cartAssignments.functions.d.ts +1070 -5
  20. package/dist-lib/lib/cartAssignments.functions.d.ts.map +1 -1
  21. package/dist-lib/lib/cartControl.functions.d.ts +2140 -10
  22. package/dist-lib/lib/cartControl.functions.d.ts.map +1 -1
  23. package/dist-lib/lib/floriday.functions.d.ts +223 -2
  24. package/dist-lib/lib/floriday.functions.d.ts.map +1 -1
  25. package/dist-lib/lib/floriday.functions.js +41 -9
  26. package/dist-lib/lib/logisticsEngine/engine.d.ts +21 -1
  27. package/dist-lib/lib/logisticsEngine/engine.d.ts.map +1 -1
  28. package/dist-lib/lib/logisticsEngine/engine.js +81 -19
  29. package/dist-lib/lib/orderRefs.d.ts +18 -0
  30. package/dist-lib/lib/orderRefs.d.ts.map +1 -0
  31. package/dist-lib/lib/orderRefs.js +30 -0
  32. package/package.json +120 -120
@@ -2776,6 +2776,42 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
2776
2776
  };
2777
2777
  Relationships: [];
2778
2778
  };
2779
+ document_bronregels: {
2780
+ Row: {
2781
+ bron: string;
2782
+ created_at: string;
2783
+ documenttype: string;
2784
+ herkomst: string;
2785
+ id: string;
2786
+ layout_id: string | null;
2787
+ updated_at: string;
2788
+ };
2789
+ Insert: {
2790
+ bron?: string;
2791
+ created_at?: string;
2792
+ documenttype: string;
2793
+ herkomst: string;
2794
+ id?: string;
2795
+ layout_id?: string | null;
2796
+ updated_at?: string;
2797
+ };
2798
+ Update: {
2799
+ bron?: string;
2800
+ created_at?: string;
2801
+ documenttype?: string;
2802
+ herkomst?: string;
2803
+ id?: string;
2804
+ layout_id?: string | null;
2805
+ updated_at?: string;
2806
+ };
2807
+ Relationships: [{
2808
+ foreignKeyName: "document_bronregels_layout_id_fkey";
2809
+ columns: ["layout_id"];
2810
+ isOneToOne: false;
2811
+ referencedRelation: "document_layouts";
2812
+ referencedColumns: ["id"];
2813
+ }];
2814
+ };
2779
2815
  document_formaat_printers: {
2780
2816
  Row: {
2781
2817
  created_at: string;
@@ -3053,6 +3089,7 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
3053
3089
  Row: {
3054
3090
  actief: boolean;
3055
3091
  breedte_mm: number;
3092
+ bron: string;
3056
3093
  config: import("../integrations/supabase/types").Json;
3057
3094
  created_at: string;
3058
3095
  created_by: string | null;
@@ -3070,12 +3107,14 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
3070
3107
  orientatie: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_orientation"];
3071
3108
  page_settings: import("../integrations/supabase/types").Json;
3072
3109
  papierformaat: string;
3110
+ systeem: boolean;
3073
3111
  thumbnail_url: string | null;
3074
3112
  updated_at: string;
3075
3113
  };
3076
3114
  Insert: {
3077
3115
  actief?: boolean;
3078
3116
  breedte_mm?: number;
3117
+ bron?: string;
3079
3118
  config?: import("../integrations/supabase/types").Json;
3080
3119
  created_at?: string;
3081
3120
  created_by?: string | null;
@@ -3093,12 +3132,14 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
3093
3132
  orientatie?: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_orientation"];
3094
3133
  page_settings?: import("../integrations/supabase/types").Json;
3095
3134
  papierformaat?: string;
3135
+ systeem?: boolean;
3096
3136
  thumbnail_url?: string | null;
3097
3137
  updated_at?: string;
3098
3138
  };
3099
3139
  Update: {
3100
3140
  actief?: boolean;
3101
3141
  breedte_mm?: number;
3142
+ bron?: string;
3102
3143
  config?: import("../integrations/supabase/types").Json;
3103
3144
  created_at?: string;
3104
3145
  created_by?: string | null;
@@ -3116,11 +3157,48 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
3116
3157
  orientatie?: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_orientation"];
3117
3158
  page_settings?: import("../integrations/supabase/types").Json;
3118
3159
  papierformaat?: string;
3160
+ systeem?: boolean;
3119
3161
  thumbnail_url?: string | null;
3120
3162
  updated_at?: string;
3121
3163
  };
3122
3164
  Relationships: [];
3123
3165
  };
3166
+ document_werkplek_printers: {
3167
+ Row: {
3168
+ created_at: string;
3169
+ documenttype: string;
3170
+ id: string;
3171
+ papierformaat: string | null;
3172
+ printer_id: string | null;
3173
+ updated_at: string;
3174
+ werkplek: string;
3175
+ };
3176
+ Insert: {
3177
+ created_at?: string;
3178
+ documenttype: string;
3179
+ id?: string;
3180
+ papierformaat?: string | null;
3181
+ printer_id?: string | null;
3182
+ updated_at?: string;
3183
+ werkplek: string;
3184
+ };
3185
+ Update: {
3186
+ created_at?: string;
3187
+ documenttype?: string;
3188
+ id?: string;
3189
+ papierformaat?: string | null;
3190
+ printer_id?: string | null;
3191
+ updated_at?: string;
3192
+ werkplek?: string;
3193
+ };
3194
+ Relationships: [{
3195
+ foreignKeyName: "document_werkplek_printers_printer_id_fkey";
3196
+ columns: ["printer_id"];
3197
+ isOneToOne: false;
3198
+ referencedRelation: "printers";
3199
+ referencedColumns: ["id"];
3200
+ }];
3201
+ };
3124
3202
  email_auth_connections: {
3125
3203
  Row: {
3126
3204
  access_token_encrypted: string | null;
@@ -7422,6 +7500,7 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
7422
7500
  };
7423
7501
  invoice_post_idempotency: {
7424
7502
  Row: {
7503
+ administration_code: string;
7425
7504
  client_request_id: string;
7426
7505
  completed_at: string | null;
7427
7506
  created_at: string;
@@ -7431,6 +7510,7 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
7431
7510
  user_id: string;
7432
7511
  };
7433
7512
  Insert: {
7513
+ administration_code?: string;
7434
7514
  client_request_id: string;
7435
7515
  completed_at?: string | null;
7436
7516
  created_at?: string;
@@ -7440,6 +7520,7 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
7440
7520
  user_id: string;
7441
7521
  };
7442
7522
  Update: {
7523
+ administration_code?: string;
7443
7524
  client_request_id?: string;
7444
7525
  completed_at?: string | null;
7445
7526
  created_at?: string;
@@ -10654,6 +10735,7 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
10654
10735
  enforce: boolean;
10655
10736
  is_active: boolean;
10656
10737
  last_seen_at: string;
10738
+ missing_count: number;
10657
10739
  module_id: string;
10658
10740
  name: string;
10659
10741
  shell_id: string | null;
@@ -10664,6 +10746,7 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
10664
10746
  enforce?: boolean;
10665
10747
  is_active?: boolean;
10666
10748
  last_seen_at?: string;
10749
+ missing_count?: number;
10667
10750
  module_id: string;
10668
10751
  name: string;
10669
10752
  shell_id?: string | null;
@@ -10674,6 +10757,7 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
10674
10757
  enforce?: boolean;
10675
10758
  is_active?: boolean;
10676
10759
  last_seen_at?: string;
10760
+ missing_count?: number;
10677
10761
  module_id?: string;
10678
10762
  name?: string;
10679
10763
  shell_id?: string | null;
@@ -11673,6 +11757,7 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
11673
11757
  };
11674
11758
  order_invoice_links: {
11675
11759
  Row: {
11760
+ administration_code: string | null;
11676
11761
  attempts: number;
11677
11762
  created_at: string;
11678
11763
  error_message: string | null;
@@ -11685,6 +11770,7 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
11685
11770
  updated_at: string;
11686
11771
  };
11687
11772
  Insert: {
11773
+ administration_code?: string | null;
11688
11774
  attempts?: number;
11689
11775
  created_at?: string;
11690
11776
  error_message?: string | null;
@@ -11697,6 +11783,7 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
11697
11783
  updated_at?: string;
11698
11784
  };
11699
11785
  Update: {
11786
+ administration_code?: string | null;
11700
11787
  attempts?: number;
11701
11788
  created_at?: string;
11702
11789
  error_message?: string | null;
@@ -12862,6 +12949,27 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
12862
12949
  referencedColumns: ["id"];
12863
12950
  }];
12864
12951
  };
12952
+ pick_sync_state: {
12953
+ Row: {
12954
+ id: boolean;
12955
+ last_cleanup_at: string | null;
12956
+ last_sync_at: string | null;
12957
+ updated_at: string;
12958
+ };
12959
+ Insert: {
12960
+ id?: boolean;
12961
+ last_cleanup_at?: string | null;
12962
+ last_sync_at?: string | null;
12963
+ updated_at?: string;
12964
+ };
12965
+ Update: {
12966
+ id?: boolean;
12967
+ last_cleanup_at?: string | null;
12968
+ last_sync_at?: string | null;
12969
+ updated_at?: string;
12970
+ };
12971
+ Relationships: [];
12972
+ };
12865
12973
  pick_task_document_types: {
12866
12974
  Row: {
12867
12975
  created_at: string;
@@ -13144,6 +13252,7 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
13144
13252
  gebruiker_id: string | null;
13145
13253
  gebruiker_naam: string;
13146
13254
  gestart_op: string | null;
13255
+ herkomst: string | null;
13147
13256
  id: string;
13148
13257
  idempotentie_sleutel: string | null;
13149
13258
  is_herprint: boolean;
@@ -13173,6 +13282,7 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
13173
13282
  gebruiker_id?: string | null;
13174
13283
  gebruiker_naam?: string;
13175
13284
  gestart_op?: string | null;
13285
+ herkomst?: string | null;
13176
13286
  id?: string;
13177
13287
  idempotentie_sleutel?: string | null;
13178
13288
  is_herprint?: boolean;
@@ -13202,6 +13312,7 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
13202
13312
  gebruiker_id?: string | null;
13203
13313
  gebruiker_naam?: string;
13204
13314
  gestart_op?: string | null;
13315
+ herkomst?: string | null;
13205
13316
  id?: string;
13206
13317
  idempotentie_sleutel?: string | null;
13207
13318
  is_herprint?: boolean;
@@ -16206,12 +16317,16 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
16206
16317
  company_name: string | null;
16207
16318
  connected_at: string | null;
16208
16319
  created_at: string;
16320
+ disconnected_at: string | null;
16209
16321
  environment: string;
16210
16322
  id: string;
16323
+ initial_sync_completed_at: string | null;
16324
+ initial_sync_started_at: string | null;
16211
16325
  is_active: boolean;
16212
16326
  label: string | null;
16213
16327
  office_code: string | null;
16214
16328
  redirect_uri: string | null;
16329
+ superseded_at: string | null;
16215
16330
  updated_at: string;
16216
16331
  user_id: string;
16217
16332
  };
@@ -16222,12 +16337,16 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
16222
16337
  company_name?: string | null;
16223
16338
  connected_at?: string | null;
16224
16339
  created_at?: string;
16340
+ disconnected_at?: string | null;
16225
16341
  environment: string;
16226
16342
  id?: string;
16343
+ initial_sync_completed_at?: string | null;
16344
+ initial_sync_started_at?: string | null;
16227
16345
  is_active?: boolean;
16228
16346
  label?: string | null;
16229
16347
  office_code?: string | null;
16230
16348
  redirect_uri?: string | null;
16349
+ superseded_at?: string | null;
16231
16350
  updated_at?: string;
16232
16351
  user_id: string;
16233
16352
  };
@@ -16238,12 +16357,16 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
16238
16357
  company_name?: string | null;
16239
16358
  connected_at?: string | null;
16240
16359
  created_at?: string;
16360
+ disconnected_at?: string | null;
16241
16361
  environment?: string;
16242
16362
  id?: string;
16363
+ initial_sync_completed_at?: string | null;
16364
+ initial_sync_started_at?: string | null;
16243
16365
  is_active?: boolean;
16244
16366
  label?: string | null;
16245
16367
  office_code?: string | null;
16246
16368
  redirect_uri?: string | null;
16369
+ superseded_at?: string | null;
16247
16370
  updated_at?: string;
16248
16371
  user_id?: string;
16249
16372
  };
@@ -16303,6 +16426,7 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
16303
16426
  twinfield_customers: {
16304
16427
  Row: {
16305
16428
  address: string | null;
16429
+ administration_code: string;
16306
16430
  city: string | null;
16307
16431
  country: string | null;
16308
16432
  created_at: string;
@@ -16322,6 +16446,7 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
16322
16446
  };
16323
16447
  Insert: {
16324
16448
  address?: string | null;
16449
+ administration_code?: string;
16325
16450
  city?: string | null;
16326
16451
  country?: string | null;
16327
16452
  created_at?: string;
@@ -16341,6 +16466,7 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
16341
16466
  };
16342
16467
  Update: {
16343
16468
  address?: string | null;
16469
+ administration_code?: string;
16344
16470
  city?: string | null;
16345
16471
  country?: string | null;
16346
16472
  created_at?: string;
@@ -16554,7 +16680,9 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
16554
16680
  };
16555
16681
  twinfield_invoice_settings: {
16556
16682
  Row: {
16683
+ administration_code: string | null;
16557
16684
  auto_invoice_enabled: boolean;
16685
+ auto_invoice_start_date: string | null;
16558
16686
  auto_invoice_trigger_statuses: string[];
16559
16687
  created_at: string;
16560
16688
  debtor_gl_account: string;
@@ -16568,15 +16696,19 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
16568
16696
  invoice_enabled_fo: boolean;
16569
16697
  invoice_enabled_ho: boolean;
16570
16698
  invoice_enabled_mo: boolean;
16699
+ needs_review: boolean;
16571
16700
  payment_gl_account: string;
16572
16701
  payment_journal_code: string;
16702
+ settings_confirmed_at: string | null;
16573
16703
  updated_at: string;
16574
16704
  user_id: string;
16575
16705
  vat_code_eu_reverse: string | null;
16576
16706
  vat_code_export: string | null;
16577
16707
  };
16578
16708
  Insert: {
16709
+ administration_code?: string | null;
16579
16710
  auto_invoice_enabled?: boolean;
16711
+ auto_invoice_start_date?: string | null;
16580
16712
  auto_invoice_trigger_statuses?: string[];
16581
16713
  created_at?: string;
16582
16714
  debtor_gl_account?: string;
@@ -16590,15 +16722,19 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
16590
16722
  invoice_enabled_fo?: boolean;
16591
16723
  invoice_enabled_ho?: boolean;
16592
16724
  invoice_enabled_mo?: boolean;
16725
+ needs_review?: boolean;
16593
16726
  payment_gl_account?: string;
16594
16727
  payment_journal_code?: string;
16728
+ settings_confirmed_at?: string | null;
16595
16729
  updated_at?: string;
16596
16730
  user_id: string;
16597
16731
  vat_code_eu_reverse?: string | null;
16598
16732
  vat_code_export?: string | null;
16599
16733
  };
16600
16734
  Update: {
16735
+ administration_code?: string | null;
16601
16736
  auto_invoice_enabled?: boolean;
16737
+ auto_invoice_start_date?: string | null;
16602
16738
  auto_invoice_trigger_statuses?: string[];
16603
16739
  created_at?: string;
16604
16740
  debtor_gl_account?: string;
@@ -16612,8 +16748,10 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
16612
16748
  invoice_enabled_fo?: boolean;
16613
16749
  invoice_enabled_ho?: boolean;
16614
16750
  invoice_enabled_mo?: boolean;
16751
+ needs_review?: boolean;
16615
16752
  payment_gl_account?: string;
16616
16753
  payment_journal_code?: string;
16754
+ settings_confirmed_at?: string | null;
16617
16755
  updated_at?: string;
16618
16756
  user_id?: string;
16619
16757
  vat_code_eu_reverse?: string | null;
@@ -19670,6 +19808,7 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
19670
19808
  gebruiker_id: string | null;
19671
19809
  gebruiker_naam: string;
19672
19810
  gestart_op: string | null;
19811
+ herkomst: string | null;
19673
19812
  id: string;
19674
19813
  idempotentie_sleutel: string | null;
19675
19814
  is_herprint: boolean;
@@ -19790,6 +19929,7 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
19790
19929
  gebruiker_id: string | null;
19791
19930
  gebruiker_naam: string;
19792
19931
  gestart_op: string | null;
19932
+ herkomst: string | null;
19793
19933
  id: string;
19794
19934
  idempotentie_sleutel: string | null;
19795
19935
  is_herprint: boolean;
@@ -20499,6 +20639,29 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
20499
20639
  roles: string[];
20500
20640
  }[];
20501
20641
  };
20642
+ list_monteur_absences: {
20643
+ Args: {
20644
+ _from: string;
20645
+ _to: string;
20646
+ };
20647
+ Returns: {
20648
+ absence_date: string;
20649
+ end_time: string;
20650
+ full_day: boolean;
20651
+ kind: string;
20652
+ monteur_id: string;
20653
+ start_time: string;
20654
+ }[];
20655
+ };
20656
+ list_monteurs: {
20657
+ Args: never;
20658
+ Returns: {
20659
+ avatar_url: string;
20660
+ display_name: string;
20661
+ email: string;
20662
+ id: string;
20663
+ }[];
20664
+ };
20502
20665
  list_my_planning_items: {
20503
20666
  Args: {
20504
20667
  _from: string;
@@ -21452,6 +21615,13 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
21452
21615
  isSetofReturn: false;
21453
21616
  };
21454
21617
  };
21618
+ pick_cleanup_maintenance: {
21619
+ Args: {
21620
+ _heartbeat_hours?: number;
21621
+ _log_days?: number;
21622
+ };
21623
+ Returns: import("../integrations/supabase/types").Json;
21624
+ };
21455
21625
  pick_complete_print: {
21456
21626
  Args: {
21457
21627
  _printer_id: string;
@@ -21503,6 +21673,14 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
21503
21673
  Args: never;
21504
21674
  Returns: string;
21505
21675
  };
21676
+ pick_day_counts: {
21677
+ Args: {
21678
+ _pick_day?: string;
21679
+ _screen_id?: string;
21680
+ _station_id?: string;
21681
+ };
21682
+ Returns: import("../integrations/supabase/types").Json;
21683
+ };
21506
21684
  pick_document_layout_data: {
21507
21685
  Args: {
21508
21686
  _layout_id: string;
@@ -21540,6 +21718,14 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
21540
21718
  };
21541
21719
  Returns: undefined;
21542
21720
  };
21721
+ pick_reprint_document: {
21722
+ Args: {
21723
+ _queue_item_id: string;
21724
+ _session_id: string;
21725
+ _throttle_seconds?: number;
21726
+ };
21727
+ Returns: string;
21728
+ };
21543
21729
  pick_reset_print: {
21544
21730
  Args: {
21545
21731
  _queue_item_id: string;
@@ -21605,6 +21791,12 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
21605
21791
  };
21606
21792
  Returns: string;
21607
21793
  };
21794
+ pick_sync_queue_throttled: {
21795
+ Args: {
21796
+ _min_seconds?: number;
21797
+ };
21798
+ Returns: import("../integrations/supabase/types").Json;
21799
+ };
21608
21800
  pickstation_get_orders_raw: {
21609
21801
  Args: never;
21610
21802
  Returns: import("../integrations/supabase/types").Json;
@@ -21750,6 +21942,12 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
21750
21942
  };
21751
21943
  Returns: boolean;
21752
21944
  };
21945
+ release_stale_order_invoice_links: {
21946
+ Args: {
21947
+ _minutes?: number;
21948
+ };
21949
+ Returns: number;
21950
+ };
21753
21951
  reorder_customer_price_groups: {
21754
21952
  Args: {
21755
21953
  _ids: string[];
@@ -22268,6 +22466,20 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
22268
22466
  };
22269
22467
  Returns: undefined;
22270
22468
  };
22469
+ twinfield_deactivate_connection: {
22470
+ Args: {
22471
+ p_connection_id: string;
22472
+ p_user_id: string;
22473
+ };
22474
+ Returns: import("../integrations/supabase/types").Json;
22475
+ };
22476
+ twinfield_handle_administration_change: {
22477
+ Args: {
22478
+ _administration_code: string;
22479
+ _user_id: string;
22480
+ };
22481
+ Returns: undefined;
22482
+ };
22271
22483
  twinfield_prune_push_queue: {
22272
22484
  Args: never;
22273
22485
  Returns: number;
@@ -22287,10 +22499,11 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
22287
22499
  p_company_name?: string;
22288
22500
  p_environment: string;
22289
22501
  p_office_code?: string;
22502
+ p_reset_sync?: boolean;
22290
22503
  p_status?: string;
22291
22504
  p_user_id: string;
22292
22505
  };
22293
- Returns: string;
22506
+ Returns: import("../integrations/supabase/types").Json;
22294
22507
  };
22295
22508
  upsert_auto_fulfillment_log: {
22296
22509
  Args: {
@@ -25114,6 +25327,42 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
25114
25327
  };
25115
25328
  Relationships: [];
25116
25329
  };
25330
+ document_bronregels: {
25331
+ Row: {
25332
+ bron: string;
25333
+ created_at: string;
25334
+ documenttype: string;
25335
+ herkomst: string;
25336
+ id: string;
25337
+ layout_id: string | null;
25338
+ updated_at: string;
25339
+ };
25340
+ Insert: {
25341
+ bron?: string;
25342
+ created_at?: string;
25343
+ documenttype: string;
25344
+ herkomst: string;
25345
+ id?: string;
25346
+ layout_id?: string | null;
25347
+ updated_at?: string;
25348
+ };
25349
+ Update: {
25350
+ bron?: string;
25351
+ created_at?: string;
25352
+ documenttype?: string;
25353
+ herkomst?: string;
25354
+ id?: string;
25355
+ layout_id?: string | null;
25356
+ updated_at?: string;
25357
+ };
25358
+ Relationships: [{
25359
+ foreignKeyName: "document_bronregels_layout_id_fkey";
25360
+ columns: ["layout_id"];
25361
+ isOneToOne: false;
25362
+ referencedRelation: "document_layouts";
25363
+ referencedColumns: ["id"];
25364
+ }];
25365
+ };
25117
25366
  document_formaat_printers: {
25118
25367
  Row: {
25119
25368
  created_at: string;
@@ -25391,6 +25640,7 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
25391
25640
  Row: {
25392
25641
  actief: boolean;
25393
25642
  breedte_mm: number;
25643
+ bron: string;
25394
25644
  config: import("../integrations/supabase/types").Json;
25395
25645
  created_at: string;
25396
25646
  created_by: string | null;
@@ -25408,12 +25658,14 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
25408
25658
  orientatie: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_orientation"];
25409
25659
  page_settings: import("../integrations/supabase/types").Json;
25410
25660
  papierformaat: string;
25661
+ systeem: boolean;
25411
25662
  thumbnail_url: string | null;
25412
25663
  updated_at: string;
25413
25664
  };
25414
25665
  Insert: {
25415
25666
  actief?: boolean;
25416
25667
  breedte_mm?: number;
25668
+ bron?: string;
25417
25669
  config?: import("../integrations/supabase/types").Json;
25418
25670
  created_at?: string;
25419
25671
  created_by?: string | null;
@@ -25431,12 +25683,14 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
25431
25683
  orientatie?: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_orientation"];
25432
25684
  page_settings?: import("../integrations/supabase/types").Json;
25433
25685
  papierformaat?: string;
25686
+ systeem?: boolean;
25434
25687
  thumbnail_url?: string | null;
25435
25688
  updated_at?: string;
25436
25689
  };
25437
25690
  Update: {
25438
25691
  actief?: boolean;
25439
25692
  breedte_mm?: number;
25693
+ bron?: string;
25440
25694
  config?: import("../integrations/supabase/types").Json;
25441
25695
  created_at?: string;
25442
25696
  created_by?: string | null;
@@ -25454,11 +25708,48 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
25454
25708
  orientatie?: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_orientation"];
25455
25709
  page_settings?: import("../integrations/supabase/types").Json;
25456
25710
  papierformaat?: string;
25711
+ systeem?: boolean;
25457
25712
  thumbnail_url?: string | null;
25458
25713
  updated_at?: string;
25459
25714
  };
25460
25715
  Relationships: [];
25461
25716
  };
25717
+ document_werkplek_printers: {
25718
+ Row: {
25719
+ created_at: string;
25720
+ documenttype: string;
25721
+ id: string;
25722
+ papierformaat: string | null;
25723
+ printer_id: string | null;
25724
+ updated_at: string;
25725
+ werkplek: string;
25726
+ };
25727
+ Insert: {
25728
+ created_at?: string;
25729
+ documenttype: string;
25730
+ id?: string;
25731
+ papierformaat?: string | null;
25732
+ printer_id?: string | null;
25733
+ updated_at?: string;
25734
+ werkplek: string;
25735
+ };
25736
+ Update: {
25737
+ created_at?: string;
25738
+ documenttype?: string;
25739
+ id?: string;
25740
+ papierformaat?: string | null;
25741
+ printer_id?: string | null;
25742
+ updated_at?: string;
25743
+ werkplek?: string;
25744
+ };
25745
+ Relationships: [{
25746
+ foreignKeyName: "document_werkplek_printers_printer_id_fkey";
25747
+ columns: ["printer_id"];
25748
+ isOneToOne: false;
25749
+ referencedRelation: "printers";
25750
+ referencedColumns: ["id"];
25751
+ }];
25752
+ };
25462
25753
  email_auth_connections: {
25463
25754
  Row: {
25464
25755
  access_token_encrypted: string | null;
@@ -29760,6 +30051,7 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
29760
30051
  };
29761
30052
  invoice_post_idempotency: {
29762
30053
  Row: {
30054
+ administration_code: string;
29763
30055
  client_request_id: string;
29764
30056
  completed_at: string | null;
29765
30057
  created_at: string;
@@ -29769,6 +30061,7 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
29769
30061
  user_id: string;
29770
30062
  };
29771
30063
  Insert: {
30064
+ administration_code?: string;
29772
30065
  client_request_id: string;
29773
30066
  completed_at?: string | null;
29774
30067
  created_at?: string;
@@ -29778,6 +30071,7 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
29778
30071
  user_id: string;
29779
30072
  };
29780
30073
  Update: {
30074
+ administration_code?: string;
29781
30075
  client_request_id?: string;
29782
30076
  completed_at?: string | null;
29783
30077
  created_at?: string;
@@ -32992,6 +33286,7 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
32992
33286
  enforce: boolean;
32993
33287
  is_active: boolean;
32994
33288
  last_seen_at: string;
33289
+ missing_count: number;
32995
33290
  module_id: string;
32996
33291
  name: string;
32997
33292
  shell_id: string | null;
@@ -33002,6 +33297,7 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
33002
33297
  enforce?: boolean;
33003
33298
  is_active?: boolean;
33004
33299
  last_seen_at?: string;
33300
+ missing_count?: number;
33005
33301
  module_id: string;
33006
33302
  name: string;
33007
33303
  shell_id?: string | null;
@@ -33012,6 +33308,7 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
33012
33308
  enforce?: boolean;
33013
33309
  is_active?: boolean;
33014
33310
  last_seen_at?: string;
33311
+ missing_count?: number;
33015
33312
  module_id?: string;
33016
33313
  name?: string;
33017
33314
  shell_id?: string | null;
@@ -34011,6 +34308,7 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
34011
34308
  };
34012
34309
  order_invoice_links: {
34013
34310
  Row: {
34311
+ administration_code: string | null;
34014
34312
  attempts: number;
34015
34313
  created_at: string;
34016
34314
  error_message: string | null;
@@ -34023,6 +34321,7 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
34023
34321
  updated_at: string;
34024
34322
  };
34025
34323
  Insert: {
34324
+ administration_code?: string | null;
34026
34325
  attempts?: number;
34027
34326
  created_at?: string;
34028
34327
  error_message?: string | null;
@@ -34035,6 +34334,7 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
34035
34334
  updated_at?: string;
34036
34335
  };
34037
34336
  Update: {
34337
+ administration_code?: string | null;
34038
34338
  attempts?: number;
34039
34339
  created_at?: string;
34040
34340
  error_message?: string | null;
@@ -35200,6 +35500,27 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
35200
35500
  referencedColumns: ["id"];
35201
35501
  }];
35202
35502
  };
35503
+ pick_sync_state: {
35504
+ Row: {
35505
+ id: boolean;
35506
+ last_cleanup_at: string | null;
35507
+ last_sync_at: string | null;
35508
+ updated_at: string;
35509
+ };
35510
+ Insert: {
35511
+ id?: boolean;
35512
+ last_cleanup_at?: string | null;
35513
+ last_sync_at?: string | null;
35514
+ updated_at?: string;
35515
+ };
35516
+ Update: {
35517
+ id?: boolean;
35518
+ last_cleanup_at?: string | null;
35519
+ last_sync_at?: string | null;
35520
+ updated_at?: string;
35521
+ };
35522
+ Relationships: [];
35523
+ };
35203
35524
  pick_task_document_types: {
35204
35525
  Row: {
35205
35526
  created_at: string;
@@ -35482,6 +35803,7 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
35482
35803
  gebruiker_id: string | null;
35483
35804
  gebruiker_naam: string;
35484
35805
  gestart_op: string | null;
35806
+ herkomst: string | null;
35485
35807
  id: string;
35486
35808
  idempotentie_sleutel: string | null;
35487
35809
  is_herprint: boolean;
@@ -35511,6 +35833,7 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
35511
35833
  gebruiker_id?: string | null;
35512
35834
  gebruiker_naam?: string;
35513
35835
  gestart_op?: string | null;
35836
+ herkomst?: string | null;
35514
35837
  id?: string;
35515
35838
  idempotentie_sleutel?: string | null;
35516
35839
  is_herprint?: boolean;
@@ -35540,6 +35863,7 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
35540
35863
  gebruiker_id?: string | null;
35541
35864
  gebruiker_naam?: string;
35542
35865
  gestart_op?: string | null;
35866
+ herkomst?: string | null;
35543
35867
  id?: string;
35544
35868
  idempotentie_sleutel?: string | null;
35545
35869
  is_herprint?: boolean;
@@ -38544,12 +38868,16 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
38544
38868
  company_name: string | null;
38545
38869
  connected_at: string | null;
38546
38870
  created_at: string;
38871
+ disconnected_at: string | null;
38547
38872
  environment: string;
38548
38873
  id: string;
38874
+ initial_sync_completed_at: string | null;
38875
+ initial_sync_started_at: string | null;
38549
38876
  is_active: boolean;
38550
38877
  label: string | null;
38551
38878
  office_code: string | null;
38552
38879
  redirect_uri: string | null;
38880
+ superseded_at: string | null;
38553
38881
  updated_at: string;
38554
38882
  user_id: string;
38555
38883
  };
@@ -38560,12 +38888,16 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
38560
38888
  company_name?: string | null;
38561
38889
  connected_at?: string | null;
38562
38890
  created_at?: string;
38891
+ disconnected_at?: string | null;
38563
38892
  environment: string;
38564
38893
  id?: string;
38894
+ initial_sync_completed_at?: string | null;
38895
+ initial_sync_started_at?: string | null;
38565
38896
  is_active?: boolean;
38566
38897
  label?: string | null;
38567
38898
  office_code?: string | null;
38568
38899
  redirect_uri?: string | null;
38900
+ superseded_at?: string | null;
38569
38901
  updated_at?: string;
38570
38902
  user_id: string;
38571
38903
  };
@@ -38576,12 +38908,16 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
38576
38908
  company_name?: string | null;
38577
38909
  connected_at?: string | null;
38578
38910
  created_at?: string;
38911
+ disconnected_at?: string | null;
38579
38912
  environment?: string;
38580
38913
  id?: string;
38914
+ initial_sync_completed_at?: string | null;
38915
+ initial_sync_started_at?: string | null;
38581
38916
  is_active?: boolean;
38582
38917
  label?: string | null;
38583
38918
  office_code?: string | null;
38584
38919
  redirect_uri?: string | null;
38920
+ superseded_at?: string | null;
38585
38921
  updated_at?: string;
38586
38922
  user_id?: string;
38587
38923
  };
@@ -38641,6 +38977,7 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
38641
38977
  twinfield_customers: {
38642
38978
  Row: {
38643
38979
  address: string | null;
38980
+ administration_code: string;
38644
38981
  city: string | null;
38645
38982
  country: string | null;
38646
38983
  created_at: string;
@@ -38660,6 +38997,7 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
38660
38997
  };
38661
38998
  Insert: {
38662
38999
  address?: string | null;
39000
+ administration_code?: string;
38663
39001
  city?: string | null;
38664
39002
  country?: string | null;
38665
39003
  created_at?: string;
@@ -38679,6 +39017,7 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
38679
39017
  };
38680
39018
  Update: {
38681
39019
  address?: string | null;
39020
+ administration_code?: string;
38682
39021
  city?: string | null;
38683
39022
  country?: string | null;
38684
39023
  created_at?: string;
@@ -38892,7 +39231,9 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
38892
39231
  };
38893
39232
  twinfield_invoice_settings: {
38894
39233
  Row: {
39234
+ administration_code: string | null;
38895
39235
  auto_invoice_enabled: boolean;
39236
+ auto_invoice_start_date: string | null;
38896
39237
  auto_invoice_trigger_statuses: string[];
38897
39238
  created_at: string;
38898
39239
  debtor_gl_account: string;
@@ -38906,15 +39247,19 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
38906
39247
  invoice_enabled_fo: boolean;
38907
39248
  invoice_enabled_ho: boolean;
38908
39249
  invoice_enabled_mo: boolean;
39250
+ needs_review: boolean;
38909
39251
  payment_gl_account: string;
38910
39252
  payment_journal_code: string;
39253
+ settings_confirmed_at: string | null;
38911
39254
  updated_at: string;
38912
39255
  user_id: string;
38913
39256
  vat_code_eu_reverse: string | null;
38914
39257
  vat_code_export: string | null;
38915
39258
  };
38916
39259
  Insert: {
39260
+ administration_code?: string | null;
38917
39261
  auto_invoice_enabled?: boolean;
39262
+ auto_invoice_start_date?: string | null;
38918
39263
  auto_invoice_trigger_statuses?: string[];
38919
39264
  created_at?: string;
38920
39265
  debtor_gl_account?: string;
@@ -38928,15 +39273,19 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
38928
39273
  invoice_enabled_fo?: boolean;
38929
39274
  invoice_enabled_ho?: boolean;
38930
39275
  invoice_enabled_mo?: boolean;
39276
+ needs_review?: boolean;
38931
39277
  payment_gl_account?: string;
38932
39278
  payment_journal_code?: string;
39279
+ settings_confirmed_at?: string | null;
38933
39280
  updated_at?: string;
38934
39281
  user_id: string;
38935
39282
  vat_code_eu_reverse?: string | null;
38936
39283
  vat_code_export?: string | null;
38937
39284
  };
38938
39285
  Update: {
39286
+ administration_code?: string | null;
38939
39287
  auto_invoice_enabled?: boolean;
39288
+ auto_invoice_start_date?: string | null;
38940
39289
  auto_invoice_trigger_statuses?: string[];
38941
39290
  created_at?: string;
38942
39291
  debtor_gl_account?: string;
@@ -38950,8 +39299,10 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
38950
39299
  invoice_enabled_fo?: boolean;
38951
39300
  invoice_enabled_ho?: boolean;
38952
39301
  invoice_enabled_mo?: boolean;
39302
+ needs_review?: boolean;
38953
39303
  payment_gl_account?: string;
38954
39304
  payment_journal_code?: string;
39305
+ settings_confirmed_at?: string | null;
38955
39306
  updated_at?: string;
38956
39307
  user_id?: string;
38957
39308
  vat_code_eu_reverse?: string | null;
@@ -42008,6 +42359,7 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
42008
42359
  gebruiker_id: string | null;
42009
42360
  gebruiker_naam: string;
42010
42361
  gestart_op: string | null;
42362
+ herkomst: string | null;
42011
42363
  id: string;
42012
42364
  idempotentie_sleutel: string | null;
42013
42365
  is_herprint: boolean;
@@ -42128,6 +42480,7 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
42128
42480
  gebruiker_id: string | null;
42129
42481
  gebruiker_naam: string;
42130
42482
  gestart_op: string | null;
42483
+ herkomst: string | null;
42131
42484
  id: string;
42132
42485
  idempotentie_sleutel: string | null;
42133
42486
  is_herprint: boolean;
@@ -42837,6 +43190,29 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
42837
43190
  roles: string[];
42838
43191
  }[];
42839
43192
  };
43193
+ list_monteur_absences: {
43194
+ Args: {
43195
+ _from: string;
43196
+ _to: string;
43197
+ };
43198
+ Returns: {
43199
+ absence_date: string;
43200
+ end_time: string;
43201
+ full_day: boolean;
43202
+ kind: string;
43203
+ monteur_id: string;
43204
+ start_time: string;
43205
+ }[];
43206
+ };
43207
+ list_monteurs: {
43208
+ Args: never;
43209
+ Returns: {
43210
+ avatar_url: string;
43211
+ display_name: string;
43212
+ email: string;
43213
+ id: string;
43214
+ }[];
43215
+ };
42840
43216
  list_my_planning_items: {
42841
43217
  Args: {
42842
43218
  _from: string;
@@ -43790,6 +44166,13 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
43790
44166
  isSetofReturn: false;
43791
44167
  };
43792
44168
  };
44169
+ pick_cleanup_maintenance: {
44170
+ Args: {
44171
+ _heartbeat_hours?: number;
44172
+ _log_days?: number;
44173
+ };
44174
+ Returns: import("../integrations/supabase/types").Json;
44175
+ };
43793
44176
  pick_complete_print: {
43794
44177
  Args: {
43795
44178
  _printer_id: string;
@@ -43841,6 +44224,14 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
43841
44224
  Args: never;
43842
44225
  Returns: string;
43843
44226
  };
44227
+ pick_day_counts: {
44228
+ Args: {
44229
+ _pick_day?: string;
44230
+ _screen_id?: string;
44231
+ _station_id?: string;
44232
+ };
44233
+ Returns: import("../integrations/supabase/types").Json;
44234
+ };
43844
44235
  pick_document_layout_data: {
43845
44236
  Args: {
43846
44237
  _layout_id: string;
@@ -43878,6 +44269,14 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
43878
44269
  };
43879
44270
  Returns: undefined;
43880
44271
  };
44272
+ pick_reprint_document: {
44273
+ Args: {
44274
+ _queue_item_id: string;
44275
+ _session_id: string;
44276
+ _throttle_seconds?: number;
44277
+ };
44278
+ Returns: string;
44279
+ };
43881
44280
  pick_reset_print: {
43882
44281
  Args: {
43883
44282
  _queue_item_id: string;
@@ -43943,6 +44342,12 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
43943
44342
  };
43944
44343
  Returns: string;
43945
44344
  };
44345
+ pick_sync_queue_throttled: {
44346
+ Args: {
44347
+ _min_seconds?: number;
44348
+ };
44349
+ Returns: import("../integrations/supabase/types").Json;
44350
+ };
43946
44351
  pickstation_get_orders_raw: {
43947
44352
  Args: never;
43948
44353
  Returns: import("../integrations/supabase/types").Json;
@@ -44088,6 +44493,12 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
44088
44493
  };
44089
44494
  Returns: boolean;
44090
44495
  };
44496
+ release_stale_order_invoice_links: {
44497
+ Args: {
44498
+ _minutes?: number;
44499
+ };
44500
+ Returns: number;
44501
+ };
44091
44502
  reorder_customer_price_groups: {
44092
44503
  Args: {
44093
44504
  _ids: string[];
@@ -44606,6 +45017,20 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
44606
45017
  };
44607
45018
  Returns: undefined;
44608
45019
  };
45020
+ twinfield_deactivate_connection: {
45021
+ Args: {
45022
+ p_connection_id: string;
45023
+ p_user_id: string;
45024
+ };
45025
+ Returns: import("../integrations/supabase/types").Json;
45026
+ };
45027
+ twinfield_handle_administration_change: {
45028
+ Args: {
45029
+ _administration_code: string;
45030
+ _user_id: string;
45031
+ };
45032
+ Returns: undefined;
45033
+ };
44609
45034
  twinfield_prune_push_queue: {
44610
45035
  Args: never;
44611
45036
  Returns: number;
@@ -44625,10 +45050,11 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
44625
45050
  p_company_name?: string;
44626
45051
  p_environment: string;
44627
45052
  p_office_code?: string;
45053
+ p_reset_sync?: boolean;
44628
45054
  p_status?: string;
44629
45055
  p_user_id: string;
44630
45056
  };
44631
- Returns: string;
45057
+ Returns: import("../integrations/supabase/types").Json;
44632
45058
  };
44633
45059
  upsert_auto_fulfillment_log: {
44634
45060
  Args: {