@flowselections/logistiek-engine 1.0.23 → 1.0.25

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 (35) hide show
  1. package/dist-lib/components/LogistiekEnginePage.d.ts.map +1 -1
  2. package/dist-lib/components/LogistiekEnginePage.js +8 -2
  3. package/dist-lib/components/RegiePage.d.ts.map +1 -1
  4. package/dist-lib/components/RegiePage.js +1 -1
  5. package/dist-lib/integrations/supabase/auth-middleware.d.ts +335 -1
  6. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  7. package/dist-lib/integrations/supabase/client.server.d.ts +335 -1
  8. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  9. package/dist-lib/integrations/supabase/moduleClient.d.ts +335 -1
  10. package/dist-lib/integrations/supabase/moduleClient.d.ts.map +1 -1
  11. package/dist-lib/integrations/supabase/types.d.ts +337 -1
  12. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  13. package/dist-lib/lib/floridayDocuments.functions.d.ts +1005 -3
  14. package/dist-lib/lib/floridayDocuments.functions.d.ts.map +1 -1
  15. package/dist-lib/lib/floridayPush.functions.d.ts +335 -1
  16. package/dist-lib/lib/floridayPush.functions.d.ts.map +1 -1
  17. package/dist-lib/lib/handlers/logistics-tick.server.d.ts.map +1 -1
  18. package/dist-lib/lib/handlers/logistics-tick.server.js +11 -0
  19. package/dist-lib/lib/loadCarrierPlanner.d.ts +6 -0
  20. package/dist-lib/lib/loadCarrierPlanner.d.ts.map +1 -1
  21. package/dist-lib/lib/loadCarrierPlanner.js +3 -0
  22. package/dist-lib/lib/loadCarrierPlanning.functions.d.ts +1675 -5
  23. package/dist-lib/lib/loadCarrierPlanning.functions.d.ts.map +1 -1
  24. package/dist-lib/lib/loadCarrierPlanning.server.d.ts.map +1 -1
  25. package/dist-lib/lib/loadCarrierPlanning.server.js +3 -0
  26. package/dist-lib/lib/logisticsPlanner.d.ts +2 -0
  27. package/dist-lib/lib/logisticsPlanner.d.ts.map +1 -1
  28. package/dist-lib/lib/logisticsPlanner.js +17 -0
  29. package/dist-lib/lib/logisticsRecalcJob.functions.d.ts +670 -2
  30. package/dist-lib/lib/logisticsRecalcJob.functions.d.ts.map +1 -1
  31. package/dist-lib/lib/logisticsRecalculate.functions.d.ts +335 -1
  32. package/dist-lib/lib/logisticsRecalculate.functions.d.ts.map +1 -1
  33. package/dist-lib/lib/modulePrompts.d.ts.map +1 -1
  34. package/dist-lib/lib/modulePrompts.js +185 -0
  35. package/package.json +7 -4
@@ -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: {
@@ -2911,6 +2911,86 @@ export type Database = {
2911
2911
  };
2912
2912
  Relationships: [];
2913
2913
  };
