@flowselections/logistiek-engine 1.0.106 → 1.0.107

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 (69) hide show
  1. package/dist-lib/components/FlowOrders.js +1 -1
  2. package/dist-lib/components/MinuutrondeCard.d.ts +2 -0
  3. package/dist-lib/components/MinuutrondeCard.d.ts.map +1 -0
  4. package/dist-lib/components/MinuutrondeCard.js +32 -0
  5. package/dist-lib/components/MisluktVerzendbrievenCard.js +1 -1
  6. package/dist-lib/components/RegiePage.d.ts.map +1 -1
  7. package/dist-lib/components/RegiePage.js +2 -1
  8. package/dist-lib/components/rule-engine/FloridayConnectionBanner.d.ts +2 -0
  9. package/dist-lib/components/rule-engine/FloridayConnectionBanner.d.ts.map +1 -0
  10. package/dist-lib/components/rule-engine/FloridayConnectionBanner.js +41 -0
  11. package/dist-lib/hooks/useAfrondWachtrij.js +1 -1
  12. package/dist-lib/hooks/useBeladingsafwijkingen.js +1 -1
  13. package/dist-lib/hooks/useGeblokkeerdeOrders.js +1 -1
  14. package/dist-lib/hooks/useLogisticsTrace.js +1 -1
  15. package/dist-lib/hooks/useMinuutronde.d.ts +24 -0
  16. package/dist-lib/hooks/useMinuutronde.d.ts.map +1 -0
  17. package/dist-lib/hooks/useMinuutronde.js +37 -0
  18. package/dist-lib/hooks/useOrderTrace.js +1 -1
  19. package/dist-lib/hooks/useOrderVersies.js +1 -1
  20. package/dist-lib/hooks/usePlanWachtrij.js +1 -1
  21. package/dist-lib/hooks/useRecalcJob.js +1 -1
  22. package/dist-lib/hooks/useTaakGezondheid.js +1 -1
  23. package/dist-lib/hooks/useWerktijden.js +1 -1
  24. package/dist-lib/hooks/useWerkwijzeStatus.js +1 -1
  25. package/dist-lib/index.d.ts +1 -0
  26. package/dist-lib/index.d.ts.map +1 -1
  27. package/dist-lib/index.js +1 -0
  28. package/dist-lib/integrations/supabase/auth-middleware.d.ts +4 -31943
  29. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  30. package/dist-lib/integrations/supabase/auth-middleware.js +1 -1
  31. package/dist-lib/integrations/supabase/client.d.ts +20293 -0
  32. package/dist-lib/integrations/supabase/client.d.ts.map +1 -0
  33. package/dist-lib/integrations/supabase/client.js +13 -0
  34. package/dist-lib/integrations/supabase/client.server.d.ts +199 -3
  35. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  36. package/dist-lib/integrations/supabase/client.server.js +1 -1
  37. package/dist-lib/integrations/supabase/moduleClient.d.ts +199 -3
  38. package/dist-lib/integrations/supabase/moduleClient.d.ts.map +1 -1
  39. package/dist-lib/integrations/supabase/types.d.ts +199 -3
  40. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  41. package/dist-lib/lib/attachAuthToken.js +1 -1
  42. package/dist-lib/lib/cartCoverage.functions.d.ts +1 -31943
  43. package/dist-lib/lib/cartCoverage.functions.d.ts.map +1 -1
  44. package/dist-lib/lib/cartCoverage.functions.js +3 -3
  45. package/dist-lib/lib/floridayDocuments.functions.d.ts +3 -95829
  46. package/dist-lib/lib/floridayDocuments.functions.d.ts.map +1 -1
  47. package/dist-lib/lib/floridayDocuments.functions.js +5 -5
  48. package/dist-lib/lib/floridayPush.functions.d.ts +1 -31943
  49. package/dist-lib/lib/floridayPush.functions.d.ts.map +1 -1
  50. package/dist-lib/lib/floridayPush.functions.js +3 -3
  51. package/dist-lib/lib/handlers/logistics-tick.server.d.ts +11 -1
  52. package/dist-lib/lib/handlers/logistics-tick.server.d.ts.map +1 -1
  53. package/dist-lib/lib/handlers/logistics-tick.server.js +11 -4
  54. package/dist-lib/lib/handlers/logistics-tick.test.js +7 -0
  55. package/dist-lib/lib/loadCarrierPlanning.functions.d.ts +5 -159715
  56. package/dist-lib/lib/loadCarrierPlanning.functions.d.ts.map +1 -1
  57. package/dist-lib/lib/loadCarrierPlanning.functions.js +7 -7
  58. package/dist-lib/lib/logisticsRecalcJob.functions.d.ts +2 -63886
  59. package/dist-lib/lib/logisticsRecalcJob.functions.d.ts.map +1 -1
  60. package/dist-lib/lib/logisticsRecalcJob.functions.js +4 -4
  61. package/dist-lib/lib/logisticsRecalculate.functions.d.ts +1 -31943
  62. package/dist-lib/lib/logisticsRecalculate.functions.d.ts.map +1 -1
  63. package/dist-lib/lib/logisticsRecalculate.functions.js +2 -2
  64. package/dist-lib/lib/moduleVersion.d.ts +1 -1
  65. package/dist-lib/lib/moduleVersion.js +1 -1
  66. package/dist-lib/lib/plannerDiff.functions.d.ts +1 -31943
  67. package/dist-lib/lib/plannerDiff.functions.d.ts.map +1 -1
  68. package/dist-lib/lib/plannerDiff.functions.js +3 -3
  69. package/package.json +159 -159
