@flowselections/floriday-afhandeling-module 1.0.39 → 1.0.41

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 (40) hide show
  1. package/dist-lib/components/afhandeling/ControleLijstPrint.js +54 -54
  2. package/dist-lib/components/afhandeling/ControlePage.d.ts.map +1 -1
  3. package/dist-lib/components/afhandeling/ControlePage.js +36 -2
  4. package/dist-lib/components/afhandeling/DagDetailDialog.d.ts.map +1 -1
  5. package/dist-lib/components/afhandeling/DagDetailDialog.js +3 -2
  6. package/dist-lib/components/afhandeling/WeekAgendaView.d.ts.map +1 -1
  7. package/dist-lib/components/afhandeling/WeekAgendaView.js +38 -45
  8. package/dist-lib/components/pickstation/PakbonTemplate.js +70 -70
  9. package/dist-lib/hooks/useCartIndex.d.ts +11 -0
  10. package/dist-lib/hooks/useCartIndex.d.ts.map +1 -0
  11. package/dist-lib/hooks/useCartIndex.js +56 -0
  12. package/dist-lib/hooks/useConsistencyCheck.d.ts +8 -0
  13. package/dist-lib/hooks/useConsistencyCheck.d.ts.map +1 -0
  14. package/dist-lib/hooks/useConsistencyCheck.js +22 -0
  15. package/dist-lib/hooks/useOrderPlanning.d.ts.map +1 -1
  16. package/dist-lib/hooks/useOrderPlanning.js +6 -2
  17. package/dist-lib/hooks/usePickAgenda.d.ts +32 -0
  18. package/dist-lib/hooks/usePickAgenda.d.ts.map +1 -0
  19. package/dist-lib/hooks/usePickAgenda.js +75 -0
  20. package/dist-lib/integrations/supabase/auth-middleware.d.ts +527 -1
  21. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  22. package/dist-lib/integrations/supabase/client.server.d.ts +527 -1
  23. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  24. package/dist-lib/integrations/supabase/moduleClient.d.ts +527 -1
  25. package/dist-lib/integrations/supabase/moduleClient.d.ts.map +1 -1
  26. package/dist-lib/integrations/supabase/types.d.ts +530 -1
  27. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  28. package/dist-lib/lib/afhandelingSettings.functions.d.ts +1056 -4
  29. package/dist-lib/lib/afhandelingSettings.functions.d.ts.map +1 -1
  30. package/dist-lib/lib/carrierSignupMail.server.js +26 -26
  31. package/dist-lib/lib/carriers.functions.d.ts +2635 -5
  32. package/dist-lib/lib/carriers.functions.d.ts.map +1 -1
  33. package/dist-lib/lib/cartAssignments.functions.d.ts +2635 -5
  34. package/dist-lib/lib/cartAssignments.functions.d.ts.map +1 -1
  35. package/dist-lib/lib/cartControl.functions.d.ts +5330 -81
  36. package/dist-lib/lib/cartControl.functions.d.ts.map +1 -1
  37. package/dist-lib/lib/cartControl.functions.js +92 -127
  38. package/dist-lib/lib/floriday.functions.d.ts +528 -2
  39. package/dist-lib/lib/floriday.functions.d.ts.map +1 -1
  40. package/package.json +1 -1
@@ -3,7 +3,7 @@ export type Json = string | number | boolean | null | {
3
3
  } | Json[];
