@flowselections/floriday-afhandeling-module 1.0.36 → 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 (31) 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/hooks/useOrderPlanning.d.ts +20 -3
  4. package/dist-lib/hooks/useOrderPlanning.d.ts.map +1 -1
  5. package/dist-lib/hooks/useOrderPlanning.js +80 -15
  6. package/dist-lib/integrations/supabase/auth-middleware.d.ts +214 -1
  7. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  8. package/dist-lib/integrations/supabase/client.server.d.ts +214 -1
  9. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  10. package/dist-lib/integrations/supabase/moduleClient.d.ts +214 -1
  11. package/dist-lib/integrations/supabase/moduleClient.d.ts.map +1 -1
  12. package/dist-lib/integrations/supabase/types.d.ts +218 -1
  13. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  14. package/dist-lib/lib/afhandelingSettings.functions.d.ts +428 -2
  15. package/dist-lib/lib/afhandelingSettings.functions.d.ts.map +1 -1
  16. package/dist-lib/lib/carriers.functions.d.ts +1070 -5
  17. package/dist-lib/lib/carriers.functions.d.ts.map +1 -1
  18. package/dist-lib/lib/cartAssignments.functions.d.ts +1070 -5
  19. package/dist-lib/lib/cartAssignments.functions.d.ts.map +1 -1
  20. package/dist-lib/lib/cartControl.functions.d.ts +2140 -10
  21. package/dist-lib/lib/cartControl.functions.d.ts.map +1 -1
  22. package/dist-lib/lib/floriday.functions.d.ts +223 -2
  23. package/dist-lib/lib/floriday.functions.d.ts.map +1 -1
  24. package/dist-lib/lib/floriday.functions.js +41 -9
  25. package/dist-lib/lib/logisticsEngine/engine.d.ts +21 -1
  26. package/dist-lib/lib/logisticsEngine/engine.d.ts.map +1 -1
  27. package/dist-lib/lib/logisticsEngine/engine.js +81 -19
  28. package/dist-lib/lib/orderRefs.d.ts +18 -0
  29. package/dist-lib/lib/orderRefs.d.ts.map +1 -0
  30. package/dist-lib/lib/orderRefs.js +30 -0
  31. package/package.json +1 -1
@@ -2771,6 +2771,42 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
2771
2771
  };
2772
2772
  Relationships: [];
2773
2773
  };