@@ -20,7 +20,7 @@ function createSupabaseAdminClient() {
20
20
  let _supabaseAdmin;
21
21
  // Server-side Supabase client with service role - bypasses RLS
22
22
  // SECURITY: Only use this for trusted server-side operations, never expose to client code
23
- // Import like: import { supabaseAdmin } from "./client.server.js";
23
+ // Import like: import { supabaseAdmin } from "../../integrations/supabase/client.server";
24
24
  export const supabaseAdmin = new Proxy({}, {
25
25
  get(_, prop, receiver) {
26
26
  if (!_supabaseAdmin)
@@ -6699,8 +6699,13 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
6699
6699
  fetched_at: string;
6700
6700
  gln_code: string | null;
6701
6701
  is_deleted: boolean;
6702
+ mailing_address: import("./types").Json | null;
6702
6703
  name: string | null;
6703
6704
  organization_id: string;
6705
+ payment_providers: import("./types").Json | null;
6706
+ physical_address: import("./types").Json | null;
6707
+ rfh_company_account_id: string | null;
6708
+ rfh_relation_id: string | null;
6704
6709
  sequence_number: number | null;
6705
6710
  };
6706
6711
  Insert: {
@@ -6709,8 +6714,13 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
6709
6714
  fetched_at?: string;
6710
6715
  gln_code?: string | null;
6711
6716
  is_deleted?: boolean;
6717
+ mailing_address?: import("./types").Json | null;
6712
6718
  name?: string | null;
6713
6719
  organization_id: string;
6720
+ payment_providers?: import("./types").Json | null;
6721
+ physical_address?: import("./types").Json | null;
6722
+ rfh_company_account_id?: string | null;
6723
+ rfh_relation_id?: string | null;
6714
6724
  sequence_number?: number | null;
6715
6725
  };
6716
6726
  Update: {
@@ -6719,8 +6729,13 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
6719
6729
  fetched_at?: string;
6720
6730
  gln_code?: string | null;
6721
6731
  is_deleted?: boolean;
6732
+ mailing_address?: import("./types").Json | null;
6722
6733
  name?: string | null;
6723
6734
  organization_id?: string;
6735
+ payment_providers?: import("./types").Json | null;
6736
+ physical_address?: import("./types").Json | null;
6737
+ rfh_company_account_id?: string | null;
6738
+ rfh_relation_id?: string | null;
6724
6739
  sequence_number?: number | null;
6725
6740
  };
6726
6741
  Relationships: [{
@@ -7820,6 +7835,7 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
7820
7835
  floriday_trade_settings_customers_cache: {
7821
7836
  Row: {
7822
7837
  connection_id: string;
7838
+ customer_organization_id: string | null;
7823
7839
  data: import("./types").Json;
7824
7840
  fetched_at: string;
7825
7841
  floriday_id: string;
@@ -7830,6 +7846,7 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
7830
7846
  };
7831
7847
  Insert: {
7832
7848
  connection_id: string;
7849
+ customer_organization_id?: string | null;
7833
7850
  data: import("./types").Json;
7834
7851
  fetched_at?: string;
7835
7852
  floriday_id: string;
@@ -7840,6 +7857,7 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
7840
7857
  };
7841
7858
  Update: {
7842
7859
  connection_id?: string;
7860
+ customer_organization_id?: string | null;
7843
7861
  data?: import("./types").Json;
7844
7862
  fetched_at?: string;
7845
7863
  floriday_id?: string;
@@ -12599,6 +12617,48 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
12599
12617
  referencedColumns: ["id"];
12600
12618
  }];
12601
12619
  };
12620
+ logistics_tick_calls: {
12621
+ Row: {
12622
+ called_at: string;
12623
+ engine_ok: boolean | null;
12624
+ error: string | null;
12625
+ id: number;
12626
+ module_project: boolean | null;
12627
+ module_version: string | null;
12628
+ request_id: number | null;
12629
+ resolved_at: string | null;
12630
+ skipped_reason: string | null;
12631
+ status_code: number | null;
12632
+ target_host: string | null;
12633
+ };
12634
+ Insert: {
12635
+ called_at?: string;
12636
+ engine_ok?: boolean | null;
12637
+ error?: string | null;
12638
+ id?: never;
12639
+ module_project?: boolean | null;
12640
+ module_version?: string | null;
12641
+ request_id?: number | null;
12642
+ resolved_at?: string | null;
12643
+ skipped_reason?: string | null;
12644
+ status_code?: number | null;
12645
+ target_host?: string | null;
12646
+ };
12647
+ Update: {
12648
+ called_at?: string;
12649
+ engine_ok?: boolean | null;
12650
+ error?: string | null;
12651
+ id?: never;
12652
+ module_project?: boolean | null;
12653
+ module_version?: string | null;
12654
+ request_id?: number | null;
12655
+ resolved_at?: string | null;
12656
+ skipped_reason?: string | null;
12657
+ status_code?: number | null;
12658
+ target_host?: string | null;
12659
+ };
12660
+ Relationships: [];
12661
+ };
12602
12662
  logistics_tick_heartbeat: {
12603
12663
  Row: {
12604
12664
  id: boolean;
@@ -13758,6 +13818,7 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
13758
13818
  Row: {
13759
13819
  color: string | null;
13760
13820
  created_at: string;
13821
+ functie: string | null;
13761
13822
  hours_fri: number | null;
13762
13823
  hours_mon: number | null;
13763
13824
  hours_thu: number | null;
@@ -13774,6 +13835,7 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
13774
13835
  Insert: {
13775
13836
  color?: string | null;
13776
13837
  created_at?: string;
13838
+ functie?: string | null;
13777
13839
  hours_fri?: number | null;
13778
13840
  hours_mon?: number | null;
13779
13841
  hours_thu?: number | null;
@@ -13790,6 +13852,7 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
13790
13852
  Update: {
13791
13853
  color?: string | null;
13792
13854
  created_at?: string;
13855
+ functie?: string | null;
13793
13856
  hours_fri?: number | null;
13794
13857
  hours_mon?: number | null;
13795
13858
  hours_thu?: number | null;
@@ -20641,6 +20704,9 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
20641
20704
  };
20642
20705
  time_logs: {
20643
20706
  Row: {
20707
+ aangepast_door_monteur: boolean;
20708
+ aangepast_op: string | null;
20709
+ aanpassing_reden: string | null;
20644
20710
  auto_stop_reason: string | null;
20645
20711
  auto_stopped: boolean;
20646
20712
  created_at: string;
@@ -20675,6 +20741,9 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
20675
20741
  work_order_id: string | null;
20676
20742
  };
20677
20743
  Insert: {
20744
+ aangepast_door_monteur?: boolean;
20745
+ aangepast_op?: string | null;
20746
+ aanpassing_reden?: string | null;
20678
20747
  auto_stop_reason?: string | null;
20679
20748
  auto_stopped?: boolean;
20680
20749
  created_at?: string;
@@ -20709,6 +20778,9 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
20709
20778
  work_order_id?: string | null;
20710
20779
  };
20711
20780
  Update: {
20781
+ aangepast_door_monteur?: boolean;
20782
+ aangepast_op?: string | null;
20783
+ aanpassing_reden?: string | null;
20712
20784
  auto_stop_reason?: string | null;
20713
20785
  auto_stopped?: boolean;
20714
20786
  created_at?: string;
@@ -22227,50 +22299,77 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
22227
22299
  Row: {
22228
22300
  beoordeeld_door: string | null;
22229
22301
  beoordeeld_op: string | null;
22302
+ blokken: import("./types").Json;
22303
+ cancellation_requested_at: string | null;
22304
+ cancellation_status: string | null;
22230
22305
  created_at: string;
22231
22306
  datum: string;
22232
22307
  eind_tijd: string | null;
22233
22308
  id: string;
22234
22309
  ingediend_at: string;
22235
22310
  monteur_id: string;
22311
+ ov178_uren: number;
22312
+ ov189_uren: number;
22236
22313
  overuren: number;
22237
22314
  reden_afkeur: string | null;
22238
22315
  start_tijd: string | null;
22239
22316
  status: string;
22240
- toelichting: string;
22317
+ toelichting: string | null;
22318
+ tvt_uren: number;
22241
22319
  updated_at: string;
22320
+ uren_na: number;
22321
+ uren_voor: number;
22322
+ verwerking: string;
22242
22323
  };
22243
22324
  Insert: {
22244
22325
  beoordeeld_door?: string | null;
22245
22326
  beoordeeld_op?: string | null;
22327
+ blokken?: import("./types").Json;
22328
+ cancellation_requested_at?: string | null;
22329
+ cancellation_status?: string | null;
22246
22330
  created_at?: string;
22247
22331
  datum: string;
22248
22332
  eind_tijd?: string | null;
22249
22333
  id?: string;
22250
22334
  ingediend_at?: string;
22251
22335
  monteur_id: string;
22336
+ ov178_uren?: number;
22337
+ ov189_uren?: number;
22252
22338
  overuren: number;
22253
22339
  reden_afkeur?: string | null;
22254
22340
  start_tijd?: string | null;
22255
22341
  status?: string;
22256
- toelichting: string;
22342
+ toelichting?: string | null;
22343
+ tvt_uren?: number;
22257
22344
  updated_at?: string;
22345
+ uren_na?: number;
22346
+ uren_voor?: number;
22347
+ verwerking?: string;
22258
22348
  };
22259
22349
  Update: {
22260
22350
  beoordeeld_door?: string | null;
22261
22351
  beoordeeld_op?: string | null;
22352
+ blokken?: import("./types").Json;
22353
+ cancellation_requested_at?: string | null;
22354
+ cancellation_status?: string | null;
22262
22355
  created_at?: string;
22263
22356
  datum?: string;
22264
22357
  eind_tijd?: string | null;
22265
22358
  id?: string;
22266
22359
  ingediend_at?: string;
22267
22360
  monteur_id?: string;
22361
+ ov178_uren?: number;
22362
+ ov189_uren?: number;
22268
22363
  overuren?: number;
22269
22364
  reden_afkeur?: string | null;
22270
22365
  start_tijd?: string | null;
22271
22366
  status?: string;
22272
- toelichting?: string;
22367
+ toelichting?: string | null;
22368
+ tvt_uren?: number;
22273
22369
  updated_at?: string;
22370
+ uren_na?: number;
22371
+ uren_voor?: number;
22372
+ verwerking?: string;
22274
22373
  };
22275
22374
  Relationships: [];
22276
22375
  };
@@ -26737,6 +26836,12 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
26737
26836
  Args: never;
26738
26837
  Returns: boolean;
26739
26838
  };
26839
+ import_floriday_delivery_locations: {
26840
+ Args: {
26841
+ _org_id: string;
26842
+ };
26843
+ Returns: number;
26844
+ };
26740
26845
  inkoop_apply_price_list: {
26741
26846
  Args: {
26742
26847
  _price_list_id: string;
@@ -29081,6 +29186,14 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
29081
29186
  Args: never;
29082
29187
  Returns: import("./types").Json;
29083
29188
  };
29189
+ logistics_tick_calls_resolve: {
29190
+ Args: never;
29191
+ Returns: number;
29192
+ };
29193
+ logistics_tick_health: {
29194
+ Args: never;
29195
+ Returns: import("./types").Json;
29196
+ };
29084
29197
  logistics_tick_ping: {
29085
29198
  Args: never;
29086
29199
  Returns: string;
@@ -30374,6 +30487,16 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
30374
30487
  };
30375
30488
  Returns: import("./types").Json;
30376
30489
  };
30490
+ promote_floriday_customer: {
30491
+ Args: {
30492
+ _org_id: string;
30493
+ };
30494
+ Returns: string;
30495
+ };
30496
+ promote_floriday_order_customers: {
30497
+ Args: never;
30498
+ Returns: number;
30499
+ };
30377
30500
  promote_trade_item_key: {
30378
30501
  Args: {
30379
30502
  p_new: string;
@@ -30553,6 +30676,10 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
30553
30676
  };
30554
30677
  Returns: number;
30555
30678
  };
30679
+ refresh_floriday_delivery_locations: {
30680
+ Args: never;
30681
+ Returns: number;
30682
+ };
30556
30683
  release_debtor_lock: {
30557
30684
  Args: {
30558
30685
  _group_key: string;
@@ -31256,6 +31383,9 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
31256
31383
  p_log_id: string;
31257
31384
  };
31258
31385
  Returns: {
31386
+ aangepast_door_monteur: boolean;
31387
+ aangepast_op: string | null;
31388
+ aanpassing_reden: string | null;
31259
31389
  auto_stop_reason: string | null;
31260
31390
  auto_stopped: boolean;
31261
31391
  created_at: string;
@@ -31451,6 +31581,36 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
31451
31581
  };
31452
31582
  Returns: undefined;
31453
31583
  };
31584
+ uren_dag_controle: {
31585
+ Args: {
31586
+ _datum: string;
31587
+ _monteur: string;
31588
+ _toekomst_toegestaan: boolean;
31589
+ };
31590
+ Returns: undefined;
31591
+ };
31592
+ uren_dag_controle_vrij: {
31593
+ Args: {
31594
+ _datum: string;
31595
+ _monteur: string;
31596
+ };
31597
+ Returns: undefined;
31598
+ };
31599
+ uren_dag_km_opslaan: {
31600
+ Args: {
31601
+ _datum: string;
31602
+ _km: number;
31603
+ };
31604
+ Returns: undefined;
31605
+ };
31606
+ uren_dag_registraties_aanpassen: {
31607
+ Args: {
31608
+ _datum: string;
31609
+ _reden: string;
31610
+ _regels: import("./types").Json;
31611
+ };
31612
+ Returns: number;
31613
+ };
31454
31614
  uren_employee_day_hours: {
31455
31615
  Args: {
31456
31616
  _day: string;
@@ -31545,6 +31705,16 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
31545
31705
  Args: never;
31546
31706
  Returns: string;
31547
31707
  };
31708
+ uren_overuren_indienen: {
31709
+ Args: {
31710
+ _datum: string;
31711
+ _toelichting?: string;
31712
+ _uren_na: number;
31713
+ _uren_voor: number;
31714
+ _verwerking: string;
31715
+ };
31716
+ Returns: undefined;
31717
+ };
31548
31718
  uren_pagina_toegang_instellen: {
31549
31719
  Args: {
31550
31720
  _toegang: boolean;
@@ -31645,6 +31815,13 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
31645
31815
  };
31646
31816
  Returns: string;
31647
31817
  };
31818
+ uren_vakantiedag_verwijderen: {
31819
+ Args: {
31820
+ _datum: string;
31821
+ _leave_id: string;
31822
+ };
31823
+ Returns: undefined;
31824
+ };
31648
31825
  uren_vakantiedag_wijzigen: {
31649
31826
  Args: {
31650
31827
  _date: string;
@@ -31796,6 +31973,25 @@ export declare const supabase: SupabaseClient<Database, "public", "public", {
31796
31973
  user_id: string;
31797
31974
  }[];
31798
31975
  };
31976
+ vakantie_tvt_overzicht: {
31977
+ Args: {
31978
+ _year?: number;
31979
+ };
31980
+ Returns: {
31981
+ earned_from_tvt_days: number;
31982
+ hours_to_next_tvt_day: number;
31983
+ tvt_hours: number;
31984
+ tvt_remainder_hours: number;
31985
+ user_id: string;
31986
+ }[];
31987
+ };
31988
+ vakantie_tvt_uren: {
31989
+ Args: {
31990
+ _user_id: string;
31991
+ _year: number;
31992
+ };
31993
+ Returns: number;
31994
+ };
31799
31995
  vervang_printer: {
31800
31996
  Args: {
31801
31997
  _nieuw: string;