@flowselections/admin-installatietechniek 1.0.6 → 1.0.7

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.
@@ -5045,42 +5045,6 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
5045
5045
  };
5046
5046
  Relationships: [];
5047
5047
  };
5048
- facturen: {
5049
- Row: {
5050
- bedrag_incl_btw: number;
5051
- created_at: string;
5052
- datum: string;
5053
- factuurnummer: string;
5054
- id: string;
5055
- klantnaam: string;
5056
- status: string;
5057
- updated_at: string;
5058
- user_id: string;
5059
- };
5060
- Insert: {
5061
- bedrag_incl_btw: number;
5062
- created_at?: string;
5063
- datum?: string;
5064
- factuurnummer: string;
5065
- id?: string;
5066
- klantnaam: string;
5067
- status?: string;
5068
- updated_at?: string;
5069
- user_id?: string;
5070
- };
5071
- Update: {
5072
- bedrag_incl_btw?: number;
5073
- created_at?: string;
5074
- datum?: string;
5075
- factuurnummer?: string;
5076
- id?: string;
5077
- klantnaam?: string;
5078
- status?: string;
5079
- updated_at?: string;
5080
- user_id?: string;
5081
- };
5082
- Relationships: [];
5083
- };
5084
5048
  floricode_connection_settings: {
5085
5049
  Row: {
5086
5050
  catalog_key: string | null;
@@ -7385,6 +7349,60 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
7385
7349
  };
7386
7350
  Relationships: [];
7387
7351
  };
7352
+ invoice_items: {
7353
+ Row: {
7354
+ created_at: string;
7355
+ description: string;
7356
+ id: string;
7357
+ invoice_id: string;
7358
+ kind: string;
7359
+ quantity: number;
7360
+ sort_order: number;
7361
+ source_line_ref: string | null;
7362
+ total_cents: number;
7363
+ unit: string;
7364
+ unit_price_cents: number;
7365
+ };
7366
+ Insert: {
7367
+ created_at?: string;
7368
+ description?: string;
7369
+ id?: string;
7370
+ invoice_id: string;
7371
+ kind?: string;
7372
+ quantity?: number;
7373
+ sort_order?: number;
7374
+ source_line_ref?: string | null;
7375
+ total_cents?: number;
7376
+ unit?: string;
7377
+ unit_price_cents?: number;
7378
+ };
7379
+ Update: {
7380
+ created_at?: string;
7381
+ description?: string;
7382
+ id?: string;
7383
+ invoice_id?: string;
7384
+ kind?: string;
7385
+ quantity?: number;
7386
+ sort_order?: number;
7387
+ source_line_ref?: string | null;
7388
+ total_cents?: number;
7389
+ unit?: string;
7390
+ unit_price_cents?: number;
7391
+ };
7392
+ Relationships: [{
7393
+ foreignKeyName: "invoice_items_invoice_id_fkey";
7394
+ columns: ["invoice_id"];
7395
+ isOneToOne: false;
7396
+ referencedRelation: "invoices";
7397
+ referencedColumns: ["id"];
7398
+ }, {
7399
+ foreignKeyName: "invoice_items_invoice_id_fkey";
7400
+ columns: ["invoice_id"];
7401
+ isOneToOne: false;
7402
+ referencedRelation: "uren_facturen";
7403
+ referencedColumns: ["id"];
7404
+ }];
7405
+ };
7388
7406
  invoice_post_idempotency: {
7389
7407
  Row: {
7390
7408
  client_request_id: string;
@@ -7610,6 +7628,75 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
7610
7628
  };
7611
7629
  Relationships: [];
7612
7630
  };
