@flowselections/floriday-authenticatie-module 1.0.53 → 1.0.54

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 (59) hide show
  1. package/dist-lib/components/TemplatePage.d.ts +1 -1
  2. package/dist-lib/components/TemplatePage.d.ts.map +1 -1
  3. package/dist-lib/components/floriday/FlorydayApiLogPage.d.ts +1 -1
  4. package/dist-lib/components/floriday/FlorydayApiLogPage.d.ts.map +1 -1
  5. package/dist-lib/components/floriday/FlorydayConnectionPage.d.ts +1 -1
  6. package/dist-lib/components/floriday/FlorydayConnectionPage.d.ts.map +1 -1
  7. package/dist-lib/components/floriday/FlorydayConnectionPage.js +2 -1
  8. package/dist-lib/components/floriday/FlorydayCredentialStatusBanner.d.ts +1 -1
  9. package/dist-lib/components/floriday/FlorydayCredentialStatusBanner.d.ts.map +1 -1
  10. package/dist-lib/components/floriday/FlorydayShellRoutesCard.d.ts +2 -0
  11. package/dist-lib/components/floriday/FlorydayShellRoutesCard.d.ts.map +1 -0
  12. package/dist-lib/components/floriday/FlorydayShellRoutesCard.js +22 -0
  13. package/dist-lib/components/floriday/FlorydaySyncHealthBanner.d.ts +1 -1
  14. package/dist-lib/components/floriday/FlorydaySyncHealthBanner.d.ts.map +1 -1
  15. package/dist-lib/components/floriday/FlorydaySyncJobsCard.d.ts +1 -1
  16. package/dist-lib/components/floriday/FlorydaySyncJobsCard.d.ts.map +1 -1
  17. package/dist-lib/components/floriday/FlorydayWebhooksCard.d.ts +1 -1
  18. package/dist-lib/components/floriday/FlorydayWebhooksCard.d.ts.map +1 -1
  19. package/dist-lib/components/floriday/TokenHealthCard.d.ts +1 -1
  20. package/dist-lib/components/floriday/TokenHealthCard.d.ts.map +1 -1
  21. package/dist-lib/components/settings/FloricodeSettingsCard.d.ts +1 -1
  22. package/dist-lib/components/settings/FloricodeSettingsCard.d.ts.map +1 -1
  23. package/dist-lib/components/settings/FlorydaySettingsCard.d.ts +1 -1
  24. package/dist-lib/components/settings/FlorydaySettingsCard.d.ts.map +1 -1
  25. package/dist-lib/integrations/supabase/client.js +1 -1
  26. package/dist-lib/integrations/supabase/client.server.d.ts +2 -32082
  27. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  28. package/dist-lib/integrations/supabase/client.server.js +1 -1
  29. package/dist-lib/integrations/supabase/types.d.ts +1043 -3
  30. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  31. package/dist-lib/lib/cron/process-stock-queue.d.ts +27 -5
  32. package/dist-lib/lib/cron/process-stock-queue.d.ts.map +1 -1
  33. package/dist-lib/lib/cron/process-stock-queue.js +98 -75
  34. package/dist-lib/lib/floriday-scopes.d.ts +7 -0
  35. package/dist-lib/lib/floriday-scopes.d.ts.map +1 -1
  36. package/dist-lib/lib/floriday-scopes.js +34 -0
  37. package/dist-lib/lib/floriday-sync.functions.d.ts.map +1 -1
  38. package/dist-lib/lib/floriday-sync.functions.js +4 -2
  39. package/dist-lib/lib/floriday.functions.d.ts +11 -0
  40. package/dist-lib/lib/floriday.functions.d.ts.map +1 -1
  41. package/dist-lib/lib/floriday.functions.js +76 -22
  42. package/dist-lib/lib/gateway/diagnostics.d.ts.map +1 -1
  43. package/dist-lib/lib/gateway/diagnostics.js +12 -0
  44. package/dist-lib/lib/gateway/floriday-get.d.ts +55 -0
  45. package/dist-lib/lib/gateway/floriday-get.d.ts.map +1 -0
  46. package/dist-lib/lib/gateway/floriday-get.js +185 -0
  47. package/dist-lib/lib/gateway/index.d.ts +1 -0
  48. package/dist-lib/lib/gateway/index.d.ts.map +1 -1
  49. package/dist-lib/lib/gateway/index.js +1 -0
  50. package/dist-lib/lib/gateway/webhook-subscribe.d.ts.map +1 -1
  51. package/dist-lib/lib/gateway/webhook-subscribe.js +13 -1
  52. package/dist-lib/lib/shell-base.d.ts +2 -0
  53. package/dist-lib/lib/shell-base.d.ts.map +1 -0
  54. package/dist-lib/lib/shell-base.js +31 -0
  55. package/dist-lib/lib/shell-routes.d.ts +25 -0
  56. package/dist-lib/lib/shell-routes.d.ts.map +1 -0
  57. package/dist-lib/lib/shell-routes.js +127 -0
  58. package/package.json +20 -3
  59. package/dist-lib/assets/floriday-logo.png.asset.json +0 -11
