@flowselections/floriday-afhandeling-module 1.0.35 → 1.0.37

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (32) hide show
  1. package/dist-lib/components/afhandeling/PickAgendaView.d.ts.map +1 -1
  2. package/dist-lib/components/afhandeling/PickAgendaView.js +20 -9
  3. package/dist-lib/components/afhandeling/VervoerdersPage.js +1 -1
  4. package/dist-lib/hooks/useOrderPlanning.d.ts +20 -3
  5. package/dist-lib/hooks/useOrderPlanning.d.ts.map +1 -1
  6. package/dist-lib/hooks/useOrderPlanning.js +80 -15
  7. package/dist-lib/integrations/supabase/auth-middleware.d.ts +214 -1
  8. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  9. package/dist-lib/integrations/supabase/client.server.d.ts +214 -1
  10. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  11. package/dist-lib/integrations/supabase/moduleClient.d.ts +214 -1
  12. package/dist-lib/integrations/supabase/moduleClient.d.ts.map +1 -1
  13. package/dist-lib/integrations/supabase/types.d.ts +218 -1
  14. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  15. package/dist-lib/lib/afhandelingSettings.functions.d.ts +428 -2
  16. package/dist-lib/lib/afhandelingSettings.functions.d.ts.map +1 -1
  17. package/dist-lib/lib/carriers.functions.d.ts +1070 -5
  18. package/dist-lib/lib/carriers.functions.d.ts.map +1 -1
  19. package/dist-lib/lib/cartAssignments.functions.d.ts +1070 -5
  20. package/dist-lib/lib/cartAssignments.functions.d.ts.map +1 -1
  21. package/dist-lib/lib/cartControl.functions.d.ts +2140 -10
  22. package/dist-lib/lib/cartControl.functions.d.ts.map +1 -1
  23. package/dist-lib/lib/floriday.functions.d.ts +223 -2
  24. package/dist-lib/lib/floriday.functions.d.ts.map +1 -1
  25. package/dist-lib/lib/floriday.functions.js +41 -9
  26. package/dist-lib/lib/logisticsEngine/engine.d.ts +21 -1
  27. package/dist-lib/lib/logisticsEngine/engine.d.ts.map +1 -1
  28. package/dist-lib/lib/logisticsEngine/engine.js +81 -19
  29. package/dist-lib/lib/orderRefs.d.ts +18 -0
  30. package/dist-lib/lib/orderRefs.d.ts.map +1 -0
  31. package/dist-lib/lib/orderRefs.js +30 -0
  32. package/package.json +120 -120
@@ -2816,6 +2816,42 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
2816
2816
  };
2817
2817
  Relationships: [];
2818
2818
  };
