@flowselections/layout-maker 1.31.0 → 1.36.7

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 (75) hide show
  1. package/dist-lib/components/ComputersLijst.d.ts.map +1 -1
  2. package/dist-lib/components/ComputersLijst.js +5 -5
  3. package/dist-lib/components/DocumentenPage.d.ts.map +1 -1
  4. package/dist-lib/components/DocumentenPage.js +3 -2
  5. package/dist-lib/components/LayoutPrinterSelect.d.ts +8 -0
  6. package/dist-lib/components/LayoutPrinterSelect.d.ts.map +1 -0
  7. package/dist-lib/components/LayoutPrinterSelect.js +23 -0
  8. package/dist-lib/components/LayoutsPage.d.ts.map +1 -1
  9. package/dist-lib/components/LayoutsPage.js +16 -3
  10. package/dist-lib/components/PakbonBuilderPage.d.ts.map +1 -1
  11. package/dist-lib/components/PakbonBuilderPage.js +3 -1
  12. package/dist-lib/components/PakbonSectiesPanel.d.ts.map +1 -1
  13. package/dist-lib/components/PakbonSectiesPanel.js +6 -2
  14. package/dist-lib/components/PdfMapAutoSaver.d.ts +6 -0
  15. package/dist-lib/components/PdfMapAutoSaver.d.ts.map +1 -0
  16. package/dist-lib/components/PdfMapAutoSaver.js +12 -0
  17. package/dist-lib/components/PdfMapGlobaleBanner.d.ts +12 -0
  18. package/dist-lib/components/PdfMapGlobaleBanner.d.ts.map +1 -0
  19. package/dist-lib/components/PdfMapGlobaleBanner.js +30 -0
  20. package/dist-lib/components/PdfMapToestemmingBanner.d.ts +7 -0
  21. package/dist-lib/components/PdfMapToestemmingBanner.d.ts.map +1 -0
  22. package/dist-lib/components/PdfMapToestemmingBanner.js +139 -0
  23. package/dist-lib/components/PrintQueuePage.d.ts.map +1 -1
  24. package/dist-lib/components/PrintQueuePage.js +42 -3
  25. package/dist-lib/components/PrintenPage.d.ts.map +1 -1
  26. package/dist-lib/components/PrintenPage.js +3 -2
  27. package/dist-lib/components/PrinterSetupWizard.d.ts.map +1 -1
  28. package/dist-lib/components/PrinterSetupWizard.js +25 -2
  29. package/dist-lib/components/PrintplekDetailPage.d.ts.map +1 -1
  30. package/dist-lib/components/PrintplekDetailPage.js +30 -4
  31. package/dist-lib/components/PrintplekWizard.d.ts.map +1 -1
  32. package/dist-lib/components/PrintplekWizard.js +81 -3
  33. package/dist-lib/components/ProductiebonBuilderPage.d.ts.map +1 -1
  34. package/dist-lib/components/ProductiebonBuilderPage.js +3 -1
  35. package/dist-lib/index.d.ts +6 -0
  36. package/dist-lib/index.d.ts.map +1 -1
  37. package/dist-lib/index.js +11 -1
  38. package/dist-lib/integrations/supabase/auth-middleware.d.ts +293 -8
  39. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  40. package/dist-lib/integrations/supabase/client.server.d.ts +293 -8
  41. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  42. package/dist-lib/integrations/supabase/types.d.ts +295 -8
  43. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  44. package/dist-lib/lib/aiLayout.functions.d.ts +293 -8
  45. package/dist-lib/lib/aiLayout.functions.d.ts.map +1 -1
  46. package/dist-lib/lib/htmlPdf.server.d.ts.map +1 -1
  47. package/dist-lib/lib/htmlPdf.server.js +43 -6
  48. package/dist-lib/lib/orderData.server.d.ts.map +1 -1
  49. package/dist-lib/lib/orderData.server.js +117 -10
  50. package/dist-lib/lib/pdfJobSaver.d.ts +20 -0
  51. package/dist-lib/lib/pdfJobSaver.d.ts.map +1 -0
  52. package/dist-lib/lib/pdfJobSaver.js +173 -0
  53. package/dist-lib/lib/pdfMap.d.ts +48 -0
  54. package/dist-lib/lib/pdfMap.d.ts.map +1 -0
  55. package/dist-lib/lib/pdfMap.js +219 -0
  56. package/dist-lib/lib/pdfPrinter.d.ts +9 -0
  57. package/dist-lib/lib/pdfPrinter.d.ts.map +1 -0
  58. package/dist-lib/lib/pdfPrinter.js +34 -0
  59. package/dist-lib/lib/previewPdf.d.ts +10 -0
  60. package/dist-lib/lib/previewPdf.d.ts.map +1 -0
  61. package/dist-lib/lib/previewPdf.js +202 -0
  62. package/dist-lib/lib/printApi.d.ts.map +1 -1
  63. package/dist-lib/lib/printApi.js +9 -1
  64. package/dist-lib/lib/printQueue.server.d.ts +14 -1
  65. package/dist-lib/lib/printQueue.server.d.ts.map +1 -1
  66. package/dist-lib/lib/printQueue.server.js +125 -27
  67. package/dist-lib/lib/printService.functions.d.ts +1172 -32
  68. package/dist-lib/lib/printService.functions.d.ts.map +1 -1
  69. package/dist-lib/lib/useDocumentData.d.ts +10 -0
  70. package/dist-lib/lib/useDocumentData.d.ts.map +1 -1
  71. package/dist-lib/lib/useDocumentData.js +19 -0
  72. package/dist-lib/lib/voorbeeldPrint.d.ts +4 -0
  73. package/dist-lib/lib/voorbeeldPrint.d.ts.map +1 -1
  74. package/dist-lib/lib/voorbeeldPrint.js +13 -2
  75. package/package.json +14 -2
