@flowselections/floriday-afhandeling-module 1.0.8 → 1.0.9

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 (71) hide show
  1. package/dist-lib/components/afhandeling/LeveringenPage.d.ts.map +1 -1
  2. package/dist-lib/components/afhandeling/LeveringenPage.js +9 -67
  3. package/dist-lib/components/afhandeling/PickAgendaView.d.ts +6 -0
  4. package/dist-lib/components/afhandeling/PickAgendaView.d.ts.map +1 -0
  5. package/dist-lib/components/afhandeling/PickAgendaView.js +31 -0
  6. package/dist-lib/components/afhandeling/PickingPage.d.ts +2 -0
  7. package/dist-lib/components/afhandeling/PickingPage.d.ts.map +1 -0
  8. package/dist-lib/components/afhandeling/PickingPage.js +5 -0
  9. package/dist-lib/components/afhandeling/PlanningAgendaPage.d.ts +9 -0
  10. package/dist-lib/components/afhandeling/PlanningAgendaPage.d.ts.map +1 -0
  11. package/dist-lib/components/afhandeling/PlanningAgendaPage.js +7 -0
  12. package/dist-lib/components/afhandeling/VervoerderForm.d.ts.map +1 -1
  13. package/dist-lib/components/afhandeling/VervoerderForm.js +24 -10
  14. package/dist-lib/components/afhandeling/WeekAgendaView.d.ts +12 -0
  15. package/dist-lib/components/afhandeling/WeekAgendaView.d.ts.map +1 -0
  16. package/dist-lib/components/afhandeling/WeekAgendaView.js +107 -0
  17. package/dist-lib/components/pickstation/LanguagePicker.d.ts +5 -0
  18. package/dist-lib/components/pickstation/LanguagePicker.d.ts.map +1 -0
  19. package/dist-lib/components/pickstation/LanguagePicker.js +5 -0
  20. package/dist-lib/components/pickstation/PakbonTemplate.d.ts +17 -0
  21. package/dist-lib/components/pickstation/PakbonTemplate.d.ts.map +1 -0
  22. package/dist-lib/components/pickstation/PakbonTemplate.js +74 -0
  23. package/dist-lib/components/pickstation/printDocuments.d.ts +3 -0
  24. package/dist-lib/components/pickstation/printDocuments.d.ts.map +1 -0
  25. package/dist-lib/components/pickstation/printDocuments.js +53 -0
  26. package/dist-lib/components/settings/AfhandelingSettingsCard.d.ts +2 -0
  27. package/dist-lib/components/settings/AfhandelingSettingsCard.d.ts.map +1 -0
  28. package/dist-lib/components/settings/AfhandelingSettingsCard.js +60 -0
  29. package/dist-lib/components/settings/VervoerdersSettingsCard.d.ts +2 -0
  30. package/dist-lib/components/settings/VervoerdersSettingsCard.d.ts.map +1 -0
  31. package/dist-lib/components/settings/VervoerdersSettingsCard.js +30 -0
  32. package/dist-lib/hooks/useOrderPlanning.d.ts +14 -0
  33. package/dist-lib/hooks/useOrderPlanning.d.ts.map +1 -0
  34. package/dist-lib/hooks/useOrderPlanning.js +90 -0
  35. package/dist-lib/index.d.ts +5 -0
  36. package/dist-lib/index.d.ts.map +1 -1
  37. package/dist-lib/index.js +16 -6
  38. package/dist-lib/integrations/supabase/auth-middleware.d.ts +531 -0
  39. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  40. package/dist-lib/integrations/supabase/client.d.ts +531 -0
  41. package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
  42. package/dist-lib/integrations/supabase/client.server.d.ts +531 -0
  43. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  44. package/dist-lib/integrations/supabase/types.d.ts +544 -0
  45. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  46. package/dist-lib/integrations/supabase/types.js +1 -0
  47. package/dist-lib/lib/afhandelingSettings.functions.d.ts +14338 -0
  48. package/dist-lib/lib/afhandelingSettings.functions.d.ts.map +1 -0
  49. package/dist-lib/lib/afhandelingSettings.functions.js +73 -0
  50. package/dist-lib/lib/carriers.functions.d.ts +2176 -44
  51. package/dist-lib/lib/carriers.functions.d.ts.map +1 -1
  52. package/dist-lib/lib/carriers.functions.js +43 -6
  53. package/dist-lib/lib/floriday.functions.d.ts +532 -0
  54. package/dist-lib/lib/floriday.functions.d.ts.map +1 -1
  55. package/dist-lib/lib/floriday.functions.js +6 -1
  56. package/dist-lib/lib/pickDate.d.ts +21 -0
  57. package/dist-lib/lib/pickDate.d.ts.map +1 -0
  58. package/dist-lib/lib/pickDate.js +71 -0
  59. package/dist-lib/lib/pickstationI18n.d.ts +31 -0
  60. package/dist-lib/lib/pickstationI18n.d.ts.map +1 -0
  61. package/dist-lib/lib/pickstationI18n.js +147 -0
  62. package/dist-lib/lib/pickstationOrders.server.d.ts +9 -0
  63. package/dist-lib/lib/pickstationOrders.server.d.ts.map +1 -0
  64. package/dist-lib/lib/pickstationOrders.server.js +244 -0
  65. package/dist-lib/lib/pickstationTypes.d.ts +17 -0
  66. package/dist-lib/lib/pickstationTypes.d.ts.map +1 -0
  67. package/dist-lib/lib/pickstationTypes.js +1 -0
  68. package/dist-lib/lib/planning.d.ts +66 -0
  69. package/dist-lib/lib/planning.d.ts.map +1 -0
  70. package/dist-lib/lib/planning.js +180 -0
  71. package/package.json +12 -6
