@flowselections/floriday-authenticatie-module 1.0.53 → 1.0.55

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 (46) hide show
  1. package/dist-lib/components/floriday/FlorydayConnectionPage.d.ts.map +1 -1
  2. package/dist-lib/components/floriday/FlorydayConnectionPage.js +2 -1
  3. package/dist-lib/components/floriday/FlorydayShellRoutesCard.d.ts +2 -0
  4. package/dist-lib/components/floriday/FlorydayShellRoutesCard.d.ts.map +1 -0
  5. package/dist-lib/components/floriday/FlorydayShellRoutesCard.js +22 -0
  6. package/dist-lib/components/settings/FlorydaySettingsCard.d.ts.map +1 -1
  7. package/dist-lib/components/settings/FlorydaySettingsCard.js +26 -48
  8. package/dist-lib/index.js +1 -1
  9. package/dist-lib/integrations/supabase/client.server.d.ts +2 -32082
  10. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  11. package/dist-lib/integrations/supabase/types.d.ts +1418 -6
  12. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  13. package/dist-lib/lib/cron/process-stock-queue.d.ts +44 -5
  14. package/dist-lib/lib/cron/process-stock-queue.d.ts.map +1 -1
  15. package/dist-lib/lib/cron/process-stock-queue.js +167 -96
  16. package/dist-lib/lib/floriday-gln.d.ts +6 -0
  17. package/dist-lib/lib/floriday-gln.d.ts.map +1 -0
  18. package/dist-lib/lib/floriday-gln.js +22 -0
  19. package/dist-lib/lib/floriday-own-config.d.ts +68 -0
  20. package/dist-lib/lib/floriday-own-config.d.ts.map +1 -0
  21. package/dist-lib/lib/floriday-own-config.js +73 -0
  22. package/dist-lib/lib/floriday-scopes.d.ts +7 -0
  23. package/dist-lib/lib/floriday-scopes.d.ts.map +1 -1
  24. package/dist-lib/lib/floriday-scopes.js +34 -0
  25. package/dist-lib/lib/floriday-sync.functions.d.ts.map +1 -1
  26. package/dist-lib/lib/floriday-sync.functions.js +12 -2
  27. package/dist-lib/lib/floriday.functions.d.ts +49 -12
  28. package/dist-lib/lib/floriday.functions.d.ts.map +1 -1
  29. package/dist-lib/lib/floriday.functions.js +221 -63
  30. package/dist-lib/lib/gateway/diagnostics.d.ts.map +1 -1
  31. package/dist-lib/lib/gateway/diagnostics.js +12 -0
  32. package/dist-lib/lib/gateway/floriday-get.d.ts +55 -0
  33. package/dist-lib/lib/gateway/floriday-get.d.ts.map +1 -0
  34. package/dist-lib/lib/gateway/floriday-get.js +185 -0
  35. package/dist-lib/lib/gateway/index.d.ts +1 -0
  36. package/dist-lib/lib/gateway/index.d.ts.map +1 -1
  37. package/dist-lib/lib/gateway/index.js +1 -0
  38. package/dist-lib/lib/gateway/webhook-subscribe.d.ts.map +1 -1
  39. package/dist-lib/lib/gateway/webhook-subscribe.js +13 -1
  40. package/dist-lib/lib/shell-base.d.ts +2 -0
  41. package/dist-lib/lib/shell-base.d.ts.map +1 -0
  42. package/dist-lib/lib/shell-base.js +31 -0
  43. package/dist-lib/lib/shell-routes.d.ts +25 -0
  44. package/dist-lib/lib/shell-routes.d.ts.map +1 -0
  45. package/dist-lib/lib/shell-routes.js +127 -0
  46. package/package.json +6 -489
@@ -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,7 +7242,9 @@ export type Database = {
7185
7242
  };