@@ -704,8 +704,10 @@ export type Database = {
704
704
  eenheid: string;
705
705
  fabrikant: string | null;
706
706
  fetched_at: string;
707
+ foto_pad: string | null;
707
708
  gtin: string | null;
708
709
  id: string;
710
+ marge_procent: number | null;
709
711
  naam: string;
710
712
  netto_prijs_cent: number | null;
711
713
  omschrijving: string | null;
@@ -722,8 +724,10 @@ export type Database = {
722
724
  eenheid?: string;
723
725
  fabrikant?: string | null;
724
726
  fetched_at?: string;
727
+ foto_pad?: string | null;
725
728
  gtin?: string | null;
726
729
  id?: string;
730
+ marge_procent?: number | null;
727
731
  naam: string;
728
732
  netto_prijs_cent?: number | null;
729
733
  omschrijving?: string | null;
@@ -740,8 +744,10 @@ export type Database = {
740
744
  eenheid?: string;
741
745
  fabrikant?: string | null;
742
746
  fetched_at?: string;
747
+ foto_pad?: string | null;
743
748
  gtin?: string | null;
744
749
  id?: string;
750
+ marge_procent?: number | null;
745
751
  naam?: string;
746
752
  netto_prijs_cent?: number | null;
747
753
  omschrijving?: string | null;
@@ -1046,6 +1052,7 @@ export type Database = {
1046
1052
  auto_break_unpaid: boolean;
1047
1053
  auto_stop_after_hours: number;
1048
1054
  callout_fee: number;
1055
+ company_number: string | null;
1049
1056
  created_at: string;
1050
1057
  daily_regular_hours: number;
1051
1058
  default_hourly_rate: number;
@@ -1077,6 +1084,7 @@ export type Database = {
1077
1084
  auto_break_unpaid?: boolean;
1078
1085
  auto_stop_after_hours?: number;
1079
1086
  callout_fee?: number;
1087
+ company_number?: string | null;
1080
1088
  created_at?: string;
1081
1089
  daily_regular_hours?: number;
1082
1090
  default_hourly_rate?: number;
@@ -1108,6 +1116,7 @@ export type Database = {
1108
1116
  auto_break_unpaid?: boolean;
1109
1117
  auto_stop_after_hours?: number;
1110
1118
  callout_fee?: number;
1119
+ company_number?: string | null;
1111
1120
  created_at?: string;
1112
1121
  daily_regular_hours?: number;
1113
1122
  default_hourly_rate?: number;
@@ -2536,6 +2545,8 @@ export type Database = {
2536
2545
  billing_email: string | null;
2537
2546
  bio: string | null;
2538
2547
  blocked: boolean;
2548
+ blocked_locked: boolean | null;
2549
+ blocked_modified: string | null;
2539
2550
  city: string | null;
2540
2551
  coc_number: string | null;
2541
2552
  commercial_name: string | null;
@@ -2545,6 +2556,9 @@ export type Database = {
2545
2556
  country: string | null;
2546
2557
  created_at: string;
2547
2558
  credit_limit: number;
2559
+ credit_manager: string | null;
2560
+ credit_manager_name: string | null;
2561
+ credit_manager_shortname: string | null;
2548
2562
  custom_fields: Json;
2549
2563
  customer_class: string | null;
2550
2564
  customer_number: string | null;
@@ -2577,6 +2591,7 @@ export type Database = {
2577
2591
  phone: string | null;
2578
2592
  postal_code: string | null;
2579
2593
  product_groups: string[];
2594
+ reminder_email: string | null;
2580
2595
  segments: string[];
2581
2596
  send_reminder: string;
2582
2597
  source: string;
@@ -2584,10 +2599,16 @@ export type Database = {
2584
2599
  sync_error: string | null;
2585
2600
  sync_status: string;
2586
2601
  trade_forms: string[];
2602
+ twinfield_base_snapshot: Json | null;
2603
+ twinfield_base_version: number | null;
2587
2604
  twinfield_code: string | null;
2588
2605
  twinfield_last_hash: string | null;
2606
+ twinfield_missing_since: string | null;
2607
+ twinfield_present: boolean;
2589
2608
  twinfield_sync_error: string | null;
2590
2609
  twinfield_synced_at: string | null;
2610
+ twinfield_uid: string | null;
2611
+ twinfield_vat_code: string | null;
2591
2612
  updated_at: string;
2592
2613
  vat_display: string | null;
2593
2614
  vat_number: string | null;
@@ -2615,6 +2636,8 @@ export type Database = {
2615
2636
  billing_email?: string | null;
2616
2637
  bio?: string | null;
2617
2638
  blocked?: boolean;
2639
+ blocked_locked?: boolean | null;
2640
+ blocked_modified?: string | null;
2618
2641
  city?: string | null;
2619
2642
  coc_number?: string | null;
2620
2643
  commercial_name?: string | null;
@@ -2624,6 +2647,9 @@ export type Database = {
2624
2647
  country?: string | null;
2625
2648
  created_at?: string;
2626
2649
  credit_limit?: number;
2650
+ credit_manager?: string | null;
2651
+ credit_manager_name?: string | null;
2652
+ credit_manager_shortname?: string | null;
2627
2653
  custom_fields?: Json;
2628
2654
  customer_class?: string | null;
2629
2655
  customer_number?: string | null;
@@ -2656,6 +2682,7 @@ export type Database = {
2656
2682
  phone?: string | null;
2657
2683
  postal_code?: string | null;
2658
2684
  product_groups?: string[];
2685
+ reminder_email?: string | null;
2659
2686
  segments?: string[];
2660
2687
  send_reminder?: string;
2661
2688
  source?: string;
@@ -2663,10 +2690,16 @@ export type Database = {
2663
2690
  sync_error?: string | null;
2664
2691
  sync_status?: string;
2665
2692
  trade_forms?: string[];
2693
+ twinfield_base_snapshot?: Json | null;
2694
+ twinfield_base_version?: number | null;
2666
2695
  twinfield_code?: string | null;
2667
2696
  twinfield_last_hash?: string | null;
2697
+ twinfield_missing_since?: string | null;
2698
+ twinfield_present?: boolean;
2668
2699
  twinfield_sync_error?: string | null;
2669
2700
  twinfield_synced_at?: string | null;
2701
+ twinfield_uid?: string | null;
2702
+ twinfield_vat_code?: string | null;
2670
2703
  updated_at?: string;
2671
2704
  vat_display?: string | null;
2672
2705
  vat_number?: string | null;
@@ -2694,6 +2727,8 @@ export type Database = {
2694
2727
  billing_email?: string | null;
2695
2728
  bio?: string | null;
2696
2729
  blocked?: boolean;
2730
+ blocked_locked?: boolean | null;
2731
+ blocked_modified?: string | null;
2697
2732
  city?: string | null;
2698
2733
  coc_number?: string | null;
2699
2734
  commercial_name?: string | null;
@@ -2703,6 +2738,9 @@ export type Database = {
2703
2738
  country?: string | null;
2704
2739
  created_at?: string;
2705
2740
  credit_limit?: number;
2741
+ credit_manager?: string | null;
2742
+ credit_manager_name?: string | null;
2743
+ credit_manager_shortname?: string | null;
2706
2744
  custom_fields?: Json;
2707
2745
  customer_class?: string | null;
2708
2746
  customer_number?: string | null;
@@ -2735,6 +2773,7 @@ export type Database = {
2735
2773
  phone?: string | null;
2736
2774
  postal_code?: string | null;
2737
2775
  product_groups?: string[];
2776
+ reminder_email?: string | null;
2738
2777
  segments?: string[];
2739
2778
  send_reminder?: string;
2740
2779
  source?: string;
@@ -2742,10 +2781,16 @@ export type Database = {
2742
2781
  sync_error?: string | null;
2743
2782
  sync_status?: string;
2744
2783
  trade_forms?: string[];
2784
+ twinfield_base_snapshot?: Json | null;
2785
+ twinfield_base_version?: number | null;
2745
2786
  twinfield_code?: string | null;
2746
2787
  twinfield_last_hash?: string | null;
2788
+ twinfield_missing_since?: string | null;
2789
+ twinfield_present?: boolean;
2747
2790
  twinfield_sync_error?: string | null;
2748
2791
  twinfield_synced_at?: string | null;
2792
+ twinfield_uid?: string | null;
2793
+ twinfield_vat_code?: string | null;
2749
2794
  updated_at?: string;
2750
2795
  vat_display?: string | null;
2751
2796
  vat_number?: string | null;
@@ -6602,6 +6647,7 @@ export type Database = {
6602
6647
  floriday_continuous_stock_queue: {
6603
6648
  Row: {
6604
6649
  attempts: number;
6650
+ availability_sent_at: string | null;
6605
6651
  connection_id: string;
6606
6652
  created_at: string;
6607
6653
  dead_lettered_at: string | null;
@@ -6614,7 +6660,9 @@ export type Database = {
6614
6660
  next_attempt_at: string;
6615
6661
  number_of_pieces: number;
6616
6662
  product_id: string | null;
6663
+ quantity_sent_at: string | null;
6617
6664
  sent_at: string | null;
6665
+ skip_reason: string | null;
6618
6666
  status: string;
6619
6667
  stock_mode: string | null;
6620
6668
  superseded_by: string | null;
@@ -6626,6 +6674,7 @@ export type Database = {
6626
6674
  };
6627
6675
  Insert: {
6628
6676
  attempts?: number;
6677
+ availability_sent_at?: string | null;
6629
6678
  connection_id: string;
6630
6679
  created_at?: string;
6631
6680
  dead_lettered_at?: string | null;
@@ -6638,7 +6687,9 @@ export type Database = {
6638
6687
  next_attempt_at?: string;
6639
6688
  number_of_pieces?: number;
6640
6689
  product_id?: string | null;
6690
+ quantity_sent_at?: string | null;
6641
6691
  sent_at?: string | null;
6692
+ skip_reason?: string | null;
6642
6693
  status?: string;
6643
6694
  stock_mode?: string | null;
6644
6695
  superseded_by?: string | null;
@@ -6650,6 +6701,7 @@ export type Database = {
6650
6701
  };
6651
6702
  Update: {
6652
6703
  attempts?: number;
6704
+ availability_sent_at?: string | null;
6653
6705
  connection_id?: string;
6654
6706
  created_at?: string;
6655
6707
  dead_lettered_at?: string | null;
@@ -6662,7 +6714,9 @@ export type Database = {
6662
6714
  next_attempt_at?: string;
6663
6715
  number_of_pieces?: number;
6664
6716
  product_id?: string | null;
6717
+ quantity_sent_at?: string | null;
6665
6718
  sent_at?: string | null;
6719
+ skip_reason?: string | null;
6666
6720
  status?: string;
6667
6721
  stock_mode?: string | null;
6668
6722
  superseded_by?: string | null;
@@ -6868,6 +6922,7 @@ export type Database = {
6868
6922
  rfh_company_account_id: string | null;
6869
6923
  rfh_relation_id: string | null;
6870
6924
  sequence_number: number | null;
6925
+ updated_at: string | null;
6871
6926
  };
6872
6927
  Insert: {
6873
6928
  connection_id?: string | null;
@@ -6883,6 +6938,7 @@ export type Database = {
6883
6938
  rfh_company_account_id?: string | null;
6884
6939
  rfh_relation_id?: string | null;
6885
6940
  sequence_number?: number | null;
6941
+ updated_at?: string | null;
6886
6942
  };
6887
6943
  Update: {
6888
6944
  connection_id?: string | null;
@@ -6898,6 +6954,7 @@ export type Database = {
6898
6954
  rfh_company_account_id?: string | null;
6899
6955
  rfh_relation_id?: string | null;
6900
6956
  sequence_number?: number | null;
6957
+ updated_at?: string | null;
6901
6958
  };
6902
6959
  Relationships: [
6903
6960
  {
@@ -7185,6 +7242,7 @@ export type Database = {
7185
7242
  };
7186
7243
  floriday_inventory_settings: {
7187
7244
  Row: {
7245
+ action_reason: string | null;
7188
7246
  buffer_quantity: number;
7189
7247
  connection_id: string;
7190
7248
  created_at: string;
@@ -7199,6 +7257,7 @@ export type Database = {
7199
7257
  last_sync_error: string | null;
7200
7258
  manual_quantity: number | null;
7201
7259
  maximum_quantity: number | null;
7260
+ packing_size: number | null;
7202
7261
  product_id: string;
7203
7262
  quantity_control: string;
7204
7263
  remote_available: boolean | null;
@@ -7211,6 +7270,7 @@ export type Database = {
7211
7270
  user_id: string;
7212
7271
  };
7213
7272
  Insert: {
7273
+ action_reason?: string | null;
7214
7274
  buffer_quantity?: number;
7215
7275
  connection_id: string;
7216
7276
  created_at?: string;
@@ -7225,6 +7285,7 @@ export type Database = {
7225
7285
  last_sync_error?: string | null;
7226
7286
  manual_quantity?: number | null;
7227
7287
  maximum_quantity?: number | null;
7288
+ packing_size?: number | null;
7228
7289
  product_id: string;
7229
7290
  quantity_control?: string;
7230
7291
  remote_available?: boolean | null;
@@ -7237,6 +7298,7 @@ export type Database = {
7237
7298
  user_id: string;
7238
7299
  };
7239
7300
  Update: {
7301
+ action_reason?: string | null;
7240
7302
  buffer_quantity?: number;
7241
7303
  connection_id?: string;
7242
7304
  created_at?: string;
@@ -7251,6 +7313,7 @@ export type Database = {
7251
7313
  last_sync_error?: string | null;
7252
7314
  manual_quantity?: number | null;
7253
7315
  maximum_quantity?: number | null;
7316
+ packing_size?: number | null;
7254
7317
  product_id?: string;
7255
7318
  quantity_control?: string;
7256
7319
  remote_available?: boolean | null;
@@ -7629,6 +7692,60 @@ export type Database = {
7629
7692
  };
7630
7693
  Relationships: [];
7631
7694
  };
7695
+ floriday_reconcile_runs: {
7696
+ Row: {
7697
+ connection_id: string | null;
7698
+ created_at: string;
7699
+ finished_at: string | null;
7700
+ first_error: string | null;
7701
+ id: string;
7702
+ items_checked: number;
7703
+ items_drift: number;
7704
+ items_no_supply: number;
7705
+ last_http_status: number | null;
7706
+ rate_limited: number;
7707
+ read_errors: number;
7708
+ reads: number;
7709
+ response: Json | null;
7710
+ started_at: string;
7711
+ status: string;
7712
+ };
7713
+ Insert: {
7714
+ connection_id?: string | null;
7715
+ created_at?: string;
7716
+ finished_at?: string | null;
7717
+ first_error?: string | null;
7718
+ id?: string;
7719
+ items_checked?: number;
7720
+ items_drift?: number;
7721
+ items_no_supply?: number;
7722
+ last_http_status?: number | null;
7723
+ rate_limited?: number;
7724
+ read_errors?: number;
7725
+ reads?: number;
7726
+ response?: Json | null;
7727
+ started_at?: string;
7728
+ status?: string;
7729
+ };
7730
+ Update: {
7731
+ connection_id?: string | null;
7732
+ created_at?: string;
7733
+ finished_at?: string | null;
7734
+ first_error?: string | null;
7735
+ id?: string;
7736
+ items_checked?: number;
7737
+ items_drift?: number;
7738
+ items_no_supply?: number;
7739
+ last_http_status?: number | null;
7740
+ rate_limited?: number;
7741
+ read_errors?: number;
7742
+ reads?: number;
7743
+ response?: Json | null;
7744
+ started_at?: string;
7745
+ status?: string;
7746
+ };
7747
+ Relationships: [];
7748
+ };
7632
7749
  floriday_resource_schemas: {
7633
7750
  Row: {
7634
7751
  enums: Json;
@@ -8903,8 +9020,16 @@ export type Database = {
8903
9020
  client_request_id: string;
8904
9021
  completed_at: string | null;
8905
9022
  created_at: string;
9023
+ customer_code: string | null;
8906
9024
  error_message: string | null;
8907
9025
  invoice_number: string | null;
9026
+ invoice_type: string | null;
9027
+ last_known_number: number | null;
9028
+ last_search_at: string | null;
9029
+ phase: string | null;
9030
+ reference: string | null;
9031
+ search_attempts: number;
9032
+ sending_at: string | null;
8908
9033
  status: string;
8909
9034
  user_id: string;
8910
9035
  };
@@ -8913,8 +9038,16 @@ export type Database = {
8913
9038
  client_request_id: string;
8914
9039
  completed_at?: string | null;
8915
9040
  created_at?: string;
9041
+ customer_code?: string | null;
8916
9042
  error_message?: string | null;
8917
9043
  invoice_number?: string | null;
9044
+ invoice_type?: string | null;
9045
+ last_known_number?: number | null;
9046
+ last_search_at?: string | null;
9047
+ phase?: string | null;
9048
+ reference?: string | null;
9049
+ search_attempts?: number;
9050
+ sending_at?: string | null;
8918
9051
  status?: string;
8919
9052
  user_id: string;
8920
9053
  };
@@ -8923,8 +9056,16 @@ export type Database = {
8923
9056
  client_request_id?: string;
8924
9057
  completed_at?: string | null;
8925
9058
  created_at?: string;
9059
+ customer_code?: string | null;
8926
9060
  error_message?: string | null;
8927
9061
  invoice_number?: string | null;
9062
+ invoice_type?: string | null;
9063
+ last_known_number?: number | null;
9064
+ last_search_at?: string | null;
9065
+ phase?: string | null;
9066
+ reference?: string | null;
9067
+ search_attempts?: number;
9068
+ sending_at?: string | null;
8928
9069
  status?: string;
8929
9070
  user_id?: string;
8930
9071
  };
@@ -10052,6 +10193,7 @@ export type Database = {
10052
10193
  id: string;
10053
10194
  singleton: boolean;
10054
10195
  updated_at: string;
10196
+ voorwaarden: string | null;
10055
10197
  };
10056
10198
  Insert: {
10057
10199
  auto_convert_binnen_mandaat?: boolean;
@@ -10062,6 +10204,7 @@ export type Database = {
10062
10204
  id?: string;
10063
10205
  singleton?: boolean;
10064
10206
  updated_at?: string;
10207
+ voorwaarden?: string | null;
10065
10208
  };
10066
10209
  Update: {
10067
10210
  auto_convert_binnen_mandaat?: boolean;
@@ -10072,6 +10215,7 @@ export type Database = {
10072
10215
  id?: string;
10073
10216
  singleton?: boolean;
10074
10217
  updated_at?: string;
10218
+ voorwaarden?: string | null;
10075
10219
  };
10076
10220
  Relationships: [];
10077
10221
  };
@@ -10882,6 +11026,57 @@ export type Database = {
10882
11026
  };
10883
11027
  Relationships: [];
10884
11028
  };
11029
+ logistics_base_url_checks: {
11030
+ Row: {
11031
+ candidate_host: string | null;
11032
+ candidate_url: string | null;
11033
+ detail: string | null;
11034
+ id: number;
11035
+ ping_ok: boolean | null;
11036
+ ping_request_id: number | null;
11037
+ ping_status: number | null;
11038
+ previous_url: string | null;
11039
+ resolved_at: string | null;
11040
+ route_ok: boolean | null;
11041
+ route_request_id: number | null;
11042
+ route_status: number | null;
11043
+ started_at: string;
11044
+ status: string;
11045
+ };
11046
+ Insert: {
11047
+ candidate_host?: string | null;
11048
+ candidate_url?: string | null;
11049
+ detail?: string | null;
11050
+ id?: never;
11051
+ ping_ok?: boolean | null;
11052
+ ping_request_id?: number | null;
11053
+ ping_status?: number | null;
11054
+ previous_url?: string | null;
11055
+ resolved_at?: string | null;
11056
+ route_ok?: boolean | null;
11057
+ route_request_id?: number | null;
11058
+ route_status?: number | null;
11059
+ started_at?: string;
11060
+ status: string;
11061
+ };
11062
+ Update: {
11063
+ candidate_host?: string | null;
11064
+ candidate_url?: string | null;
11065
+ detail?: string | null;
11066
+ id?: never;
11067
+ ping_ok?: boolean | null;
11068
+ ping_request_id?: number | null;
11069
+ ping_status?: number | null;
11070
+ previous_url?: string | null;
11071
+ resolved_at?: string | null;
11072
+ route_ok?: boolean | null;
11073
+ route_request_id?: number | null;
11074
+ route_status?: number | null;
11075
+ started_at?: string;
11076
+ status?: string;
11077
+ };
11078
+ Relationships: [];
11079
+ };
10885
11080
  logistics_capacity_alerts: {
10886
11081
  Row: {
10887
11082
  available_minutes: number;
@@ -16994,6 +17189,39 @@ export type Database = {
16994
17189
  };
16995
17190
  Relationships: [];
16996
17191
  };
17192
+ pick_taken: {
17193
+ Row: {
17194
+ bron_module: string | null;
17195
+ created_at: string;
17196
+ id: string;
17197
+ klantnaam: string | null;
17198
+ opmerking: string | null;
17199
+ order_ref: string | null;
17200
+ status: string;
17201
+ updated_at: string;
17202
+ };
17203
+ Insert: {
17204
+ bron_module?: string | null;
17205
+ created_at?: string;
17206
+ id?: string;
17207
+ klantnaam?: string | null;
17208
+ opmerking?: string | null;
17209
+ order_ref?: string | null;
17210
+ status?: string;
17211
+ updated_at?: string;
17212
+ };
17213
+ Update: {
17214
+ bron_module?: string | null;
17215
+ created_at?: string;
17216
+ id?: string;
17217
+ klantnaam?: string | null;
17218
+ opmerking?: string | null;
17219
+ order_ref?: string | null;
17220
+ status?: string;
17221
+ updated_at?: string;
17222
+ };
17223
+ Relationships: [];
17224
+ };
16997
17225
  pick_task_document_types: {
16998
17226
  Row: {
16999
17227
  created_at: string;
@@ -17117,6 +17345,42 @@ export type Database = {
17117
17345
  };
17118
17346
  Relationships: [];
17119
17347
  };
17348
+ planning_absence_notices: {
17349
+ Row: {
17350
+ created_at: string;
17351
+ day: string;
17352
+ handled_at: string | null;
17353
+ handled_by: string | null;
17354
+ id: string;
17355
+ items: Json;
17356
+ kind: string;
17357
+ monteur_id: string;
17358
+ updated_at: string;
17359
+ };
17360
+ Insert: {
17361
+ created_at?: string;
17362
+ day: string;
17363
+ handled_at?: string | null;
17364
+ handled_by?: string | null;
17365
+ id?: string;
17366
+ items?: Json;
17367
+ kind?: string;
17368
+ monteur_id: string;
17369
+ updated_at?: string;
17370
+ };
17371
+ Update: {
17372
+ created_at?: string;
17373
+ day?: string;
17374
+ handled_at?: string | null;
17375
+ handled_by?: string | null;
17376
+ id?: string;
17377
+ items?: Json;
17378
+ kind?: string;
17379
+ monteur_id?: string;
17380
+ updated_at?: string;
17381
+ };
17382
+ Relationships: [];
17383
+ };
17120
17384
  planning_confirmation_log: {
17121
17385
  Row: {
17122
17386
  created_at: string;
@@ -20591,6 +20855,50 @@ export type Database = {
20591
20855
  };
20592
20856
  Relationships: [];
20593
20857
  };
20858
+ standby_planning: {
20859
+ Row: {
20860
+ created_at: string;
20861
+ created_by: string | null;
20862
+ employee_id: string;
20863
+ end_date: string;
20864
+ id: string;
20865
+ notes: string | null;
20866
+ soort: string;
20867
+ start_date: string;
20868
+ updated_at: string;
20869
+ };
20870
+ Insert: {
20871
+ created_at?: string;
20872
+ created_by?: string | null;
20873
+ employee_id: string;
20874
+ end_date: string;
20875
+ id?: string;
20876
+ notes?: string | null;
20877
+ soort: string;
20878
+ start_date: string;
20879
+ updated_at?: string;
20880
+ };
20881
+ Update: {
20882
+ created_at?: string;
20883
+ created_by?: string | null;
20884
+ employee_id?: string;
20885
+ end_date?: string;
20886
+ id?: string;
20887
+ notes?: string | null;
20888
+ soort?: string;
20889
+ start_date?: string;
20890
+ updated_at?: string;
20891
+ };
20892
+ Relationships: [
20893
+ {
20894
+ foreignKeyName: "standby_planning_employee_id_fkey";
20895
+ columns: ["employee_id"];
20896
+ isOneToOne: false;
20897
+ referencedRelation: "profiles";
20898
+ referencedColumns: ["id"];
20899
+ }
20900
+ ];
20901
+ };
20594
20902
  stock_consumption_alerts: {
20595
20903
  Row: {
20596
20904
  alert_type: string;
@@ -20672,6 +20980,39 @@ export type Database = {
20672
20980
  };
20673
20981
  Relationships: [];
20674
20982
  };
20983
+ stock_integrity_alerts: {
20984
+ Row: {
20985
+ acknowledged_at: string | null;
20986
+ acknowledged_by: string | null;
20987
+ created_at: string;
20988
+ id: string;
20989
+ item_count: number;
20990
+ items: Json;
20991
+ tx_id: number;
20992
+ updated_at: string;
20993
+ };
20994
+ Insert: {
20995
+ acknowledged_at?: string | null;
20996
+ acknowledged_by?: string | null;
20997
+ created_at?: string;
20998
+ id?: string;
20999
+ item_count?: number;
21000
+ items?: Json;
21001
+ tx_id: number;
21002
+ updated_at?: string;
21003
+ };
21004
+ Update: {
21005
+ acknowledged_at?: string | null;
21006
+ acknowledged_by?: string | null;
21007
+ created_at?: string;
21008
+ id?: string;
21009
+ item_count?: number;
21010
+ items?: Json;
21011
+ tx_id?: number;
21012
+ updated_at?: string;
21013
+ };
21014
+ Relationships: [];
21015
+ };
20675
21016
  stock_mutation_log: {
20676
21017
  Row: {
20677
21018
  connection_id: string | null;
@@ -21160,6 +21501,59 @@ export type Database = {
21160
21501
  }
21161
21502
  ];
21162
21503
  };
21504
+ time_compensation_log: {
21505
+ Row: {
21506
+ actie: string;
21507
+ created_at: string;
21508
+ employee_id: string;
21509
+ entry_date: string;
21510
+ id: string;
21511
+ km: number;
21512
+ maaltijd: number;
21513
+ notities: string | null;
21514
+ performed_by: string | null;
21515
+ standby_avond: number;
21516
+ standby_weekend: number;
21517
+ tvt: number;
21518
+ };
21519
+ Insert: {
21520
+ actie: string;
21521
+ created_at?: string;
21522
+ employee_id: string;
21523
+ entry_date: string;
21524
+ id?: string;
21525
+ km?: number;
21526
+ maaltijd?: number;
21527
+ notities?: string | null;
21528
+ performed_by?: string | null;
21529
+ standby_avond?: number;
21530
+ standby_weekend?: number;
21531
+ tvt?: number;
21532
+ };
21533
+ Update: {
21534
+ actie?: string;
21535
+ created_at?: string;
21536
+ employee_id?: string;
21537
+ entry_date?: string;
21538
+ id?: string;
21539
+ km?: number;
21540
+ maaltijd?: number;
21541
+ notities?: string | null;
21542
+ performed_by?: string | null;
21543
+ standby_avond?: number;
21544
+ standby_weekend?: number;
21545
+ tvt?: number;
21546
+ };
21547
+ Relationships: [
21548
+ {
21549
+ foreignKeyName: "time_compensation_log_employee_id_fkey";
21550
+ columns: ["employee_id"];
21551
+ isOneToOne: false;
21552
+ referencedRelation: "profiles";
21553
+ referencedColumns: ["id"];
21554
+ }
21555
+ ];
21556
+ };
21163
21557
  time_entries: {
21164
21558
  Row: {
21165
21559
  created_at: string;
@@ -21687,13 +22081,19 @@ export type Database = {
21687
22081
  created_at: string;
21688
22082
  disconnected_at: string | null;
21689
22083
  environment: string;
22084
+ granted_scopes: string[] | null;
21690
22085
  id: string;
21691
22086
  initial_sync_completed_at: string | null;
22087
+ initial_sync_last_error: string | null;
22088
+ initial_sync_plan: Json | null;
21692
22089
  initial_sync_started_at: string | null;
21693
22090
  is_active: boolean;
21694
22091
  label: string | null;
22092
+ missing_scopes: string[] | null;
21695
22093
  office_code: string | null;
21696
22094
  redirect_uri: string | null;
22095
+ scope_checked_at: string | null;
22096
+ scope_state: string | null;
21697
22097
  superseded_at: string | null;
21698
22098
  updated_at: string;
21699
22099
  user_id: string;
@@ -21707,13 +22107,19 @@ export type Database = {
21707
22107
  created_at?: string;
21708
22108
  disconnected_at?: string | null;
21709
22109
  environment: string;
22110
+ granted_scopes?: string[] | null;
21710
22111
  id?: string;
21711
22112
  initial_sync_completed_at?: string | null;
22113
+ initial_sync_last_error?: string | null;
22114
+ initial_sync_plan?: Json | null;
21712
22115
  initial_sync_started_at?: string | null;
21713
22116
  is_active?: boolean;
21714
22117
  label?: string | null;
22118
+ missing_scopes?: string[] | null;
21715
22119
  office_code?: string | null;
21716
22120
  redirect_uri?: string | null;
22121
+ scope_checked_at?: string | null;
22122
+ scope_state?: string | null;
21717
22123
  superseded_at?: string | null;
21718
22124
  updated_at?: string;
21719
22125
  user_id: string;
@@ -21727,13 +22133,19 @@ export type Database = {
21727
22133
  created_at?: string;
21728
22134
  disconnected_at?: string | null;
21729
22135
  environment?: string;
22136
+ granted_scopes?: string[] | null;
21730
22137
  id?: string;
21731
22138
  initial_sync_completed_at?: string | null;
22139
+ initial_sync_last_error?: string | null;
22140
+ initial_sync_plan?: Json | null;
21732
22141
  initial_sync_started_at?: string | null;
21733
22142
  is_active?: boolean;
21734
22143
  label?: string | null;
22144
+ missing_scopes?: string[] | null;
21735
22145
  office_code?: string | null;
21736
22146
  redirect_uri?: string | null;
22147
+ scope_checked_at?: string | null;
22148
+ scope_state?: string | null;
21737
22149
  superseded_at?: string | null;
21738
22150
  updated_at?: string;
21739
22151
  user_id?: string;
@@ -21859,33 +22271,51 @@ export type Database = {
21859
22271
  connection_id: string;
21860
22272
  country: string | null;
21861
22273
  data: Json;
22274
+ deactivated_at: string | null;
21862
22275
  email: string | null;
21863
22276
  fetched_at: string;
22277
+ is_active: boolean;
21864
22278
  modified_at: string | null;
21865
22279
  name: string | null;
22280
+ seen_at: string | null;
21866
22281
  twinfield_code: string;
22282
+ twinfield_status: string | null;
22283
+ twinfield_uid: string | null;
22284
+ twinfield_version: number | null;
21867
22285
  vat_number: string | null;
21868
22286
  };
21869
22287
  Insert: {
21870
22288
  connection_id: string;
21871
22289
  country?: string | null;
21872
22290
  data?: Json;
22291
+ deactivated_at?: string | null;
21873
22292
  email?: string | null;
21874
22293
  fetched_at?: string;
22294
+ is_active?: boolean;
21875
22295
  modified_at?: string | null;
21876
22296
  name?: string | null;
22297
+ seen_at?: string | null;
21877
22298
  twinfield_code: string;
22299
+ twinfield_status?: string | null;
22300
+ twinfield_uid?: string | null;
22301
+ twinfield_version?: number | null;
21878
22302
  vat_number?: string | null;
21879
22303
  };
21880
22304
  Update: {
21881
22305
  connection_id?: string;
21882
22306
  country?: string | null;
21883
22307
  data?: Json;
22308
+ deactivated_at?: string | null;
21884
22309
  email?: string | null;
21885
22310
  fetched_at?: string;
22311
+ is_active?: boolean;
21886
22312
  modified_at?: string | null;
21887
22313
  name?: string | null;
22314
+ seen_at?: string | null;
21888
22315
  twinfield_code?: string;
22316
+ twinfield_status?: string | null;
22317
+ twinfield_uid?: string | null;
22318
+ twinfield_version?: number | null;
21889
22319
  vat_number?: string | null;
21890
22320
  };
21891
22321
  Relationships: [
@@ -21898,6 +22328,59 @@ export type Database = {
21898
22328
  }
21899
22329
  ];
21900
22330
  };
22331
+ twinfield_dimension_types_cache: {
22332
+ Row: {
22333
+ connection_id: string | null;
22334
+ dim_type: string;
22335
+ fetched_at: string;
22336
+ label1: string | null;
22337
+ label2: string | null;
22338
+ label3: string | null;
22339
+ label4: string | null;
22340
+ label5: string | null;
22341
+ label6: string | null;
22342
+ mask: string | null;
22343
+ name: string | null;
22344
+ office_code: string;
22345
+ };
22346
+ Insert: {
22347
+ connection_id?: string | null;
22348
+ dim_type: string;
22349
+ fetched_at?: string;
22350
+ label1?: string | null;
22351
+ label2?: string | null;
22352
+ label3?: string | null;
22353
+ label4?: string | null;
22354
+ label5?: string | null;
22355
+ label6?: string | null;
22356
+ mask?: string | null;
22357
+ name?: string | null;
22358
+ office_code: string;
22359
+ };
22360
+ Update: {
22361
+ connection_id?: string | null;
22362
+ dim_type?: string;
22363
+ fetched_at?: string;
22364
+ label1?: string | null;
22365
+ label2?: string | null;
22366
+ label3?: string | null;
22367
+ label4?: string | null;
22368
+ label5?: string | null;
22369
+ label6?: string | null;
22370
+ mask?: string | null;
22371
+ name?: string | null;
22372
+ office_code?: string;
22373
+ };
22374
+ Relationships: [
22375
+ {
22376
+ foreignKeyName: "twinfield_dimension_types_cache_connection_id_fkey";
22377
+ columns: ["connection_id"];
22378
+ isOneToOne: false;
22379
+ referencedRelation: "twinfield_connections";
22380
+ referencedColumns: ["id"];
22381
+ }
22382
+ ];
22383
+ };
21901
22384
  twinfield_invoice_lines: {
21902
22385
  Row: {
21903
22386
  article_code: string | null;
@@ -22494,24 +22977,39 @@ export type Database = {
22494
22977
  twinfield_request_metrics: {
22495
22978
  Row: {
22496
22979
  bucket_hour: string;
22980
+ clientid_limit: number | null;
22981
+ clientid_remaining: number | null;
22497
22982
  connection_id: string;
22498
22983
  error_count: number;
22984
+ rate_limit_limit: number | null;
22985
+ rate_limit_remaining: number | null;
22986
+ rate_limit_seen_at: string | null;
22499
22987
  rate_limited_count: number;
22500
22988
  request_count: number;
22501
22989
  updated_at: string;
22502
22990
  };
22503
22991
  Insert: {
22504
22992
  bucket_hour: string;
22993
+ clientid_limit?: number | null;
22994
+ clientid_remaining?: number | null;
22505
22995
  connection_id: string;
22506
22996
  error_count?: number;
22997
+ rate_limit_limit?: number | null;
22998
+ rate_limit_remaining?: number | null;
22999
+ rate_limit_seen_at?: string | null;
22507
23000
  rate_limited_count?: number;
22508
23001
  request_count?: number;
22509
23002
  updated_at?: string;
22510
23003
  };
22511
23004
  Update: {
22512
23005
  bucket_hour?: string;
23006
+ clientid_limit?: number | null;
23007
+ clientid_remaining?: number | null;
22513
23008
  connection_id?: string;
22514
23009
  error_count?: number;
23010
+ rate_limit_limit?: number | null;
23011
+ rate_limit_remaining?: number | null;
23012
+ rate_limit_seen_at?: string | null;
22515
23013
  rate_limited_count?: number;
22516
23014
  request_count?: number;
22517
23015
  updated_at?: string;
@@ -22566,24 +23064,226 @@ export type Database = {
22566
23064
  twinfield_settings: {
22567
23065
  Row: {
22568
23066
  active_environment: string;
23067
+ cron_registered_at: string | null;
23068
+ cron_registration_error: string | null;
23069
+ cron_schedules: Json;
23070
+ cron_timeouts: Json;
22569
23071
  id: number;
22570
23072
  public_base_url: string | null;
22571
23073
  updated_at: string;
22572
23074
  };
22573
23075
  Insert: {
22574
23076
  active_environment?: string;
23077
+ cron_registered_at?: string | null;
23078
+ cron_registration_error?: string | null;
23079
+ cron_schedules?: Json;
23080
+ cron_timeouts?: Json;
22575
23081
  id?: number;
22576
23082
  public_base_url?: string | null;
22577
23083
  updated_at?: string;
22578
23084
  };
22579
23085
  Update: {
22580
23086
  active_environment?: string;
23087
+ cron_registered_at?: string | null;
23088
+ cron_registration_error?: string | null;
23089
+ cron_schedules?: Json;
23090
+ cron_timeouts?: Json;
22581
23091
  id?: number;
22582
23092
  public_base_url?: string | null;
22583
23093
  updated_at?: string;
22584
23094
  };
22585
23095
  Relationships: [];
22586
23096
  };
23097
+ twinfield_sync_runs: {
23098
+ Row: {
23099
+ calls: number;
23100
+ changed: number;
23101
+ connection_id: string | null;
23102
+ deactivated: number;
23103
+ details: Json;
23104
+ error: string | null;
23105
+ fetched: number;
23106
+ finished_at: string | null;
23107
+ id: string;
23108
+ item_errors: number;
23109
+ kind: string;
23110
+ rate_limited: number;
23111
+ started_at: string;
23112
+ status: string;
23113
+ };
23114
+ Insert: {
23115
+ calls?: number;
23116
+ changed?: number;
23117
+ connection_id?: string | null;
23118
+ deactivated?: number;
23119
+ details?: Json;
23120
+ error?: string | null;
23121
+ fetched?: number;
23122
+ finished_at?: string | null;
23123
+ id?: string;
23124
+ item_errors?: number;
23125
+ kind: string;
23126
+ rate_limited?: number;
23127
+ started_at?: string;
23128
+ status?: string;
23129
+ };
23130
+ Update: {
23131
+ calls?: number;
23132
+ changed?: number;
23133
+ connection_id?: string | null;
23134
+ deactivated?: number;
23135
+ details?: Json;
23136
+ error?: string | null;
23137
+ fetched?: number;
23138
+ finished_at?: string | null;
23139
+ id?: string;
23140
+ item_errors?: number;
23141
+ kind?: string;
23142
+ rate_limited?: number;
23143
+ started_at?: string;
23144
+ status?: string;
23145
+ };
23146
+ Relationships: [
23147
+ {
23148
+ foreignKeyName: "twinfield_sync_runs_connection_id_fkey";
23149
+ columns: ["connection_id"];
23150
+ isOneToOne: false;
23151
+ referencedRelation: "twinfield_connections";
23152
+ referencedColumns: ["id"];
23153
+ }
23154
+ ];
23155
+ };
23156
+ twinfield_sync_settings: {
23157
+ Row: {
23158
+ batch_size: number;
23159
+ change_overlap_seconds: number;
23160
+ change_poll_interval_seconds: number;
23161
+ connection_id: string;
23162
+ created_at: string;
23163
+ currency: string | null;
23164
+ currency_at: string | null;
23165
+ currency_source: string | null;
23166
+ customer_gl_account: string | null;
23167
+ customer_gl_account_at: string | null;
23168
+ customer_gl_account_source: string | null;
23169
+ customers_written_by_module: boolean;
23170
+ default_country: string | null;
23171
+ default_country_at: string | null;
23172
+ default_country_source: string | null;
23173
+ default_language: string | null;
23174
+ default_language_at: string | null;
23175
+ default_language_source: string | null;
23176
+ nightly_full_scan_cron: string;
23177
+ payment_term_min_invoices: number;
23178
+ payment_term_min_share: number;
23179
+ rate_limit_floor: number;
23180
+ requires_manual_approval: boolean;
23181
+ run_budget_ms: number;
23182
+ sales_daybook: string | null;
23183
+ sales_daybook_confirmed_at: string | null;
23184
+ sales_daybook_confirmed_by: string | null;
23185
+ sales_gl_account: string | null;
23186
+ sales_gl_account_at: string | null;
23187
+ sales_gl_account_source: string | null;
23188
+ sales_invoice_type: string | null;
23189
+ sales_invoice_type_confirmed_at: string | null;
23190
+ sales_invoice_type_confirmed_by: string | null;
23191
+ sales_payment_term_at: string | null;
23192
+ sales_payment_term_days: number | null;
23193
+ sales_payment_term_source: string | null;
23194
+ suggestion_warnings: Json;
23195
+ updated_at: string;
23196
+ };
23197
+ Insert: {
23198
+ batch_size?: number;
23199
+ change_overlap_seconds?: number;
23200
+ change_poll_interval_seconds?: number;
23201
+ connection_id: string;
23202
+ created_at?: string;
23203
+ currency?: string | null;
23204
+ currency_at?: string | null;
23205
+ currency_source?: string | null;
23206
+ customer_gl_account?: string | null;
23207
+ customer_gl_account_at?: string | null;
23208
+ customer_gl_account_source?: string | null;
23209
+ customers_written_by_module?: boolean;
23210
+ default_country?: string | null;
23211
+ default_country_at?: string | null;
23212
+ default_country_source?: string | null;
23213
+ default_language?: string | null;
23214
+ default_language_at?: string | null;
23215
+ default_language_source?: string | null;
23216
+ nightly_full_scan_cron?: string;
23217
+ payment_term_min_invoices?: number;
23218
+ payment_term_min_share?: number;
23219
+ rate_limit_floor?: number;
23220
+ requires_manual_approval?: boolean;
23221
+ run_budget_ms?: number;
23222
+ sales_daybook?: string | null;
23223
+ sales_daybook_confirmed_at?: string | null;
23224
+ sales_daybook_confirmed_by?: string | null;
23225
+ sales_gl_account?: string | null;
23226
+ sales_gl_account_at?: string | null;
23227
+ sales_gl_account_source?: string | null;
23228
+ sales_invoice_type?: string | null;
23229
+ sales_invoice_type_confirmed_at?: string | null;
23230
+ sales_invoice_type_confirmed_by?: string | null;
23231
+ sales_payment_term_at?: string | null;
23232
+ sales_payment_term_days?: number | null;
23233
+ sales_payment_term_source?: string | null;
23234
+ suggestion_warnings?: Json;
23235
+ updated_at?: string;
23236
+ };
23237
+ Update: {
23238
+ batch_size?: number;
23239
+ change_overlap_seconds?: number;
23240
+ change_poll_interval_seconds?: number;
23241
+ connection_id?: string;
23242
+ created_at?: string;
23243
+ currency?: string | null;
23244
+ currency_at?: string | null;
23245
+ currency_source?: string | null;
23246
+ customer_gl_account?: string | null;
23247
+ customer_gl_account_at?: string | null;
23248
+ customer_gl_account_source?: string | null;
23249
+ customers_written_by_module?: boolean;
23250
+ default_country?: string | null;
23251
+ default_country_at?: string | null;
23252
+ default_country_source?: string | null;
23253
+ default_language?: string | null;
23254
+ default_language_at?: string | null;
23255
+ default_language_source?: string | null;
23256
+ nightly_full_scan_cron?: string;
23257
+ payment_term_min_invoices?: number;
23258
+ payment_term_min_share?: number;
23259
+ rate_limit_floor?: number;
23260
+ requires_manual_approval?: boolean;
23261
+ run_budget_ms?: number;
23262
+ sales_daybook?: string | null;
23263
+ sales_daybook_confirmed_at?: string | null;
23264
+ sales_daybook_confirmed_by?: string | null;
23265
+ sales_gl_account?: string | null;
23266
+ sales_gl_account_at?: string | null;
23267
+ sales_gl_account_source?: string | null;
23268
+ sales_invoice_type?: string | null;
23269
+ sales_invoice_type_confirmed_at?: string | null;
23270
+ sales_invoice_type_confirmed_by?: string | null;
23271
+ sales_payment_term_at?: string | null;
23272
+ sales_payment_term_days?: number | null;
23273
+ sales_payment_term_source?: string | null;
23274
+ suggestion_warnings?: Json;
23275
+ updated_at?: string;
23276
+ };
23277
+ Relationships: [
23278
+ {
23279
+ foreignKeyName: "twinfield_sync_settings_connection_id_fkey";
23280
+ columns: ["connection_id"];
23281
+ isOneToOne: true;
23282
+ referencedRelation: "twinfield_connections";
23283
+ referencedColumns: ["id"];
23284
+ }
23285
+ ];
23286
+ };
22587
23287
  twinfield_sync_state: {
22588
23288
  Row: {
22589
23289
  connection_id: string;
@@ -22619,6 +23319,51 @@ export type Database = {
22619
23319
  }
22620
23320
  ];
22621
23321
  };
23322
+ twinfield_vat_code_map: {
23323
+ Row: {
23324
+ confirmed_at: string | null;
23325
+ confirmed_by: string | null;
23326
+ fetched_at: string;
23327
+ id: string;
23328
+ is_default: boolean;
23329
+ name: string | null;
23330
+ office_code: string;
23331
+ percentage: number | null;
23332
+ source: string;
23333
+ vat_category: string | null;
23334
+ vat_code: string;
23335
+ vat_type: string | null;
23336
+ };
23337
+ Insert: {
23338
+ confirmed_at?: string | null;
23339
+ confirmed_by?: string | null;
23340
+ fetched_at?: string;
23341
+ id?: string;
23342
+ is_default?: boolean;
23343
+ name?: string | null;
23344
+ office_code: string;
23345
+ percentage?: number | null;
23346
+ source?: string;
23347
+ vat_category?: string | null;
23348
+ vat_code: string;
23349
+ vat_type?: string | null;
23350
+ };
23351
+ Update: {
23352
+ confirmed_at?: string | null;
23353
+ confirmed_by?: string | null;
23354
+ fetched_at?: string;
23355
+ id?: string;
23356
+ is_default?: boolean;
23357
+ name?: string | null;
23358
+ office_code?: string;
23359
+ percentage?: number | null;
23360
+ source?: string;
23361
+ vat_category?: string | null;
23362
+ vat_code?: string;
23363
+ vat_type?: string | null;
23364
+ };
23365
+ Relationships: [];
23366
+ };
22622
23367
  uren_beschikbare_dagen: {
22623
23368
  Row: {
22624
23369
  bron: string;
@@ -22799,6 +23544,36 @@ export type Database = {
22799
23544
  };
22800
23545
  Relationships: [];
22801
23546
  };
23547
+ uren_indirecte_uren: {
23548
+ Row: {
23549
+ created_at: string;
23550
+ datum: string;
23551
+ id: string;
23552
+ minuten: number;
23553
+ monteur_id: string;
23554
+ toelichting: string;
23555
+ updated_at: string;
23556
+ };
23557
+ Insert: {
23558
+ created_at?: string;
23559
+ datum: string;
23560
+ id?: string;
23561
+ minuten: number;
23562
+ monteur_id: string;
23563
+ toelichting: string;
23564
+ updated_at?: string;
23565
+ };
23566
+ Update: {
23567
+ created_at?: string;
23568
+ datum?: string;
23569
+ id?: string;
23570
+ minuten?: number;
23571
+ monteur_id?: string;
23572
+ toelichting?: string;
23573
+ updated_at?: string;
23574
+ };
23575
+ Relationships: [];
23576
+ };
22802
23577
  uren_maandafsluitingen: {
22803
23578
  Row: {
22804
23579
  afgesloten_at: string | null;
@@ -22881,6 +23656,7 @@ export type Database = {
22881
23656
  Row: {
22882
23657
  beoordeeld_door: string | null;
22883
23658
  beoordeeld_op: string | null;
23659
+ blokken: Json;
22884
23660
  cancellation_requested_at: string | null;
22885
23661
  cancellation_status: string | null;
22886
23662
  created_at: string;
@@ -22889,16 +23665,23 @@ export type Database = {
22889
23665
  id: string;
22890
23666
  ingediend_at: string;
22891
23667
  monteur_id: string;
23668
+ ov178_uren: number;
23669
+ ov189_uren: number;
22892
23670
  overuren: number;
22893
23671
  reden_afkeur: string | null;
22894
23672
  start_tijd: string | null;
22895
23673
  status: string;
22896
- toelichting: string;
23674
+ toelichting: string | null;
23675
+ tvt_uren: number;
22897
23676
  updated_at: string;
23677
+ uren_na: number;
23678
+ uren_voor: number;
23679
+ verwerking: string;
22898
23680
  };
22899
23681
  Insert: {
22900
23682
  beoordeeld_door?: string | null;
22901
23683
  beoordeeld_op?: string | null;
23684
+ blokken?: Json;
22902
23685
  cancellation_requested_at?: string | null;
22903
23686
  cancellation_status?: string | null;
22904
23687
  created_at?: string;
@@ -22907,16 +23690,23 @@ export type Database = {
22907
23690
  id?: string;
22908
23691
  ingediend_at?: string;
22909
23692
  monteur_id: string;
23693
+ ov178_uren?: number;
23694
+ ov189_uren?: number;
22910
23695
  overuren: number;
22911
23696
  reden_afkeur?: string | null;
22912
23697
  start_tijd?: string | null;
22913
23698
  status?: string;
22914
- toelichting: string;
23699
+ toelichting?: string | null;
23700
+ tvt_uren?: number;
22915
23701
  updated_at?: string;
23702
+ uren_na?: number;
23703
+ uren_voor?: number;
23704
+ verwerking?: string;
22916
23705
  };
22917
23706
  Update: {
22918
23707
  beoordeeld_door?: string | null;
22919
23708
  beoordeeld_op?: string | null;
23709
+ blokken?: Json;
22920
23710
  cancellation_requested_at?: string | null;
22921
23711
  cancellation_status?: string | null;
22922
23712
  created_at?: string;
@@ -22925,12 +23715,18 @@ export type Database = {
22925
23715
  id?: string;
22926
23716
  ingediend_at?: string;
22927
23717
  monteur_id?: string;
23718
+ ov178_uren?: number;
23719
+ ov189_uren?: number;
22928
23720
  overuren?: number;
22929
23721
  reden_afkeur?: string | null;
22930
23722
  start_tijd?: string | null;
22931
23723
  status?: string;
22932
- toelichting?: string;
23724
+ toelichting?: string | null;
23725
+ tvt_uren?: number;
22933
23726
  updated_at?: string;
23727
+ uren_na?: number;
23728
+ uren_voor?: number;
23729
+ verwerking?: string;
22934
23730
  };
22935
23731
  Relationships: [];
22936
23732
  };
@@ -24772,12 +25568,14 @@ export type Database = {
24772
25568
  };
24773
25569
  werkbonnen: {
24774
25570
  Row: {
25571
+ afgerond_op: string | null;
24775
25572
  assigned_user_id: string | null;
24776
25573
  budget_mandate_cents: number;
24777
25574
  complaint_description: string | null;
24778
25575
  created_at: string;
24779
25576
  created_by: string | null;
24780
25577
  customer_id: string | null;
25578
+ customer_name: string | null;
24781
25579
  deadline_date: string | null;
24782
25580
  estimated_days: number | null;
24783
25581
  estimated_duration_minutes: number | null;
@@ -24814,12 +25612,14 @@ export type Database = {
24814
25612
  workday_hours: number | null;
24815
25613
  };
24816
25614
  Insert: {
25615
+ afgerond_op?: string | null;
24817
25616
  assigned_user_id?: string | null;
24818
25617
  budget_mandate_cents?: number;
24819
25618
  complaint_description?: string | null;
24820
25619
  created_at?: string;
24821
25620
  created_by?: string | null;
24822
25621
  customer_id?: string | null;
25622
+ customer_name?: string | null;
24823
25623
  deadline_date?: string | null;
24824
25624
  estimated_days?: number | null;
24825
25625
  estimated_duration_minutes?: number | null;
@@ -24856,12 +25656,14 @@ export type Database = {
24856
25656
  workday_hours?: number | null;
24857
25657
  };
24858
25658
  Update: {
25659
+ afgerond_op?: string | null;
24859
25660
  assigned_user_id?: string | null;
24860
25661
  budget_mandate_cents?: number;
24861
25662
  complaint_description?: string | null;
24862
25663
  created_at?: string;
24863
25664
  created_by?: string | null;
24864
25665
  customer_id?: string | null;
25666
+ customer_name?: string | null;
24865
25667
  deadline_date?: string | null;
24866
25668
  estimated_days?: number | null;
24867
25669
  estimated_duration_minutes?: number | null;
@@ -25265,6 +26067,7 @@ export type Database = {
25265
26067
  group_key: string | null;
25266
26068
  is_active: boolean | null;
25267
26069
  is_merged: boolean | null;
26070
+ last_changed_at: string | null;
25268
26071
  logo_url: string | null;
25269
26072
  match_key: string | null;
25270
26073
  phone: string | null;
@@ -25278,6 +26081,7 @@ export type Database = {
25278
26081
  };
25279
26082
  external_customers_unified: {
25280
26083
  Row: {
26084
+ changed_at: string | null;
25281
26085
  city: string | null;
25282
26086
  commercial_name: string | null;
25283
26087
  company_name: string | null;
@@ -25688,6 +26492,7 @@ export type Database = {
25688
26492
  };
25689
26493
  v_external_customers_floriday: {
25690
26494
  Row: {
26495
+ changed_at: string | null;
25691
26496
  city: string | null;
25692
26497
  commercial_name: string | null;
25693
26498
  company_name: string | null;
@@ -25723,6 +26528,7 @@ export type Database = {
25723
26528
  };
25724
26529
  v_external_customers_local: {
25725
26530
  Row: {
26531
+ changed_at: string | null;
25726
26532
  city: string | null;
25727
26533
  commercial_name: string | null;
25728
26534
  company_name: string | null;
@@ -25747,6 +26553,7 @@ export type Database = {
25747
26553
  website: string | null;
25748
26554
  };
25749
26555
  Insert: {
26556
+ changed_at?: never;
25750
26557
  city?: string | null;
25751
26558
  commercial_name?: string | null;
25752
26559
  company_name?: string | null;
@@ -25771,6 +26578,7 @@ export type Database = {
25771
26578
  website?: string | null;
25772
26579
  };
25773
26580
  Update: {
26581
+ changed_at?: never;
25774
26582
  city?: string | null;
25775
26583
  commercial_name?: string | null;
25776
26584
  company_name?: string | null;
@@ -25798,6 +26606,7 @@ export type Database = {
25798
26606
  };
25799
26607
  v_external_customers_twinfield: {
25800
26608
  Row: {
26609
+ changed_at: string | null;
25801
26610
  city: string | null;
25802
26611
  commercial_name: string | null;
25803
26612
  company_name: string | null;
@@ -26186,6 +26995,8 @@ export type Database = {
26186
26995
  desired_availability: boolean;
26187
26996
  desired_quantity: number;
26188
26997
  erp_available: number;
26998
+ packing_size: number;
26999
+ reason: string;
26189
27000
  stock_mode: string;
26190
27001
  }[];
26191
27002
  };
@@ -26303,6 +27114,7 @@ export type Database = {
26303
27114
  };
26304
27115
  Returns: {
26305
27116
  attempts: number;
27117
+ availability_sent_at: string | null;
26306
27118
  connection_id: string;
26307
27119
  created_at: string;
26308
27120
  dead_lettered_at: string | null;
@@ -26315,7 +27127,9 @@ export type Database = {
26315
27127
  next_attempt_at: string;
26316
27128
  number_of_pieces: number;
26317
27129
  product_id: string | null;
27130
+ quantity_sent_at: string | null;
26318
27131
  sent_at: string | null;
27132
+ skip_reason: string | null;
26319
27133
  status: string;
26320
27134
  stock_mode: string | null;
26321
27135
  superseded_by: string | null;
@@ -26565,6 +27379,14 @@ export type Database = {
26565
27379
  Args: never;
26566
27380
  Returns: undefined;
26567
27381
  };
27382
+ cleanup_standby_planning: {
27383
+ Args: never;
27384
+ Returns: number;
27385
+ };
27386
+ cleanup_time_compensation_log: {
27387
+ Args: never;
27388
+ Returns: number;
27389
+ };
26568
27390
  cleanup_voorraad_module_history: {
26569
27391
  Args: never;
26570
27392
  Returns: undefined;
@@ -26579,6 +27401,18 @@ export type Database = {
26579
27401
  };
26580
27402
  Returns: undefined;
26581
27403
  };
27404
+ complete_floriday_stock_queue_outcome: {
27405
+ Args: {
27406
+ p_attempt_id?: string;
27407
+ p_availability_sent?: boolean;
27408
+ p_error?: string;
27409
+ p_id: string;
27410
+ p_outcome: string;
27411
+ p_permanent?: boolean;
27412
+ p_quantity_sent?: boolean;
27413
+ };
27414
+ Returns: undefined;
27415
+ };
26582
27416
  consume_bom_for_production: {
26583
27417
  Args: {
26584
27418
  p_connection_id: string;
@@ -26830,6 +27664,12 @@ export type Database = {
26830
27664
  };
26831
27665
  Returns: undefined;
26832
27666
  };
27667
+ ensure_trade_item_stock_row_key: {
27668
+ Args: {
27669
+ p_key: string;
27670
+ };
27671
+ Returns: string;
27672
+ };
26833
27673
  ensure_user_tenant: {
26834
27674
  Args: never;
26835
27675
  Returns: string;
@@ -27609,6 +28449,12 @@ export type Database = {
27609
28449
  };
27610
28450
  Returns: number;
27611
28451
  };
28452
+ invoice_auto_concept_for_work_order: {
28453
+ Args: {
28454
+ _wo_id: string;
28455
+ };
28456
+ Returns: undefined;
28457
+ };
27612
28458
  invoice_branding_snapshot: {
27613
28459
  Args: never;
27614
28460
  Returns: Json;
@@ -27917,6 +28763,14 @@ export type Database = {
27917
28763
  };
27918
28764
  Returns: Json;
27919
28765
  };
28766
+ logistics_base_url_check_status: {
28767
+ Args: never;
28768
+ Returns: Json;
28769
+ };
28770
+ logistics_base_url_checks_resolve: {
28771
+ Args: never;
28772
+ Returns: number;
28773
+ };
27920
28774
  logistics_block_reason_code: {
27921
28775
  Args: {
27922
28776
  p_details?: Json;
@@ -28815,6 +29669,13 @@ export type Database = {
28815
29669
  Args: never;
28816
29670
  Returns: number;
28817
29671
  };
29672
+ logistics_is_engine_response: {
29673
+ Args: {
29674
+ p_content: string;
29675
+ p_status: number;
29676
+ };
29677
+ Returns: boolean;
29678
+ };
28818
29679
  logistics_is_pick_workday: {
28819
29680
  Args: {
28820
29681
  p_date: string;
@@ -29546,6 +30407,12 @@ export type Database = {
29546
30407
  };
29547
30408
  Returns: Json;
29548
30409
  };
30410
+ logistics_reserved_key: {
30411
+ Args: {
30412
+ p_key: string;
30413
+ };
30414
+ Returns: string;
30415
+ };
29549
30416
  logistics_reserved_stock_nightly: {
29550
30417
  Args: never;
29551
30418
  Returns: undefined;
@@ -29833,6 +30700,10 @@ export type Database = {
29833
30700
  Args: never;
29834
30701
  Returns: Json;
29835
30702
  };
30703
+ logistics_tick_base_url_check: {
30704
+ Args: never;
30705
+ Returns: Json;
30706
+ };
29836
30707
  logistics_tick_calls_resolve: {
29837
30708
  Args: never;
29838
30709
  Returns: number;
@@ -30985,6 +31856,31 @@ export type Database = {
30985
31856
  };
30986
31857
  Returns: undefined;
30987
31858
  };
31859
+ plan_standby_batch: {
31860
+ Args: {
31861
+ _items: Json;
31862
+ _notes: string;
31863
+ _remove_ids?: string[];
31864
+ _soort: string;
31865
+ };
31866
+ Returns: {
31867
+ created_at: string;
31868
+ created_by: string | null;
31869
+ employee_id: string;
31870
+ end_date: string;
31871
+ id: string;
31872
+ notes: string | null;
31873
+ soort: string;
31874
+ start_date: string;
31875
+ updated_at: string;
31876
+ }[];
31877
+ SetofOptions: {
31878
+ from: "*";
31879
+ to: "standby_planning";
31880
+ isOneToOne: false;
31881
+ isSetofReturn: true;
31882
+ };
31883
+ };
30988
31884
  planning_apply_schedule_updates: {
30989
31885
  Args: {
30990
31886
  _updates: Json;
@@ -31967,6 +32863,10 @@ export type Database = {
31967
32863
  Args: never;
31968
32864
  Returns: number;
31969
32865
  };
32866
+ server_now: {
32867
+ Args: never;
32868
+ Returns: string;
32869
+ };
31970
32870
  set_planning_status: {
31971
32871
  Args: {
31972
32872
  _id: string;
@@ -32203,6 +33103,28 @@ export type Database = {
32203
33103
  };
32204
33104
  Returns: Json;
32205
33105
  };
33106
+ twinfield_sync_apply: {
33107
+ Args: {
33108
+ _base: Json;
33109
+ _customer_id: string;
33110
+ _patch: Json;
33111
+ _uid: string;
33112
+ _version: number;
33113
+ };
33114
+ Returns: undefined;
33115
+ };
33116
+ twinfield_sync_insert: {
33117
+ Args: {
33118
+ _row: Json;
33119
+ };
33120
+ Returns: string;
33121
+ };
33122
+ twinfield_sync_mark_missing: {
33123
+ Args: {
33124
+ _ids: string[];
33125
+ };
33126
+ Returns: undefined;
33127
+ };
32206
33128
  twinfield_upsert_connection_by_account_key: {
32207
33129
  Args: {
32208
33130
  p_account_key: string;
@@ -32228,6 +33150,25 @@ export type Database = {
32228
33150
  };
32229
33151
  Returns: undefined;
32230
33152
  };
33153
+ uren_collega_agenda: {
33154
+ Args: {
33155
+ _monteur: string;
33156
+ _tot: string;
33157
+ _van: string;
33158
+ };
33159
+ Returns: {
33160
+ afwezig: string;
33161
+ datum: string;
33162
+ gepland: number;
33163
+ kort_vrij: Json;
33164
+ overuren: number;
33165
+ standby_avond: boolean;
33166
+ standby_ingepland: string;
33167
+ standby_weekend: boolean;
33168
+ werk_eind: string;
33169
+ werk_start: string;
33170
+ }[];
33171
+ };
32231
33172
  uren_dag_controle: {
32232
33173
  Args: {
32233
33174
  _datum: string;
@@ -32236,6 +33177,13 @@ export type Database = {
32236
33177
  };
32237
33178
  Returns: undefined;
32238
33179
  };
33180
+ uren_dag_controle_vrij: {
33181
+ Args: {
33182
+ _datum: string;
33183
+ _monteur: string;
33184
+ };
33185
+ Returns: undefined;
33186
+ };
32239
33187
  uren_dag_km_opslaan: {
32240
33188
  Args: {
32241
33189
  _datum: string;
@@ -32262,6 +33210,20 @@ export type Database = {
32262
33210
  Args: never;
32263
33211
  Returns: boolean;
32264
33212
  };
33213
+ uren_indirect_opslaan: {
33214
+ Args: {
33215
+ _datum: string;
33216
+ _minuten: number;
33217
+ _toelichting: string;
33218
+ };
33219
+ Returns: string;
33220
+ };
33221
+ uren_indirect_verwijderen: {
33222
+ Args: {
33223
+ _id: string;
33224
+ };
33225
+ Returns: undefined;
33226
+ };
32265
33227
  uren_is_beheerder: {
32266
33228
  Args: never;
32267
33229
  Returns: boolean;
@@ -32302,6 +33264,13 @@ export type Database = {
32302
33264
  roles: string[];
32303
33265
  }[];
32304
33266
  };
33267
+ uren_list_monteurs: {
33268
+ Args: never;
33269
+ Returns: {
33270
+ id: string;
33271
+ naam: string;
33272
+ }[];
33273
+ };
32305
33274
  uren_list_planner_contacten: {
32306
33275
  Args: never;
32307
33276
  Returns: {
@@ -32345,6 +33314,16 @@ export type Database = {
32345
33314
  Args: never;
32346
33315
  Returns: string;
32347
33316
  };
33317
+ uren_overuren_indienen: {
33318
+ Args: {
33319
+ _datum: string;
33320
+ _toelichting?: string;
33321
+ _uren_na: number;
33322
+ _uren_voor: number;
33323
+ _verwerking: string;
33324
+ };
33325
+ Returns: undefined;
33326
+ };
32348
33327
  uren_pagina_toegang_instellen: {
32349
33328
  Args: {
32350
33329
  _toegang: boolean;
@@ -32412,6 +33391,36 @@ export type Database = {
32412
33391
  };
32413
33392
  Returns: undefined;
32414
33393
  };
33394
+ uren_standby_opslaan: {
33395
+ Args: {
33396
+ _datums: string[];
33397
+ _soort: string;
33398
+ _tot: string;
33399
+ _van: string;
33400
+ };
33401
+ Returns: undefined;
33402
+ };
33403
+ uren_standby_overdragen: {
33404
+ Args: {
33405
+ _datum: string;
33406
+ _naar: string;
33407
+ };
33408
+ Returns: undefined;
33409
+ };
33410
+ uren_standby_ruil: {
33411
+ Args: {
33412
+ _aan: boolean;
33413
+ _datum: string;
33414
+ };
33415
+ Returns: undefined;
33416
+ };
33417
+ uren_standby_sync: {
33418
+ Args: {
33419
+ _tot: string;
33420
+ _van: string;
33421
+ };
33422
+ Returns: undefined;
33423
+ };
32415
33424
  uren_stop_time_log: {
32416
33425
  Args: {
32417
33426
  p_employee_id: string;
@@ -32603,6 +33612,25 @@ export type Database = {
32603
33612
  user_id: string;
32604
33613
  }[];
32605
33614
  };
33615
+ vakantie_tvt_overzicht: {
33616
+ Args: {
33617
+ _year?: number;
33618
+ };
33619
+ Returns: {
33620
+ earned_from_tvt_days: number;
33621
+ hours_to_next_tvt_day: number;
33622
+ tvt_hours: number;
33623
+ tvt_remainder_hours: number;
33624
+ user_id: string;
33625
+ }[];
33626
+ };
33627
+ vakantie_tvt_uren: {
33628
+ Args: {
33629
+ _user_id: string;
33630
+ _year: number;
33631
+ };
33632
+ Returns: number;
33633
+ };
32606
33634
  vervang_printer: {
32607
33635
  Args: {
32608
33636
  _nieuw: string;
@@ -32668,6 +33696,12 @@ export type Database = {
32668
33696
  };
32669
33697
  Returns: Json;
32670
33698
  };
33699
+ wo_is_planned_monteur: {
33700
+ Args: {
33701
+ _werkbon_id: string;
33702
+ };
33703
+ Returns: boolean;
33704
+ };
32671
33705
  wo_list_colleague_planning: {
32672
33706
  Args: {
32673
33707
  _from: string;
@@ -32695,6 +33729,12 @@ export type Database = {
32695
33729
  };
32696
33730
  Returns: Json;
32697
33731
  };
33732
+ wo_open_standby: {
33733
+ Args: {
33734
+ _standby_id: string;
33735
+ };
33736
+ Returns: string;
33737
+ };
32698
33738
  wo_process_offerte_request: {
32699
33739
  Args: {
32700
33740
  _queue_id: string;