@blackcode_sa/metaestetics-api 1.8.3 → 1.8.4
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/backoffice/index.d.mts +33 -1
- package/dist/backoffice/index.d.ts +33 -1
- package/dist/backoffice/index.js +40 -0
- package/dist/backoffice/index.mjs +30 -0
- package/package.json +1 -1
- package/src/backoffice/types/README.md +12 -0
- package/src/backoffice/types/index.ts +8 -33
- package/src/backoffice/types/static/README.md +18 -0
- package/src/backoffice/types/static/index.ts +6 -0
|
@@ -27,6 +27,10 @@ interface Brand {
|
|
|
27
27
|
website?: string;
|
|
28
28
|
description?: string;
|
|
29
29
|
}
|
|
30
|
+
/**
|
|
31
|
+
* Kolekcija u Firestore bazi gde se čuvaju brendovi
|
|
32
|
+
*/
|
|
33
|
+
declare const BRANDS_COLLECTION = "brands";
|
|
30
34
|
|
|
31
35
|
declare class BaseService {
|
|
32
36
|
protected db: Firestore;
|
|
@@ -122,6 +126,10 @@ interface Category {
|
|
|
122
126
|
/** Flag koji označava da li je kategorija aktivna */
|
|
123
127
|
isActive: boolean;
|
|
124
128
|
}
|
|
129
|
+
/**
|
|
130
|
+
* Kolekcija u Firestore bazi gde se čuvaju kategorije
|
|
131
|
+
*/
|
|
132
|
+
declare const CATEGORIES_COLLECTION = "backoffice_categories";
|
|
125
133
|
|
|
126
134
|
/**
|
|
127
135
|
* Servis za upravljanje kategorijama procedura.
|
|
@@ -186,6 +194,14 @@ declare class CategoryService extends BaseService {
|
|
|
186
194
|
getById(id: string): Promise<Category | null>;
|
|
187
195
|
}
|
|
188
196
|
|
|
197
|
+
/**
|
|
198
|
+
* Types for the Medical Documentation Templating System
|
|
199
|
+
*/
|
|
200
|
+
/**
|
|
201
|
+
* Kolekcija u Firestore bazi gde se čuvaju dokumentacijske šablone
|
|
202
|
+
*/
|
|
203
|
+
declare const DOCUMENTATION_TEMPLATES_COLLECTION = "documentation-templates";
|
|
204
|
+
declare const FILLED_DOCUMENTS_COLLECTION = "filled-documents";
|
|
189
205
|
/**
|
|
190
206
|
* Enum for element types in documentation templates
|
|
191
207
|
*/
|
|
@@ -519,6 +535,10 @@ interface Product {
|
|
|
519
535
|
indications?: string[];
|
|
520
536
|
contraindications?: string[];
|
|
521
537
|
}
|
|
538
|
+
/**
|
|
539
|
+
* Collection in Firestore database where products are stored
|
|
540
|
+
*/
|
|
541
|
+
declare const PRODUCTS_COLLECTION = "products";
|
|
522
542
|
/**
|
|
523
543
|
* Interface for the ProductService class
|
|
524
544
|
*/
|
|
@@ -648,6 +668,10 @@ interface Requirement {
|
|
|
648
668
|
createdAt: Date;
|
|
649
669
|
updatedAt: Date;
|
|
650
670
|
}
|
|
671
|
+
/**
|
|
672
|
+
* Kolekcija u Firestore bazi gde se čuvaju globalni zahtevi
|
|
673
|
+
*/
|
|
674
|
+
declare const REQUIREMENTS_COLLECTION = "backoffice_requirements";
|
|
651
675
|
|
|
652
676
|
/**
|
|
653
677
|
* Servis za upravljanje globalnim zahtevima.
|
|
@@ -751,6 +775,10 @@ interface Subcategory {
|
|
|
751
775
|
/** Datum poslednjeg ažuriranja podkategorije */
|
|
752
776
|
updatedAt: Date;
|
|
753
777
|
}
|
|
778
|
+
/**
|
|
779
|
+
* Kolekcija u Firestore bazi gde se čuvaju podkategorije
|
|
780
|
+
*/
|
|
781
|
+
declare const SUBCATEGORIES_COLLECTION = "subcategories";
|
|
754
782
|
|
|
755
783
|
/**
|
|
756
784
|
* Servis za upravljanje podkategorijama procedura.
|
|
@@ -979,6 +1007,10 @@ interface Technology {
|
|
|
979
1007
|
createdAt: Date;
|
|
980
1008
|
updatedAt: Date;
|
|
981
1009
|
}
|
|
1010
|
+
/**
|
|
1011
|
+
* Collection in Firestore database where technologies are stored
|
|
1012
|
+
*/
|
|
1013
|
+
declare const TECHNOLOGIES_COLLECTION = "technologies";
|
|
982
1014
|
|
|
983
1015
|
/**
|
|
984
1016
|
* Condensed practitioner review information
|
|
@@ -5503,4 +5535,4 @@ declare class InvalidTreatmentBenefitError extends TreatmentBenefitError {
|
|
|
5503
5535
|
constructor(benefit: string);
|
|
5504
5536
|
}
|
|
5505
5537
|
|
|
5506
|
-
export { BackofficeError, BlockingCondition, BlockingConditionError, type Brand, BrandService, type Category, CategoryError, CategoryNotFoundError, CategoryService, CertificationLevel, type CertificationRequirement, CertificationSpecialty, CircularReferenceError, Contraindication, ContraindicationError, type CreateDocumentTemplateData, DEFAULT_CERTIFICATION_REQUIREMENT, type DocumentElement, DocumentElementType, type DocumentTemplate, DocumentationTemplateServiceBackoffice, DynamicVariable, HeadingLevel, InvalidBlockingConditionError, InvalidCategoryDataError, InvalidContraindicationError, InvalidHierarchyError, InvalidRequirementDataError, InvalidSubcategoryDataError, InvalidTechnologyDataError, InvalidTimeframeError, InvalidTreatmentBenefitError, ListType, ProcedureFamily, type Product, ProductService, RelationshipError, type Requirement, RequirementError, type RequirementImportance, RequirementNotFoundError, RequirementService, RequirementType, type Subcategory, SubcategoryError, SubcategoryNotFoundError, SubcategoryService, type Technology, 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 };
|
|
5538
|
+
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 };
|
|
@@ -27,6 +27,10 @@ interface Brand {
|
|
|
27
27
|
website?: string;
|
|
28
28
|
description?: string;
|
|
29
29
|
}
|
|
30
|
+
/**
|
|
31
|
+
* Kolekcija u Firestore bazi gde se čuvaju brendovi
|
|
32
|
+
*/
|
|
33
|
+
declare const BRANDS_COLLECTION = "brands";
|
|
30
34
|
|
|
31
35
|
declare class BaseService {
|
|
32
36
|
protected db: Firestore;
|
|
@@ -122,6 +126,10 @@ interface Category {
|
|
|
122
126
|
/** Flag koji označava da li je kategorija aktivna */
|
|
123
127
|
isActive: boolean;
|
|
124
128
|
}
|
|
129
|
+
/**
|
|
130
|
+
* Kolekcija u Firestore bazi gde se čuvaju kategorije
|
|
131
|
+
*/
|
|
132
|
+
declare const CATEGORIES_COLLECTION = "backoffice_categories";
|
|
125
133
|
|
|
126
134
|
/**
|
|
127
135
|
* Servis za upravljanje kategorijama procedura.
|
|
@@ -186,6 +194,14 @@ declare class CategoryService extends BaseService {
|
|
|
186
194
|
getById(id: string): Promise<Category | null>;
|
|
187
195
|
}
|
|
188
196
|
|
|
197
|
+
/**
|
|
198
|
+
* Types for the Medical Documentation Templating System
|
|
199
|
+
*/
|
|
200
|
+
/**
|
|
201
|
+
* Kolekcija u Firestore bazi gde se čuvaju dokumentacijske šablone
|
|
202
|
+
*/
|
|
203
|
+
declare const DOCUMENTATION_TEMPLATES_COLLECTION = "documentation-templates";
|
|
204
|
+
declare const FILLED_DOCUMENTS_COLLECTION = "filled-documents";
|
|
189
205
|
/**
|
|
190
206
|
* Enum for element types in documentation templates
|
|
191
207
|
*/
|
|
@@ -519,6 +535,10 @@ interface Product {
|
|
|
519
535
|
indications?: string[];
|
|
520
536
|
contraindications?: string[];
|
|
521
537
|
}
|
|
538
|
+
/**
|
|
539
|
+
* Collection in Firestore database where products are stored
|
|
540
|
+
*/
|
|
541
|
+
declare const PRODUCTS_COLLECTION = "products";
|
|
522
542
|
/**
|
|
523
543
|
* Interface for the ProductService class
|
|
524
544
|
*/
|
|
@@ -648,6 +668,10 @@ interface Requirement {
|
|
|
648
668
|
createdAt: Date;
|
|
649
669
|
updatedAt: Date;
|
|
650
670
|
}
|
|
671
|
+
/**
|
|
672
|
+
* Kolekcija u Firestore bazi gde se čuvaju globalni zahtevi
|
|
673
|
+
*/
|
|
674
|
+
declare const REQUIREMENTS_COLLECTION = "backoffice_requirements";
|
|
651
675
|
|
|
652
676
|
/**
|
|
653
677
|
* Servis za upravljanje globalnim zahtevima.
|
|
@@ -751,6 +775,10 @@ interface Subcategory {
|
|
|
751
775
|
/** Datum poslednjeg ažuriranja podkategorije */
|
|
752
776
|
updatedAt: Date;
|
|
753
777
|
}
|
|
778
|
+
/**
|
|
779
|
+
* Kolekcija u Firestore bazi gde se čuvaju podkategorije
|
|
780
|
+
*/
|
|
781
|
+
declare const SUBCATEGORIES_COLLECTION = "subcategories";
|
|
754
782
|
|
|
755
783
|
/**
|
|
756
784
|
* Servis za upravljanje podkategorijama procedura.
|
|
@@ -979,6 +1007,10 @@ interface Technology {
|
|
|
979
1007
|
createdAt: Date;
|
|
980
1008
|
updatedAt: Date;
|
|
981
1009
|
}
|
|
1010
|
+
/**
|
|
1011
|
+
* Collection in Firestore database where technologies are stored
|
|
1012
|
+
*/
|
|
1013
|
+
declare const TECHNOLOGIES_COLLECTION = "technologies";
|
|
982
1014
|
|
|
983
1015
|
/**
|
|
984
1016
|
* Condensed practitioner review information
|
|
@@ -5503,4 +5535,4 @@ declare class InvalidTreatmentBenefitError extends TreatmentBenefitError {
|
|
|
5503
5535
|
constructor(benefit: string);
|
|
5504
5536
|
}
|
|
5505
5537
|
|
|
5506
|
-
export { BackofficeError, BlockingCondition, BlockingConditionError, type Brand, BrandService, type Category, CategoryError, CategoryNotFoundError, CategoryService, CertificationLevel, type CertificationRequirement, CertificationSpecialty, CircularReferenceError, Contraindication, ContraindicationError, type CreateDocumentTemplateData, DEFAULT_CERTIFICATION_REQUIREMENT, type DocumentElement, DocumentElementType, type DocumentTemplate, DocumentationTemplateServiceBackoffice, DynamicVariable, HeadingLevel, InvalidBlockingConditionError, InvalidCategoryDataError, InvalidContraindicationError, InvalidHierarchyError, InvalidRequirementDataError, InvalidSubcategoryDataError, InvalidTechnologyDataError, InvalidTimeframeError, InvalidTreatmentBenefitError, ListType, ProcedureFamily, type Product, ProductService, RelationshipError, type Requirement, RequirementError, type RequirementImportance, RequirementNotFoundError, RequirementService, RequirementType, type Subcategory, SubcategoryError, SubcategoryNotFoundError, SubcategoryService, type Technology, 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 };
|
|
5538
|
+
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 };
|
package/dist/backoffice/index.js
CHANGED
|
@@ -20,10 +20,12 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
20
20
|
// src/backoffice/index.ts
|
|
21
21
|
var index_exports = {};
|
|
22
22
|
__export(index_exports, {
|
|
23
|
+
BRANDS_COLLECTION: () => BRANDS_COLLECTION,
|
|
23
24
|
BackofficeError: () => BackofficeError,
|
|
24
25
|
BlockingCondition: () => BlockingCondition,
|
|
25
26
|
BlockingConditionError: () => BlockingConditionError,
|
|
26
27
|
BrandService: () => BrandService,
|
|
28
|
+
CATEGORIES_COLLECTION: () => CATEGORIES_COLLECTION,
|
|
27
29
|
CategoryError: () => CategoryError,
|
|
28
30
|
CategoryNotFoundError: () => CategoryNotFoundError,
|
|
29
31
|
CategoryService: () => CategoryService,
|
|
@@ -32,10 +34,13 @@ __export(index_exports, {
|
|
|
32
34
|
CircularReferenceError: () => CircularReferenceError,
|
|
33
35
|
Contraindication: () => Contraindication,
|
|
34
36
|
ContraindicationError: () => ContraindicationError,
|
|
37
|
+
Currency: () => Currency,
|
|
35
38
|
DEFAULT_CERTIFICATION_REQUIREMENT: () => DEFAULT_CERTIFICATION_REQUIREMENT2,
|
|
39
|
+
DOCUMENTATION_TEMPLATES_COLLECTION: () => DOCUMENTATION_TEMPLATES_COLLECTION,
|
|
36
40
|
DocumentElementType: () => DocumentElementType,
|
|
37
41
|
DocumentationTemplateServiceBackoffice: () => DocumentationTemplateServiceBackoffice,
|
|
38
42
|
DynamicVariable: () => DynamicVariable,
|
|
43
|
+
FILLED_DOCUMENTS_COLLECTION: () => FILLED_DOCUMENTS_COLLECTION,
|
|
39
44
|
HeadingLevel: () => HeadingLevel,
|
|
40
45
|
InvalidBlockingConditionError: () => InvalidBlockingConditionError,
|
|
41
46
|
InvalidCategoryDataError: () => InvalidCategoryDataError,
|
|
@@ -47,16 +52,21 @@ __export(index_exports, {
|
|
|
47
52
|
InvalidTimeframeError: () => InvalidTimeframeError,
|
|
48
53
|
InvalidTreatmentBenefitError: () => InvalidTreatmentBenefitError,
|
|
49
54
|
ListType: () => ListType,
|
|
55
|
+
PRODUCTS_COLLECTION: () => PRODUCTS_COLLECTION,
|
|
56
|
+
PricingMeasure: () => PricingMeasure,
|
|
50
57
|
ProcedureFamily: () => ProcedureFamily,
|
|
51
58
|
ProductService: () => ProductService,
|
|
59
|
+
REQUIREMENTS_COLLECTION: () => REQUIREMENTS_COLLECTION,
|
|
52
60
|
RelationshipError: () => RelationshipError,
|
|
53
61
|
RequirementError: () => RequirementError,
|
|
54
62
|
RequirementNotFoundError: () => RequirementNotFoundError,
|
|
55
63
|
RequirementService: () => RequirementService,
|
|
56
64
|
RequirementType: () => RequirementType,
|
|
65
|
+
SUBCATEGORIES_COLLECTION: () => SUBCATEGORIES_COLLECTION,
|
|
57
66
|
SubcategoryError: () => SubcategoryError,
|
|
58
67
|
SubcategoryNotFoundError: () => SubcategoryNotFoundError,
|
|
59
68
|
SubcategoryService: () => SubcategoryService,
|
|
69
|
+
TECHNOLOGIES_COLLECTION: () => TECHNOLOGIES_COLLECTION,
|
|
60
70
|
TechnologyError: () => TechnologyError,
|
|
61
71
|
TechnologyNotFoundError: () => TechnologyNotFoundError,
|
|
62
72
|
TechnologyService: () => TechnologyService,
|
|
@@ -296,6 +306,7 @@ var import_firestore3 = require("firebase/firestore");
|
|
|
296
306
|
|
|
297
307
|
// src/types/documentation-templates/index.ts
|
|
298
308
|
var DOCUMENTATION_TEMPLATES_COLLECTION = "documentation-templates";
|
|
309
|
+
var FILLED_DOCUMENTS_COLLECTION = "filled-documents";
|
|
299
310
|
var DocumentElementType = /* @__PURE__ */ ((DocumentElementType2) => {
|
|
300
311
|
DocumentElementType2["HEADING"] = "heading";
|
|
301
312
|
DocumentElementType2["PARAGRAPH"] = "paragraph";
|
|
@@ -1717,6 +1728,25 @@ var Contraindication = /* @__PURE__ */ ((Contraindication2) => {
|
|
|
1717
1728
|
return Contraindication2;
|
|
1718
1729
|
})(Contraindication || {});
|
|
1719
1730
|
|
|
1731
|
+
// src/backoffice/types/static/pricing.types.ts
|
|
1732
|
+
var PricingMeasure = /* @__PURE__ */ ((PricingMeasure2) => {
|
|
1733
|
+
PricingMeasure2["PER_ML"] = "per_ml";
|
|
1734
|
+
PricingMeasure2["PER_ZONE"] = "per_zone";
|
|
1735
|
+
PricingMeasure2["PER_AREA"] = "per_area";
|
|
1736
|
+
PricingMeasure2["PER_SESSION"] = "per_session";
|
|
1737
|
+
PricingMeasure2["PER_TREATMENT"] = "per_treatment";
|
|
1738
|
+
PricingMeasure2["PER_PACKAGE"] = "per_package";
|
|
1739
|
+
return PricingMeasure2;
|
|
1740
|
+
})(PricingMeasure || {});
|
|
1741
|
+
var Currency = /* @__PURE__ */ ((Currency2) => {
|
|
1742
|
+
Currency2["EUR"] = "EUR";
|
|
1743
|
+
Currency2["USD"] = "USD";
|
|
1744
|
+
Currency2["GBP"] = "GBP";
|
|
1745
|
+
Currency2["CHF"] = "CHF";
|
|
1746
|
+
Currency2["AUD"] = "AUD";
|
|
1747
|
+
return Currency2;
|
|
1748
|
+
})(Currency || {});
|
|
1749
|
+
|
|
1720
1750
|
// src/backoffice/types/static/procedure-family.types.ts
|
|
1721
1751
|
var ProcedureFamily = /* @__PURE__ */ ((ProcedureFamily2) => {
|
|
1722
1752
|
ProcedureFamily2["AESTHETICS"] = "aesthetics";
|
|
@@ -1959,10 +1989,12 @@ var InvalidTreatmentBenefitError = class extends TreatmentBenefitError {
|
|
|
1959
1989
|
};
|
|
1960
1990
|
// Annotate the CommonJS export names for ESM import in node:
|
|
1961
1991
|
0 && (module.exports = {
|
|
1992
|
+
BRANDS_COLLECTION,
|
|
1962
1993
|
BackofficeError,
|
|
1963
1994
|
BlockingCondition,
|
|
1964
1995
|
BlockingConditionError,
|
|
1965
1996
|
BrandService,
|
|
1997
|
+
CATEGORIES_COLLECTION,
|
|
1966
1998
|
CategoryError,
|
|
1967
1999
|
CategoryNotFoundError,
|
|
1968
2000
|
CategoryService,
|
|
@@ -1971,10 +2003,13 @@ var InvalidTreatmentBenefitError = class extends TreatmentBenefitError {
|
|
|
1971
2003
|
CircularReferenceError,
|
|
1972
2004
|
Contraindication,
|
|
1973
2005
|
ContraindicationError,
|
|
2006
|
+
Currency,
|
|
1974
2007
|
DEFAULT_CERTIFICATION_REQUIREMENT,
|
|
2008
|
+
DOCUMENTATION_TEMPLATES_COLLECTION,
|
|
1975
2009
|
DocumentElementType,
|
|
1976
2010
|
DocumentationTemplateServiceBackoffice,
|
|
1977
2011
|
DynamicVariable,
|
|
2012
|
+
FILLED_DOCUMENTS_COLLECTION,
|
|
1978
2013
|
HeadingLevel,
|
|
1979
2014
|
InvalidBlockingConditionError,
|
|
1980
2015
|
InvalidCategoryDataError,
|
|
@@ -1986,16 +2021,21 @@ var InvalidTreatmentBenefitError = class extends TreatmentBenefitError {
|
|
|
1986
2021
|
InvalidTimeframeError,
|
|
1987
2022
|
InvalidTreatmentBenefitError,
|
|
1988
2023
|
ListType,
|
|
2024
|
+
PRODUCTS_COLLECTION,
|
|
2025
|
+
PricingMeasure,
|
|
1989
2026
|
ProcedureFamily,
|
|
1990
2027
|
ProductService,
|
|
2028
|
+
REQUIREMENTS_COLLECTION,
|
|
1991
2029
|
RelationshipError,
|
|
1992
2030
|
RequirementError,
|
|
1993
2031
|
RequirementNotFoundError,
|
|
1994
2032
|
RequirementService,
|
|
1995
2033
|
RequirementType,
|
|
2034
|
+
SUBCATEGORIES_COLLECTION,
|
|
1996
2035
|
SubcategoryError,
|
|
1997
2036
|
SubcategoryNotFoundError,
|
|
1998
2037
|
SubcategoryService,
|
|
2038
|
+
TECHNOLOGIES_COLLECTION,
|
|
1999
2039
|
TechnologyError,
|
|
2000
2040
|
TechnologyNotFoundError,
|
|
2001
2041
|
TechnologyService,
|
|
@@ -235,6 +235,7 @@ import {
|
|
|
235
235
|
|
|
236
236
|
// src/types/documentation-templates/index.ts
|
|
237
237
|
var DOCUMENTATION_TEMPLATES_COLLECTION = "documentation-templates";
|
|
238
|
+
var FILLED_DOCUMENTS_COLLECTION = "filled-documents";
|
|
238
239
|
var DocumentElementType = /* @__PURE__ */ ((DocumentElementType2) => {
|
|
239
240
|
DocumentElementType2["HEADING"] = "heading";
|
|
240
241
|
DocumentElementType2["PARAGRAPH"] = "paragraph";
|
|
@@ -1723,6 +1724,25 @@ var Contraindication = /* @__PURE__ */ ((Contraindication2) => {
|
|
|
1723
1724
|
return Contraindication2;
|
|
1724
1725
|
})(Contraindication || {});
|
|
1725
1726
|
|
|
1727
|
+
// src/backoffice/types/static/pricing.types.ts
|
|
1728
|
+
var PricingMeasure = /* @__PURE__ */ ((PricingMeasure2) => {
|
|
1729
|
+
PricingMeasure2["PER_ML"] = "per_ml";
|
|
1730
|
+
PricingMeasure2["PER_ZONE"] = "per_zone";
|
|
1731
|
+
PricingMeasure2["PER_AREA"] = "per_area";
|
|
1732
|
+
PricingMeasure2["PER_SESSION"] = "per_session";
|
|
1733
|
+
PricingMeasure2["PER_TREATMENT"] = "per_treatment";
|
|
1734
|
+
PricingMeasure2["PER_PACKAGE"] = "per_package";
|
|
1735
|
+
return PricingMeasure2;
|
|
1736
|
+
})(PricingMeasure || {});
|
|
1737
|
+
var Currency = /* @__PURE__ */ ((Currency2) => {
|
|
1738
|
+
Currency2["EUR"] = "EUR";
|
|
1739
|
+
Currency2["USD"] = "USD";
|
|
1740
|
+
Currency2["GBP"] = "GBP";
|
|
1741
|
+
Currency2["CHF"] = "CHF";
|
|
1742
|
+
Currency2["AUD"] = "AUD";
|
|
1743
|
+
return Currency2;
|
|
1744
|
+
})(Currency || {});
|
|
1745
|
+
|
|
1726
1746
|
// src/backoffice/types/static/procedure-family.types.ts
|
|
1727
1747
|
var ProcedureFamily = /* @__PURE__ */ ((ProcedureFamily2) => {
|
|
1728
1748
|
ProcedureFamily2["AESTHETICS"] = "aesthetics";
|
|
@@ -1964,10 +1984,12 @@ var InvalidTreatmentBenefitError = class extends TreatmentBenefitError {
|
|
|
1964
1984
|
}
|
|
1965
1985
|
};
|
|
1966
1986
|
export {
|
|
1987
|
+
BRANDS_COLLECTION,
|
|
1967
1988
|
BackofficeError,
|
|
1968
1989
|
BlockingCondition,
|
|
1969
1990
|
BlockingConditionError,
|
|
1970
1991
|
BrandService,
|
|
1992
|
+
CATEGORIES_COLLECTION,
|
|
1971
1993
|
CategoryError,
|
|
1972
1994
|
CategoryNotFoundError,
|
|
1973
1995
|
CategoryService,
|
|
@@ -1976,10 +1998,13 @@ export {
|
|
|
1976
1998
|
CircularReferenceError,
|
|
1977
1999
|
Contraindication,
|
|
1978
2000
|
ContraindicationError,
|
|
2001
|
+
Currency,
|
|
1979
2002
|
DEFAULT_CERTIFICATION_REQUIREMENT2 as DEFAULT_CERTIFICATION_REQUIREMENT,
|
|
2003
|
+
DOCUMENTATION_TEMPLATES_COLLECTION,
|
|
1980
2004
|
DocumentElementType,
|
|
1981
2005
|
DocumentationTemplateServiceBackoffice,
|
|
1982
2006
|
DynamicVariable,
|
|
2007
|
+
FILLED_DOCUMENTS_COLLECTION,
|
|
1983
2008
|
HeadingLevel,
|
|
1984
2009
|
InvalidBlockingConditionError,
|
|
1985
2010
|
InvalidCategoryDataError,
|
|
@@ -1991,16 +2016,21 @@ export {
|
|
|
1991
2016
|
InvalidTimeframeError,
|
|
1992
2017
|
InvalidTreatmentBenefitError,
|
|
1993
2018
|
ListType,
|
|
2019
|
+
PRODUCTS_COLLECTION,
|
|
2020
|
+
PricingMeasure,
|
|
1994
2021
|
ProcedureFamily,
|
|
1995
2022
|
ProductService,
|
|
2023
|
+
REQUIREMENTS_COLLECTION,
|
|
1996
2024
|
RelationshipError,
|
|
1997
2025
|
RequirementError,
|
|
1998
2026
|
RequirementNotFoundError,
|
|
1999
2027
|
RequirementService,
|
|
2000
2028
|
RequirementType,
|
|
2029
|
+
SUBCATEGORIES_COLLECTION,
|
|
2001
2030
|
SubcategoryError,
|
|
2002
2031
|
SubcategoryNotFoundError,
|
|
2003
2032
|
SubcategoryService,
|
|
2033
|
+
TECHNOLOGIES_COLLECTION,
|
|
2004
2034
|
TechnologyError,
|
|
2005
2035
|
TechnologyNotFoundError,
|
|
2006
2036
|
TechnologyService,
|
package/package.json
CHANGED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# Backoffice Types
|
|
2
|
+
|
|
3
|
+
This directory contains all the type definitions for the backoffice application.
|
|
4
|
+
|
|
5
|
+
## Structure
|
|
6
|
+
|
|
7
|
+
The types are organized into two main categories:
|
|
8
|
+
|
|
9
|
+
- **Root-level types**: These are the primary types used across the application, such as `Brand`, `Category`, `Product`, etc.
|
|
10
|
+
- **`static/`**: This subdirectory contains static types that are not expected to change often. See the `README.md` in that directory for more details.
|
|
11
|
+
|
|
12
|
+
All types are exported from the `index.ts` file in this directory for easy importing.
|
|
@@ -1,33 +1,8 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
3
|
-
export
|
|
4
|
-
export
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
TimeFrame,
|
|
10
|
-
} from "./requirement.types";
|
|
11
|
-
export { Subcategory } from "./subcategory.types";
|
|
12
|
-
export { Technology, TechnologyRequirements } from "./technology.types";
|
|
13
|
-
export { BlockingCondition } from "./static/blocking-condition.types";
|
|
14
|
-
export {
|
|
15
|
-
CertificationRequirement,
|
|
16
|
-
CertificationLevel,
|
|
17
|
-
CertificationSpecialty,
|
|
18
|
-
} from "./static/certification.types";
|
|
19
|
-
export { Contraindication } from "./static/contraindication.types";
|
|
20
|
-
export { ProcedureFamily } from "./static/procedure-family.types";
|
|
21
|
-
export { TreatmentBenefit } from "./static/treatment-benefit.types";
|
|
22
|
-
|
|
23
|
-
// Documentation Templates
|
|
24
|
-
export {
|
|
25
|
-
DocumentTemplate,
|
|
26
|
-
CreateDocumentTemplateData,
|
|
27
|
-
UpdateDocumentTemplateData,
|
|
28
|
-
DocumentElement,
|
|
29
|
-
DocumentElementType,
|
|
30
|
-
HeadingLevel,
|
|
31
|
-
ListType,
|
|
32
|
-
DynamicVariable,
|
|
33
|
-
} from "./documentation-templates.types";
|
|
1
|
+
export * from "./brand.types";
|
|
2
|
+
export * from "./category.types";
|
|
3
|
+
export * from "./documentation-templates.types";
|
|
4
|
+
export * from "./product.types";
|
|
5
|
+
export * from "./requirement.types";
|
|
6
|
+
export * from "./subcategory.types";
|
|
7
|
+
export * from "./technology.types";
|
|
8
|
+
export * from "./static";
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# Static Types
|
|
2
|
+
|
|
3
|
+
This directory contains all static type definitions used throughout the backoffice application. These types are considered "static" because they represent data that is generally fixed and does not change frequently.
|
|
4
|
+
|
|
5
|
+
## Available Types
|
|
6
|
+
|
|
7
|
+
The following static types are available for import:
|
|
8
|
+
|
|
9
|
+
- `BlockingCondition`: Defines conditions that may prevent a procedure.
|
|
10
|
+
- `Certification`: Represents professional certifications.
|
|
11
|
+
- `Contraindication`: Specifies conditions or factors that serve as a reason to withhold a certain medical treatment.
|
|
12
|
+
- `Pricing`: Defines the structure for pricing information.
|
|
13
|
+
- `ProcedureFamily`: Groups related medical procedures.
|
|
14
|
+
- `TreatmentBenefit`: Describes the benefits of a treatment.
|
|
15
|
+
|
|
16
|
+
## Usage
|
|
17
|
+
|
|
18
|
+
All types in this directory are exported from the main `index.ts` file. You can import them directly from this module.
|