Repository navigation
Expand file tree
/
Copy pathread-responses.dto.ts
More file actions
794 lines (676 loc) · 20 KB
/
Copy pathread-responses.dto.ts
File metadata and controls
794 lines (676 loc) · 20 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';
/**
* Respuestas de la cara de lectura del módulo (carril E2: lecturas de
* farmacia). A diferencia de las respuestas administrativas, acá los
* `*_concept_id` no viajan crudos: cada concepto se resuelve a `{code,
* display}` y las sedes llevan su dirección en texto — quien consume el
* directorio no tiene catálogo con qué resolver un uuid.
*/
/** Un concepto ya resuelto a su forma legible. */
export class PharmacyConceptDto {
/**
* Código canónico del concepto.
*/
@ApiProperty()
code!: string;
/**
* Etiqueta legible del concepto.
*/
@ApiProperty()
display!: string;
}
/** Una sede dispensadora, con su dirección resuelta. */
export class PharmacySiteReadDto {
/**
* Identificador único de la instancia.
*/
@ApiProperty({ format: 'uuid' })
id!: string;
/**
* Valor de code mantenido por la instancia.
*/
@ApiProperty()
code!: string;
/**
* Valor de name mantenido por la instancia.
*/
@ApiProperty()
name!: string;
/**
* Dirección en una línea, o null si la sede no la registró.
*/
@ApiPropertyOptional({ nullable: true })
addressText!: string | null;
/**
* Latitud WGS84, si la dirección la registró.
*/
@ApiPropertyOptional({ nullable: true })
latitude!: number | null;
/**
* Longitud WGS84, si la dirección la registró.
*/
@ApiPropertyOptional({ nullable: true })
longitude!: number | null;
/**
* Modo de dispensación, resuelto.
*/
@ApiPropertyOptional({ type: PharmacyConceptDto, nullable: true })
dispensingMode!: PharmacyConceptDto | null;
/**
* Valor de home delivery available mantenido por la instancia.
*/
@ApiPropertyOptional({ nullable: true })
homeDeliveryAvailable!: boolean | null;
/**
* Valor de pickup available mantenido por la instancia.
*/
@ApiPropertyOptional({ nullable: true })
pickupAvailable!: boolean | null;
}
/** Una farmacia del directorio, con sus números de resumen. */
export class PharmacyDirectoryItemDto {
/**
* Identificador único de la instancia.
*/
@ApiProperty({ format: 'uuid' })
id!: string;
/**
* Valor de code mantenido por la instancia.
*/
@ApiProperty()
code!: string;
/**
* Nombre para mostrar: el comercial si existe, si no la razón social.
*/
@ApiProperty()
name!: string;
/**
* Razón social registrada.
*/
@ApiProperty()
legalName!: string;
/**
* Tipo de farmacia, resuelto.
*/
@ApiPropertyOptional({ type: PharmacyConceptDto, nullable: true })
type!: PharmacyConceptDto | null;
/**
* Sedes activas de la farmacia.
*/
@ApiProperty()
siteCount!: number;
/**
* Productos activos publicados en su catálogo.
*/
@ApiProperty()
productCount!: number;
/**
* true si alguna sede ofrece entrega a domicilio.
*/
@ApiPropertyOptional({ nullable: true })
homeDeliveryAvailable!: boolean | null;
/**
* true si alguna sede ofrece retiro en mostrador.
*/
@ApiPropertyOptional({ nullable: true })
pickupAvailable!: boolean | null;
}
/** El directorio de farmacias publicadas del tenant activo. */
export class PharmacyDirectoryResponseDto {
/**
* Valor de items mantenido por la instancia.
*/
@ApiProperty({ type: [PharmacyDirectoryItemDto] })
items!: PharmacyDirectoryItemDto[];
/**
* Cantidad de farmacias servidas.
*/
@ApiProperty()
count!: number;
}
/** Un punto WGS84. */
export class PharmacyGeoPointDto {
/**
* Latitud WGS84.
*/
@ApiProperty()
latitude!: number;
/**
* Longitud WGS84.
*/
@ApiProperty()
longitude!: number;
}
/** El perfil de una farmacia: su ficha y sus sedes con dirección. */
export class PharmacyDetailDto extends PharmacyDirectoryItemDto {
/**
* Valor de sites mantenido por la instancia.
*/
@ApiProperty({ type: [PharmacySiteReadDto] })
sites!: PharmacySiteReadDto[];
/**
* NIT de la organización dueña de la farmacia: el número declarado en su
* documento de identificación tributaria (`NIT_EXHIBICION`) del alta
* institucional. `null` si no se declaró, o si la organización no es una
* farmacia (ver `companyType`).
*/
@ApiPropertyOptional({ nullable: true })
taxId!: string | null;
/**
* Forma societaria de la organización (`legal_entity_type_concept_id` de
* `directory.tenants`): `UNIPERSONAL`, `SRL`, `LTDA`, `SA`,
* `SOCIEDAD_COLECTIVA`, `COMANDITA_SIMPLE`, `COMANDITA_ACCIONES`,
* `SUCURSAL_EXTRANJERA` o una figura de otra jurisdicción. No es el `type`
* (tipo de farmacia) ni `ownership_type` (pública/privada).
*
* `null` cuando la organización no eligió forma (la genérica `COMPANY` de
* las filas anteriores al diccionario no se sirve como si fuera una), y
* cuando la organización dueña no es de tipo farmacia: en ese caso sus datos
* legales son de otra entidad y atribuírselos a esta farmacia sería falso.
*/
@ApiPropertyOptional({ type: PharmacyConceptDto, nullable: true })
companyType!: PharmacyConceptDto | null;
/**
* Dirección legal de la central (casa matriz de la organización:
* `common.addresses` vigente de uso laboral), en una línea. `null` si no la
* registró. Mismo criterio de atribución que `companyType`.
*/
@ApiPropertyOptional({ nullable: true })
legalAddressText!: string | null;
/**
* Punto de la central en el mapa, si la casa matriz tiene coordenadas.
*/
@ApiPropertyOptional({ type: PharmacyGeoPointDto, nullable: true })
headquarters!: PharmacyGeoPointDto | null;
}
/** Una licencia de la farmacia (`pharmacy.pharmacy_licenses`). */
export class PharmacyLicenseDto {
/**
* Identificador único de la instancia.
*/
@ApiProperty({ format: 'uuid' })
id!: string;
/**
* Tipo de licencia, resuelto.
*/
@ApiPropertyOptional({ type: PharmacyConceptDto, nullable: true })
type!: PharmacyConceptDto | null;
/**
* Número de la licencia.
*/
@ApiProperty()
number!: string;
/**
* Sede a la que corresponde; `null` si es de la farmacia entera.
*/
@ApiPropertyOptional({ format: 'uuid', nullable: true })
siteId!: string | null;
/**
* Nombre de esa sede, si corresponde a una.
*/
@ApiPropertyOptional({ nullable: true })
siteName!: string | null;
/**
* Jurisdicción, resuelta.
*/
@ApiPropertyOptional({ type: PharmacyConceptDto, nullable: true })
jurisdiction!: PharmacyConceptDto | null;
/**
* Inicio de vigencia (fecha, sin hora).
*/
@ApiPropertyOptional({ format: 'date', nullable: true })
validFrom!: string | null;
/**
* Fin de vigencia (fecha, sin hora).
*/
@ApiPropertyOptional({ format: 'date', nullable: true })
validTo!: string | null;
/**
* Días de calendario hasta el vencimiento, negativo si ya venció; `null`
* sin fin de vigencia. Lo calcula el servidor para que el aviso sea el mismo
* en todas las pantallas.
*/
@ApiPropertyOptional({ nullable: true })
daysToExpiry!: number | null;
/**
* Estado de verificación, resuelto.
*/
@ApiPropertyOptional({ type: PharmacyConceptDto, nullable: true })
verificationStatus!: PharmacyConceptDto | null;
/**
* Archivo de respaldo (`common.files`), si se adjuntó.
*/
@ApiPropertyOptional({ format: 'uuid', nullable: true })
evidenceFileId!: string | null;
}
/** La carpeta de licencias de una farmacia. */
export class PharmacyLicenseListResponseDto {
/**
* Valor de items mantenido por la instancia.
*/
@ApiProperty({ type: [PharmacyLicenseDto] })
items!: PharmacyLicenseDto[];
/**
* Cantidad de licencias servidas.
*/
@ApiProperty()
count!: number;
}
/** Una persona que representa o gestiona la organización de la farmacia. */
export class PharmacyContactPersonDto {
/**
* Rol canónico: `LEGAL_REPRESENTATIVE`, `GENERAL_MANAGER`,
* `COMMERCIAL_MANAGER` o `MARKETING_MANAGER`.
*/
@ApiProperty()
role!: string;
/**
* Nombre completo, tal como figura en `profiles.persons`.
*/
@ApiProperty()
fullName!: string;
/**
* Correo vigente preferido, si lo tiene.
*/
@ApiPropertyOptional({ nullable: true })
email!: string | null;
/**
* Celular o teléfono vigente preferido, si lo tiene.
*/
@ApiPropertyOptional({ nullable: true })
phone!: string | null;
}
/**
* El representante legal y las gerencias de la organización de la farmacia.
* El documento de identidad de las personas **no** viaja: esta lectura es para
* ubicarlas, no para identificarlas.
*/
export class PharmacyContactsResponseDto {
/**
* El representante legal, o `null` si la organización no lo registró.
*/
@ApiPropertyOptional({ type: PharmacyContactPersonDto, nullable: true })
legalRepresentative!: PharmacyContactPersonDto | null;
/**
* Las gerencias registradas, en orden canónico (general, comercial,
* marketing).
*/
@ApiProperty({ type: [PharmacyContactPersonDto] })
executives!: PharmacyContactPersonDto[];
}
/** Un producto del catálogo, con su medicamento del vademécum resuelto. */
export class PharmacyProductReadDto {
/**
* Identificador único de la instancia.
*/
@ApiProperty({ format: 'uuid' })
id!: string;
/**
* Identificador asociado a pharmacy.
*/
@ApiProperty({ format: 'uuid' })
pharmacyId!: string;
/**
* Nombre de la farmacia dueña del catálogo.
*/
@ApiProperty()
pharmacyName!: string;
/**
* Valor de product code mantenido por la instancia.
*/
@ApiProperty()
productCode!: string;
/**
* Valor de brand name mantenido por la instancia.
*/
@ApiPropertyOptional({ nullable: true })
brandName!: string | null;
/**
* Valor de generic name mantenido por la instancia.
*/
@ApiPropertyOptional({ nullable: true })
genericName!: string | null;
/**
* Valor de strength text mantenido por la instancia.
*/
@ApiPropertyOptional({ nullable: true })
strengthText!: string | null;
/**
* Valor de package size text mantenido por la instancia.
*/
@ApiPropertyOptional({ nullable: true })
packageSizeText!: string | null;
/**
* Forma farmacéutica, resuelta.
*/
@ApiPropertyOptional({ type: PharmacyConceptDto, nullable: true })
dosageForm!: PharmacyConceptDto | null;
/**
* Medicamento del vademécum (`medication_concept_id`), resuelto a su código
* ATC y su nombre. null cuando el producto no está amarrado al vademécum.
*/
@ApiPropertyOptional({ type: PharmacyConceptDto, nullable: true })
medication!: PharmacyConceptDto | null;
/**
* Valor de requires prescription mantenido por la instancia.
*/
@ApiPropertyOptional({ nullable: true })
requiresPrescription!: boolean | null;
/*
* P47 §3-5 · lo que administra la farmacia y ve el público.
*/
/** Precio de venta vigente, texto exacto; `null` = sin precio publicado. */
@ApiPropertyOptional({
nullable: true,
type: String,
example: '12.50',
description:
'Precio vigente (lista `CATALOGO`, o el menor de sus listas públicas de mostrador). Texto exacto; `null` = sin precio.',
})
unitPrice!: string | null;
/** Moneda ISO 4217 del precio; `null` sin precio. */
@ApiPropertyOptional({ nullable: true, type: String, example: 'BOB' })
currency!: string | null;
/** Si la farmacia lo puede vender hoy (declaración del catálogo). */
@ApiProperty()
inStock!: boolean;
/** Categoría de la vitrina, por nombre. */
@ApiPropertyOptional({ nullable: true, type: String })
category!: string | null;
/** Descripción para el paciente. */
@ApiPropertyOptional({ nullable: true, type: String })
description!: string | null;
/*
* Sólo en la lectura de gestión (`managed=true`) y en la respuesta del PATCH.
*/
/** Publicado, borrador o retirado. */
@ApiPropertyOptional({ enum: ['PUBLISHED', 'DRAFT', 'WITHDRAWN'] })
status?: 'PUBLISHED' | 'DRAFT' | 'WITHDRAWN';
/** Existencias declaradas; `null` = «sin conteo». */
@ApiPropertyOptional({ nullable: true, type: Number })
stock?: number | null;
/** Umbral de alerta; `null` = el de por defecto. */
@ApiPropertyOptional({ nullable: true, type: Number })
minStock?: number | null;
/**
* «No tengo» de toda la farmacia: gana sobre el conteo y sobre el stock de
* cada sede, que no lo puede apagar.
*/
@ApiPropertyOptional({ type: Boolean })
outOfStockDeclared?: boolean;
/** Imágenes propias, en orden. */
@ApiPropertyOptional({ type: [String], format: 'uuid' })
imageFileIds?: string[];
}
/** Resultado de la búsqueda de productos, acotado y con el recorte declarado. */
export class PharmacyProductSearchResponseDto {
/**
* Valor de items mantenido por la instancia.
*/
@ApiProperty({ type: [PharmacyProductReadDto] })
items!: PharmacyProductReadDto[];
/**
* Tope aplicado a la consulta.
*/
@ApiProperty({ description: 'Tope aplicado al listado' })
limit!: number;
/**
* Valor de truncated mantenido por la instancia.
*/
@ApiProperty({
description:
'true si quedaron productos fuera del tope. Se declara, no se calla',
})
truncated!: boolean;
}
/** Un precio vigente de un producto en una sede. */
export class PharmacySitePriceDto {
/**
* Identificador asociado a product.
*/
@ApiProperty({ format: 'uuid' })
productId!: string;
/**
* Valor de product code mantenido por la instancia.
*/
@ApiProperty()
productCode!: string;
/**
* Valor de brand name mantenido por la instancia.
*/
@ApiPropertyOptional({ nullable: true })
brandName!: string | null;
/**
* Valor de generic name mantenido por la instancia.
*/
@ApiPropertyOptional({ nullable: true })
genericName!: string | null;
/**
* Valor de strength text mantenido por la instancia.
*/
@ApiPropertyOptional({ nullable: true })
strengthText!: string | null;
/**
* Valor de package size text mantenido por la instancia.
*/
@ApiPropertyOptional({ nullable: true })
packageSizeText!: string | null;
/**
* Medicamento del vademécum, resuelto.
*/
@ApiPropertyOptional({ type: PharmacyConceptDto, nullable: true })
medication!: PharmacyConceptDto | null;
/**
* Si el producto exige receta médica para despacharse.
*/
@ApiPropertyOptional({ nullable: true })
requiresPrescription!: boolean | null;
/**
* Identificador asociado a price list.
*/
@ApiProperty({ format: 'uuid' })
priceListId!: string;
/**
* Código de la lista que publica el precio.
*/
@ApiProperty()
priceListCode!: string;
/**
* Moneda de la lista, resuelta.
*/
@ApiPropertyOptional({ type: PharmacyConceptDto, nullable: true })
currency!: PharmacyConceptDto | null;
/**
* Precio unitario, como texto exacto (numeric de BD).
*/
@ApiProperty()
unitAmount!: string;
/**
* Impuesto, si la lista lo desglosa.
*/
@ApiPropertyOptional({ nullable: true })
taxAmount!: string | null;
/**
* Lo que paga el paciente, si difiere del unitario.
*/
@ApiPropertyOptional({ nullable: true })
patientAmount!: string | null;
/**
* Cantidad mínima de compra, si la lista la exige.
*/
@ApiPropertyOptional({ nullable: true })
minimumQuantity!: string | null;
/**
* Desde cuándo rige este precio.
*/
@ApiProperty({ type: String, format: 'date-time' })
effectiveFrom!: Date;
/**
* Hasta cuándo rige, si la versión declara fin.
*/
@ApiPropertyOptional({ type: String, format: 'date-time', nullable: true })
effectiveTo!: Date | null;
}
/** Los precios públicos vigentes de una sede. */
export class PharmacySitePricesResponseDto {
/**
* Identificador asociado a site.
*/
@ApiProperty({ format: 'uuid' })
siteId!: string;
/**
* Nombre de la sede.
*/
@ApiProperty()
siteName!: string;
/**
* Identificador asociado a pharmacy.
*/
@ApiProperty({ format: 'uuid' })
pharmacyId!: string;
/**
* Nombre de la farmacia.
*/
@ApiProperty()
pharmacyName!: string;
/**
* Valor de items mantenido por la instancia.
*/
@ApiProperty({ type: [PharmacySitePriceDto] })
items!: PharmacySitePriceDto[];
/**
* Cantidad de precios servidos.
*/
@ApiProperty()
count!: number;
}
/**
* Una sede publicada, suelta, tal como la lista `GET /pharmacy/sites`
* (carril A, H4). Campos idénticos a `PharmacySite` del front, para que el
* front pueda dejar de simularla sin renombrar nada.
*/
export class PharmacySiteListItemDto {
/**
* Identificador asociado a site.
*/
@ApiProperty({ format: 'uuid' })
siteId!: string;
/**
* Nombre de la sede.
*/
@ApiProperty()
siteName!: string;
/**
* Identificador asociado a pharmacy.
*/
@ApiProperty({ format: 'uuid' })
pharmacyId!: string;
/**
* Nombre de la farmacia.
*/
@ApiProperty()
pharmacyName!: string;
/**
* Dirección en una línea, o null si la sede no la registró.
*/
@ApiPropertyOptional({ nullable: true })
addressText!: string | null;
/**
* Latitud WGS84, si la dirección la registró.
*/
@ApiPropertyOptional({ nullable: true })
latitude!: number | null;
/**
* Longitud WGS84, si la dirección la registró.
*/
@ApiPropertyOptional({ nullable: true })
longitude!: number | null;
/**
* Distancia Haversine en km al origen consultado, con un decimal. `null`
* sin origen o sin coordenadas.
*/
@ApiPropertyOptional({ nullable: true })
distanceKm!: number | null;
/**
* true si la sede ofrece entrega a domicilio.
*/
@ApiPropertyOptional({ nullable: true })
homeDeliveryAvailable!: boolean | null;
/**
* true si la sede ofrece retiro en mostrador.
*/
@ApiPropertyOptional({ nullable: true })
pickupAvailable!: boolean | null;
/**
* Productos activos publicados por la farmacia dueña de esta sede.
*/
@ApiProperty()
productCount!: number;
/**
* P34: la sede declaró abrir 24 h (`true`/`false`); `null` = no lo declaró.
*/
@ApiPropertyOptional({ type: Boolean, nullable: true })
open24h!: boolean | null;
/**
* P34: fin (instante UTC) del turno de guardia vigente, o `null` si la sede no
* está de turno ahora. Un turno vencido nunca aparece.
*/
@ApiPropertyOptional({ type: String, format: 'date-time', nullable: true })
onCallUntil!: string | null;
}
/** Las sedes publicadas del tenant activo, sueltas. */
export class PharmacySiteListResponseDto {
/**
* Valor de items mantenido por la instancia.
*/
@ApiProperty({ type: [PharmacySiteListItemDto] })
items!: PharmacySiteListItemDto[];
/**
* Cantidad de sedes servidas.
*/
@ApiProperty()
count!: number;
}
/** Una actividad reciente del catálogo de la farmacia. */
export class PharmacyRecentActivityDto {
@ApiProperty() id!: string;
@ApiProperty() at!: string;
@ApiProperty() kind!: string;
@ApiProperty() text!: string;
}
/** Cuántos productos hay por categoría. */
export class PharmacyCategoryCountDto {
@ApiProperty() category!: string;
@ApiProperty() count!: number;
}
/**
* Los números del resumen del portal de la farmacia (P47), contados sobre el
* catálogo: borradores y retirados por estado, sin stock y bajo umbral por la
* declaración de existencias, el valor como Σ existencias × precio vigente de
* lo publicado con conteo (decimal exacto), y la actividad reciente leída de la
* bitácora (`audit.audit_log`).
*/
export class PharmacySummaryDto {
@ApiProperty() published!: number;
@ApiProperty() drafts!: number;
@ApiProperty() withdrawn!: number;
@ApiProperty() outOfStock!: number;
@ApiProperty() lowStock!: number;
@ApiProperty({ description: 'Valor del inventario, decimal en texto' })
inventoryValue!: string;
@ApiProperty({ type: [PharmacyCategoryCountDto] })
byCategory!: PharmacyCategoryCountDto[];
@ApiProperty({ type: [PharmacyRecentActivityDto] })
recentActivity!: PharmacyRecentActivityDto[];
}
/** Una categoría de la farmacia, con cuántos productos vivos la usan. */
export class PharmacyCategoryItemDto {
@ApiProperty({ format: 'uuid' }) id!: string;
@ApiProperty() name!: string;
@ApiProperty() productCount!: number;
}
/** Las categorías de la farmacia, por nombre. */
export class PharmacyCategoryListDto {
@ApiProperty({ type: [PharmacyCategoryItemDto] })
items!: PharmacyCategoryItemDto[];
}