7631
+ invoices: {
7632
+ Row: {
7633
+ created_at: string;
7634
+ created_by: string | null;
7635
+ customer_id: string | null;
7636
+ customer_name: string | null;
7637
+ due_date: string | null;
7638
+ id: string;
7639
+ invoice_date: string;
7640
+ invoice_number: string | null;
7641
+ note: string | null;
7642
+ source_number: string | null;
7643
+ source_ref: string | null;
7644
+ source_type: string;
7645
+ status: string;
7646
+ subtotal_cents: number;
7647
+ total_cents: number;
7648
+ updated_at: string;
7649
+ vat_cents: number;
7650
+ vat_rate: number;
7651
+ };
7652
+ Insert: {
7653
+ created_at?: string;
7654
+ created_by?: string | null;
7655
+ customer_id?: string | null;
7656
+ customer_name?: string | null;
7657
+ due_date?: string | null;
7658
+ id?: string;
7659
+ invoice_date?: string;
7660
+ invoice_number?: string | null;
7661
+ note?: string | null;
7662
+ source_number?: string | null;
7663
+ source_ref?: string | null;
7664
+ source_type?: string;
7665
+ status?: string;
7666
+ subtotal_cents?: number;
7667
+ total_cents?: number;
7668
+ updated_at?: string;
7669
+ vat_cents?: number;
7670
+ vat_rate?: number;
7671
+ };
7672
+ Update: {
7673
+ created_at?: string;
7674
+ created_by?: string | null;
7675
+ customer_id?: string | null;
7676
+ customer_name?: string | null;
7677
+ due_date?: string | null;
7678
+ id?: string;
7679
+ invoice_date?: string;
7680
+ invoice_number?: string | null;
7681
+ note?: string | null;
7682
+ source_number?: string | null;
7683
+ source_ref?: string | null;
7684
+ source_type?: string;
7685
+ status?: string;
7686
+ subtotal_cents?: number;
7687
+ total_cents?: number;
7688
+ updated_at?: string;
7689
+ vat_cents?: number;
7690
+ vat_rate?: number;
7691
+ };
7692
+ Relationships: [{
7693
+ foreignKeyName: "invoices_customer_id_fkey";
7694
+ columns: ["customer_id"];
7695
+ isOneToOne: false;
7696
+ referencedRelation: "itk_customers";
7697
+ referencedColumns: ["id"];
7698
+ }];
7699
+ };
7613
7700
  itk_contact_persons: {
7614
7701
  Row: {
7615
7702
  created_at: string;
@@ -11780,6 +11867,8 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
11780
11867
  orders: {
11781
11868
  Row: {
11782
11869
  buffer_id: string | null;
11870
+ cancel_reason: string | null;
11871
+ cancelled_at: string | null;
11783
11872
  created_at: string;
11784
11873
  custom_fields: import("./types").Json;
11785
11874
  customer_id: string | null;
@@ -11802,6 +11891,8 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
11802
11891
  };
11803
11892
  Insert: {
11804
11893
  buffer_id?: string | null;
11894
+ cancel_reason?: string | null;
11895
+ cancelled_at?: string | null;
11805
11896
  created_at?: string;
11806
11897
  custom_fields?: import("./types").Json;
11807
11898
  customer_id?: string | null;
@@ -11824,6 +11915,8 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
11824
11915
  };
11825
11916
  Update: {
11826
11917
  buffer_id?: string | null;
11918
+ cancel_reason?: string | null;
11919
+ cancelled_at?: string | null;
11827
11920
  created_at?: string;
11828
11921
  custom_fields?: import("./types").Json;
11829
11922
  customer_id?: string | null;
@@ -17108,114 +17201,6 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
17108
17201
  };
17109
17202
  Relationships: [];
17110
17203
  };
17111
- uren_facturen: {
17112
- Row: {
17113
- created_at: string;
17114
- created_by: string | null;
17115
- customer_id: string | null;
17116
- customer_name: string | null;
17117
- id: string;
17118
- invoice_number: string | null;
17119
- note: string | null;
17120
- status: string;
17121
- total_excl_cents: number;
17122
- total_incl_cents: number;
17123
- updated_at: string;
17124
- vat_cents: number;
17125
- vat_percentage: number;
17126
- werkbon_id: string | null;
17127
- };
17128
- Insert: {
17129
- created_at?: string;
17130
- created_by?: string | null;
17131
- customer_id?: string | null;
17132
- customer_name?: string | null;
17133
- id?: string;
17134
- invoice_number?: string | null;
17135
- note?: string | null;
17136
- status?: string;
17137
- total_excl_cents?: number;
17138
- total_incl_cents?: number;
17139
- updated_at?: string;
17140
- vat_cents?: number;
17141
- vat_percentage?: number;
17142
- werkbon_id?: string | null;
17143
- };
17144
- Update: {
17145
- created_at?: string;
17146
- created_by?: string | null;
17147
- customer_id?: string | null;
17148
- customer_name?: string | null;
17149
- id?: string;
17150
- invoice_number?: string | null;
17151
- note?: string | null;
17152
- status?: string;
17153
- total_excl_cents?: number;
17154
- total_incl_cents?: number;
17155
- updated_at?: string;
17156
- vat_cents?: number;
17157
- vat_percentage?: number;
17158
- werkbon_id?: string | null;
17159
- };
17160
- Relationships: [{
17161
- foreignKeyName: "uren_facturen_customer_id_fkey";
17162
- columns: ["customer_id"];
17163
- isOneToOne: false;
17164
- referencedRelation: "itk_customers";
17165
- referencedColumns: ["id"];
17166
- }, {
17167
- foreignKeyName: "uren_facturen_werkbon_id_fkey";
17168
- columns: ["werkbon_id"];
17169
- isOneToOne: true;
17170
- referencedRelation: "werkbonnen";
17171
- referencedColumns: ["id"];
17172
- }];
17173
- };
17174
- uren_factuur_regels: {
17175
- Row: {
17176
- created_at: string;
17177
- description: string;
17178
- factuur_id: string;
17179
- id: string;
17180
- kind: string | null;
17181
- quantity: number;
17182
- sort_order: number;
17183
- total_cents: number;
17184
- unit: string;
17185
- unit_price_cents: number;
17186
- };
17187
- Insert: {
17188
- created_at?: string;
17189
- description: string;
17190
- factuur_id: string;
17191
- id?: string;
17192
- kind?: string | null;
17193
- quantity?: number;
17194
- sort_order?: number;
17195
- total_cents?: number;
17196
- unit?: string;
17197
- unit_price_cents?: number;
17198
- };
17199
- Update: {
17200
- created_at?: string;
17201
- description?: string;
17202
- factuur_id?: string;
17203
- id?: string;
17204
- kind?: string | null;
17205
- quantity?: number;
17206
- sort_order?: number;
17207
- total_cents?: number;
17208
- unit?: string;
17209
- unit_price_cents?: number;
17210
- };
17211
- Relationships: [{
17212
- foreignKeyName: "uren_factuur_regels_factuur_id_fkey";
17213
- columns: ["factuur_id"];
17214
- isOneToOne: false;
17215
- referencedRelation: "uren_facturen";
17216
- referencedColumns: ["id"];
17217
- }];
17218
- };
17219
17204
  uren_offerte_regels: {
17220
17205
  Row: {
17221
17206
  created_at: string;
@@ -19055,6 +19040,114 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
19055
19040
  };
19056
19041
  Relationships: [];
19057
19042
  };
19043
+ uren_facturen: {
19044
+ Row: {
19045
+ created_at: string | null;
19046
+ created_by: string | null;
19047
+ customer_id: string | null;
19048
+ customer_name: string | null;
19049
+ id: string | null;
19050
+ invoice_number: string | null;
19051
+ note: string | null;
19052
+ status: string | null;
19053
+ total_excl_cents: number | null;
19054
+ total_incl_cents: number | null;
19055
+ updated_at: string | null;
19056
+ vat_cents: number | null;
19057
+ vat_percentage: number | null;
19058
+ werkbon_id: string | null;
19059
+ };
19060
+ Insert: {
19061
+ created_at?: string | null;
19062
+ created_by?: string | null;
19063
+ customer_id?: string | null;
19064
+ customer_name?: string | null;
19065
+ id?: string | null;
19066
+ invoice_number?: string | null;
19067
+ note?: string | null;
19068
+ status?: string | null;
19069
+ total_excl_cents?: number | null;
19070
+ total_incl_cents?: number | null;
19071
+ updated_at?: string | null;
19072
+ vat_cents?: number | null;
19073
+ vat_percentage?: number | null;
19074
+ werkbon_id?: never;
19075
+ };
19076
+ Update: {
19077
+ created_at?: string | null;
19078
+ created_by?: string | null;
19079
+ customer_id?: string | null;
19080
+ customer_name?: string | null;
19081
+ id?: string | null;
19082
+ invoice_number?: string | null;
19083
+ note?: string | null;
19084
+ status?: string | null;
19085
+ total_excl_cents?: number | null;
19086
+ total_incl_cents?: number | null;
19087
+ updated_at?: string | null;
19088
+ vat_cents?: number | null;
19089
+ vat_percentage?: number | null;
19090
+ werkbon_id?: never;
19091
+ };
19092
+ Relationships: [{
19093
+ foreignKeyName: "invoices_customer_id_fkey";
19094
+ columns: ["customer_id"];
19095
+ isOneToOne: false;
19096
+ referencedRelation: "itk_customers";
19097
+ referencedColumns: ["id"];
19098
+ }];
19099
+ };
19100
+ uren_factuur_regels: {
19101
+ Row: {
19102
+ created_at: string | null;
19103
+ description: string | null;
19104
+ factuur_id: string | null;
19105
+ id: string | null;
19106
+ kind: string | null;
19107
+ quantity: number | null;
19108
+ sort_order: number | null;
19109
+ total_cents: number | null;
19110
+ unit: string | null;
19111
+ unit_price_cents: number | null;
19112
+ };
19113
+ Insert: {
19114
+ created_at?: string | null;
19115
+ description?: string | null;
19116
+ factuur_id?: string | null;
19117
+ id?: string | null;
19118
+ kind?: string | null;
19119
+ quantity?: number | null;
19120
+ sort_order?: number | null;
19121
+ total_cents?: number | null;
19122
+ unit?: string | null;
19123
+ unit_price_cents?: number | null;
19124
+ };
19125
+ Update: {
19126
+ created_at?: string | null;
19127
+ description?: string | null;
19128
+ factuur_id?: string | null;
19129
+ id?: string | null;
19130
+ kind?: string | null;
19131
+ quantity?: number | null;
19132
+ sort_order?: number | null;
19133
+ total_cents?: number | null;
19134
+ unit?: string | null;
19135
+ unit_price_cents?: number | null;
19136
+ };
19137
+ Relationships: [{
19138
+ foreignKeyName: "invoice_items_invoice_id_fkey";
19139
+ columns: ["factuur_id"];
19140
+ isOneToOne: false;
19141
+ referencedRelation: "invoices";
19142
+ referencedColumns: ["id"];
19143
+ }, {
19144
+ foreignKeyName: "invoice_items_invoice_id_fkey";
19145
+ columns: ["factuur_id"];
19146
+ isOneToOne: false;
19147
+ referencedRelation: "uren_facturen";
19148
+ referencedColumns: ["id"];
19149
+ }];
19150
+ };
19058
19151
  v_external_customers_exact: {
19059
19152
  Row: {
19060
19153
  account_number: string | null;
@@ -20281,6 +20374,46 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
20281
20374
  Args: never;
20282
20375
  Returns: boolean;
20283
20376
  };
20377
+ invoice_create_from_source: {
20378
+ Args: {
20379
+ _payload?: import("./types").Json;
20380
+ _source_id: string;
20381
+ _source_type: string;
20382
+ };
20383
+ Returns: import("./types").Json;
20384
+ };
20385
+ invoice_get_billable_lines: {
20386
+ Args: {
20387
+ _invoice_id: string;
20388
+ };
20389
+ Returns: import("./types").Json;
20390
+ };
20391
+ invoice_get_for_source: {
20392
+ Args: {
20393
+ _source_id: string;
20394
+ _source_type: string;
20395
+ };
20396
+ Returns: import("./types").Json;
20397
+ };
20398
+ invoice_get_summary: {
20399
+ Args: {
20400
+ _invoice_id: string;
20401
+ };
20402
+ Returns: import("./types").Json;
20403
+ };
20404
+ invoice_list_sources: {
20405
+ Args: {
20406
+ _limit?: number;
20407
+ _source_type?: string;
20408
+ };
20409
+ Returns: import("./types").Json;
20410
+ };
20411
+ invoice_recalc_totals: {
20412
+ Args: {
20413
+ _invoice_id: string;
20414
+ };
20415
+ Returns: import("./types").Json;
20416
+ };
20284
20417
  is_authenticated: {
20285
20418
  Args: never;
20286
20419
  Returns: boolean;
@@ -22161,6 +22294,26 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
22161
22294
  Args: never;
22162
22295
  Returns: string;
22163
22296
  };
22297
+ wo_create_from_source: {
22298
+ Args: {
22299
+ _payload?: import("./types").Json;
22300
+ _source_id: string;
22301
+ _source_type: string;
22302
+ };
22303
+ Returns: string;
22304
+ };
22305
+ wo_get_billable_lines: {
22306
+ Args: {
22307
+ _work_order_id: string;
22308
+ };
22309
+ Returns: import("./types").Json;
22310
+ };
22311
+ wo_get_summary: {
22312
+ Args: {
22313
+ _work_order_id: string;
22314
+ };
22315
+ Returns: import("./types").Json;
22316
+ };
22164
22317
  };
22165
22318
  Enums: {
22166
22319
  ai_import_status: "nieuw" | "verwerken" | "bevestigen" | "klaar" | "mislukt";