2774
+ document_bronregels: {
2775
+ Row: {
2776
+ bron: string;
2777
+ created_at: string;
2778
+ documenttype: string;
2779
+ herkomst: string;
2780
+ id: string;
2781
+ layout_id: string | null;
2782
+ updated_at: string;
2783
+ };
2784
+ Insert: {
2785
+ bron?: string;
2786
+ created_at?: string;
2787
+ documenttype: string;
2788
+ herkomst: string;
2789
+ id?: string;
2790
+ layout_id?: string | null;
2791
+ updated_at?: string;
2792
+ };
2793
+ Update: {
2794
+ bron?: string;
2795
+ created_at?: string;
2796
+ documenttype?: string;
2797
+ herkomst?: string;
2798
+ id?: string;
2799
+ layout_id?: string | null;
2800
+ updated_at?: string;
2801
+ };
2802
+ Relationships: [{
2803
+ foreignKeyName: "document_bronregels_layout_id_fkey";
2804
+ columns: ["layout_id"];
2805
+ isOneToOne: false;
2806
+ referencedRelation: "document_layouts";
2807
+ referencedColumns: ["id"];
2808
+ }];
2809
+ };
2774
2810
  document_formaat_printers: {
2775
2811
  Row: {
2776
2812
  created_at: string;
@@ -3048,6 +3084,7 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
3048
3084
  Row: {
3049
3085
  actief: boolean;
3050
3086
  breedte_mm: number;
3087
+ bron: string;
3051
3088
  config: import("../integrations/supabase/types").Json;
3052
3089
  created_at: string;
3053
3090
  created_by: string | null;
@@ -3065,12 +3102,14 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
3065
3102
  orientatie: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_orientation"];
3066
3103
  page_settings: import("../integrations/supabase/types").Json;
3067
3104
  papierformaat: string;
3105
+ systeem: boolean;
3068
3106
  thumbnail_url: string | null;
3069
3107
  updated_at: string;
3070
3108
  };
3071
3109
  Insert: {
3072
3110
  actief?: boolean;
3073
3111
  breedte_mm?: number;
3112
+ bron?: string;
3074
3113
  config?: import("../integrations/supabase/types").Json;
3075
3114
  created_at?: string;
3076
3115
  created_by?: string | null;
@@ -3088,12 +3127,14 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
3088
3127
  orientatie?: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_orientation"];
3089
3128
  page_settings?: import("../integrations/supabase/types").Json;
3090
3129
  papierformaat?: string;
3130
+ systeem?: boolean;
3091
3131
  thumbnail_url?: string | null;
3092
3132
  updated_at?: string;
3093
3133
  };
3094
3134
  Update: {
3095
3135
  actief?: boolean;
3096
3136
  breedte_mm?: number;
3137
+ bron?: string;
3097
3138
  config?: import("../integrations/supabase/types").Json;
3098
3139
  created_at?: string;
3099
3140
  created_by?: string | null;
@@ -3111,11 +3152,48 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
3111
3152
  orientatie?: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_orientation"];
3112
3153
  page_settings?: import("../integrations/supabase/types").Json;
3113
3154
  papierformaat?: string;
3155
+ systeem?: boolean;
3114
3156
  thumbnail_url?: string | null;
3115
3157
  updated_at?: string;
3116
3158
  };
3117
3159
  Relationships: [];
3118
3160
  };
3161
+ document_werkplek_printers: {
3162
+ Row: {
3163
+ created_at: string;
3164
+ documenttype: string;
3165
+ id: string;
3166
+ papierformaat: string | null;
3167
+ printer_id: string | null;
3168
+ updated_at: string;
3169
+ werkplek: string;
3170
+ };
3171
+ Insert: {
3172
+ created_at?: string;
3173
+ documenttype: string;
3174
+ id?: string;
3175
+ papierformaat?: string | null;
3176
+ printer_id?: string | null;
3177
+ updated_at?: string;
3178
+ werkplek: string;
3179
+ };
3180
+ Update: {
3181
+ created_at?: string;
3182
+ documenttype?: string;
3183
+ id?: string;
3184
+ papierformaat?: string | null;
3185
+ printer_id?: string | null;
3186
+ updated_at?: string;
3187
+ werkplek?: string;
3188
+ };
3189
+ Relationships: [{
3190
+ foreignKeyName: "document_werkplek_printers_printer_id_fkey";
3191
+ columns: ["printer_id"];
3192
+ isOneToOne: false;
3193
+ referencedRelation: "printers";
3194
+ referencedColumns: ["id"];
3195
+ }];
3196
+ };
3119
3197
  email_auth_connections: {
3120
3198
  Row: {
3121
3199
  access_token_encrypted: string | null;
@@ -7417,6 +7495,7 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
7417
7495
  };
7418
7496
  invoice_post_idempotency: {
7419
7497
  Row: {
7498
+ administration_code: string;
7420
7499
  client_request_id: string;
7421
7500
  completed_at: string | null;
7422
7501
  created_at: string;
@@ -7426,6 +7505,7 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
7426
7505
  user_id: string;
7427
7506
  };
7428
7507
  Insert: {
7508
+ administration_code?: string;
7429
7509
  client_request_id: string;
7430
7510
  completed_at?: string | null;
7431
7511
  created_at?: string;
@@ -7435,6 +7515,7 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
7435
7515
  user_id: string;
7436
7516
  };
7437
7517
  Update: {
7518
+ administration_code?: string;
7438
7519
  client_request_id?: string;
7439
7520
  completed_at?: string | null;
7440
7521
  created_at?: string;
@@ -10649,6 +10730,7 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
10649
10730
  enforce: boolean;
10650
10731
  is_active: boolean;
10651
10732
  last_seen_at: string;
10733
+ missing_count: number;
10652
10734
  module_id: string;
10653
10735
  name: string;
10654
10736
  shell_id: string | null;
@@ -10659,6 +10741,7 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
10659
10741
  enforce?: boolean;
10660
10742
  is_active?: boolean;
10661
10743
  last_seen_at?: string;
10744
+ missing_count?: number;
10662
10745
  module_id: string;
10663
10746
  name: string;
10664
10747
  shell_id?: string | null;
@@ -10669,6 +10752,7 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
10669
10752
  enforce?: boolean;
10670
10753
  is_active?: boolean;
10671
10754
  last_seen_at?: string;
10755
+ missing_count?: number;
10672
10756
  module_id?: string;
10673
10757
  name?: string;
10674
10758
  shell_id?: string | null;
@@ -11668,6 +11752,7 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
11668
11752
  };
11669
11753
  order_invoice_links: {
11670
11754
  Row: {
11755
+ administration_code: string | null;
11671
11756
  attempts: number;
11672
11757
  created_at: string;
11673
11758
  error_message: string | null;
@@ -11680,6 +11765,7 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
11680
11765
  updated_at: string;
11681
11766
  };
11682
11767
  Insert: {
11768
+ administration_code?: string | null;
11683
11769
  attempts?: number;
11684
11770
  created_at?: string;
11685
11771
  error_message?: string | null;
@@ -11692,6 +11778,7 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
11692
11778
  updated_at?: string;
11693
11779
  };
11694
11780
  Update: {
11781
+ administration_code?: string | null;
11695
11782
  attempts?: number;
11696
11783
  created_at?: string;
11697
11784
  error_message?: string | null;
@@ -12857,6 +12944,27 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
12857
12944
  referencedColumns: ["id"];
12858
12945
  }];
12859
12946
  };
12947
+ pick_sync_state: {
12948
+ Row: {
12949
+ id: boolean;
12950
+ last_cleanup_at: string | null;
12951
+ last_sync_at: string | null;
12952
+ updated_at: string;
12953
+ };
12954
+ Insert: {
12955
+ id?: boolean;
12956
+ last_cleanup_at?: string | null;
12957
+ last_sync_at?: string | null;
12958
+ updated_at?: string;
12959
+ };
12960
+ Update: {
12961
+ id?: boolean;
12962
+ last_cleanup_at?: string | null;
12963
+ last_sync_at?: string | null;
12964
+ updated_at?: string;
12965
+ };
12966
+ Relationships: [];
12967
+ };
12860
12968
  pick_task_document_types: {
12861
12969
  Row: {
12862
12970
  created_at: string;
@@ -13139,6 +13247,7 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
13139
13247
  gebruiker_id: string | null;
13140
13248
  gebruiker_naam: string;
13141
13249
  gestart_op: string | null;
13250
+ herkomst: string | null;
13142
13251
  id: string;
13143
13252
  idempotentie_sleutel: string | null;
13144
13253
  is_herprint: boolean;
@@ -13168,6 +13277,7 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
13168
13277
  gebruiker_id?: string | null;
13169
13278
  gebruiker_naam?: string;
13170
13279
  gestart_op?: string | null;
13280
+ herkomst?: string | null;
13171
13281
  id?: string;
13172
13282
  idempotentie_sleutel?: string | null;
13173
13283
  is_herprint?: boolean;
@@ -13197,6 +13307,7 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
13197
13307
  gebruiker_id?: string | null;
13198
13308
  gebruiker_naam?: string;
13199
13309
  gestart_op?: string | null;
13310
+ herkomst?: string | null;
13200
13311
  id?: string;
13201
13312
  idempotentie_sleutel?: string | null;
13202
13313
  is_herprint?: boolean;
@@ -16201,12 +16312,16 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
16201
16312
  company_name: string | null;
16202
16313
  connected_at: string | null;
16203
16314
  created_at: string;
16315
+ disconnected_at: string | null;
16204
16316
  environment: string;
16205
16317
  id: string;
16318
+ initial_sync_completed_at: string | null;
16319
+ initial_sync_started_at: string | null;
16206
16320
  is_active: boolean;
16207
16321
  label: string | null;
16208
16322
  office_code: string | null;
16209
16323
  redirect_uri: string | null;
16324
+ superseded_at: string | null;
16210
16325
  updated_at: string;
16211
16326
  user_id: string;
16212
16327
  };
@@ -16217,12 +16332,16 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
16217
16332
  company_name?: string | null;
16218
16333
  connected_at?: string | null;
16219
16334
  created_at?: string;
16335
+ disconnected_at?: string | null;
16220
16336
  environment: string;
16221
16337
  id?: string;
16338
+ initial_sync_completed_at?: string | null;
16339
+ initial_sync_started_at?: string | null;
16222
16340
  is_active?: boolean;
16223
16341
  label?: string | null;
16224
16342
  office_code?: string | null;
16225
16343
  redirect_uri?: string | null;
16344
+ superseded_at?: string | null;
16226
16345
  updated_at?: string;
16227
16346
  user_id: string;
16228
16347
  };
@@ -16233,12 +16352,16 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
16233
16352
  company_name?: string | null;
16234
16353
  connected_at?: string | null;
16235
16354
  created_at?: string;
16355
+ disconnected_at?: string | null;
16236
16356
  environment?: string;
16237
16357
  id?: string;
16358
+ initial_sync_completed_at?: string | null;
16359
+ initial_sync_started_at?: string | null;
16238
16360
  is_active?: boolean;
16239
16361
  label?: string | null;
16240
16362
  office_code?: string | null;
16241
16363
  redirect_uri?: string | null;
16364
+ superseded_at?: string | null;
16242
16365
  updated_at?: string;
16243
16366
  user_id?: string;
16244
16367
  };
@@ -16298,6 +16421,7 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
16298
16421
  twinfield_customers: {
16299
16422
  Row: {
16300
16423
  address: string | null;
16424
+ administration_code: string;
16301
16425
  city: string | null;
16302
16426
  country: string | null;
16303
16427
  created_at: string;
@@ -16317,6 +16441,7 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
16317
16441
  };
16318
16442
  Insert: {
16319
16443
  address?: string | null;
16444
+ administration_code?: string;
16320
16445
  city?: string | null;
16321
16446
  country?: string | null;
16322
16447
  created_at?: string;
@@ -16336,6 +16461,7 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
16336
16461
  };
16337
16462
  Update: {
16338
16463
  address?: string | null;
16464
+ administration_code?: string;
16339
16465
  city?: string | null;
16340
16466
  country?: string | null;
16341
16467
  created_at?: string;
@@ -16549,7 +16675,9 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
16549
16675
  };
16550
16676
  twinfield_invoice_settings: {
16551
16677
  Row: {
16678
+ administration_code: string | null;
16552
16679
  auto_invoice_enabled: boolean;
16680
+ auto_invoice_start_date: string | null;
16553
16681
  auto_invoice_trigger_statuses: string[];
16554
16682
  created_at: string;
16555
16683
  debtor_gl_account: string;
@@ -16563,15 +16691,19 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
16563
16691
  invoice_enabled_fo: boolean;
16564
16692
  invoice_enabled_ho: boolean;
16565
16693
  invoice_enabled_mo: boolean;
16694
+ needs_review: boolean;
16566
16695
  payment_gl_account: string;
16567
16696
  payment_journal_code: string;
16697
+ settings_confirmed_at: string | null;
16568
16698
  updated_at: string;
16569
16699
  user_id: string;
16570
16700
  vat_code_eu_reverse: string | null;
16571
16701
  vat_code_export: string | null;
16572
16702
  };
16573
16703
  Insert: {
16704
+ administration_code?: string | null;
16574
16705
  auto_invoice_enabled?: boolean;
16706
+ auto_invoice_start_date?: string | null;
16575
16707
  auto_invoice_trigger_statuses?: string[];
16576
16708
  created_at?: string;
16577
16709
  debtor_gl_account?: string;
@@ -16585,15 +16717,19 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
16585
16717
  invoice_enabled_fo?: boolean;
16586
16718
  invoice_enabled_ho?: boolean;
16587
16719
  invoice_enabled_mo?: boolean;
16720
+ needs_review?: boolean;
16588
16721
  payment_gl_account?: string;
16589
16722
  payment_journal_code?: string;
16723
+ settings_confirmed_at?: string | null;
16590
16724
  updated_at?: string;
16591
16725
  user_id: string;
16592
16726
  vat_code_eu_reverse?: string | null;
16593
16727
  vat_code_export?: string | null;
16594
16728
  };
16595
16729
  Update: {
16730
+ administration_code?: string | null;
16596
16731
  auto_invoice_enabled?: boolean;
16732
+ auto_invoice_start_date?: string | null;
16597
16733
  auto_invoice_trigger_statuses?: string[];
16598
16734
  created_at?: string;
16599
16735
  debtor_gl_account?: string;
@@ -16607,8 +16743,10 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
16607
16743
  invoice_enabled_fo?: boolean;
16608
16744
  invoice_enabled_ho?: boolean;
16609
16745
  invoice_enabled_mo?: boolean;
16746
+ needs_review?: boolean;
16610
16747
  payment_gl_account?: string;
16611
16748
  payment_journal_code?: string;
16749
+ settings_confirmed_at?: string | null;
16612
16750
  updated_at?: string;
16613
16751
  user_id?: string;
16614
16752
  vat_code_eu_reverse?: string | null;
@@ -19665,6 +19803,7 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
19665
19803
  gebruiker_id: string | null;
19666
19804
  gebruiker_naam: string;
19667
19805
  gestart_op: string | null;
19806
+ herkomst: string | null;
19668
19807
  id: string;
19669
19808
  idempotentie_sleutel: string | null;
19670
19809
  is_herprint: boolean;
@@ -19785,6 +19924,7 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
19785
19924
  gebruiker_id: string | null;
19786
19925
  gebruiker_naam: string;
19787
19926
  gestart_op: string | null;
19927
+ herkomst: string | null;
19788
19928
  id: string;
19789
19929
  idempotentie_sleutel: string | null;
19790
19930
  is_herprint: boolean;
@@ -20494,6 +20634,29 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
20494
20634
  roles: string[];
20495
20635
  }[];
20496
20636
  };
20637
+ list_monteur_absences: {
20638
+ Args: {
20639
+ _from: string;
20640
+ _to: string;
20641
+ };
20642
+ Returns: {
20643
+ absence_date: string;
20644
+ end_time: string;
20645
+ full_day: boolean;
20646
+ kind: string;
20647
+ monteur_id: string;
20648
+ start_time: string;
20649
+ }[];
20650
+ };
20651
+ list_monteurs: {
20652
+ Args: never;
20653
+ Returns: {
20654
+ avatar_url: string;
20655
+ display_name: string;
20656
+ email: string;
20657
+ id: string;
20658
+ }[];
20659
+ };
20497
20660
  list_my_planning_items: {
20498
20661
  Args: {
20499
20662
  _from: string;
@@ -21447,6 +21610,13 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
21447
21610
  isSetofReturn: false;
21448
21611
  };
21449
21612
  };
21613
+ pick_cleanup_maintenance: {
21614
+ Args: {
21615
+ _heartbeat_hours?: number;
21616
+ _log_days?: number;
21617
+ };
21618
+ Returns: import("../integrations/supabase/types").Json;
21619
+ };
21450
21620
  pick_complete_print: {
21451
21621
  Args: {
21452
21622
  _printer_id: string;
@@ -21498,6 +21668,14 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
21498
21668
  Args: never;
21499
21669
  Returns: string;
21500
21670
  };
21671
+ pick_day_counts: {
21672
+ Args: {
21673
+ _pick_day?: string;
21674
+ _screen_id?: string;
21675
+ _station_id?: string;
21676
+ };
21677
+ Returns: import("../integrations/supabase/types").Json;
21678
+ };
21501
21679
  pick_document_layout_data: {
21502
21680
  Args: {
21503
21681
  _layout_id: string;
@@ -21535,6 +21713,14 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
21535
21713
  };
21536
21714
  Returns: undefined;
21537
21715
  };
21716
+ pick_reprint_document: {
21717
+ Args: {
21718
+ _queue_item_id: string;
21719
+ _session_id: string;
21720
+ _throttle_seconds?: number;
21721
+ };
21722
+ Returns: string;
21723
+ };
21538
21724
  pick_reset_print: {
21539
21725
  Args: {
21540
21726
  _queue_item_id: string;
@@ -21600,6 +21786,12 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
21600
21786
  };
21601
21787
  Returns: string;
21602
21788
  };
21789
+ pick_sync_queue_throttled: {
21790
+ Args: {
21791
+ _min_seconds?: number;
21792
+ };
21793
+ Returns: import("../integrations/supabase/types").Json;
21794
+ };
21603
21795
  pickstation_get_orders_raw: {
21604
21796
  Args: never;
21605
21797
  Returns: import("../integrations/supabase/types").Json;
@@ -21745,6 +21937,12 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
21745
21937
  };
21746
21938
  Returns: boolean;
21747
21939
  };
21940
+ release_stale_order_invoice_links: {
21941
+ Args: {
21942
+ _minutes?: number;
21943
+ };
21944
+ Returns: number;
21945
+ };
21748
21946
  reorder_customer_price_groups: {
21749
21947
  Args: {
21750
21948
  _ids: string[];
@@ -22263,6 +22461,20 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
22263
22461
  };
22264
22462
  Returns: undefined;
22265
22463
  };
22464
+ twinfield_deactivate_connection: {
22465
+ Args: {
22466
+ p_connection_id: string;
22467
+ p_user_id: string;
22468
+ };
22469
+ Returns: import("../integrations/supabase/types").Json;
22470
+ };
22471
+ twinfield_handle_administration_change: {
22472
+ Args: {
22473
+ _administration_code: string;
22474
+ _user_id: string;
22475
+ };
22476
+ Returns: undefined;
22477
+ };
22266
22478
  twinfield_prune_push_queue: {
22267
22479
  Args: never;
22268
22480
  Returns: number;
@@ -22282,10 +22494,11 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
22282
22494
  p_company_name?: string;
22283
22495
  p_environment: string;
22284
22496
  p_office_code?: string;
22497
+ p_reset_sync?: boolean;
22285
22498
  p_status?: string;
22286
22499
  p_user_id: string;
22287
22500
  };
22288
- Returns: string;
22501
+ Returns: import("../integrations/supabase/types").Json;
22289
22502
  };
22290
22503
  upsert_auto_fulfillment_log: {
22291
22504
  Args: {
@@ -25118,6 +25331,42 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
25118
25331
  };
25119
25332
  Relationships: [];
25120
25333
  };
25334
+ document_bronregels: {
25335
+ Row: {
25336
+ bron: string;
25337
+ created_at: string;
25338
+ documenttype: string;
25339
+ herkomst: string;
25340
+ id: string;
25341
+ layout_id: string | null;
25342
+ updated_at: string;
25343
+ };
25344
+ Insert: {
25345
+ bron?: string;
25346
+ created_at?: string;
25347
+ documenttype: string;
25348
+ herkomst: string;
25349
+ id?: string;
25350
+ layout_id?: string | null;
25351
+ updated_at?: string;
25352
+ };
25353
+ Update: {
25354
+ bron?: string;
25355
+ created_at?: string;
25356
+ documenttype?: string;
25357
+ herkomst?: string;
25358
+ id?: string;
25359
+ layout_id?: string | null;
25360
+ updated_at?: string;
25361
+ };
25362
+ Relationships: [{
25363
+ foreignKeyName: "document_bronregels_layout_id_fkey";
25364
+ columns: ["layout_id"];
25365
+ isOneToOne: false;
25366
+ referencedRelation: "document_layouts";
25367
+ referencedColumns: ["id"];
25368
+ }];
25369
+ };
25121
25370
  document_formaat_printers: {
25122
25371
  Row: {
25123
25372
  created_at: string;
@@ -25395,6 +25644,7 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
25395
25644
  Row: {
25396
25645
  actief: boolean;
25397
25646
  breedte_mm: number;
25647
+ bron: string;
25398
25648
  config: import("../integrations/supabase/types").Json;
25399
25649
  created_at: string;
25400
25650
  created_by: string | null;
@@ -25412,12 +25662,14 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
25412
25662
  orientatie: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_orientation"];
25413
25663
  page_settings: import("../integrations/supabase/types").Json;
25414
25664
  papierformaat: string;
25665
+ systeem: boolean;
25415
25666
  thumbnail_url: string | null;
25416
25667
  updated_at: string;
25417
25668
  };
25418
25669
  Insert: {
25419
25670
  actief?: boolean;
25420
25671
  breedte_mm?: number;
25672
+ bron?: string;
25421
25673
  config?: import("../integrations/supabase/types").Json;
25422
25674
  created_at?: string;
25423
25675
  created_by?: string | null;
@@ -25435,12 +25687,14 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
25435
25687
  orientatie?: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_orientation"];
25436
25688
  page_settings?: import("../integrations/supabase/types").Json;
25437
25689
  papierformaat?: string;
25690
+ systeem?: boolean;
25438
25691
  thumbnail_url?: string | null;
25439
25692
  updated_at?: string;
25440
25693
  };
25441
25694
  Update: {
25442
25695
  actief?: boolean;
25443
25696
  breedte_mm?: number;
25697
+ bron?: string;
25444
25698
  config?: import("../integrations/supabase/types").Json;
25445
25699
  created_at?: string;
25446
25700
  created_by?: string | null;
@@ -25458,11 +25712,48 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
25458
25712
  orientatie?: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_orientation"];
25459
25713
  page_settings?: import("../integrations/supabase/types").Json;
25460
25714
  papierformaat?: string;
25715
+ systeem?: boolean;
25461
25716
  thumbnail_url?: string | null;
25462
25717
  updated_at?: string;
25463
25718
  };
25464
25719
  Relationships: [];
25465
25720
  };
25721
+ document_werkplek_printers: {
25722
+ Row: {
25723
+ created_at: string;
25724
+ documenttype: string;
25725
+ id: string;
25726
+ papierformaat: string | null;
25727
+ printer_id: string | null;
25728
+ updated_at: string;
25729
+ werkplek: string;
25730
+ };
25731
+ Insert: {
25732
+ created_at?: string;
25733
+ documenttype: string;
25734
+ id?: string;
25735
+ papierformaat?: string | null;
25736
+ printer_id?: string | null;
25737
+ updated_at?: string;
25738
+ werkplek: string;
25739
+ };
25740
+ Update: {
25741
+ created_at?: string;
25742
+ documenttype?: string;
25743
+ id?: string;
25744
+ papierformaat?: string | null;
25745
+ printer_id?: string | null;
25746
+ updated_at?: string;
25747
+ werkplek?: string;
25748
+ };
25749
+ Relationships: [{
25750
+ foreignKeyName: "document_werkplek_printers_printer_id_fkey";
25751
+ columns: ["printer_id"];
25752
+ isOneToOne: false;
25753
+ referencedRelation: "printers";
25754
+ referencedColumns: ["id"];
25755
+ }];
25756
+ };
25466
25757
  email_auth_connections: {
25467
25758
  Row: {
25468
25759
  access_token_encrypted: string | null;
@@ -29764,6 +30055,7 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
29764
30055
  };
29765
30056
  invoice_post_idempotency: {
29766
30057
  Row: {
30058
+ administration_code: string;
29767
30059
  client_request_id: string;
29768
30060
  completed_at: string | null;
29769
30061
  created_at: string;
@@ -29773,6 +30065,7 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
29773
30065
  user_id: string;
29774
30066
  };
29775
30067
  Insert: {
30068
+ administration_code?: string;
29776
30069
  client_request_id: string;
29777
30070
  completed_at?: string | null;
29778
30071
  created_at?: string;
@@ -29782,6 +30075,7 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
29782
30075
  user_id: string;
29783
30076
  };
29784
30077
  Update: {
30078
+ administration_code?: string;
29785
30079
  client_request_id?: string;
29786
30080
  completed_at?: string | null;
29787
30081
  created_at?: string;
@@ -32996,6 +33290,7 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
32996
33290
  enforce: boolean;
32997
33291
  is_active: boolean;
32998
33292
  last_seen_at: string;
33293
+ missing_count: number;
32999
33294
  module_id: string;
33000
33295
  name: string;
33001
33296
  shell_id: string | null;
@@ -33006,6 +33301,7 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
33006
33301
  enforce?: boolean;
33007
33302
  is_active?: boolean;
33008
33303
  last_seen_at?: string;
33304
+ missing_count?: number;
33009
33305
  module_id: string;
33010
33306
  name: string;
33011
33307
  shell_id?: string | null;
@@ -33016,6 +33312,7 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
33016
33312
  enforce?: boolean;
33017
33313
  is_active?: boolean;
33018
33314
  last_seen_at?: string;
33315
+ missing_count?: number;
33019
33316
  module_id?: string;
33020
33317
  name?: string;
33021
33318
  shell_id?: string | null;
@@ -34015,6 +34312,7 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
34015
34312
  };
34016
34313
  order_invoice_links: {
34017
34314
  Row: {
34315
+ administration_code: string | null;
34018
34316
  attempts: number;
34019
34317
  created_at: string;
34020
34318
  error_message: string | null;
@@ -34027,6 +34325,7 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
34027
34325
  updated_at: string;
34028
34326
  };
34029
34327
  Insert: {
34328
+ administration_code?: string | null;
34030
34329
  attempts?: number;
34031
34330
  created_at?: string;
34032
34331
  error_message?: string | null;
@@ -34039,6 +34338,7 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
34039
34338
  updated_at?: string;
34040
34339
  };
34041
34340
  Update: {
34341
+ administration_code?: string | null;
34042
34342
  attempts?: number;
34043
34343
  created_at?: string;
34044
34344
  error_message?: string | null;
@@ -35204,6 +35504,27 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
35204
35504
  referencedColumns: ["id"];
35205
35505
  }];
35206
35506
  };
35507
+ pick_sync_state: {
35508
+ Row: {
35509
+ id: boolean;
35510
+ last_cleanup_at: string | null;
35511
+ last_sync_at: string | null;
35512
+ updated_at: string;
35513
+ };
35514
+ Insert: {
35515
+ id?: boolean;
35516
+ last_cleanup_at?: string | null;
35517
+ last_sync_at?: string | null;
35518
+ updated_at?: string;
35519
+ };
35520
+ Update: {
35521
+ id?: boolean;
35522
+ last_cleanup_at?: string | null;
35523
+ last_sync_at?: string | null;
35524
+ updated_at?: string;
35525
+ };
35526
+ Relationships: [];
35527
+ };
35207
35528
  pick_task_document_types: {
35208
35529
  Row: {
35209
35530
  created_at: string;
@@ -35486,6 +35807,7 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
35486
35807
  gebruiker_id: string | null;
35487
35808
  gebruiker_naam: string;
35488
35809
  gestart_op: string | null;
35810
+ herkomst: string | null;
35489
35811
  id: string;
35490
35812
  idempotentie_sleutel: string | null;
35491
35813
  is_herprint: boolean;
@@ -35515,6 +35837,7 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
35515
35837
  gebruiker_id?: string | null;
35516
35838
  gebruiker_naam?: string;
35517
35839
  gestart_op?: string | null;
35840
+ herkomst?: string | null;
35518
35841
  id?: string;
35519
35842
  idempotentie_sleutel?: string | null;
35520
35843
  is_herprint?: boolean;
@@ -35544,6 +35867,7 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
35544
35867
  gebruiker_id?: string | null;
35545
35868
  gebruiker_naam?: string;
35546
35869
  gestart_op?: string | null;
35870
+ herkomst?: string | null;
35547
35871
  id?: string;
35548
35872
  idempotentie_sleutel?: string | null;
35549
35873
  is_herprint?: boolean;
@@ -38548,12 +38872,16 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
38548
38872
  company_name: string | null;
38549
38873
  connected_at: string | null;
38550
38874
  created_at: string;
38875
+ disconnected_at: string | null;
38551
38876
  environment: string;
38552
38877
  id: string;
38878
+ initial_sync_completed_at: string | null;
38879
+ initial_sync_started_at: string | null;
38553
38880
  is_active: boolean;
38554
38881
  label: string | null;
38555
38882
  office_code: string | null;
38556
38883
  redirect_uri: string | null;
38884
+ superseded_at: string | null;
38557
38885
  updated_at: string;
38558
38886
  user_id: string;
38559
38887
  };
@@ -38564,12 +38892,16 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
38564
38892
  company_name?: string | null;
38565
38893
  connected_at?: string | null;
38566
38894
  created_at?: string;
38895
+ disconnected_at?: string | null;
38567
38896
  environment: string;
38568
38897
  id?: string;
38898
+ initial_sync_completed_at?: string | null;
38899
+ initial_sync_started_at?: string | null;
38569
38900
  is_active?: boolean;
38570
38901
  label?: string | null;
38571
38902
  office_code?: string | null;
38572
38903
  redirect_uri?: string | null;
38904
+ superseded_at?: string | null;
38573
38905
  updated_at?: string;
38574
38906
  user_id: string;
38575
38907
  };
@@ -38580,12 +38912,16 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
38580
38912
  company_name?: string | null;
38581
38913
  connected_at?: string | null;
38582
38914
  created_at?: string;
38915
+ disconnected_at?: string | null;
38583
38916
  environment?: string;
38584
38917
  id?: string;
38918
+ initial_sync_completed_at?: string | null;
38919
+ initial_sync_started_at?: string | null;
38585
38920
  is_active?: boolean;
38586
38921
  label?: string | null;
38587
38922
  office_code?: string | null;
38588
38923
  redirect_uri?: string | null;
38924
+ superseded_at?: string | null;
38589
38925
  updated_at?: string;
38590
38926
  user_id?: string;
38591
38927
  };
@@ -38645,6 +38981,7 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
38645
38981
  twinfield_customers: {
38646
38982
  Row: {
38647
38983
  address: string | null;
38984
+ administration_code: string;
38648
38985
  city: string | null;
38649
38986
  country: string | null;
38650
38987
  created_at: string;
@@ -38664,6 +39001,7 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
38664
39001
  };
38665
39002
  Insert: {
38666
39003
  address?: string | null;
39004
+ administration_code?: string;
38667
39005
  city?: string | null;
38668
39006
  country?: string | null;
38669
39007
  created_at?: string;
@@ -38683,6 +39021,7 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
38683
39021
  };
38684
39022
  Update: {
38685
39023
  address?: string | null;
39024
+ administration_code?: string;
38686
39025
  city?: string | null;
38687
39026
  country?: string | null;
38688
39027
  created_at?: string;
@@ -38896,7 +39235,9 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
38896
39235
  };
38897
39236
  twinfield_invoice_settings: {
38898
39237
  Row: {
39238
+ administration_code: string | null;
38899
39239
  auto_invoice_enabled: boolean;
39240
+ auto_invoice_start_date: string | null;
38900
39241
  auto_invoice_trigger_statuses: string[];
38901
39242
  created_at: string;
38902
39243
  debtor_gl_account: string;
@@ -38910,15 +39251,19 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
38910
39251
  invoice_enabled_fo: boolean;
38911
39252
  invoice_enabled_ho: boolean;
38912
39253
  invoice_enabled_mo: boolean;
39254
+ needs_review: boolean;
38913
39255
  payment_gl_account: string;
38914
39256
  payment_journal_code: string;
39257
+ settings_confirmed_at: string | null;
38915
39258
  updated_at: string;
38916
39259
  user_id: string;
38917
39260
  vat_code_eu_reverse: string | null;
38918
39261
  vat_code_export: string | null;
38919
39262
  };
38920
39263
  Insert: {
39264
+ administration_code?: string | null;
38921
39265
  auto_invoice_enabled?: boolean;
39266
+ auto_invoice_start_date?: string | null;
38922
39267
  auto_invoice_trigger_statuses?: string[];
38923
39268
  created_at?: string;
38924
39269
  debtor_gl_account?: string;
@@ -38932,15 +39277,19 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
38932
39277
  invoice_enabled_fo?: boolean;
38933
39278
  invoice_enabled_ho?: boolean;
38934
39279
  invoice_enabled_mo?: boolean;
39280
+ needs_review?: boolean;
38935
39281
  payment_gl_account?: string;
38936
39282
  payment_journal_code?: string;
39283
+ settings_confirmed_at?: string | null;
38937
39284
  updated_at?: string;
38938
39285
  user_id: string;
38939
39286
  vat_code_eu_reverse?: string | null;
38940
39287
  vat_code_export?: string | null;
38941
39288
  };
38942
39289
  Update: {
39290
+ administration_code?: string | null;
38943
39291
  auto_invoice_enabled?: boolean;
39292
+ auto_invoice_start_date?: string | null;
38944
39293
  auto_invoice_trigger_statuses?: string[];
38945
39294
  created_at?: string;
38946
39295
  debtor_gl_account?: string;
@@ -38954,8 +39303,10 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
38954
39303
  invoice_enabled_fo?: boolean;
38955
39304
  invoice_enabled_ho?: boolean;
38956
39305
  invoice_enabled_mo?: boolean;
39306
+ needs_review?: boolean;
38957
39307
  payment_gl_account?: string;
38958
39308
  payment_journal_code?: string;
39309
+ settings_confirmed_at?: string | null;
38959
39310
  updated_at?: string;
38960
39311
  user_id?: string;
38961
39312
  vat_code_eu_reverse?: string | null;
@@ -42012,6 +42363,7 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
42012
42363
  gebruiker_id: string | null;
42013
42364
  gebruiker_naam: string;
42014
42365
  gestart_op: string | null;
42366
+ herkomst: string | null;
42015
42367
  id: string;
42016
42368
  idempotentie_sleutel: string | null;
42017
42369
  is_herprint: boolean;
@@ -42132,6 +42484,7 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
42132
42484
  gebruiker_id: string | null;
42133
42485
  gebruiker_naam: string;
42134
42486
  gestart_op: string | null;
42487
+ herkomst: string | null;
42135
42488
  id: string;
42136
42489
  idempotentie_sleutel: string | null;
42137
42490
  is_herprint: boolean;
@@ -42841,6 +43194,29 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
42841
43194
  roles: string[];
42842
43195
  }[];
42843
43196
  };
43197
+ list_monteur_absences: {
43198
+ Args: {
43199
+ _from: string;
43200
+ _to: string;
43201
+ };
43202
+ Returns: {
43203
+ absence_date: string;
43204
+ end_time: string;
43205
+ full_day: boolean;
43206
+ kind: string;
43207
+ monteur_id: string;
43208
+ start_time: string;
43209
+ }[];
43210
+ };
43211
+ list_monteurs: {
43212
+ Args: never;
43213
+ Returns: {
43214
+ avatar_url: string;
43215
+ display_name: string;
43216
+ email: string;
43217
+ id: string;
43218
+ }[];
43219
+ };
42844
43220
  list_my_planning_items: {
42845
43221
  Args: {
42846
43222
  _from: string;
@@ -43794,6 +44170,13 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
43794
44170
  isSetofReturn: false;
43795
44171
  };
43796
44172
  };
44173
+ pick_cleanup_maintenance: {
44174
+ Args: {
44175
+ _heartbeat_hours?: number;
44176
+ _log_days?: number;
44177
+ };
44178
+ Returns: import("../integrations/supabase/types").Json;
44179
+ };
43797
44180
  pick_complete_print: {
43798
44181
  Args: {
43799
44182
  _printer_id: string;
@@ -43845,6 +44228,14 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
43845
44228
  Args: never;
43846
44229
  Returns: string;
43847
44230
  };
44231
+ pick_day_counts: {
44232
+ Args: {
44233
+ _pick_day?: string;
44234
+ _screen_id?: string;
44235
+ _station_id?: string;
44236
+ };
44237
+ Returns: import("../integrations/supabase/types").Json;
44238
+ };
43848
44239
  pick_document_layout_data: {
43849
44240
  Args: {
43850
44241
  _layout_id: string;
@@ -43882,6 +44273,14 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
43882
44273
  };
43883
44274
  Returns: undefined;
43884
44275
  };
44276
+ pick_reprint_document: {
44277
+ Args: {
44278
+ _queue_item_id: string;
44279
+ _session_id: string;
44280
+ _throttle_seconds?: number;
44281
+ };
44282
+ Returns: string;
44283
+ };
43885
44284
  pick_reset_print: {
43886
44285
  Args: {
43887
44286
  _queue_item_id: string;
@@ -43947,6 +44346,12 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
43947
44346
  };
43948
44347
  Returns: string;
43949
44348
  };
44349
+ pick_sync_queue_throttled: {
44350
+ Args: {
44351
+ _min_seconds?: number;
44352
+ };
44353
+ Returns: import("../integrations/supabase/types").Json;
44354
+ };
43950
44355
  pickstation_get_orders_raw: {
43951
44356
  Args: never;
43952
44357
  Returns: import("../integrations/supabase/types").Json;
@@ -44092,6 +44497,12 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
44092
44497
  };
44093
44498
  Returns: boolean;
44094
44499
  };
44500
+ release_stale_order_invoice_links: {
44501
+ Args: {
44502
+ _minutes?: number;
44503
+ };
44504
+ Returns: number;
44505
+ };
44095
44506
  reorder_customer_price_groups: {
44096
44507
  Args: {
44097
44508
  _ids: string[];
@@ -44610,6 +45021,20 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
44610
45021
  };
44611
45022
  Returns: undefined;
44612
45023
  };
45024
+ twinfield_deactivate_connection: {
45025
+ Args: {
45026
+ p_connection_id: string;
45027
+ p_user_id: string;
45028
+ };
45029
+ Returns: import("../integrations/supabase/types").Json;
45030
+ };
45031
+ twinfield_handle_administration_change: {
45032
+ Args: {
45033
+ _administration_code: string;
45034
+ _user_id: string;
45035
+ };
45036
+ Returns: undefined;
45037
+ };
44613
45038
  twinfield_prune_push_queue: {
44614
45039
  Args: never;
44615
45040
  Returns: number;
@@ -44629,10 +45054,11 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
44629
45054
  p_company_name?: string;
44630
45055
  p_environment: string;
44631
45056
  p_office_code?: string;
45057
+ p_reset_sync?: boolean;
44632
45058
  p_status?: string;
44633
45059
  p_user_id: string;
44634
45060
  };
44635
- Returns: string;
45061
+ Returns: import("../integrations/supabase/types").Json;
44636
45062
  };
44637
45063
  upsert_auto_fulfillment_log: {
44638
45064
  Args: {
@@ -47459,6 +47885,42 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
47459
47885
  };
47460
47886
  Relationships: [];
47461
47887
  };
47888
+ document_bronregels: {
47889
+ Row: {
47890
+ bron: string;
47891
+ created_at: string;
47892
+ documenttype: string;
47893
+ herkomst: string;
47894
+ id: string;
47895
+ layout_id: string | null;
47896
+ updated_at: string;
47897
+ };
47898
+ Insert: {
47899
+ bron?: string;
47900
+ created_at?: string;
47901
+ documenttype: string;
47902
+ herkomst: string;
47903
+ id?: string;
47904
+ layout_id?: string | null;
47905
+ updated_at?: string;
47906
+ };
47907
+ Update: {
47908
+ bron?: string;
47909
+ created_at?: string;
47910
+ documenttype?: string;
47911
+ herkomst?: string;
47912
+ id?: string;
47913
+ layout_id?: string | null;
47914
+ updated_at?: string;
47915
+ };
47916
+ Relationships: [{
47917
+ foreignKeyName: "document_bronregels_layout_id_fkey";
47918
+ columns: ["layout_id"];
47919
+ isOneToOne: false;
47920
+ referencedRelation: "document_layouts";
47921
+ referencedColumns: ["id"];
47922
+ }];
47923
+ };
47462
47924
  document_formaat_printers: {
47463
47925
  Row: {
47464
47926
  created_at: string;
@@ -47736,6 +48198,7 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
47736
48198
  Row: {
47737
48199
  actief: boolean;
47738
48200
  breedte_mm: number;
48201
+ bron: string;
47739
48202
  config: import("../integrations/supabase/types").Json;
47740
48203
  created_at: string;
47741
48204
  created_by: string | null;
@@ -47753,12 +48216,14 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
47753
48216
  orientatie: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_orientation"];
47754
48217
  page_settings: import("../integrations/supabase/types").Json;
47755
48218
  papierformaat: string;
48219
+ systeem: boolean;
47756
48220
  thumbnail_url: string | null;
47757
48221
  updated_at: string;
47758
48222
  };
47759
48223
  Insert: {
47760
48224
  actief?: boolean;
47761
48225
  breedte_mm?: number;
48226
+ bron?: string;
47762
48227
  config?: import("../integrations/supabase/types").Json;
47763
48228
  created_at?: string;
47764
48229
  created_by?: string | null;
@@ -47776,12 +48241,14 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
47776
48241
  orientatie?: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_orientation"];
47777
48242
  page_settings?: import("../integrations/supabase/types").Json;
47778
48243
  papierformaat?: string;
48244
+ systeem?: boolean;
47779
48245
  thumbnail_url?: string | null;
47780
48246
  updated_at?: string;
47781
48247
  };
47782
48248
  Update: {
47783
48249
  actief?: boolean;
47784
48250
  breedte_mm?: number;
48251
+ bron?: string;
47785
48252
  config?: import("../integrations/supabase/types").Json;
47786
48253
  created_at?: string;
47787
48254
  created_by?: string | null;
@@ -47799,11 +48266,48 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
47799
48266
  orientatie?: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_orientation"];
47800
48267
  page_settings?: import("../integrations/supabase/types").Json;
47801
48268
  papierformaat?: string;
48269
+ systeem?: boolean;
47802
48270
  thumbnail_url?: string | null;
47803
48271
  updated_at?: string;
47804
48272
  };
47805
48273
  Relationships: [];
47806
48274
  };
48275
+ document_werkplek_printers: {
48276
+ Row: {
48277
+ created_at: string;
48278
+ documenttype: string;
48279
+ id: string;
48280
+ papierformaat: string | null;
48281
+ printer_id: string | null;
48282
+ updated_at: string;
48283
+ werkplek: string;
48284
+ };
48285
+ Insert: {
48286
+ created_at?: string;
48287
+ documenttype: string;
48288
+ id?: string;
48289
+ papierformaat?: string | null;
48290
+ printer_id?: string | null;
48291
+ updated_at?: string;
48292
+ werkplek: string;
48293
+ };
48294
+ Update: {
48295
+ created_at?: string;
48296
+ documenttype?: string;
48297
+ id?: string;
48298
+ papierformaat?: string | null;
48299
+ printer_id?: string | null;
48300
+ updated_at?: string;
48301
+ werkplek?: string;
48302
+ };
48303
+ Relationships: [{
48304
+ foreignKeyName: "document_werkplek_printers_printer_id_fkey";
48305
+ columns: ["printer_id"];
48306
+ isOneToOne: false;
48307
+ referencedRelation: "printers";
48308
+ referencedColumns: ["id"];
48309
+ }];
48310
+ };
47807
48311
  email_auth_connections: {
47808
48312
  Row: {
47809
48313
  access_token_encrypted: string | null;
@@ -52105,6 +52609,7 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
52105
52609
  };
52106
52610
  invoice_post_idempotency: {
52107
52611
  Row: {
52612
+ administration_code: string;
52108
52613
  client_request_id: string;
52109
52614
  completed_at: string | null;
52110
52615
  created_at: string;
@@ -52114,6 +52619,7 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
52114
52619
  user_id: string;
52115
52620
  };
52116
52621
  Insert: {
52622
+ administration_code?: string;
52117
52623
  client_request_id: string;
52118
52624
  completed_at?: string | null;
52119
52625
  created_at?: string;
@@ -52123,6 +52629,7 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
52123
52629
  user_id: string;
52124
52630
  };
52125
52631
  Update: {
52632
+ administration_code?: string;
52126
52633
  client_request_id?: string;
52127
52634
  completed_at?: string | null;
52128
52635
  created_at?: string;
@@ -55337,6 +55844,7 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
55337
55844
  enforce: boolean;
55338
55845
  is_active: boolean;
55339
55846
  last_seen_at: string;
55847
+ missing_count: number;
55340
55848
  module_id: string;
55341
55849
  name: string;
55342
55850
  shell_id: string | null;
@@ -55347,6 +55855,7 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
55347
55855
  enforce?: boolean;
55348
55856
  is_active?: boolean;
55349
55857
  last_seen_at?: string;
55858
+ missing_count?: number;
55350
55859
  module_id: string;
55351
55860
  name: string;
55352
55861
  shell_id?: string | null;
@@ -55357,6 +55866,7 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
55357
55866
  enforce?: boolean;
55358
55867
  is_active?: boolean;
55359
55868
  last_seen_at?: string;
55869
+ missing_count?: number;
55360
55870
  module_id?: string;
55361
55871
  name?: string;
55362
55872
  shell_id?: string | null;
@@ -56356,6 +56866,7 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
56356
56866
  };
56357
56867
  order_invoice_links: {
56358
56868
  Row: {
56869
+ administration_code: string | null;
56359
56870
  attempts: number;
56360
56871
  created_at: string;
56361
56872
  error_message: string | null;
@@ -56368,6 +56879,7 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
56368
56879
  updated_at: string;
56369
56880
  };
56370
56881
  Insert: {
56882
+ administration_code?: string | null;
56371
56883
  attempts?: number;
56372
56884
  created_at?: string;
56373
56885
  error_message?: string | null;
@@ -56380,6 +56892,7 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
56380
56892
  updated_at?: string;
56381
56893
  };
56382
56894
  Update: {
56895
+ administration_code?: string | null;
56383
56896
  attempts?: number;
56384
56897
  created_at?: string;
56385
56898
  error_message?: string | null;
@@ -57545,6 +58058,27 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
57545
58058
  referencedColumns: ["id"];
57546
58059
  }];
57547
58060
  };
58061
+ pick_sync_state: {
58062
+ Row: {
58063
+ id: boolean;
58064
+ last_cleanup_at: string | null;
58065
+ last_sync_at: string | null;
58066
+ updated_at: string;
58067
+ };
58068
+ Insert: {
58069
+ id?: boolean;
58070
+ last_cleanup_at?: string | null;
58071
+ last_sync_at?: string | null;
58072
+ updated_at?: string;
58073
+ };
58074
+ Update: {
58075
+ id?: boolean;
58076
+ last_cleanup_at?: string | null;
58077
+ last_sync_at?: string | null;
58078
+ updated_at?: string;
58079
+ };
58080
+ Relationships: [];
58081
+ };
57548
58082
  pick_task_document_types: {
57549
58083
  Row: {
57550
58084
  created_at: string;
@@ -57827,6 +58361,7 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
57827
58361
  gebruiker_id: string | null;
57828
58362
  gebruiker_naam: string;
57829
58363
  gestart_op: string | null;
58364
+ herkomst: string | null;
57830
58365
  id: string;
57831
58366
  idempotentie_sleutel: string | null;
57832
58367
  is_herprint: boolean;
@@ -57856,6 +58391,7 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
57856
58391
  gebruiker_id?: string | null;
57857
58392
  gebruiker_naam?: string;
57858
58393
  gestart_op?: string | null;
58394
+ herkomst?: string | null;
57859
58395
  id?: string;
57860
58396
  idempotentie_sleutel?: string | null;
57861
58397
  is_herprint?: boolean;
@@ -57885,6 +58421,7 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
57885
58421
  gebruiker_id?: string | null;
57886
58422
  gebruiker_naam?: string;
57887
58423
  gestart_op?: string | null;
58424
+ herkomst?: string | null;
57888
58425
  id?: string;
57889
58426
  idempotentie_sleutel?: string | null;
57890
58427
  is_herprint?: boolean;
@@ -60889,12 +61426,16 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
60889
61426
  company_name: string | null;
60890
61427
  connected_at: string | null;
60891
61428
  created_at: string;
61429
+ disconnected_at: string | null;
60892
61430
  environment: string;
60893
61431
  id: string;
61432
+ initial_sync_completed_at: string | null;
61433
+ initial_sync_started_at: string | null;
60894
61434
  is_active: boolean;
60895
61435
  label: string | null;
60896
61436
  office_code: string | null;
60897
61437
  redirect_uri: string | null;
61438
+ superseded_at: string | null;
60898
61439
  updated_at: string;
60899
61440
  user_id: string;
60900
61441
  };
@@ -60905,12 +61446,16 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
60905
61446
  company_name?: string | null;
60906
61447
  connected_at?: string | null;
60907
61448
  created_at?: string;
61449
+ disconnected_at?: string | null;
60908
61450
  environment: string;
60909
61451
  id?: string;
61452
+ initial_sync_completed_at?: string | null;
61453
+ initial_sync_started_at?: string | null;
60910
61454
  is_active?: boolean;
60911
61455
  label?: string | null;
60912
61456
  office_code?: string | null;
60913
61457
  redirect_uri?: string | null;
61458
+ superseded_at?: string | null;
60914
61459
  updated_at?: string;
60915
61460
  user_id: string;
60916
61461
  };
@@ -60921,12 +61466,16 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
60921
61466
  company_name?: string | null;
60922
61467
  connected_at?: string | null;
60923
61468
  created_at?: string;
61469
+ disconnected_at?: string | null;
60924
61470
  environment?: string;
60925
61471
  id?: string;
61472
+ initial_sync_completed_at?: string | null;
61473
+ initial_sync_started_at?: string | null;
60926
61474
  is_active?: boolean;
60927
61475
  label?: string | null;
60928
61476
  office_code?: string | null;
60929
61477
  redirect_uri?: string | null;
61478
+ superseded_at?: string | null;
60930
61479
  updated_at?: string;
60931
61480
  user_id?: string;
60932
61481
  };
@@ -60986,6 +61535,7 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
60986
61535
  twinfield_customers: {
60987
61536
  Row: {
60988
61537
  address: string | null;
61538
+ administration_code: string;
60989
61539
  city: string | null;
60990
61540
  country: string | null;
60991
61541
  created_at: string;
@@ -61005,6 +61555,7 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
61005
61555
  };
61006
61556
  Insert: {
61007
61557
  address?: string | null;
61558
+ administration_code?: string;
61008
61559
  city?: string | null;
61009
61560
  country?: string | null;
61010
61561
  created_at?: string;
@@ -61024,6 +61575,7 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
61024
61575
  };
61025
61576
  Update: {
61026
61577
  address?: string | null;
61578
+ administration_code?: string;
61027
61579
  city?: string | null;
61028
61580
  country?: string | null;
61029
61581
  created_at?: string;
@@ -61237,7 +61789,9 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
61237
61789
  };
61238
61790
  twinfield_invoice_settings: {
61239
61791
  Row: {
61792
+ administration_code: string | null;
61240
61793
  auto_invoice_enabled: boolean;
61794
+ auto_invoice_start_date: string | null;
61241
61795
  auto_invoice_trigger_statuses: string[];
61242
61796
  created_at: string;
61243
61797
  debtor_gl_account: string;
@@ -61251,15 +61805,19 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
61251
61805
  invoice_enabled_fo: boolean;
61252
61806
  invoice_enabled_ho: boolean;
61253
61807
  invoice_enabled_mo: boolean;
61808
+ needs_review: boolean;
61254
61809
  payment_gl_account: string;
61255
61810
  payment_journal_code: string;
61811
+ settings_confirmed_at: string | null;
61256
61812
  updated_at: string;
61257
61813
  user_id: string;
61258
61814
  vat_code_eu_reverse: string | null;
61259
61815
  vat_code_export: string | null;
61260
61816
  };
61261
61817
  Insert: {
61818
+ administration_code?: string | null;
61262
61819
  auto_invoice_enabled?: boolean;
61820
+ auto_invoice_start_date?: string | null;
61263
61821
  auto_invoice_trigger_statuses?: string[];
61264
61822
  created_at?: string;
61265
61823
  debtor_gl_account?: string;
@@ -61273,15 +61831,19 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
61273
61831
  invoice_enabled_fo?: boolean;
61274
61832
  invoice_enabled_ho?: boolean;
61275
61833
  invoice_enabled_mo?: boolean;
61834
+ needs_review?: boolean;
61276
61835
  payment_gl_account?: string;
61277
61836
  payment_journal_code?: string;
61837
+ settings_confirmed_at?: string | null;
61278
61838
  updated_at?: string;
61279
61839
  user_id: string;
61280
61840
  vat_code_eu_reverse?: string | null;
61281
61841
  vat_code_export?: string | null;
61282
61842
  };
61283
61843
  Update: {
61844
+ administration_code?: string | null;
61284
61845
  auto_invoice_enabled?: boolean;
61846
+ auto_invoice_start_date?: string | null;
61285
61847
  auto_invoice_trigger_statuses?: string[];
61286
61848
  created_at?: string;
61287
61849
  debtor_gl_account?: string;
@@ -61295,8 +61857,10 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
61295
61857
  invoice_enabled_fo?: boolean;
61296
61858
  invoice_enabled_ho?: boolean;
61297
61859
  invoice_enabled_mo?: boolean;
61860
+ needs_review?: boolean;
61298
61861
  payment_gl_account?: string;
61299
61862
  payment_journal_code?: string;
61863
+ settings_confirmed_at?: string | null;
61300
61864
  updated_at?: string;
61301
61865
  user_id?: string;
61302
61866
  vat_code_eu_reverse?: string | null;
@@ -64353,6 +64917,7 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
64353
64917
  gebruiker_id: string | null;
64354
64918
  gebruiker_naam: string;
64355
64919
  gestart_op: string | null;
64920
+ herkomst: string | null;
64356
64921
  id: string;
64357
64922
  idempotentie_sleutel: string | null;
64358
64923
  is_herprint: boolean;
@@ -64473,6 +65038,7 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
64473
65038
  gebruiker_id: string | null;
64474
65039
  gebruiker_naam: string;
64475
65040
  gestart_op: string | null;
65041
+ herkomst: string | null;
64476
65042
  id: string;
64477
65043
  idempotentie_sleutel: string | null;
64478
65044
  is_herprint: boolean;
@@ -65182,6 +65748,29 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
65182
65748
  roles: string[];
65183
65749
  }[];
65184
65750
  };
65751
+ list_monteur_absences: {
65752
+ Args: {
65753
+ _from: string;
65754
+ _to: string;
65755
+ };
65756
+ Returns: {
65757
+ absence_date: string;
65758
+ end_time: string;
65759
+ full_day: boolean;
65760
+ kind: string;
65761
+ monteur_id: string;
65762
+ start_time: string;
65763
+ }[];
65764
+ };
65765
+ list_monteurs: {
65766
+ Args: never;
65767
+ Returns: {
65768
+ avatar_url: string;
65769
+ display_name: string;
65770
+ email: string;
65771
+ id: string;
65772
+ }[];
65773
+ };
65185
65774
  list_my_planning_items: {
65186
65775
  Args: {
65187
65776
  _from: string;
@@ -66135,6 +66724,13 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
66135
66724
  isSetofReturn: false;
66136
66725
  };
66137
66726
  };
66727
+ pick_cleanup_maintenance: {
66728
+ Args: {
66729
+ _heartbeat_hours?: number;
66730
+ _log_days?: number;
66731
+ };
66732
+ Returns: import("../integrations/supabase/types").Json;
66733
+ };
66138
66734
  pick_complete_print: {
66139
66735
  Args: {
66140
66736
  _printer_id: string;
@@ -66186,6 +66782,14 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
66186
66782
  Args: never;
66187
66783
  Returns: string;
66188
66784
  };
66785
+ pick_day_counts: {
66786
+ Args: {
66787
+ _pick_day?: string;
66788
+ _screen_id?: string;
66789
+ _station_id?: string;
66790
+ };
66791
+ Returns: import("../integrations/supabase/types").Json;
66792
+ };
66189
66793
  pick_document_layout_data: {
66190
66794
  Args: {
66191
66795
  _layout_id: string;
@@ -66223,6 +66827,14 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
66223
66827
  };
66224
66828
  Returns: undefined;
66225
66829
  };
66830
+ pick_reprint_document: {
66831
+ Args: {
66832
+ _queue_item_id: string;
66833
+ _session_id: string;
66834
+ _throttle_seconds?: number;
66835
+ };
66836
+ Returns: string;
66837
+ };
66226
66838
  pick_reset_print: {
66227
66839
  Args: {
66228
66840
  _queue_item_id: string;
@@ -66288,6 +66900,12 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
66288
66900
  };
66289
66901
  Returns: string;
66290
66902
  };
66903
+ pick_sync_queue_throttled: {
66904
+ Args: {
66905
+ _min_seconds?: number;
66906
+ };
66907
+ Returns: import("../integrations/supabase/types").Json;
66908
+ };
66291
66909
  pickstation_get_orders_raw: {
66292
66910
  Args: never;
66293
66911
  Returns: import("../integrations/supabase/types").Json;
@@ -66433,6 +67051,12 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
66433
67051
  };
66434
67052
  Returns: boolean;
66435
67053
  };
67054
+ release_stale_order_invoice_links: {
67055
+ Args: {
67056
+ _minutes?: number;
67057
+ };
67058
+ Returns: number;
67059
+ };
66436
67060
  reorder_customer_price_groups: {
66437
67061
  Args: {
66438
67062
  _ids: string[];
@@ -66951,6 +67575,20 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
66951
67575
  };
66952
67576
  Returns: undefined;
66953
67577
  };
67578
+ twinfield_deactivate_connection: {
67579
+ Args: {
67580
+ p_connection_id: string;
67581
+ p_user_id: string;
67582
+ };
67583
+ Returns: import("../integrations/supabase/types").Json;
67584
+ };
67585
+ twinfield_handle_administration_change: {
67586
+ Args: {
67587
+ _administration_code: string;
67588
+ _user_id: string;
67589
+ };
67590
+ Returns: undefined;
67591
+ };
66954
67592
  twinfield_prune_push_queue: {
66955
67593
  Args: never;
66956
67594
  Returns: number;
@@ -66970,10 +67608,11 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
66970
67608
  p_company_name?: string;
66971
67609
  p_environment: string;
66972
67610
  p_office_code?: string;
67611
+ p_reset_sync?: boolean;
66973
67612
  p_status?: string;
66974
67613
  p_user_id: string;
66975
67614
  };
66976
- Returns: string;
67615
+ Returns: import("../integrations/supabase/types").Json;
66977
67616
  };
66978
67617
  upsert_auto_fulfillment_log: {
66979
67618
  Args: {
@@ -69807,6 +70446,42 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
69807
70446
  };
69808
70447
  Relationships: [];
69809
70448
  };
70449
+ document_bronregels: {
70450
+ Row: {
70451
+ bron: string;
70452
+ created_at: string;
70453
+ documenttype: string;
70454
+ herkomst: string;
70455
+ id: string;
70456
+ layout_id: string | null;
70457
+ updated_at: string;
70458
+ };
70459
+ Insert: {
70460
+ bron?: string;
70461
+ created_at?: string;
70462
+ documenttype: string;
70463
+ herkomst: string;
70464
+ id?: string;
70465
+ layout_id?: string | null;
70466
+ updated_at?: string;
70467
+ };
70468
+ Update: {
70469
+ bron?: string;
70470
+ created_at?: string;
70471
+ documenttype?: string;
70472
+ herkomst?: string;
70473
+ id?: string;
70474
+ layout_id?: string | null;
70475
+ updated_at?: string;
70476
+ };
70477
+ Relationships: [{
70478
+ foreignKeyName: "document_bronregels_layout_id_fkey";
70479
+ columns: ["layout_id"];
70480
+ isOneToOne: false;
70481
+ referencedRelation: "document_layouts";
70482
+ referencedColumns: ["id"];
70483
+ }];
70484
+ };
69810
70485
  document_formaat_printers: {
69811
70486
  Row: {
69812
70487
  created_at: string;
@@ -70084,6 +70759,7 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
70084
70759
  Row: {
70085
70760
  actief: boolean;
70086
70761
  breedte_mm: number;
70762
+ bron: string;
70087
70763
  config: import("../integrations/supabase/types").Json;
70088
70764
  created_at: string;
70089
70765
  created_by: string | null;
@@ -70101,12 +70777,14 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
70101
70777
  orientatie: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_orientation"];
70102
70778
  page_settings: import("../integrations/supabase/types").Json;
70103
70779
  papierformaat: string;
70780
+ systeem: boolean;
70104
70781
  thumbnail_url: string | null;
70105
70782
  updated_at: string;
70106
70783
  };
70107
70784
  Insert: {
70108
70785
  actief?: boolean;
70109
70786
  breedte_mm?: number;
70787
+ bron?: string;
70110
70788
  config?: import("../integrations/supabase/types").Json;
70111
70789
  created_at?: string;
70112
70790
  created_by?: string | null;
@@ -70124,12 +70802,14 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
70124
70802
  orientatie?: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_orientation"];
70125
70803
  page_settings?: import("../integrations/supabase/types").Json;
70126
70804
  papierformaat?: string;
70805
+ systeem?: boolean;
70127
70806
  thumbnail_url?: string | null;
70128
70807
  updated_at?: string;
70129
70808
  };
70130
70809
  Update: {
70131
70810
  actief?: boolean;
70132
70811
  breedte_mm?: number;
70812
+ bron?: string;
70133
70813
  config?: import("../integrations/supabase/types").Json;
70134
70814
  created_at?: string;
70135
70815
  created_by?: string | null;
@@ -70147,11 +70827,48 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
70147
70827
  orientatie?: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_orientation"];
70148
70828
  page_settings?: import("../integrations/supabase/types").Json;
70149
70829
  papierformaat?: string;
70830
+ systeem?: boolean;
70150
70831
  thumbnail_url?: string | null;
70151
70832
  updated_at?: string;
70152
70833
  };
70153
70834
  Relationships: [];
70154
70835
  };
70836
+ document_werkplek_printers: {
70837
+ Row: {
70838
+ created_at: string;
70839
+ documenttype: string;
70840
+ id: string;
70841
+ papierformaat: string | null;
70842
+ printer_id: string | null;
70843
+ updated_at: string;
70844
+ werkplek: string;
70845
+ };
70846
+ Insert: {
70847
+ created_at?: string;
70848
+ documenttype: string;
70849
+ id?: string;
70850
+ papierformaat?: string | null;
70851
+ printer_id?: string | null;
70852
+ updated_at?: string;
70853
+ werkplek: string;
70854
+ };
70855
+ Update: {
70856
+ created_at?: string;
70857
+ documenttype?: string;
70858
+ id?: string;
70859
+ papierformaat?: string | null;
70860
+ printer_id?: string | null;
70861
+ updated_at?: string;
70862
+ werkplek?: string;
70863
+ };
70864
+ Relationships: [{
70865
+ foreignKeyName: "document_werkplek_printers_printer_id_fkey";
70866
+ columns: ["printer_id"];
70867
+ isOneToOne: false;
70868
+ referencedRelation: "printers";
70869
+ referencedColumns: ["id"];
70870
+ }];
70871
+ };
70155
70872
  email_auth_connections: {
70156
70873
  Row: {
70157
70874
  access_token_encrypted: string | null;
@@ -74453,6 +75170,7 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
74453
75170
  };
74454
75171
  invoice_post_idempotency: {
74455
75172
  Row: {
75173
+ administration_code: string;
74456
75174
  client_request_id: string;
74457
75175
  completed_at: string | null;
74458
75176
  created_at: string;
@@ -74462,6 +75180,7 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
74462
75180
  user_id: string;
74463
75181
  };
74464
75182
  Insert: {
75183
+ administration_code?: string;
74465
75184
  client_request_id: string;
74466
75185
  completed_at?: string | null;
74467
75186
  created_at?: string;
@@ -74471,6 +75190,7 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
74471
75190
  user_id: string;
74472
75191
  };
74473
75192
  Update: {
75193
+ administration_code?: string;
74474
75194
  client_request_id?: string;
74475
75195
  completed_at?: string | null;
74476
75196
  created_at?: string;
@@ -77685,6 +78405,7 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
77685
78405
  enforce: boolean;
77686
78406
  is_active: boolean;
77687
78407
  last_seen_at: string;
78408
+ missing_count: number;
77688
78409
  module_id: string;
77689
78410
  name: string;
77690
78411
  shell_id: string | null;
@@ -77695,6 +78416,7 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
77695
78416
  enforce?: boolean;
77696
78417
  is_active?: boolean;
77697
78418
  last_seen_at?: string;
78419
+ missing_count?: number;
77698
78420
  module_id: string;
77699
78421
  name: string;
77700
78422
  shell_id?: string | null;
@@ -77705,6 +78427,7 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
77705
78427
  enforce?: boolean;
77706
78428
  is_active?: boolean;
77707
78429
  last_seen_at?: string;
78430
+ missing_count?: number;
77708
78431
  module_id?: string;
77709
78432
  name?: string;
77710
78433
  shell_id?: string | null;
@@ -78704,6 +79427,7 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
78704
79427
  };
78705
79428
  order_invoice_links: {
78706
79429
  Row: {
79430
+ administration_code: string | null;
78707
79431
  attempts: number;
78708
79432
  created_at: string;
78709
79433
  error_message: string | null;
@@ -78716,6 +79440,7 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
78716
79440
  updated_at: string;
78717
79441
  };
78718
79442
  Insert: {
79443
+ administration_code?: string | null;
78719
79444
  attempts?: number;
78720
79445
  created_at?: string;
78721
79446
  error_message?: string | null;
@@ -78728,6 +79453,7 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
78728
79453
  updated_at?: string;
78729
79454
  };
78730
79455
  Update: {
79456
+ administration_code?: string | null;
78731
79457
  attempts?: number;
78732
79458
  created_at?: string;
78733
79459
  error_message?: string | null;
@@ -79893,6 +80619,27 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
79893
80619
  referencedColumns: ["id"];
79894
80620
  }];
79895
80621
  };
80622
+ pick_sync_state: {
80623
+ Row: {
80624
+ id: boolean;
80625
+ last_cleanup_at: string | null;
80626
+ last_sync_at: string | null;
80627
+ updated_at: string;
80628
+ };
80629
+ Insert: {
80630
+ id?: boolean;
80631
+ last_cleanup_at?: string | null;
80632
+ last_sync_at?: string | null;
80633
+ updated_at?: string;
80634
+ };
80635
+ Update: {
80636
+ id?: boolean;
80637
+ last_cleanup_at?: string | null;
80638
+ last_sync_at?: string | null;
80639
+ updated_at?: string;
80640
+ };
80641
+ Relationships: [];
80642
+ };
79896
80643
  pick_task_document_types: {
79897
80644
  Row: {
79898
80645
  created_at: string;
@@ -80175,6 +80922,7 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
80175
80922
  gebruiker_id: string | null;
80176
80923
  gebruiker_naam: string;
80177
80924
  gestart_op: string | null;
80925
+ herkomst: string | null;
80178
80926
  id: string;
80179
80927
  idempotentie_sleutel: string | null;
80180
80928
  is_herprint: boolean;
@@ -80204,6 +80952,7 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
80204
80952
  gebruiker_id?: string | null;
80205
80953
  gebruiker_naam?: string;
80206
80954
  gestart_op?: string | null;
80955
+ herkomst?: string | null;
80207
80956
  id?: string;
80208
80957
  idempotentie_sleutel?: string | null;
80209
80958
  is_herprint?: boolean;
@@ -80233,6 +80982,7 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
80233
80982
  gebruiker_id?: string | null;
80234
80983
  gebruiker_naam?: string;
80235
80984
  gestart_op?: string | null;
80985
+ herkomst?: string | null;
80236
80986
  id?: string;
80237
80987
  idempotentie_sleutel?: string | null;
80238
80988
  is_herprint?: boolean;
@@ -83237,12 +83987,16 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
83237
83987
  company_name: string | null;
83238
83988
  connected_at: string | null;
83239
83989
  created_at: string;
83990
+ disconnected_at: string | null;
83240
83991
  environment: string;
83241
83992
  id: string;
83993
+ initial_sync_completed_at: string | null;
83994
+ initial_sync_started_at: string | null;
83242
83995
  is_active: boolean;
83243
83996
  label: string | null;
83244
83997
  office_code: string | null;
83245
83998
  redirect_uri: string | null;
83999
+ superseded_at: string | null;
83246
84000
  updated_at: string;
83247
84001
  user_id: string;
83248
84002
  };
@@ -83253,12 +84007,16 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
83253
84007
  company_name?: string | null;
83254
84008
  connected_at?: string | null;
83255
84009
  created_at?: string;
84010
+ disconnected_at?: string | null;
83256
84011
  environment: string;
83257
84012
  id?: string;
84013
+ initial_sync_completed_at?: string | null;
84014
+ initial_sync_started_at?: string | null;
83258
84015
  is_active?: boolean;
83259
84016
  label?: string | null;
83260
84017
  office_code?: string | null;
83261
84018
  redirect_uri?: string | null;
84019
+ superseded_at?: string | null;
83262
84020
  updated_at?: string;
83263
84021
  user_id: string;
83264
84022
  };
@@ -83269,12 +84027,16 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
83269
84027
  company_name?: string | null;
83270
84028
  connected_at?: string | null;
83271
84029
  created_at?: string;
84030
+ disconnected_at?: string | null;
83272
84031
  environment?: string;
83273
84032
  id?: string;
84033
+ initial_sync_completed_at?: string | null;
84034
+ initial_sync_started_at?: string | null;
83274
84035
  is_active?: boolean;
83275
84036
  label?: string | null;
83276
84037
  office_code?: string | null;
83277
84038
  redirect_uri?: string | null;
84039
+ superseded_at?: string | null;
83278
84040
  updated_at?: string;
83279
84041
  user_id?: string;
83280
84042
  };
@@ -83334,6 +84096,7 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
83334
84096
  twinfield_customers: {
83335
84097
  Row: {
83336
84098
  address: string | null;
84099
+ administration_code: string;
83337
84100
  city: string | null;
83338
84101
  country: string | null;
83339
84102
  created_at: string;
@@ -83353,6 +84116,7 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
83353
84116
  };
83354
84117
  Insert: {
83355
84118
  address?: string | null;
84119
+ administration_code?: string;
83356
84120
  city?: string | null;
83357
84121
  country?: string | null;
83358
84122
  created_at?: string;
@@ -83372,6 +84136,7 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
83372
84136
  };
83373
84137
  Update: {
83374
84138
  address?: string | null;
84139
+ administration_code?: string;
83375
84140
  city?: string | null;
83376
84141
  country?: string | null;
83377
84142
  created_at?: string;
@@ -83585,7 +84350,9 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
83585
84350
  };
83586
84351
  twinfield_invoice_settings: {
83587
84352
  Row: {
84353
+ administration_code: string | null;
83588
84354
  auto_invoice_enabled: boolean;
84355
+ auto_invoice_start_date: string | null;
83589
84356
  auto_invoice_trigger_statuses: string[];
83590
84357
  created_at: string;
83591
84358
  debtor_gl_account: string;
@@ -83599,15 +84366,19 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
83599
84366
  invoice_enabled_fo: boolean;
83600
84367
  invoice_enabled_ho: boolean;
83601
84368
  invoice_enabled_mo: boolean;
84369
+ needs_review: boolean;
83602
84370
  payment_gl_account: string;
83603
84371
  payment_journal_code: string;
84372
+ settings_confirmed_at: string | null;
83604
84373
  updated_at: string;
83605
84374
  user_id: string;
83606
84375
  vat_code_eu_reverse: string | null;
83607
84376
  vat_code_export: string | null;
83608
84377
  };
83609
84378
  Insert: {
84379
+ administration_code?: string | null;
83610
84380
  auto_invoice_enabled?: boolean;
84381
+ auto_invoice_start_date?: string | null;
83611
84382
  auto_invoice_trigger_statuses?: string[];
83612
84383
  created_at?: string;
83613
84384
  debtor_gl_account?: string;
@@ -83621,15 +84392,19 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
83621
84392
  invoice_enabled_fo?: boolean;
83622
84393
  invoice_enabled_ho?: boolean;
83623
84394
  invoice_enabled_mo?: boolean;
84395
+ needs_review?: boolean;
83624
84396
  payment_gl_account?: string;
83625
84397
  payment_journal_code?: string;
84398
+ settings_confirmed_at?: string | null;
83626
84399
  updated_at?: string;
83627
84400
  user_id: string;
83628
84401
  vat_code_eu_reverse?: string | null;
83629
84402
  vat_code_export?: string | null;
83630
84403
  };
83631
84404
  Update: {
84405
+ administration_code?: string | null;
83632
84406
  auto_invoice_enabled?: boolean;
84407
+ auto_invoice_start_date?: string | null;
83633
84408
  auto_invoice_trigger_statuses?: string[];
83634
84409
  created_at?: string;
83635
84410
  debtor_gl_account?: string;
@@ -83643,8 +84418,10 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
83643
84418
  invoice_enabled_fo?: boolean;
83644
84419
  invoice_enabled_ho?: boolean;
83645
84420
  invoice_enabled_mo?: boolean;
84421
+ needs_review?: boolean;
83646
84422
  payment_gl_account?: string;
83647
84423
  payment_journal_code?: string;
84424
+ settings_confirmed_at?: string | null;
83648
84425
  updated_at?: string;
83649
84426
  user_id?: string;
83650
84427
  vat_code_eu_reverse?: string | null;
@@ -86701,6 +87478,7 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
86701
87478
  gebruiker_id: string | null;
86702
87479
  gebruiker_naam: string;
86703
87480
  gestart_op: string | null;
87481
+ herkomst: string | null;
86704
87482
  id: string;
86705
87483
  idempotentie_sleutel: string | null;
86706
87484
  is_herprint: boolean;
@@ -86821,6 +87599,7 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
86821
87599
  gebruiker_id: string | null;
86822
87600
  gebruiker_naam: string;
86823
87601
  gestart_op: string | null;
87602
+ herkomst: string | null;
86824
87603
  id: string;
86825
87604
  idempotentie_sleutel: string | null;
86826
87605
  is_herprint: boolean;
@@ -87530,6 +88309,29 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
87530
88309
  roles: string[];
87531
88310
  }[];
87532
88311
  };
88312
+ list_monteur_absences: {
88313
+ Args: {
88314
+ _from: string;
88315
+ _to: string;
88316
+ };
88317
+ Returns: {
88318
+ absence_date: string;
88319
+ end_time: string;
88320
+ full_day: boolean;
88321
+ kind: string;
88322
+ monteur_id: string;
88323
+ start_time: string;
88324
+ }[];
88325
+ };
88326
+ list_monteurs: {
88327
+ Args: never;
88328
+ Returns: {
88329
+ avatar_url: string;
88330
+ display_name: string;
88331
+ email: string;
88332
+ id: string;
88333
+ }[];
88334
+ };
87533
88335
  list_my_planning_items: {
87534
88336
  Args: {
87535
88337
  _from: string;
@@ -88483,6 +89285,13 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
88483
89285
  isSetofReturn: false;
88484
89286
  };
88485
89287
  };
89288
+ pick_cleanup_maintenance: {
89289
+ Args: {
89290
+ _heartbeat_hours?: number;
89291
+ _log_days?: number;
89292
+ };
89293
+ Returns: import("../integrations/supabase/types").Json;
89294
+ };
88486
89295
  pick_complete_print: {
88487
89296
  Args: {
88488
89297
  _printer_id: string;
@@ -88534,6 +89343,14 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
88534
89343
  Args: never;
88535
89344
  Returns: string;
88536
89345
  };
89346
+ pick_day_counts: {
89347
+ Args: {
89348
+ _pick_day?: string;
89349
+ _screen_id?: string;
89350
+ _station_id?: string;
89351
+ };
89352
+ Returns: import("../integrations/supabase/types").Json;
89353
+ };
88537
89354
  pick_document_layout_data: {
88538
89355
  Args: {
88539
89356
  _layout_id: string;
@@ -88571,6 +89388,14 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
88571
89388
  };
88572
89389
  Returns: undefined;
88573
89390
  };
89391
+ pick_reprint_document: {
89392
+ Args: {
89393
+ _queue_item_id: string;
89394
+ _session_id: string;
89395
+ _throttle_seconds?: number;
89396
+ };
89397
+ Returns: string;
89398
+ };
88574
89399
  pick_reset_print: {
88575
89400
  Args: {
88576
89401
  _queue_item_id: string;
@@ -88636,6 +89461,12 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
88636
89461
  };
88637
89462
  Returns: string;
88638
89463
  };
89464
+ pick_sync_queue_throttled: {
89465
+ Args: {
89466
+ _min_seconds?: number;
89467
+ };
89468
+ Returns: import("../integrations/supabase/types").Json;
89469
+ };
88639
89470
  pickstation_get_orders_raw: {
88640
89471
  Args: never;
88641
89472
  Returns: import("../integrations/supabase/types").Json;
@@ -88781,6 +89612,12 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
88781
89612
  };
88782
89613
  Returns: boolean;
88783
89614
  };
89615
+ release_stale_order_invoice_links: {
89616
+ Args: {
89617
+ _minutes?: number;
89618
+ };
89619
+ Returns: number;
89620
+ };
88784
89621
  reorder_customer_price_groups: {
88785
89622
  Args: {
88786
89623
  _ids: string[];
@@ -89299,6 +90136,20 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
89299
90136
  };
89300
90137
  Returns: undefined;
89301
90138
  };
90139
+ twinfield_deactivate_connection: {
90140
+ Args: {
90141
+ p_connection_id: string;
90142
+ p_user_id: string;
90143
+ };
90144
+ Returns: import("../integrations/supabase/types").Json;
90145
+ };
90146
+ twinfield_handle_administration_change: {
90147
+ Args: {
90148
+ _administration_code: string;
90149
+ _user_id: string;
90150
+ };
90151
+ Returns: undefined;
90152
+ };
89302
90153
  twinfield_prune_push_queue: {
89303
90154
  Args: never;
89304
90155
  Returns: number;
@@ -89318,10 +90169,11 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
89318
90169
  p_company_name?: string;
89319
90170
  p_environment: string;
89320
90171
  p_office_code?: string;
90172
+ p_reset_sync?: boolean;
89321
90173
  p_status?: string;
89322
90174
  p_user_id: string;
89323
90175
  };
89324
- Returns: string;
90176
+ Returns: import("../integrations/supabase/types").Json;
89325
90177
  };
89326
90178
  upsert_auto_fulfillment_log: {
89327
90179
  Args: {
@@ -92155,6 +93007,42 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
92155
93007
  };
92156
93008
  Relationships: [];
92157
93009
  };
93010
+ document_bronregels: {
93011
+ Row: {
93012
+ bron: string;
93013
+ created_at: string;
93014
+ documenttype: string;
93015
+ herkomst: string;
93016
+ id: string;
93017
+ layout_id: string | null;
93018
+ updated_at: string;
93019
+ };
93020
+ Insert: {
93021
+ bron?: string;
93022
+ created_at?: string;
93023
+ documenttype: string;
93024
+ herkomst: string;
93025
+ id?: string;
93026
+ layout_id?: string | null;
93027
+ updated_at?: string;
93028
+ };
93029
+ Update: {
93030
+ bron?: string;
93031
+ created_at?: string;
93032
+ documenttype?: string;
93033
+ herkomst?: string;
93034
+ id?: string;
93035
+ layout_id?: string | null;
93036
+ updated_at?: string;
93037
+ };
93038
+ Relationships: [{
93039
+ foreignKeyName: "document_bronregels_layout_id_fkey";
93040
+ columns: ["layout_id"];
93041
+ isOneToOne: false;
93042
+ referencedRelation: "document_layouts";
93043
+ referencedColumns: ["id"];
93044
+ }];
93045
+ };
92158
93046
  document_formaat_printers: {
92159
93047
  Row: {
92160
93048
  created_at: string;
@@ -92432,6 +93320,7 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
92432
93320
  Row: {
92433
93321
  actief: boolean;
92434
93322
  breedte_mm: number;
93323
+ bron: string;
92435
93324
  config: import("../integrations/supabase/types").Json;
92436
93325
  created_at: string;
92437
93326
  created_by: string | null;
@@ -92449,12 +93338,14 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
92449
93338
  orientatie: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_orientation"];
92450
93339
  page_settings: import("../integrations/supabase/types").Json;
92451
93340
  papierformaat: string;
93341
+ systeem: boolean;
92452
93342
  thumbnail_url: string | null;
92453
93343
  updated_at: string;
92454
93344
  };
92455
93345
  Insert: {
92456
93346
  actief?: boolean;
92457
93347
  breedte_mm?: number;
93348
+ bron?: string;
92458
93349
  config?: import("../integrations/supabase/types").Json;
92459
93350
  created_at?: string;
92460
93351
  created_by?: string | null;
@@ -92472,12 +93363,14 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
92472
93363
  orientatie?: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_orientation"];
92473
93364
  page_settings?: import("../integrations/supabase/types").Json;
92474
93365
  papierformaat?: string;
93366
+ systeem?: boolean;
92475
93367
  thumbnail_url?: string | null;
92476
93368
  updated_at?: string;
92477
93369
  };
92478
93370
  Update: {
92479
93371
  actief?: boolean;
92480
93372
  breedte_mm?: number;
93373
+ bron?: string;
92481
93374
  config?: import("../integrations/supabase/types").Json;
92482
93375
  created_at?: string;
92483
93376
  created_by?: string | null;
@@ -92495,11 +93388,48 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
92495
93388
  orientatie?: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_orientation"];
92496
93389
  page_settings?: import("../integrations/supabase/types").Json;
92497
93390
  papierformaat?: string;
93391
+ systeem?: boolean;
92498
93392
  thumbnail_url?: string | null;
92499
93393
  updated_at?: string;
92500
93394
  };
92501
93395
  Relationships: [];
92502
93396
  };
93397
+ document_werkplek_printers: {
93398
+ Row: {
93399
+ created_at: string;
93400
+ documenttype: string;
93401
+ id: string;
93402
+ papierformaat: string | null;
93403
+ printer_id: string | null;
93404
+ updated_at: string;
93405
+ werkplek: string;
93406
+ };
93407
+ Insert: {
93408
+ created_at?: string;
93409
+ documenttype: string;
93410
+ id?: string;
93411
+ papierformaat?: string | null;
93412
+ printer_id?: string | null;
93413
+ updated_at?: string;
93414
+ werkplek: string;
93415
+ };
93416
+ Update: {
93417
+ created_at?: string;
93418
+ documenttype?: string;
93419
+ id?: string;
93420
+ papierformaat?: string | null;
93421
+ printer_id?: string | null;
93422
+ updated_at?: string;
93423
+ werkplek?: string;
93424
+ };
93425
+ Relationships: [{
93426
+ foreignKeyName: "document_werkplek_printers_printer_id_fkey";
93427
+ columns: ["printer_id"];
93428
+ isOneToOne: false;
93429
+ referencedRelation: "printers";
93430
+ referencedColumns: ["id"];
93431
+ }];
93432
+ };
92503
93433
  email_auth_connections: {
92504
93434
  Row: {
92505
93435
  access_token_encrypted: string | null;
@@ -96801,6 +97731,7 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
96801
97731
  };
96802
97732
  invoice_post_idempotency: {
96803
97733
  Row: {
97734
+ administration_code: string;
96804
97735
  client_request_id: string;
96805
97736
  completed_at: string | null;
96806
97737
  created_at: string;
@@ -96810,6 +97741,7 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
96810
97741
  user_id: string;
96811
97742
  };
96812
97743
  Insert: {
97744
+ administration_code?: string;
96813
97745
  client_request_id: string;
96814
97746
  completed_at?: string | null;
96815
97747
  created_at?: string;
@@ -96819,6 +97751,7 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
96819
97751
  user_id: string;
96820
97752
  };
96821
97753
  Update: {
97754
+ administration_code?: string;
96822
97755
  client_request_id?: string;
96823
97756
  completed_at?: string | null;
96824
97757
  created_at?: string;
@@ -100033,6 +100966,7 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
100033
100966
  enforce: boolean;
100034
100967
  is_active: boolean;
100035
100968
  last_seen_at: string;
100969
+ missing_count: number;
100036
100970
  module_id: string;
100037
100971
  name: string;
100038
100972
  shell_id: string | null;
@@ -100043,6 +100977,7 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
100043
100977
  enforce?: boolean;
100044
100978
  is_active?: boolean;
100045
100979
  last_seen_at?: string;
100980
+ missing_count?: number;
100046
100981
  module_id: string;
100047
100982
  name: string;
100048
100983
  shell_id?: string | null;
@@ -100053,6 +100988,7 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
100053
100988
  enforce?: boolean;
100054
100989
  is_active?: boolean;
100055
100990
  last_seen_at?: string;
100991
+ missing_count?: number;
100056
100992
  module_id?: string;
100057
100993
  name?: string;
100058
100994
  shell_id?: string | null;
@@ -101052,6 +101988,7 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
101052
101988
  };
101053
101989
  order_invoice_links: {
101054
101990
  Row: {
101991
+ administration_code: string | null;
101055
101992
  attempts: number;
101056
101993
  created_at: string;
101057
101994
  error_message: string | null;
@@ -101064,6 +102001,7 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
101064
102001
  updated_at: string;
101065
102002
  };
101066
102003
  Insert: {
102004
+ administration_code?: string | null;
101067
102005
  attempts?: number;
101068
102006
  created_at?: string;
101069
102007
  error_message?: string | null;
@@ -101076,6 +102014,7 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
101076
102014
  updated_at?: string;
101077
102015
  };
101078
102016
  Update: {
102017
+ administration_code?: string | null;
101079
102018
  attempts?: number;
101080
102019
  created_at?: string;
101081
102020
  error_message?: string | null;
@@ -102241,6 +103180,27 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
102241
103180
  referencedColumns: ["id"];
102242
103181
  }];
102243
103182
  };
103183
+ pick_sync_state: {
103184
+ Row: {
103185
+ id: boolean;
103186
+ last_cleanup_at: string | null;
103187
+ last_sync_at: string | null;
103188
+ updated_at: string;
103189
+ };
103190
+ Insert: {
103191
+ id?: boolean;
103192
+ last_cleanup_at?: string | null;
103193
+ last_sync_at?: string | null;
103194
+ updated_at?: string;
103195
+ };
103196
+ Update: {
103197
+ id?: boolean;
103198
+ last_cleanup_at?: string | null;
103199
+ last_sync_at?: string | null;
103200
+ updated_at?: string;
103201
+ };
103202
+ Relationships: [];
103203
+ };
102244
103204
  pick_task_document_types: {
102245
103205
  Row: {
102246
103206
  created_at: string;
@@ -102523,6 +103483,7 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
102523
103483
  gebruiker_id: string | null;
102524
103484
  gebruiker_naam: string;
102525
103485
  gestart_op: string | null;
103486
+ herkomst: string | null;
102526
103487
  id: string;
102527
103488
  idempotentie_sleutel: string | null;
102528
103489
  is_herprint: boolean;
@@ -102552,6 +103513,7 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
102552
103513
  gebruiker_id?: string | null;
102553
103514
  gebruiker_naam?: string;
102554
103515
  gestart_op?: string | null;
103516
+ herkomst?: string | null;
102555
103517
  id?: string;
102556
103518
  idempotentie_sleutel?: string | null;
102557
103519
  is_herprint?: boolean;
@@ -102581,6 +103543,7 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
102581
103543
  gebruiker_id?: string | null;
102582
103544
  gebruiker_naam?: string;
102583
103545
  gestart_op?: string | null;
103546
+ herkomst?: string | null;
102584
103547
  id?: string;
102585
103548
  idempotentie_sleutel?: string | null;
102586
103549
  is_herprint?: boolean;
@@ -105585,12 +106548,16 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
105585
106548
  company_name: string | null;
105586
106549
  connected_at: string | null;
105587
106550
  created_at: string;
106551
+ disconnected_at: string | null;
105588
106552
  environment: string;
105589
106553
  id: string;
106554
+ initial_sync_completed_at: string | null;
106555
+ initial_sync_started_at: string | null;
105590
106556
  is_active: boolean;
105591
106557
  label: string | null;
105592
106558
  office_code: string | null;
105593
106559
  redirect_uri: string | null;
106560
+ superseded_at: string | null;
105594
106561
  updated_at: string;
105595
106562
  user_id: string;
105596
106563
  };
@@ -105601,12 +106568,16 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
105601
106568
  company_name?: string | null;
105602
106569
  connected_at?: string | null;
105603
106570
  created_at?: string;
106571
+ disconnected_at?: string | null;
105604
106572
  environment: string;
105605
106573
  id?: string;
106574
+ initial_sync_completed_at?: string | null;
106575
+ initial_sync_started_at?: string | null;
105606
106576
  is_active?: boolean;
105607
106577
  label?: string | null;
105608
106578
  office_code?: string | null;
105609
106579
  redirect_uri?: string | null;
106580
+ superseded_at?: string | null;
105610
106581
  updated_at?: string;
105611
106582
  user_id: string;
105612
106583
  };
@@ -105617,12 +106588,16 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
105617
106588
  company_name?: string | null;
105618
106589
  connected_at?: string | null;
105619
106590
  created_at?: string;
106591
+ disconnected_at?: string | null;
105620
106592
  environment?: string;
105621
106593
  id?: string;
106594
+ initial_sync_completed_at?: string | null;
106595
+ initial_sync_started_at?: string | null;
105622
106596
  is_active?: boolean;
105623
106597
  label?: string | null;
105624
106598
  office_code?: string | null;
105625
106599
  redirect_uri?: string | null;
106600
+ superseded_at?: string | null;
105626
106601
  updated_at?: string;
105627
106602
  user_id?: string;
105628
106603
  };
@@ -105682,6 +106657,7 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
105682
106657
  twinfield_customers: {
105683
106658
  Row: {
105684
106659
  address: string | null;
106660
+ administration_code: string;
105685
106661
  city: string | null;
105686
106662
  country: string | null;
105687
106663
  created_at: string;
@@ -105701,6 +106677,7 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
105701
106677
  };
105702
106678
  Insert: {
105703
106679
  address?: string | null;
106680
+ administration_code?: string;
105704
106681
  city?: string | null;
105705
106682
  country?: string | null;
105706
106683
  created_at?: string;
@@ -105720,6 +106697,7 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
105720
106697
  };
105721
106698
  Update: {
105722
106699
  address?: string | null;
106700
+ administration_code?: string;
105723
106701
  city?: string | null;
105724
106702
  country?: string | null;
105725
106703
  created_at?: string;
@@ -105933,7 +106911,9 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
105933
106911
  };
105934
106912
  twinfield_invoice_settings: {
105935
106913
  Row: {
106914
+ administration_code: string | null;
105936
106915
  auto_invoice_enabled: boolean;
106916
+ auto_invoice_start_date: string | null;
105937
106917
  auto_invoice_trigger_statuses: string[];
105938
106918
  created_at: string;
105939
106919
  debtor_gl_account: string;
@@ -105947,15 +106927,19 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
105947
106927
  invoice_enabled_fo: boolean;
105948
106928
  invoice_enabled_ho: boolean;
105949
106929
  invoice_enabled_mo: boolean;
106930
+ needs_review: boolean;
105950
106931
  payment_gl_account: string;
105951
106932
  payment_journal_code: string;
106933
+ settings_confirmed_at: string | null;
105952
106934
  updated_at: string;
105953
106935
  user_id: string;
105954
106936
  vat_code_eu_reverse: string | null;
105955
106937
  vat_code_export: string | null;
105956
106938
  };
105957
106939
  Insert: {
106940
+ administration_code?: string | null;
105958
106941
  auto_invoice_enabled?: boolean;
106942
+ auto_invoice_start_date?: string | null;
105959
106943
  auto_invoice_trigger_statuses?: string[];
105960
106944
  created_at?: string;
105961
106945
  debtor_gl_account?: string;
@@ -105969,15 +106953,19 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
105969
106953
  invoice_enabled_fo?: boolean;
105970
106954
  invoice_enabled_ho?: boolean;
105971
106955
  invoice_enabled_mo?: boolean;
106956
+ needs_review?: boolean;
105972
106957
  payment_gl_account?: string;
105973
106958
  payment_journal_code?: string;
106959
+ settings_confirmed_at?: string | null;
105974
106960
  updated_at?: string;
105975
106961
  user_id: string;
105976
106962
  vat_code_eu_reverse?: string | null;
105977
106963
  vat_code_export?: string | null;
105978
106964
  };
105979
106965
  Update: {
106966
+ administration_code?: string | null;
105980
106967
  auto_invoice_enabled?: boolean;
106968
+ auto_invoice_start_date?: string | null;
105981
106969
  auto_invoice_trigger_statuses?: string[];
105982
106970
  created_at?: string;
105983
106971
  debtor_gl_account?: string;
@@ -105991,8 +106979,10 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
105991
106979
  invoice_enabled_fo?: boolean;
105992
106980
  invoice_enabled_ho?: boolean;
105993
106981
  invoice_enabled_mo?: boolean;
106982
+ needs_review?: boolean;
105994
106983
  payment_gl_account?: string;
105995
106984
  payment_journal_code?: string;
106985
+ settings_confirmed_at?: string | null;
105996
106986
  updated_at?: string;
105997
106987
  user_id?: string;
105998
106988
  vat_code_eu_reverse?: string | null;
@@ -109049,6 +110039,7 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
109049
110039
  gebruiker_id: string | null;
109050
110040
  gebruiker_naam: string;
109051
110041
  gestart_op: string | null;
110042
+ herkomst: string | null;
109052
110043
  id: string;
109053
110044
  idempotentie_sleutel: string | null;
109054
110045
  is_herprint: boolean;
@@ -109169,6 +110160,7 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
109169
110160
  gebruiker_id: string | null;
109170
110161
  gebruiker_naam: string;
109171
110162
  gestart_op: string | null;
110163
+ herkomst: string | null;
109172
110164
  id: string;
109173
110165
  idempotentie_sleutel: string | null;
109174
110166
  is_herprint: boolean;
@@ -109878,6 +110870,29 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
109878
110870
  roles: string[];
109879
110871
  }[];
109880
110872
  };
110873
+ list_monteur_absences: {
110874
+ Args: {
110875
+ _from: string;
110876
+ _to: string;
110877
+ };
110878
+ Returns: {
110879
+ absence_date: string;
110880
+ end_time: string;
110881
+ full_day: boolean;
110882
+ kind: string;
110883
+ monteur_id: string;
110884
+ start_time: string;
110885
+ }[];
110886
+ };
110887
+ list_monteurs: {
110888
+ Args: never;
110889
+ Returns: {
110890
+ avatar_url: string;
110891
+ display_name: string;
110892
+ email: string;
110893
+ id: string;
110894
+ }[];
110895
+ };
109881
110896
  list_my_planning_items: {
109882
110897
  Args: {
109883
110898
  _from: string;
@@ -110831,6 +111846,13 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
110831
111846
  isSetofReturn: false;
110832
111847
  };
110833
111848
  };
111849
+ pick_cleanup_maintenance: {
111850
+ Args: {
111851
+ _heartbeat_hours?: number;
111852
+ _log_days?: number;
111853
+ };
111854
+ Returns: import("../integrations/supabase/types").Json;
111855
+ };
110834
111856
  pick_complete_print: {
110835
111857
  Args: {
110836
111858
  _printer_id: string;
@@ -110882,6 +111904,14 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
110882
111904
  Args: never;
110883
111905
  Returns: string;
110884
111906
  };
111907
+ pick_day_counts: {
111908
+ Args: {
111909
+ _pick_day?: string;
111910
+ _screen_id?: string;
111911
+ _station_id?: string;
111912
+ };
111913
+ Returns: import("../integrations/supabase/types").Json;
111914
+ };
110885
111915
  pick_document_layout_data: {
110886
111916
  Args: {
110887
111917
  _layout_id: string;
@@ -110919,6 +111949,14 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
110919
111949
  };
110920
111950
  Returns: undefined;
110921
111951
  };
111952
+ pick_reprint_document: {
111953
+ Args: {
111954
+ _queue_item_id: string;
111955
+ _session_id: string;
111956
+ _throttle_seconds?: number;
111957
+ };
111958
+ Returns: string;
111959
+ };
110922
111960
  pick_reset_print: {
110923
111961
  Args: {
110924
111962
  _queue_item_id: string;
@@ -110984,6 +112022,12 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
110984
112022
  };
110985
112023
  Returns: string;
110986
112024
  };
112025
+ pick_sync_queue_throttled: {
112026
+ Args: {
112027
+ _min_seconds?: number;
112028
+ };
112029
+ Returns: import("../integrations/supabase/types").Json;
112030
+ };
110987
112031
  pickstation_get_orders_raw: {
110988
112032
  Args: never;
110989
112033
  Returns: import("../integrations/supabase/types").Json;
@@ -111129,6 +112173,12 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
111129
112173
  };
111130
112174
  Returns: boolean;
111131
112175
  };
112176
+ release_stale_order_invoice_links: {
112177
+ Args: {
112178
+ _minutes?: number;
112179
+ };
112180
+ Returns: number;
112181
+ };
111132
112182
  reorder_customer_price_groups: {
111133
112183
  Args: {
111134
112184
  _ids: string[];
@@ -111647,6 +112697,20 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
111647
112697
  };
111648
112698
  Returns: undefined;
111649
112699
  };
112700
+ twinfield_deactivate_connection: {
112701
+ Args: {
112702
+ p_connection_id: string;
112703
+ p_user_id: string;
112704
+ };
112705
+ Returns: import("../integrations/supabase/types").Json;
112706
+ };
112707
+ twinfield_handle_administration_change: {
112708
+ Args: {
112709
+ _administration_code: string;
112710
+ _user_id: string;
112711
+ };
112712
+ Returns: undefined;
112713
+ };
111650
112714
  twinfield_prune_push_queue: {
111651
112715
  Args: never;
111652
112716
  Returns: number;
@@ -111666,10 +112730,11 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
111666
112730
  p_company_name?: string;
111667
112731
  p_environment: string;
111668
112732
  p_office_code?: string;
112733
+ p_reset_sync?: boolean;
111669
112734
  p_status?: string;
111670
112735
  p_user_id: string;
111671
112736
  };
111672
- Returns: string;
112737
+ Returns: import("../integrations/supabase/types").Json;
111673
112738
  };
111674
112739
  upsert_auto_fulfillment_log: {
111675
112740
  Args: {