@flowselections/admin-installatietechniek 1.0.6 → 1.0.8

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.
@@ -2818,6 +2818,44 @@ export type Database = {
2818
2818
  };
2819
2819
  Relationships: [];
2820
2820
  };
2821
+ document_bronregels: {
2822
+ Row: {
2823
+ bron: string;
2824
+ created_at: string;
2825
+ documenttype: string;
2826
+ herkomst: string;
2827
+ id: string;
2828
+ layout_id: string | null;
2829
+ updated_at: string;
2830
+ };
2831
+ Insert: {
2832
+ bron?: string;
2833
+ created_at?: string;
2834
+ documenttype: string;
2835
+ herkomst: string;
2836
+ id?: string;
2837
+ layout_id?: string | null;
2838
+ updated_at?: string;
2839
+ };
2840
+ Update: {
2841
+ bron?: string;
2842
+ created_at?: string;
2843
+ documenttype?: string;
2844
+ herkomst?: string;
2845
+ id?: string;
2846
+ layout_id?: string | null;
2847
+ updated_at?: string;
2848
+ };
2849
+ Relationships: [
2850
+ {
2851
+ foreignKeyName: "document_bronregels_layout_id_fkey";
2852
+ columns: ["layout_id"];
2853
+ isOneToOne: false;
2854
+ referencedRelation: "document_layouts";
2855
+ referencedColumns: ["id"];
2856
+ }
2857
+ ];
2858
+ };
2821
2859
  document_formaat_printers: {
2822
2860
  Row: {
2823
2861
  created_at: string;
@@ -3108,6 +3146,7 @@ export type Database = {
3108
3146
  Row: {
3109
3147
  actief: boolean;
3110
3148
  breedte_mm: number;
3149
+ bron: string;
3111
3150
  config: Json;
3112
3151
  created_at: string;
3113
3152
  created_by: string | null;
@@ -3125,12 +3164,14 @@ export type Database = {
3125
3164
  orientatie: Database["public"]["Enums"]["doc_orientation"];
3126
3165
  page_settings: Json;
3127
3166
  papierformaat: string;
3167
+ systeem: boolean;
3128
3168
  thumbnail_url: string | null;
3129
3169
  updated_at: string;
3130
3170
  };
3131
3171
  Insert: {
3132
3172
  actief?: boolean;
3133
3173
  breedte_mm?: number;
3174
+ bron?: string;
3134
3175
  config?: Json;
3135
3176
  created_at?: string;
3136
3177
  created_by?: string | null;
@@ -3148,12 +3189,14 @@ export type Database = {
3148
3189
  orientatie?: Database["public"]["Enums"]["doc_orientation"];
3149
3190
  page_settings?: Json;
3150
3191
  papierformaat?: string;
3192
+ systeem?: boolean;
3151
3193
  thumbnail_url?: string | null;
3152
3194
  updated_at?: string;
3153
3195
  };
3154
3196
  Update: {
3155
3197
  actief?: boolean;
3156
3198
  breedte_mm?: number;
3199
+ bron?: string;
3157
3200
  config?: Json;
3158
3201
  created_at?: string;
3159
3202
  created_by?: string | null;
@@ -3171,11 +3214,50 @@ export type Database = {
3171
3214
  orientatie?: Database["public"]["Enums"]["doc_orientation"];
3172
3215
  page_settings?: Json;
3173
3216
  papierformaat?: string;
3217
+ systeem?: boolean;
3174
3218
  thumbnail_url?: string | null;
3175
3219
  updated_at?: string;
3176
3220
  };
3177
3221
  Relationships: [];
3178
3222
  };
3223
+ document_werkplek_printers: {
3224
+ Row: {
3225
+ created_at: string;
3226
+ documenttype: string;
3227
+ id: string;
3228
+ papierformaat: string | null;
3229
+ printer_id: string | null;
3230
+ updated_at: string;
3231
+ werkplek: string;
3232
+ };
3233
+ Insert: {
3234
+ created_at?: string;
3235
+ documenttype: string;
3236
+ id?: string;
3237
+ papierformaat?: string | null;
3238
+ printer_id?: string | null;
3239
+ updated_at?: string;
3240
+ werkplek: string;
3241
+ };
3242
+ Update: {
3243
+ created_at?: string;
3244
+ documenttype?: string;
3245
+ id?: string;
3246
+ papierformaat?: string | null;
3247
+ printer_id?: string | null;
3248
+ updated_at?: string;
3249
+ werkplek?: string;
3250
+ };
3251
+ Relationships: [
3252
+ {
3253
+ foreignKeyName: "document_werkplek_printers_printer_id_fkey";
3254
+ columns: ["printer_id"];
3255
+ isOneToOne: false;
3256
+ referencedRelation: "printers";
3257
+ referencedColumns: ["id"];
3258
+ }
3259
+ ];
3260
+ };
3179
3261
  email_auth_connections: {
3180
3262
  Row: {
3181
3263
  access_token_encrypted: string | null;
@@ -5157,42 +5239,6 @@ export type Database = {
5157
5239
  };
5158
5240
  Relationships: [];
5159
5241
  };
5160
- facturen: {
5161
- Row: {
5162
- bedrag_incl_btw: number;
5163
- created_at: string;
5164
- datum: string;
5165
- factuurnummer: string;
5166
- id: string;
5167
- klantnaam: string;
5168
- status: string;
5169
- updated_at: string;
5170
- user_id: string;
5171
- };
5172
- Insert: {
5173
- bedrag_incl_btw: number;
5174
- created_at?: string;
5175
- datum?: string;
5176
- factuurnummer: string;
5177
- id?: string;
5178
- klantnaam: string;
5179
- status?: string;
5180
- updated_at?: string;
5181
- user_id?: string;
5182
- };
5183
- Update: {
5184
- bedrag_incl_btw?: number;
5185
- created_at?: string;
5186
- datum?: string;
5187
- factuurnummer?: string;
5188
- id?: string;
5189
- klantnaam?: string;
5190
- status?: string;
5191
- updated_at?: string;
5192
- user_id?: string;
5193
- };
5194
- Relationships: [];
5195
- };
5196
5242
  floricode_connection_settings: {
5197
5243
  Row: {
5198
5244
  catalog_key: string | null;
@@ -7578,8 +7624,66 @@ export type Database = {
7578
7624
  };
7579
7625
  Relationships: [];
7580
7626
  };
7627
+ invoice_items: {
7628
+ Row: {
7629
+ created_at: string;
7630
+ description: string;
7631
+ id: string;
7632
+ invoice_id: string;
7633
+ kind: string;
7634
+ quantity: number;
7635
+ sort_order: number;
7636
+ source_line_ref: string | null;
7637
+ total_cents: number;
7638
+ unit: string;
7639
+ unit_price_cents: number;
7640
+ };
7641
+ Insert: {
7642
+ created_at?: string;
7643
+ description?: string;
7644
+ id?: string;
7645
+ invoice_id: string;
7646
+ kind?: string;
7647
+ quantity?: number;
7648
+ sort_order?: number;
7649
+ source_line_ref?: string | null;
7650
+ total_cents?: number;
7651
+ unit?: string;
7652
+ unit_price_cents?: number;
7653
+ };
7654
+ Update: {
7655
+ created_at?: string;
7656
+ description?: string;
7657
+ id?: string;
7658
+ invoice_id?: string;
7659
+ kind?: string;
7660
+ quantity?: number;
7661
+ sort_order?: number;
7662
+ source_line_ref?: string | null;
7663
+ total_cents?: number;
7664
+ unit?: string;
7665
+ unit_price_cents?: number;
7666
+ };
7667
+ Relationships: [
7668
+ {
7669
+ foreignKeyName: "invoice_items_invoice_id_fkey";
7670
+ columns: ["invoice_id"];
7671
+ isOneToOne: false;
7672
+ referencedRelation: "invoices";
7673
+ referencedColumns: ["id"];
7674
+ },
7675
+ {
7676
+ foreignKeyName: "invoice_items_invoice_id_fkey";
7677
+ columns: ["invoice_id"];
7678
+ isOneToOne: false;
7679
+ referencedRelation: "uren_facturen";
7680
+ referencedColumns: ["id"];
7681
+ }
7682
+ ];
7683
+ };
7581
7684
  invoice_post_idempotency: {
7582
7685
  Row: {
7686
+ administration_code: string;
7583
7687
  client_request_id: string;
7584
7688
  completed_at: string | null;
7585
7689
  created_at: string;
@@ -7589,6 +7693,7 @@ export type Database = {
7589
7693
  user_id: string;
7590
7694
  };
7591
7695
  Insert: {
7696
+ administration_code?: string;
7592
7697
  client_request_id: string;
7593
7698
  completed_at?: string | null;
7594
7699
  created_at?: string;
@@ -7598,6 +7703,7 @@ export type Database = {
7598
7703
  user_id: string;
7599
7704
  };
7600
7705
  Update: {
7706
+ administration_code?: string;
7601
7707
  client_request_id?: string;
7602
7708
  completed_at?: string | null;
7603
7709
  created_at?: string;
@@ -7808,6 +7914,77 @@ export type Database = {
7808
7914
  };
7809
7915
  Relationships: [];
7810
7916
  };
7917
+ invoices: {
7918
+ Row: {
7919
+ created_at: string;
7920
+ created_by: string | null;
7921
+ customer_id: string | null;
7922
+ customer_name: string | null;
7923
+ due_date: string | null;
7924
+ id: string;
7925
+ invoice_date: string;
7926
+ invoice_number: string | null;
7927
+ note: string | null;
7928
+ source_number: string | null;
7929
+ source_ref: string | null;
7930
+ source_type: string;
7931
+ status: string;
7932
+ subtotal_cents: number;
7933
+ total_cents: number;
7934
+ updated_at: string;
7935
+ vat_cents: number;
7936
+ vat_rate: number;
7937
+ };
7938
+ Insert: {
7939
+ created_at?: string;
7940
+ created_by?: string | null;
7941
+ customer_id?: string | null;
7942
+ customer_name?: string | null;
7943
+ due_date?: string | null;
7944
+ id?: string;
7945
+ invoice_date?: string;
7946
+ invoice_number?: string | null;
7947
+ note?: string | null;
7948
+ source_number?: string | null;
7949
+ source_ref?: string | null;
7950
+ source_type?: string;
7951
+ status?: string;
7952
+ subtotal_cents?: number;
7953
+ total_cents?: number;
7954
+ updated_at?: string;
7955
+ vat_cents?: number;
7956
+ vat_rate?: number;
7957
+ };
7958
+ Update: {
7959
+ created_at?: string;
7960
+ created_by?: string | null;
7961
+ customer_id?: string | null;
7962
+ customer_name?: string | null;
7963
+ due_date?: string | null;
7964
+ id?: string;
7965
+ invoice_date?: string;
7966
+ invoice_number?: string | null;
7967
+ note?: string | null;
7968
+ source_number?: string | null;
7969
+ source_ref?: string | null;
7970
+ source_type?: string;
7971
+ status?: string;
7972
+ subtotal_cents?: number;
7973
+ total_cents?: number;
7974
+ updated_at?: string;
7975
+ vat_cents?: number;
7976
+ vat_rate?: number;
7977
+ };
7978
+ Relationships: [
7979
+ {
7980
+ foreignKeyName: "invoices_customer_id_fkey";
7981
+ columns: ["customer_id"];
7982
+ isOneToOne: false;
7983
+ referencedRelation: "itk_customers";
7984
+ referencedColumns: ["id"];
7985
+ }
7986
+ ];
7987
+ };
7811
7988
  itk_contact_persons: {
7812
7989
  Row: {
7813
7990
  created_at: string;
@@ -10831,6 +11008,7 @@ export type Database = {
10831
11008
  enforce: boolean;
10832
11009
  is_active: boolean;
10833
11010
  last_seen_at: string;
11011
+ missing_count: number;
10834
11012
  module_id: string;
10835
11013
  name: string;
10836
11014
  shell_id: string | null;
@@ -10841,6 +11019,7 @@ export type Database = {
10841
11019
  enforce?: boolean;
10842
11020
  is_active?: boolean;
10843
11021
  last_seen_at?: string;
11022
+ missing_count?: number;
10844
11023
  module_id: string;
10845
11024
  name: string;
10846
11025
  shell_id?: string | null;
@@ -10851,6 +11030,7 @@ export type Database = {
10851
11030
  enforce?: boolean;
10852
11031
  is_active?: boolean;
10853
11032
  last_seen_at?: string;
11033
+ missing_count?: number;
10854
11034
  module_id?: string;
10855
11035
  name?: string;
10856
11036
  shell_id?: string | null;
@@ -11882,6 +12062,7 @@ export type Database = {
11882
12062
  };
11883
12063
  order_invoice_links: {
11884
12064
  Row: {
12065
+ administration_code: string | null;
11885
12066
  attempts: number;
11886
12067
  created_at: string;
11887
12068
  error_message: string | null;
@@ -11894,6 +12075,7 @@ export type Database = {
11894
12075
  updated_at: string;
11895
12076
  };
11896
12077
  Insert: {
12078
+ administration_code?: string | null;
11897
12079
  attempts?: number;
11898
12080
  created_at?: string;
11899
12081
  error_message?: string | null;
@@ -11906,6 +12088,7 @@ export type Database = {
11906
12088
  updated_at?: string;
11907
12089
  };
11908
12090
  Update: {
12091
+ administration_code?: string | null;
11909
12092
  attempts?: number;
11910
12093
  created_at?: string;
11911
12094
  error_message?: string | null;
@@ -12102,6 +12285,8 @@ export type Database = {
12102
12285
  orders: {
12103
12286
  Row: {
12104
12287
  buffer_id: string | null;
12288
+ cancel_reason: string | null;
12289
+ cancelled_at: string | null;
12105
12290
  created_at: string;
12106
12291
  custom_fields: Json;
12107
12292
  customer_id: string | null;
@@ -12124,6 +12309,8 @@ export type Database = {
12124
12309
  };
12125
12310
  Insert: {
12126
12311
  buffer_id?: string | null;
12312
+ cancel_reason?: string | null;
12313
+ cancelled_at?: string | null;
12127
12314
  created_at?: string;
12128
12315
  custom_fields?: Json;
12129
12316
  customer_id?: string | null;
@@ -12146,6 +12333,8 @@ export type Database = {
12146
12333
  };
12147
12334
  Update: {
12148
12335
  buffer_id?: string | null;
12336
+ cancel_reason?: string | null;
12337
+ cancelled_at?: string | null;
12149
12338
  created_at?: string;
12150
12339
  custom_fields?: Json;
12151
12340
  customer_id?: string | null;
@@ -13109,6 +13298,27 @@ export type Database = {
13109
13298
  }
13110
13299
  ];
13111
13300
  };
13301
+ pick_sync_state: {
13302
+ Row: {
13303
+ id: boolean;
13304
+ last_cleanup_at: string | null;
13305
+ last_sync_at: string | null;
13306
+ updated_at: string;
13307
+ };
13308
+ Insert: {
13309
+ id?: boolean;
13310
+ last_cleanup_at?: string | null;
13311
+ last_sync_at?: string | null;
13312
+ updated_at?: string;
13313
+ };
13314
+ Update: {
13315
+ id?: boolean;
13316
+ last_cleanup_at?: string | null;
13317
+ last_sync_at?: string | null;
13318
+ updated_at?: string;
13319
+ };
13320
+ Relationships: [];
13321
+ };
13112
13322
  pick_task_document_types: {
13113
13323
  Row: {
13114
13324
  created_at: string;
@@ -13400,6 +13610,7 @@ export type Database = {
13400
13610
  gebruiker_id: string | null;
13401
13611
  gebruiker_naam: string;
13402
13612
  gestart_op: string | null;
13613
+ herkomst: string | null;
13403
13614
  id: string;
13404
13615
  idempotentie_sleutel: string | null;
13405
13616
  is_herprint: boolean;
@@ -13429,6 +13640,7 @@ export type Database = {
13429
13640
  gebruiker_id?: string | null;
13430
13641
  gebruiker_naam?: string;
13431
13642
  gestart_op?: string | null;
13643
+ herkomst?: string | null;
13432
13644
  id?: string;
13433
13645
  idempotentie_sleutel?: string | null;
13434
13646
  is_herprint?: boolean;
@@ -13458,6 +13670,7 @@ export type Database = {
13458
13670
  gebruiker_id?: string | null;
13459
13671
  gebruiker_naam?: string;
13460
13672
  gestart_op?: string | null;
13673
+ herkomst?: string | null;
13461
13674
  id?: string;
13462
13675
  idempotentie_sleutel?: string | null;
13463
13676
  is_herprint?: boolean;
@@ -16557,12 +16770,16 @@ export type Database = {
16557
16770
  company_name: string | null;
16558
16771
  connected_at: string | null;
16559
16772
  created_at: string;
16773
+ disconnected_at: string | null;
16560
16774
  environment: string;
16561
16775
  id: string;
16776
+ initial_sync_completed_at: string | null;
16777
+ initial_sync_started_at: string | null;
16562
16778
  is_active: boolean;
16563
16779
  label: string | null;
16564
16780
  office_code: string | null;
16565
16781
  redirect_uri: string | null;
16782
+ superseded_at: string | null;
16566
16783
  updated_at: string;
16567
16784
  user_id: string;
16568
16785
  };
@@ -16573,12 +16790,16 @@ export type Database = {
16573
16790
  company_name?: string | null;
16574
16791
  connected_at?: string | null;
16575
16792
  created_at?: string;
16793
+ disconnected_at?: string | null;
16576
16794
  environment: string;
16577
16795
  id?: string;
16796
+ initial_sync_completed_at?: string | null;
16797
+ initial_sync_started_at?: string | null;
16578
16798
  is_active?: boolean;
16579
16799
  label?: string | null;
16580
16800
  office_code?: string | null;
16581
16801
  redirect_uri?: string | null;
16802
+ superseded_at?: string | null;
16582
16803
  updated_at?: string;
16583
16804
  user_id: string;
16584
16805
  };
@@ -16589,12 +16810,16 @@ export type Database = {
16589
16810
  company_name?: string | null;
16590
16811
  connected_at?: string | null;
16591
16812
  created_at?: string;
16813
+ disconnected_at?: string | null;
16592
16814
  environment?: string;
16593
16815
  id?: string;
16816
+ initial_sync_completed_at?: string | null;
16817
+ initial_sync_started_at?: string | null;
16594
16818
  is_active?: boolean;
16595
16819
  label?: string | null;
16596
16820
  office_code?: string | null;
16597
16821
  redirect_uri?: string | null;
16822
+ superseded_at?: string | null;
16598
16823
  updated_at?: string;
16599
16824
  user_id?: string;
16600
16825
  };
@@ -16654,6 +16879,7 @@ export type Database = {
16654
16879
  twinfield_customers: {
16655
16880
  Row: {
16656
16881
  address: string | null;
16882
+ administration_code: string;
16657
16883
  city: string | null;
16658
16884
  country: string | null;
16659
16885
  created_at: string;
@@ -16673,6 +16899,7 @@ export type Database = {
16673
16899
  };
16674
16900
  Insert: {
16675
16901
  address?: string | null;
16902
+ administration_code?: string;
16676
16903
  city?: string | null;
16677
16904
  country?: string | null;
16678
16905
  created_at?: string;
@@ -16692,6 +16919,7 @@ export type Database = {
16692
16919
  };
16693
16920
  Update: {
16694
16921
  address?: string | null;
16922
+ administration_code?: string;
16695
16923
  city?: string | null;
16696
16924
  country?: string | null;
16697
16925
  created_at?: string;
@@ -16913,7 +17141,9 @@ export type Database = {
16913
17141
  };
16914
17142
  twinfield_invoice_settings: {
16915
17143
  Row: {
17144
+ administration_code: string | null;
16916
17145
  auto_invoice_enabled: boolean;
17146
+ auto_invoice_start_date: string | null;
16917
17147
  auto_invoice_trigger_statuses: string[];
16918
17148
  created_at: string;
16919
17149
  debtor_gl_account: string;
@@ -16927,15 +17157,19 @@ export type Database = {
16927
17157
  invoice_enabled_fo: boolean;
16928
17158
  invoice_enabled_ho: boolean;
16929
17159
  invoice_enabled_mo: boolean;
17160
+ needs_review: boolean;
16930
17161
  payment_gl_account: string;
16931
17162
  payment_journal_code: string;
17163
+ settings_confirmed_at: string | null;
16932
17164
  updated_at: string;
16933
17165
  user_id: string;
16934
17166
  vat_code_eu_reverse: string | null;
16935
17167
  vat_code_export: string | null;
16936
17168
  };
16937
17169
  Insert: {
17170
+ administration_code?: string | null;
16938
17171
  auto_invoice_enabled?: boolean;
17172
+ auto_invoice_start_date?: string | null;
16939
17173
  auto_invoice_trigger_statuses?: string[];
16940
17174
  created_at?: string;
16941
17175
  debtor_gl_account?: string;
@@ -16949,15 +17183,19 @@ export type Database = {
16949
17183
  invoice_enabled_fo?: boolean;
16950
17184
  invoice_enabled_ho?: boolean;
16951
17185
  invoice_enabled_mo?: boolean;
17186
+ needs_review?: boolean;
16952
17187
  payment_gl_account?: string;
16953
17188
  payment_journal_code?: string;
17189
+ settings_confirmed_at?: string | null;
16954
17190
  updated_at?: string;
16955
17191
  user_id: string;
16956
17192
  vat_code_eu_reverse?: string | null;
16957
17193
  vat_code_export?: string | null;
16958
17194
  };
16959
17195
  Update: {
17196
+ administration_code?: string | null;
16960
17197
  auto_invoice_enabled?: boolean;
17198
+ auto_invoice_start_date?: string | null;
16961
17199
  auto_invoice_trigger_statuses?: string[];
16962
17200
  created_at?: string;
16963
17201
  debtor_gl_account?: string;
@@ -16971,8 +17209,10 @@ export type Database = {
16971
17209
  invoice_enabled_fo?: boolean;
16972
17210
  invoice_enabled_ho?: boolean;
16973
17211
  invoice_enabled_mo?: boolean;
17212
+ needs_review?: boolean;
16974
17213
  payment_gl_account?: string;
16975
17214
  payment_journal_code?: string;
17215
+ settings_confirmed_at?: string | null;
16976
17216
  updated_at?: string;
16977
17217
  user_id?: string;
16978
17218
  vat_code_eu_reverse?: string | null;
@@ -17586,136 +17826,23 @@ export type Database = {
17586
17826
  };
17587
17827
  Relationships: [];
17588
17828
  };
17589
- uren_facturen: {
17829
+ uren_offerte_regels: {
17590
17830
  Row: {
17591
17831
  created_at: string;
17592
- created_by: string | null;
17593
- customer_id: string | null;
17594
- customer_name: string | null;
17832
+ description: string;
17833
+ duration_minutes: number;
17595
17834
  id: string;
17596
- invoice_number: string | null;
17597
- note: string | null;
17598
- status: string;
17599
- total_excl_cents: number;
17600
- total_incl_cents: number;
17601
- updated_at: string;
17602
- vat_cents: number;
17603
- vat_percentage: number;
17604
- werkbon_id: string | null;
17835
+ offerte_id: string;
17836
+ package_id: string | null;
17837
+ quantity: number;
17838
+ sort_order: number;
17839
+ total_cents: number;
17840
+ unit_price_cents: number;
17605
17841
  };
17606
17842
  Insert: {
17607
17843
  created_at?: string;
17608
- created_by?: string | null;
17609
- customer_id?: string | null;
17610
- customer_name?: string | null;
17611
- id?: string;
17612
- invoice_number?: string | null;
17613
- note?: string | null;
17614
- status?: string;
17615
- total_excl_cents?: number;
17616
- total_incl_cents?: number;
17617
- updated_at?: string;
17618
- vat_cents?: number;
17619
- vat_percentage?: number;
17620
- werkbon_id?: string | null;
17621
- };
17622
- Update: {
17623
- created_at?: string;
17624
- created_by?: string | null;
17625
- customer_id?: string | null;
17626
- customer_name?: string | null;
17627
- id?: string;
17628
- invoice_number?: string | null;
17629
- note?: string | null;
17630
- status?: string;
17631
- total_excl_cents?: number;
17632
- total_incl_cents?: number;
17633
- updated_at?: string;
17634
- vat_cents?: number;
17635
- vat_percentage?: number;
17636
- werkbon_id?: string | null;
17637
- };
17638
- Relationships: [
17639
- {
17640
- foreignKeyName: "uren_facturen_customer_id_fkey";
17641
- columns: ["customer_id"];
17642
- isOneToOne: false;
17643
- referencedRelation: "itk_customers";
17644
- referencedColumns: ["id"];
17645
- },
17646
- {
17647
- foreignKeyName: "uren_facturen_werkbon_id_fkey";
17648
- columns: ["werkbon_id"];
17649
- isOneToOne: true;
17650
- referencedRelation: "werkbonnen";
17651
- referencedColumns: ["id"];
17652
- }
17653
- ];
17654
- };
17655
- uren_factuur_regels: {
17656
- Row: {
17657
- created_at: string;
17658
- description: string;
17659
- factuur_id: string;
17660
- id: string;
17661
- kind: string | null;
17662
- quantity: number;
17663
- sort_order: number;
17664
- total_cents: number;
17665
- unit: string;
17666
- unit_price_cents: number;
17667
- };
17668
- Insert: {
17669
- created_at?: string;
17670
- description: string;
17671
- factuur_id: string;
17672
- id?: string;
17673
- kind?: string | null;
17674
- quantity?: number;
17675
- sort_order?: number;
17676
- total_cents?: number;
17677
- unit?: string;
17678
- unit_price_cents?: number;
17679
- };
17680
- Update: {
17681
- created_at?: string;
17682
- description?: string;
17683
- factuur_id?: string;
17684
- id?: string;
17685
- kind?: string | null;
17686
- quantity?: number;
17687
- sort_order?: number;
17688
- total_cents?: number;
17689
- unit?: string;
17690
- unit_price_cents?: number;
17691
- };
17692
- Relationships: [
17693
- {
17694
- foreignKeyName: "uren_factuur_regels_factuur_id_fkey";
17695
- columns: ["factuur_id"];
17696
- isOneToOne: false;
17697
- referencedRelation: "uren_facturen";
17698
- referencedColumns: ["id"];
17699
- }
17700
- ];
17701
- };
17702
- uren_offerte_regels: {
17703
- Row: {
17704
- created_at: string;
17705
- description: string;
17706
- duration_minutes: number;
17707
- id: string;
17708
- offerte_id: string;
17709
- package_id: string | null;
17710
- quantity: number;
17711
- sort_order: number;
17712
- total_cents: number;
17713
- unit_price_cents: number;
17714
- };
17715
- Insert: {
17716
- created_at?: string;
17717
- description: string;
17718
- duration_minutes?: number;
17844
+ description: string;
17845
+ duration_minutes?: number;
17719
17846
  id?: string;
17720
17847
  offerte_id: string;
17721
17848
  package_id?: string | null;
@@ -19581,6 +19708,119 @@ export type Database = {
19581
19708
  };
19582
19709
  Relationships: [];
19583
19710
  };
19711
+ uren_facturen: {
19712
+ Row: {
19713
+ created_at: string | null;
19714
+ created_by: string | null;
19715
+ customer_id: string | null;
19716
+ customer_name: string | null;
19717
+ id: string | null;
19718
+ invoice_number: string | null;
19719
+ note: string | null;
19720
+ status: string | null;
19721
+ total_excl_cents: number | null;
19722
+ total_incl_cents: number | null;
19723
+ updated_at: string | null;
19724
+ vat_cents: number | null;
19725
+ vat_percentage: number | null;
19726
+ werkbon_id: string | null;
19727
+ };
19728
+ Insert: {
19729
+ created_at?: string | null;
19730
+ created_by?: string | null;
19731
+ customer_id?: string | null;
19732
+ customer_name?: string | null;
19733
+ id?: string | null;
19734
+ invoice_number?: string | null;
19735
+ note?: string | null;
19736
+ status?: string | null;
19737
+ total_excl_cents?: number | null;
19738
+ total_incl_cents?: number | null;
19739
+ updated_at?: string | null;
19740
+ vat_cents?: number | null;
19741
+ vat_percentage?: number | null;
19742
+ werkbon_id?: never;
19743
+ };
19744
+ Update: {
19745
+ created_at?: string | null;
19746
+ created_by?: string | null;
19747
+ customer_id?: string | null;
19748
+ customer_name?: string | null;
19749
+ id?: string | null;
19750
+ invoice_number?: string | null;
19751
+ note?: string | null;
19752
+ status?: string | null;
19753
+ total_excl_cents?: number | null;
19754
+ total_incl_cents?: number | null;
19755
+ updated_at?: string | null;
19756
+ vat_cents?: number | null;
19757
+ vat_percentage?: number | null;
19758
+ werkbon_id?: never;
19759
+ };
19760
+ Relationships: [
19761
+ {
19762
+ foreignKeyName: "invoices_customer_id_fkey";
19763
+ columns: ["customer_id"];
19764
+ isOneToOne: false;
19765
+ referencedRelation: "itk_customers";
19766
+ referencedColumns: ["id"];
19767
+ }
19768
+ ];
19769
+ };
19770
+ uren_factuur_regels: {
19771
+ Row: {
19772
+ created_at: string | null;
19773
+ description: string | null;
19774
+ factuur_id: string | null;
19775
+ id: string | null;
19776
+ kind: string | null;
19777
+ quantity: number | null;
19778
+ sort_order: number | null;
19779
+ total_cents: number | null;
19780
+ unit: string | null;
19781
+ unit_price_cents: number | null;
19782
+ };
19783
+ Insert: {
19784
+ created_at?: string | null;
19785
+ description?: string | null;
19786
+ factuur_id?: string | null;
19787
+ id?: string | null;
19788
+ kind?: string | null;
19789
+ quantity?: number | null;
19790
+ sort_order?: number | null;
19791
+ total_cents?: number | null;
19792
+ unit?: string | null;
19793
+ unit_price_cents?: number | null;
19794
+ };
19795
+ Update: {
19796
+ created_at?: string | null;
19797
+ description?: string | null;
19798
+ factuur_id?: string | null;
19799
+ id?: string | null;
19800
+ kind?: string | null;
19801
+ quantity?: number | null;
19802
+ sort_order?: number | null;
19803
+ total_cents?: number | null;
19804
+ unit?: string | null;
19805
+ unit_price_cents?: number | null;
19806
+ };
19807
+ Relationships: [
19808
+ {
19809
+ foreignKeyName: "invoice_items_invoice_id_fkey";
19810
+ columns: ["factuur_id"];
19811
+ isOneToOne: false;
19812
+ referencedRelation: "invoices";
19813
+ referencedColumns: ["id"];
19814
+ },
19815
+ {
19816
+ foreignKeyName: "invoice_items_invoice_id_fkey";
19817
+ columns: ["factuur_id"];
19818
+ isOneToOne: false;
19819
+ referencedRelation: "uren_facturen";
19820
+ referencedColumns: ["id"];
19821
+ }
19822
+ ];
19823
+ };
19584
19824
  v_external_customers_exact: {
19585
19825
  Row: {
19586
19826
  account_number: string | null;
@@ -20096,6 +20336,7 @@ export type Database = {
20096
20336
  gebruiker_id: string | null;
20097
20337
  gebruiker_naam: string;
20098
20338
  gestart_op: string | null;
20339
+ herkomst: string | null;
20099
20340
  id: string;
20100
20341
  idempotentie_sleutel: string | null;
20101
20342
  is_herprint: boolean;
@@ -20216,6 +20457,7 @@ export type Database = {
20216
20457
  gebruiker_id: string | null;
20217
20458
  gebruiker_naam: string;
20218
20459
  gestart_op: string | null;
20460
+ herkomst: string | null;
20219
20461
  id: string;
20220
20462
  idempotentie_sleutel: string | null;
20221
20463
  is_herprint: boolean;
@@ -20817,6 +21059,46 @@ export type Database = {
20817
21059
  Args: never;
20818
21060
  Returns: boolean;
20819
21061
  };
21062
+ invoice_create_from_source: {
21063
+ Args: {
21064
+ _payload?: Json;
21065
+ _source_id: string;
21066
+ _source_type: string;
21067
+ };
21068
+ Returns: Json;
21069
+ };
21070
+ invoice_get_billable_lines: {
21071
+ Args: {
21072
+ _invoice_id: string;
21073
+ };
21074
+ Returns: Json;
21075
+ };
21076
+ invoice_get_for_source: {
21077
+ Args: {
21078
+ _source_id: string;
21079
+ _source_type: string;
21080
+ };
21081
+ Returns: Json;
21082
+ };
21083
+ invoice_get_summary: {
21084
+ Args: {
21085
+ _invoice_id: string;
21086
+ };
21087
+ Returns: Json;
21088
+ };
21089
+ invoice_list_sources: {
21090
+ Args: {
21091
+ _limit?: number;
21092
+ _source_type?: string;
21093
+ };
21094
+ Returns: Json;
21095
+ };
21096
+ invoice_recalc_totals: {
21097
+ Args: {
21098
+ _invoice_id: string;
21099
+ };
21100
+ Returns: Json;
21101
+ };
20820
21102
  is_authenticated: {
20821
21103
  Args: never;
20822
21104
  Returns: boolean;
@@ -20885,6 +21167,29 @@ export type Database = {
20885
21167
  roles: string[];
20886
21168
  }[];
20887
21169
  };
21170
+ list_monteur_absences: {
21171
+ Args: {
21172
+ _from: string;
21173
+ _to: string;
21174
+ };
21175
+ Returns: {
21176
+ absence_date: string;
21177
+ end_time: string;
21178
+ full_day: boolean;
21179
+ kind: string;
21180
+ monteur_id: string;
21181
+ start_time: string;
21182
+ }[];
21183
+ };
21184
+ list_monteurs: {
21185
+ Args: never;
21186
+ Returns: {
21187
+ avatar_url: string;
21188
+ display_name: string;
21189
+ email: string;
21190
+ id: string;
21191
+ }[];
21192
+ };
20888
21193
  list_my_planning_items: {
20889
21194
  Args: {
20890
21195
  _from: string;
@@ -21838,6 +22143,13 @@ export type Database = {
21838
22143
  isSetofReturn: false;
21839
22144
  };
21840
22145
  };
22146
+ pick_cleanup_maintenance: {
22147
+ Args: {
22148
+ _heartbeat_hours?: number;
22149
+ _log_days?: number;
22150
+ };
22151
+ Returns: Json;
22152
+ };
21841
22153
  pick_complete_print: {
21842
22154
  Args: {
21843
22155
  _printer_id: string;
@@ -21889,6 +22201,14 @@ export type Database = {
21889
22201
  Args: never;
21890
22202
  Returns: string;
21891
22203
  };
22204
+ pick_day_counts: {
22205
+ Args: {
22206
+ _pick_day?: string;
22207
+ _screen_id?: string;
22208
+ _station_id?: string;
22209
+ };
22210
+ Returns: Json;
22211
+ };
21892
22212
  pick_document_layout_data: {
21893
22213
  Args: {
21894
22214
  _layout_id: string;
@@ -21926,6 +22246,14 @@ export type Database = {
21926
22246
  };
21927
22247
  Returns: undefined;
21928
22248
  };
22249
+ pick_reprint_document: {
22250
+ Args: {
22251
+ _queue_item_id: string;
22252
+ _session_id: string;
22253
+ _throttle_seconds?: number;
22254
+ };
22255
+ Returns: string;
22256
+ };
21929
22257
  pick_reset_print: {
21930
22258
  Args: {
21931
22259
  _queue_item_id: string;
@@ -21991,6 +22319,12 @@ export type Database = {
21991
22319
  };
21992
22320
  Returns: string;
21993
22321
  };
22322
+ pick_sync_queue_throttled: {
22323
+ Args: {
22324
+ _min_seconds?: number;
22325
+ };
22326
+ Returns: Json;
22327
+ };
21994
22328
  pickstation_get_orders_raw: {
21995
22329
  Args: never;
21996
22330
  Returns: Json;
@@ -22136,6 +22470,12 @@ export type Database = {
22136
22470
  };
22137
22471
  Returns: boolean;
22138
22472
  };
22473
+ release_stale_order_invoice_links: {
22474
+ Args: {
22475
+ _minutes?: number;
22476
+ };
22477
+ Returns: number;
22478
+ };
22139
22479
  reorder_customer_price_groups: {
22140
22480
  Args: {
22141
22481
  _ids: string[];
@@ -22654,6 +22994,20 @@ export type Database = {
22654
22994
  };
22655
22995
  Returns: undefined;
22656
22996
  };
22997
+ twinfield_deactivate_connection: {
22998
+ Args: {
22999
+ p_connection_id: string;
23000
+ p_user_id: string;
23001
+ };
23002
+ Returns: Json;
23003
+ };
23004
+ twinfield_handle_administration_change: {
23005
+ Args: {
23006
+ _administration_code: string;
23007
+ _user_id: string;
23008
+ };
23009
+ Returns: undefined;
23010
+ };
22657
23011
  twinfield_prune_push_queue: {
22658
23012
  Args: never;
22659
23013
  Returns: number;
@@ -22673,10 +23027,11 @@ export type Database = {
22673
23027
  p_company_name?: string;
22674
23028
  p_environment: string;
22675
23029
  p_office_code?: string;
23030
+ p_reset_sync?: boolean;
22676
23031
  p_status?: string;
22677
23032
  p_user_id: string;
22678
23033
  };
22679
- Returns: string;
23034
+ Returns: Json;
22680
23035
  };
22681
23036
  upsert_auto_fulfillment_log: {
22682
23037
  Args: {
@@ -22697,6 +23052,26 @@ export type Database = {
22697
23052
  Args: never;
22698
23053
  Returns: string;
22699
23054
  };
23055
+ wo_create_from_source: {
23056
+ Args: {
23057
+ _payload?: Json;
23058
+ _source_id: string;
23059
+ _source_type: string;
23060
+ };
23061
+ Returns: string;
23062
+ };
23063
+ wo_get_billable_lines: {
23064
+ Args: {
23065
+ _work_order_id: string;
23066
+ };
23067
+ Returns: Json;
23068
+ };
23069
+ wo_get_summary: {
23070
+ Args: {
23071
+ _work_order_id: string;
23072
+ };
23073
+ Returns: Json;
23074
+ };
22700
23075
  };
22701
23076
  Enums: {
22702
23077
  ai_import_status: "nieuw" | "verwerken" | "bevestigen" | "klaar" | "mislukt";