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