@@ -2,6 +2,39 @@ import type { Database } from './types';
2
2
  export declare const requireSupabaseAuth: import("@tanstack/start-client-core").FunctionMiddlewareAfterServer<{}, unknown, undefined, {
3
3
  supabase: import("@supabase/supabase-js").SupabaseClient<Database, "public", "public", {
4
4
  Tables: {
5
+ afhandeling_settings: {
6
+ Row: {
7
+ created_at: string;
8
+ id: string;
9
+ max_workdays_earlier_pick: number;
10
+ pick_days_before_transport: number;
11
+ pick_distribution_enabled: boolean;
12
+ transport_register_days_before: number;
13
+ updated_at: string;
14
+ user_id: string;
15
+ };
16
+ Insert: {
17
+ created_at?: string;
18
+ id?: string;
19
+ max_workdays_earlier_pick?: number;
20
+ pick_days_before_transport?: number;
21
+ pick_distribution_enabled?: boolean;
22
+ transport_register_days_before?: number;
23
+ updated_at?: string;
24
+ user_id: string;
25
+ };
26
+ Update: {
27
+ created_at?: string;
28
+ id?: string;
29
+ max_workdays_earlier_pick?: number;
30
+ pick_days_before_transport?: number;
31
+ pick_distribution_enabled?: boolean;
32
+ transport_register_days_before?: number;
33
+ updated_at?: string;
34
+ user_id?: string;
35
+ };
36
+ Relationships: [];
37
+ };
5
38
  agenda_connections: {
6
39
  Row: {
7
40
  account_email: string | null;
@@ -270,6 +303,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
270
303
  invoice_run_id: string | null;
271
304
  invoice_status: string | null;
272
305
  invoiced_at: string | null;
306
+ notes: string | null;
273
307
  number_of_people: number;
274
308
  room_id: string;
275
309
  start_time: string;
@@ -294,6 +328,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
294
328
  invoice_run_id?: string | null;
295
329
  invoice_status?: string | null;
296
330
  invoiced_at?: string | null;
331
+ notes?: string | null;
297
332
  number_of_people?: number;
298
333
  room_id: string;
299
334
  start_time: string;
@@ -318,6 +353,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
318
353
  invoice_run_id?: string | null;
319
354
  invoice_status?: string | null;
320
355
  invoiced_at?: string | null;
356
+ notes?: string | null;
321
357
  number_of_people?: number;
322
358
  room_id?: string;
323
359
  start_time?: string;
@@ -409,9 +445,12 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
409
445
  delivery_days: number | null;
410
446
  email: string | null;
411
447
  id: string;
448
+ is_default: boolean;
412
449
  name: string;
413
450
  notes: string | null;
414
451
  phone: string | null;
452
+ pickup_moments: import("./types").Json;
453
+ signup_days_before_delivery: number;
415
454
  signup_time_1: string | null;
416
455
  signup_time_2: string | null;
417
456
  updated_at: string;
@@ -424,9 +463,12 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
424
463
  delivery_days?: number | null;
425
464
  email?: string | null;
426
465
  id?: string;
466
+ is_default?: boolean;
427
467
  name: string;
428
468
  notes?: string | null;
429
469
  phone?: string | null;
470
+ pickup_moments?: import("./types").Json;
471
+ signup_days_before_delivery?: number;
430
472
  signup_time_1?: string | null;
431
473
  signup_time_2?: string | null;
432
474
  updated_at?: string;
@@ -439,9 +481,12 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
439
481
  delivery_days?: number | null;
440
482
  email?: string | null;
441
483
  id?: string;
484
+ is_default?: boolean;
442
485
  name?: string;
443
486
  notes?: string | null;
444
487
  phone?: string | null;
488
+ pickup_moments?: import("./types").Json;
489
+ signup_days_before_delivery?: number;
445
490
  signup_time_1?: string | null;
446
491
  signup_time_2?: string | null;
447
492
  updated_at?: string;
@@ -2189,6 +2234,51 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
2189
2234
  referencedColumns: ["id"];
2190
2235
  }];
2191
2236
  };
2237
+ exact_push_queue: {
2238
+ Row: {
2239
+ attempts: number;
2240
+ connection_id: string;
2241
+ created_at: string;
2242
+ external_id: string | null;
2243
+ id: string;
2244
+ idempotency_hash: string;
2245
+ last_error: string | null;
2246
+ payload: import("./types").Json;
2247
+ status: Database["public"]["Enums"]["exact_push_status"];
2248
+ updated_at: string;
2249
+ };
2250
+ Insert: {
2251
+ attempts?: number;
2252
+ connection_id: string;
2253
+ created_at?: string;
2254
+ external_id?: string | null;
2255
+ id?: string;
2256
+ idempotency_hash: string;
2257
+ last_error?: string | null;
2258
+ payload: import("./types").Json;
2259
+ status?: Database["public"]["Enums"]["exact_push_status"];
2260
+ updated_at?: string;
2261
+ };
2262
+ Update: {
2263
+ attempts?: number;
2264
+ connection_id?: string;
2265
+ created_at?: string;
2266
+ external_id?: string | null;
2267
+ id?: string;
2268
+ idempotency_hash?: string;
2269
+ last_error?: string | null;
2270
+ payload?: import("./types").Json;
2271
+ status?: Database["public"]["Enums"]["exact_push_status"];
2272
+ updated_at?: string;
2273
+ };
2274
+ Relationships: [{
2275
+ foreignKeyName: "exact_push_queue_connection_id_fkey";
2276
+ columns: ["connection_id"];
2277
+ isOneToOne: false;
2278
+ referencedRelation: "exact_connections";
2279
+ referencedColumns: ["id"];
2280
+ }];
2281
+ };
2192
2282
  exact_refresh_locks: {
2193
2283
  Row: {
2194
2284
  environment: Database["public"]["Enums"]["exact_env"];
@@ -2251,6 +2341,8 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
2251
2341
  connection_id: string;
2252
2342
  last_error: string | null;
2253
2343
  last_modified_cursor: string | null;
2344
+ last_modified_cursor_customers: string | null;
2345
+ last_modified_cursor_invoices: string | null;
2254
2346
  last_synced_at: string | null;
2255
2347
  status: string;
2256
2348
  updated_at: string;
@@ -2259,6 +2351,8 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
2259
2351
  connection_id: string;
2260
2352
  last_error?: string | null;
2261
2353
  last_modified_cursor?: string | null;
2354
+ last_modified_cursor_customers?: string | null;
2355
+ last_modified_cursor_invoices?: string | null;
2262
2356
  last_synced_at?: string | null;
2263
2357
  status?: string;
2264
2358
  updated_at?: string;
@@ -2267,6 +2361,8 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
2267
2361
  connection_id?: string;
2268
2362
  last_error?: string | null;
2269
2363
  last_modified_cursor?: string | null;
2364
+ last_modified_cursor_customers?: string | null;
2365
+ last_modified_cursor_invoices?: string | null;
2270
2366
  last_synced_at?: string | null;
2271
2367
  status?: string;
2272
2368
  updated_at?: string;
@@ -2309,6 +2405,54 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
2309
2405
  };
2310
2406
  Relationships: [];
2311
2407
  };
2408
+ external_invoice_providers: {
2409
+ Row: {
2410
+ color: string | null;
2411
+ created_at: string;
2412
+ hmac_secret_name: string | null;
2413
+ icon: string | null;
2414
+ is_enabled: boolean;
2415
+ label: string;
2416
+ last_synced_at: string | null;
2417
+ provider: string;
2418
+ push_endpoint: string | null;
2419
+ sort_order: number;
2420
+ status_endpoint: string | null;
2421
+ sync_endpoint: string | null;
2422
+ updated_at: string;
2423
+ };
2424
+ Insert: {
2425
+ color?: string | null;
2426
+ created_at?: string;
2427
+ hmac_secret_name?: string | null;
2428
+ icon?: string | null;
2429
+ is_enabled?: boolean;
2430
+ label: string;
2431
+ last_synced_at?: string | null;
2432
+ provider: string;
2433
+ push_endpoint?: string | null;
2434
+ sort_order?: number;
2435
+ status_endpoint?: string | null;
2436
+ sync_endpoint?: string | null;
2437
+ updated_at?: string;
2438
+ };
2439
+ Update: {
2440
+ color?: string | null;
2441
+ created_at?: string;
2442
+ hmac_secret_name?: string | null;
2443
+ icon?: string | null;
2444
+ is_enabled?: boolean;
2445
+ label?: string;
2446
+ last_synced_at?: string | null;
2447
+ provider?: string;
2448
+ push_endpoint?: string | null;
2449
+ sort_order?: number;
2450
+ status_endpoint?: string | null;
2451
+ sync_endpoint?: string | null;
2452
+ updated_at?: string;
2453
+ };
2454
+ Relationships: [];
2455
+ };
2312
2456
  extra_categories: {
2313
2457
  Row: {
2314
2458
  created_at: string;
@@ -3017,6 +3161,57 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
3017
3161
  };
3018
3162
  Relationships: [];
3019
3163
  };
3164
+ invoice_push_log: {
3165
+ Row: {
3166
+ connection_id: string | null;
3167
+ created_at: string;
3168
+ created_by: string;
3169
+ customer_id: string | null;
3170
+ id: string;
3171
+ last_error: string | null;
3172
+ last_polled_at: string | null;
3173
+ payload: import("./types").Json;
3174
+ provider_id: string;
3175
+ queue_id: string | null;
3176
+ status: string;
3177
+ updated_at: string;
3178
+ };
3179
+ Insert: {
3180
+ connection_id?: string | null;
3181
+ created_at?: string;
3182
+ created_by?: string;
3183
+ customer_id?: string | null;
3184
+ id?: string;
3185
+ last_error?: string | null;
3186
+ last_polled_at?: string | null;
3187
+ payload?: import("./types").Json;
3188
+ provider_id: string;
3189
+ queue_id?: string | null;
3190
+ status?: string;
3191
+ updated_at?: string;
3192
+ };
3193
+ Update: {
3194
+ connection_id?: string | null;
3195
+ created_at?: string;
3196
+ created_by?: string;
3197
+ customer_id?: string | null;
3198
+ id?: string;
3199
+ last_error?: string | null;
3200
+ last_polled_at?: string | null;
3201
+ payload?: import("./types").Json;
3202
+ provider_id?: string;
3203
+ queue_id?: string | null;
3204
+ status?: string;
3205
+ updated_at?: string;
3206
+ };
3207
+ Relationships: [{
3208
+ foreignKeyName: "invoice_push_log_provider_id_fkey";
3209
+ columns: ["provider_id"];
3210
+ isOneToOne: false;
3211
+ referencedRelation: "external_invoice_providers";
3212
+ referencedColumns: ["provider"];
3213
+ }];
3214
+ };
3020
3215
  invoice_run_items: {
3021
3216
  Row: {
3022
3217
  booking_id: string | null;
@@ -4124,6 +4319,36 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
4124
4319
  };
4125
4320
  Relationships: [];
4126
4321
  };
4322
+ pickstation_print_log: {
4323
+ Row: {
4324
+ customer_name: string | null;
4325
+ documents: string[];
4326
+ id: string;
4327
+ ip_address: string | null;
4328
+ order_id: string;
4329
+ order_number: string | null;
4330
+ printed_at: string;
4331
+ };
4332
+ Insert: {
4333
+ customer_name?: string | null;
4334
+ documents?: string[];
4335
+ id?: string;
4336
+ ip_address?: string | null;
4337
+ order_id: string;
4338
+ order_number?: string | null;
4339
+ printed_at?: string;
4340
+ };
4341
+ Update: {
4342
+ customer_name?: string | null;
4343
+ documents?: string[];
4344
+ id?: string;
4345
+ ip_address?: string | null;
4346
+ order_id?: string;
4347
+ order_number?: string | null;
4348
+ printed_at?: string;
4349
+ };
4350
+ Relationships: [];
4351
+ };
4127
4352
  pipeline_settings: {
4128
4353
  Row: {
4129
4354
  created_at: string;
@@ -5567,9 +5792,11 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
5567
5792
  fetched_at: string;
5568
5793
  invoice_number: string;
5569
5794
  line_number: number;
5795
+ line_total: number | null;
5570
5796
  quantity: number | null;
5571
5797
  unit_price: number | null;
5572
5798
  vat_code: string | null;
5799
+ vat_rate: number | null;
5573
5800
  };
5574
5801
  Insert: {
5575
5802
  article_code?: string | null;
@@ -5579,9 +5806,11 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
5579
5806
  fetched_at?: string;
5580
5807
  invoice_number: string;
5581
5808
  line_number: number;
5809
+ line_total?: number | null;
5582
5810
  quantity?: number | null;
5583
5811
  unit_price?: number | null;
5584
5812
  vat_code?: string | null;
5813
+ vat_rate?: number | null;
5585
5814
  };
5586
5815
  Update: {
5587
5816
  article_code?: string | null;
@@ -5591,9 +5820,11 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
5591
5820
  fetched_at?: string;
5592
5821
  invoice_number?: string;
5593
5822
  line_number?: number;
5823
+ line_total?: number | null;
5594
5824
  quantity?: number | null;
5595
5825
  unit_price?: number | null;
5596
5826
  vat_code?: string | null;
5827
+ vat_rate?: number | null;
5597
5828
  };
5598
5829
  Relationships: [{
5599
5830
  foreignKeyName: "twinfield_invoice_lines_cache_v2_connection_id_fkey";
@@ -5770,9 +6001,12 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
5770
6001
  invoice_date: string | null;
5771
6002
  invoice_number: string;
5772
6003
  modified_at: string | null;
6004
+ outstanding_amount: number | null;
5773
6005
  status: string | null;
6006
+ status_label: string | null;
5774
6007
  total_excl: number | null;
5775
6008
  total_incl: number | null;
6009
+ vat_amount: number | null;
5776
6010
  };
5777
6011
  Insert: {
5778
6012
  connection_id: string;
@@ -5784,9 +6018,12 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
5784
6018
  invoice_date?: string | null;
5785
6019
  invoice_number: string;
5786
6020
  modified_at?: string | null;
6021
+ outstanding_amount?: number | null;
5787
6022
  status?: string | null;
6023
+ status_label?: string | null;
5788
6024
  total_excl?: number | null;
5789
6025
  total_incl?: number | null;
6026
+ vat_amount?: number | null;
5790
6027
  };
5791
6028
  Update: {
5792
6029
  connection_id?: string;
@@ -5798,9 +6035,12 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
5798
6035
  invoice_date?: string | null;
5799
6036
  invoice_number?: string;
5800
6037
  modified_at?: string | null;
6038
+ outstanding_amount?: number | null;
5801
6039
  status?: string | null;
6040
+ status_label?: string | null;
5802
6041
  total_excl?: number | null;
5803
6042
  total_incl?: number | null;
6043
+ vat_amount?: number | null;
5804
6044
  };
5805
6045
  Relationships: [{
5806
6046
  foreignKeyName: "twinfield_invoices_cache_v2_connection_id_fkey";
@@ -5834,6 +6074,57 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
5834
6074
  };
5835
6075
  Relationships: [];
5836
6076
  };
6077
+ twinfield_push_queue: {
6078
+ Row: {
6079
+ attempts: number;
6080
+ connection_id: string;
6081
+ created_at: string;
6082
+ external_id: string | null;
6083
+ id: string;
6084
+ idempotency_key: string;
6085
+ last_error: string | null;
6086
+ next_attempt_at: string;
6087
+ office_code: string;
6088
+ payload: import("./types").Json;
6089
+ status: string;
6090
+ updated_at: string;
6091
+ };
6092
+ Insert: {
6093
+ attempts?: number;
6094
+ connection_id: string;
6095
+ created_at?: string;
6096
+ external_id?: string | null;
6097
+ id?: string;
6098
+ idempotency_key: string;
6099
+ last_error?: string | null;
6100
+ next_attempt_at?: string;
6101
+ office_code: string;
6102
+ payload: import("./types").Json;
6103
+ status?: string;
6104
+ updated_at?: string;
6105
+ };
6106
+ Update: {
6107
+ attempts?: number;
6108
+ connection_id?: string;
6109
+ created_at?: string;
6110
+ external_id?: string | null;
6111
+ id?: string;
6112
+ idempotency_key?: string;
6113
+ last_error?: string | null;
6114
+ next_attempt_at?: string;
6115
+ office_code?: string;
6116
+ payload?: import("./types").Json;
6117
+ status?: string;
6118
+ updated_at?: string;
6119
+ };
6120
+ Relationships: [{
6121
+ foreignKeyName: "twinfield_push_queue_connection_id_fkey";
6122
+ columns: ["connection_id"];
6123
+ isOneToOne: false;
6124
+ referencedRelation: "twinfield_connections";
6125
+ referencedColumns: ["id"];
6126
+ }];
6127
+ };
5837
6128
  twinfield_settings: {
5838
6129
  Row: {
5839
6130
  active_environment: string;
@@ -6256,6 +6547,132 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
6256
6547
  };
6257
6548
  Relationships: [];
6258
6549
  };
6550
+ external_invoices_grouped: {
6551
+ Row: {
6552
+ currency: string | null;
6553
+ customer_external_id: string | null;
6554
+ customer_name: string | null;
6555
+ customer_vat: string | null;
6556
+ due_at: string | null;
6557
+ group_key: string | null;
6558
+ invoice_number: string | null;
6559
+ is_merged: boolean | null;
6560
+ issued_at: string | null;
6561
+ modified_at: string | null;
6562
+ open_amount: number | null;
6563
+ paid_at: string | null;
6564
+ providers: string[] | null;
6565
+ source_count: number | null;
6566
+ sources: import("./types").Json | null;
6567
+ status: string | null;
6568
+ total_excl: number | null;
6569
+ total_incl: number | null;
6570
+ total_vat: number | null;
6571
+ };
6572
+ Relationships: [];
6573
+ };
6574
+ external_invoices_unified: {
6575
+ Row: {
6576
+ connection_id: string | null;
6577
+ currency: string | null;
6578
+ customer_external_id: string | null;
6579
+ customer_name: string | null;
6580
+ customer_vat: string | null;
6581
+ due_at: string | null;
6582
+ external_id: string | null;
6583
+ invoice_number: string | null;
6584
+ issued_at: string | null;
6585
+ open_amount: number | null;
6586
+ owner_user_id: string | null;
6587
+ paid_at: string | null;
6588
+ raw: import("./types").Json | null;
6589
+ source: string | null;
6590
+ status: string | null;
6591
+ synced_at: string | null;
6592
+ total_excl: number | null;
6593
+ total_incl: number | null;
6594
+ total_vat: number | null;
6595
+ };
6596
+ Relationships: [];
6597
+ };
6598
+ v_external_customers_exact: {
6599
+ Row: {
6600
+ account_number: string | null;
6601
+ city: string | null;
6602
+ coc_number: string | null;
6603
+ company_name: string | null;
6604
+ connection_id: string | null;
6605
+ country: string | null;
6606
+ currency: string | null;
6607
+ email: string | null;
6608
+ external_id: string | null;
6609
+ is_sales: boolean | null;
6610
+ is_supplier: boolean | null;
6611
+ language: string | null;
6612
+ modified_at: string | null;
6613
+ phone: string | null;
6614
+ postal_code: string | null;
6615
+ raw: import("./types").Json | null;
6616
+ source: string | null;
6617
+ street: string | null;
6618
+ synced_at: string | null;
6619
+ vat_number: string | null;
6620
+ website: string | null;
6621
+ };
6622
+ Insert: {
6623
+ account_number?: string | null;
6624
+ city?: string | null;
6625
+ coc_number?: string | null;
6626
+ company_name?: string | null;
6627
+ connection_id?: string | null;
6628
+ country?: string | null;
6629
+ currency?: string | null;
6630
+ email?: string | null;
6631
+ external_id?: string | null;
6632
+ is_sales?: boolean | null;
6633
+ is_supplier?: boolean | null;
6634
+ language?: string | null;
6635
+ modified_at?: string | null;
6636
+ phone?: string | null;
6637
+ postal_code?: string | null;
6638
+ raw?: import("./types").Json | null;
6639
+ source?: never;
6640
+ street?: string | null;
6641
+ synced_at?: string | null;
6642
+ vat_number?: string | null;
6643
+ website?: string | null;
6644
+ };
6645
+ Update: {
6646
+ account_number?: string | null;
6647
+ city?: string | null;
6648
+ coc_number?: string | null;
6649
+ company_name?: string | null;
6650
+ connection_id?: string | null;
6651
+ country?: string | null;
6652
+ currency?: string | null;
6653
+ email?: string | null;
6654
+ external_id?: string | null;
6655
+ is_sales?: boolean | null;
6656
+ is_supplier?: boolean | null;
6657
+ language?: string | null;
6658
+ modified_at?: string | null;
6659
+ phone?: string | null;
6660
+ postal_code?: string | null;
6661
+ raw?: import("./types").Json | null;
6662
+ source?: never;
6663
+ street?: string | null;
6664
+ synced_at?: string | null;
6665
+ vat_number?: string | null;
6666
+ website?: string | null;
6667
+ };
6668
+ Relationships: [{
6669
+ foreignKeyName: "exact_customers_cache_connection_id_fkey";
6670
+ columns: ["connection_id"];
6671
+ isOneToOne: false;
6672
+ referencedRelation: "exact_connections";
6673
+ referencedColumns: ["id"];
6674
+ }];
6675
+ };
6259
6676
  v_external_customers_floriday: {
6260
6677
  Row: {
6261
6678
  city: string | null;
@@ -6322,8 +6739,113 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
6322
6739
  referencedColumns: ["id"];
6323
6740
  }];
6324
6741
  };
6742
+ v_external_invoices_exact: {
6743
+ Row: {
6744
+ connection_id: string | null;
6745
+ currency: string | null;
6746
+ customer_external_id: string | null;
6747
+ customer_name: string | null;
6748
+ customer_vat: string | null;
6749
+ due_at: string | null;
6750
+ external_id: string | null;
6751
+ invoice_number: string | null;
6752
+ issued_at: string | null;
6753
+ open_amount: number | null;
6754
+ paid_at: string | null;
6755
+ raw: import("./types").Json | null;
6756
+ source: string | null;
6757
+ status: string | null;
6758
+ synced_at: string | null;
6759
+ total_excl: number | null;
6760
+ total_incl: number | null;
6761
+ total_vat: number | null;
6762
+ };
6763
+ Insert: {
6764
+ connection_id?: string | null;
6765
+ currency?: never;
6766
+ customer_external_id?: string | null;
6767
+ customer_name?: string | null;
6768
+ customer_vat?: never;
6769
+ due_at?: string | null;
6770
+ external_id?: string | null;
6771
+ invoice_number?: string | null;
6772
+ issued_at?: string | null;
6773
+ open_amount?: number | null;
6774
+ paid_at?: string | null;
6775
+ raw?: import("./types").Json | null;
6776
+ source?: never;
6777
+ status?: string | null;
6778
+ synced_at?: string | null;
6779
+ total_excl?: number | null;
6780
+ total_incl?: number | null;
6781
+ total_vat?: number | null;
6782
+ };
6783
+ Update: {
6784
+ connection_id?: string | null;
6785
+ currency?: never;
6786
+ customer_external_id?: string | null;
6787
+ customer_name?: string | null;
6788
+ customer_vat?: never;
6789
+ due_at?: string | null;
6790
+ external_id?: string | null;
6791
+ invoice_number?: string | null;
6792
+ issued_at?: string | null;
6793
+ open_amount?: number | null;
6794
+ paid_at?: string | null;
6795
+ raw?: import("./types").Json | null;
6796
+ source?: never;
6797
+ status?: string | null;
6798
+ synced_at?: string | null;
6799
+ total_excl?: number | null;
6800
+ total_incl?: number | null;
6801
+ total_vat?: number | null;
6802
+ };
6803
+ Relationships: [{
6804
+ foreignKeyName: "exact_invoices_cache_connection_id_fkey";
6805
+ columns: ["connection_id"];
6806
+ isOneToOne: false;
6807
+ referencedRelation: "exact_connections";
6808
+ referencedColumns: ["id"];
6809
+ }];
6810
+ };
6811
+ v_external_invoices_twinfield: {
6812
+ Row: {
6813
+ connection_id: string | null;
6814
+ currency: string | null;
6815
+ customer_external_id: string | null;
6816
+ customer_name: string | null;
6817
+ customer_vat: string | null;
6818
+ due_at: string | null;
6819
+ external_id: string | null;
6820
+ invoice_number: string | null;
6821
+ issued_at: string | null;
6822
+ open_amount: number | null;
6823
+ owner_user_id: string | null;
6824
+ paid_at: string | null;
6825
+ raw: import("./types").Json | null;
6826
+ source: string | null;
6827
+ status: string | null;
6828
+ synced_at: string | null;
6829
+ total_excl: number | null;
6830
+ total_incl: number | null;
6831
+ total_vat: number | null;
6832
+ };
6833
+ Relationships: [{
6834
+ foreignKeyName: "twinfield_invoices_cache_v2_connection_id_fkey";
6835
+ columns: ["connection_id"];
6836
+ isOneToOne: false;
6837
+ referencedRelation: "twinfield_connections";
6838
+ referencedColumns: ["id"];
6839
+ }];
6840
+ };
6325
6841
  };
6326
6842
  Functions: {
6843
+ call_exact_route: {
6844
+ Args: {
6845
+ path: string;
6846
+ };
6847
+ Returns: number;
6848
+ };
6327
6849
  dashboard_list_public_schema: {
6328
6850
  Args: never;
6329
6851
  Returns: {
@@ -6579,6 +7101,14 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
6579
7101
  };
6580
7102
  Returns: number;
6581
7103
  };
7104
+ schedule_twinfield_push_queue_flush: {
7105
+ Args: {
7106
+ p_apikey: string;
7107
+ p_cron_secret?: string;
7108
+ p_url: string;
7109
+ };
7110
+ Returns: number;
7111
+ };
6582
7112
  schedule_twinfield_token_refresh: {
6583
7113
  Args: {
6584
7114
  p_apikey: string;
@@ -6619,6 +7149,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
6619
7149
  Enums: {
6620
7150
  app_role: "admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie";
6621
7151
  exact_env: "staging" | "live";
7152
+ exact_push_status: "pending" | "sent" | "error";
6622
7153
  quote_status: "concept" | "verzonden" | "bekeken" | "in_behandeling" | "geaccepteerd" | "afgewezen" | "verlopen" | "gearchiveerd";
6623
7154
  };
6624
7155
  CompositeTypes: { [_ in never]: never; };