2914
+ delivery_notes: {
2915
+ Row: {
2916
+ byte_size: number | null;
2917
+ connection_id: string | null;
2918
+ content_type: string;
2919
+ created_at: string;
2920
+ error_message: string | null;
2921
+ fetched_at: string | null;
2922
+ fulfillment_order_id: string | null;
2923
+ http_status: number | null;
2924
+ id: string;
2925
+ label_code: string | null;
2926
+ letter: string | null;
2927
+ load_carrier_index: number | null;
2928
+ load_carrier_type: string | null;
2929
+ order_id: string | null;
2930
+ order_number: string | null;
2931
+ packages: number | null;
2932
+ source: string;
2933
+ status: string;
2934
+ storage_bucket: string;
2935
+ storage_path: string | null;
2936
+ updated_at: string;
2937
+ };
2938
+ Insert: {
2939
+ byte_size?: number | null;
2940
+ connection_id?: string | null;
2941
+ content_type?: string;
2942
+ created_at?: string;
2943
+ error_message?: string | null;
2944
+ fetched_at?: string | null;
2945
+ fulfillment_order_id?: string | null;
2946
+ http_status?: number | null;
2947
+ id?: string;
2948
+ label_code?: string | null;
2949
+ letter?: string | null;
2950
+ load_carrier_index?: number | null;
2951
+ load_carrier_type?: string | null;
2952
+ order_id?: string | null;
2953
+ order_number?: string | null;
2954
+ packages?: number | null;
2955
+ source?: string;
2956
+ status?: string;
2957
+ storage_bucket?: string;
2958
+ storage_path?: string | null;
2959
+ updated_at?: string;
2960
+ };
2961
+ Update: {
2962
+ byte_size?: number | null;
2963
+ connection_id?: string | null;
2964
+ content_type?: string;
2965
+ created_at?: string;
2966
+ error_message?: string | null;
2967
+ fetched_at?: string | null;
2968
+ fulfillment_order_id?: string | null;
2969
+ http_status?: number | null;
2970
+ id?: string;
2971
+ label_code?: string | null;
2972
+ letter?: string | null;
2973
+ load_carrier_index?: number | null;
2974
+ load_carrier_type?: string | null;
2975
+ order_id?: string | null;
2976
+ order_number?: string | null;
2977
+ packages?: number | null;
2978
+ source?: string;
2979
+ status?: string;
2980
+ storage_bucket?: string;
2981
+ storage_path?: string | null;
2982
+ updated_at?: string;
2983
+ };
2984
+ Relationships: [
2985
+ {
2986
+ foreignKeyName: "delivery_notes_order_id_fkey";
2987
+ columns: ["order_id"];
2988
+ isOneToOne: false;
2989
+ referencedRelation: "orders";
2990
+ referencedColumns: ["id"];
2991
+ }
2992
+ ];
2993
+ };
2914
2994
  document_bronregels: {
2915
2995
  Row: {
2916
2996
  bron: string;
@@ -13956,6 +14036,39 @@ export type Database = {
13956
14036
  };
13957
14037
  Relationships: [];
13958
14038
  };
14039
+ print_dedupe_events: {
14040
+ Row: {
14041
+ bestaande_job_id: string | null;
14042
+ created_at: string;
14043
+ detail: string | null;
14044
+ documentnaam: string | null;
14045
+ documenttype: string | null;
14046
+ id: string;
14047
+ idempotentie_sleutel: string;
14048
+ reden: string;
14049
+ };
14050
+ Insert: {
14051
+ bestaande_job_id?: string | null;
14052
+ created_at?: string;
14053
+ detail?: string | null;
14054
+ documentnaam?: string | null;
14055
+ documenttype?: string | null;
14056
+ id?: string;
14057
+ idempotentie_sleutel: string;
14058
+ reden: string;
14059
+ };
14060
+ Update: {
14061
+ bestaande_job_id?: string | null;
14062
+ created_at?: string;
14063
+ detail?: string | null;
14064
+ documentnaam?: string | null;
14065
+ documenttype?: string | null;
14066
+ id?: string;
14067
+ idempotentie_sleutel?: string;
14068
+ reden?: string;
14069
+ };
14070
+ Relationships: [];
14071
+ };
13959
14072
  print_job_logs: {
13960
14073
  Row: {
13961
14074
  created_at: string;
@@ -14008,6 +14121,9 @@ export type Database = {
14008
14121
  is_herprint: boolean;
14009
14122
  kopieen: number;
14010
14123
  layout_id: string | null;
14124
+ lokaal_opgeslagen_op: string | null;
14125
+ lokale_pdf_fout: string | null;
14126
+ lokale_pdf_status: string | null;
14011
14127
  opgepakt_op: string | null;
14012
14128
  paginas: number;
14013
14129
  payload: Json;
@@ -14016,6 +14132,7 @@ export type Database = {
14016
14132
  pogingen: number;
14017
14133
  printer_id: string | null;
14018
14134
  render_html: string | null;
14135
+ resultaat_pdf_base64: string | null;
14019
14136
  status: Database["public"]["Enums"]["print_job_status"];
14020
14137
  updated_at: string;
14021
14138
  volgende_poging: string | null;
@@ -14040,6 +14157,9 @@ export type Database = {
14040
14157
  is_herprint?: boolean;
14041
14158
  kopieen?: number;
14042
14159
  layout_id?: string | null;
14160
+ lokaal_opgeslagen_op?: string | null;
14161
+ lokale_pdf_fout?: string | null;
14162
+ lokale_pdf_status?: string | null;
14043
14163
  opgepakt_op?: string | null;
14044
14164
  paginas?: number;
14045
14165
  payload?: Json;
@@ -14048,6 +14168,7 @@ export type Database = {
14048
14168
  pogingen?: number;
14049
14169
  printer_id?: string | null;
14050
14170
  render_html?: string | null;
14171
+ resultaat_pdf_base64?: string | null;
14051
14172
  status?: Database["public"]["Enums"]["print_job_status"];
14052
14173
  updated_at?: string;
14053
14174
  volgende_poging?: string | null;
@@ -14072,6 +14193,9 @@ export type Database = {
14072
14193
  is_herprint?: boolean;
14073
14194
  kopieen?: number;
14074
14195
  layout_id?: string | null;
14196
+ lokaal_opgeslagen_op?: string | null;
14197
+ lokale_pdf_fout?: string | null;
14198
+ lokale_pdf_status?: string | null;
14075
14199
  opgepakt_op?: string | null;
14076
14200
  paginas?: number;
14077
14201
  payload?: Json;
@@ -14080,6 +14204,7 @@ export type Database = {
14080
14204
  pogingen?: number;
14081
14205
  printer_id?: string | null;
14082
14206
  render_html?: string | null;
14207
+ resultaat_pdf_base64?: string | null;
14083
14208
  status?: Database["public"]["Enums"]["print_job_status"];
14084
14209
  updated_at?: string;
14085
14210
  volgende_poging?: string | null;
@@ -14206,6 +14331,39 @@ export type Database = {
14206
14331
  };
14207
14332
  Relationships: [];
14208
14333
  };
14334
+ print_preview_events: {
14335
+ Row: {
14336
+ code: string | null;
14337
+ created_at: string;
14338
+ detail: Json;
14339
+ id: string;
14340
+ queue_item_id: string | null;
14341
+ reden: string | null;
14342
+ station_slug: string | null;
14343
+ uitkomst: string;
14344
+ };
14345
+ Insert: {
14346
+ code?: string | null;
14347
+ created_at?: string;
14348
+ detail?: Json;
14349
+ id?: string;
14350
+ queue_item_id?: string | null;
14351
+ reden?: string | null;
14352
+ station_slug?: string | null;
14353
+ uitkomst?: string;
14354
+ };
14355
+ Update: {
14356
+ code?: string | null;
14357
+ created_at?: string;
14358
+ detail?: Json;
14359
+ id?: string;
14360
+ queue_item_id?: string | null;
14361
+ reden?: string | null;
14362
+ station_slug?: string | null;
14363
+ uitkomst?: string;
14364
+ };
14365
+ Relationships: [];
14366
+ };
14209
14367
  print_queue_runners: {
14210
14368
  Row: {
14211
14369
  actief: boolean;
@@ -14453,6 +14611,7 @@ export type Database = {
14453
14611
  ondersteunde_laden: Json | null;
14454
14612
  online: boolean;
14455
14613
  papierformaat: string;
14614
+ pdf_map: string | null;
14456
14615
  poort: number | null;
14457
14616
  soort: Database["public"]["Enums"]["printer_kind"];
14458
14617
  systeemnaam: string;
@@ -14478,6 +14637,7 @@ export type Database = {
14478
14637
  ondersteunde_laden?: Json | null;
14479
14638
  online?: boolean;
14480
14639
  papierformaat?: string;
14640
+ pdf_map?: string | null;
14481
14641
  poort?: number | null;
14482
14642
  soort?: Database["public"]["Enums"]["printer_kind"];
14483
14643
  systeemnaam?: string;
@@ -14503,6 +14663,7 @@ export type Database = {
14503
14663
  ondersteunde_laden?: Json | null;
14504
14664
  online?: boolean;
14505
14665
  papierformaat?: string;
14666
+ pdf_map?: string | null;
14506
14667
  poort?: number | null;
14507
14668
  soort?: Database["public"]["Enums"]["printer_kind"];
14508
14669
  systeemnaam?: string;
@@ -20920,6 +21081,9 @@ export type Database = {
20920
21081
  is_herprint: boolean;
20921
21082
  kopieen: number;
20922
21083
  layout_id: string | null;
21084
+ lokaal_opgeslagen_op: string | null;
21085
+ lokale_pdf_fout: string | null;
21086
+ lokale_pdf_status: string | null;
20923
21087
  opgepakt_op: string | null;
20924
21088
  paginas: number;
20925
21089
  payload: Json;
@@ -20928,6 +21092,7 @@ export type Database = {
20928
21092
  pogingen: number;
20929
21093
  printer_id: string | null;
20930
21094
  render_html: string | null;
21095
+ resultaat_pdf_base64: string | null;
20931
21096
  status: Database["public"]["Enums"]["print_job_status"];
20932
21097
  updated_at: string;
20933
21098
  volgende_poging: string | null;
@@ -21019,6 +21184,53 @@ export type Database = {
21019
21184
  isSetofReturn: true;
21020
21185
  };
21021
21186
  };
21187
+ claim_pdf_print_jobs: {
21188
+ Args: {
21189
+ _max?: number;
21190
+ };
21191
+ Returns: {
21192
+ agent_id: string | null;
21193
+ bron_job_id: string | null;
21194
+ created_at: string;
21195
+ documentnaam: string;
21196
+ documenttype: Database["public"]["Enums"]["doc_layout_type"];
21197
+ extern_job_id: string | null;
21198
+ foutmelding: string | null;
21199
+ gebruiker_id: string | null;
21200
+ gebruiker_naam: string;
21201
+ gebruikte_bron: string | null;
21202
+ gebruikte_layout_id: string | null;
21203
+ gestart_op: string | null;
21204
+ herkomst: string | null;
21205
+ id: string;
21206
+ idempotentie_sleutel: string | null;
21207
+ is_herprint: boolean;
21208
+ kopieen: number;
21209
+ layout_id: string | null;
21210
+ lokaal_opgeslagen_op: string | null;
21211
+ lokale_pdf_fout: string | null;
21212
+ lokale_pdf_status: string | null;
21213
+ opgepakt_op: string | null;
21214
+ paginas: number;
21215
+ payload: Json;
21216
+ pdf_base64: string | null;
21217
+ pdf_url: string | null;
21218
+ pogingen: number;
21219
+ printer_id: string | null;
21220
+ render_html: string | null;
21221
+ resultaat_pdf_base64: string | null;
21222
+ status: Database["public"]["Enums"]["print_job_status"];
21223
+ updated_at: string;
21224
+ volgende_poging: string | null;
21225
+ voltooid_op: string | null;
21226
+ }[];
21227
+ SetofOptions: {
21228
+ from: "*";
21229
+ to: "print_jobs";
21230
+ isOneToOne: false;
21231
+ isSetofReturn: true;
21232
+ };
21233
+ };
21022
21234
  claim_print_jobs: {
21023
21235
  Args: {
21024
21236
  _agent_id: string;
@@ -21043,6 +21255,9 @@ export type Database = {
21043
21255
  is_herprint: boolean;
21044
21256
  kopieen: number;
21045
21257
  layout_id: string | null;
21258
+ lokaal_opgeslagen_op: string | null;
21259
+ lokale_pdf_fout: string | null;
21260
+ lokale_pdf_status: string | null;
21046
21261
  opgepakt_op: string | null;
21047
21262
  paginas: number;
21048
21263
  payload: Json;
@@ -21051,6 +21266,7 @@ export type Database = {
21051
21266
  pogingen: number;
21052
21267
  printer_id: string | null;
21053
21268
  render_html: string | null;
21269
+ resultaat_pdf_base64: string | null;
21054
21270
  status: Database["public"]["Enums"]["print_job_status"];
21055
21271
  updated_at: string;
21056
21272
  volgende_poging: string | null;
@@ -21191,6 +21407,8 @@ export type Database = {
21191
21407
  order_id: string;
21192
21408
  order_source: string;
21193
21409
  pick_date: string;
21410
+ printed_at: string;
21411
+ printed_today: boolean;
21194
21412
  status: string;
21195
21413
  }[];
21196
21414
  };
@@ -21899,6 +22117,10 @@ export type Database = {
21899
22117
  };
21900
22118
  Returns: number;
21901
22119
  };
22120
+ logistics_cancel_orphan_tasks: {
22121
+ Args: never;
22122
+ Returns: number;
22123
+ };
21902
22124
  logistics_capacity_day_check: {
21903
22125
  Args: {
21904
22126
  p_from?: string;
@@ -21919,6 +22141,25 @@ export type Database = {
21919
22141
  };
21920
22142
  Returns: number;
21921
22143
  };
22144
+ logistics_cart_index: {
22145
+ Args: {
22146
+ p_from?: string;
22147
+ p_to?: string;
22148
+ };
22149
+ Returns: {
22150
+ cart_id: string;
22151
+ cart_index: number;
22152
+ cart_label: string;
22153
+ is_shared: boolean;
22154
+ order_number: string;
22155
+ order_source: string;
22156
+ order_uuid: string;
22157
+ pick_date: string;
22158
+ printed_at: string;
22159
+ shifted: boolean;
22160
+ task_status: string;
22161
+ }[];
22162
+ };
21922
22163
  logistics_check_order_allowed: {
21923
22164
  Args: {
21924
22165
  p_lines: Json;
@@ -22067,6 +22308,17 @@ export type Database = {
22067
22308
  isSetofReturn: false;
22068
22309
  };
22069
22310
  };
22311
+ logistics_consistency_check: {
22312
+ Args: never;
22313
+ Returns: {
22314
+ agenda_carts: number;
22315
+ control_carts: number;
22316
+ ok: boolean;
22317
+ orphan_tasks: number;
22318
+ pick_date: string;
22319
+ raw_carts: number;
22320
+ }[];
22321
+ };
22070
22322
  logistics_delay_customer_email: {
22071
22323
  Args: {
22072
22324
  p_customer: string;
@@ -22260,6 +22512,25 @@ export type Database = {
22260
22512
  };
22261
22513
  Returns: number;
22262
22514
  };
22515
+ logistics_order_overview: {
22516
+ Args: {
22517
+ p_from?: string;
22518
+ p_to?: string;
22519
+ };
22520
+ Returns: {
22521
+ cart_count: number;
22522
+ customer_name: string;
22523
+ delivery_date: string;
22524
+ order_number: string;
22525
+ order_source: string;
22526
+ order_uuid: string;
22527
+ pick_date: string;
22528
+ plant_count: number;
22529
+ printed_at: string;
22530
+ shifted: boolean;
22531
+ status: string;
22532
+ }[];
22533
+ };
22263
22534
  logistics_order_pick_day: {
22264
22535
  Args: {
22265
22536
  p_order_ref: string;
@@ -22272,6 +22543,22 @@ export type Database = {
22272
22543
  };
22273
22544
  Returns: string;
22274
22545
  };
22546
+ logistics_pick_agenda: {
22547
+ Args: {
22548
+ p_from?: string;
22549
+ p_to?: string;
22550
+ };
22551
+ Returns: {
22552
+ cart_count: number;
22553
+ in_preparation: number;
22554
+ order_count: number;
22555
+ orders: Json;
22556
+ pick_date: string;
22557
+ plant_count: number;
22558
+ ready: number;
22559
+ shifted_count: number;
22560
+ }[];
22561
+ };
22275
22562
  logistics_pick_email_purpose: {
22276
22563
  Args: never;
22277
22564
  Returns: string;
@@ -22431,6 +22718,15 @@ export type Database = {
22431
22718
  };
22432
22719
  Returns: Json;
22433
22720
  };
22721
+ logistics_resolve_pick_document: {
22722
+ Args: {
22723
+ _is_herprint: boolean;
22724
+ _queue_item_id: string;
22725
+ _session_id: string;
22726
+ _voorbeeld: boolean;
22727
+ };
22728
+ Returns: Json;
22729
+ };
22434
22730
  logistics_resolve_settings: {
22435
22731
  Args: {
22436
22732
  p_config_id: string;
@@ -22871,6 +23167,7 @@ export type Database = {
22871
23167
  };
22872
23168
  pick_enqueue_print_job: {
22873
23169
  Args: {
23170
+ _is_herprint?: boolean;
22874
23171
  _printer_id?: string;
22875
23172
  _queue_item_id: string;
22876
23173
  _session_id?: string;
@@ -22884,6 +23181,13 @@ export type Database = {
22884
23181
  };
22885
23182
  Returns: Json;
22886
23183
  };
23184
+ pick_preview_job: {
23185
+ Args: {
23186
+ _queue_item_id: string;
23187
+ _station_slug: string;
23188
+ };
23189
+ Returns: Json;
23190
+ };
22887
23191
  pick_print_job_status: {
22888
23192
  Args: {
22889
23193
  _job_id: string;
@@ -23061,6 +23365,24 @@ export type Database = {
23061
23365
  };
23062
23366
  Returns: undefined;
23063
23367
  };
23368
+ print_preview_toestaan: {
23369
+ Args: {
23370
+ _max?: number;
23371
+ _queue_item_id: string;
23372
+ _station_slug: string;
23373
+ _venster_sec?: number;
23374
+ };
23375
+ Returns: Json;
23376
+ };
23377
+ print_preview_weiger: {
23378
+ Args: {
23379
+ _code: string;
23380
+ _queue_item_id: string;
23381
+ _reden: string;
23382
+ _station_slug: string;
23383
+ };
23384
+ Returns: undefined;
23385
+ };
23064
23386
  process_logistics_event: {
23065
23387
  Args: {
23066
23388
  p_event_id: string;
@@ -23178,6 +23500,14 @@ export type Database = {
23178
23500
  };
23179
23501
  Returns: undefined;
23180
23502
  };
23503
+ replace_order_carts: {
23504
+ Args: {
23505
+ p_buffer_id: string;
23506
+ p_carts: Json;
23507
+ p_order_id: string;
23508
+ };
23509
+ Returns: Json;
23510
+ };
23181
23511
  reset_floriday_sync_cursor: {
23182
23512
  Args: {
23183
23513
  p_connection_id: string;
@@ -23207,6 +23537,12 @@ export type Database = {
23207
23537
  };
23208
23538
  Returns: string;
23209
23539
  };
23540
+ resolve_print_job_printer_id: {
23541
+ Args: {
23542
+ _job: Database["public"]["Tables"]["print_jobs"]["Row"];
23543
+ };
23544
+ Returns: string;
23545
+ };
23210
23546
  resolve_product_id_for_item: {
23211
23547
  Args: {
23212
23548
  p_product_name: string;