@@ -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;
@@ -14041,6 +14121,9 @@ export type Database = {
14041
14121
  is_herprint: boolean;
14042
14122
  kopieen: number;
14043
14123
  layout_id: string | null;
14124
+ lokaal_opgeslagen_op: string | null;
14125
+ lokale_pdf_fout: string | null;
14126
+ lokale_pdf_status: string | null;
14044
14127
  opgepakt_op: string | null;
14045
14128
  paginas: number;
14046
14129
  payload: Json;
@@ -14049,6 +14132,7 @@ export type Database = {
14049
14132
  pogingen: number;
14050
14133
  printer_id: string | null;
14051
14134
  render_html: string | null;
14135
+ resultaat_pdf_base64: string | null;
14052
14136
  status: Database["public"]["Enums"]["print_job_status"];
14053
14137
  updated_at: string;
14054
14138
  volgende_poging: string | null;
@@ -14073,6 +14157,9 @@ export type Database = {
14073
14157
  is_herprint?: boolean;
14074
14158
  kopieen?: number;
14075
14159
  layout_id?: string | null;
14160
+ lokaal_opgeslagen_op?: string | null;
14161
+ lokale_pdf_fout?: string | null;
14162
+ lokale_pdf_status?: string | null;
14076
14163
  opgepakt_op?: string | null;
14077
14164
  paginas?: number;
14078
14165
  payload?: Json;
@@ -14081,6 +14168,7 @@ export type Database = {
14081
14168
  pogingen?: number;
14082
14169
  printer_id?: string | null;
14083
14170
  render_html?: string | null;
14171
+ resultaat_pdf_base64?: string | null;
14084
14172
  status?: Database["public"]["Enums"]["print_job_status"];
14085
14173
  updated_at?: string;
14086
14174
  volgende_poging?: string | null;
@@ -14105,6 +14193,9 @@ export type Database = {
14105
14193
  is_herprint?: boolean;
14106
14194
  kopieen?: number;
14107
14195
  layout_id?: string | null;
14196
+ lokaal_opgeslagen_op?: string | null;
14197
+ lokale_pdf_fout?: string | null;
14198
+ lokale_pdf_status?: string | null;
14108
14199
  opgepakt_op?: string | null;
14109
14200
  paginas?: number;
14110
14201
  payload?: Json;
@@ -14113,6 +14204,7 @@ export type Database = {
14113
14204
  pogingen?: number;
14114
14205
  printer_id?: string | null;
14115
14206
  render_html?: string | null;
14207
+ resultaat_pdf_base64?: string | null;
14116
14208
  status?: Database["public"]["Enums"]["print_job_status"];
14117
14209
  updated_at?: string;
14118
14210
  volgende_poging?: string | null;
@@ -14239,6 +14331,39 @@ export type Database = {
14239
14331
  };
14240
14332
  Relationships: [];
14241
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
+ };
14242
14367
  print_queue_runners: {
14243
14368
  Row: {
14244
14369
  actief: boolean;
@@ -14486,6 +14611,7 @@ export type Database = {
14486
14611
  ondersteunde_laden: Json | null;
14487
14612
  online: boolean;
14488
14613
  papierformaat: string;
14614
+ pdf_map: string | null;
14489
14615
  poort: number | null;
14490
14616
  soort: Database["public"]["Enums"]["printer_kind"];
14491
14617
  systeemnaam: string;
@@ -14511,6 +14637,7 @@ export type Database = {
14511
14637
  ondersteunde_laden?: Json | null;
14512
14638
  online?: boolean;
14513
14639
  papierformaat?: string;
14640
+ pdf_map?: string | null;
14514
14641
  poort?: number | null;
14515
14642
  soort?: Database["public"]["Enums"]["printer_kind"];
14516
14643
  systeemnaam?: string;
@@ -14536,6 +14663,7 @@ export type Database = {
14536
14663
  ondersteunde_laden?: Json | null;
14537
14664
  online?: boolean;
14538
14665
  papierformaat?: string;
14666
+ pdf_map?: string | null;
14539
14667
  poort?: number | null;
14540
14668
  soort?: Database["public"]["Enums"]["printer_kind"];
14541
14669
  systeemnaam?: string;
@@ -20953,6 +21081,9 @@ export type Database = {
20953
21081
  is_herprint: boolean;
20954
21082
  kopieen: number;
20955
21083
  layout_id: string | null;
21084
+ lokaal_opgeslagen_op: string | null;
21085
+ lokale_pdf_fout: string | null;
21086
+ lokale_pdf_status: string | null;
20956
21087
  opgepakt_op: string | null;
20957
21088
  paginas: number;
20958
21089
  payload: Json;
@@ -20961,6 +21092,7 @@ export type Database = {
20961
21092
  pogingen: number;
20962
21093
  printer_id: string | null;
20963
21094
  render_html: string | null;
21095
+ resultaat_pdf_base64: string | null;
20964
21096
  status: Database["public"]["Enums"]["print_job_status"];
20965
21097
  updated_at: string;
20966
21098
  volgende_poging: string | null;
@@ -21052,6 +21184,53 @@ export type Database = {
21052
21184
  isSetofReturn: true;
21053
21185
  };
21054
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
+ };
21055
21234
  claim_print_jobs: {
21056
21235
  Args: {
21057
21236
  _agent_id: string;
@@ -21076,6 +21255,9 @@ export type Database = {
21076
21255
  is_herprint: boolean;
21077
21256
  kopieen: number;
21078
21257
  layout_id: string | null;
21258
+ lokaal_opgeslagen_op: string | null;
21259
+ lokale_pdf_fout: string | null;
21260
+ lokale_pdf_status: string | null;
21079
21261
  opgepakt_op: string | null;
21080
21262
  paginas: number;
21081
21263
  payload: Json;
@@ -21084,6 +21266,7 @@ export type Database = {
21084
21266
  pogingen: number;
21085
21267
  printer_id: string | null;
21086
21268
  render_html: string | null;
21269
+ resultaat_pdf_base64: string | null;
21087
21270
  status: Database["public"]["Enums"]["print_job_status"];
21088
21271
  updated_at: string;
21089
21272
  volgende_poging: string | null;
@@ -21224,6 +21407,8 @@ export type Database = {
21224
21407
  order_id: string;
21225
21408
  order_source: string;
21226
21409
  pick_date: string;
21410
+ printed_at: string;
21411
+ printed_today: boolean;
21227
21412
  status: string;
21228
21413
  }[];
21229
21414
  };
@@ -21932,6 +22117,10 @@ export type Database = {
21932
22117
  };
21933
22118
  Returns: number;
21934
22119
  };
22120
+ logistics_cancel_orphan_tasks: {
22121
+ Args: never;
22122
+ Returns: number;
22123
+ };
21935
22124
  logistics_capacity_day_check: {
21936
22125
  Args: {
21937
22126
  p_from?: string;
@@ -21952,6 +22141,25 @@ export type Database = {
21952
22141
  };
21953
22142
  Returns: number;
21954
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
+ };
21955
22163
  logistics_check_order_allowed: {
21956
22164
  Args: {
21957
22165
  p_lines: Json;
@@ -22100,6 +22308,17 @@ export type Database = {
22100
22308
  isSetofReturn: false;
22101
22309
  };
22102
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
+ };
22103
22322
  logistics_delay_customer_email: {
22104
22323
  Args: {
22105
22324
  p_customer: string;
@@ -22293,6 +22512,25 @@ export type Database = {
22293
22512
  };
22294
22513
  Returns: number;
22295
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
+ };
22296
22534
  logistics_order_pick_day: {
22297
22535
  Args: {
22298
22536
  p_order_ref: string;
@@ -22305,6 +22543,22 @@ export type Database = {
22305
22543
  };
22306
22544
  Returns: string;
22307
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
+ };
22308
22562
  logistics_pick_email_purpose: {
22309
22563
  Args: never;
22310
22564
  Returns: string;
@@ -22464,6 +22718,15 @@ export type Database = {
22464
22718
  };
22465
22719
  Returns: Json;
22466
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
+ };
22467
22730
  logistics_resolve_settings: {
22468
22731
  Args: {
22469
22732
  p_config_id: string;
@@ -22903,13 +23166,6 @@ export type Database = {
22903
23166
  Returns: Json;
22904
23167
  };
22905
23168
  pick_enqueue_print_job: {
22906
- Args: {
22907
- _printer_id?: string;
22908
- _queue_item_id: string;
22909
- _session_id?: string;
22910
- };
22911
- Returns: string;
22912
- } | {
22913
23169
  Args: {
22914
23170
  _is_herprint?: boolean;
22915
23171
  _printer_id?: string;
@@ -22925,6 +23181,13 @@ export type Database = {
22925
23181
  };
22926
23182
  Returns: Json;
22927
23183
  };
23184
+ pick_preview_job: {
23185
+ Args: {
23186
+ _queue_item_id: string;
23187
+ _station_slug: string;
23188
+ };
23189
+ Returns: Json;
23190
+ };
22928
23191
  pick_print_job_status: {
22929
23192
  Args: {
22930
23193
  _job_id: string;
@@ -23102,6 +23365,24 @@ export type Database = {
23102
23365
  };
23103
23366
  Returns: undefined;
23104
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
+ };
23105
23386
  process_logistics_event: {
23106
23387
  Args: {
23107
23388
  p_event_id: string;
@@ -23256,6 +23537,12 @@ export type Database = {
23256
23537
  };
23257
23538
  Returns: string;
23258
23539
  };
23540
+ resolve_print_job_printer_id: {
23541
+ Args: {
23542
+ _job: Database["public"]["Tables"]["print_jobs"]["Row"];
23543
+ };
23544
+ Returns: string;
23545
+ };
23259
23546
  resolve_product_id_for_item: {
23260
23547
  Args: {
23261
23548
  p_product_name: string;