@blackcode_sa/metaestetics-api 1.11.1 → 1.11.2
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.
- package/dist/admin/index.d.mts +324 -330
- package/dist/admin/index.d.ts +324 -330
- package/dist/backoffice/index.d.mts +67 -283
- package/dist/backoffice/index.d.ts +67 -283
- package/dist/backoffice/index.js +6 -114
- package/dist/backoffice/index.mjs +6 -112
- package/dist/index.d.mts +3037 -3100
- package/dist/index.d.ts +3037 -3100
- package/dist/index.js +129 -379
- package/dist/index.mjs +130 -379
- package/package.json +1 -1
- package/src/backoffice/expo-safe/index.ts +0 -2
- package/src/backoffice/services/__tests__/brand.service.test.ts +196 -0
- package/src/backoffice/services/__tests__/category.service.test.ts +201 -0
- package/src/backoffice/services/__tests__/product.service.test.ts +358 -0
- package/src/backoffice/services/__tests__/requirement.service.test.ts +226 -0
- package/src/backoffice/services/__tests__/subcategory.service.test.ts +181 -0
- package/src/backoffice/services/__tests__/technology.service.test.ts +1097 -0
- package/src/backoffice/services/technology.service.ts +10 -122
- package/src/backoffice/types/index.ts +0 -1
- package/src/backoffice/types/product.types.ts +1 -3
- package/src/backoffice/types/technology.types.ts +4 -4
- package/src/backoffice/validations/schemas.ts +9 -35
- package/src/services/appointment/appointment.service.ts +5 -0
- package/src/services/appointment/utils/appointment.utils.ts +113 -124
- package/src/services/procedure/procedure.service.ts +234 -434
- package/src/types/appointment/index.ts +37 -43
- package/src/types/clinic/index.ts +6 -1
- package/src/types/patient/medical-info.types.ts +3 -3
- package/src/types/procedure/index.ts +17 -20
- package/src/validations/appointment.schema.ts +118 -170
- package/src/validations/clinic.schema.ts +6 -1
- package/src/validations/patient/medical-info.schema.ts +2 -7
- package/src/backoffice/services/README.md +0 -40
- package/src/backoffice/services/constants.service.ts +0 -268
- package/src/backoffice/types/admin-constants.types.ts +0 -69
|
@@ -498,68 +498,6 @@ declare class DocumentationTemplateServiceBackoffice {
|
|
|
498
498
|
getTemplateVersions(templateId: string): Promise<DocumentTemplate[]>;
|
|
499
499
|
}
|
|
500
500
|
|
|
501
|
-
/**
|
|
502
|
-
* @file Defines types for dynamically managed administrative constants,
|
|
503
|
-
* such as treatment benefits and contraindications. These are stored in
|
|
504
|
-
* the 'admin-constants' collection in Firestore.
|
|
505
|
-
*/
|
|
506
|
-
/**
|
|
507
|
-
* Represents a single dynamic treatment benefit.
|
|
508
|
-
* These are positive effects or results a patient can expect from a treatment.
|
|
509
|
-
*/
|
|
510
|
-
interface TreatmentBenefitDynamic {
|
|
511
|
-
/**
|
|
512
|
-
* A unique identifier for the benefit, typically in snake_case.
|
|
513
|
-
* @example "wrinkle_reduction"
|
|
514
|
-
*/
|
|
515
|
-
id: string;
|
|
516
|
-
/**
|
|
517
|
-
* A human-readable name for the treatment benefit.
|
|
518
|
-
* @example "Wrinkle Reduction"
|
|
519
|
-
*/
|
|
520
|
-
name: string;
|
|
521
|
-
/**
|
|
522
|
-
* A detailed description of the benefit.
|
|
523
|
-
*/
|
|
524
|
-
description?: string;
|
|
525
|
-
}
|
|
526
|
-
/**
|
|
527
|
-
* Defines the structure of the document storing all treatment benefits
|
|
528
|
-
* in the 'admin-constants' collection.
|
|
529
|
-
* The document ID for this type should be 'treatment-benefits'.
|
|
530
|
-
*/
|
|
531
|
-
interface TreatmentBenefitsDocument {
|
|
532
|
-
benefits: TreatmentBenefitDynamic[];
|
|
533
|
-
}
|
|
534
|
-
/**
|
|
535
|
-
* Represents a single dynamic contraindication.
|
|
536
|
-
* These are conditions or factors that can affect a procedure and require special attention.
|
|
537
|
-
*/
|
|
538
|
-
interface ContraindicationDynamic {
|
|
539
|
-
/**
|
|
540
|
-
* A unique identifier for the contraindication, typically in snake_case.
|
|
541
|
-
* @example "sensitive_skin"
|
|
542
|
-
*/
|
|
543
|
-
id: string;
|
|
544
|
-
/**
|
|
545
|
-
* A human-readable name for the contraindication.
|
|
546
|
-
* @example "Sensitive Skin"
|
|
547
|
-
*/
|
|
548
|
-
name: string;
|
|
549
|
-
/**
|
|
550
|
-
* A detailed description of the contraindication.
|
|
551
|
-
*/
|
|
552
|
-
description?: string;
|
|
553
|
-
}
|
|
554
|
-
/**
|
|
555
|
-
* Defines the structure of the document storing all contraindications
|
|
556
|
-
* in the 'admin-constants' collection.
|
|
557
|
-
* The document ID for this type should be 'contraindications'.
|
|
558
|
-
*/
|
|
559
|
-
interface ContraindicationsDocument {
|
|
560
|
-
contraindications: ContraindicationDynamic[];
|
|
561
|
-
}
|
|
562
|
-
|
|
563
501
|
/**
|
|
564
502
|
* Product used in procedures
|
|
565
503
|
* Can be consumables, equipment, or any other product needed for performing procedures
|
|
@@ -595,7 +533,7 @@ interface Product {
|
|
|
595
533
|
dosage?: string;
|
|
596
534
|
composition?: string;
|
|
597
535
|
indications?: string[];
|
|
598
|
-
contraindications?:
|
|
536
|
+
contraindications?: string[];
|
|
599
537
|
}
|
|
600
538
|
/**
|
|
601
539
|
* Collection in Firestore database where products are stored
|
|
@@ -927,6 +865,47 @@ declare enum BlockingCondition {
|
|
|
927
865
|
EPILEPSY = "epilepsy"
|
|
928
866
|
}
|
|
929
867
|
|
|
868
|
+
/**
|
|
869
|
+
* Kontraindikacije koje mogu uticati na proceduru
|
|
870
|
+
* Ovi uslovi predstavljaju relativne kontraindikacije koje zahtevaju posebnu pažnju
|
|
871
|
+
*/
|
|
872
|
+
declare enum Contraindication {
|
|
873
|
+
SENSITIVE_SKIN = "sensitive_skin",
|
|
874
|
+
RECENT_TANNING = "recent_tanning",
|
|
875
|
+
RECENT_BOTOX = "recent_botox",
|
|
876
|
+
RECENT_FILLERS = "recent_fillers",
|
|
877
|
+
SKIN_ALLERGIES = "skin_allergies",
|
|
878
|
+
MEDICATIONS = "medications",
|
|
879
|
+
RECENT_CHEMICAL_PEEL = "recent_chemical_peel",
|
|
880
|
+
RECENT_LASER = "recent_laser",
|
|
881
|
+
SKIN_INFLAMMATION = "skin_inflammation",
|
|
882
|
+
OPEN_WOUNDS = "open_wounds",
|
|
883
|
+
HERPES_SIMPLEX = "herpes_simplex",
|
|
884
|
+
COLD_SORES = "cold_sores"
|
|
885
|
+
}
|
|
886
|
+
|
|
887
|
+
/**
|
|
888
|
+
* Benefiti koji se mogu očekivati od procedure
|
|
889
|
+
* Lista mogućih pozitivnih efekata i rezultata tretmana
|
|
890
|
+
*/
|
|
891
|
+
declare enum TreatmentBenefit {
|
|
892
|
+
WRINKLE_REDUCTION = "wrinkle_reduction",
|
|
893
|
+
SKIN_TIGHTENING = "skin_tightening",
|
|
894
|
+
COLLAGEN_PRODUCTION = "collagen_production",
|
|
895
|
+
ACNE_REDUCTION = "acne_reduction",
|
|
896
|
+
SCAR_REDUCTION = "scar_reduction",
|
|
897
|
+
PIGMENTATION_IMPROVEMENT = "pigmentation_improvement",
|
|
898
|
+
HAIR_REMOVAL = "hair_removal",
|
|
899
|
+
MUSCLE_TONING = "muscle_toning",
|
|
900
|
+
FAT_REDUCTION = "fat_reduction",
|
|
901
|
+
CELLULITE_REDUCTION = "cellulite_reduction",
|
|
902
|
+
SKIN_REJUVENATION = "skin_rejuvenation",
|
|
903
|
+
PORE_REDUCTION = "pore_reduction",
|
|
904
|
+
TEXTURE_IMPROVEMENT = "texture_improvement",
|
|
905
|
+
HYDRATION_BOOST = "hydration_boost",
|
|
906
|
+
CIRCULATION_IMPROVEMENT = "circulation_improvement"
|
|
907
|
+
}
|
|
908
|
+
|
|
930
909
|
/**
|
|
931
910
|
* Nivoi sertifikacije medicinskog osoblja, poređani od najnižeg do najvišeg
|
|
932
911
|
*/
|
|
@@ -1020,8 +999,8 @@ interface Technology {
|
|
|
1020
999
|
post: Requirement[];
|
|
1021
1000
|
};
|
|
1022
1001
|
blockingConditions: BlockingCondition[];
|
|
1023
|
-
contraindications:
|
|
1024
|
-
benefits:
|
|
1002
|
+
contraindications: Contraindication[];
|
|
1003
|
+
benefits: TreatmentBenefit[];
|
|
1025
1004
|
certificationRequirement: CertificationRequirement;
|
|
1026
1005
|
documentationTemplates?: TechnologyDocumentationTemplate[];
|
|
1027
1006
|
isActive: boolean;
|
|
@@ -1048,25 +1027,6 @@ interface PractitionerReviewInfo {
|
|
|
1048
1027
|
recommendationPercentage: number;
|
|
1049
1028
|
}
|
|
1050
1029
|
|
|
1051
|
-
/**
|
|
1052
|
-
* Kontraindikacije koje mogu uticati na proceduru
|
|
1053
|
-
* Ovi uslovi predstavljaju relativne kontraindikacije koje zahtevaju posebnu pažnju
|
|
1054
|
-
*/
|
|
1055
|
-
declare enum Contraindication {
|
|
1056
|
-
SENSITIVE_SKIN = "sensitive_skin",
|
|
1057
|
-
RECENT_TANNING = "recent_tanning",
|
|
1058
|
-
RECENT_BOTOX = "recent_botox",
|
|
1059
|
-
RECENT_FILLERS = "recent_fillers",
|
|
1060
|
-
SKIN_ALLERGIES = "skin_allergies",
|
|
1061
|
-
MEDICATIONS = "medications",
|
|
1062
|
-
RECENT_CHEMICAL_PEEL = "recent_chemical_peel",
|
|
1063
|
-
RECENT_LASER = "recent_laser",
|
|
1064
|
-
SKIN_INFLAMMATION = "skin_inflammation",
|
|
1065
|
-
OPEN_WOUNDS = "open_wounds",
|
|
1066
|
-
HERPES_SIMPLEX = "herpes_simplex",
|
|
1067
|
-
COLD_SORES = "cold_sores"
|
|
1068
|
-
}
|
|
1069
|
-
|
|
1070
1030
|
declare enum PricingMeasure {
|
|
1071
1031
|
PER_ML = "per_ml",
|
|
1072
1032
|
PER_ZONE = "per_zone",
|
|
@@ -1083,28 +1043,6 @@ declare enum Currency {
|
|
|
1083
1043
|
AUD = "AUD"
|
|
1084
1044
|
}
|
|
1085
1045
|
|
|
1086
|
-
/**
|
|
1087
|
-
* Benefiti koji se mogu očekivati od procedure
|
|
1088
|
-
* Lista mogućih pozitivnih efekata i rezultata tretmana
|
|
1089
|
-
*/
|
|
1090
|
-
declare enum TreatmentBenefit {
|
|
1091
|
-
WRINKLE_REDUCTION = "wrinkle_reduction",
|
|
1092
|
-
SKIN_TIGHTENING = "skin_tightening",
|
|
1093
|
-
COLLAGEN_PRODUCTION = "collagen_production",
|
|
1094
|
-
ACNE_REDUCTION = "acne_reduction",
|
|
1095
|
-
SCAR_REDUCTION = "scar_reduction",
|
|
1096
|
-
PIGMENTATION_IMPROVEMENT = "pigmentation_improvement",
|
|
1097
|
-
HAIR_REMOVAL = "hair_removal",
|
|
1098
|
-
MUSCLE_TONING = "muscle_toning",
|
|
1099
|
-
FAT_REDUCTION = "fat_reduction",
|
|
1100
|
-
CELLULITE_REDUCTION = "cellulite_reduction",
|
|
1101
|
-
SKIN_REJUVENATION = "skin_rejuvenation",
|
|
1102
|
-
PORE_REDUCTION = "pore_reduction",
|
|
1103
|
-
TEXTURE_IMPROVEMENT = "texture_improvement",
|
|
1104
|
-
HYDRATION_BOOST = "hydration_boost",
|
|
1105
|
-
CIRCULATION_IMPROVEMENT = "circulation_improvement"
|
|
1106
|
-
}
|
|
1107
|
-
|
|
1108
1046
|
/**
|
|
1109
1047
|
* Type that allows a field to be either a URL string or a File object
|
|
1110
1048
|
*/
|
|
@@ -1308,7 +1246,7 @@ declare class TechnologyService extends BaseService {
|
|
|
1308
1246
|
description: string;
|
|
1309
1247
|
family: ProcedureFamily;
|
|
1310
1248
|
technicalDetails?: string | undefined;
|
|
1311
|
-
contraindications:
|
|
1249
|
+
contraindications: Contraindication[];
|
|
1312
1250
|
blockingConditions: BlockingCondition[];
|
|
1313
1251
|
categoryId: string;
|
|
1314
1252
|
subcategoryId: string;
|
|
@@ -1316,7 +1254,7 @@ declare class TechnologyService extends BaseService {
|
|
|
1316
1254
|
pre: Requirement[];
|
|
1317
1255
|
post: Requirement[];
|
|
1318
1256
|
};
|
|
1319
|
-
benefits:
|
|
1257
|
+
benefits: TreatmentBenefit[];
|
|
1320
1258
|
certificationRequirement: CertificationRequirement;
|
|
1321
1259
|
documentationTemplates?: TechnologyDocumentationTemplate[] | undefined;
|
|
1322
1260
|
id: string;
|
|
@@ -1411,44 +1349,28 @@ declare class TechnologyService extends BaseService {
|
|
|
1411
1349
|
* @param contraindication - Kontraindikacija koja se dodaje
|
|
1412
1350
|
* @returns Ažurirana tehnologija
|
|
1413
1351
|
*/
|
|
1414
|
-
addContraindication(technologyId: string, contraindication:
|
|
1352
|
+
addContraindication(technologyId: string, contraindication: Contraindication): Promise<Technology | null>;
|
|
1415
1353
|
/**
|
|
1416
1354
|
* Uklanja kontraindikaciju iz tehnologije
|
|
1417
1355
|
* @param technologyId - ID tehnologije
|
|
1418
1356
|
* @param contraindication - Kontraindikacija koja se uklanja
|
|
1419
1357
|
* @returns Ažurirana tehnologija
|
|
1420
1358
|
*/
|
|
1421
|
-
removeContraindication(technologyId: string, contraindication:
|
|
1422
|
-
/**
|
|
1423
|
-
* Updates an existing contraindication in a technology's list.
|
|
1424
|
-
* If the contraindication does not exist, it will not be added.
|
|
1425
|
-
* @param technologyId - ID of the technology
|
|
1426
|
-
* @param contraindication - The updated contraindication object
|
|
1427
|
-
* @returns The updated technology
|
|
1428
|
-
*/
|
|
1429
|
-
updateContraindication(technologyId: string, contraindication: ContraindicationDynamic): Promise<Technology | null>;
|
|
1359
|
+
removeContraindication(technologyId: string, contraindication: Contraindication): Promise<Technology | null>;
|
|
1430
1360
|
/**
|
|
1431
1361
|
* Dodaje benefit tehnologiji
|
|
1432
1362
|
* @param technologyId - ID tehnologije
|
|
1433
1363
|
* @param benefit - Benefit koji se dodaje
|
|
1434
1364
|
* @returns Ažurirana tehnologija
|
|
1435
1365
|
*/
|
|
1436
|
-
addBenefit(technologyId: string, benefit:
|
|
1366
|
+
addBenefit(technologyId: string, benefit: TreatmentBenefit): Promise<Technology | null>;
|
|
1437
1367
|
/**
|
|
1438
1368
|
* Uklanja benefit iz tehnologije
|
|
1439
1369
|
* @param technologyId - ID tehnologije
|
|
1440
1370
|
* @param benefit - Benefit koji se uklanja
|
|
1441
1371
|
* @returns Ažurirana tehnologija
|
|
1442
1372
|
*/
|
|
1443
|
-
removeBenefit(technologyId: string, benefit:
|
|
1444
|
-
/**
|
|
1445
|
-
* Updates an existing benefit in a technology's list.
|
|
1446
|
-
* If the benefit does not exist, it will not be added.
|
|
1447
|
-
* @param technologyId - ID of the technology
|
|
1448
|
-
* @param benefit - The updated benefit object
|
|
1449
|
-
* @returns The updated technology
|
|
1450
|
-
*/
|
|
1451
|
-
updateBenefit(technologyId: string, benefit: TreatmentBenefitDynamic): Promise<Technology | null>;
|
|
1373
|
+
removeBenefit(technologyId: string, benefit: TreatmentBenefit): Promise<Technology | null>;
|
|
1452
1374
|
/**
|
|
1453
1375
|
* Vraća sve blokirajuće uslove za tehnologiju
|
|
1454
1376
|
* @param technologyId - ID tehnologije
|
|
@@ -1460,13 +1382,13 @@ declare class TechnologyService extends BaseService {
|
|
|
1460
1382
|
* @param technologyId - ID tehnologije
|
|
1461
1383
|
* @returns Lista kontraindikacija
|
|
1462
1384
|
*/
|
|
1463
|
-
getContraindications(technologyId: string): Promise<
|
|
1385
|
+
getContraindications(technologyId: string): Promise<Contraindication[]>;
|
|
1464
1386
|
/**
|
|
1465
1387
|
* Vraća sve benefite za tehnologiju
|
|
1466
1388
|
* @param technologyId - ID tehnologije
|
|
1467
1389
|
* @returns Lista benefita
|
|
1468
1390
|
*/
|
|
1469
|
-
getBenefits(technologyId: string): Promise<
|
|
1391
|
+
getBenefits(technologyId: string): Promise<TreatmentBenefit[]>;
|
|
1470
1392
|
/**
|
|
1471
1393
|
* Ažurira zahteve sertifikacije za tehnologiju
|
|
1472
1394
|
* @param technologyId - ID tehnologije
|
|
@@ -3287,70 +3209,12 @@ declare const documentTemplateSchema: z.ZodObject<{
|
|
|
3287
3209
|
sortingOrder?: number | undefined;
|
|
3288
3210
|
}>;
|
|
3289
3211
|
|
|
3290
|
-
/**
|
|
3291
|
-
* Zod validation schema for a single dynamic contraindication.
|
|
3292
|
-
* @see ContraindicationDynamic in admin-constants.types.ts
|
|
3293
|
-
*/
|
|
3294
|
-
declare const contraindicationDynamicSchema: z.ZodObject<{
|
|
3295
|
-
id: z.ZodString;
|
|
3296
|
-
name: z.ZodString;
|
|
3297
|
-
description: z.ZodOptional<z.ZodString>;
|
|
3298
|
-
}, "strip", z.ZodTypeAny, {
|
|
3299
|
-
id: string;
|
|
3300
|
-
name: string;
|
|
3301
|
-
description?: string | undefined;
|
|
3302
|
-
}, {
|
|
3303
|
-
id: string;
|
|
3304
|
-
name: string;
|
|
3305
|
-
description?: string | undefined;
|
|
3306
|
-
}>;
|
|
3307
|
-
/**
|
|
3308
|
-
* Zod validation schema for a single dynamic treatment benefit.
|
|
3309
|
-
* @see TreatmentBenefitDynamic in admin-constants.types.ts
|
|
3310
|
-
*/
|
|
3311
|
-
declare const treatmentBenefitDynamicSchema: z.ZodObject<{
|
|
3312
|
-
id: z.ZodString;
|
|
3313
|
-
name: z.ZodString;
|
|
3314
|
-
description: z.ZodOptional<z.ZodString>;
|
|
3315
|
-
}, "strip", z.ZodTypeAny, {
|
|
3316
|
-
id: string;
|
|
3317
|
-
name: string;
|
|
3318
|
-
description?: string | undefined;
|
|
3319
|
-
}, {
|
|
3320
|
-
id: string;
|
|
3321
|
-
name: string;
|
|
3322
|
-
description?: string | undefined;
|
|
3323
|
-
}>;
|
|
3324
3212
|
/**
|
|
3325
3213
|
* Base validation schemas for enums
|
|
3326
3214
|
*/
|
|
3327
3215
|
declare const blockingConditionSchemaBackoffice: z.ZodNativeEnum<typeof BlockingCondition>;
|
|
3328
|
-
declare const contraindicationSchemaBackoffice: z.
|
|
3329
|
-
|
|
3330
|
-
name: z.ZodString;
|
|
3331
|
-
description: z.ZodOptional<z.ZodString>;
|
|
3332
|
-
}, "strip", z.ZodTypeAny, {
|
|
3333
|
-
id: string;
|
|
3334
|
-
name: string;
|
|
3335
|
-
description?: string | undefined;
|
|
3336
|
-
}, {
|
|
3337
|
-
id: string;
|
|
3338
|
-
name: string;
|
|
3339
|
-
description?: string | undefined;
|
|
3340
|
-
}>;
|
|
3341
|
-
declare const treatmentBenefitSchemaBackoffice: z.ZodObject<{
|
|
3342
|
-
id: z.ZodString;
|
|
3343
|
-
name: z.ZodString;
|
|
3344
|
-
description: z.ZodOptional<z.ZodString>;
|
|
3345
|
-
}, "strip", z.ZodTypeAny, {
|
|
3346
|
-
id: string;
|
|
3347
|
-
name: string;
|
|
3348
|
-
description?: string | undefined;
|
|
3349
|
-
}, {
|
|
3350
|
-
id: string;
|
|
3351
|
-
name: string;
|
|
3352
|
-
description?: string | undefined;
|
|
3353
|
-
}>;
|
|
3216
|
+
declare const contraindicationSchemaBackoffice: z.ZodNativeEnum<typeof Contraindication>;
|
|
3217
|
+
declare const treatmentBenefitSchemaBackoffice: z.ZodNativeEnum<typeof TreatmentBenefit>;
|
|
3354
3218
|
declare const procedureFamilySchemaBackoffice: z.ZodNativeEnum<typeof ProcedureFamily>;
|
|
3355
3219
|
declare const timeUnitSchemaBackoffice: z.ZodNativeEnum<typeof TimeUnit>;
|
|
3356
3220
|
declare const requirementTypeSchema: z.ZodNativeEnum<typeof RequirementType>;
|
|
@@ -3716,19 +3580,7 @@ declare const technologySchema: z.ZodObject<{
|
|
|
3716
3580
|
}[];
|
|
3717
3581
|
}>>;
|
|
3718
3582
|
blockingConditions: z.ZodArray<z.ZodNativeEnum<typeof BlockingCondition>, "many">;
|
|
3719
|
-
contraindications: z.ZodArray<z.
|
|
3720
|
-
id: z.ZodString;
|
|
3721
|
-
name: z.ZodString;
|
|
3722
|
-
description: z.ZodOptional<z.ZodString>;
|
|
3723
|
-
}, "strip", z.ZodTypeAny, {
|
|
3724
|
-
id: string;
|
|
3725
|
-
name: string;
|
|
3726
|
-
description?: string | undefined;
|
|
3727
|
-
}, {
|
|
3728
|
-
id: string;
|
|
3729
|
-
name: string;
|
|
3730
|
-
description?: string | undefined;
|
|
3731
|
-
}>, "many">;
|
|
3583
|
+
contraindications: z.ZodArray<z.ZodNativeEnum<typeof Contraindication>, "many">;
|
|
3732
3584
|
documentationTemplates: z.ZodArray<z.ZodObject<{
|
|
3733
3585
|
id: z.ZodString;
|
|
3734
3586
|
title: z.ZodString;
|
|
@@ -4195,19 +4047,7 @@ declare const technologySchema: z.ZodObject<{
|
|
|
4195
4047
|
isRequired?: boolean | undefined;
|
|
4196
4048
|
sortingOrder?: number | undefined;
|
|
4197
4049
|
}>, "many">;
|
|
4198
|
-
benefits: z.ZodArray<z.
|
|
4199
|
-
id: z.ZodString;
|
|
4200
|
-
name: z.ZodString;
|
|
4201
|
-
description: z.ZodOptional<z.ZodString>;
|
|
4202
|
-
}, "strip", z.ZodTypeAny, {
|
|
4203
|
-
id: string;
|
|
4204
|
-
name: string;
|
|
4205
|
-
description?: string | undefined;
|
|
4206
|
-
}, {
|
|
4207
|
-
id: string;
|
|
4208
|
-
name: string;
|
|
4209
|
-
description?: string | undefined;
|
|
4210
|
-
}>, "many">;
|
|
4050
|
+
benefits: z.ZodArray<z.ZodNativeEnum<typeof TreatmentBenefit>, "many">;
|
|
4211
4051
|
certificationRequirement: z.ZodObject<{
|
|
4212
4052
|
minimumLevel: z.ZodNativeEnum<typeof CertificationLevel>;
|
|
4213
4053
|
requiredSpecialties: z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof CertificationSpecialty>, "many">>;
|
|
@@ -4223,11 +4063,7 @@ declare const technologySchema: z.ZodObject<{
|
|
|
4223
4063
|
name: string;
|
|
4224
4064
|
isActive: boolean;
|
|
4225
4065
|
family: ProcedureFamily;
|
|
4226
|
-
contraindications:
|
|
4227
|
-
id: string;
|
|
4228
|
-
name: string;
|
|
4229
|
-
description?: string | undefined;
|
|
4230
|
-
}[];
|
|
4066
|
+
contraindications: Contraindication[];
|
|
4231
4067
|
blockingConditions: BlockingCondition[];
|
|
4232
4068
|
categoryId: string;
|
|
4233
4069
|
subcategoryId: string;
|
|
@@ -4257,11 +4093,7 @@ declare const technologySchema: z.ZodObject<{
|
|
|
4257
4093
|
importance: "low" | "medium" | "high";
|
|
4258
4094
|
}[];
|
|
4259
4095
|
};
|
|
4260
|
-
benefits:
|
|
4261
|
-
id: string;
|
|
4262
|
-
name: string;
|
|
4263
|
-
description?: string | undefined;
|
|
4264
|
-
}[];
|
|
4096
|
+
benefits: TreatmentBenefit[];
|
|
4265
4097
|
certificationRequirement: {
|
|
4266
4098
|
minimumLevel: CertificationLevel;
|
|
4267
4099
|
requiredSpecialties?: CertificationSpecialty[] | undefined;
|
|
@@ -4368,19 +4200,11 @@ declare const technologySchema: z.ZodObject<{
|
|
|
4368
4200
|
}, {
|
|
4369
4201
|
name: string;
|
|
4370
4202
|
family: ProcedureFamily;
|
|
4371
|
-
contraindications:
|
|
4372
|
-
id: string;
|
|
4373
|
-
name: string;
|
|
4374
|
-
description?: string | undefined;
|
|
4375
|
-
}[];
|
|
4203
|
+
contraindications: Contraindication[];
|
|
4376
4204
|
blockingConditions: BlockingCondition[];
|
|
4377
4205
|
categoryId: string;
|
|
4378
4206
|
subcategoryId: string;
|
|
4379
|
-
benefits:
|
|
4380
|
-
id: string;
|
|
4381
|
-
name: string;
|
|
4382
|
-
description?: string | undefined;
|
|
4383
|
-
}[];
|
|
4207
|
+
benefits: TreatmentBenefit[];
|
|
4384
4208
|
certificationRequirement: {
|
|
4385
4209
|
minimumLevel: CertificationLevel;
|
|
4386
4210
|
requiredSpecialties?: CertificationSpecialty[] | undefined;
|
|
@@ -4729,19 +4553,7 @@ declare const technologyUpdateSchema: z.ZodObject<{
|
|
|
4729
4553
|
}[];
|
|
4730
4554
|
}>>>;
|
|
4731
4555
|
blockingConditions: z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof BlockingCondition>, "many">>;
|
|
4732
|
-
contraindications: z.ZodOptional<z.ZodArray<z.
|
|
4733
|
-
id: z.ZodString;
|
|
4734
|
-
name: z.ZodString;
|
|
4735
|
-
description: z.ZodOptional<z.ZodString>;
|
|
4736
|
-
}, "strip", z.ZodTypeAny, {
|
|
4737
|
-
id: string;
|
|
4738
|
-
name: string;
|
|
4739
|
-
description?: string | undefined;
|
|
4740
|
-
}, {
|
|
4741
|
-
id: string;
|
|
4742
|
-
name: string;
|
|
4743
|
-
description?: string | undefined;
|
|
4744
|
-
}>, "many">>;
|
|
4556
|
+
contraindications: z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof Contraindication>, "many">>;
|
|
4745
4557
|
documentationTemplates: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
4746
4558
|
id: z.ZodString;
|
|
4747
4559
|
title: z.ZodString;
|
|
@@ -5208,19 +5020,7 @@ declare const technologyUpdateSchema: z.ZodObject<{
|
|
|
5208
5020
|
isRequired?: boolean | undefined;
|
|
5209
5021
|
sortingOrder?: number | undefined;
|
|
5210
5022
|
}>, "many">>;
|
|
5211
|
-
benefits: z.ZodOptional<z.ZodArray<z.
|
|
5212
|
-
id: z.ZodString;
|
|
5213
|
-
name: z.ZodString;
|
|
5214
|
-
description: z.ZodOptional<z.ZodString>;
|
|
5215
|
-
}, "strip", z.ZodTypeAny, {
|
|
5216
|
-
id: string;
|
|
5217
|
-
name: string;
|
|
5218
|
-
description?: string | undefined;
|
|
5219
|
-
}, {
|
|
5220
|
-
id: string;
|
|
5221
|
-
name: string;
|
|
5222
|
-
description?: string | undefined;
|
|
5223
|
-
}>, "many">>;
|
|
5023
|
+
benefits: z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof TreatmentBenefit>, "many">>;
|
|
5224
5024
|
certificationRequirement: z.ZodOptional<z.ZodObject<{
|
|
5225
5025
|
minimumLevel: z.ZodNativeEnum<typeof CertificationLevel>;
|
|
5226
5026
|
requiredSpecialties: z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof CertificationSpecialty>, "many">>;
|
|
@@ -5238,11 +5038,7 @@ declare const technologyUpdateSchema: z.ZodObject<{
|
|
|
5238
5038
|
description?: string | undefined;
|
|
5239
5039
|
family?: ProcedureFamily | undefined;
|
|
5240
5040
|
technicalDetails?: string | undefined;
|
|
5241
|
-
contraindications?:
|
|
5242
|
-
id: string;
|
|
5243
|
-
name: string;
|
|
5244
|
-
description?: string | undefined;
|
|
5245
|
-
}[] | undefined;
|
|
5041
|
+
contraindications?: Contraindication[] | undefined;
|
|
5246
5042
|
blockingConditions?: BlockingCondition[] | undefined;
|
|
5247
5043
|
categoryId?: string | undefined;
|
|
5248
5044
|
subcategoryId?: string | undefined;
|
|
@@ -5272,11 +5068,7 @@ declare const technologyUpdateSchema: z.ZodObject<{
|
|
|
5272
5068
|
importance: "low" | "medium" | "high";
|
|
5273
5069
|
}[];
|
|
5274
5070
|
} | undefined;
|
|
5275
|
-
benefits?:
|
|
5276
|
-
id: string;
|
|
5277
|
-
name: string;
|
|
5278
|
-
description?: string | undefined;
|
|
5279
|
-
}[] | undefined;
|
|
5071
|
+
benefits?: TreatmentBenefit[] | undefined;
|
|
5280
5072
|
certificationRequirement?: {
|
|
5281
5073
|
minimumLevel: CertificationLevel;
|
|
5282
5074
|
requiredSpecialties?: CertificationSpecialty[] | undefined;
|
|
@@ -5384,11 +5176,7 @@ declare const technologyUpdateSchema: z.ZodObject<{
|
|
|
5384
5176
|
description?: string | undefined;
|
|
5385
5177
|
family?: ProcedureFamily | undefined;
|
|
5386
5178
|
technicalDetails?: string | undefined;
|
|
5387
|
-
contraindications?:
|
|
5388
|
-
id: string;
|
|
5389
|
-
name: string;
|
|
5390
|
-
description?: string | undefined;
|
|
5391
|
-
}[] | undefined;
|
|
5179
|
+
contraindications?: Contraindication[] | undefined;
|
|
5392
5180
|
blockingConditions?: BlockingCondition[] | undefined;
|
|
5393
5181
|
categoryId?: string | undefined;
|
|
5394
5182
|
subcategoryId?: string | undefined;
|
|
@@ -5418,11 +5206,7 @@ declare const technologyUpdateSchema: z.ZodObject<{
|
|
|
5418
5206
|
isActive?: boolean | undefined;
|
|
5419
5207
|
}[];
|
|
5420
5208
|
} | undefined;
|
|
5421
|
-
benefits?:
|
|
5422
|
-
id: string;
|
|
5423
|
-
name: string;
|
|
5424
|
-
description?: string | undefined;
|
|
5425
|
-
}[] | undefined;
|
|
5209
|
+
benefits?: TreatmentBenefit[] | undefined;
|
|
5426
5210
|
certificationRequirement?: {
|
|
5427
5211
|
minimumLevel: CertificationLevel;
|
|
5428
5212
|
requiredSpecialties?: CertificationSpecialty[] | undefined;
|
|
@@ -5662,4 +5446,4 @@ declare class InvalidTreatmentBenefitError extends TreatmentBenefitError {
|
|
|
5662
5446
|
constructor(benefit: string);
|
|
5663
5447
|
}
|
|
5664
5448
|
|
|
5665
|
-
export { BRANDS_COLLECTION, BackofficeError, BlockingCondition, BlockingConditionError, type Brand, BrandService, CATEGORIES_COLLECTION, type Category, CategoryError, CategoryNotFoundError, CategoryService, CertificationLevel, type CertificationRequirement, CertificationSpecialty, CircularReferenceError, Contraindication,
|
|
5449
|
+
export { BRANDS_COLLECTION, BackofficeError, BlockingCondition, BlockingConditionError, type Brand, BrandService, CATEGORIES_COLLECTION, type Category, CategoryError, CategoryNotFoundError, CategoryService, CertificationLevel, type CertificationRequirement, CertificationSpecialty, CircularReferenceError, Contraindication, ContraindicationError, type CreateDocumentTemplateData, Currency, DEFAULT_CERTIFICATION_REQUIREMENT, DOCUMENTATION_TEMPLATES_COLLECTION, type DocumentElement, DocumentElementType, type DocumentTemplate, DocumentationTemplateServiceBackoffice, DynamicVariable, FILLED_DOCUMENTS_COLLECTION, HeadingLevel, type IProductService, InvalidBlockingConditionError, InvalidCategoryDataError, InvalidContraindicationError, InvalidHierarchyError, InvalidRequirementDataError, InvalidSubcategoryDataError, InvalidTechnologyDataError, InvalidTimeframeError, InvalidTreatmentBenefitError, ListType, PRODUCTS_COLLECTION, PricingMeasure, ProcedureFamily, type Product, ProductService, REQUIREMENTS_COLLECTION, RelationshipError, type Requirement, RequirementError, type RequirementImportance, RequirementNotFoundError, RequirementService, RequirementType, SUBCATEGORIES_COLLECTION, type Subcategory, SubcategoryError, SubcategoryNotFoundError, SubcategoryService, TECHNOLOGIES_COLLECTION, type Technology, type TechnologyDocumentationTemplate, TechnologyError, TechnologyNotFoundError, type TechnologyRequirements, TechnologyService, type TimeFrame, TimeUnit, TreatmentBenefit, TreatmentBenefitError, type UpdateDocumentTemplateData, blockingConditionSchemaBackoffice, categorySchema, categoryUpdateSchema, certificationLevelSchema, certificationRequirementSchema, certificationSpecialtySchema, contraindicationSchemaBackoffice, createDocumentTemplateSchema, documentElementSchema, documentElementWithoutIdSchema, documentTemplateSchema, procedureFamilySchemaBackoffice, requirementSchema, requirementTypeSchema, requirementUpdateSchema, subcategorySchema, subcategoryUpdateSchema, technologyRequirementsSchema, technologySchema, technologyUpdateSchema, timeUnitSchemaBackoffice, timeframeSchema, treatmentBenefitSchemaBackoffice, updateDocumentTemplateSchema };
|