7186
7243
  floriday_inventory_settings: {
7187
7244
  Row: {
7245
+ action_reason: string | null;
7188
7246
  buffer_quantity: number;
7247
+ computed_available: number | null;
7189
7248
  connection_id: string;
7190
7249
  created_at: string;
7191
7250
  desired_availability: boolean;
@@ -7197,21 +7256,27 @@ export type Database = {
7197
7256
  last_enqueued_at: string | null;
7198
7257
  last_published_at: string | null;
7199
7258
  last_sync_error: string | null;
7259
+ limiting_product_id: string | null;
7200
7260
  manual_quantity: number | null;
7201
7261
  maximum_quantity: number | null;
7262
+ packing_size: number | null;
7202
7263
  product_id: string;
7264
+ product_type: string | null;
7203
7265
  quantity_control: string;
7204
7266
  remote_available: boolean | null;
7205
7267
  remote_checked_at: string | null;
7206
7268
  remote_quantity: number | null;
7207
7269
  stock_mode: string;
7270
+ structure_detail: Json | null;
7208
7271
  sync_status: string;
7209
7272
  updated_at: string;
7210
7273
  updated_by: string | null;
7211
7274
  user_id: string;
7212
7275
  };
7213
7276
  Insert: {
7277
+ action_reason?: string | null;
7214
7278
  buffer_quantity?: number;
7279
+ computed_available?: number | null;
7215
7280
  connection_id: string;
7216
7281
  created_at?: string;
7217
7282
  desired_availability?: boolean;
@@ -7223,21 +7288,27 @@ export type Database = {
7223
7288
  last_enqueued_at?: string | null;
7224
7289
  last_published_at?: string | null;
7225
7290
  last_sync_error?: string | null;
7291
+ limiting_product_id?: string | null;
7226
7292
  manual_quantity?: number | null;
7227
7293
  maximum_quantity?: number | null;
7294
+ packing_size?: number | null;
7228
7295
  product_id: string;
7296
+ product_type?: string | null;
7229
7297
  quantity_control?: string;
7230
7298
  remote_available?: boolean | null;
7231
7299
  remote_checked_at?: string | null;
7232
7300
  remote_quantity?: number | null;
7233
7301
  stock_mode?: string;
7302
+ structure_detail?: Json | null;
7234
7303
  sync_status?: string;
7235
7304
  updated_at?: string;
7236
7305
  updated_by?: string | null;
7237
7306
  user_id: string;
7238
7307
  };
7239
7308
  Update: {
7309
+ action_reason?: string | null;
7240
7310
  buffer_quantity?: number;
7311
+ computed_available?: number | null;
7241
7312
  connection_id?: string;
7242
7313
  created_at?: string;
7243
7314
  desired_availability?: boolean;
@@ -7249,14 +7320,18 @@ export type Database = {
7249
7320
  last_enqueued_at?: string | null;
7250
7321
  last_published_at?: string | null;
7251
7322
  last_sync_error?: string | null;
7323
+ limiting_product_id?: string | null;
7252
7324
  manual_quantity?: number | null;
7253
7325
  maximum_quantity?: number | null;
7326
+ packing_size?: number | null;
7254
7327
  product_id?: string;
7328
+ product_type?: string | null;
7255
7329
  quantity_control?: string;
7256
7330
  remote_available?: boolean | null;
7257
7331
  remote_checked_at?: string | null;
7258
7332
  remote_quantity?: number | null;
7259
7333
  stock_mode?: string;
7334
+ structure_detail?: Json | null;
7260
7335
  sync_status?: string;
7261
7336
  updated_at?: string;
7262
7337
  updated_by?: string | null;
@@ -7629,6 +7704,60 @@ export type Database = {
7629
7704
  };
7630
7705
  Relationships: [];
7631
7706
  };
7707
+ floriday_reconcile_runs: {
7708
+ Row: {
7709
+ connection_id: string | null;
7710
+ created_at: string;
7711
+ finished_at: string | null;
7712
+ first_error: string | null;
7713
+ id: string;
7714
+ items_checked: number;
7715
+ items_drift: number;
7716
+ items_no_supply: number;
7717
+ last_http_status: number | null;
7718
+ rate_limited: number;
7719
+ read_errors: number;
7720
+ reads: number;
7721
+ response: Json | null;
7722
+ started_at: string;
7723
+ status: string;
7724
+ };
7725
+ Insert: {
7726
+ connection_id?: string | null;
7727
+ created_at?: string;
7728
+ finished_at?: string | null;
7729
+ first_error?: string | null;
7730
+ id?: string;
7731
+ items_checked?: number;
7732
+ items_drift?: number;
7733
+ items_no_supply?: number;
7734
+ last_http_status?: number | null;
7735
+ rate_limited?: number;
7736
+ read_errors?: number;
7737
+ reads?: number;
7738
+ response?: Json | null;
7739
+ started_at?: string;
7740
+ status?: string;
7741
+ };
7742
+ Update: {
7743
+ connection_id?: string | null;
7744
+ created_at?: string;
7745
+ finished_at?: string | null;
7746
+ first_error?: string | null;
7747
+ id?: string;
7748
+ items_checked?: number;
7749
+ items_drift?: number;
7750
+ items_no_supply?: number;
7751
+ last_http_status?: number | null;
7752
+ rate_limited?: number;
7753
+ read_errors?: number;
7754
+ reads?: number;
7755
+ response?: Json | null;
7756
+ started_at?: string;
7757
+ status?: string;
7758
+ };
7759
+ Relationships: [];
7760
+ };
7632
7761
  floriday_resource_schemas: {
7633
7762
  Row: {
7634
7763
  enums: Json;
@@ -8711,6 +8840,60 @@ export type Database = {
8711
8840
  }
8712
8841
  ];
8713
8842
  };
8843
+ inventory_recompute_limits: {
8844
+ Row: {
8845
+ drain_batch: number;
8846
+ id: boolean;
8847
+ max_ms_inline: number;
8848
+ max_parents_inline: number;
8849
+ updated_at: string;
8850
+ };
8851
+ Insert: {
8852
+ drain_batch?: number;
8853
+ id?: boolean;
8854
+ max_ms_inline?: number;
8855
+ max_parents_inline?: number;
8856
+ updated_at?: string;
8857
+ };
8858
+ Update: {
8859
+ drain_batch?: number;
8860
+ id?: boolean;
8861
+ max_ms_inline?: number;
8862
+ max_parents_inline?: number;
8863
+ updated_at?: string;
8864
+ };
8865
+ Relationships: [];
8866
+ };
8867
+ inventory_recompute_queue: {
8868
+ Row: {
8869
+ attempts: number;
8870
+ created_at: string;
8871
+ enqueued_at: string;
8872
+ last_error: string | null;
8873
+ product_id: string;
8874
+ reason: string | null;
8875
+ updated_at: string;
8876
+ };
8877
+ Insert: {
8878
+ attempts?: number;
8879
+ created_at?: string;
8880
+ enqueued_at?: string;
8881
+ last_error?: string | null;
8882
+ product_id: string;
8883
+ reason?: string | null;
8884
+ updated_at?: string;
8885
+ };
8886
+ Update: {
8887
+ attempts?: number;
8888
+ created_at?: string;
8889
+ enqueued_at?: string;
8890
+ last_error?: string | null;
8891
+ product_id?: string;
8892
+ reason?: string | null;
8893
+ updated_at?: string;
8894
+ };
8895
+ Relationships: [];
8896
+ };
8714
8897
  inventory_settings: {
8715
8898
  Row: {
8716
8899
  created_at: string;
@@ -8903,8 +9086,16 @@ export type Database = {
8903
9086
  client_request_id: string;
8904
9087
  completed_at: string | null;
8905
9088
  created_at: string;
9089
+ customer_code: string | null;
8906
9090
  error_message: string | null;
8907
9091
  invoice_number: string | null;
9092
+ invoice_type: string | null;
9093
+ last_known_number: number | null;
9094
+ last_search_at: string | null;
9095
+ phase: string | null;
9096
+ reference: string | null;
9097
+ search_attempts: number;
9098
+ sending_at: string | null;
8908
9099
  status: string;
8909
9100
  user_id: string;
8910
9101
  };
@@ -8913,8 +9104,16 @@ export type Database = {
8913
9104
  client_request_id: string;
8914
9105
  completed_at?: string | null;
8915
9106
  created_at?: string;
9107
+ customer_code?: string | null;
8916
9108
  error_message?: string | null;
8917
9109
  invoice_number?: string | null;
9110
+ invoice_type?: string | null;
9111
+ last_known_number?: number | null;
9112
+ last_search_at?: string | null;
9113
+ phase?: string | null;
9114
+ reference?: string | null;
9115
+ search_attempts?: number;
9116
+ sending_at?: string | null;
8918
9117
  status?: string;
8919
9118
  user_id: string;
8920
9119
  };
@@ -8923,8 +9122,16 @@ export type Database = {
8923
9122
  client_request_id?: string;
8924
9123
  completed_at?: string | null;
8925
9124
  created_at?: string;
9125
+ customer_code?: string | null;
8926
9126
  error_message?: string | null;
8927
9127
  invoice_number?: string | null;
9128
+ invoice_type?: string | null;
9129
+ last_known_number?: number | null;
9130
+ last_search_at?: string | null;
9131
+ phase?: string | null;
9132
+ reference?: string | null;
9133
+ search_attempts?: number;
9134
+ sending_at?: string | null;
8928
9135
  status?: string;
8929
9136
  user_id?: string;
8930
9137
  };
@@ -10052,6 +10259,7 @@ export type Database = {
10052
10259
  id: string;
10053
10260
  singleton: boolean;
10054
10261
  updated_at: string;
10262
+ voorwaarden: string | null;
10055
10263
  };
10056
10264
  Insert: {
10057
10265
  auto_convert_binnen_mandaat?: boolean;
@@ -10062,6 +10270,7 @@ export type Database = {
10062
10270
  id?: string;
10063
10271
  singleton?: boolean;
10064
10272
  updated_at?: string;
10273
+ voorwaarden?: string | null;
10065
10274
  };
10066
10275
  Update: {
10067
10276
  auto_convert_binnen_mandaat?: boolean;
@@ -10072,6 +10281,7 @@ export type Database = {
10072
10281
  id?: string;
10073
10282
  singleton?: boolean;
10074
10283
  updated_at?: string;
10284
+ voorwaarden?: string | null;
10075
10285
  };
10076
10286
  Relationships: [];
10077
10287
  };
@@ -10882,6 +11092,57 @@ export type Database = {
10882
11092
  };
10883
11093
  Relationships: [];
10884
11094
  };
11095
+ logistics_base_url_checks: {
11096
+ Row: {
11097
+ candidate_host: string | null;
11098
+ candidate_url: string | null;
11099
+ detail: string | null;
11100
+ id: number;
11101
+ ping_ok: boolean | null;
11102
+ ping_request_id: number | null;
11103
+ ping_status: number | null;
11104
+ previous_url: string | null;
11105
+ resolved_at: string | null;
11106
+ route_ok: boolean | null;
11107
+ route_request_id: number | null;
11108
+ route_status: number | null;
11109
+ started_at: string;
11110
+ status: string;
11111
+ };
11112
+ Insert: {
11113
+ candidate_host?: string | null;
11114
+ candidate_url?: string | null;
11115
+ detail?: string | null;
11116
+ id?: never;
11117
+ ping_ok?: boolean | null;
11118
+ ping_request_id?: number | null;
11119
+ ping_status?: number | null;
11120
+ previous_url?: string | null;
11121
+ resolved_at?: string | null;
11122
+ route_ok?: boolean | null;
11123
+ route_request_id?: number | null;
11124
+ route_status?: number | null;
11125
+ started_at?: string;
11126
+ status: string;
11127
+ };
11128
+ Update: {
11129
+ candidate_host?: string | null;
11130
+ candidate_url?: string | null;
11131
+ detail?: string | null;
11132
+ id?: never;
11133
+ ping_ok?: boolean | null;
11134
+ ping_request_id?: number | null;
11135
+ ping_status?: number | null;
11136
+ previous_url?: string | null;
11137
+ resolved_at?: string | null;
11138
+ route_ok?: boolean | null;
11139
+ route_request_id?: number | null;
11140
+ route_status?: number | null;
11141
+ started_at?: string;
11142
+ status?: string;
11143
+ };
11144
+ Relationships: [];
11145
+ };
10885
11146
  logistics_capacity_alerts: {
10886
11147
  Row: {
10887
11148
  available_minutes: number;
@@ -12404,6 +12665,42 @@ export type Database = {
12404
12665
  };
12405
12666
  Relationships: [];
12406
12667
  };
12668
+ logistics_reservation_allocations: {
12669
+ Row: {
12670
+ computed_at: string;
12671
+ created_at: string;
12672
+ group_id: string | null;
12673
+ id: string;
12674
+ order_item_id: string;
12675
+ qty: number;
12676
+ source: string;
12677
+ trade_item_key: string;
12678
+ updated_at: string;
12679
+ };
12680
+ Insert: {
12681
+ computed_at?: string;
12682
+ created_at?: string;
12683
+ group_id?: string | null;
12684
+ id?: string;
12685
+ order_item_id: string;
12686
+ qty: number;
12687
+ source: string;
12688
+ trade_item_key: string;
12689
+ updated_at?: string;
12690
+ };
12691
+ Update: {
12692
+ computed_at?: string;
12693
+ created_at?: string;
12694
+ group_id?: string | null;
12695
+ id?: string;
12696
+ order_item_id?: string;
12697
+ qty?: number;
12698
+ source?: string;
12699
+ trade_item_key?: string;
12700
+ updated_at?: string;
12701
+ };
12702
+ Relationships: [];
12703
+ };
12407
12704
  logistics_rule_configs: {
12408
12705
  Row: {
12409
12706
  created_at: string;
@@ -16994,6 +17291,39 @@ export type Database = {
16994
17291
  };
16995
17292
  Relationships: [];
16996
17293
  };
17294
+ pick_taken: {
17295
+ Row: {
17296
+ bron_module: string | null;
17297
+ created_at: string;
17298
+ id: string;
17299
+ klantnaam: string | null;
17300
+ opmerking: string | null;
17301
+ order_ref: string | null;
17302
+ status: string;
17303
+ updated_at: string;
17304
+ };
17305
+ Insert: {
17306
+ bron_module?: string | null;
17307
+ created_at?: string;
17308
+ id?: string;
17309
+ klantnaam?: string | null;
17310
+ opmerking?: string | null;
17311
+ order_ref?: string | null;
17312
+ status?: string;
17313
+ updated_at?: string;
17314
+ };
17315
+ Update: {
17316
+ bron_module?: string | null;
17317
+ created_at?: string;
17318
+ id?: string;
17319
+ klantnaam?: string | null;
17320
+ opmerking?: string | null;
17321
+ order_ref?: string | null;
17322
+ status?: string;
17323
+ updated_at?: string;
17324
+ };
17325
+ Relationships: [];
17326
+ };
16997
17327
  pick_task_document_types: {
16998
17328
  Row: {
16999
17329
  created_at: string;
@@ -17117,6 +17447,42 @@ export type Database = {
17117
17447
  };
17118
17448
  Relationships: [];
17119
17449
  };
17450
+ planning_absence_notices: {
17451
+ Row: {
17452
+ created_at: string;
17453
+ day: string;
17454
+ handled_at: string | null;
17455
+ handled_by: string | null;
17456
+ id: string;
17457
+ items: Json;
17458
+ kind: string;
17459
+ monteur_id: string;
17460
+ updated_at: string;
17461
+ };
17462
+ Insert: {
17463
+ created_at?: string;
17464
+ day: string;
17465
+ handled_at?: string | null;
17466
+ handled_by?: string | null;
17467
+ id?: string;
17468
+ items?: Json;
17469
+ kind?: string;
17470
+ monteur_id: string;
17471
+ updated_at?: string;
17472
+ };
17473
+ Update: {
17474
+ created_at?: string;
17475
+ day?: string;
17476
+ handled_at?: string | null;
17477
+ handled_by?: string | null;
17478
+ id?: string;
17479
+ items?: Json;
17480
+ kind?: string;
17481
+ monteur_id?: string;
17482
+ updated_at?: string;
17483
+ };
17484
+ Relationships: [];
17485
+ };
17120
17486
  planning_confirmation_log: {
17121
17487
  Row: {
17122
17488
  created_at: string;
@@ -19953,6 +20319,7 @@ export type Database = {
19953
20319
  is_protected: boolean;
19954
20320
  key: string;
19955
20321
  name: string;
20322
+ permissions_initialized: boolean;
19956
20323
  updated_at: string;
19957
20324
  };
19958
20325
  Insert: {
@@ -19961,6 +20328,7 @@ export type Database = {
19961
20328
  is_protected?: boolean;
19962
20329
  key: string;
19963
20330
  name: string;
20331
+ permissions_initialized?: boolean;
19964
20332
  updated_at?: string;
19965
20333
  };
19966
20334
  Update: {
@@ -19969,6 +20337,7 @@ export type Database = {
19969
20337
  is_protected?: boolean;
19970
20338
  key?: string;
19971
20339
  name?: string;
20340
+ permissions_initialized?: boolean;
19972
20341
  updated_at?: string;
19973
20342
  };
19974
20343
  Relationships: [];
@@ -20591,6 +20960,50 @@ export type Database = {
20591
20960
  };
20592
20961
  Relationships: [];
20593
20962
  };
20963
+ standby_planning: {
20964
+ Row: {
20965
+ created_at: string;
20966
+ created_by: string | null;
20967
+ employee_id: string;
20968
+ end_date: string;
20969
+ id: string;
20970
+ notes: string | null;
20971
+ soort: string;
20972
+ start_date: string;
20973
+ updated_at: string;
20974
+ };
20975
+ Insert: {
20976
+ created_at?: string;
20977
+ created_by?: string | null;
20978
+ employee_id: string;
20979
+ end_date: string;
20980
+ id?: string;
20981
+ notes?: string | null;
20982
+ soort: string;
20983
+ start_date: string;
20984
+ updated_at?: string;
20985
+ };
20986
+ Update: {
20987
+ created_at?: string;
20988
+ created_by?: string | null;
20989
+ employee_id?: string;
20990
+ end_date?: string;
20991
+ id?: string;
20992
+ notes?: string | null;
20993
+ soort?: string;
20994
+ start_date?: string;
20995
+ updated_at?: string;
20996
+ };
20997
+ Relationships: [
20998
+ {
20999
+ foreignKeyName: "standby_planning_employee_id_fkey";
21000
+ columns: ["employee_id"];
21001
+ isOneToOne: false;
21002
+ referencedRelation: "profiles";
21003
+ referencedColumns: ["id"];
21004
+ }
21005
+ ];
21006
+ };
20594
21007
  stock_consumption_alerts: {
20595
21008
  Row: {
20596
21009
  alert_type: string;
@@ -20672,6 +21085,42 @@ export type Database = {
20672
21085
  };
20673
21086
  Relationships: [];
20674
21087
  };
21088
+ stock_integrity_alerts: {
21089
+ Row: {
21090
+ acknowledged_at: string | null;
21091
+ acknowledged_by: string | null;
21092
+ alert_kind: string;
21093
+ created_at: string;
21094
+ id: string;
21095
+ item_count: number;
21096
+ items: Json;
21097
+ tx_id: number;
21098
+ updated_at: string;
21099
+ };
21100
+ Insert: {
21101
+ acknowledged_at?: string | null;
21102
+ acknowledged_by?: string | null;
21103
+ alert_kind?: string;
21104
+ created_at?: string;
21105
+ id?: string;
21106
+ item_count?: number;
21107
+ items?: Json;
21108
+ tx_id: number;
21109
+ updated_at?: string;
21110
+ };
21111
+ Update: {
21112
+ acknowledged_at?: string | null;
21113
+ acknowledged_by?: string | null;
21114
+ alert_kind?: string;
21115
+ created_at?: string;
21116
+ id?: string;
21117
+ item_count?: number;
21118
+ items?: Json;
21119
+ tx_id?: number;
21120
+ updated_at?: string;
21121
+ };
21122
+ Relationships: [];
21123
+ };
20675
21124
  stock_mutation_log: {
20676
21125
  Row: {
20677
21126
  connection_id: string | null;
@@ -20729,6 +21178,45 @@ export type Database = {
20729
21178
  };
20730
21179
  Relationships: [];
20731
21180
  };
21181
+ structure_cleanup_log: {
21182
+ Row: {
21183
+ action: string;
21184
+ batch: string;
21185
+ created_at: string;
21186
+ id: string;
21187
+ new_row: Json | null;
21188
+ old_row: Json;
21189
+ reason: string;
21190
+ row_id: string;
21191
+ step: number;
21192
+ table_name: string;
21193
+ };
21194
+ Insert: {
21195
+ action: string;
21196
+ batch: string;
21197
+ created_at?: string;
21198
+ id?: string;
21199
+ new_row?: Json | null;
21200
+ old_row: Json;
21201
+ reason: string;
21202
+ row_id: string;
21203
+ step: number;
21204
+ table_name: string;
21205
+ };
21206
+ Update: {
21207
+ action?: string;
21208
+ batch?: string;
21209
+ created_at?: string;
21210
+ id?: string;
21211
+ new_row?: Json | null;
21212
+ old_row?: Json;
21213
+ reason?: string;
21214
+ row_id?: string;
21215
+ step?: number;
21216
+ table_name?: string;
21217
+ };
21218
+ Relationships: [];
21219
+ };
20732
21220
  supplier_contacts: {
20733
21221
  Row: {
20734
21222
  created_at: string;
@@ -21160,6 +21648,59 @@ export type Database = {
21160
21648
  }
21161
21649
  ];
21162
21650
  };
21651
+ time_compensation_log: {
21652
+ Row: {
21653
+ actie: string;
21654
+ created_at: string;
21655
+ employee_id: string;
21656
+ entry_date: string;
21657
+ id: string;
21658
+ km: number;
21659
+ maaltijd: number;
21660
+ notities: string | null;
21661
+ performed_by: string | null;
21662
+ standby_avond: number;
21663
+ standby_weekend: number;
21664
+ tvt: number;
21665
+ };
21666
+ Insert: {
21667
+ actie: string;
21668
+ created_at?: string;
21669
+ employee_id: string;
21670
+ entry_date: string;
21671
+ id?: string;
21672
+ km?: number;
21673
+ maaltijd?: number;
21674
+ notities?: string | null;
21675
+ performed_by?: string | null;
21676
+ standby_avond?: number;
21677
+ standby_weekend?: number;
21678
+ tvt?: number;
21679
+ };
21680
+ Update: {
21681
+ actie?: string;
21682
+ created_at?: string;
21683
+ employee_id?: string;
21684
+ entry_date?: string;
21685
+ id?: string;
21686
+ km?: number;
21687
+ maaltijd?: number;
21688
+ notities?: string | null;
21689
+ performed_by?: string | null;
21690
+ standby_avond?: number;
21691
+ standby_weekend?: number;
21692
+ tvt?: number;
21693
+ };
21694
+ Relationships: [
21695
+ {
21696
+ foreignKeyName: "time_compensation_log_employee_id_fkey";
21697
+ columns: ["employee_id"];
21698
+ isOneToOne: false;
21699
+ referencedRelation: "profiles";
21700
+ referencedColumns: ["id"];
21701
+ }
21702
+ ];
21703
+ };
21163
21704
  time_entries: {
21164
21705
  Row: {
21165
21706
  created_at: string;
@@ -21687,13 +22228,19 @@ export type Database = {
21687
22228
  created_at: string;
21688
22229
  disconnected_at: string | null;
21689
22230
  environment: string;
22231
+ granted_scopes: string[] | null;
21690
22232
  id: string;
21691
22233
  initial_sync_completed_at: string | null;
22234
+ initial_sync_last_error: string | null;
22235
+ initial_sync_plan: Json | null;
21692
22236
  initial_sync_started_at: string | null;
21693
22237
  is_active: boolean;
21694
22238
  label: string | null;
22239
+ missing_scopes: string[] | null;
21695
22240
  office_code: string | null;
21696
22241
  redirect_uri: string | null;
22242
+ scope_checked_at: string | null;
22243
+ scope_state: string | null;
21697
22244
  superseded_at: string | null;
21698
22245
  updated_at: string;
21699
22246
  user_id: string;
@@ -21707,13 +22254,19 @@ export type Database = {
21707
22254
  created_at?: string;
21708
22255
  disconnected_at?: string | null;
21709
22256
  environment: string;
22257
+ granted_scopes?: string[] | null;
21710
22258
  id?: string;
21711
22259
  initial_sync_completed_at?: string | null;
22260
+ initial_sync_last_error?: string | null;
22261
+ initial_sync_plan?: Json | null;
21712
22262
  initial_sync_started_at?: string | null;
21713
22263
  is_active?: boolean;
21714
22264
  label?: string | null;
22265
+ missing_scopes?: string[] | null;
21715
22266
  office_code?: string | null;
21716
22267
  redirect_uri?: string | null;
22268
+ scope_checked_at?: string | null;
22269
+ scope_state?: string | null;
21717
22270
  superseded_at?: string | null;
21718
22271
  updated_at?: string;
21719
22272
  user_id: string;
@@ -21727,13 +22280,19 @@ export type Database = {
21727
22280
  created_at?: string;
21728
22281
  disconnected_at?: string | null;
21729
22282
  environment?: string;
22283
+ granted_scopes?: string[] | null;
21730
22284
  id?: string;
21731
22285
  initial_sync_completed_at?: string | null;
22286
+ initial_sync_last_error?: string | null;
22287
+ initial_sync_plan?: Json | null;
21732
22288
  initial_sync_started_at?: string | null;
21733
22289
  is_active?: boolean;
21734
22290
  label?: string | null;
22291
+ missing_scopes?: string[] | null;
21735
22292
  office_code?: string | null;
21736
22293
  redirect_uri?: string | null;
22294
+ scope_checked_at?: string | null;
22295
+ scope_state?: string | null;
21737
22296
  superseded_at?: string | null;
21738
22297
  updated_at?: string;
21739
22298
  user_id?: string;
@@ -21859,33 +22418,51 @@ export type Database = {
21859
22418
  connection_id: string;
21860
22419
  country: string | null;
21861
22420
  data: Json;
22421
+ deactivated_at: string | null;
21862
22422
  email: string | null;
21863
22423
  fetched_at: string;
22424
+ is_active: boolean;
21864
22425
  modified_at: string | null;
21865
22426
  name: string | null;
22427
+ seen_at: string | null;
21866
22428
  twinfield_code: string;
22429
+ twinfield_status: string | null;
22430
+ twinfield_uid: string | null;
22431
+ twinfield_version: number | null;
21867
22432
  vat_number: string | null;
21868
22433
  };
21869
22434
  Insert: {
21870
22435
  connection_id: string;
21871
22436
  country?: string | null;
21872
22437
  data?: Json;
22438
+ deactivated_at?: string | null;
21873
22439
  email?: string | null;
21874
22440
  fetched_at?: string;
22441
+ is_active?: boolean;
21875
22442
  modified_at?: string | null;
21876
22443
  name?: string | null;
22444
+ seen_at?: string | null;
21877
22445
  twinfield_code: string;
22446
+ twinfield_status?: string | null;
22447
+ twinfield_uid?: string | null;
22448
+ twinfield_version?: number | null;
21878
22449
  vat_number?: string | null;
21879
22450
  };
21880
22451
  Update: {
21881
22452
  connection_id?: string;
21882
22453
  country?: string | null;
21883
22454
  data?: Json;
22455
+ deactivated_at?: string | null;
21884
22456
  email?: string | null;
21885
22457
  fetched_at?: string;
22458
+ is_active?: boolean;
21886
22459
  modified_at?: string | null;
21887
22460
  name?: string | null;
22461
+ seen_at?: string | null;
21888
22462
  twinfield_code?: string;
22463
+ twinfield_status?: string | null;
22464
+ twinfield_uid?: string | null;
22465
+ twinfield_version?: number | null;
21889
22466
  vat_number?: string | null;
21890
22467
  };
21891
22468
  Relationships: [
@@ -21898,6 +22475,59 @@ export type Database = {
21898
22475
  }
21899
22476
  ];
21900
22477
  };
22478
+ twinfield_dimension_types_cache: {
22479
+ Row: {
22480
+ connection_id: string | null;
22481
+ dim_type: string;
22482
+ fetched_at: string;
22483
+ label1: string | null;
22484
+ label2: string | null;
22485
+ label3: string | null;
22486
+ label4: string | null;
22487
+ label5: string | null;
22488
+ label6: string | null;
22489
+ mask: string | null;
22490
+ name: string | null;
22491
+ office_code: string;
22492
+ };
22493
+ Insert: {
22494
+ connection_id?: string | null;
22495
+ dim_type: string;
22496
+ fetched_at?: string;
22497
+ label1?: string | null;
22498
+ label2?: string | null;
22499
+ label3?: string | null;
22500
+ label4?: string | null;
22501
+ label5?: string | null;
22502
+ label6?: string | null;
22503
+ mask?: string | null;
22504
+ name?: string | null;
22505
+ office_code: string;
22506
+ };
22507
+ Update: {
22508
+ connection_id?: string | null;
22509
+ dim_type?: string;
22510
+ fetched_at?: string;
22511
+ label1?: string | null;
22512
+ label2?: string | null;
22513
+ label3?: string | null;
22514
+ label4?: string | null;
22515
+ label5?: string | null;
22516
+ label6?: string | null;
22517
+ mask?: string | null;
22518
+ name?: string | null;
22519
+ office_code?: string;
22520
+ };
22521
+ Relationships: [
22522
+ {
22523
+ foreignKeyName: "twinfield_dimension_types_cache_connection_id_fkey";
22524
+ columns: ["connection_id"];
22525
+ isOneToOne: false;
22526
+ referencedRelation: "twinfield_connections";
22527
+ referencedColumns: ["id"];
22528
+ }
22529
+ ];
22530
+ };
21901
22531
  twinfield_invoice_lines: {
21902
22532
  Row: {
21903
22533
  article_code: string | null;
@@ -22494,24 +23124,39 @@ export type Database = {
22494
23124
  twinfield_request_metrics: {
22495
23125
  Row: {
22496
23126
  bucket_hour: string;
23127
+ clientid_limit: number | null;
23128
+ clientid_remaining: number | null;
22497
23129
  connection_id: string;
22498
23130
  error_count: number;
23131
+ rate_limit_limit: number | null;
23132
+ rate_limit_remaining: number | null;
23133
+ rate_limit_seen_at: string | null;
22499
23134
  rate_limited_count: number;
22500
23135
  request_count: number;
22501
23136
  updated_at: string;
22502
23137
  };
22503
23138
  Insert: {
22504
23139
  bucket_hour: string;
23140
+ clientid_limit?: number | null;
23141
+ clientid_remaining?: number | null;
22505
23142
  connection_id: string;
22506
23143
  error_count?: number;
23144
+ rate_limit_limit?: number | null;
23145
+ rate_limit_remaining?: number | null;
23146
+ rate_limit_seen_at?: string | null;
22507
23147
  rate_limited_count?: number;
22508
23148
  request_count?: number;
22509
23149
  updated_at?: string;
22510
23150
  };
22511
23151
  Update: {
22512
23152
  bucket_hour?: string;
23153
+ clientid_limit?: number | null;
23154
+ clientid_remaining?: number | null;
22513
23155
  connection_id?: string;
22514
23156
  error_count?: number;
23157
+ rate_limit_limit?: number | null;
23158
+ rate_limit_remaining?: number | null;
23159
+ rate_limit_seen_at?: string | null;
22515
23160
  rate_limited_count?: number;
22516
23161
  request_count?: number;
22517
23162
  updated_at?: string;
@@ -22566,24 +23211,226 @@ export type Database = {
22566
23211
  twinfield_settings: {
22567
23212
  Row: {
22568
23213
  active_environment: string;
23214
+ cron_registered_at: string | null;
23215
+ cron_registration_error: string | null;
23216
+ cron_schedules: Json;
23217
+ cron_timeouts: Json;
22569
23218
  id: number;
22570
23219
  public_base_url: string | null;
22571
23220
  updated_at: string;
22572
23221
  };
22573
23222
  Insert: {
22574
23223
  active_environment?: string;
23224
+ cron_registered_at?: string | null;
23225
+ cron_registration_error?: string | null;
23226
+ cron_schedules?: Json;
23227
+ cron_timeouts?: Json;
22575
23228
  id?: number;
22576
23229
  public_base_url?: string | null;
22577
23230
  updated_at?: string;
22578
23231
  };
22579
23232
  Update: {
22580
23233
  active_environment?: string;
23234
+ cron_registered_at?: string | null;
23235
+ cron_registration_error?: string | null;
23236
+ cron_schedules?: Json;
23237
+ cron_timeouts?: Json;
22581
23238
  id?: number;
22582
23239
  public_base_url?: string | null;
22583
23240
  updated_at?: string;
22584
23241
  };
22585
23242
  Relationships: [];
22586
23243
  };
23244
+ twinfield_sync_runs: {
23245
+ Row: {
23246
+ calls: number;
23247
+ changed: number;
23248
+ connection_id: string | null;
23249
+ deactivated: number;
23250
+ details: Json;
23251
+ error: string | null;
23252
+ fetched: number;
23253
+ finished_at: string | null;
23254
+ id: string;
23255
+ item_errors: number;
23256
+ kind: string;
23257
+ rate_limited: number;
23258
+ started_at: string;
23259
+ status: string;
23260
+ };
23261
+ Insert: {
23262
+ calls?: number;
23263
+ changed?: number;
23264
+ connection_id?: string | null;
23265
+ deactivated?: number;
23266
+ details?: Json;
23267
+ error?: string | null;
23268
+ fetched?: number;
23269
+ finished_at?: string | null;
23270
+ id?: string;
23271
+ item_errors?: number;
23272
+ kind: string;
23273
+ rate_limited?: number;
23274
+ started_at?: string;
23275
+ status?: string;
23276
+ };
23277
+ Update: {
23278
+ calls?: number;
23279
+ changed?: number;
23280
+ connection_id?: string | null;
23281
+ deactivated?: number;
23282
+ details?: Json;
23283
+ error?: string | null;
23284
+ fetched?: number;
23285
+ finished_at?: string | null;
23286
+ id?: string;
23287
+ item_errors?: number;
23288
+ kind?: string;
23289
+ rate_limited?: number;
23290
+ started_at?: string;
23291
+ status?: string;
23292
+ };
23293
+ Relationships: [
23294
+ {
23295
+ foreignKeyName: "twinfield_sync_runs_connection_id_fkey";
23296
+ columns: ["connection_id"];
23297
+ isOneToOne: false;
23298
+ referencedRelation: "twinfield_connections";
23299
+ referencedColumns: ["id"];
23300
+ }
23301
+ ];
23302
+ };
23303
+ twinfield_sync_settings: {
23304
+ Row: {
23305
+ batch_size: number;
23306
+ change_overlap_seconds: number;
23307
+ change_poll_interval_seconds: number;
23308
+ connection_id: string;
23309
+ created_at: string;
23310
+ currency: string | null;
23311
+ currency_at: string | null;
23312
+ currency_source: string | null;
23313
+ customer_gl_account: string | null;
23314
+ customer_gl_account_at: string | null;
23315
+ customer_gl_account_source: string | null;
23316
+ customers_written_by_module: boolean;
23317
+ default_country: string | null;
23318
+ default_country_at: string | null;
23319
+ default_country_source: string | null;
23320
+ default_language: string | null;
23321
+ default_language_at: string | null;
23322
+ default_language_source: string | null;
23323
+ nightly_full_scan_cron: string;
23324
+ payment_term_min_invoices: number;
23325
+ payment_term_min_share: number;
23326
+ rate_limit_floor: number;
23327
+ requires_manual_approval: boolean;
23328
+ run_budget_ms: number;
23329
+ sales_daybook: string | null;
23330
+ sales_daybook_confirmed_at: string | null;
23331
+ sales_daybook_confirmed_by: string | null;
23332
+ sales_gl_account: string | null;
23333
+ sales_gl_account_at: string | null;
23334
+ sales_gl_account_source: string | null;
23335
+ sales_invoice_type: string | null;
23336
+ sales_invoice_type_confirmed_at: string | null;
23337
+ sales_invoice_type_confirmed_by: string | null;
23338
+ sales_payment_term_at: string | null;
23339
+ sales_payment_term_days: number | null;
23340
+ sales_payment_term_source: string | null;
23341
+ suggestion_warnings: Json;
23342
+ updated_at: string;
23343
+ };
23344
+ Insert: {
23345
+ batch_size?: number;
23346
+ change_overlap_seconds?: number;
23347
+ change_poll_interval_seconds?: number;
23348
+ connection_id: string;
23349
+ created_at?: string;
23350
+ currency?: string | null;
23351
+ currency_at?: string | null;
23352
+ currency_source?: string | null;
23353
+ customer_gl_account?: string | null;
23354
+ customer_gl_account_at?: string | null;
23355
+ customer_gl_account_source?: string | null;
23356
+ customers_written_by_module?: boolean;
23357
+ default_country?: string | null;
23358
+ default_country_at?: string | null;
23359
+ default_country_source?: string | null;
23360
+ default_language?: string | null;
23361
+ default_language_at?: string | null;
23362
+ default_language_source?: string | null;
23363
+ nightly_full_scan_cron?: string;
23364
+ payment_term_min_invoices?: number;
23365
+ payment_term_min_share?: number;
23366
+ rate_limit_floor?: number;
23367
+ requires_manual_approval?: boolean;
23368
+ run_budget_ms?: number;
23369
+ sales_daybook?: string | null;
23370
+ sales_daybook_confirmed_at?: string | null;
23371
+ sales_daybook_confirmed_by?: string | null;
23372
+ sales_gl_account?: string | null;
23373
+ sales_gl_account_at?: string | null;
23374
+ sales_gl_account_source?: string | null;
23375
+ sales_invoice_type?: string | null;
23376
+ sales_invoice_type_confirmed_at?: string | null;
23377
+ sales_invoice_type_confirmed_by?: string | null;
23378
+ sales_payment_term_at?: string | null;
23379
+ sales_payment_term_days?: number | null;
23380
+ sales_payment_term_source?: string | null;
23381
+ suggestion_warnings?: Json;
23382
+ updated_at?: string;
23383
+ };
23384
+ Update: {
23385
+ batch_size?: number;
23386
+ change_overlap_seconds?: number;
23387
+ change_poll_interval_seconds?: number;
23388
+ connection_id?: string;
23389
+ created_at?: string;
23390
+ currency?: string | null;
23391
+ currency_at?: string | null;
23392
+ currency_source?: string | null;
23393
+ customer_gl_account?: string | null;
23394
+ customer_gl_account_at?: string | null;
23395
+ customer_gl_account_source?: string | null;
23396
+ customers_written_by_module?: boolean;
23397
+ default_country?: string | null;
23398
+ default_country_at?: string | null;
23399
+ default_country_source?: string | null;
23400
+ default_language?: string | null;
23401
+ default_language_at?: string | null;
23402
+ default_language_source?: string | null;
23403
+ nightly_full_scan_cron?: string;
23404
+ payment_term_min_invoices?: number;
23405
+ payment_term_min_share?: number;
23406
+ rate_limit_floor?: number;
23407
+ requires_manual_approval?: boolean;
23408
+ run_budget_ms?: number;
23409
+ sales_daybook?: string | null;
23410
+ sales_daybook_confirmed_at?: string | null;
23411
+ sales_daybook_confirmed_by?: string | null;
23412
+ sales_gl_account?: string | null;
23413
+ sales_gl_account_at?: string | null;
23414
+ sales_gl_account_source?: string | null;
23415
+ sales_invoice_type?: string | null;
23416
+ sales_invoice_type_confirmed_at?: string | null;
23417
+ sales_invoice_type_confirmed_by?: string | null;
23418
+ sales_payment_term_at?: string | null;
23419
+ sales_payment_term_days?: number | null;
23420
+ sales_payment_term_source?: string | null;
23421
+ suggestion_warnings?: Json;
23422
+ updated_at?: string;
23423
+ };
23424
+ Relationships: [
23425
+ {
23426
+ foreignKeyName: "twinfield_sync_settings_connection_id_fkey";
23427
+ columns: ["connection_id"];
23428
+ isOneToOne: true;
23429
+ referencedRelation: "twinfield_connections";
23430
+ referencedColumns: ["id"];
23431
+ }
23432
+ ];
23433
+ };
22587
23434
  twinfield_sync_state: {
22588
23435
  Row: {
22589
23436
  connection_id: string;
@@ -22619,6 +23466,51 @@ export type Database = {
22619
23466
  }
22620
23467
  ];
22621
23468
  };
23469
+ twinfield_vat_code_map: {
23470
+ Row: {
23471
+ confirmed_at: string | null;
23472
+ confirmed_by: string | null;
23473
+ fetched_at: string;
23474
+ id: string;
23475
+ is_default: boolean;
23476
+ name: string | null;
23477
+ office_code: string;
23478
+ percentage: number | null;
23479
+ source: string;
23480
+ vat_category: string | null;
23481
+ vat_code: string;
23482
+ vat_type: string | null;
23483
+ };
23484
+ Insert: {
23485
+ confirmed_at?: string | null;
23486
+ confirmed_by?: string | null;
23487
+ fetched_at?: string;
23488
+ id?: string;
23489
+ is_default?: boolean;
23490
+ name?: string | null;
23491
+ office_code: string;
23492
+ percentage?: number | null;
23493
+ source?: string;
23494
+ vat_category?: string | null;
23495
+ vat_code: string;
23496
+ vat_type?: string | null;
23497
+ };
23498
+ Update: {
23499
+ confirmed_at?: string | null;
23500
+ confirmed_by?: string | null;
23501
+ fetched_at?: string;
23502
+ id?: string;
23503
+ is_default?: boolean;
23504
+ name?: string | null;
23505
+ office_code?: string;
23506
+ percentage?: number | null;
23507
+ source?: string;
23508
+ vat_category?: string | null;
23509
+ vat_code?: string;
23510
+ vat_type?: string | null;
23511
+ };
23512
+ Relationships: [];
23513
+ };
22622
23514
  uren_beschikbare_dagen: {
22623
23515
  Row: {
22624
23516
  bron: string;
@@ -22799,6 +23691,36 @@ export type Database = {
22799
23691
  };
22800
23692
  Relationships: [];
22801
23693
  };
23694
+ uren_indirecte_uren: {
23695
+ Row: {
23696
+ created_at: string;
23697
+ datum: string;
23698
+ id: string;
23699
+ minuten: number;
23700
+ monteur_id: string;
23701
+ toelichting: string;
23702
+ updated_at: string;
23703
+ };
23704
+ Insert: {
23705
+ created_at?: string;
23706
+ datum: string;
23707
+ id?: string;
23708
+ minuten: number;
23709
+ monteur_id: string;
23710
+ toelichting: string;
23711
+ updated_at?: string;
23712
+ };
23713
+ Update: {
23714
+ created_at?: string;
23715
+ datum?: string;
23716
+ id?: string;
23717
+ minuten?: number;
23718
+ monteur_id?: string;
23719
+ toelichting?: string;
23720
+ updated_at?: string;
23721
+ };
23722
+ Relationships: [];
23723
+ };
22802
23724
  uren_maandafsluitingen: {
22803
23725
  Row: {
22804
23726
  afgesloten_at: string | null;
@@ -22881,6 +23803,7 @@ export type Database = {
22881
23803
  Row: {
22882
23804
  beoordeeld_door: string | null;
22883
23805
  beoordeeld_op: string | null;
23806
+ blokken: Json;
22884
23807
  cancellation_requested_at: string | null;
22885
23808
  cancellation_status: string | null;
22886
23809
  created_at: string;
@@ -22889,16 +23812,23 @@ export type Database = {
22889
23812
  id: string;
22890
23813
  ingediend_at: string;
22891
23814
  monteur_id: string;
23815
+ ov178_uren: number;
23816
+ ov189_uren: number;
22892
23817
  overuren: number;
22893
23818
  reden_afkeur: string | null;
22894
23819
  start_tijd: string | null;
22895
23820
  status: string;
22896
- toelichting: string;
23821
+ toelichting: string | null;
23822
+ tvt_uren: number;
22897
23823
  updated_at: string;
23824
+ uren_na: number;
23825
+ uren_voor: number;
23826
+ verwerking: string;
22898
23827
  };
22899
23828
  Insert: {
22900
23829
  beoordeeld_door?: string | null;
22901
23830
  beoordeeld_op?: string | null;
23831
+ blokken?: Json;
22902
23832
  cancellation_requested_at?: string | null;
22903
23833
  cancellation_status?: string | null;
22904
23834
  created_at?: string;
@@ -22907,16 +23837,23 @@ export type Database = {
22907
23837
  id?: string;
22908
23838
  ingediend_at?: string;
22909
23839
  monteur_id: string;
23840
+ ov178_uren?: number;
23841
+ ov189_uren?: number;
22910
23842
  overuren: number;
22911
23843
  reden_afkeur?: string | null;
22912
23844
  start_tijd?: string | null;
22913
23845
  status?: string;
22914
- toelichting: string;
23846
+ toelichting?: string | null;
23847
+ tvt_uren?: number;
22915
23848
  updated_at?: string;
23849
+ uren_na?: number;
23850
+ uren_voor?: number;
23851
+ verwerking?: string;
22916
23852
  };
22917
23853
  Update: {
22918
23854
  beoordeeld_door?: string | null;
22919
23855
  beoordeeld_op?: string | null;
23856
+ blokken?: Json;
22920
23857
  cancellation_requested_at?: string | null;
22921
23858
  cancellation_status?: string | null;
22922
23859
  created_at?: string;
@@ -22925,12 +23862,18 @@ export type Database = {
22925
23862
  id?: string;
22926
23863
  ingediend_at?: string;
22927
23864
  monteur_id?: string;
23865
+ ov178_uren?: number;
23866
+ ov189_uren?: number;
22928
23867
  overuren?: number;
22929
23868
  reden_afkeur?: string | null;
22930
23869
  start_tijd?: string | null;
22931
23870
  status?: string;
22932
- toelichting?: string;
23871
+ toelichting?: string | null;
23872
+ tvt_uren?: number;
22933
23873
  updated_at?: string;
23874
+ uren_na?: number;
23875
+ uren_voor?: number;
23876
+ verwerking?: string;
22934
23877
  };
22935
23878
  Relationships: [];
22936
23879
  };
@@ -24772,12 +25715,14 @@ export type Database = {
24772
25715
  };
24773
25716
  werkbonnen: {
24774
25717
  Row: {
25718
+ afgerond_op: string | null;
24775
25719
  assigned_user_id: string | null;
24776
25720
  budget_mandate_cents: number;
24777
25721
  complaint_description: string | null;
24778
25722
  created_at: string;
24779
25723
  created_by: string | null;
24780
25724
  customer_id: string | null;
25725
+ customer_name: string | null;
24781
25726
  deadline_date: string | null;
24782
25727
  estimated_days: number | null;
24783
25728
  estimated_duration_minutes: number | null;
@@ -24814,12 +25759,14 @@ export type Database = {
24814
25759
  workday_hours: number | null;
24815
25760
  };
24816
25761
  Insert: {
25762
+ afgerond_op?: string | null;
24817
25763
  assigned_user_id?: string | null;
24818
25764
  budget_mandate_cents?: number;
24819
25765
  complaint_description?: string | null;
24820
25766
  created_at?: string;
24821
25767
  created_by?: string | null;
24822
25768
  customer_id?: string | null;
25769
+ customer_name?: string | null;
24823
25770
  deadline_date?: string | null;
24824
25771
  estimated_days?: number | null;
24825
25772
  estimated_duration_minutes?: number | null;
@@ -24856,12 +25803,14 @@ export type Database = {
24856
25803
  workday_hours?: number | null;
24857
25804
  };
24858
25805
  Update: {
25806
+ afgerond_op?: string | null;
24859
25807
  assigned_user_id?: string | null;
24860
25808
  budget_mandate_cents?: number;
24861
25809
  complaint_description?: string | null;
24862
25810
  created_at?: string;
24863
25811
  created_by?: string | null;
24864
25812
  customer_id?: string | null;
25813
+ customer_name?: string | null;
24865
25814
  deadline_date?: string | null;
24866
25815
  estimated_days?: number | null;
24867
25816
  estimated_duration_minutes?: number | null;
@@ -25265,6 +26214,7 @@ export type Database = {
25265
26214
  group_key: string | null;
25266
26215
  is_active: boolean | null;
25267
26216
  is_merged: boolean | null;
26217
+ last_changed_at: string | null;
25268
26218
  logo_url: string | null;
25269
26219
  match_key: string | null;
25270
26220
  phone: string | null;
@@ -25278,6 +26228,7 @@ export type Database = {
25278
26228
  };
25279
26229
  external_customers_unified: {
25280
26230
  Row: {
26231
+ changed_at: string | null;
25281
26232
  city: string | null;
25282
26233
  commercial_name: string | null;
25283
26234
  company_name: string | null;
@@ -25688,6 +26639,7 @@ export type Database = {
25688
26639
  };
25689
26640
  v_external_customers_floriday: {
25690
26641
  Row: {
26642
+ changed_at: string | null;
25691
26643
  city: string | null;
25692
26644
  commercial_name: string | null;
25693
26645
  company_name: string | null;
@@ -25723,6 +26675,7 @@ export type Database = {
25723
26675
  };
25724
26676
  v_external_customers_local: {
25725
26677
  Row: {
26678
+ changed_at: string | null;
25726
26679
  city: string | null;
25727
26680
  commercial_name: string | null;
25728
26681
  company_name: string | null;
@@ -25747,6 +26700,7 @@ export type Database = {
25747
26700
  website: string | null;
25748
26701
  };
25749
26702
  Insert: {
26703
+ changed_at?: never;
25750
26704
  city?: string | null;
25751
26705
  commercial_name?: string | null;
25752
26706
  company_name?: string | null;
@@ -25771,6 +26725,7 @@ export type Database = {
25771
26725
  website?: string | null;
25772
26726
  };
25773
26727
  Update: {
26728
+ changed_at?: never;
25774
26729
  city?: string | null;
25775
26730
  commercial_name?: string | null;
25776
26731
  company_name?: string | null;
@@ -25798,6 +26753,7 @@ export type Database = {
25798
26753
  };
25799
26754
  v_external_customers_twinfield: {
25800
26755
  Row: {
26756
+ changed_at: string | null;
25801
26757
  city: string | null;
25802
26758
  commercial_name: string | null;
25803
26759
  company_name: string | null;
@@ -26186,6 +27142,8 @@ export type Database = {
26186
27142
  desired_availability: boolean;
26187
27143
  desired_quantity: number;
26188
27144
  erp_available: number;
27145
+ packing_size: number;
27146
+ reason: string;
26189
27147
  stock_mode: string;
26190
27148
  }[];
26191
27149
  };
@@ -26195,6 +27153,15 @@ export type Database = {
26195
27153
  };
26196
27154
  Returns: number;
26197
27155
  };
27156
+ calculate_structure_available: {
27157
+ Args: {
27158
+ p_connection_id: string;
27159
+ p_level?: number;
27160
+ p_path?: string[];
27161
+ p_product_id: string;
27162
+ };
27163
+ Returns: Json;
27164
+ };
26198
27165
  call_exact_route: {
26199
27166
  Args: {
26200
27167
  path: string;
@@ -26223,6 +27190,19 @@ export type Database = {
26223
27190
  };
26224
27191
  Returns: Json;
26225
27192
  };
27193
+ check_product_structure: {
27194
+ Args: {
27195
+ p_child: string;
27196
+ p_kind: string;
27197
+ p_name?: string;
27198
+ p_parent: string;
27199
+ };
27200
+ Returns: {
27201
+ code: string;
27202
+ message: string;
27203
+ ok: boolean;
27204
+ }[];
27205
+ };
26226
27206
  check_trade_item_available_stock: {
26227
27207
  Args: {
26228
27208
  p_connection_id?: string;
@@ -26303,6 +27283,7 @@ export type Database = {
26303
27283
  };
26304
27284
  Returns: {
26305
27285
  attempts: number;
27286
+ availability_sent_at: string | null;
26306
27287
  connection_id: string;
26307
27288
  created_at: string;
26308
27289
  dead_lettered_at: string | null;
@@ -26315,7 +27296,9 @@ export type Database = {
26315
27296
  next_attempt_at: string;
26316
27297
  number_of_pieces: number;
26317
27298
  product_id: string | null;
27299
+ quantity_sent_at: string | null;
26318
27300
  sent_at: string | null;
27301
+ skip_reason: string | null;
26319
27302
  status: string;
26320
27303
  stock_mode: string | null;
26321
27304
  superseded_by: string | null;
@@ -26565,6 +27548,14 @@ export type Database = {
26565
27548
  Args: never;
26566
27549
  Returns: undefined;
26567
27550
  };
27551
+ cleanup_standby_planning: {
27552
+ Args: never;
27553
+ Returns: number;
27554
+ };
27555
+ cleanup_time_compensation_log: {
27556
+ Args: never;
27557
+ Returns: number;
27558
+ };
26568
27559
  cleanup_voorraad_module_history: {
26569
27560
  Args: never;
26570
27561
  Returns: undefined;
@@ -26579,6 +27570,18 @@ export type Database = {
26579
27570
  };
26580
27571
  Returns: undefined;
26581
27572
  };
27573
+ complete_floriday_stock_queue_outcome: {
27574
+ Args: {
27575
+ p_attempt_id?: string;
27576
+ p_availability_sent?: boolean;
27577
+ p_error?: string;
27578
+ p_id: string;
27579
+ p_outcome: string;
27580
+ p_permanent?: boolean;
27581
+ p_quantity_sent?: boolean;
27582
+ };
27583
+ Returns: undefined;
27584
+ };
26582
27585
  consume_bom_for_production: {
26583
27586
  Args: {
26584
27587
  p_connection_id: string;
@@ -26613,10 +27616,19 @@ export type Database = {
26613
27616
  wait_ms: number;
26614
27617
  }[];
26615
27618
  };
26616
- consume_print_agent_pairing: {
27619
+ consume_order_item: {
26617
27620
  Args: {
26618
- _pairing_hash: string;
26619
- _token_hash: string;
27621
+ p_order_id: string;
27622
+ p_order_item_id: string;
27623
+ p_reason: string;
27624
+ p_source: string;
27625
+ };
27626
+ Returns: number;
27627
+ };
27628
+ consume_print_agent_pairing: {
27629
+ Args: {
27630
+ _pairing_hash: string;
27631
+ _token_hash: string;
26620
27632
  };
26621
27633
  Returns: {
26622
27634
  agent_id: string;
@@ -26745,6 +27757,10 @@ export type Database = {
26745
27757
  };
26746
27758
  Returns: Json;
26747
27759
  };
27760
+ drain_inventory_recompute_queue: {
27761
+ Args: never;
27762
+ Returns: number;
27763
+ };
26748
27764
  effective_module_permission: {
26749
27765
  Args: {
26750
27766
  _module_id: string;
@@ -26817,6 +27833,18 @@ export type Database = {
26817
27833
  };
26818
27834
  Returns: undefined;
26819
27835
  };
27836
+ enqueue_structure_recompute: {
27837
+ Args: {
27838
+ p_include_self?: boolean;
27839
+ p_product_ids: string[];
27840
+ p_reason: string;
27841
+ };
27842
+ Returns: number;
27843
+ };
27844
+ ensure_inventory_recompute_drain: {
27845
+ Args: never;
27846
+ Returns: undefined;
27847
+ };
26820
27848
  ensure_system_roles: {
26821
27849
  Args: never;
26822
27850
  Returns: {
@@ -26830,6 +27858,12 @@ export type Database = {
26830
27858
  };
26831
27859
  Returns: undefined;
26832
27860
  };
27861
+ ensure_trade_item_stock_row_key: {
27862
+ Args: {
27863
+ p_key: string;
27864
+ };
27865
+ Returns: string;
27866
+ };
26833
27867
  ensure_user_tenant: {
26834
27868
  Args: never;
26835
27869
  Returns: string;
@@ -26928,6 +27962,19 @@ export type Database = {
26928
27962
  };
26929
27963
  Returns: string;
26930
27964
  };
27965
+ floriday_desired_stock_regression_check: {
27966
+ Args: never;
27967
+ Returns: {
27968
+ actual: number;
27969
+ available: number;
27970
+ equal: boolean;
27971
+ expected: number;
27972
+ packing: number;
27973
+ product_id: string;
27974
+ product_name: string;
27975
+ stock_mode: string;
27976
+ }[];
27977
+ };
26931
27978
  floriday_effective_price: {
26932
27979
  Args: {
26933
27980
  _buyer_id: string;
@@ -27186,6 +28233,18 @@ export type Database = {
27186
28233
  updated_at: string;
27187
28234
  }[];
27188
28235
  };
28236
+ get_product_structure_totals: {
28237
+ Args: {
28238
+ p_product_id: string;
28239
+ };
28240
+ Returns: Json;
28241
+ };
28242
+ get_product_structure_totals_batch: {
28243
+ Args: {
28244
+ p_product_ids: string[];
28245
+ };
28246
+ Returns: Json[];
28247
+ };
27189
28248
  get_room_busy_windows: {
27190
28249
  Args: {
27191
28250
  p_from: string;
@@ -27609,6 +28668,16 @@ export type Database = {
27609
28668
  };
27610
28669
  Returns: number;
27611
28670
  };
28671
+ inventory_inline_budget_ok: {
28672
+ Args: never;
28673
+ Returns: boolean;
28674
+ };
28675
+ invoice_auto_concept_for_work_order: {
28676
+ Args: {
28677
+ _wo_id: string;
28678
+ };
28679
+ Returns: undefined;
28680
+ };
27612
28681
  invoice_branding_snapshot: {
27613
28682
  Args: never;
27614
28683
  Returns: Json;
@@ -27917,6 +28986,14 @@ export type Database = {
27917
28986
  };
27918
28987
  Returns: Json;
27919
28988
  };
28989
+ logistics_base_url_check_status: {
28990
+ Args: never;
28991
+ Returns: Json;
28992
+ };
28993
+ logistics_base_url_checks_resolve: {
28994
+ Args: never;
28995
+ Returns: number;
28996
+ };
27920
28997
  logistics_block_reason_code: {
27921
28998
  Args: {
27922
28999
  p_details?: Json;
@@ -28612,6 +29689,20 @@ export type Database = {
28612
29689
  };
28613
29690
  Returns: Json;
28614
29691
  };
29692
+ logistics_expand_line: {
29693
+ Args: {
29694
+ p_depth?: number;
29695
+ p_path?: string[];
29696
+ p_product_id: string;
29697
+ p_qty: number;
29698
+ };
29699
+ Returns: {
29700
+ kind: string;
29701
+ note: string;
29702
+ qty: number;
29703
+ ref: string;
29704
+ }[];
29705
+ };
28615
29706
  logistics_fail_task: {
28616
29707
  Args: {
28617
29708
  p_error: string;
@@ -28815,6 +29906,13 @@ export type Database = {
28815
29906
  Args: never;
28816
29907
  Returns: number;
28817
29908
  };
29909
+ logistics_is_engine_response: {
29910
+ Args: {
29911
+ p_content: string;
29912
+ p_status: number;
29913
+ };
29914
+ Returns: boolean;
29915
+ };
28818
29916
  logistics_is_pick_workday: {
28819
29917
  Args: {
28820
29918
  p_date: string;
@@ -29004,6 +30102,18 @@ export type Database = {
29004
30102
  };
29005
30103
  Returns: boolean;
29006
30104
  };
30105
+ logistics_order_line_allocation: {
30106
+ Args: {
30107
+ p_order_item_id: string;
30108
+ };
30109
+ Returns: {
30110
+ group_id: string;
30111
+ note: string;
30112
+ qty: number;
30113
+ source: string;
30114
+ trade_item_key: string;
30115
+ }[];
30116
+ };
29007
30117
  logistics_order_line_duplicates: {
29008
30118
  Args: {
29009
30119
  p_order_id: string;
@@ -29546,6 +30656,12 @@ export type Database = {
29546
30656
  };
29547
30657
  Returns: Json;
29548
30658
  };
30659
+ logistics_reserved_key: {
30660
+ Args: {
30661
+ p_key: string;
30662
+ };
30663
+ Returns: string;
30664
+ };
29549
30665
  logistics_reserved_stock_nightly: {
29550
30666
  Args: never;
29551
30667
  Returns: undefined;
@@ -29833,6 +30949,10 @@ export type Database = {
29833
30949
  Args: never;
29834
30950
  Returns: Json;
29835
30951
  };
30952
+ logistics_tick_base_url_check: {
30953
+ Args: never;
30954
+ Returns: Json;
30955
+ };
29836
30956
  logistics_tick_calls_resolve: {
29837
30957
  Args: never;
29838
30958
  Returns: number;
@@ -30985,6 +32105,31 @@ export type Database = {
30985
32105
  };
30986
32106
  Returns: undefined;
30987
32107
  };
32108
+ plan_standby_batch: {
32109
+ Args: {
32110
+ _items: Json;
32111
+ _notes: string;
32112
+ _remove_ids?: string[];
32113
+ _soort: string;
32114
+ };
32115
+ Returns: {
32116
+ created_at: string;
32117
+ created_by: string | null;
32118
+ employee_id: string;
32119
+ end_date: string;
32120
+ id: string;
32121
+ notes: string | null;
32122
+ soort: string;
32123
+ start_date: string;
32124
+ updated_at: string;
32125
+ }[];
32126
+ SetofOptions: {
32127
+ from: "*";
32128
+ to: "standby_planning";
32129
+ isOneToOne: false;
32130
+ isSetofReturn: true;
32131
+ };
32132
+ };
30988
32133
  planning_apply_schedule_updates: {
30989
32134
  Args: {
30990
32135
  _updates: Json;
@@ -31120,6 +32265,12 @@ export type Database = {
31120
32265
  };
31121
32266
  Returns: Json;
31122
32267
  };
32268
+ process_inventory_recompute_queue: {
32269
+ Args: {
32270
+ p_limit?: number;
32271
+ };
32272
+ Returns: number;
32273
+ };
31123
32274
  process_logistics_event: {
31124
32275
  Args: {
31125
32276
  p_event_id: string;
@@ -31134,6 +32285,80 @@ export type Database = {
31134
32285
  };
31135
32286
  Returns: Json;
31136
32287
  };
32288
+ product_active_group_id: {
32289
+ Args: {
32290
+ p_product_id: string;
32291
+ };
32292
+ Returns: string;
32293
+ };
32294
+ product_id_from_ref: {
32295
+ Args: {
32296
+ p_ref: string;
32297
+ };
32298
+ Returns: string;
32299
+ };
32300
+ product_is_set: {
32301
+ Args: {
32302
+ p_product_id: string;
32303
+ };
32304
+ Returns: boolean;
32305
+ };
32306
+ product_label: {
32307
+ Args: {
32308
+ p_id: string;
32309
+ };
32310
+ Returns: string;
32311
+ };
32312
+ product_member_group_ids: {
32313
+ Args: {
32314
+ p_product_id: string;
32315
+ };
32316
+ Returns: string[];
32317
+ };
32318
+ product_own_available: {
32319
+ Args: {
32320
+ p_connection_id: string;
32321
+ p_product_id: string;
32322
+ };
32323
+ Returns: Record<string, unknown>;
32324
+ };
32325
+ product_set_depth_above: {
32326
+ Args: {
32327
+ p_path?: string[];
32328
+ p_product_id: string;
32329
+ };
32330
+ Returns: number;
32331
+ };
32332
+ product_set_depth_below: {
32333
+ Args: {
32334
+ p_path?: string[];
32335
+ p_product_id: string;
32336
+ };
32337
+ Returns: number;
32338
+ };
32339
+ product_structure_ancestors: {
32340
+ Args: {
32341
+ p_product_ids: string[];
32342
+ };
32343
+ Returns: string[];
32344
+ };
32345
+ product_structure_max_depth: {
32346
+ Args: never;
32347
+ Returns: number;
32348
+ };
32349
+ product_structure_path: {
32350
+ Args: {
32351
+ p_from: string;
32352
+ p_target: string;
32353
+ };
32354
+ Returns: string[];
32355
+ };
32356
+ product_type: {
32357
+ Args: {
32358
+ p_product_id: string;
32359
+ };
32360
+ Returns: string;
32361
+ };
31137
32362
  promote_floriday_customer: {
31138
32363
  Args: {
31139
32364
  _org_id: string;
@@ -31374,6 +32599,14 @@ export type Database = {
31374
32599
  };
31375
32600
  Returns: Json;
31376
32601
  };
32602
+ requeue_skipped_stock_rows: {
32603
+ Args: {
32604
+ p_connection_id: string;
32605
+ p_status: string;
32606
+ p_trade_item_id?: string;
32607
+ };
32608
+ Returns: number;
32609
+ };
31377
32610
  reset_cart_layer_positions: {
31378
32611
  Args: {
31379
32612
  p_cart_id: string;
@@ -31486,6 +32719,41 @@ export type Database = {
31486
32719
  Args: never;
31487
32720
  Returns: undefined;
31488
32721
  };
32722
+ save_belading: {
32723
+ Args: {
32724
+ p_expected_updated_at: string;
32725
+ p_packing_configuration_id: string;
32726
+ p_product_id: string;
32727
+ p_tenant_id: string;
32728
+ p_trade_item_floriday_id: string;
32729
+ p_values: Json;
32730
+ };
32731
+ Returns: Json;
32732
+ };
32733
+ save_product_group: {
32734
+ Args: {
32735
+ p_description: string;
32736
+ p_expected_updated_at: string;
32737
+ p_head_product_id: string;
32738
+ p_id: string;
32739
+ p_is_active: boolean;
32740
+ p_members: Json;
32741
+ p_name: string;
32742
+ };
32743
+ Returns: Json;
32744
+ };
32745
+ save_samenstelling: {
32746
+ Args: {
32747
+ p_components: Json;
32748
+ p_expected_updated_at: string;
32749
+ p_external: Json;
32750
+ p_packing_configuration_id: string;
32751
+ p_parent_id: string;
32752
+ p_parent_kind: string;
32753
+ p_tenant_id: string;
32754
+ };
32755
+ Returns: Json;
32756
+ };
31489
32757
  scan_cancel_kar: {
31490
32758
  Args: {
31491
32759
  p_kar_id: string;
@@ -31967,6 +33235,10 @@ export type Database = {
31967
33235
  Args: never;
31968
33236
  Returns: number;
31969
33237
  };
33238
+ server_now: {
33239
+ Args: never;
33240
+ Returns: string;
33241
+ };
31970
33242
  set_planning_status: {
31971
33243
  Args: {
31972
33244
  _id: string;
@@ -32203,6 +33475,28 @@ export type Database = {
32203
33475
  };
32204
33476
  Returns: Json;
32205
33477
  };
33478
+ twinfield_sync_apply: {
33479
+ Args: {
33480
+ _base: Json;
33481
+ _customer_id: string;
33482
+ _patch: Json;
33483
+ _uid: string;
33484
+ _version: number;
33485
+ };
33486
+ Returns: undefined;
33487
+ };
33488
+ twinfield_sync_insert: {
33489
+ Args: {
33490
+ _row: Json;
33491
+ };
33492
+ Returns: string;
33493
+ };
33494
+ twinfield_sync_mark_missing: {
33495
+ Args: {
33496
+ _ids: string[];
33497
+ };
33498
+ Returns: undefined;
33499
+ };
32206
33500
  twinfield_upsert_connection_by_account_key: {
32207
33501
  Args: {
32208
33502
  p_account_key: string;
@@ -32228,6 +33522,25 @@ export type Database = {
32228
33522
  };
32229
33523
  Returns: undefined;
32230
33524
  };
33525
+ uren_collega_agenda: {
33526
+ Args: {
33527
+ _monteur: string;
33528
+ _tot: string;
33529
+ _van: string;
33530
+ };
33531
+ Returns: {
33532
+ afwezig: string;
33533
+ datum: string;
33534
+ gepland: number;
33535
+ kort_vrij: Json;
33536
+ overuren: number;
33537
+ standby_avond: boolean;
33538
+ standby_ingepland: string;
33539
+ standby_weekend: boolean;
33540
+ werk_eind: string;
33541
+ werk_start: string;
33542
+ }[];
33543
+ };
32231
33544
  uren_dag_controle: {
32232
33545
  Args: {
32233
33546
  _datum: string;
@@ -32236,6 +33549,13 @@ export type Database = {
32236
33549
  };
32237
33550
  Returns: undefined;
32238
33551
  };
33552
+ uren_dag_controle_vrij: {
33553
+ Args: {
33554
+ _datum: string;
33555
+ _monteur: string;
33556
+ };
33557
+ Returns: undefined;
33558
+ };
32239
33559
  uren_dag_km_opslaan: {
32240
33560
  Args: {
32241
33561
  _datum: string;
@@ -32262,6 +33582,20 @@ export type Database = {
32262
33582
  Args: never;
32263
33583
  Returns: boolean;
32264
33584
  };
33585
+ uren_indirect_opslaan: {
33586
+ Args: {
33587
+ _datum: string;
33588
+ _minuten: number;
33589
+ _toelichting: string;
33590
+ };
33591
+ Returns: string;
33592
+ };
33593
+ uren_indirect_verwijderen: {
33594
+ Args: {
33595
+ _id: string;
33596
+ };
33597
+ Returns: undefined;
33598
+ };
32265
33599
  uren_is_beheerder: {
32266
33600
  Args: never;
32267
33601
  Returns: boolean;
@@ -32302,6 +33636,13 @@ export type Database = {
32302
33636
  roles: string[];
32303
33637
  }[];
32304
33638
  };
33639
+ uren_list_monteurs: {
33640
+ Args: never;
33641
+ Returns: {
33642
+ id: string;
33643
+ naam: string;
33644
+ }[];
33645
+ };
32305
33646
  uren_list_planner_contacten: {
32306
33647
  Args: never;
32307
33648
  Returns: {
@@ -32345,6 +33686,16 @@ export type Database = {
32345
33686
  Args: never;
32346
33687
  Returns: string;
32347
33688
  };
33689
+ uren_overuren_indienen: {
33690
+ Args: {
33691
+ _datum: string;
33692
+ _toelichting?: string;
33693
+ _uren_na: number;
33694
+ _uren_voor: number;
33695
+ _verwerking: string;
33696
+ };
33697
+ Returns: undefined;
33698
+ };
32348
33699
  uren_pagina_toegang_instellen: {
32349
33700
  Args: {
32350
33701
  _toegang: boolean;
@@ -32412,6 +33763,36 @@ export type Database = {
32412
33763
  };
32413
33764
  Returns: undefined;
32414
33765
  };
33766
+ uren_standby_opslaan: {
33767
+ Args: {
33768
+ _datums: string[];
33769
+ _soort: string;
33770
+ _tot: string;
33771
+ _van: string;
33772
+ };
33773
+ Returns: undefined;
33774
+ };
33775
+ uren_standby_overdragen: {
33776
+ Args: {
33777
+ _datum: string;
33778
+ _naar: string;
33779
+ };
33780
+ Returns: undefined;
33781
+ };
33782
+ uren_standby_ruil: {
33783
+ Args: {
33784
+ _aan: boolean;
33785
+ _datum: string;
33786
+ };
33787
+ Returns: undefined;
33788
+ };
33789
+ uren_standby_sync: {
33790
+ Args: {
33791
+ _tot: string;
33792
+ _van: string;
33793
+ };
33794
+ Returns: undefined;
33795
+ };
32415
33796
  uren_stop_time_log: {
32416
33797
  Args: {
32417
33798
  p_employee_id: string;
@@ -32603,6 +33984,25 @@ export type Database = {
32603
33984
  user_id: string;
32604
33985
  }[];
32605
33986
  };
33987
+ vakantie_tvt_overzicht: {
33988
+ Args: {
33989
+ _year?: number;
33990
+ };
33991
+ Returns: {
33992
+ earned_from_tvt_days: number;
33993
+ hours_to_next_tvt_day: number;
33994
+ tvt_hours: number;
33995
+ tvt_remainder_hours: number;
33996
+ user_id: string;
33997
+ }[];
33998
+ };
33999
+ vakantie_tvt_uren: {
34000
+ Args: {
34001
+ _user_id: string;
34002
+ _year: number;
34003
+ };
34004
+ Returns: number;
34005
+ };
32606
34006
  vervang_printer: {
32607
34007
  Args: {
32608
34008
  _nieuw: string;
@@ -32668,6 +34068,12 @@ export type Database = {
32668
34068
  };
32669
34069
  Returns: Json;
32670
34070
  };
34071
+ wo_is_planned_monteur: {
34072
+ Args: {
34073
+ _werkbon_id: string;
34074
+ };
34075
+ Returns: boolean;
34076
+ };
32671
34077
  wo_list_colleague_planning: {
32672
34078
  Args: {
32673
34079
  _from: string;
@@ -32695,6 +34101,12 @@ export type Database = {
32695
34101
  };
32696
34102
  Returns: Json;
32697
34103
  };
34104
+ wo_open_standby: {
34105
+ Args: {
34106
+ _standby_id: string;
34107
+ };
34108
+ Returns: string;
34109
+ };
32698
34110
  wo_process_offerte_request: {
32699
34111
  Args: {
32700
34112
  _queue_id: string;