4
4
  export type Database = {
5
5
  __InternalSupabase: {
6
- PostgrestVersion: "14.17";
6
+ PostgrestVersion: "14.5";
7
7
  };
8
8
  public: {
9
9
  Tables: {
@@ -10978,6 +10978,246 @@ export type Database = {
10978
10978
  };
10979
10979
  Relationships: [];
10980
10980
  };
10981
+ maps_addresses: {
10982
+ Row: {
10983
+ address_hash: string;
10984
+ created_at: string;
10985
+ error_reason: string | null;
10986
+ formatted_address: string | null;
10987
+ id: string;
10988
+ lat: number | null;
10989
+ lng: number | null;
10990
+ place_id: string | null;
10991
+ raw_address: string;
10992
+ resolved_at: string | null;
10993
+ status: string;
10994
+ updated_at: string;
10995
+ };
10996
+ Insert: {
10997
+ address_hash: string;
10998
+ created_at?: string;
10999
+ error_reason?: string | null;
11000
+ formatted_address?: string | null;
11001
+ id?: string;
11002
+ lat?: number | null;
11003
+ lng?: number | null;
11004
+ place_id?: string | null;
11005
+ raw_address: string;
11006
+ resolved_at?: string | null;
11007
+ status?: string;
11008
+ updated_at?: string;
11009
+ };
11010
+ Update: {
11011
+ address_hash?: string;
11012
+ created_at?: string;
11013
+ error_reason?: string | null;
11014
+ formatted_address?: string | null;
11015
+ id?: string;
11016
+ lat?: number | null;
11017
+ lng?: number | null;
11018
+ place_id?: string | null;
11019
+ raw_address?: string;
11020
+ resolved_at?: string | null;
11021
+ status?: string;
11022
+ updated_at?: string;
11023
+ };
11024
+ Relationships: [];
11025
+ };
11026
+ maps_job_lease: {
11027
+ Row: {
11028
+ job: string;
11029
+ locked_until: string;
11030
+ updated_at: string;
11031
+ };
11032
+ Insert: {
11033
+ job: string;
11034
+ locked_until?: string;
11035
+ updated_at?: string;
11036
+ };
11037
+ Update: {
11038
+ job?: string;
11039
+ locked_until?: string;
11040
+ updated_at?: string;
11041
+ };
11042
+ Relationships: [];
11043
+ };
11044
+ maps_request_queue: {
11045
+ Row: {
11046
+ attempts: number;
11047
+ created_at: string;
11048
+ destination_hash: string | null;
11049
+ id: string;
11050
+ kind: string;
11051
+ last_error: string | null;
11052
+ mode: string;
11053
+ origin_hash: string | null;
11054
+ processed_at: string | null;
11055
+ raw_destination: string | null;
11056
+ raw_origin: string | null;
11057
+ requested_by: string | null;
11058
+ status: string;
11059
+ updated_at: string;
11060
+ };
11061
+ Insert: {
11062
+ attempts?: number;
11063
+ created_at?: string;
11064
+ destination_hash?: string | null;
11065
+ id?: string;
11066
+ kind: string;
11067
+ last_error?: string | null;
11068
+ mode?: string;
11069
+ origin_hash?: string | null;
11070
+ processed_at?: string | null;
11071
+ raw_destination?: string | null;
11072
+ raw_origin?: string | null;
11073
+ requested_by?: string | null;
11074
+ status?: string;
11075
+ updated_at?: string;
11076
+ };
11077
+ Update: {
11078
+ attempts?: number;
11079
+ created_at?: string;
11080
+ destination_hash?: string | null;
11081
+ id?: string;
11082
+ kind?: string;
11083
+ last_error?: string | null;
11084
+ mode?: string;
11085
+ origin_hash?: string | null;
11086
+ processed_at?: string | null;
11087
+ raw_destination?: string | null;
11088
+ raw_origin?: string | null;
11089
+ requested_by?: string | null;
11090
+ status?: string;
11091
+ updated_at?: string;
11092
+ };
11093
+ Relationships: [];
11094
+ };
11095
+ maps_settings: {
11096
+ Row: {
11097
+ allow_estimate_fallback: boolean;
11098
+ cache_ttl_days: number;
11099
+ created_at: string;
11100
+ daily_call_limit: number;
11101
+ id: string;
11102
+ last_error: string | null;
11103
+ last_error_at: string | null;
11104
+ last_success_at: string | null;
11105
+ provider: string;
11106
+ updated_at: string;
11107
+ };
11108
+ Insert: {
11109
+ allow_estimate_fallback?: boolean;
11110
+ cache_ttl_days?: number;
11111
+ created_at?: string;
11112
+ daily_call_limit?: number;
11113
+ id?: string;
11114
+ last_error?: string | null;
11115
+ last_error_at?: string | null;
11116
+ last_success_at?: string | null;
11117
+ provider?: string;
11118
+ updated_at?: string;
11119
+ };
11120
+ Update: {
11121
+ allow_estimate_fallback?: boolean;
11122
+ cache_ttl_days?: number;
11123
+ created_at?: string;
11124
+ daily_call_limit?: number;
11125
+ id?: string;
11126
+ last_error?: string | null;
11127
+ last_error_at?: string | null;
11128
+ last_success_at?: string | null;
11129
+ provider?: string;
11130
+ updated_at?: string;
11131
+ };
11132
+ Relationships: [];
11133
+ };
11134
+ maps_travel_times: {
11135
+ Row: {
11136
+ created_at: string;
11137
+ destination_id: string;
11138
+ distance_m: number | null;
11139
+ duration_sec: number;
11140
+ expires_at: string;
11141
+ id: string;
11142
+ mode: string;
11143
+ origin_id: string;
11144
+ source: string;
11145
+ updated_at: string;
11146
+ };
11147
+ Insert: {
11148
+ created_at?: string;
11149
+ destination_id: string;
11150
+ distance_m?: number | null;
11151
+ duration_sec: number;
11152
+ expires_at?: string;
11153
+ id?: string;
11154
+ mode?: string;
11155
+ origin_id: string;
11156
+ source?: string;
11157
+ updated_at?: string;
11158
+ };
11159
+ Update: {
11160
+ created_at?: string;
11161
+ destination_id?: string;
11162
+ distance_m?: number | null;
11163
+ duration_sec?: number;
11164
+ expires_at?: string;
11165
+ id?: string;
11166
+ mode?: string;
11167
+ origin_id?: string;
11168
+ source?: string;
11169
+ updated_at?: string;
11170
+ };
11171
+ Relationships: [
11172
+ {
11173
+ foreignKeyName: "maps_travel_times_destination_id_fkey";
11174
+ columns: ["destination_id"];
11175
+ isOneToOne: false;
11176
+ referencedRelation: "maps_addresses";
11177
+ referencedColumns: ["id"];
11178
+ },
11179
+ {
11180
+ foreignKeyName: "maps_travel_times_origin_id_fkey";
11181
+ columns: ["origin_id"];
11182
+ isOneToOne: false;
11183
+ referencedRelation: "maps_addresses";
11184
+ referencedColumns: ["id"];
11185
+ }
11186
+ ];
11187
+ };
11188
+ maps_usage_log: {
11189
+ Row: {
11190
+ cache_hits: number;
11191
+ call_type: string;
11192
+ created_at: string;
11193
+ day: string;
11194
+ detail: string | null;
11195
+ elements: number;
11196
+ id: string;
11197
+ outcome: string;
11198
+ };
11199
+ Insert: {
11200
+ cache_hits?: number;
11201
+ call_type: string;
11202
+ created_at?: string;
11203
+ day?: string;
11204
+ detail?: string | null;
11205
+ elements?: number;
11206
+ id?: string;
11207
+ outcome?: string;
11208
+ };
11209
+ Update: {
11210
+ cache_hits?: number;
11211
+ call_type?: string;
11212
+ created_at?: string;
11213
+ day?: string;
11214
+ detail?: string | null;
11215
+ elements?: number;
11216
+ id?: string;
11217
+ outcome?: string;
11218
+ };
11219
+ Relationships: [];
11220
+ };
10981
11221
  material_usage: {
10982
11222
  Row: {
10983
11223
  created_at: string;
@@ -13716,6 +13956,39 @@ export type Database = {
13716
13956
  };
13717
13957
  Relationships: [];
13718
13958
  };
13959
+ print_dedupe_events: {
13960
+ Row: {
13961
+ bestaande_job_id: string | null;
13962
+ created_at: string;
13963
+ detail: string | null;
13964
+ documentnaam: string | null;
13965
+ documenttype: string | null;
13966
+ id: string;
13967
+ idempotentie_sleutel: string;
13968
+ reden: string;
13969
+ };
13970
+ Insert: {
13971
+ bestaande_job_id?: string | null;
13972
+ created_at?: string;
13973
+ detail?: string | null;
13974
+ documentnaam?: string | null;
13975
+ documenttype?: string | null;
13976
+ id?: string;
13977
+ idempotentie_sleutel: string;
13978
+ reden: string;
13979
+ };
13980
+ Update: {
13981
+ bestaande_job_id?: string | null;
13982
+ created_at?: string;
13983
+ detail?: string | null;
13984
+ documentnaam?: string | null;
13985
+ documenttype?: string | null;
13986
+ id?: string;
13987
+ idempotentie_sleutel?: string;
13988
+ reden?: string;
13989
+ };
13990
+ Relationships: [];
13991
+ };
13719
13992
  print_job_logs: {
13720
13993
  Row: {
13721
13994
  created_at: string;
@@ -13759,6 +14032,8 @@ export type Database = {
13759
14032
  foutmelding: string | null;
13760
14033
  gebruiker_id: string | null;
13761
14034
  gebruiker_naam: string;
14035
+ gebruikte_bron: string | null;
14036
+ gebruikte_layout_id: string | null;
13762
14037
  gestart_op: string | null;
13763
14038
  herkomst: string | null;
13764
14039
  id: string;
@@ -13766,6 +14041,9 @@ export type Database = {
13766
14041
  is_herprint: boolean;
13767
14042
  kopieen: number;
13768
14043
  layout_id: string | null;
14044
+ lokaal_opgeslagen_op: string | null;
14045
+ lokale_pdf_fout: string | null;
14046
+ lokale_pdf_status: string | null;
13769
14047
  opgepakt_op: string | null;
13770
14048
  paginas: number;
13771
14049
  payload: Json;
@@ -13774,6 +14052,7 @@ export type Database = {
13774
14052
  pogingen: number;
13775
14053
  printer_id: string | null;
13776
14054
  render_html: string | null;
14055
+ resultaat_pdf_base64: string | null;
13777
14056
  status: Database["public"]["Enums"]["print_job_status"];
13778
14057
  updated_at: string;
13779
14058
  volgende_poging: string | null;
@@ -13789,6 +14068,8 @@ export type Database = {
13789
14068
  foutmelding?: string | null;
13790
14069
  gebruiker_id?: string | null;
13791
14070
  gebruiker_naam?: string;
14071
+ gebruikte_bron?: string | null;
14072
+ gebruikte_layout_id?: string | null;
13792
14073
  gestart_op?: string | null;
13793
14074
  herkomst?: string | null;
13794
14075
  id?: string;
@@ -13796,6 +14077,9 @@ export type Database = {
13796
14077
  is_herprint?: boolean;
13797
14078
  kopieen?: number;
13798
14079
  layout_id?: string | null;
14080
+ lokaal_opgeslagen_op?: string | null;
14081
+ lokale_pdf_fout?: string | null;
14082
+ lokale_pdf_status?: string | null;
13799
14083
  opgepakt_op?: string | null;
13800
14084
  paginas?: number;
13801
14085
  payload?: Json;
@@ -13804,6 +14088,7 @@ export type Database = {
13804
14088
  pogingen?: number;
13805
14089
  printer_id?: string | null;
13806
14090
  render_html?: string | null;
14091
+ resultaat_pdf_base64?: string | null;
13807
14092
  status?: Database["public"]["Enums"]["print_job_status"];
13808
14093
  updated_at?: string;
13809
14094
  volgende_poging?: string | null;
@@ -13819,6 +14104,8 @@ export type Database = {
13819
14104
  foutmelding?: string | null;
13820
14105
  gebruiker_id?: string | null;
13821
14106
  gebruiker_naam?: string;
14107
+ gebruikte_bron?: string | null;
14108
+ gebruikte_layout_id?: string | null;
13822
14109
  gestart_op?: string | null;
13823
14110
  herkomst?: string | null;
13824
14111
  id?: string;
@@ -13826,6 +14113,9 @@ export type Database = {
13826
14113
  is_herprint?: boolean;
13827
14114
  kopieen?: number;
13828
14115
  layout_id?: string | null;
14116
+ lokaal_opgeslagen_op?: string | null;
14117
+ lokale_pdf_fout?: string | null;
14118
+ lokale_pdf_status?: string | null;
13829
14119
  opgepakt_op?: string | null;
13830
14120
  paginas?: number;
13831
14121
  payload?: Json;
@@ -13834,6 +14124,7 @@ export type Database = {
13834
14124
  pogingen?: number;
13835
14125
  printer_id?: string | null;
13836
14126
  render_html?: string | null;
14127
+ resultaat_pdf_base64?: string | null;
13837
14128
  status?: Database["public"]["Enums"]["print_job_status"];
13838
14129
  updated_at?: string;
13839
14130
  volgende_poging?: string | null;
@@ -13960,6 +14251,39 @@ export type Database = {
13960
14251
  };
13961
14252
  Relationships: [];
13962
14253
  };
14254
+ print_preview_events: {
14255
+ Row: {
14256
+ code: string | null;
14257
+ created_at: string;
14258
+ detail: Json;
14259
+ id: string;
14260
+ queue_item_id: string | null;
14261
+ reden: string | null;
14262
+ station_slug: string | null;
14263
+ uitkomst: string;
14264
+ };
14265
+ Insert: {
14266
+ code?: string | null;
14267
+ created_at?: string;
14268
+ detail?: Json;
14269
+ id?: string;
14270
+ queue_item_id?: string | null;
14271
+ reden?: string | null;
14272
+ station_slug?: string | null;
14273
+ uitkomst?: string;
14274
+ };
14275
+ Update: {
14276
+ code?: string | null;
14277
+ created_at?: string;
14278
+ detail?: Json;
14279
+ id?: string;
14280
+ queue_item_id?: string | null;
14281
+ reden?: string | null;
14282
+ station_slug?: string | null;
14283
+ uitkomst?: string;
14284
+ };
14285
+ Relationships: [];
14286
+ };
13963
14287
  print_queue_runners: {
13964
14288
  Row: {
13965
14289
  actief: boolean;
@@ -14195,6 +14519,7 @@ export type Database = {
14195
14519
  created_at: string;
14196
14520
  driver: string;
14197
14521
  extern_printer_id: string | null;
14522
+ formaten_bijgewerkt_op: string | null;
14198
14523
  id: string;
14199
14524
  ip_adres: string | null;
14200
14525
  laatst_gezien: string | null;
@@ -14202,8 +14527,11 @@ export type Database = {
14202
14527
  merk: string;
14203
14528
  naam: string;
14204
14529
  omschrijving: string;
14530
+ ondersteunde_formaten: Json | null;
14531
+ ondersteunde_laden: Json | null;
14205
14532
  online: boolean;
14206
14533
  papierformaat: string;
14534
+ pdf_map: string | null;
14207
14535
  poort: number | null;
14208
14536
  soort: Database["public"]["Enums"]["printer_kind"];
14209
14537
  systeemnaam: string;
@@ -14217,6 +14545,7 @@ export type Database = {
14217
14545
  created_at?: string;
14218
14546
  driver?: string;
14219
14547
  extern_printer_id?: string | null;
14548
+ formaten_bijgewerkt_op?: string | null;
14220
14549
  id?: string;
14221
14550
  ip_adres?: string | null;
14222
14551
  laatst_gezien?: string | null;
@@ -14224,8 +14553,11 @@ export type Database = {
14224
14553
  merk?: string;
14225
14554
  naam: string;
14226
14555
  omschrijving?: string;
14556
+ ondersteunde_formaten?: Json | null;
14557
+ ondersteunde_laden?: Json | null;
14227
14558
  online?: boolean;
14228
14559
  papierformaat?: string;
14560
+ pdf_map?: string | null;
14229
14561
  poort?: number | null;
14230
14562
  soort?: Database["public"]["Enums"]["printer_kind"];
14231
14563
  systeemnaam?: string;
@@ -14239,6 +14571,7 @@ export type Database = {
14239
14571
  created_at?: string;
14240
14572
  driver?: string;
14241
14573
  extern_printer_id?: string | null;
14574
+ formaten_bijgewerkt_op?: string | null;
14242
14575
  id?: string;
14243
14576
  ip_adres?: string | null;
14244
14577
  laatst_gezien?: string | null;
@@ -14246,8 +14579,11 @@ export type Database = {
14246
14579
  merk?: string;
14247
14580
  naam?: string;
14248
14581
  omschrijving?: string;
14582
+ ondersteunde_formaten?: Json | null;
14583
+ ondersteunde_laden?: Json | null;
14249
14584
  online?: boolean;
14250
14585
  papierformaat?: string;
14586
+ pdf_map?: string | null;
14251
14587
  poort?: number | null;
14252
14588
  soort?: Database["public"]["Enums"]["printer_kind"];
14253
14589
  systeemnaam?: string;
@@ -20656,6 +20992,8 @@ export type Database = {
20656
20992
  foutmelding: string | null;
20657
20993
  gebruiker_id: string | null;
20658
20994
  gebruiker_naam: string;
20995
+ gebruikte_bron: string | null;
20996
+ gebruikte_layout_id: string | null;
20659
20997
  gestart_op: string | null;
20660
20998
  herkomst: string | null;
20661
20999
  id: string;
@@ -20663,6 +21001,9 @@ export type Database = {
20663
21001
  is_herprint: boolean;
20664
21002
  kopieen: number;
20665
21003
  layout_id: string | null;
21004
+ lokaal_opgeslagen_op: string | null;
21005
+ lokale_pdf_fout: string | null;
21006
+ lokale_pdf_status: string | null;
20666
21007
  opgepakt_op: string | null;
20667
21008
  paginas: number;
20668
21009
  payload: Json;
@@ -20671,6 +21012,7 @@ export type Database = {
20671
21012
  pogingen: number;
20672
21013
  printer_id: string | null;
20673
21014
  render_html: string | null;
21015
+ resultaat_pdf_base64: string | null;
20674
21016
  status: Database["public"]["Enums"]["print_job_status"];
20675
21017
  updated_at: string;
20676
21018
  volgende_poging: string | null;
@@ -20762,6 +21104,53 @@ export type Database = {
20762
21104
  isSetofReturn: true;
20763
21105
  };
20764
21106
  };
21107
+ claim_pdf_print_jobs: {
21108
+ Args: {
21109
+ _max?: number;
21110
+ };
21111
+ Returns: {
21112
+ agent_id: string | null;
21113
+ bron_job_id: string | null;
21114
+ created_at: string;
21115
+ documentnaam: string;
21116
+ documenttype: Database["public"]["Enums"]["doc_layout_type"];
21117
+ extern_job_id: string | null;
21118
+ foutmelding: string | null;
21119
+ gebruiker_id: string | null;
21120
+ gebruiker_naam: string;
21121
+ gebruikte_bron: string | null;
21122
+ gebruikte_layout_id: string | null;
21123
+ gestart_op: string | null;
21124
+ herkomst: string | null;
21125
+ id: string;
21126
+ idempotentie_sleutel: string | null;
21127
+ is_herprint: boolean;
21128
+ kopieen: number;
21129
+ layout_id: string | null;
21130
+ lokaal_opgeslagen_op: string | null;
21131
+ lokale_pdf_fout: string | null;
21132
+ lokale_pdf_status: string | null;
21133
+ opgepakt_op: string | null;
21134
+ paginas: number;
21135
+ payload: Json;
21136
+ pdf_base64: string | null;
21137
+ pdf_url: string | null;
21138
+ pogingen: number;
21139
+ printer_id: string | null;
21140
+ render_html: string | null;
21141
+ resultaat_pdf_base64: string | null;
21142
+ status: Database["public"]["Enums"]["print_job_status"];
21143
+ updated_at: string;
21144
+ volgende_poging: string | null;
21145
+ voltooid_op: string | null;
21146
+ }[];
21147
+ SetofOptions: {
21148
+ from: "*";
21149
+ to: "print_jobs";
21150
+ isOneToOne: false;
21151
+ isSetofReturn: true;
21152
+ };
21153
+ };
20765
21154
  claim_print_jobs: {
20766
21155
  Args: {
20767
21156
  _agent_id: string;
@@ -20777,6 +21166,8 @@ export type Database = {
20777
21166
  foutmelding: string | null;
20778
21167
  gebruiker_id: string | null;
20779
21168
  gebruiker_naam: string;
21169
+ gebruikte_bron: string | null;
21170
+ gebruikte_layout_id: string | null;
20780
21171
  gestart_op: string | null;
20781
21172
  herkomst: string | null;
20782
21173
  id: string;
@@ -20784,6 +21175,9 @@ export type Database = {
20784
21175
  is_herprint: boolean;
20785
21176
  kopieen: number;
20786
21177
  layout_id: string | null;
21178
+ lokaal_opgeslagen_op: string | null;
21179
+ lokale_pdf_fout: string | null;
21180
+ lokale_pdf_status: string | null;
20787
21181
  opgepakt_op: string | null;
20788
21182
  paginas: number;
20789
21183
  payload: Json;
@@ -20792,6 +21186,7 @@ export type Database = {
20792
21186
  pogingen: number;
20793
21187
  printer_id: string | null;
20794
21188
  render_html: string | null;
21189
+ resultaat_pdf_base64: string | null;
20795
21190
  status: Database["public"]["Enums"]["print_job_status"];
20796
21191
  updated_at: string;
20797
21192
  volgende_poging: string | null;
@@ -20932,6 +21327,8 @@ export type Database = {
20932
21327
  order_id: string;
20933
21328
  order_source: string;
20934
21329
  pick_date: string;
21330
+ printed_at: string;
21331
+ printed_today: boolean;
20935
21332
  status: string;
20936
21333
  }[];
20937
21334
  };
@@ -21640,6 +22037,10 @@ export type Database = {
21640
22037
  };
21641
22038
  Returns: number;
21642
22039
  };
22040
+ logistics_cancel_orphan_tasks: {
22041
+ Args: never;
22042
+ Returns: number;
22043
+ };
21643
22044
  logistics_capacity_day_check: {
21644
22045
  Args: {
21645
22046
  p_from?: string;
@@ -21660,6 +22061,25 @@ export type Database = {
21660
22061
  };
21661
22062
  Returns: number;
21662
22063
  };
22064
+ logistics_cart_index: {
22065
+ Args: {
22066
+ p_from?: string;
22067
+ p_to?: string;
22068
+ };
22069
+ Returns: {
22070
+ cart_id: string;
22071
+ cart_index: number;
22072
+ cart_label: string;
22073
+ is_shared: boolean;
22074
+ order_number: string;
22075
+ order_source: string;
22076
+ order_uuid: string;
22077
+ pick_date: string;
22078
+ printed_at: string;
22079
+ shifted: boolean;
22080
+ task_status: string;
22081
+ }[];
22082
+ };
21663
22083
  logistics_check_order_allowed: {
21664
22084
  Args: {
21665
22085
  p_lines: Json;
@@ -21808,6 +22228,17 @@ export type Database = {
21808
22228
  isSetofReturn: false;
21809
22229
  };
21810
22230
  };
22231
+ logistics_consistency_check: {
22232
+ Args: never;
22233
+ Returns: {
22234
+ agenda_carts: number;
22235
+ control_carts: number;
22236
+ ok: boolean;
22237
+ orphan_tasks: number;
22238
+ pick_date: string;
22239
+ raw_carts: number;
22240
+ }[];
22241
+ };
21811
22242
  logistics_delay_customer_email: {
21812
22243
  Args: {
21813
22244
  p_customer: string;
@@ -21833,6 +22264,12 @@ export type Database = {
21833
22264
  };
21834
22265
  Returns: string;
21835
22266
  };
22267
+ logistics_document_type_map: {
22268
+ Args: {
22269
+ _document_code: string;
22270
+ };
22271
+ Returns: Database["public"]["Enums"]["doc_layout_type"][];
22272
+ };
21836
22273
  logistics_emit_event: {
21837
22274
  Args: {
21838
22275
  p_event_type: string;
@@ -21995,6 +22432,25 @@ export type Database = {
21995
22432
  };
21996
22433
  Returns: number;
21997
22434
  };
22435
+ logistics_order_overview: {
22436
+ Args: {
22437
+ p_from?: string;
22438
+ p_to?: string;
22439
+ };
22440
+ Returns: {
22441
+ cart_count: number;
22442
+ customer_name: string;
22443
+ delivery_date: string;
22444
+ order_number: string;
22445
+ order_source: string;
22446
+ order_uuid: string;
22447
+ pick_date: string;
22448
+ plant_count: number;
22449
+ printed_at: string;
22450
+ shifted: boolean;
22451
+ status: string;
22452
+ }[];
22453
+ };
21998
22454
  logistics_order_pick_day: {
21999
22455
  Args: {
22000
22456
  p_order_ref: string;
@@ -22007,6 +22463,22 @@ export type Database = {
22007
22463
  };
22008
22464
  Returns: string;
22009
22465
  };
22466
+ logistics_pick_agenda: {
22467
+ Args: {
22468
+ p_from?: string;
22469
+ p_to?: string;
22470
+ };
22471
+ Returns: {
22472
+ cart_count: number;
22473
+ in_preparation: number;
22474
+ order_count: number;
22475
+ orders: Json;
22476
+ pick_date: string;
22477
+ plant_count: number;
22478
+ ready: number;
22479
+ shifted_count: number;
22480
+ }[];
22481
+ };
22010
22482
  logistics_pick_email_purpose: {
22011
22483
  Args: never;
22012
22484
  Returns: string;
@@ -22166,6 +22638,15 @@ export type Database = {
22166
22638
  };
22167
22639
  Returns: Json;
22168
22640
  };
22641
+ logistics_resolve_pick_document: {
22642
+ Args: {
22643
+ _is_herprint: boolean;
22644
+ _queue_item_id: string;
22645
+ _session_id: string;
22646
+ _voorbeeld: boolean;
22647
+ };
22648
+ Returns: Json;
22649
+ };
22169
22650
  logistics_resolve_settings: {
22170
22651
  Args: {
22171
22652
  p_config_id: string;
@@ -22606,6 +23087,7 @@ export type Database = {
22606
23087
  };
22607
23088
  pick_enqueue_print_job: {
22608
23089
  Args: {
23090
+ _is_herprint?: boolean;
22609
23091
  _printer_id?: string;
22610
23092
  _queue_item_id: string;
22611
23093
  _session_id?: string;
@@ -22619,6 +23101,13 @@ export type Database = {
22619
23101
  };
22620
23102
  Returns: Json;
22621
23103
  };
23104
+ pick_preview_job: {
23105
+ Args: {
23106
+ _queue_item_id: string;
23107
+ _station_slug: string;
23108
+ };
23109
+ Returns: Json;
23110
+ };
22622
23111
  pick_print_job_status: {
22623
23112
  Args: {
22624
23113
  _job_id: string;
@@ -22633,6 +23122,10 @@ export type Database = {
22633
23122
  omschrijving: string;
22634
23123
  }[];
22635
23124
  };
23125
+ pick_reference_data_status: {
23126
+ Args: never;
23127
+ Returns: Json;
23128
+ };
22636
23129
  pick_release_expired_locks: {
22637
23130
  Args: never;
22638
23131
  Returns: number;
@@ -22697,6 +23190,10 @@ export type Database = {
22697
23190
  isSetofReturn: false;
22698
23191
  };
22699
23192
  };
23193
+ pick_seed_reference_data: {
23194
+ Args: never;
23195
+ Returns: Json;
23196
+ };
22700
23197
  pick_set_station_print_plek: {
22701
23198
  Args: {
22702
23199
  _print_plek_id: string;
@@ -22788,6 +23285,24 @@ export type Database = {
22788
23285
  };
22789
23286
  Returns: undefined;
22790
23287
  };
23288
+ print_preview_toestaan: {
23289
+ Args: {
23290
+ _max?: number;
23291
+ _queue_item_id: string;
23292
+ _station_slug: string;
23293
+ _venster_sec?: number;
23294
+ };
23295
+ Returns: Json;
23296
+ };
23297
+ print_preview_weiger: {
23298
+ Args: {
23299
+ _code: string;
23300
+ _queue_item_id: string;
23301
+ _reden: string;
23302
+ _station_slug: string;
23303
+ };
23304
+ Returns: undefined;
23305
+ };
22791
23306
  process_logistics_event: {
22792
23307
  Args: {
22793
23308
  p_event_id: string;
@@ -22905,6 +23420,14 @@ export type Database = {
22905
23420
  };
22906
23421
  Returns: undefined;
22907
23422
  };
23423
+ replace_order_carts: {
23424
+ Args: {
23425
+ p_buffer_id: string;
23426
+ p_carts: Json;
23427
+ p_order_id: string;
23428
+ };
23429
+ Returns: Json;
23430
+ };
22908
23431
  reset_floriday_sync_cursor: {
22909
23432
  Args: {
22910
23433
  p_connection_id: string;
@@ -22934,6 +23457,12 @@ export type Database = {
22934
23457
  };
22935
23458
  Returns: string;
22936
23459
  };
23460
+ resolve_print_job_printer_id: {
23461
+ Args: {
23462
+ _job: Database["public"]["Tables"]["print_jobs"]["Row"];
23463
+ };
23464
+ Returns: string;
23465
+ };
22937
23466
  resolve_product_id_for_item: {
22938
23467
  Args: {
22939
23468
  p_product_name: string;