2819
+ document_bronregels: {
2820
+ Row: {
2821
+ bron: string;
2822
+ created_at: string;
2823
+ documenttype: string;
2824
+ herkomst: string;
2825
+ id: string;
2826
+ layout_id: string | null;
2827
+ updated_at: string;
2828
+ };
2829
+ Insert: {
2830
+ bron?: string;
2831
+ created_at?: string;
2832
+ documenttype: string;
2833
+ herkomst: string;
2834
+ id?: string;
2835
+ layout_id?: string | null;
2836
+ updated_at?: string;
2837
+ };
2838
+ Update: {
2839
+ bron?: string;
2840
+ created_at?: string;
2841
+ documenttype?: string;
2842
+ herkomst?: string;
2843
+ id?: string;
2844
+ layout_id?: string | null;
2845
+ updated_at?: string;
2846
+ };
2847
+ Relationships: [{
2848
+ foreignKeyName: "document_bronregels_layout_id_fkey";
2849
+ columns: ["layout_id"];
2850
+ isOneToOne: false;
2851
+ referencedRelation: "document_layouts";
2852
+ referencedColumns: ["id"];
2853
+ }];
2854
+ };
2819
2855
  document_formaat_printers: {
2820
2856
  Row: {
2821
2857
  created_at: string;
@@ -3093,6 +3129,7 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
3093
3129
  Row: {
3094
3130
  actief: boolean;
3095
3131
  breedte_mm: number;
3132
+ bron: string;
3096
3133
  config: import("../integrations/supabase/types").Json;
3097
3134
  created_at: string;
3098
3135
  created_by: string | null;
@@ -3110,12 +3147,14 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
3110
3147
  orientatie: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_orientation"];
3111
3148
  page_settings: import("../integrations/supabase/types").Json;
3112
3149
  papierformaat: string;
3150
+ systeem: boolean;
3113
3151
  thumbnail_url: string | null;
3114
3152
  updated_at: string;
3115
3153
  };
3116
3154
  Insert: {
3117
3155
  actief?: boolean;
3118
3156
  breedte_mm?: number;
3157
+ bron?: string;
3119
3158
  config?: import("../integrations/supabase/types").Json;
3120
3159
  created_at?: string;
3121
3160
  created_by?: string | null;
@@ -3133,12 +3172,14 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
3133
3172
  orientatie?: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_orientation"];
3134
3173
  page_settings?: import("../integrations/supabase/types").Json;
3135
3174
  papierformaat?: string;
3175
+ systeem?: boolean;
3136
3176
  thumbnail_url?: string | null;
3137
3177
  updated_at?: string;
3138
3178
  };
3139
3179
  Update: {
3140
3180
  actief?: boolean;
3141
3181
  breedte_mm?: number;
3182
+ bron?: string;
3142
3183
  config?: import("../integrations/supabase/types").Json;
3143
3184
  created_at?: string;
3144
3185
  created_by?: string | null;
@@ -3156,11 +3197,48 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
3156
3197
  orientatie?: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_orientation"];
3157
3198
  page_settings?: import("../integrations/supabase/types").Json;
3158
3199
  papierformaat?: string;
3200
+ systeem?: boolean;
3159
3201
  thumbnail_url?: string | null;
3160
3202
  updated_at?: string;
3161
3203
  };
3162
3204
  Relationships: [];
3163
3205
  };
3206
+ document_werkplek_printers: {
3207
+ Row: {
3208
+ created_at: string;
3209
+ documenttype: string;
3210
+ id: string;
3211
+ papierformaat: string | null;
3212
+ printer_id: string | null;
3213
+ updated_at: string;
3214
+ werkplek: string;
3215
+ };
3216
+ Insert: {
3217
+ created_at?: string;
3218
+ documenttype: string;
3219
+ id?: string;
3220
+ papierformaat?: string | null;
3221
+ printer_id?: string | null;
3222
+ updated_at?: string;
3223
+ werkplek: string;
3224
+ };
3225
+ Update: {
3226
+ created_at?: string;
3227
+ documenttype?: string;
3228
+ id?: string;
3229
+ papierformaat?: string | null;
3230
+ printer_id?: string | null;
3231
+ updated_at?: string;
3232
+ werkplek?: string;
3233
+ };
3234
+ Relationships: [{
3235
+ foreignKeyName: "document_werkplek_printers_printer_id_fkey";
3236
+ columns: ["printer_id"];
3237
+ isOneToOne: false;
3238
+ referencedRelation: "printers";
3239
+ referencedColumns: ["id"];
3240
+ }];
3241
+ };
3164
3242
  email_auth_connections: {
3165
3243
  Row: {
3166
3244
  access_token_encrypted: string | null;
@@ -7462,6 +7540,7 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
7462
7540
  };
7463
7541
  invoice_post_idempotency: {
7464
7542
  Row: {
7543
+ administration_code: string;
7465
7544
  client_request_id: string;
7466
7545
  completed_at: string | null;
7467
7546
  created_at: string;
@@ -7471,6 +7550,7 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
7471
7550
  user_id: string;
7472
7551
  };
7473
7552
  Insert: {
7553
+ administration_code?: string;
7474
7554
  client_request_id: string;
7475
7555
  completed_at?: string | null;
7476
7556
  created_at?: string;
@@ -7480,6 +7560,7 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
7480
7560
  user_id: string;
7481
7561
  };
7482
7562
  Update: {
7563
+ administration_code?: string;
7483
7564
  client_request_id?: string;
7484
7565
  completed_at?: string | null;
7485
7566
  created_at?: string;
@@ -10694,6 +10775,7 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
10694
10775
  enforce: boolean;
10695
10776
  is_active: boolean;
10696
10777
  last_seen_at: string;
10778
+ missing_count: number;
10697
10779
  module_id: string;
10698
10780
  name: string;
10699
10781
  shell_id: string | null;
@@ -10704,6 +10786,7 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
10704
10786
  enforce?: boolean;
10705
10787
  is_active?: boolean;
10706
10788
  last_seen_at?: string;
10789
+ missing_count?: number;
10707
10790
  module_id: string;
10708
10791
  name: string;
10709
10792
  shell_id?: string | null;
@@ -10714,6 +10797,7 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
10714
10797
  enforce?: boolean;
10715
10798
  is_active?: boolean;
10716
10799
  last_seen_at?: string;
10800
+ missing_count?: number;
10717
10801
  module_id?: string;
10718
10802
  name?: string;
10719
10803
  shell_id?: string | null;
@@ -11713,6 +11797,7 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
11713
11797
  };
11714
11798
  order_invoice_links: {
11715
11799
  Row: {
11800
+ administration_code: string | null;
11716
11801
  attempts: number;
11717
11802
  created_at: string;
11718
11803
  error_message: string | null;
@@ -11725,6 +11810,7 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
11725
11810
  updated_at: string;
11726
11811
  };
11727
11812
  Insert: {
11813
+ administration_code?: string | null;
11728
11814
  attempts?: number;
11729
11815
  created_at?: string;
11730
11816
  error_message?: string | null;
@@ -11737,6 +11823,7 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
11737
11823
  updated_at?: string;
11738
11824
  };
11739
11825
  Update: {
11826
+ administration_code?: string | null;
11740
11827
  attempts?: number;
11741
11828
  created_at?: string;
11742
11829
  error_message?: string | null;
@@ -12902,6 +12989,27 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
12902
12989
  referencedColumns: ["id"];
12903
12990
  }];
12904
12991
  };
12992
+ pick_sync_state: {
12993
+ Row: {
12994
+ id: boolean;
12995
+ last_cleanup_at: string | null;
12996
+ last_sync_at: string | null;
12997
+ updated_at: string;
12998
+ };
12999
+ Insert: {
13000
+ id?: boolean;
13001
+ last_cleanup_at?: string | null;
13002
+ last_sync_at?: string | null;
13003
+ updated_at?: string;
13004
+ };
13005
+ Update: {
13006
+ id?: boolean;
13007
+ last_cleanup_at?: string | null;
13008
+ last_sync_at?: string | null;
13009
+ updated_at?: string;
13010
+ };
13011
+ Relationships: [];
13012
+ };
12905
13013
  pick_task_document_types: {
12906
13014
  Row: {
12907
13015
  created_at: string;
@@ -13184,6 +13292,7 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
13184
13292
  gebruiker_id: string | null;
13185
13293
  gebruiker_naam: string;
13186
13294
  gestart_op: string | null;
13295
+ herkomst: string | null;
13187
13296
  id: string;
13188
13297
  idempotentie_sleutel: string | null;
13189
13298
  is_herprint: boolean;
@@ -13213,6 +13322,7 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
13213
13322
  gebruiker_id?: string | null;
13214
13323
  gebruiker_naam?: string;
13215
13324
  gestart_op?: string | null;
13325
+ herkomst?: string | null;
13216
13326
  id?: string;
13217
13327
  idempotentie_sleutel?: string | null;
13218
13328
  is_herprint?: boolean;
@@ -13242,6 +13352,7 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
13242
13352
  gebruiker_id?: string | null;
13243
13353
  gebruiker_naam?: string;
13244
13354
  gestart_op?: string | null;
13355
+ herkomst?: string | null;
13245
13356
  id?: string;
13246
13357
  idempotentie_sleutel?: string | null;
13247
13358
  is_herprint?: boolean;
@@ -16246,12 +16357,16 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
16246
16357
  company_name: string | null;
16247
16358
  connected_at: string | null;
16248
16359
  created_at: string;
16360
+ disconnected_at: string | null;
16249
16361
  environment: string;
16250
16362
  id: string;
16363
+ initial_sync_completed_at: string | null;
16364
+ initial_sync_started_at: string | null;
16251
16365
  is_active: boolean;
16252
16366
  label: string | null;
16253
16367
  office_code: string | null;
16254
16368
  redirect_uri: string | null;
16369
+ superseded_at: string | null;
16255
16370
  updated_at: string;
16256
16371
  user_id: string;
16257
16372
  };
@@ -16262,12 +16377,16 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
16262
16377
  company_name?: string | null;
16263
16378
  connected_at?: string | null;
16264
16379
  created_at?: string;
16380
+ disconnected_at?: string | null;
16265
16381
  environment: string;
16266
16382
  id?: string;
16383
+ initial_sync_completed_at?: string | null;
16384
+ initial_sync_started_at?: string | null;
16267
16385
  is_active?: boolean;
16268
16386
  label?: string | null;
16269
16387
  office_code?: string | null;
16270
16388
  redirect_uri?: string | null;
16389
+ superseded_at?: string | null;
16271
16390
  updated_at?: string;
16272
16391
  user_id: string;
16273
16392
  };
@@ -16278,12 +16397,16 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
16278
16397
  company_name?: string | null;
16279
16398
  connected_at?: string | null;
16280
16399
  created_at?: string;
16400
+ disconnected_at?: string | null;
16281
16401
  environment?: string;
16282
16402
  id?: string;
16403
+ initial_sync_completed_at?: string | null;
16404
+ initial_sync_started_at?: string | null;
16283
16405
  is_active?: boolean;
16284
16406
  label?: string | null;
16285
16407
  office_code?: string | null;
16286
16408
  redirect_uri?: string | null;
16409
+ superseded_at?: string | null;
16287
16410
  updated_at?: string;
16288
16411
  user_id?: string;
16289
16412
  };
@@ -16343,6 +16466,7 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
16343
16466
  twinfield_customers: {
16344
16467
  Row: {
16345
16468
  address: string | null;
16469
+ administration_code: string;
16346
16470
  city: string | null;
16347
16471
  country: string | null;
16348
16472
  created_at: string;
@@ -16362,6 +16486,7 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
16362
16486
  };
16363
16487
  Insert: {
16364
16488
  address?: string | null;
16489
+ administration_code?: string;
16365
16490
  city?: string | null;
16366
16491
  country?: string | null;
16367
16492
  created_at?: string;
@@ -16381,6 +16506,7 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
16381
16506
  };
16382
16507
  Update: {
16383
16508
  address?: string | null;
16509
+ administration_code?: string;
16384
16510
  city?: string | null;
16385
16511
  country?: string | null;
16386
16512
  created_at?: string;
@@ -16594,7 +16720,9 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
16594
16720
  };
16595
16721
  twinfield_invoice_settings: {
16596
16722
  Row: {
16723
+ administration_code: string | null;
16597
16724
  auto_invoice_enabled: boolean;
16725
+ auto_invoice_start_date: string | null;
16598
16726
  auto_invoice_trigger_statuses: string[];
16599
16727
  created_at: string;
16600
16728
  debtor_gl_account: string;
@@ -16608,15 +16736,19 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
16608
16736
  invoice_enabled_fo: boolean;
16609
16737
  invoice_enabled_ho: boolean;
16610
16738
  invoice_enabled_mo: boolean;
16739
+ needs_review: boolean;
16611
16740
  payment_gl_account: string;
16612
16741
  payment_journal_code: string;
16742
+ settings_confirmed_at: string | null;
16613
16743
  updated_at: string;
16614
16744
  user_id: string;
16615
16745
  vat_code_eu_reverse: string | null;
16616
16746
  vat_code_export: string | null;
16617
16747
  };
16618
16748
  Insert: {
16749
+ administration_code?: string | null;
16619
16750
  auto_invoice_enabled?: boolean;
16751
+ auto_invoice_start_date?: string | null;
16620
16752
  auto_invoice_trigger_statuses?: string[];
16621
16753
  created_at?: string;
16622
16754
  debtor_gl_account?: string;
@@ -16630,15 +16762,19 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
16630
16762
  invoice_enabled_fo?: boolean;
16631
16763
  invoice_enabled_ho?: boolean;
16632
16764
  invoice_enabled_mo?: boolean;
16765
+ needs_review?: boolean;
16633
16766
  payment_gl_account?: string;
16634
16767
  payment_journal_code?: string;
16768
+ settings_confirmed_at?: string | null;
16635
16769
  updated_at?: string;
16636
16770
  user_id: string;
16637
16771
  vat_code_eu_reverse?: string | null;
16638
16772
  vat_code_export?: string | null;
16639
16773
  };
16640
16774
  Update: {
16775
+ administration_code?: string | null;
16641
16776
  auto_invoice_enabled?: boolean;
16777
+ auto_invoice_start_date?: string | null;
16642
16778
  auto_invoice_trigger_statuses?: string[];
16643
16779
  created_at?: string;
16644
16780
  debtor_gl_account?: string;
@@ -16652,8 +16788,10 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
16652
16788
  invoice_enabled_fo?: boolean;
16653
16789
  invoice_enabled_ho?: boolean;
16654
16790
  invoice_enabled_mo?: boolean;
16791
+ needs_review?: boolean;
16655
16792
  payment_gl_account?: string;
16656
16793
  payment_journal_code?: string;
16794
+ settings_confirmed_at?: string | null;
16657
16795
  updated_at?: string;
16658
16796
  user_id?: string;
16659
16797
  vat_code_eu_reverse?: string | null;
@@ -19710,6 +19848,7 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
19710
19848
  gebruiker_id: string | null;
19711
19849
  gebruiker_naam: string;
19712
19850
  gestart_op: string | null;
19851
+ herkomst: string | null;
19713
19852
  id: string;
19714
19853
  idempotentie_sleutel: string | null;
19715
19854
  is_herprint: boolean;
@@ -19830,6 +19969,7 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
19830
19969
  gebruiker_id: string | null;
19831
19970
  gebruiker_naam: string;
19832
19971
  gestart_op: string | null;
19972
+ herkomst: string | null;
19833
19973
  id: string;
19834
19974
  idempotentie_sleutel: string | null;
19835
19975
  is_herprint: boolean;
@@ -20539,6 +20679,29 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
20539
20679
  roles: string[];
20540
20680
  }[];
20541
20681
  };
20682
+ list_monteur_absences: {
20683
+ Args: {
20684
+ _from: string;
20685
+ _to: string;
20686
+ };
20687
+ Returns: {
20688
+ absence_date: string;
20689
+ end_time: string;
20690
+ full_day: boolean;
20691
+ kind: string;
20692
+ monteur_id: string;
20693
+ start_time: string;
20694
+ }[];
20695
+ };
20696
+ list_monteurs: {
20697
+ Args: never;
20698
+ Returns: {
20699
+ avatar_url: string;
20700
+ display_name: string;
20701
+ email: string;
20702
+ id: string;
20703
+ }[];
20704
+ };
20542
20705
  list_my_planning_items: {
20543
20706
  Args: {
20544
20707
  _from: string;
@@ -21492,6 +21655,13 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
21492
21655
  isSetofReturn: false;
21493
21656
  };
21494
21657
  };
21658
+ pick_cleanup_maintenance: {
21659
+ Args: {
21660
+ _heartbeat_hours?: number;
21661
+ _log_days?: number;
21662
+ };
21663
+ Returns: import("../integrations/supabase/types").Json;
21664
+ };
21495
21665
  pick_complete_print: {
21496
21666
  Args: {
21497
21667
  _printer_id: string;
@@ -21543,6 +21713,14 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
21543
21713
  Args: never;
21544
21714
  Returns: string;
21545
21715
  };
21716
+ pick_day_counts: {
21717
+ Args: {
21718
+ _pick_day?: string;
21719
+ _screen_id?: string;
21720
+ _station_id?: string;
21721
+ };
21722
+ Returns: import("../integrations/supabase/types").Json;
21723
+ };
21546
21724
  pick_document_layout_data: {
21547
21725
  Args: {
21548
21726
  _layout_id: string;
@@ -21580,6 +21758,14 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
21580
21758
  };
21581
21759
  Returns: undefined;
21582
21760
  };
21761
+ pick_reprint_document: {
21762
+ Args: {
21763
+ _queue_item_id: string;
21764
+ _session_id: string;
21765
+ _throttle_seconds?: number;
21766
+ };
21767
+ Returns: string;
21768
+ };
21583
21769
  pick_reset_print: {
21584
21770
  Args: {
21585
21771
  _queue_item_id: string;
@@ -21645,6 +21831,12 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
21645
21831
  };
21646
21832
  Returns: string;
21647
21833
  };
21834
+ pick_sync_queue_throttled: {
21835
+ Args: {
21836
+ _min_seconds?: number;
21837
+ };
21838
+ Returns: import("../integrations/supabase/types").Json;
21839
+ };
21648
21840
  pickstation_get_orders_raw: {
21649
21841
  Args: never;
21650
21842
  Returns: import("../integrations/supabase/types").Json;
@@ -21790,6 +21982,12 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
21790
21982
  };
21791
21983
  Returns: boolean;
21792
21984
  };
21985
+ release_stale_order_invoice_links: {
21986
+ Args: {
21987
+ _minutes?: number;
21988
+ };
21989
+ Returns: number;
21990
+ };
21793
21991
  reorder_customer_price_groups: {
21794
21992
  Args: {
21795
21993
  _ids: string[];
@@ -22308,6 +22506,20 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
22308
22506
  };
22309
22507
  Returns: undefined;
22310
22508
  };
22509
+ twinfield_deactivate_connection: {
22510
+ Args: {
22511
+ p_connection_id: string;
22512
+ p_user_id: string;
22513
+ };
22514
+ Returns: import("../integrations/supabase/types").Json;
22515
+ };
22516
+ twinfield_handle_administration_change: {
22517
+ Args: {
22518
+ _administration_code: string;
22519
+ _user_id: string;
22520
+ };
22521
+ Returns: undefined;
22522
+ };
22311
22523
  twinfield_prune_push_queue: {
22312
22524
  Args: never;
22313
22525
  Returns: number;
@@ -22327,10 +22539,11 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
22327
22539
  p_company_name?: string;
22328
22540
  p_environment: string;
22329
22541
  p_office_code?: string;
22542
+ p_reset_sync?: boolean;
22330
22543
  p_status?: string;
22331
22544
  p_user_id: string;
22332
22545
  };
22333
- Returns: string;
22546
+ Returns: import("../integrations/supabase/types").Json;
22334
22547
  };
22335
22548
  upsert_auto_fulfillment_log: {
22336
22549
  Args: {
@@ -25156,6 +25369,42 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
25156
25369
  };
25157
25370
  Relationships: [];
25158
25371
  };
25372
+ document_bronregels: {
25373
+ Row: {
25374
+ bron: string;
25375
+ created_at: string;
25376
+ documenttype: string;
25377
+ herkomst: string;
25378
+ id: string;
25379
+ layout_id: string | null;
25380
+ updated_at: string;
25381
+ };
25382
+ Insert: {
25383
+ bron?: string;
25384
+ created_at?: string;
25385
+ documenttype: string;
25386
+ herkomst: string;
25387
+ id?: string;
25388
+ layout_id?: string | null;
25389
+ updated_at?: string;
25390
+ };
25391
+ Update: {
25392
+ bron?: string;
25393
+ created_at?: string;
25394
+ documenttype?: string;
25395
+ herkomst?: string;
25396
+ id?: string;
25397
+ layout_id?: string | null;
25398
+ updated_at?: string;
25399
+ };
25400
+ Relationships: [{
25401
+ foreignKeyName: "document_bronregels_layout_id_fkey";
25402
+ columns: ["layout_id"];
25403
+ isOneToOne: false;
25404
+ referencedRelation: "document_layouts";
25405
+ referencedColumns: ["id"];
25406
+ }];
25407
+ };
25159
25408
  document_formaat_printers: {
25160
25409
  Row: {
25161
25410
  created_at: string;
@@ -25433,6 +25682,7 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
25433
25682
  Row: {
25434
25683
  actief: boolean;
25435
25684
  breedte_mm: number;
25685
+ bron: string;
25436
25686
  config: import("../integrations/supabase/types").Json;
25437
25687
  created_at: string;
25438
25688
  created_by: string | null;
@@ -25450,12 +25700,14 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
25450
25700
  orientatie: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_orientation"];
25451
25701
  page_settings: import("../integrations/supabase/types").Json;
25452
25702
  papierformaat: string;
25703
+ systeem: boolean;
25453
25704
  thumbnail_url: string | null;
25454
25705
  updated_at: string;
25455
25706
  };
25456
25707
  Insert: {
25457
25708
  actief?: boolean;
25458
25709
  breedte_mm?: number;
25710
+ bron?: string;
25459
25711
  config?: import("../integrations/supabase/types").Json;
25460
25712
  created_at?: string;
25461
25713
  created_by?: string | null;
@@ -25473,12 +25725,14 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
25473
25725
  orientatie?: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_orientation"];
25474
25726
  page_settings?: import("../integrations/supabase/types").Json;
25475
25727
  papierformaat?: string;
25728
+ systeem?: boolean;
25476
25729
  thumbnail_url?: string | null;
25477
25730
  updated_at?: string;
25478
25731
  };
25479
25732
  Update: {
25480
25733
  actief?: boolean;
25481
25734
  breedte_mm?: number;
25735
+ bron?: string;
25482
25736
  config?: import("../integrations/supabase/types").Json;
25483
25737
  created_at?: string;
25484
25738
  created_by?: string | null;
@@ -25496,11 +25750,48 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
25496
25750
  orientatie?: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_orientation"];
25497
25751
  page_settings?: import("../integrations/supabase/types").Json;
25498
25752
  papierformaat?: string;
25753
+ systeem?: boolean;
25499
25754
  thumbnail_url?: string | null;
25500
25755
  updated_at?: string;
25501
25756
  };
25502
25757
  Relationships: [];
25503
25758
  };
25759
+ document_werkplek_printers: {
25760
+ Row: {
25761
+ created_at: string;
25762
+ documenttype: string;
25763
+ id: string;
25764
+ papierformaat: string | null;
25765
+ printer_id: string | null;
25766
+ updated_at: string;
25767
+ werkplek: string;
25768
+ };
25769
+ Insert: {
25770
+ created_at?: string;
25771
+ documenttype: string;
25772
+ id?: string;
25773
+ papierformaat?: string | null;
25774
+ printer_id?: string | null;
25775
+ updated_at?: string;
25776
+ werkplek: string;
25777
+ };
25778
+ Update: {
25779
+ created_at?: string;
25780
+ documenttype?: string;
25781
+ id?: string;
25782
+ papierformaat?: string | null;
25783
+ printer_id?: string | null;
25784
+ updated_at?: string;
25785
+ werkplek?: string;
25786
+ };
25787
+ Relationships: [{
25788
+ foreignKeyName: "document_werkplek_printers_printer_id_fkey";
25789
+ columns: ["printer_id"];
25790
+ isOneToOne: false;
25791
+ referencedRelation: "printers";
25792
+ referencedColumns: ["id"];
25793
+ }];
25794
+ };
25504
25795
  email_auth_connections: {
25505
25796
  Row: {
25506
25797
  access_token_encrypted: string | null;
@@ -29802,6 +30093,7 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
29802
30093
  };
29803
30094
  invoice_post_idempotency: {
29804
30095
  Row: {
30096
+ administration_code: string;
29805
30097
  client_request_id: string;
29806
30098
  completed_at: string | null;
29807
30099
  created_at: string;
@@ -29811,6 +30103,7 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
29811
30103
  user_id: string;
29812
30104
  };
29813
30105
  Insert: {
30106
+ administration_code?: string;
29814
30107
  client_request_id: string;
29815
30108
  completed_at?: string | null;
29816
30109
  created_at?: string;
@@ -29820,6 +30113,7 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
29820
30113
  user_id: string;
29821
30114
  };
29822
30115
  Update: {
30116
+ administration_code?: string;
29823
30117
  client_request_id?: string;
29824
30118
  completed_at?: string | null;
29825
30119
  created_at?: string;
@@ -33034,6 +33328,7 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
33034
33328
  enforce: boolean;
33035
33329
  is_active: boolean;
33036
33330
  last_seen_at: string;
33331
+ missing_count: number;
33037
33332
  module_id: string;
33038
33333
  name: string;
33039
33334
  shell_id: string | null;
@@ -33044,6 +33339,7 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
33044
33339
  enforce?: boolean;
33045
33340
  is_active?: boolean;
33046
33341
  last_seen_at?: string;
33342
+ missing_count?: number;
33047
33343
  module_id: string;
33048
33344
  name: string;
33049
33345
  shell_id?: string | null;
@@ -33054,6 +33350,7 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
33054
33350
  enforce?: boolean;
33055
33351
  is_active?: boolean;
33056
33352
  last_seen_at?: string;
33353
+ missing_count?: number;
33057
33354
  module_id?: string;
33058
33355
  name?: string;
33059
33356
  shell_id?: string | null;
@@ -34053,6 +34350,7 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
34053
34350
  };
34054
34351
  order_invoice_links: {
34055
34352
  Row: {
34353
+ administration_code: string | null;
34056
34354
  attempts: number;
34057
34355
  created_at: string;
34058
34356
  error_message: string | null;
@@ -34065,6 +34363,7 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
34065
34363
  updated_at: string;
34066
34364
  };
34067
34365
  Insert: {
34366
+ administration_code?: string | null;
34068
34367
  attempts?: number;
34069
34368
  created_at?: string;
34070
34369
  error_message?: string | null;
@@ -34077,6 +34376,7 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
34077
34376
  updated_at?: string;
34078
34377
  };
34079
34378
  Update: {
34379
+ administration_code?: string | null;
34080
34380
  attempts?: number;
34081
34381
  created_at?: string;
34082
34382
  error_message?: string | null;
@@ -35242,6 +35542,27 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
35242
35542
  referencedColumns: ["id"];
35243
35543
  }];
35244
35544
  };
35545
+ pick_sync_state: {
35546
+ Row: {
35547
+ id: boolean;
35548
+ last_cleanup_at: string | null;
35549
+ last_sync_at: string | null;
35550
+ updated_at: string;
35551
+ };
35552
+ Insert: {
35553
+ id?: boolean;
35554
+ last_cleanup_at?: string | null;
35555
+ last_sync_at?: string | null;
35556
+ updated_at?: string;
35557
+ };
35558
+ Update: {
35559
+ id?: boolean;
35560
+ last_cleanup_at?: string | null;
35561
+ last_sync_at?: string | null;
35562
+ updated_at?: string;
35563
+ };
35564
+ Relationships: [];
35565
+ };
35245
35566
  pick_task_document_types: {
35246
35567
  Row: {
35247
35568
  created_at: string;
@@ -35524,6 +35845,7 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
35524
35845
  gebruiker_id: string | null;
35525
35846
  gebruiker_naam: string;
35526
35847
  gestart_op: string | null;
35848
+ herkomst: string | null;
35527
35849
  id: string;
35528
35850
  idempotentie_sleutel: string | null;
35529
35851
  is_herprint: boolean;
@@ -35553,6 +35875,7 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
35553
35875
  gebruiker_id?: string | null;
35554
35876
  gebruiker_naam?: string;
35555
35877
  gestart_op?: string | null;
35878
+ herkomst?: string | null;
35556
35879
  id?: string;
35557
35880
  idempotentie_sleutel?: string | null;
35558
35881
  is_herprint?: boolean;
@@ -35582,6 +35905,7 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
35582
35905
  gebruiker_id?: string | null;
35583
35906
  gebruiker_naam?: string;
35584
35907
  gestart_op?: string | null;
35908
+ herkomst?: string | null;
35585
35909
  id?: string;
35586
35910
  idempotentie_sleutel?: string | null;
35587
35911
  is_herprint?: boolean;
@@ -38586,12 +38910,16 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
38586
38910
  company_name: string | null;
38587
38911
  connected_at: string | null;
38588
38912
  created_at: string;
38913
+ disconnected_at: string | null;
38589
38914
  environment: string;
38590
38915
  id: string;
38916
+ initial_sync_completed_at: string | null;
38917
+ initial_sync_started_at: string | null;
38591
38918
  is_active: boolean;
38592
38919
  label: string | null;
38593
38920
  office_code: string | null;
38594
38921
  redirect_uri: string | null;
38922
+ superseded_at: string | null;
38595
38923
  updated_at: string;
38596
38924
  user_id: string;
38597
38925
  };
@@ -38602,12 +38930,16 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
38602
38930
  company_name?: string | null;
38603
38931
  connected_at?: string | null;
38604
38932
  created_at?: string;
38933
+ disconnected_at?: string | null;
38605
38934
  environment: string;
38606
38935
  id?: string;
38936
+ initial_sync_completed_at?: string | null;
38937
+ initial_sync_started_at?: string | null;
38607
38938
  is_active?: boolean;
38608
38939
  label?: string | null;
38609
38940
  office_code?: string | null;
38610
38941
  redirect_uri?: string | null;
38942
+ superseded_at?: string | null;
38611
38943
  updated_at?: string;
38612
38944
  user_id: string;
38613
38945
  };
@@ -38618,12 +38950,16 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
38618
38950
  company_name?: string | null;
38619
38951
  connected_at?: string | null;
38620
38952
  created_at?: string;
38953
+ disconnected_at?: string | null;
38621
38954
  environment?: string;
38622
38955
  id?: string;
38956
+ initial_sync_completed_at?: string | null;
38957
+ initial_sync_started_at?: string | null;
38623
38958
  is_active?: boolean;
38624
38959
  label?: string | null;
38625
38960
  office_code?: string | null;
38626
38961
  redirect_uri?: string | null;
38962
+ superseded_at?: string | null;
38627
38963
  updated_at?: string;
38628
38964
  user_id?: string;
38629
38965
  };
@@ -38683,6 +39019,7 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
38683
39019
  twinfield_customers: {
38684
39020
  Row: {
38685
39021
  address: string | null;
39022
+ administration_code: string;
38686
39023
  city: string | null;
38687
39024
  country: string | null;
38688
39025
  created_at: string;
@@ -38702,6 +39039,7 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
38702
39039
  };
38703
39040
  Insert: {
38704
39041
  address?: string | null;
39042
+ administration_code?: string;
38705
39043
  city?: string | null;
38706
39044
  country?: string | null;
38707
39045
  created_at?: string;
@@ -38721,6 +39059,7 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
38721
39059
  };
38722
39060
  Update: {
38723
39061
  address?: string | null;
39062
+ administration_code?: string;
38724
39063
  city?: string | null;
38725
39064
  country?: string | null;
38726
39065
  created_at?: string;
@@ -38934,7 +39273,9 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
38934
39273
  };
38935
39274
  twinfield_invoice_settings: {
38936
39275
  Row: {
39276
+ administration_code: string | null;
38937
39277
  auto_invoice_enabled: boolean;
39278
+ auto_invoice_start_date: string | null;
38938
39279
  auto_invoice_trigger_statuses: string[];
38939
39280
  created_at: string;
38940
39281
  debtor_gl_account: string;
@@ -38948,15 +39289,19 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
38948
39289
  invoice_enabled_fo: boolean;
38949
39290
  invoice_enabled_ho: boolean;
38950
39291
  invoice_enabled_mo: boolean;
39292
+ needs_review: boolean;
38951
39293
  payment_gl_account: string;
38952
39294
  payment_journal_code: string;
39295
+ settings_confirmed_at: string | null;
38953
39296
  updated_at: string;
38954
39297
  user_id: string;
38955
39298
  vat_code_eu_reverse: string | null;
38956
39299
  vat_code_export: string | null;
38957
39300
  };
38958
39301
  Insert: {
39302
+ administration_code?: string | null;
38959
39303
  auto_invoice_enabled?: boolean;
39304
+ auto_invoice_start_date?: string | null;
38960
39305
  auto_invoice_trigger_statuses?: string[];
38961
39306
  created_at?: string;
38962
39307
  debtor_gl_account?: string;
@@ -38970,15 +39315,19 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
38970
39315
  invoice_enabled_fo?: boolean;
38971
39316
  invoice_enabled_ho?: boolean;
38972
39317
  invoice_enabled_mo?: boolean;
39318
+ needs_review?: boolean;
38973
39319
  payment_gl_account?: string;
38974
39320
  payment_journal_code?: string;
39321
+ settings_confirmed_at?: string | null;
38975
39322
  updated_at?: string;
38976
39323
  user_id: string;
38977
39324
  vat_code_eu_reverse?: string | null;
38978
39325
  vat_code_export?: string | null;
38979
39326
  };
38980
39327
  Update: {
39328
+ administration_code?: string | null;
38981
39329
  auto_invoice_enabled?: boolean;
39330
+ auto_invoice_start_date?: string | null;
38982
39331
  auto_invoice_trigger_statuses?: string[];
38983
39332
  created_at?: string;
38984
39333
  debtor_gl_account?: string;
@@ -38992,8 +39341,10 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
38992
39341
  invoice_enabled_fo?: boolean;
38993
39342
  invoice_enabled_ho?: boolean;
38994
39343
  invoice_enabled_mo?: boolean;
39344
+ needs_review?: boolean;
38995
39345
  payment_gl_account?: string;
38996
39346
  payment_journal_code?: string;
39347
+ settings_confirmed_at?: string | null;
38997
39348
  updated_at?: string;
38998
39349
  user_id?: string;
38999
39350
  vat_code_eu_reverse?: string | null;
@@ -42050,6 +42401,7 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
42050
42401
  gebruiker_id: string | null;
42051
42402
  gebruiker_naam: string;
42052
42403
  gestart_op: string | null;
42404
+ herkomst: string | null;
42053
42405
  id: string;
42054
42406
  idempotentie_sleutel: string | null;
42055
42407
  is_herprint: boolean;
@@ -42170,6 +42522,7 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
42170
42522
  gebruiker_id: string | null;
42171
42523
  gebruiker_naam: string;
42172
42524
  gestart_op: string | null;
42525
+ herkomst: string | null;
42173
42526
  id: string;
42174
42527
  idempotentie_sleutel: string | null;
42175
42528
  is_herprint: boolean;
@@ -42879,6 +43232,29 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
42879
43232
  roles: string[];
42880
43233
  }[];
42881
43234
  };
43235
+ list_monteur_absences: {
43236
+ Args: {
43237
+ _from: string;
43238
+ _to: string;
43239
+ };
43240
+ Returns: {
43241
+ absence_date: string;
43242
+ end_time: string;
43243
+ full_day: boolean;
43244
+ kind: string;
43245
+ monteur_id: string;
43246
+ start_time: string;
43247
+ }[];
43248
+ };
43249
+ list_monteurs: {
43250
+ Args: never;
43251
+ Returns: {
43252
+ avatar_url: string;
43253
+ display_name: string;
43254
+ email: string;
43255
+ id: string;
43256
+ }[];
43257
+ };
42882
43258
  list_my_planning_items: {
42883
43259
  Args: {
42884
43260
  _from: string;
@@ -43832,6 +44208,13 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
43832
44208
  isSetofReturn: false;
43833
44209
  };
43834
44210
  };
44211
+ pick_cleanup_maintenance: {
44212
+ Args: {
44213
+ _heartbeat_hours?: number;
44214
+ _log_days?: number;
44215
+ };
44216
+ Returns: import("../integrations/supabase/types").Json;
44217
+ };
43835
44218
  pick_complete_print: {
43836
44219
  Args: {
43837
44220
  _printer_id: string;
@@ -43883,6 +44266,14 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
43883
44266
  Args: never;
43884
44267
  Returns: string;
43885
44268
  };
44269
+ pick_day_counts: {
44270
+ Args: {
44271
+ _pick_day?: string;
44272
+ _screen_id?: string;
44273
+ _station_id?: string;
44274
+ };
44275
+ Returns: import("../integrations/supabase/types").Json;
44276
+ };
43886
44277
  pick_document_layout_data: {
43887
44278
  Args: {
43888
44279
  _layout_id: string;
@@ -43920,6 +44311,14 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
43920
44311
  };
43921
44312
  Returns: undefined;
43922
44313
  };
44314
+ pick_reprint_document: {
44315
+ Args: {
44316
+ _queue_item_id: string;
44317
+ _session_id: string;
44318
+ _throttle_seconds?: number;
44319
+ };
44320
+ Returns: string;
44321
+ };
43923
44322
  pick_reset_print: {
43924
44323
  Args: {
43925
44324
  _queue_item_id: string;
@@ -43985,6 +44384,12 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
43985
44384
  };
43986
44385
  Returns: string;
43987
44386
  };
44387
+ pick_sync_queue_throttled: {
44388
+ Args: {
44389
+ _min_seconds?: number;
44390
+ };
44391
+ Returns: import("../integrations/supabase/types").Json;
44392
+ };
43988
44393
  pickstation_get_orders_raw: {
43989
44394
  Args: never;
43990
44395
  Returns: import("../integrations/supabase/types").Json;
@@ -44130,6 +44535,12 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
44130
44535
  };
44131
44536
  Returns: boolean;
44132
44537
  };
44538
+ release_stale_order_invoice_links: {
44539
+ Args: {
44540
+ _minutes?: number;
44541
+ };
44542
+ Returns: number;
44543
+ };
44133
44544
  reorder_customer_price_groups: {
44134
44545
  Args: {
44135
44546
  _ids: string[];
@@ -44648,6 +45059,20 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
44648
45059
  };
44649
45060
  Returns: undefined;
44650
45061
  };
45062
+ twinfield_deactivate_connection: {
45063
+ Args: {
45064
+ p_connection_id: string;
45065
+ p_user_id: string;
45066
+ };
45067
+ Returns: import("../integrations/supabase/types").Json;
45068
+ };
45069
+ twinfield_handle_administration_change: {
45070
+ Args: {
45071
+ _administration_code: string;
45072
+ _user_id: string;
45073
+ };
45074
+ Returns: undefined;
45075
+ };
44651
45076
  twinfield_prune_push_queue: {
44652
45077
  Args: never;
44653
45078
  Returns: number;
@@ -44667,10 +45092,11 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
44667
45092
  p_company_name?: string;
44668
45093
  p_environment: string;
44669
45094
  p_office_code?: string;
45095
+ p_reset_sync?: boolean;
44670
45096
  p_status?: string;
44671
45097
  p_user_id: string;
44672
45098
  };
44673
- Returns: string;
45099
+ Returns: import("../integrations/supabase/types").Json;
44674
45100
  };
44675
45101
  upsert_auto_fulfillment_log: {
44676
45102
  Args: {
@@ -47500,6 +47926,42 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
47500
47926
  };
47501
47927
  Relationships: [];
47502
47928
  };
47929
+ document_bronregels: {
47930
+ Row: {
47931
+ bron: string;
47932
+ created_at: string;
47933
+ documenttype: string;
47934
+ herkomst: string;
47935
+ id: string;
47936
+ layout_id: string | null;
47937
+ updated_at: string;
47938
+ };
47939
+ Insert: {
47940
+ bron?: string;
47941
+ created_at?: string;
47942
+ documenttype: string;
47943
+ herkomst: string;
47944
+ id?: string;
47945
+ layout_id?: string | null;
47946
+ updated_at?: string;
47947
+ };
47948
+ Update: {
47949
+ bron?: string;
47950
+ created_at?: string;
47951
+ documenttype?: string;
47952
+ herkomst?: string;
47953
+ id?: string;
47954
+ layout_id?: string | null;
47955
+ updated_at?: string;
47956
+ };
47957
+ Relationships: [{
47958
+ foreignKeyName: "document_bronregels_layout_id_fkey";
47959
+ columns: ["layout_id"];
47960
+ isOneToOne: false;
47961
+ referencedRelation: "document_layouts";
47962
+ referencedColumns: ["id"];
47963
+ }];
47964
+ };
47503
47965
  document_formaat_printers: {
47504
47966
  Row: {
47505
47967
  created_at: string;
@@ -47777,6 +48239,7 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
47777
48239
  Row: {
47778
48240
  actief: boolean;
47779
48241
  breedte_mm: number;
48242
+ bron: string;
47780
48243
  config: import("../integrations/supabase/types").Json;
47781
48244
  created_at: string;
47782
48245
  created_by: string | null;
@@ -47794,12 +48257,14 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
47794
48257
  orientatie: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_orientation"];
47795
48258
  page_settings: import("../integrations/supabase/types").Json;
47796
48259
  papierformaat: string;
48260
+ systeem: boolean;
47797
48261
  thumbnail_url: string | null;
47798
48262
  updated_at: string;
47799
48263
  };
47800
48264
  Insert: {
47801
48265
  actief?: boolean;
47802
48266
  breedte_mm?: number;
48267
+ bron?: string;
47803
48268
  config?: import("../integrations/supabase/types").Json;
47804
48269
  created_at?: string;
47805
48270
  created_by?: string | null;
@@ -47817,12 +48282,14 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
47817
48282
  orientatie?: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_orientation"];
47818
48283
  page_settings?: import("../integrations/supabase/types").Json;
47819
48284
  papierformaat?: string;
48285
+ systeem?: boolean;
47820
48286
  thumbnail_url?: string | null;
47821
48287
  updated_at?: string;
47822
48288
  };
47823
48289
  Update: {
47824
48290
  actief?: boolean;
47825
48291
  breedte_mm?: number;
48292
+ bron?: string;
47826
48293
  config?: import("../integrations/supabase/types").Json;
47827
48294
  created_at?: string;
47828
48295
  created_by?: string | null;
@@ -47840,11 +48307,48 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
47840
48307
  orientatie?: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_orientation"];
47841
48308
  page_settings?: import("../integrations/supabase/types").Json;
47842
48309
  papierformaat?: string;
48310
+ systeem?: boolean;
47843
48311
  thumbnail_url?: string | null;
47844
48312
  updated_at?: string;
47845
48313
  };
47846
48314
  Relationships: [];
47847
48315
  };
48316
+ document_werkplek_printers: {
48317
+ Row: {
48318
+ created_at: string;
48319
+ documenttype: string;
48320
+ id: string;
48321
+ papierformaat: string | null;
48322
+ printer_id: string | null;
48323
+ updated_at: string;
48324
+ werkplek: string;
48325
+ };
48326
+ Insert: {
48327
+ created_at?: string;
48328
+ documenttype: string;
48329
+ id?: string;
48330
+ papierformaat?: string | null;
48331
+ printer_id?: string | null;
48332
+ updated_at?: string;
48333
+ werkplek: string;
48334
+ };
48335
+ Update: {
48336
+ created_at?: string;
48337
+ documenttype?: string;
48338
+ id?: string;
48339
+ papierformaat?: string | null;
48340
+ printer_id?: string | null;
48341
+ updated_at?: string;
48342
+ werkplek?: string;
48343
+ };
48344
+ Relationships: [{
48345
+ foreignKeyName: "document_werkplek_printers_printer_id_fkey";
48346
+ columns: ["printer_id"];
48347
+ isOneToOne: false;
48348
+ referencedRelation: "printers";
48349
+ referencedColumns: ["id"];
48350
+ }];
48351
+ };
47848
48352
  email_auth_connections: {
47849
48353
  Row: {
47850
48354
  access_token_encrypted: string | null;
@@ -52146,6 +52650,7 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
52146
52650
  };
52147
52651
  invoice_post_idempotency: {
52148
52652
  Row: {
52653
+ administration_code: string;
52149
52654
  client_request_id: string;
52150
52655
  completed_at: string | null;
52151
52656
  created_at: string;
@@ -52155,6 +52660,7 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
52155
52660
  user_id: string;
52156
52661
  };
52157
52662
  Insert: {
52663
+ administration_code?: string;
52158
52664
  client_request_id: string;
52159
52665
  completed_at?: string | null;
52160
52666
  created_at?: string;
@@ -52164,6 +52670,7 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
52164
52670
  user_id: string;
52165
52671
  };
52166
52672
  Update: {
52673
+ administration_code?: string;
52167
52674
  client_request_id?: string;
52168
52675
  completed_at?: string | null;
52169
52676
  created_at?: string;
@@ -55378,6 +55885,7 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
55378
55885
  enforce: boolean;
55379
55886
  is_active: boolean;
55380
55887
  last_seen_at: string;
55888
+ missing_count: number;
55381
55889
  module_id: string;
55382
55890
  name: string;
55383
55891
  shell_id: string | null;
@@ -55388,6 +55896,7 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
55388
55896
  enforce?: boolean;
55389
55897
  is_active?: boolean;
55390
55898
  last_seen_at?: string;
55899
+ missing_count?: number;
55391
55900
  module_id: string;
55392
55901
  name: string;
55393
55902
  shell_id?: string | null;
@@ -55398,6 +55907,7 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
55398
55907
  enforce?: boolean;
55399
55908
  is_active?: boolean;
55400
55909
  last_seen_at?: string;
55910
+ missing_count?: number;
55401
55911
  module_id?: string;
55402
55912
  name?: string;
55403
55913
  shell_id?: string | null;
@@ -56397,6 +56907,7 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
56397
56907
  };
56398
56908
  order_invoice_links: {
56399
56909
  Row: {
56910
+ administration_code: string | null;
56400
56911
  attempts: number;
56401
56912
  created_at: string;
56402
56913
  error_message: string | null;
@@ -56409,6 +56920,7 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
56409
56920
  updated_at: string;
56410
56921
  };
56411
56922
  Insert: {
56923
+ administration_code?: string | null;
56412
56924
  attempts?: number;
56413
56925
  created_at?: string;
56414
56926
  error_message?: string | null;
@@ -56421,6 +56933,7 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
56421
56933
  updated_at?: string;
56422
56934
  };
56423
56935
  Update: {
56936
+ administration_code?: string | null;
56424
56937
  attempts?: number;
56425
56938
  created_at?: string;
56426
56939
  error_message?: string | null;
@@ -57586,6 +58099,27 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
57586
58099
  referencedColumns: ["id"];
57587
58100
  }];
57588
58101
  };
58102
+ pick_sync_state: {
58103
+ Row: {
58104
+ id: boolean;
58105
+ last_cleanup_at: string | null;
58106
+ last_sync_at: string | null;
58107
+ updated_at: string;
58108
+ };
58109
+ Insert: {
58110
+ id?: boolean;
58111
+ last_cleanup_at?: string | null;
58112
+ last_sync_at?: string | null;
58113
+ updated_at?: string;
58114
+ };
58115
+ Update: {
58116
+ id?: boolean;
58117
+ last_cleanup_at?: string | null;
58118
+ last_sync_at?: string | null;
58119
+ updated_at?: string;
58120
+ };
58121
+ Relationships: [];
58122
+ };
57589
58123
  pick_task_document_types: {
57590
58124
  Row: {
57591
58125
  created_at: string;
@@ -57868,6 +58402,7 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
57868
58402
  gebruiker_id: string | null;
57869
58403
  gebruiker_naam: string;
57870
58404
  gestart_op: string | null;
58405
+ herkomst: string | null;
57871
58406
  id: string;
57872
58407
  idempotentie_sleutel: string | null;
57873
58408
  is_herprint: boolean;
@@ -57897,6 +58432,7 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
57897
58432
  gebruiker_id?: string | null;
57898
58433
  gebruiker_naam?: string;
57899
58434
  gestart_op?: string | null;
58435
+ herkomst?: string | null;
57900
58436
  id?: string;
57901
58437
  idempotentie_sleutel?: string | null;
57902
58438
  is_herprint?: boolean;
@@ -57926,6 +58462,7 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
57926
58462
  gebruiker_id?: string | null;
57927
58463
  gebruiker_naam?: string;
57928
58464
  gestart_op?: string | null;
58465
+ herkomst?: string | null;
57929
58466
  id?: string;
57930
58467
  idempotentie_sleutel?: string | null;
57931
58468
  is_herprint?: boolean;
@@ -60930,12 +61467,16 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
60930
61467
  company_name: string | null;
60931
61468
  connected_at: string | null;
60932
61469
  created_at: string;
61470
+ disconnected_at: string | null;
60933
61471
  environment: string;
60934
61472
  id: string;
61473
+ initial_sync_completed_at: string | null;
61474
+ initial_sync_started_at: string | null;
60935
61475
  is_active: boolean;
60936
61476
  label: string | null;
60937
61477
  office_code: string | null;
60938
61478
  redirect_uri: string | null;
61479
+ superseded_at: string | null;
60939
61480
  updated_at: string;
60940
61481
  user_id: string;
60941
61482
  };
@@ -60946,12 +61487,16 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
60946
61487
  company_name?: string | null;
60947
61488
  connected_at?: string | null;
60948
61489
  created_at?: string;
61490
+ disconnected_at?: string | null;
60949
61491
  environment: string;
60950
61492
  id?: string;
61493
+ initial_sync_completed_at?: string | null;
61494
+ initial_sync_started_at?: string | null;
60951
61495
  is_active?: boolean;
60952
61496
  label?: string | null;
60953
61497
  office_code?: string | null;
60954
61498
  redirect_uri?: string | null;
61499
+ superseded_at?: string | null;
60955
61500
  updated_at?: string;
60956
61501
  user_id: string;
60957
61502
  };
@@ -60962,12 +61507,16 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
60962
61507
  company_name?: string | null;
60963
61508
  connected_at?: string | null;
60964
61509
  created_at?: string;
61510
+ disconnected_at?: string | null;
60965
61511
  environment?: string;
60966
61512
  id?: string;
61513
+ initial_sync_completed_at?: string | null;
61514
+ initial_sync_started_at?: string | null;
60967
61515
  is_active?: boolean;
60968
61516
  label?: string | null;
60969
61517
  office_code?: string | null;
60970
61518
  redirect_uri?: string | null;
61519
+ superseded_at?: string | null;
60971
61520
  updated_at?: string;
60972
61521
  user_id?: string;
60973
61522
  };
@@ -61027,6 +61576,7 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
61027
61576
  twinfield_customers: {
61028
61577
  Row: {
61029
61578
  address: string | null;
61579
+ administration_code: string;
61030
61580
  city: string | null;
61031
61581
  country: string | null;
61032
61582
  created_at: string;
@@ -61046,6 +61596,7 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
61046
61596
  };
61047
61597
  Insert: {
61048
61598
  address?: string | null;
61599
+ administration_code?: string;
61049
61600
  city?: string | null;
61050
61601
  country?: string | null;
61051
61602
  created_at?: string;
@@ -61065,6 +61616,7 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
61065
61616
  };
61066
61617
  Update: {
61067
61618
  address?: string | null;
61619
+ administration_code?: string;
61068
61620
  city?: string | null;
61069
61621
  country?: string | null;
61070
61622
  created_at?: string;
@@ -61278,7 +61830,9 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
61278
61830
  };
61279
61831
  twinfield_invoice_settings: {
61280
61832
  Row: {
61833
+ administration_code: string | null;
61281
61834
  auto_invoice_enabled: boolean;
61835
+ auto_invoice_start_date: string | null;
61282
61836
  auto_invoice_trigger_statuses: string[];
61283
61837
  created_at: string;
61284
61838
  debtor_gl_account: string;
@@ -61292,15 +61846,19 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
61292
61846
  invoice_enabled_fo: boolean;
61293
61847
  invoice_enabled_ho: boolean;
61294
61848
  invoice_enabled_mo: boolean;
61849
+ needs_review: boolean;
61295
61850
  payment_gl_account: string;
61296
61851
  payment_journal_code: string;
61852
+ settings_confirmed_at: string | null;
61297
61853
  updated_at: string;
61298
61854
  user_id: string;
61299
61855
  vat_code_eu_reverse: string | null;
61300
61856
  vat_code_export: string | null;
61301
61857
  };
61302
61858
  Insert: {
61859
+ administration_code?: string | null;
61303
61860
  auto_invoice_enabled?: boolean;
61861
+ auto_invoice_start_date?: string | null;
61304
61862
  auto_invoice_trigger_statuses?: string[];
61305
61863
  created_at?: string;
61306
61864
  debtor_gl_account?: string;
@@ -61314,15 +61872,19 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
61314
61872
  invoice_enabled_fo?: boolean;
61315
61873
  invoice_enabled_ho?: boolean;
61316
61874
  invoice_enabled_mo?: boolean;
61875
+ needs_review?: boolean;
61317
61876
  payment_gl_account?: string;
61318
61877
  payment_journal_code?: string;
61878
+ settings_confirmed_at?: string | null;
61319
61879
  updated_at?: string;
61320
61880
  user_id: string;
61321
61881
  vat_code_eu_reverse?: string | null;
61322
61882
  vat_code_export?: string | null;
61323
61883
  };
61324
61884
  Update: {
61885
+ administration_code?: string | null;
61325
61886
  auto_invoice_enabled?: boolean;
61887
+ auto_invoice_start_date?: string | null;
61326
61888
  auto_invoice_trigger_statuses?: string[];
61327
61889
  created_at?: string;
61328
61890
  debtor_gl_account?: string;
@@ -61336,8 +61898,10 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
61336
61898
  invoice_enabled_fo?: boolean;
61337
61899
  invoice_enabled_ho?: boolean;
61338
61900
  invoice_enabled_mo?: boolean;
61901
+ needs_review?: boolean;
61339
61902
  payment_gl_account?: string;
61340
61903
  payment_journal_code?: string;
61904
+ settings_confirmed_at?: string | null;
61341
61905
  updated_at?: string;
61342
61906
  user_id?: string;
61343
61907
  vat_code_eu_reverse?: string | null;
@@ -64394,6 +64958,7 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
64394
64958
  gebruiker_id: string | null;
64395
64959
  gebruiker_naam: string;
64396
64960
  gestart_op: string | null;
64961
+ herkomst: string | null;
64397
64962
  id: string;
64398
64963
  idempotentie_sleutel: string | null;
64399
64964
  is_herprint: boolean;
@@ -64514,6 +65079,7 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
64514
65079
  gebruiker_id: string | null;
64515
65080
  gebruiker_naam: string;
64516
65081
  gestart_op: string | null;
65082
+ herkomst: string | null;
64517
65083
  id: string;
64518
65084
  idempotentie_sleutel: string | null;
64519
65085
  is_herprint: boolean;
@@ -65223,6 +65789,29 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
65223
65789
  roles: string[];
65224
65790
  }[];
65225
65791
  };
65792
+ list_monteur_absences: {
65793
+ Args: {
65794
+ _from: string;
65795
+ _to: string;
65796
+ };
65797
+ Returns: {
65798
+ absence_date: string;
65799
+ end_time: string;
65800
+ full_day: boolean;
65801
+ kind: string;
65802
+ monteur_id: string;
65803
+ start_time: string;
65804
+ }[];
65805
+ };
65806
+ list_monteurs: {
65807
+ Args: never;
65808
+ Returns: {
65809
+ avatar_url: string;
65810
+ display_name: string;
65811
+ email: string;
65812
+ id: string;
65813
+ }[];
65814
+ };
65226
65815
  list_my_planning_items: {
65227
65816
  Args: {
65228
65817
  _from: string;
@@ -66176,6 +66765,13 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
66176
66765
  isSetofReturn: false;
66177
66766
  };
66178
66767
  };
66768
+ pick_cleanup_maintenance: {
66769
+ Args: {
66770
+ _heartbeat_hours?: number;
66771
+ _log_days?: number;
66772
+ };
66773
+ Returns: import("../integrations/supabase/types").Json;
66774
+ };
66179
66775
  pick_complete_print: {
66180
66776
  Args: {
66181
66777
  _printer_id: string;
@@ -66227,6 +66823,14 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
66227
66823
  Args: never;
66228
66824
  Returns: string;
66229
66825
  };
66826
+ pick_day_counts: {
66827
+ Args: {
66828
+ _pick_day?: string;
66829
+ _screen_id?: string;
66830
+ _station_id?: string;
66831
+ };
66832
+ Returns: import("../integrations/supabase/types").Json;
66833
+ };
66230
66834
  pick_document_layout_data: {
66231
66835
  Args: {
66232
66836
  _layout_id: string;
@@ -66264,6 +66868,14 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
66264
66868
  };
66265
66869
  Returns: undefined;
66266
66870
  };
66871
+ pick_reprint_document: {
66872
+ Args: {
66873
+ _queue_item_id: string;
66874
+ _session_id: string;
66875
+ _throttle_seconds?: number;
66876
+ };
66877
+ Returns: string;
66878
+ };
66267
66879
  pick_reset_print: {
66268
66880
  Args: {
66269
66881
  _queue_item_id: string;
@@ -66329,6 +66941,12 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
66329
66941
  };
66330
66942
  Returns: string;
66331
66943
  };
66944
+ pick_sync_queue_throttled: {
66945
+ Args: {
66946
+ _min_seconds?: number;
66947
+ };
66948
+ Returns: import("../integrations/supabase/types").Json;
66949
+ };
66332
66950
  pickstation_get_orders_raw: {
66333
66951
  Args: never;
66334
66952
  Returns: import("../integrations/supabase/types").Json;
@@ -66474,6 +67092,12 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
66474
67092
  };
66475
67093
  Returns: boolean;
66476
67094
  };
67095
+ release_stale_order_invoice_links: {
67096
+ Args: {
67097
+ _minutes?: number;
67098
+ };
67099
+ Returns: number;
67100
+ };
66477
67101
  reorder_customer_price_groups: {
66478
67102
  Args: {
66479
67103
  _ids: string[];
@@ -66992,6 +67616,20 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
66992
67616
  };
66993
67617
  Returns: undefined;
66994
67618
  };
67619
+ twinfield_deactivate_connection: {
67620
+ Args: {
67621
+ p_connection_id: string;
67622
+ p_user_id: string;
67623
+ };
67624
+ Returns: import("../integrations/supabase/types").Json;
67625
+ };
67626
+ twinfield_handle_administration_change: {
67627
+ Args: {
67628
+ _administration_code: string;
67629
+ _user_id: string;
67630
+ };
67631
+ Returns: undefined;
67632
+ };
66995
67633
  twinfield_prune_push_queue: {
66996
67634
  Args: never;
66997
67635
  Returns: number;
@@ -67011,10 +67649,11 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
67011
67649
  p_company_name?: string;
67012
67650
  p_environment: string;
67013
67651
  p_office_code?: string;
67652
+ p_reset_sync?: boolean;
67014
67653
  p_status?: string;
67015
67654
  p_user_id: string;
67016
67655
  };
67017
- Returns: string;
67656
+ Returns: import("../integrations/supabase/types").Json;
67018
67657
  };
67019
67658
  upsert_auto_fulfillment_log: {
67020
67659
  Args: {
@@ -69846,6 +70485,42 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
69846
70485
  };
69847
70486
  Relationships: [];
69848
70487
  };
70488
+ document_bronregels: {
70489
+ Row: {
70490
+ bron: string;
70491
+ created_at: string;
70492
+ documenttype: string;
70493
+ herkomst: string;
70494
+ id: string;
70495
+ layout_id: string | null;
70496
+ updated_at: string;
70497
+ };
70498
+ Insert: {
70499
+ bron?: string;
70500
+ created_at?: string;
70501
+ documenttype: string;
70502
+ herkomst: string;
70503
+ id?: string;
70504
+ layout_id?: string | null;
70505
+ updated_at?: string;
70506
+ };
70507
+ Update: {
70508
+ bron?: string;
70509
+ created_at?: string;
70510
+ documenttype?: string;
70511
+ herkomst?: string;
70512
+ id?: string;
70513
+ layout_id?: string | null;
70514
+ updated_at?: string;
70515
+ };
70516
+ Relationships: [{
70517
+ foreignKeyName: "document_bronregels_layout_id_fkey";
70518
+ columns: ["layout_id"];
70519
+ isOneToOne: false;
70520
+ referencedRelation: "document_layouts";
70521
+ referencedColumns: ["id"];
70522
+ }];
70523
+ };
69849
70524
  document_formaat_printers: {
69850
70525
  Row: {
69851
70526
  created_at: string;
@@ -70123,6 +70798,7 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
70123
70798
  Row: {
70124
70799
  actief: boolean;
70125
70800
  breedte_mm: number;
70801
+ bron: string;
70126
70802
  config: import("../integrations/supabase/types").Json;
70127
70803
  created_at: string;
70128
70804
  created_by: string | null;
@@ -70140,12 +70816,14 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
70140
70816
  orientatie: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_orientation"];
70141
70817
  page_settings: import("../integrations/supabase/types").Json;
70142
70818
  papierformaat: string;
70819
+ systeem: boolean;
70143
70820
  thumbnail_url: string | null;
70144
70821
  updated_at: string;
70145
70822
  };
70146
70823
  Insert: {
70147
70824
  actief?: boolean;
70148
70825
  breedte_mm?: number;
70826
+ bron?: string;
70149
70827
  config?: import("../integrations/supabase/types").Json;
70150
70828
  created_at?: string;
70151
70829
  created_by?: string | null;
@@ -70163,12 +70841,14 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
70163
70841
  orientatie?: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_orientation"];
70164
70842
  page_settings?: import("../integrations/supabase/types").Json;
70165
70843
  papierformaat?: string;
70844
+ systeem?: boolean;
70166
70845
  thumbnail_url?: string | null;
70167
70846
  updated_at?: string;
70168
70847
  };
70169
70848
  Update: {
70170
70849
  actief?: boolean;
70171
70850
  breedte_mm?: number;
70851
+ bron?: string;
70172
70852
  config?: import("../integrations/supabase/types").Json;
70173
70853
  created_at?: string;
70174
70854
  created_by?: string | null;
@@ -70186,11 +70866,48 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
70186
70866
  orientatie?: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_orientation"];
70187
70867
  page_settings?: import("../integrations/supabase/types").Json;
70188
70868
  papierformaat?: string;
70869
+ systeem?: boolean;
70189
70870
  thumbnail_url?: string | null;
70190
70871
  updated_at?: string;
70191
70872
  };
70192
70873
  Relationships: [];
70193
70874
  };
70875
+ document_werkplek_printers: {
70876
+ Row: {
70877
+ created_at: string;
70878
+ documenttype: string;
70879
+ id: string;
70880
+ papierformaat: string | null;
70881
+ printer_id: string | null;
70882
+ updated_at: string;
70883
+ werkplek: string;
70884
+ };
70885
+ Insert: {
70886
+ created_at?: string;
70887
+ documenttype: string;
70888
+ id?: string;
70889
+ papierformaat?: string | null;
70890
+ printer_id?: string | null;
70891
+ updated_at?: string;
70892
+ werkplek: string;
70893
+ };
70894
+ Update: {
70895
+ created_at?: string;
70896
+ documenttype?: string;
70897
+ id?: string;
70898
+ papierformaat?: string | null;
70899
+ printer_id?: string | null;
70900
+ updated_at?: string;
70901
+ werkplek?: string;
70902
+ };
70903
+ Relationships: [{
70904
+ foreignKeyName: "document_werkplek_printers_printer_id_fkey";
70905
+ columns: ["printer_id"];
70906
+ isOneToOne: false;
70907
+ referencedRelation: "printers";
70908
+ referencedColumns: ["id"];
70909
+ }];
70910
+ };
70194
70911
  email_auth_connections: {
70195
70912
  Row: {
70196
70913
  access_token_encrypted: string | null;
@@ -74492,6 +75209,7 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
74492
75209
  };
74493
75210
  invoice_post_idempotency: {
74494
75211
  Row: {
75212
+ administration_code: string;
74495
75213
  client_request_id: string;
74496
75214
  completed_at: string | null;
74497
75215
  created_at: string;
@@ -74501,6 +75219,7 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
74501
75219
  user_id: string;
74502
75220
  };
74503
75221
  Insert: {
75222
+ administration_code?: string;
74504
75223
  client_request_id: string;
74505
75224
  completed_at?: string | null;
74506
75225
  created_at?: string;
@@ -74510,6 +75229,7 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
74510
75229
  user_id: string;
74511
75230
  };
74512
75231
  Update: {
75232
+ administration_code?: string;
74513
75233
  client_request_id?: string;
74514
75234
  completed_at?: string | null;
74515
75235
  created_at?: string;
@@ -77724,6 +78444,7 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
77724
78444
  enforce: boolean;
77725
78445
  is_active: boolean;
77726
78446
  last_seen_at: string;
78447
+ missing_count: number;
77727
78448
  module_id: string;
77728
78449
  name: string;
77729
78450
  shell_id: string | null;
@@ -77734,6 +78455,7 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
77734
78455
  enforce?: boolean;
77735
78456
  is_active?: boolean;
77736
78457
  last_seen_at?: string;
78458
+ missing_count?: number;
77737
78459
  module_id: string;
77738
78460
  name: string;
77739
78461
  shell_id?: string | null;
@@ -77744,6 +78466,7 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
77744
78466
  enforce?: boolean;
77745
78467
  is_active?: boolean;
77746
78468
  last_seen_at?: string;
78469
+ missing_count?: number;
77747
78470
  module_id?: string;
77748
78471
  name?: string;
77749
78472
  shell_id?: string | null;
@@ -78743,6 +79466,7 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
78743
79466
  };
78744
79467
  order_invoice_links: {
78745
79468
  Row: {
79469
+ administration_code: string | null;
78746
79470
  attempts: number;
78747
79471
  created_at: string;
78748
79472
  error_message: string | null;
@@ -78755,6 +79479,7 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
78755
79479
  updated_at: string;
78756
79480
  };
78757
79481
  Insert: {
79482
+ administration_code?: string | null;
78758
79483
  attempts?: number;
78759
79484
  created_at?: string;
78760
79485
  error_message?: string | null;
@@ -78767,6 +79492,7 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
78767
79492
  updated_at?: string;
78768
79493
  };
78769
79494
  Update: {
79495
+ administration_code?: string | null;
78770
79496
  attempts?: number;
78771
79497
  created_at?: string;
78772
79498
  error_message?: string | null;
@@ -79932,6 +80658,27 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
79932
80658
  referencedColumns: ["id"];
79933
80659
  }];
79934
80660
  };
80661
+ pick_sync_state: {
80662
+ Row: {
80663
+ id: boolean;
80664
+ last_cleanup_at: string | null;
80665
+ last_sync_at: string | null;
80666
+ updated_at: string;
80667
+ };
80668
+ Insert: {
80669
+ id?: boolean;
80670
+ last_cleanup_at?: string | null;
80671
+ last_sync_at?: string | null;
80672
+ updated_at?: string;
80673
+ };
80674
+ Update: {
80675
+ id?: boolean;
80676
+ last_cleanup_at?: string | null;
80677
+ last_sync_at?: string | null;
80678
+ updated_at?: string;
80679
+ };
80680
+ Relationships: [];
80681
+ };
79935
80682
  pick_task_document_types: {
79936
80683
  Row: {
79937
80684
  created_at: string;
@@ -80214,6 +80961,7 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
80214
80961
  gebruiker_id: string | null;
80215
80962
  gebruiker_naam: string;
80216
80963
  gestart_op: string | null;
80964
+ herkomst: string | null;
80217
80965
  id: string;
80218
80966
  idempotentie_sleutel: string | null;
80219
80967
  is_herprint: boolean;
@@ -80243,6 +80991,7 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
80243
80991
  gebruiker_id?: string | null;
80244
80992
  gebruiker_naam?: string;
80245
80993
  gestart_op?: string | null;
80994
+ herkomst?: string | null;
80246
80995
  id?: string;
80247
80996
  idempotentie_sleutel?: string | null;
80248
80997
  is_herprint?: boolean;
@@ -80272,6 +81021,7 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
80272
81021
  gebruiker_id?: string | null;
80273
81022
  gebruiker_naam?: string;
80274
81023
  gestart_op?: string | null;
81024
+ herkomst?: string | null;
80275
81025
  id?: string;
80276
81026
  idempotentie_sleutel?: string | null;
80277
81027
  is_herprint?: boolean;
@@ -83276,12 +84026,16 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
83276
84026
  company_name: string | null;
83277
84027
  connected_at: string | null;
83278
84028
  created_at: string;
84029
+ disconnected_at: string | null;
83279
84030
  environment: string;
83280
84031
  id: string;
84032
+ initial_sync_completed_at: string | null;
84033
+ initial_sync_started_at: string | null;
83281
84034
  is_active: boolean;
83282
84035
  label: string | null;
83283
84036
  office_code: string | null;
83284
84037
  redirect_uri: string | null;
84038
+ superseded_at: string | null;
83285
84039
  updated_at: string;
83286
84040
  user_id: string;
83287
84041
  };
@@ -83292,12 +84046,16 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
83292
84046
  company_name?: string | null;
83293
84047
  connected_at?: string | null;
83294
84048
  created_at?: string;
84049
+ disconnected_at?: string | null;
83295
84050
  environment: string;
83296
84051
  id?: string;
84052
+ initial_sync_completed_at?: string | null;
84053
+ initial_sync_started_at?: string | null;
83297
84054
  is_active?: boolean;
83298
84055
  label?: string | null;
83299
84056
  office_code?: string | null;
83300
84057
  redirect_uri?: string | null;
84058
+ superseded_at?: string | null;
83301
84059
  updated_at?: string;
83302
84060
  user_id: string;
83303
84061
  };
@@ -83308,12 +84066,16 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
83308
84066
  company_name?: string | null;
83309
84067
  connected_at?: string | null;
83310
84068
  created_at?: string;
84069
+ disconnected_at?: string | null;
83311
84070
  environment?: string;
83312
84071
  id?: string;
84072
+ initial_sync_completed_at?: string | null;
84073
+ initial_sync_started_at?: string | null;
83313
84074
  is_active?: boolean;
83314
84075
  label?: string | null;
83315
84076
  office_code?: string | null;
83316
84077
  redirect_uri?: string | null;
84078
+ superseded_at?: string | null;
83317
84079
  updated_at?: string;
83318
84080
  user_id?: string;
83319
84081
  };
@@ -83373,6 +84135,7 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
83373
84135
  twinfield_customers: {
83374
84136
  Row: {
83375
84137
  address: string | null;
84138
+ administration_code: string;
83376
84139
  city: string | null;
83377
84140
  country: string | null;
83378
84141
  created_at: string;
@@ -83392,6 +84155,7 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
83392
84155
  };
83393
84156
  Insert: {
83394
84157
  address?: string | null;
84158
+ administration_code?: string;
83395
84159
  city?: string | null;
83396
84160
  country?: string | null;
83397
84161
  created_at?: string;
@@ -83411,6 +84175,7 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
83411
84175
  };
83412
84176
  Update: {
83413
84177
  address?: string | null;
84178
+ administration_code?: string;
83414
84179
  city?: string | null;
83415
84180
  country?: string | null;
83416
84181
  created_at?: string;
@@ -83624,7 +84389,9 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
83624
84389
  };
83625
84390
  twinfield_invoice_settings: {
83626
84391
  Row: {
84392
+ administration_code: string | null;
83627
84393
  auto_invoice_enabled: boolean;
84394
+ auto_invoice_start_date: string | null;
83628
84395
  auto_invoice_trigger_statuses: string[];
83629
84396
  created_at: string;
83630
84397
  debtor_gl_account: string;
@@ -83638,15 +84405,19 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
83638
84405
  invoice_enabled_fo: boolean;
83639
84406
  invoice_enabled_ho: boolean;
83640
84407
  invoice_enabled_mo: boolean;
84408
+ needs_review: boolean;
83641
84409
  payment_gl_account: string;
83642
84410
  payment_journal_code: string;
84411
+ settings_confirmed_at: string | null;
83643
84412
  updated_at: string;
83644
84413
  user_id: string;
83645
84414
  vat_code_eu_reverse: string | null;
83646
84415
  vat_code_export: string | null;
83647
84416
  };
83648
84417
  Insert: {
84418
+ administration_code?: string | null;
83649
84419
  auto_invoice_enabled?: boolean;
84420
+ auto_invoice_start_date?: string | null;
83650
84421
  auto_invoice_trigger_statuses?: string[];
83651
84422
  created_at?: string;
83652
84423
  debtor_gl_account?: string;
@@ -83660,15 +84431,19 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
83660
84431
  invoice_enabled_fo?: boolean;
83661
84432
  invoice_enabled_ho?: boolean;
83662
84433
  invoice_enabled_mo?: boolean;
84434
+ needs_review?: boolean;
83663
84435
  payment_gl_account?: string;
83664
84436
  payment_journal_code?: string;
84437
+ settings_confirmed_at?: string | null;
83665
84438
  updated_at?: string;
83666
84439
  user_id: string;
83667
84440
  vat_code_eu_reverse?: string | null;
83668
84441
  vat_code_export?: string | null;
83669
84442
  };
83670
84443
  Update: {
84444
+ administration_code?: string | null;
83671
84445
  auto_invoice_enabled?: boolean;
84446
+ auto_invoice_start_date?: string | null;
83672
84447
  auto_invoice_trigger_statuses?: string[];
83673
84448
  created_at?: string;
83674
84449
  debtor_gl_account?: string;
@@ -83682,8 +84457,10 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
83682
84457
  invoice_enabled_fo?: boolean;
83683
84458
  invoice_enabled_ho?: boolean;
83684
84459
  invoice_enabled_mo?: boolean;
84460
+ needs_review?: boolean;
83685
84461
  payment_gl_account?: string;
83686
84462
  payment_journal_code?: string;
84463
+ settings_confirmed_at?: string | null;
83687
84464
  updated_at?: string;
83688
84465
  user_id?: string;
83689
84466
  vat_code_eu_reverse?: string | null;
@@ -86740,6 +87517,7 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
86740
87517
  gebruiker_id: string | null;
86741
87518
  gebruiker_naam: string;
86742
87519
  gestart_op: string | null;
87520
+ herkomst: string | null;
86743
87521
  id: string;
86744
87522
  idempotentie_sleutel: string | null;
86745
87523
  is_herprint: boolean;
@@ -86860,6 +87638,7 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
86860
87638
  gebruiker_id: string | null;
86861
87639
  gebruiker_naam: string;
86862
87640
  gestart_op: string | null;
87641
+ herkomst: string | null;
86863
87642
  id: string;
86864
87643
  idempotentie_sleutel: string | null;
86865
87644
  is_herprint: boolean;
@@ -87569,6 +88348,29 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
87569
88348
  roles: string[];
87570
88349
  }[];
87571
88350
  };
88351
+ list_monteur_absences: {
88352
+ Args: {
88353
+ _from: string;
88354
+ _to: string;
88355
+ };
88356
+ Returns: {
88357
+ absence_date: string;
88358
+ end_time: string;
88359
+ full_day: boolean;
88360
+ kind: string;
88361
+ monteur_id: string;
88362
+ start_time: string;
88363
+ }[];
88364
+ };
88365
+ list_monteurs: {
88366
+ Args: never;
88367
+ Returns: {
88368
+ avatar_url: string;
88369
+ display_name: string;
88370
+ email: string;
88371
+ id: string;
88372
+ }[];
88373
+ };
87572
88374
  list_my_planning_items: {
87573
88375
  Args: {
87574
88376
  _from: string;
@@ -88522,6 +89324,13 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
88522
89324
  isSetofReturn: false;
88523
89325
  };
88524
89326
  };
89327
+ pick_cleanup_maintenance: {
89328
+ Args: {
89329
+ _heartbeat_hours?: number;
89330
+ _log_days?: number;
89331
+ };
89332
+ Returns: import("../integrations/supabase/types").Json;
89333
+ };
88525
89334
  pick_complete_print: {
88526
89335
  Args: {
88527
89336
  _printer_id: string;
@@ -88573,6 +89382,14 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
88573
89382
  Args: never;
88574
89383
  Returns: string;
88575
89384
  };
89385
+ pick_day_counts: {
89386
+ Args: {
89387
+ _pick_day?: string;
89388
+ _screen_id?: string;
89389
+ _station_id?: string;
89390
+ };
89391
+ Returns: import("../integrations/supabase/types").Json;
89392
+ };
88576
89393
  pick_document_layout_data: {
88577
89394
  Args: {
88578
89395
  _layout_id: string;
@@ -88610,6 +89427,14 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
88610
89427
  };
88611
89428
  Returns: undefined;
88612
89429
  };
89430
+ pick_reprint_document: {
89431
+ Args: {
89432
+ _queue_item_id: string;
89433
+ _session_id: string;
89434
+ _throttle_seconds?: number;
89435
+ };
89436
+ Returns: string;
89437
+ };
88613
89438
  pick_reset_print: {
88614
89439
  Args: {
88615
89440
  _queue_item_id: string;
@@ -88675,6 +89500,12 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
88675
89500
  };
88676
89501
  Returns: string;
88677
89502
  };
89503
+ pick_sync_queue_throttled: {
89504
+ Args: {
89505
+ _min_seconds?: number;
89506
+ };
89507
+ Returns: import("../integrations/supabase/types").Json;
89508
+ };
88678
89509
  pickstation_get_orders_raw: {
88679
89510
  Args: never;
88680
89511
  Returns: import("../integrations/supabase/types").Json;
@@ -88820,6 +89651,12 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
88820
89651
  };
88821
89652
  Returns: boolean;
88822
89653
  };
89654
+ release_stale_order_invoice_links: {
89655
+ Args: {
89656
+ _minutes?: number;
89657
+ };
89658
+ Returns: number;
89659
+ };
88823
89660
  reorder_customer_price_groups: {
88824
89661
  Args: {
88825
89662
  _ids: string[];
@@ -89338,6 +90175,20 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
89338
90175
  };
89339
90176
  Returns: undefined;
89340
90177
  };
90178
+ twinfield_deactivate_connection: {
90179
+ Args: {
90180
+ p_connection_id: string;
90181
+ p_user_id: string;
90182
+ };
90183
+ Returns: import("../integrations/supabase/types").Json;
90184
+ };
90185
+ twinfield_handle_administration_change: {
90186
+ Args: {
90187
+ _administration_code: string;
90188
+ _user_id: string;
90189
+ };
90190
+ Returns: undefined;
90191
+ };
89341
90192
  twinfield_prune_push_queue: {
89342
90193
  Args: never;
89343
90194
  Returns: number;
@@ -89357,10 +90208,11 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
89357
90208
  p_company_name?: string;
89358
90209
  p_environment: string;
89359
90210
  p_office_code?: string;
90211
+ p_reset_sync?: boolean;
89360
90212
  p_status?: string;
89361
90213
  p_user_id: string;
89362
90214
  };
89363
- Returns: string;
90215
+ Returns: import("../integrations/supabase/types").Json;
89364
90216
  };
89365
90217
  upsert_auto_fulfillment_log: {
89366
90218
  Args: {
@@ -92190,6 +93042,42 @@ export declare const reorderCarriers: import("@tanstack/start-client-core").Requ
92190
93042
  };
92191
93043
  Relationships: [];
92192
93044
  };
93045
+ document_bronregels: {
93046
+ Row: {
93047
+ bron: string;
93048
+ created_at: string;
93049
+ documenttype: string;
93050
+ herkomst: string;
93051
+ id: string;
93052
+ layout_id: string | null;
93053
+ updated_at: string;
93054
+ };
93055
+ Insert: {
93056
+ bron?: string;
93057
+ created_at?: string;
93058
+ documenttype: string;
93059
+ herkomst: string;
93060
+ id?: string;
93061
+ layout_id?: string | null;
93062
+ updated_at?: string;
93063
+ };
93064
+ Update: {
93065
+ bron?: string;
93066
+ created_at?: string;
93067
+ documenttype?: string;
93068
+ herkomst?: string;
93069
+ id?: string;
93070
+ layout_id?: string | null;
93071
+ updated_at?: string;
93072
+ };
93073
+ Relationships: [{
93074
+ foreignKeyName: "document_bronregels_layout_id_fkey";
93075
+ columns: ["layout_id"];
93076
+ isOneToOne: false;
93077
+ referencedRelation: "document_layouts";
93078
+ referencedColumns: ["id"];
93079
+ }];
93080
+ };
92193
93081
  document_formaat_printers: {
92194
93082
  Row: {
92195
93083
  created_at: string;
@@ -92467,6 +93355,7 @@ export declare const reorderCarriers: import("@tanstack/start-client-core").Requ
92467
93355
  Row: {
92468
93356
  actief: boolean;
92469
93357
  breedte_mm: number;
93358
+ bron: string;
92470
93359
  config: import("../integrations/supabase/types").Json;
92471
93360
  created_at: string;
92472
93361
  created_by: string | null;
@@ -92484,12 +93373,14 @@ export declare const reorderCarriers: import("@tanstack/start-client-core").Requ
92484
93373
  orientatie: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_orientation"];
92485
93374
  page_settings: import("../integrations/supabase/types").Json;
92486
93375
  papierformaat: string;
93376
+ systeem: boolean;
92487
93377
  thumbnail_url: string | null;
92488
93378
  updated_at: string;
92489
93379
  };
92490
93380
  Insert: {
92491
93381
  actief?: boolean;
92492
93382
  breedte_mm?: number;
93383
+ bron?: string;
92493
93384
  config?: import("../integrations/supabase/types").Json;
92494
93385
  created_at?: string;
92495
93386
  created_by?: string | null;
@@ -92507,12 +93398,14 @@ export declare const reorderCarriers: import("@tanstack/start-client-core").Requ
92507
93398
  orientatie?: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_orientation"];
92508
93399
  page_settings?: import("../integrations/supabase/types").Json;
92509
93400
  papierformaat?: string;
93401
+ systeem?: boolean;
92510
93402
  thumbnail_url?: string | null;
92511
93403
  updated_at?: string;
92512
93404
  };
92513
93405
  Update: {
92514
93406
  actief?: boolean;
92515
93407
  breedte_mm?: number;
93408
+ bron?: string;
92516
93409
  config?: import("../integrations/supabase/types").Json;
92517
93410
  created_at?: string;
92518
93411
  created_by?: string | null;
@@ -92530,11 +93423,48 @@ export declare const reorderCarriers: import("@tanstack/start-client-core").Requ
92530
93423
  orientatie?: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_orientation"];
92531
93424
  page_settings?: import("../integrations/supabase/types").Json;
92532
93425
  papierformaat?: string;
93426
+ systeem?: boolean;
92533
93427
  thumbnail_url?: string | null;
92534
93428
  updated_at?: string;
92535
93429
  };
92536
93430
  Relationships: [];
92537
93431
  };
93432
+ document_werkplek_printers: {
93433
+ Row: {
93434
+ created_at: string;
93435
+ documenttype: string;
93436
+ id: string;
93437
+ papierformaat: string | null;
93438
+ printer_id: string | null;
93439
+ updated_at: string;
93440
+ werkplek: string;
93441
+ };
93442
+ Insert: {
93443
+ created_at?: string;
93444
+ documenttype: string;
93445
+ id?: string;
93446
+ papierformaat?: string | null;
93447
+ printer_id?: string | null;
93448
+ updated_at?: string;
93449
+ werkplek: string;
93450
+ };
93451
+ Update: {
93452
+ created_at?: string;
93453
+ documenttype?: string;
93454
+ id?: string;
93455
+ papierformaat?: string | null;
93456
+ printer_id?: string | null;
93457
+ updated_at?: string;
93458
+ werkplek?: string;
93459
+ };
93460
+ Relationships: [{
93461
+ foreignKeyName: "document_werkplek_printers_printer_id_fkey";
93462
+ columns: ["printer_id"];
93463
+ isOneToOne: false;
93464
+ referencedRelation: "printers";
93465
+ referencedColumns: ["id"];
93466
+ }];
93467
+ };
92538
93468
  email_auth_connections: {
92539
93469
  Row: {
92540
93470
  access_token_encrypted: string | null;
@@ -96836,6 +97766,7 @@ export declare const reorderCarriers: import("@tanstack/start-client-core").Requ
96836
97766
  };
96837
97767
  invoice_post_idempotency: {
96838
97768
  Row: {
97769
+ administration_code: string;
96839
97770
  client_request_id: string;
96840
97771
  completed_at: string | null;
96841
97772
  created_at: string;
@@ -96845,6 +97776,7 @@ export declare const reorderCarriers: import("@tanstack/start-client-core").Requ
96845
97776
  user_id: string;
96846
97777
  };
96847
97778
  Insert: {
97779
+ administration_code?: string;
96848
97780
  client_request_id: string;
96849
97781
  completed_at?: string | null;
96850
97782
  created_at?: string;
@@ -96854,6 +97786,7 @@ export declare const reorderCarriers: import("@tanstack/start-client-core").Requ
96854
97786
  user_id: string;
96855
97787
  };
96856
97788
  Update: {
97789
+ administration_code?: string;
96857
97790
  client_request_id?: string;
96858
97791
  completed_at?: string | null;
96859
97792
  created_at?: string;
@@ -100068,6 +101001,7 @@ export declare const reorderCarriers: import("@tanstack/start-client-core").Requ
100068
101001
  enforce: boolean;
100069
101002
  is_active: boolean;
100070
101003
  last_seen_at: string;
101004
+ missing_count: number;
100071
101005
  module_id: string;
100072
101006
  name: string;
100073
101007
  shell_id: string | null;
@@ -100078,6 +101012,7 @@ export declare const reorderCarriers: import("@tanstack/start-client-core").Requ
100078
101012
  enforce?: boolean;
100079
101013
  is_active?: boolean;
100080
101014
  last_seen_at?: string;
101015
+ missing_count?: number;
100081
101016
  module_id: string;
100082
101017
  name: string;
100083
101018
  shell_id?: string | null;
@@ -100088,6 +101023,7 @@ export declare const reorderCarriers: import("@tanstack/start-client-core").Requ
100088
101023
  enforce?: boolean;
100089
101024
  is_active?: boolean;
100090
101025
  last_seen_at?: string;
101026
+ missing_count?: number;
100091
101027
  module_id?: string;
100092
101028
  name?: string;
100093
101029
  shell_id?: string | null;
@@ -101087,6 +102023,7 @@ export declare const reorderCarriers: import("@tanstack/start-client-core").Requ
101087
102023
  };
101088
102024
  order_invoice_links: {
101089
102025
  Row: {
102026
+ administration_code: string | null;
101090
102027
  attempts: number;
101091
102028
  created_at: string;
101092
102029
  error_message: string | null;
@@ -101099,6 +102036,7 @@ export declare const reorderCarriers: import("@tanstack/start-client-core").Requ
101099
102036
  updated_at: string;
101100
102037
  };
101101
102038
  Insert: {
102039
+ administration_code?: string | null;
101102
102040
  attempts?: number;
101103
102041
  created_at?: string;
101104
102042
  error_message?: string | null;
@@ -101111,6 +102049,7 @@ export declare const reorderCarriers: import("@tanstack/start-client-core").Requ
101111
102049
  updated_at?: string;
101112
102050
  };
101113
102051
  Update: {
102052
+ administration_code?: string | null;
101114
102053
  attempts?: number;
101115
102054
  created_at?: string;
101116
102055
  error_message?: string | null;
@@ -102276,6 +103215,27 @@ export declare const reorderCarriers: import("@tanstack/start-client-core").Requ
102276
103215
  referencedColumns: ["id"];
102277
103216
  }];
102278
103217
  };
103218
+ pick_sync_state: {
103219
+ Row: {
103220
+ id: boolean;
103221
+ last_cleanup_at: string | null;
103222
+ last_sync_at: string | null;
103223
+ updated_at: string;
103224
+ };
103225
+ Insert: {
103226
+ id?: boolean;
103227
+ last_cleanup_at?: string | null;
103228
+ last_sync_at?: string | null;
103229
+ updated_at?: string;
103230
+ };
103231
+ Update: {
103232
+ id?: boolean;
103233
+ last_cleanup_at?: string | null;
103234
+ last_sync_at?: string | null;
103235
+ updated_at?: string;
103236
+ };
103237
+ Relationships: [];
103238
+ };
102279
103239
  pick_task_document_types: {
102280
103240
  Row: {
102281
103241
  created_at: string;
@@ -102558,6 +103518,7 @@ export declare const reorderCarriers: import("@tanstack/start-client-core").Requ
102558
103518
  gebruiker_id: string | null;
102559
103519
  gebruiker_naam: string;
102560
103520
  gestart_op: string | null;
103521
+ herkomst: string | null;
102561
103522
  id: string;
102562
103523
  idempotentie_sleutel: string | null;
102563
103524
  is_herprint: boolean;
@@ -102587,6 +103548,7 @@ export declare const reorderCarriers: import("@tanstack/start-client-core").Requ
102587
103548
  gebruiker_id?: string | null;
102588
103549
  gebruiker_naam?: string;
102589
103550
  gestart_op?: string | null;
103551
+ herkomst?: string | null;
102590
103552
  id?: string;
102591
103553
  idempotentie_sleutel?: string | null;
102592
103554
  is_herprint?: boolean;
@@ -102616,6 +103578,7 @@ export declare const reorderCarriers: import("@tanstack/start-client-core").Requ
102616
103578
  gebruiker_id?: string | null;
102617
103579
  gebruiker_naam?: string;
102618
103580
  gestart_op?: string | null;
103581
+ herkomst?: string | null;
102619
103582
  id?: string;
102620
103583
  idempotentie_sleutel?: string | null;
102621
103584
  is_herprint?: boolean;
@@ -105620,12 +106583,16 @@ export declare const reorderCarriers: import("@tanstack/start-client-core").Requ
105620
106583
  company_name: string | null;
105621
106584
  connected_at: string | null;
105622
106585
  created_at: string;
106586
+ disconnected_at: string | null;
105623
106587
  environment: string;
105624
106588
  id: string;
106589
+ initial_sync_completed_at: string | null;
106590
+ initial_sync_started_at: string | null;
105625
106591
  is_active: boolean;
105626
106592
  label: string | null;
105627
106593
  office_code: string | null;
105628
106594
  redirect_uri: string | null;
106595
+ superseded_at: string | null;
105629
106596
  updated_at: string;
105630
106597
  user_id: string;
105631
106598
  };
@@ -105636,12 +106603,16 @@ export declare const reorderCarriers: import("@tanstack/start-client-core").Requ
105636
106603
  company_name?: string | null;
105637
106604
  connected_at?: string | null;
105638
106605
  created_at?: string;
106606
+ disconnected_at?: string | null;
105639
106607
  environment: string;
105640
106608
  id?: string;
106609
+ initial_sync_completed_at?: string | null;
106610
+ initial_sync_started_at?: string | null;
105641
106611
  is_active?: boolean;
105642
106612
  label?: string | null;
105643
106613
  office_code?: string | null;
105644
106614
  redirect_uri?: string | null;
106615
+ superseded_at?: string | null;
105645
106616
  updated_at?: string;
105646
106617
  user_id: string;
105647
106618
  };
@@ -105652,12 +106623,16 @@ export declare const reorderCarriers: import("@tanstack/start-client-core").Requ
105652
106623
  company_name?: string | null;
105653
106624
  connected_at?: string | null;
105654
106625
  created_at?: string;
106626
+ disconnected_at?: string | null;
105655
106627
  environment?: string;
105656
106628
  id?: string;
106629
+ initial_sync_completed_at?: string | null;
106630
+ initial_sync_started_at?: string | null;
105657
106631
  is_active?: boolean;
105658
106632
  label?: string | null;
105659
106633
  office_code?: string | null;
105660
106634
  redirect_uri?: string | null;
106635
+ superseded_at?: string | null;
105661
106636
  updated_at?: string;
105662
106637
  user_id?: string;
105663
106638
  };
@@ -105717,6 +106692,7 @@ export declare const reorderCarriers: import("@tanstack/start-client-core").Requ
105717
106692
  twinfield_customers: {
105718
106693
  Row: {
105719
106694
  address: string | null;
106695
+ administration_code: string;
105720
106696
  city: string | null;
105721
106697
  country: string | null;
105722
106698
  created_at: string;
@@ -105736,6 +106712,7 @@ export declare const reorderCarriers: import("@tanstack/start-client-core").Requ
105736
106712
  };
105737
106713
  Insert: {
105738
106714
  address?: string | null;
106715
+ administration_code?: string;
105739
106716
  city?: string | null;
105740
106717
  country?: string | null;
105741
106718
  created_at?: string;
@@ -105755,6 +106732,7 @@ export declare const reorderCarriers: import("@tanstack/start-client-core").Requ
105755
106732
  };
105756
106733
  Update: {
105757
106734
  address?: string | null;
106735
+ administration_code?: string;
105758
106736
  city?: string | null;
105759
106737
  country?: string | null;
105760
106738
  created_at?: string;
@@ -105968,7 +106946,9 @@ export declare const reorderCarriers: import("@tanstack/start-client-core").Requ
105968
106946
  };
105969
106947
  twinfield_invoice_settings: {
105970
106948
  Row: {
106949
+ administration_code: string | null;
105971
106950
  auto_invoice_enabled: boolean;
106951
+ auto_invoice_start_date: string | null;
105972
106952
  auto_invoice_trigger_statuses: string[];
105973
106953
  created_at: string;
105974
106954
  debtor_gl_account: string;
@@ -105982,15 +106962,19 @@ export declare const reorderCarriers: import("@tanstack/start-client-core").Requ
105982
106962
  invoice_enabled_fo: boolean;
105983
106963
  invoice_enabled_ho: boolean;
105984
106964
  invoice_enabled_mo: boolean;
106965
+ needs_review: boolean;
105985
106966
  payment_gl_account: string;
105986
106967
  payment_journal_code: string;
106968
+ settings_confirmed_at: string | null;
105987
106969
  updated_at: string;
105988
106970
  user_id: string;
105989
106971
  vat_code_eu_reverse: string | null;
105990
106972
  vat_code_export: string | null;
105991
106973
  };
105992
106974
  Insert: {
106975
+ administration_code?: string | null;
105993
106976
  auto_invoice_enabled?: boolean;
106977
+ auto_invoice_start_date?: string | null;
105994
106978
  auto_invoice_trigger_statuses?: string[];
105995
106979
  created_at?: string;
105996
106980
  debtor_gl_account?: string;
@@ -106004,15 +106988,19 @@ export declare const reorderCarriers: import("@tanstack/start-client-core").Requ
106004
106988
  invoice_enabled_fo?: boolean;
106005
106989
  invoice_enabled_ho?: boolean;
106006
106990
  invoice_enabled_mo?: boolean;
106991
+ needs_review?: boolean;
106007
106992
  payment_gl_account?: string;
106008
106993
  payment_journal_code?: string;
106994
+ settings_confirmed_at?: string | null;
106009
106995
  updated_at?: string;
106010
106996
  user_id: string;
106011
106997
  vat_code_eu_reverse?: string | null;
106012
106998
  vat_code_export?: string | null;
106013
106999
  };
106014
107000
  Update: {
107001
+ administration_code?: string | null;
106015
107002
  auto_invoice_enabled?: boolean;
107003
+ auto_invoice_start_date?: string | null;
106016
107004
  auto_invoice_trigger_statuses?: string[];
106017
107005
  created_at?: string;
106018
107006
  debtor_gl_account?: string;
@@ -106026,8 +107014,10 @@ export declare const reorderCarriers: import("@tanstack/start-client-core").Requ
106026
107014
  invoice_enabled_fo?: boolean;
106027
107015
  invoice_enabled_ho?: boolean;
106028
107016
  invoice_enabled_mo?: boolean;
107017
+ needs_review?: boolean;
106029
107018
  payment_gl_account?: string;
106030
107019
  payment_journal_code?: string;
107020
+ settings_confirmed_at?: string | null;
106031
107021
  updated_at?: string;
106032
107022
  user_id?: string;
106033
107023
  vat_code_eu_reverse?: string | null;
@@ -109084,6 +110074,7 @@ export declare const reorderCarriers: import("@tanstack/start-client-core").Requ
109084
110074
  gebruiker_id: string | null;
109085
110075
  gebruiker_naam: string;
109086
110076
  gestart_op: string | null;
110077
+ herkomst: string | null;
109087
110078
  id: string;
109088
110079
  idempotentie_sleutel: string | null;
109089
110080
  is_herprint: boolean;
@@ -109204,6 +110195,7 @@ export declare const reorderCarriers: import("@tanstack/start-client-core").Requ
109204
110195
  gebruiker_id: string | null;
109205
110196
  gebruiker_naam: string;
109206
110197
  gestart_op: string | null;
110198
+ herkomst: string | null;
109207
110199
  id: string;
109208
110200
  idempotentie_sleutel: string | null;
109209
110201
  is_herprint: boolean;
@@ -109913,6 +110905,29 @@ export declare const reorderCarriers: import("@tanstack/start-client-core").Requ
109913
110905
  roles: string[];
109914
110906
  }[];
109915
110907
  };
110908
+ list_monteur_absences: {
110909
+ Args: {
110910
+ _from: string;
110911
+ _to: string;
110912
+ };
110913
+ Returns: {
110914
+ absence_date: string;
110915
+ end_time: string;
110916
+ full_day: boolean;
110917
+ kind: string;
110918
+ monteur_id: string;
110919
+ start_time: string;
110920
+ }[];
110921
+ };
110922
+ list_monteurs: {
110923
+ Args: never;
110924
+ Returns: {
110925
+ avatar_url: string;
110926
+ display_name: string;
110927
+ email: string;
110928
+ id: string;
110929
+ }[];
110930
+ };
109916
110931
  list_my_planning_items: {
109917
110932
  Args: {
109918
110933
  _from: string;
@@ -110866,6 +111881,13 @@ export declare const reorderCarriers: import("@tanstack/start-client-core").Requ
110866
111881
  isSetofReturn: false;
110867
111882
  };
110868
111883
  };
111884
+ pick_cleanup_maintenance: {
111885
+ Args: {
111886
+ _heartbeat_hours?: number;
111887
+ _log_days?: number;
111888
+ };
111889
+ Returns: import("../integrations/supabase/types").Json;
111890
+ };
110869
111891
  pick_complete_print: {
110870
111892
  Args: {
110871
111893
  _printer_id: string;
@@ -110917,6 +111939,14 @@ export declare const reorderCarriers: import("@tanstack/start-client-core").Requ
110917
111939
  Args: never;
110918
111940
  Returns: string;
110919
111941
  };
111942
+ pick_day_counts: {
111943
+ Args: {
111944
+ _pick_day?: string;
111945
+ _screen_id?: string;
111946
+ _station_id?: string;
111947
+ };
111948
+ Returns: import("../integrations/supabase/types").Json;
111949
+ };
110920
111950
  pick_document_layout_data: {
110921
111951
  Args: {
110922
111952
  _layout_id: string;
@@ -110954,6 +111984,14 @@ export declare const reorderCarriers: import("@tanstack/start-client-core").Requ
110954
111984
  };
110955
111985
  Returns: undefined;
110956
111986
  };
111987
+ pick_reprint_document: {
111988
+ Args: {
111989
+ _queue_item_id: string;
111990
+ _session_id: string;
111991
+ _throttle_seconds?: number;
111992
+ };
111993
+ Returns: string;
111994
+ };
110957
111995
  pick_reset_print: {
110958
111996
  Args: {
110959
111997
  _queue_item_id: string;
@@ -111019,6 +112057,12 @@ export declare const reorderCarriers: import("@tanstack/start-client-core").Requ
111019
112057
  };
111020
112058
  Returns: string;
111021
112059
  };
112060
+ pick_sync_queue_throttled: {
112061
+ Args: {
112062
+ _min_seconds?: number;
112063
+ };
112064
+ Returns: import("../integrations/supabase/types").Json;
112065
+ };
111022
112066
  pickstation_get_orders_raw: {
111023
112067
  Args: never;
111024
112068
  Returns: import("../integrations/supabase/types").Json;
@@ -111164,6 +112208,12 @@ export declare const reorderCarriers: import("@tanstack/start-client-core").Requ
111164
112208
  };
111165
112209
  Returns: boolean;
111166
112210
  };
112211
+ release_stale_order_invoice_links: {
112212
+ Args: {
112213
+ _minutes?: number;
112214
+ };
112215
+ Returns: number;
112216
+ };
111167
112217
  reorder_customer_price_groups: {
111168
112218
  Args: {
111169
112219
  _ids: string[];
@@ -111682,6 +112732,20 @@ export declare const reorderCarriers: import("@tanstack/start-client-core").Requ
111682
112732
  };
111683
112733
  Returns: undefined;
111684
112734
  };
112735
+ twinfield_deactivate_connection: {
112736
+ Args: {
112737
+ p_connection_id: string;
112738
+ p_user_id: string;
112739
+ };
112740
+ Returns: import("../integrations/supabase/types").Json;
112741
+ };
112742
+ twinfield_handle_administration_change: {
112743
+ Args: {
112744
+ _administration_code: string;
112745
+ _user_id: string;
112746
+ };
112747
+ Returns: undefined;
112748
+ };
111685
112749
  twinfield_prune_push_queue: {
111686
112750
  Args: never;
111687
112751
  Returns: number;
@@ -111701,10 +112765,11 @@ export declare const reorderCarriers: import("@tanstack/start-client-core").Requ
111701
112765
  p_company_name?: string;
111702
112766
  p_environment: string;
111703
112767
  p_office_code?: string;
112768
+ p_reset_sync?: boolean;
111704
112769
  p_status?: string;
111705
112770
  p_user_id: string;
111706
112771
  };
111707
- Returns: string;
112772
+ Returns: import("../integrations/supabase/types").Json;
111708
112773
  };
111709
112774
  upsert_auto_fulfillment_log: {
111710
112775
  Args: {