@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
@@ -7,6 +7,39 @@ export type Database = {
7
7
  };
8
8
  public: {
9
9
  Tables: {
10
+ afhandeling_settings: {
11
+ Row: {
12
+ created_at: string;
13
+ id: string;
14
+ max_workdays_earlier_pick: number;
15
+ pick_days_before_transport: number;
16
+ pick_distribution_enabled: boolean;
17
+ transport_register_days_before: number;
18
+ updated_at: string;
19
+ user_id: string;
20
+ };
21
+ Insert: {
22
+ created_at?: string;
23
+ id?: string;
24
+ max_workdays_earlier_pick?: number;
25
+ pick_days_before_transport?: number;
26
+ pick_distribution_enabled?: boolean;
27
+ transport_register_days_before?: number;
28
+ updated_at?: string;
29
+ user_id: string;
30
+ };
31
+ Update: {
32
+ created_at?: string;
33
+ id?: string;
34
+ max_workdays_earlier_pick?: number;
35
+ pick_days_before_transport?: number;
36
+ pick_distribution_enabled?: boolean;
37
+ transport_register_days_before?: number;
38
+ updated_at?: string;
39
+ user_id?: string;
40
+ };
41
+ Relationships: [];
42
+ };
10
43
  agenda_connections: {
11
44
  Row: {
12
45
  account_email: string | null;
@@ -278,6 +311,7 @@ export type Database = {
278
311
  invoice_run_id: string | null;
279
312
  invoice_status: string | null;
280
313
  invoiced_at: string | null;
314
+ notes: string | null;
281
315
  number_of_people: number;
282
316
  room_id: string;
283
317
  start_time: string;
@@ -302,6 +336,7 @@ export type Database = {
302
336
  invoice_run_id?: string | null;
303
337
  invoice_status?: string | null;
304
338
  invoiced_at?: string | null;
339
+ notes?: string | null;
305
340
  number_of_people?: number;
306
341
  room_id: string;
307
342
  start_time: string;
@@ -326,6 +361,7 @@ export type Database = {
326
361
  invoice_run_id?: string | null;
327
362
  invoice_status?: string | null;
328
363
  invoiced_at?: string | null;
364
+ notes?: string | null;
329
365
  number_of_people?: number;
330
366
  room_id?: string;
331
367
  start_time?: string;
@@ -421,9 +457,12 @@ export type Database = {
421
457
  delivery_days: number | null;
422
458
  email: string | null;
423
459
  id: string;
460
+ is_default: boolean;
424
461
  name: string;
425
462
  notes: string | null;
426
463
  phone: string | null;
464
+ pickup_moments: Json;
465
+ signup_days_before_delivery: number;
427
466
  signup_time_1: string | null;
428
467
  signup_time_2: string | null;
429
468
  updated_at: string;
@@ -436,9 +475,12 @@ export type Database = {
436
475
  delivery_days?: number | null;
437
476
  email?: string | null;
438
477
  id?: string;
478
+ is_default?: boolean;
439
479
  name: string;
440
480
  notes?: string | null;
441
481
  phone?: string | null;
482
+ pickup_moments?: Json;
483
+ signup_days_before_delivery?: number;
442
484
  signup_time_1?: string | null;
443
485
  signup_time_2?: string | null;
444
486
  updated_at?: string;
@@ -451,9 +493,12 @@ export type Database = {
451
493
  delivery_days?: number | null;
452
494
  email?: string | null;
453
495
  id?: string;
496
+ is_default?: boolean;
454
497
  name?: string;
455
498
  notes?: string | null;
456
499
  phone?: string | null;
500
+ pickup_moments?: Json;
501
+ signup_days_before_delivery?: number;
457
502
  signup_time_1?: string | null;
458
503
  signup_time_2?: string | null;
459
504
  updated_at?: string;
@@ -2254,6 +2299,53 @@ export type Database = {
2254
2299
  }
2255
2300
  ];
2256
2301
  };
2302
+ exact_push_queue: {
2303
+ Row: {
2304
+ attempts: number;
2305
+ connection_id: string;
2306
+ created_at: string;
2307
+ external_id: string | null;
2308
+ id: string;
2309
+ idempotency_hash: string;
2310
+ last_error: string | null;
2311
+ payload: Json;
2312
+ status: Database["public"]["Enums"]["exact_push_status"];
2313
+ updated_at: string;
2314
+ };
2315
+ Insert: {
2316
+ attempts?: number;
2317
+ connection_id: string;
2318
+ created_at?: string;
2319
+ external_id?: string | null;
2320
+ id?: string;
2321
+ idempotency_hash: string;
2322
+ last_error?: string | null;
2323
+ payload: Json;
2324
+ status?: Database["public"]["Enums"]["exact_push_status"];
2325
+ updated_at?: string;
2326
+ };
2327
+ Update: {
2328
+ attempts?: number;
2329
+ connection_id?: string;
2330
+ created_at?: string;
2331
+ external_id?: string | null;
2332
+ id?: string;
2333
+ idempotency_hash?: string;
2334
+ last_error?: string | null;
2335
+ payload?: Json;
2336
+ status?: Database["public"]["Enums"]["exact_push_status"];
2337
+ updated_at?: string;
2338
+ };
2339
+ Relationships: [
2340
+ {
2341
+ foreignKeyName: "exact_push_queue_connection_id_fkey";
2342
+ columns: ["connection_id"];
2343
+ isOneToOne: false;
2344
+ referencedRelation: "exact_connections";
2345
+ referencedColumns: ["id"];
2346
+ }
2347
+ ];
2348
+ };
2257
2349
  exact_refresh_locks: {
2258
2350
  Row: {
2259
2351
  environment: Database["public"]["Enums"]["exact_env"];
@@ -2316,6 +2408,8 @@ export type Database = {
2316
2408
  connection_id: string;
2317
2409
  last_error: string | null;
2318
2410
  last_modified_cursor: string | null;
2411
+ last_modified_cursor_customers: string | null;
2412
+ last_modified_cursor_invoices: string | null;
2319
2413
  last_synced_at: string | null;
2320
2414
  status: string;
2321
2415
  updated_at: string;
@@ -2324,6 +2418,8 @@ export type Database = {
2324
2418
  connection_id: string;
2325
2419
  last_error?: string | null;
2326
2420
  last_modified_cursor?: string | null;
2421
+ last_modified_cursor_customers?: string | null;
2422
+ last_modified_cursor_invoices?: string | null;
2327
2423
  last_synced_at?: string | null;
2328
2424
  status?: string;
2329
2425
  updated_at?: string;
@@ -2332,6 +2428,8 @@ export type Database = {
2332
2428
  connection_id?: string;
2333
2429
  last_error?: string | null;
2334
2430
  last_modified_cursor?: string | null;
2431
+ last_modified_cursor_customers?: string | null;
2432
+ last_modified_cursor_invoices?: string | null;
2335
2433
  last_synced_at?: string | null;
2336
2434
  status?: string;
2337
2435
  updated_at?: string;
@@ -2374,6 +2472,54 @@ export type Database = {
2374
2472
  };
2375
2473
  Relationships: [];
2376
2474
  };
2475
+ external_invoice_providers: {
2476
+ Row: {
2477
+ color: string | null;
2478
+ created_at: string;
2479
+ hmac_secret_name: string | null;
2480
+ icon: string | null;
2481
+ is_enabled: boolean;
2482
+ label: string;
2483
+ last_synced_at: string | null;
2484
+ provider: string;
2485
+ push_endpoint: string | null;
2486
+ sort_order: number;
2487
+ status_endpoint: string | null;
2488
+ sync_endpoint: string | null;
2489
+ updated_at: string;
2490
+ };
2491
+ Insert: {
2492
+ color?: string | null;
2493
+ created_at?: string;
2494
+ hmac_secret_name?: string | null;
2495
+ icon?: string | null;
2496
+ is_enabled?: boolean;
2497
+ label: string;
2498
+ last_synced_at?: string | null;
2499
+ provider: string;
2500
+ push_endpoint?: string | null;
2501
+ sort_order?: number;
2502
+ status_endpoint?: string | null;
2503
+ sync_endpoint?: string | null;
2504
+ updated_at?: string;
2505
+ };
2506
+ Update: {
2507
+ color?: string | null;
2508
+ created_at?: string;
2509
+ hmac_secret_name?: string | null;
2510
+ icon?: string | null;
2511
+ is_enabled?: boolean;
2512
+ label?: string;
2513
+ last_synced_at?: string | null;
2514
+ provider?: string;
2515
+ push_endpoint?: string | null;
2516
+ sort_order?: number;
2517
+ status_endpoint?: string | null;
2518
+ sync_endpoint?: string | null;
2519
+ updated_at?: string;
2520
+ };
2521
+ Relationships: [];
2522
+ };
2377
2523
  extra_categories: {
2378
2524
  Row: {
2379
2525
  created_at: string;
@@ -3101,6 +3247,59 @@ export type Database = {
3101
3247
  };
3102
3248
  Relationships: [];
3103
3249
  };
3250
+ invoice_push_log: {
3251
+ Row: {
3252
+ connection_id: string | null;
3253
+ created_at: string;
3254
+ created_by: string;
3255
+ customer_id: string | null;
3256
+ id: string;
3257
+ last_error: string | null;
3258
+ last_polled_at: string | null;
3259
+ payload: Json;
3260
+ provider_id: string;
3261
+ queue_id: string | null;
3262
+ status: string;
3263
+ updated_at: string;
3264
+ };
3265
+ Insert: {
3266
+ connection_id?: string | null;
3267
+ created_at?: string;
3268
+ created_by?: string;
3269
+ customer_id?: string | null;
3270
+ id?: string;
3271
+ last_error?: string | null;
3272
+ last_polled_at?: string | null;
3273
+ payload?: Json;
3274
+ provider_id: string;
3275
+ queue_id?: string | null;
3276
+ status?: string;
3277
+ updated_at?: string;
3278
+ };
3279
+ Update: {
3280
+ connection_id?: string | null;
3281
+ created_at?: string;
3282
+ created_by?: string;
3283
+ customer_id?: string | null;
3284
+ id?: string;
3285
+ last_error?: string | null;
3286
+ last_polled_at?: string | null;
3287
+ payload?: Json;
3288
+ provider_id?: string;
3289
+ queue_id?: string | null;
3290
+ status?: string;
3291
+ updated_at?: string;
3292
+ };
3293
+ Relationships: [
3294
+ {
3295
+ foreignKeyName: "invoice_push_log_provider_id_fkey";
3296
+ columns: ["provider_id"];
3297
+ isOneToOne: false;
3298
+ referencedRelation: "external_invoice_providers";
3299
+ referencedColumns: ["provider"];
3300
+ }
3301
+ ];
3302
+ };
3104
3303
  invoice_run_items: {
3105
3304
  Row: {
3106
3305
  booking_id: string | null;
@@ -4247,6 +4446,36 @@ export type Database = {
4247
4446
  };
4248
4447
  Relationships: [];
4249
4448
  };
4449
+ pickstation_print_log: {
4450
+ Row: {
4451
+ customer_name: string | null;
4452
+ documents: string[];
4453
+ id: string;
4454
+ ip_address: string | null;
4455
+ order_id: string;
4456
+ order_number: string | null;
4457
+ printed_at: string;
4458
+ };
4459
+ Insert: {
4460
+ customer_name?: string | null;
4461
+ documents?: string[];
4462
+ id?: string;
4463
+ ip_address?: string | null;
4464
+ order_id: string;
4465
+ order_number?: string | null;
4466
+ printed_at?: string;
4467
+ };
4468
+ Update: {
4469
+ customer_name?: string | null;
4470
+ documents?: string[];
4471
+ id?: string;
4472
+ ip_address?: string | null;
4473
+ order_id?: string;
4474
+ order_number?: string | null;
4475
+ printed_at?: string;
4476
+ };
4477
+ Relationships: [];
4478
+ };
4250
4479
  pipeline_settings: {
4251
4480
  Row: {
4252
4481
  created_at: string;
@@ -5730,9 +5959,11 @@ export type Database = {
5730
5959
  fetched_at: string;
5731
5960
  invoice_number: string;
5732
5961
  line_number: number;
5962
+ line_total: number | null;
5733
5963
  quantity: number | null;
5734
5964
  unit_price: number | null;
5735
5965
  vat_code: string | null;
5966
+ vat_rate: number | null;
5736
5967
  };
5737
5968
  Insert: {
5738
5969
  article_code?: string | null;
@@ -5742,9 +5973,11 @@ export type Database = {
5742
5973
  fetched_at?: string;
5743
5974
  invoice_number: string;
5744
5975
  line_number: number;
5976
+ line_total?: number | null;
5745
5977
  quantity?: number | null;
5746
5978
  unit_price?: number | null;
5747
5979
  vat_code?: string | null;
5980
+ vat_rate?: number | null;
5748
5981
  };
5749
5982
  Update: {
5750
5983
  article_code?: string | null;
@@ -5754,9 +5987,11 @@ export type Database = {
5754
5987
  fetched_at?: string;
5755
5988
  invoice_number?: string;
5756
5989
  line_number?: number;
5990
+ line_total?: number | null;
5757
5991
  quantity?: number | null;
5758
5992
  unit_price?: number | null;
5759
5993
  vat_code?: string | null;
5994
+ vat_rate?: number | null;
5760
5995
  };
5761
5996
  Relationships: [
5762
5997
  {
@@ -5935,9 +6170,12 @@ export type Database = {
5935
6170
  invoice_date: string | null;
5936
6171
  invoice_number: string;
5937
6172
  modified_at: string | null;
6173
+ outstanding_amount: number | null;
5938
6174
  status: string | null;
6175
+ status_label: string | null;
5939
6176
  total_excl: number | null;
5940
6177
  total_incl: number | null;
6178
+ vat_amount: number | null;
5941
6179
  };
5942
6180
  Insert: {
5943
6181
  connection_id: string;
@@ -5949,9 +6187,12 @@ export type Database = {
5949
6187
  invoice_date?: string | null;
5950
6188
  invoice_number: string;
5951
6189
  modified_at?: string | null;
6190
+ outstanding_amount?: number | null;
5952
6191
  status?: string | null;
6192
+ status_label?: string | null;
5953
6193
  total_excl?: number | null;
5954
6194
  total_incl?: number | null;
6195
+ vat_amount?: number | null;
5955
6196
  };
5956
6197
  Update: {
5957
6198
  connection_id?: string;
@@ -5963,9 +6204,12 @@ export type Database = {
5963
6204
  invoice_date?: string | null;
5964
6205
  invoice_number?: string;
5965
6206
  modified_at?: string | null;
6207
+ outstanding_amount?: number | null;
5966
6208
  status?: string | null;
6209
+ status_label?: string | null;
5967
6210
  total_excl?: number | null;
5968
6211
  total_incl?: number | null;
6212
+ vat_amount?: number | null;
5969
6213
  };
5970
6214
  Relationships: [
5971
6215
  {
@@ -6001,6 +6245,59 @@ export type Database = {
6001
6245
  };
6002
6246
  Relationships: [];
6003
6247
  };
6248
+ twinfield_push_queue: {
6249
+ Row: {
6250
+ attempts: number;
6251
+ connection_id: string;
6252
+ created_at: string;
6253
+ external_id: string | null;
6254
+ id: string;
6255
+ idempotency_key: string;
6256
+ last_error: string | null;
6257
+ next_attempt_at: string;
6258
+ office_code: string;
6259
+ payload: Json;
6260
+ status: string;
6261
+ updated_at: string;
6262
+ };
6263
+ Insert: {
6264
+ attempts?: number;
6265
+ connection_id: string;
6266
+ created_at?: string;
6267
+ external_id?: string | null;
6268
+ id?: string;
6269
+ idempotency_key: string;
6270
+ last_error?: string | null;
6271
+ next_attempt_at?: string;
6272
+ office_code: string;
6273
+ payload: Json;
6274
+ status?: string;
6275
+ updated_at?: string;
6276
+ };
6277
+ Update: {
6278
+ attempts?: number;
6279
+ connection_id?: string;
6280
+ created_at?: string;
6281
+ external_id?: string | null;
6282
+ id?: string;
6283
+ idempotency_key?: string;
6284
+ last_error?: string | null;
6285
+ next_attempt_at?: string;
6286
+ office_code?: string;
6287
+ payload?: Json;
6288
+ status?: string;
6289
+ updated_at?: string;
6290
+ };
6291
+ Relationships: [
6292
+ {
6293
+ foreignKeyName: "twinfield_push_queue_connection_id_fkey";
6294
+ columns: ["connection_id"];
6295
+ isOneToOne: false;
6296
+ referencedRelation: "twinfield_connections";
6297
+ referencedColumns: ["id"];
6298
+ }
6299
+ ];
6300
+ };
6004
6301
  twinfield_settings: {
6005
6302
  Row: {
6006
6303
  active_environment: string;
@@ -6435,6 +6732,134 @@ export type Database = {
6435
6732
  };
6436
6733
  Relationships: [];
6437
6734
  };
6735
+ external_invoices_grouped: {
6736
+ Row: {
6737
+ currency: string | null;
6738
+ customer_external_id: string | null;
6739
+ customer_name: string | null;
6740
+ customer_vat: string | null;
6741
+ due_at: string | null;
6742
+ group_key: string | null;
6743
+ invoice_number: string | null;
6744
+ is_merged: boolean | null;
6745
+ issued_at: string | null;
6746
+ modified_at: string | null;
6747
+ open_amount: number | null;
6748
+ paid_at: string | null;
6749
+ providers: string[] | null;
6750
+ source_count: number | null;
6751
+ sources: Json | null;
6752
+ status: string | null;
6753
+ total_excl: number | null;
6754
+ total_incl: number | null;
6755
+ total_vat: number | null;
6756
+ };
6757
+ Relationships: [];
6758
+ };
6759
+ external_invoices_unified: {
6760
+ Row: {
6761
+ connection_id: string | null;
6762
+ currency: string | null;
6763
+ customer_external_id: string | null;
6764
+ customer_name: string | null;
6765
+ customer_vat: string | null;
6766
+ due_at: string | null;
6767
+ external_id: string | null;
6768
+ invoice_number: string | null;
6769
+ issued_at: string | null;
6770
+ open_amount: number | null;
6771
+ owner_user_id: string | null;
6772
+ paid_at: string | null;
6773
+ raw: Json | null;
6774
+ source: string | null;
6775
+ status: string | null;
6776
+ synced_at: string | null;
6777
+ total_excl: number | null;
6778
+ total_incl: number | null;
6779
+ total_vat: number | null;
6780
+ };
6781
+ Relationships: [];
6782
+ };
6783
+ v_external_customers_exact: {
6784
+ Row: {
6785
+ account_number: string | null;
6786
+ city: string | null;
6787
+ coc_number: string | null;
6788
+ company_name: string | null;
6789
+ connection_id: string | null;
6790
+ country: string | null;
6791
+ currency: string | null;
6792
+ email: string | null;
6793
+ external_id: string | null;
6794
+ is_sales: boolean | null;
6795
+ is_supplier: boolean | null;
6796
+ language: string | null;
6797
+ modified_at: string | null;
6798
+ phone: string | null;
6799
+ postal_code: string | null;
6800
+ raw: Json | null;
6801
+ source: string | null;
6802
+ street: string | null;
6803
+ synced_at: string | null;
6804
+ vat_number: string | null;
6805
+ website: string | null;
6806
+ };
6807
+ Insert: {
6808
+ account_number?: string | null;
6809
+ city?: string | null;
6810
+ coc_number?: string | null;
6811
+ company_name?: string | null;
6812
+ connection_id?: string | null;
6813
+ country?: string | null;
6814
+ currency?: string | null;
6815
+ email?: string | null;
6816
+ external_id?: string | null;
6817
+ is_sales?: boolean | null;
6818
+ is_supplier?: boolean | null;
6819
+ language?: string | null;
6820
+ modified_at?: string | null;
6821
+ phone?: string | null;
6822
+ postal_code?: string | null;
6823
+ raw?: Json | null;
6824
+ source?: never;
6825
+ street?: string | null;
6826
+ synced_at?: string | null;
6827
+ vat_number?: string | null;
6828
+ website?: string | null;
6829
+ };
6830
+ Update: {
6831
+ account_number?: string | null;
6832
+ city?: string | null;
6833
+ coc_number?: string | null;
6834
+ company_name?: string | null;
6835
+ connection_id?: string | null;
6836
+ country?: string | null;
6837
+ currency?: string | null;
6838
+ email?: string | null;
6839
+ external_id?: string | null;
6840
+ is_sales?: boolean | null;
6841
+ is_supplier?: boolean | null;
6842
+ language?: string | null;
6843
+ modified_at?: string | null;
6844
+ phone?: string | null;
6845
+ postal_code?: string | null;
6846
+ raw?: Json | null;
6847
+ source?: never;
6848
+ street?: string | null;
6849
+ synced_at?: string | null;
6850
+ vat_number?: string | null;
6851
+ website?: string | null;
6852
+ };
6853
+ Relationships: [
6854
+ {
6855
+ foreignKeyName: "exact_customers_cache_connection_id_fkey";
6856
+ columns: ["connection_id"];
6857
+ isOneToOne: false;
6858
+ referencedRelation: "exact_connections";
6859
+ referencedColumns: ["id"];
6860
+ }
6861
+ ];
6862
+ };
6438
6863
  v_external_customers_floriday: {
6439
6864
  Row: {
6440
6865
  city: string | null;
@@ -6505,8 +6930,117 @@ export type Database = {
6505
6930
  }
6506
6931
  ];
6507
6932
  };
6933
+ v_external_invoices_exact: {
6934
+ Row: {
6935
+ connection_id: string | null;
6936
+ currency: string | null;
6937
+ customer_external_id: string | null;
6938
+ customer_name: string | null;
6939
+ customer_vat: string | null;
6940
+ due_at: string | null;
6941
+ external_id: string | null;
6942
+ invoice_number: string | null;
6943
+ issued_at: string | null;
6944
+ open_amount: number | null;
6945
+ paid_at: string | null;
6946
+ raw: Json | null;
6947
+ source: string | null;
6948
+ status: string | null;
6949
+ synced_at: string | null;
6950
+ total_excl: number | null;
6951
+ total_incl: number | null;
6952
+ total_vat: number | null;
6953
+ };
6954
+ Insert: {
6955
+ connection_id?: string | null;
6956
+ currency?: never;
6957
+ customer_external_id?: string | null;
6958
+ customer_name?: string | null;
6959
+ customer_vat?: never;
6960
+ due_at?: string | null;
6961
+ external_id?: string | null;
6962
+ invoice_number?: string | null;
6963
+ issued_at?: string | null;
6964
+ open_amount?: number | null;
6965
+ paid_at?: string | null;
6966
+ raw?: Json | null;
6967
+ source?: never;
6968
+ status?: string | null;
6969
+ synced_at?: string | null;
6970
+ total_excl?: number | null;
6971
+ total_incl?: number | null;
6972
+ total_vat?: number | null;
6973
+ };
6974
+ Update: {
6975
+ connection_id?: string | null;
6976
+ currency?: never;
6977
+ customer_external_id?: string | null;
6978
+ customer_name?: string | null;
6979
+ customer_vat?: never;
6980
+ due_at?: string | null;
6981
+ external_id?: string | null;
6982
+ invoice_number?: string | null;
6983
+ issued_at?: string | null;
6984
+ open_amount?: number | null;
6985
+ paid_at?: string | null;
6986
+ raw?: Json | null;
6987
+ source?: never;
6988
+ status?: string | null;
6989
+ synced_at?: string | null;
6990
+ total_excl?: number | null;
6991
+ total_incl?: number | null;
6992
+ total_vat?: number | null;
6993
+ };
6994
+ Relationships: [
6995
+ {
6996
+ foreignKeyName: "exact_invoices_cache_connection_id_fkey";
6997
+ columns: ["connection_id"];
6998
+ isOneToOne: false;
6999
+ referencedRelation: "exact_connections";
7000
+ referencedColumns: ["id"];
7001
+ }
7002
+ ];
7003
+ };
7004
+ v_external_invoices_twinfield: {
7005
+ Row: {
7006
+ connection_id: string | null;
7007
+ currency: string | null;
7008
+ customer_external_id: string | null;
7009
+ customer_name: string | null;
7010
+ customer_vat: string | null;
7011
+ due_at: string | null;
7012
+ external_id: string | null;
7013
+ invoice_number: string | null;
7014
+ issued_at: string | null;
7015
+ open_amount: number | null;
7016
+ owner_user_id: string | null;
7017
+ paid_at: string | null;
7018
+ raw: Json | null;
7019
+ source: string | null;
7020
+ status: string | null;
7021
+ synced_at: string | null;
7022
+ total_excl: number | null;
7023
+ total_incl: number | null;
7024
+ total_vat: number | null;
7025
+ };
7026
+ Relationships: [
7027
+ {
7028
+ foreignKeyName: "twinfield_invoices_cache_v2_connection_id_fkey";
7029
+ columns: ["connection_id"];
7030
+ isOneToOne: false;
7031
+ referencedRelation: "twinfield_connections";
7032
+ referencedColumns: ["id"];
7033
+ }
7034
+ ];
7035
+ };
6508
7036
  };
6509
7037
  Functions: {
7038
+ call_exact_route: {
7039
+ Args: {
7040
+ path: string;
7041
+ };
7042
+ Returns: number;
7043
+ };
6510
7044
  dashboard_list_public_schema: {
6511
7045
  Args: never;
6512
7046
  Returns: {
@@ -6762,6 +7296,14 @@ export type Database = {
6762
7296
  };
6763
7297
  Returns: number;
6764
7298
  };
7299
+ schedule_twinfield_push_queue_flush: {
7300
+ Args: {
7301
+ p_apikey: string;
7302
+ p_cron_secret?: string;
7303
+ p_url: string;
7304
+ };
7305
+ Returns: number;
7306
+ };
6765
7307
  schedule_twinfield_token_refresh: {
6766
7308
  Args: {
6767
7309
  p_apikey: string;
@@ -6802,6 +7344,7 @@ export type Database = {
6802
7344
  Enums: {
6803
7345
  app_role: "admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie";
6804
7346
  exact_env: "staging" | "live";
7347
+ exact_push_status: "pending" | "sent" | "error";
6805
7348
  quote_status: "concept" | "verzonden" | "bekeken" | "in_behandeling" | "geaccepteerd" | "afgewezen" | "verlopen" | "gearchiveerd";
6806
7349
  };
6807
7350
  CompositeTypes: {
@@ -6863,6 +7406,7 @@ export declare const Constants: {
6863
7406
  readonly Enums: {
6864
7407
  readonly app_role: readonly ["admin", "manager", "warehouse", "sales", "developer", "receptie"];
6865
7408
  readonly exact_env: readonly ["staging", "live"];
7409
+ readonly exact_push_status: readonly ["pending", "sent", "error"];
6866
7410
  readonly quote_status: readonly ["concept", "verzonden", "bekeken", "in_behandeling", "geaccepteerd", "afgewezen", "verlopen", "gearchiveerd"];
6867
7411
  };
6868
7412
  };